dabcedf461e3f14ef93dbcfcf11f49d2219f1f12
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2007-03-31  Gert Driesen  <drieseng@users.sourceforge.net>
2
3         * TextBox.cs: Added internal ChangeBackColor method to special-case
4         Color.Empty. Added check for invalid ScrollBars value.
5         * TextBoxBase.cs: Added internal ChangeBackColor method.
6         * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
7         internal ChangeBackColor method to special-case Color.Empty. Added
8         check for invalid ScrollBars value.
9
10 2007-03-30  Everaldo Canuto  <everaldo@simios.org>
11
12         * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
13
14 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
15
16         * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
17         * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
18         [Based on submitted patch from Olivier Duff.]
19
20 2007-03-30  Jackson Harper  <jackson@ximian.com>
21
22         * TextBox.cs: Only select all on initial focus if the user has not
23         specified a selection area.
24
25 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
26
27         * UserControl.cs: Override CreateParams.
28
29 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
30
31         * Form.cs: Don't layout mdi children on MdiParent creation, the initial
32           layout of the mdi children is handled by CreateParams. Fixes
33           #79964,
34
35 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
36
37         * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
38         processed.
39
40         * Form.cs: When active tracker mouse down is not processed, send event 
41         back to control inside mouse position. [Fixes #81227]
42
43 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
44
45         * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
46         remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
47         stealing focus from the active form on Windows.  (Control will be made
48         visible in ShowWindow.)
49
50 2007-03-29  Mike Kestner  <mkestner@novell.com>
51
52         * ImageList.cs : add internal Changed event.
53         * ListView.cs : hook up to StateImageList.Changed to perform
54         invalidations when the the state icon list changes. [Fixes #81191]
55
56 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
57
58         * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
59         to prevent tooltips from stealing focus from the active form on Windows.
60
61 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
62
63         * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon. 
64
65         * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
66
67 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
68
69         * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
70         balloons.
71
72 2007-03-29  Jackson Harper  <jackson@ximian.com>
73
74         * TextControl.cs: When deleting text from non multiline textboxes,
75         we need to update the entire document, because line offsets will
76         be shifting.
77
78 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
79
80         * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
81         added to theme, now we can create themes that uses diferent notify engines
82         like notification-daemon from galago project or growl for Mac OS.
83
84 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
85
86         * NotifyIcon.cs: Prevent Balloon to show in task bar.
87
88 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
89
90         * XplatUIX11.cs: Prevent system to open more than one balloon.
91
92         * NotifyIcon.cs: Prevent system to open more than one balloon and remove
93         some compiler warning messages.
94
95 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
96
97         [Fixes #79149]
98
99         * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
100
101         * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect 
102         implemented, this methods is used by NotifyIcon.BalloonWindow class.
103
104         * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11 
105         systems.
106
107 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
108
109         * ListViewItem.cs: Forgot to make Invalidate internal.
110
111 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
112
113         * ListView.cs: Add a InvalidateSelection method to
114         invalidate methods which are currently selected, and call
115         it when setting FullRowSelect and HideSelection, instead of
116         calling Redraw.
117
118 2007-03-28  Chris Toshok  <toshok@ximian.com>
119
120         * XplatUIX11.cs (UnmapWindow): reindent this block.
121
122         * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
123         the selection_start if we're moving the selection (that is, not
124         extending it). Fixes bug #80461.
125
126 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
127
128         * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
129         * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
130         create private ControlCollection.
131
132 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
133
134         * Control.cs: We need to call OnVisibleChanged for our implicit
135         children as well as our normal children.  Fixes scrollbars in
136         comboboxes not showing up.
137
138 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
139
140         * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
141         the check for IsHandleCreated first.  The check in CreateHandle is not
142         good enough because CreateHandle can be overriden, and the override 
143         should not be called if the handle is already created.
144
145 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
146
147         * ToolStrip.cs: Remove MonoTODO for tooltips.
148         * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
149         * ToolStripContainer.cs: Add custom ControlCollection class.
150         * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
151         * ToolStripDropDown.cs: Add some missing properties/methods.
152         * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
153         * ToolStripItem.cs: Remove MonoTODO for tooltips.
154         * ToolStripManager.cs: Add IsShortcutDefined.
155         * ToolStripOverflow.cs: Override LayoutEngine.
156         * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
157         * ToolStripSeparator.cs: Add ImageKey.
158
159 2007-03-28  Jackson Harper  <jackson@ximian.com>
160
161         * TextControl.cs: If a char delete removes a line ending, we need
162         to update the ending style.
163         - Make sure the line ending calcs get called.
164
165 2007-03-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
166
167         * XplatUIX11.cs: CreateWindow: Remove old default form location code,
168           it was making the new code not work. Fixed a typo in the new code
169           as well. Fixes #79826.
170
171 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
172
173         * XplatUIWin32.cs:
174         - NIF_STATE and NIF_INFO added to NotifyIconFlags.
175         - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
176         - SystrayBalloon method implemented.
177         [Add support for notifyicon balloon on win32, #79149]
178
179 2007-03-27  Mike Kestner  <mkestner@novell.com>
180
181         * ThemeWin32Classic.cs : update StateImageList selection to mirror
182         the ms behavior when only one image is added to the list.
183         [Fixes #81191]
184
185 2007-03-27  Jackson Harper  <jackson@ximian.com>
186
187         * TextControl.cs: Improvements to non multiline line ending
188         drawing/measuing.
189
190 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
191
192         * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon. 
193
194 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
195
196         * NotifyIcon.cs: 
197         - Balloon message handling added.
198         - Call XplatUI.SystrayBalloon in ShowBalloonTip. 
199
200         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
201         XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed 
202         to SystrayBalloon to me like other Systray method, also a
203         handle parameter added.
204
205 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
206
207         * ListView.cs: Show scrollbars even when items.Count == 0
208         but the columns Width is bigger than the ListView.Width.
209         Also, when columns.Count == 0 set layout_wd and layout_ht
210         to the ClientRectangle values, so we don't show any scrollbar
211         in that case.
212
213 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
214
215         * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
216
217 2007-03-27  Jackson Harper  <jackson@ximian.com>
218
219         * RichTextBox.cs: The RTF library decodes the text properly for us
220         now.
221
222 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
223
224         * ListView.cs: Display HeaderControl even when columns.Count == 0.
225         * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
226         ListView header (HeaderControl), instead of Control.BackColor.
227
228 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
229
230         * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
231         Fixes tab control issues where controls would not show up because they
232         never received their OnVisibleChanged call.
233
234 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
235
236         * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
237         BalloonTipShown).
238
239 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
240
241         * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
242         is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
243         * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
244         are max or min.  Remove WS_VISIBLE from CreateParams unless we are recreating
245         the handle.  Fix WindowState by using the internal variable until we are 
246         sure that we've been shown.
247         * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
248         max or min.
249         [Fixes bug #81198]
250
251 2007-03-27  Rolf Bjarne Kvinge <RKvinge@novell.com> 
252
253         * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
254           (at least borders). Fixes #79386 on Linux (with a small difference
255           in behaviour: when trying to resize a caption-less window metacity
256           shows the sysmenu. Resizing is still possible though).
257         * XplatUIWin32.cs: When setting window styles send request an extra
258           WM_NCCALCSIZE when it's a form without title (due to no text and no
259           caption), since Win32 seems to calculate it wrong the first time we
260           get the message, though the second time things work as they should.
261         * Form.cs: Reorder a few statements in ChangingParent, otherwise the
262           newly reparented window might show up unparented. Update
263           CreateParams to exclude WS_DLGFRAME if ControlBox is false and
264           there's no title text. Fixes #79386.
265
266 2007-03-27  Mike Kestner  <mkestner@novell.com>
267
268         * ListBox.cs : don't perform invalidations if the handle hasn't been
269         created.  [Fixes #80753]
270
271 2007-03-27  Mike Kestner  <mkestner@novell.com>
272
273         * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
274         [Fixes #80428]
275
276 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
277
278         * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields 
279         needed to implement Balloon.
280
281 2007-03-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
282
283         * ListViewItem.cs: In the constructors that take
284         an array of strings, don't use ListViewSubItemCollection.AddRange
285         method to add items, since we need to have a different behaviour (in
286         the constructors we add an item for each null string, opposed to
287         the behaviour of AddRange, which adds nothing).
288
289 2007-03-26  Andreia Gaita  <avidigal@novell.com>
290
291         * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
292
293 2007-03-26  Jackson Harper  <jackson@ximian.com>
294
295         * TextControl.cs: Draw and measure line endings when in non
296         multiline mode.
297         - When searching the text, count the end of the last line as a
298         word boundary.
299
300 2007-03-26  Jackson Harper  <jackson@ximian.com>
301
302         * RichTextBox.cs: The selection_start and selection_end don't
303         really track the correct tags for the selection. So we'll manually
304         compute the correct tag here.
305
306 2007-03-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
307
308         * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
309           and Continuous styles. Fixes #79469.
310
311 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
312
313         * ToolStrip.cs: Implement Tooltips.
314         * ToolStripItem.cs: Create internal method for determining tooltip.
315
316 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
317
318         * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
319
320 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
321
322         * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
323         it prevents a problem thak keeps icon visible after application 
324         closes on win32.
325
326 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
327
328         * NotifyIcon.cs: Balloon properties and methods created.
329
330         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
331         XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
332
333 2007-03-25  Jonathan Pobst  <monkey@jpobst.com>
334
335         * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
336
337 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
338
339         * Control.cs: Make SetBoundsCore match MS better.  The BoundsSpecified
340         parameter indicates which aspects were explicit/user-set.
341         * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
342
343 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
344
345         * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
346         * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
347         SmallChange, and Value (2.0).
348         * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
349
350 2007-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
351
352         * ListView.cs: Always set item_control.Width in LayoutDetails
353         if View is Details. Setting it later in CalculateScrollBars
354         in a not-so-corner scenario (the sum of columns width is
355         not bigger than the ListView width when handle is created, and then
356         that sum gets bigger by increasing the width of the columns)
357         causes a very weird recursion path (which shouldn't be happening,
358         since header_control sets it in CalculateScrollBars too). This bug
359         appeared after Chris' fixes for handle created issues, so probably
360         it's related to some handle-creation time.
361
362 2007-03-23  Chris Toshok  <toshok@ximian.com>
363
364         * DataGrid.cs (GetVisibleRowCount): increase the row count in the
365         case where there's an add row, just so we don't end up in a case
366         where it's not displayed (this happens when the row is partially
367         obscured).  Fixes bug #79574.
368
369 2007-03-23  Jackson Harper  <jackson@ximian.com>
370
371         * TextControl.cs:
372         * TextBoxBase.cs:
373         * RichTextBox.cs: Preserve line endings in the lines text buffer,
374         also added an enum that represents the line ending type. 
375
376 2007-03-23  Andreia Gaita  <avidigal@novell.com>
377
378         * NumericUpDown.cs: Fix logic so Text and Value properties are not
379         messed with in every method call, but only from DownButton, 
380         UpButton, UpdateEditText() and ValidateText. Fixes #80346
381
382 2007-03-23  Chris Toshok  <toshok@ximian.com>
383
384         * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
385         format objects if the format spec is "".  Fixes bug #80889.
386
387 2007-03-22  Miguel de Icaza  <miguel@novell.com>
388
389         * ToolStripPanel.cs (Join): added stubs to build PDN3
390
391         * Control.cs (AutoScrollOffset): Add.
392
393         * SystemInformation.cs (MouseWheelScrollDelta): Expose this
394         property, its only implemented for Win32, on X11 it defaults to
395         some hardcoded value.
396
397         * ToolStripItem.cs (AllowDrop): Add property
398
399 2007-03-22  Mike Kestner  <mkestner@novell.com>
400
401         * ListView.cs : in FullRowSelect Details mode, only enable box
402         selection if the user clicks over the "item" column outside of the
403         text area.  Mmmmm, compatibility.  [Fixes #80374 subpart 7]
404
405 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
406
407         * Control.cs: ChangeParent: Call Form's ChangingParent even if the
408           handle is not created yet.
409         * Form.cs: Select: Don't call CreateHandle if the handle is already
410           created, avoids a stack overflow on Windows when we are recreating
411           controls.
412         * ScrollableControl.cs: Set the correct z-order for the scrollbars when
413           they are made visible, and override AfterTopMostControl to keep
414           them on top when other controls are brought to front.
415           CalculateCanvas: Scrollbars are only visible if auto_scroll is true
416           or force_*scroll_visible is true (old implementation always shows
417           scrollbars when needed, no matter what auto_scroll was set to).
418         * InternalWindowManager.cs: UpdateWindowDecorations: Add a
419           IsHandleCreated check.
420
421 2007-03-22  Andreia Gaita  <avidigal@novell.com>
422
423         * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
424         row or col separator.
425         * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
426
427 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
428
429         * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
430
431 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
432
433         * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
434         cursor for child controls. In ShowWindow and HideWindow now call SetCursor 
435         every time. Fixes #80410.
436
437 2007-03-22  Chris Toshok  <toshok@ximian.com>
438
439         * BindingSource.cs (AddNew): partially implement.
440
441         remove a couple of NotImplementedException's
442         to get bug #81148 closed.
443
444 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
445
446         [Fixes #80380]
447         
448         * Control.cs:
449         - UpdateCursor method added to update the screen cursor.
450         - GetAvailableCursor method added to return cursor for enabled tree,
451         it searches for cursor on control and it's parent's for enabled control.
452         - Call UpdateCursor method on setter of Cursor property.
453         - On setter of Enabled call UpdateCursor when it is false, we need to
454         change cursor to normal (or to this parent cursor) because cursor 
455         setting theres no effect to disabled controls.
456         - Some minor source changes to follow the coding style guidelines.
457
458         * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled 
459         controls.
460
461 2007-03-22  Chris Toshok  <toshok@ximian.com>
462
463         * XplatUIX11.cs: ignore the BadPicture errors cairo+render
464         generates.
465
466 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
467
468         * XplatUIX11.cs: Implement default locations for forms.
469         * Form.cs: Completely rework startup location for forms. Fixes #79964.
470         * Hwnd.cs: Add previous_child_startup_location (to track the current
471           startup location for any child forms of the current form) and
472           previous_main_startup_location (to track the startup location for
473           the current toplevel form).
474
475 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
476
477         * Control.cs: Don't trigger a layout if an implicit control is added
478         that isn't visible.  Also, don't notify the owner when an implicit control
479         is added.  (Owners shouldn't even know about their implicit controls.)
480
481 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
482
483         * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
484         to save some re-layouts.
485
486 2007-03-21  Everaldo Canuto  <everaldo@simios.org>
487
488         * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
489         [Fixes #81203]
490
491 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
492
493         * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
494         ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
495
496 2007-03-21  Mike Kestner  <mkestner@novell.com>
497
498         * ListView.cs : disable selection update for non-left button clicks
499         with mods and over selected items.  [Fixes #80524]
500
501 2007-03-20  Jackson Harper  <jackson@ximian.com>
502
503         * TextControl.cs:
504         * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
505         \r\r\n, \n.
506
507 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
508
509         * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
510           very probably a more complicated calculation there. Update the
511           textbox' ForeColor and BackColor when the ComboBox' colors are
512           changed. Change the border change in LayoutComboBox to only affect
513           the textbox, not all the calculations there. Seems to fix most of
514           #79436.
515
516 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
517
518         * ComboBox.cs: Handle Home and End keys as well as all combinations of
519           modifiers + navigation keys as input keys, enables advanced text
520           selection in the combobox (like Shift+Left Arrow for instance).
521           ComboTextBox now overrides Focused and returns whatever
522           ComboBox.Focused returns, since it really should be focused
523           whenever the ComboBox is. Fixes #80795. Also make the border around
524           the text box one pixel bigger, as mentioned in #79436.
525
526 2007-03-20  Jackson Harper  <jackson@ximian.com>
527
528         * TreeView.cs: Don't offset the images, this was causing some
529         artifacts when expanding/collapsing with images that were the
530         exact height of the treenode.
531
532 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
533
534         * TrackBar.cs: Query the theme for the correct value when the mouse
535           moves and the thumb is pressed. 
536         * Theme.cs: Added TrackBarValueFromMousePosition
537         * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
538           implementation was updating the trackbar value when drawing, now
539           the drawing methods only draw. Fixes #80900. Refactored the
540           calculations out to TrackBarValueFromMousePosition and
541           GetTrackBarDrawingInfo, so that TrackBar can get the correct value
542           according to the mouse position whenever it wants to. Changed the
543           light coloured pen when drawing the thumb from ControlLight to
544           ControlLightLight, because the ControlLight is the same colour as
545           the background so the 3D effect is lost. 
546
547 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
548
549         * Form.cs: In ShowDialog uses MainForm as transient form when no form is
550         defined. Fixes #80784.
551
552 2007-03-20  Marek Habersack  <mhabersack@novell.com>
553
554         * ContextMenuStrip.cs: align with the change introduced in
555         revision 74664.
556
557 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
558
559         * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs, 
560         XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner 
561         in SetTopmost.
562
563 2007-03-19  Chris Toshok  <toshok@ximian.com>
564
565         * Control.cs (WmPaint): don't make use of the Handle property
566         after an event is emitted, as the user could have closed the
567         form/destroyed the control.  Store the Handle in a local variable
568         and make use of that.  Fixes bug #80768.
569
570 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
571
572         * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
573         behavior in X11 environments.
574
575 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
576
577         * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
578         because on setter of topmost we dont call SetTopmost when handle is not
579         created.
580
581 2007-03-20  Jackson Harper  <jackson@ximian.com>
582
583         * TextControl.cs: Need to use SelectionLength () not
584         selection_length, since that var is reset to -1.
585         - Draw the caret when we don't have focus.
586         * TextBox.cs: The selectall actually doesn't occur until the first
587         focus.
588         * TextBoxBase.cs: Need to update the caret position after a
589         selectall.
590         
591 2007-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
592
593         * ListView.cs: Enable scrolling when using Tile view.
594
595 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
596
597         [Fixes #80902]
598
599         * XplatUIDriver.cs: Abstract SetOwner method created.
600
601         * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method 
602         must be implemented and was masked as todo.
603
604         * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with 
605         GWL_HWNDPARENT.
606
607         * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but 
608         cheking for null owner to remove transient. The SetTopmost will be change
609         on a decond step.
610
611         * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
612         SetTopmost. Now owned forms will work properly in win32 and X11.
613
614 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
615
616         * MdiWindowManager.cs: Update function name.
617         * Form.cs: After closing a form MdiParent is always null.
618         * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
619           better what it should do: necessary book-keeping when the form is
620           closed, it should not close the form itself.
621
622 2007-03-19  Andreia Gaita  <avidigal@novell.com>
623
624         * ListViewItem.cs: Fix back and fore color. The subitems only
625         use their own colors if they are set, otherwise use the listview's
626         colors. Don't set default colors on constructor for subitem.
627         Fixes #79315.
628
629 2007-03-19  Mike Kestner  <mkestner@novell.com>
630
631         * ListView.cs : make box selection for Details views with 
632         FullRowSelect conform to MS behavior when clicking in the "item" 
633         column and clicking outside the defined columns.
634         [Fixes case 5-6 of #80374]
635
636 2007-03-19  Chris Toshok  <toshok@ximian.com>
637
638         * ScrollableControl.cs: create the controls from within the ctor,
639         but don't actually add them until our handle is created.  this
640         fixes a NRE possibility jpobst found (if you override OnLayout in
641         a subclass, it's called before your ctor).  Also, add a
642         IsHandleCreated guard to UpdateSizeGripVisibility as well.
643
644 2007-03-19  Jackson Harper  <jackson@ximian.com>
645
646         * TextBox.cs: Reduce the amount of invalidation we do.
647         * TextBoxBase.cs: Make shortcuts enabled true by default, at least
648         some of them are true by default on MS.
649         - Add some functions to reduce the amount of invalidates we do.
650         * TextControl.cs: Less invalidation.
651
652 2007-03-19  Chris Toshok  <toshok@ximian.com>
653
654         [ Fixes #81773, and *seems* to fix #81553 as well ]
655
656         * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
657         AccumulateDestroyedHandles.  We need to do it *after* we send
658         WM_DESTROY, as the user's code can access Control.Handle in
659         OnHandleDestroyed, and this shouldn't cause a recreation.  Also,
660         move the WM_DESTROY/zombie handling to before the call to
661         XDestroyWindow.  For some reason without this ordering
662         FormTest.RecreateHandle hangs.  This ordering is semantically
663         equivalent, however, as XDestroyWindow is async anyway.
664
665 2007-03-19  Gert Driesen  <drieseng@users.sourceforge.net>
666
667         * RichTextBox.cs: Reset backcolor_set after setting default.
668
669 2007-03-19  Chris Toshok  <toshok@ximian.com>
670
671         * ScrollableControl.cs: the scroll position should not effect the
672         canvas size.  commit patch from georgegiolfan@yahoo.com, which
673         fixes some really bizarre behavior on resizing.  Fixes bug #80778.
674         
675 2007-03-19  Chris Toshok  <toshok@ximian.com>
676
677         * ScrollableControl.cs: clean this up a bit.  create the
678         scrollbars in the ctor and just show/hide them as needed.  Also,
679         make hscroll_visible/vscroll_visible internal to Recalculate, and
680         just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
681         everywhere else.  This seems to fix the scrollbars appearing
682         beneath the content for me (i have *no* idea why that is,
683         however.)
684
685 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
686
687         * ToolStrip.cs: Don't call DoAutoSize when we change Dock.  Also, remove
688         some redundacy for stuff in Anchor and Dock that base will take care of.
689         [Fixes #80762]
690
691 2007-03-19  Mike Kestner  <mkestner@novell.com>
692
693         * ListView.cs : make box selection for Details views without 
694         FullRowSelect dependent on the text bounds, not item bounds.
695         * ListViewItem.cs : add an internal property to obtain the TextBounds
696         in Details view.  [Fixes case 1-4 of #80374]
697
698 2007-03-19  Andreia Gaita  <avidigal@novell.com>
699
700         * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
701         we're < 2.0. #78448 && #80316
702
703 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
704
705         * FontDialog.cs: Don't crash when we switch to a new font that doesn't
706         have the same style available as the previously selected one.  Also,
707         support FixedPitchOnly property.  [Fixes bugs #80918, #80947]
708
709 2007-03-19  Jackson Harper  <jackson@ximian.com>
710
711         * TextControl.cs: Add an alignment property that all new lines
712         will be given.
713         - Make sure to use the align shift when calculating the line's X
714         position.
715         * TextBox.cs: Set the alignment on the document as well as on all
716         the document lines.
717
718 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
719
720         * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
721           throw if setting the parent of an mdichild that already has an
722           mdiparent. Update signature for 2.0 profile. ProductName: If there's no
723           AssemblyProductAttribute in the assembly, use the type's namespace (as
724           MS seems to do). CreateControl: don't create the handle if the control
725           is not visible (according to MS behaviour and spec).  SetTopLevel: Only
726           create handle if the control is not a form. Change FocusInternal to
727           virtual so that it can be overriden by Form.
728         * TextBox.cs: Update call to FocusInternal.
729         * Form.cs: Always create the handle when calling Focus on a MdiChild. The
730           form is not a toplevel form when it's a mdi child, so update is_toplevel
731           accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
732           hasn't been created. Show (IWin32Window): Don't allow this overload for
733           toplevel windows. CenterToParent/CenterToScreen/Select: create the
734           handle as MS does. SetVisibleCore: if called on a MdiChild and the
735           parent isn't visible yet, save the visibility and restore it when the
736           parent is made visible.
737         * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
738           methods, since the visibility of the scrollbars can be changed from
739           several places, not only from AutoScroll.
740           [Fixes #81179]
741
742 2007-03-19  Jackson Harper  <jackson@ximian.com>
743
744         * RichTextBox.cs: Enable shortcuts by default.
745         * TextBoxBase.cs: Add conditional shortcuts.  
746
747 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
748
749         * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).  
750
751 2007-03-19  Chris Toshok  <toshok@ximian.com>
752
753         [ Fixes bug #80604]
754         
755         * XplatUIX11.cs (WaitForHwndMessage): change this to actually
756         swallow the message we're waiting on, instead of delivering it, as
757         this is only used for the WM_SHOWWINDOW raised from
758         MapWindow/UnmapWindow, and the message needs to be generated
759         (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
760         before doing the Map/Unmap.  Also make sure that the Hwnd is still
761         alive after the message has been handled.
762
763         *before* the window is shown.
764
765         * Control.cs (CreateControl): guard a few more things inside the
766         if (!is_created) block, as we might end up being called again -
767         yay .net.
768         (WmShowWindow): call CreateControl if we're showing the control.
769
770 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
771
772         * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
773           controls without a handle if they have any parent with a handle. In
774           Dispose add a check whether the handle is created or not before
775           calling BeginInvoke, this removes the need of the extra disposing
776           parameter (which was bogus anyway since it didn't prevent the
777           invoke from happening, it only skipped the check for an existing
778           handle, meaning that the invoke would call on an inexistent
779           handle).
780
781 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
782
783         * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
784         appears in taskbar.
785
786 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
787
788         * MessageBox.cs:
789         - Fixed a problem that dont show help button for messages with 3 buttons.
790         - Refactory button size and position calculations, now dont use fixed 
791         values, also fixed button sizes (#80043) and form's border space.
792         - AddButton method created, now all other AddButton methods call this one.
793         - Some other source code cosmetic changes.
794
795 2007-03-18  Jackson Harper  <jackson@ximian.com>
796
797         * RichTextBox.cs: Don't do this all fonts must match check if
798         there is only one char selected.
799
800 2007-03-18  Jackson Harper  <jackson@ximian.com>
801
802         * TreeView.cs: ScrollWindow works properly now, so we don't need
803         to screw around with the scroll area.  This fixes some artifacts
804         when expanding and collapsing.
805
806 2007-03-18  Jackson Harper  <jackson@ximian.com>
807
808         * TextBoxBase.cs: Allow updating the selection position when the
809         cursor is outside the textarea, but we have a capture.
810         * TextControl.cs: A special case for when the cursor is outside
811         the bounds of the TB.
812         
813 2007-03-18  Jackson Harper  <jackson@ximian.com>
814
815         * TextBoxBase.cs: Remove image pasting code for now.  There is no
816         way to get an image on the clipboard right now anyways.
817         * TextControl.cs:
818         * RichTextBox.cs: Use the new RTF Picture class for pictures.
819
820 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
821
822         * MessageBox.cs:
823         - Set window properties in constructor intead of on CreateParams.
824         - Remove topmost from Window ExStyle.
825         - Set ShowInTaskbar to false.
826         - Set form border to FixedDialog.
827         - Some cosmetic changes and remove unneeded comments.
828         - It fixes itens 2,3 and 4 of bug #80043.
829
830 2007-03-18  Gert Driesen  <drieseng@users.sourceforge.net>
831
832         * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
833         none was explicitly set. Fixes part of bug #79949.
834
835 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
836
837         * ToolStripComboBox.cs: Add AutoComplete*.
838
839 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
840
841         * ToolStripComboBox.cs: Add FlatStyle.
842
843 2007-03-16  Jonathan Pobst  <monkey@jpobst.com>
844
845         * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
846         ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
847
848 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
849
850         * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
851           CheckBox.cs, RadioButton.cs, BindingSource.cs,
852           DataGridColumnStyle.cs: Remove warnings.
853
854 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
855
856         * Menu.cs: MergeMenu: Check menu argument for null before looping over
857           it.
858         * MdiWindowManager.cs: Add IsVisiblePending to track the pending
859           visibility of mdi child forms. FormSizeChangedHandler: update the
860           maximized size if size has changed while maximized.
861         * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
862           creating the handle.
863         * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
864           avoid creating the handle if not created.
865         * XplatUI.cs: Update debug output.
866         * XplatUIStructs.cs: Added ToString's for a couple of structs.
867
868 2007-03-16  Jonathan Pobst <monkey@jpobst.com>
869
870         * ContainerControl.cs: Give ToolStripManager the opportunity to handle
871         ProcessCmdKey().
872         * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs, 
873         ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
874         Implement keyboard shortcuts.
875
876 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
877
878         * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
879         Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog, 
880         ColorDialog and all derived classes.
881
882 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
883
884         [ Fixes bug #79828 ]
885
886         * ToolBar.cs:
887         - Rename ToolBarButtonInfor to ToolBarItem.
888         - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
889         - Maintain an array of ToolBarItem, used instead of ToolBarButton
890         collection to be able add same button more than one time on a toolbar.
891         - Refactory all properties and methods to use ToolBarItem. 
892
893         * ToolBarButton.cs: 
894         - Remove all propeties and methods that is now in ToolBarItem.
895         - Rectangle propery now gets the rectangle from first ToolBarItem to
896         mimic win32 behavior.
897         - Size calculation and layout methods also removed.
898
899         * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
900         ToolBarItem instead of ToolBarButton to right drawing buttons when
901         same button/separator was added more than one time to ToolBar.
902
903         * ThemeNice.cs: Same as above. 
904
905 2007-03-15  Andreia Gaita  <avidigal@novell.com>
906
907         * XplatUIX11.cs: Fire extra MouseMove events right after
908         MouseDown and MouseUp, emulating win32's <censored> behaviour
909         for apps that rely on it.
910
911 2007-03-15  Jackson Harper  <jackson@ximian.com>
912
913         * TextControl.cs:
914         * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
915         it is drawn on the controls client window and there is no NC
916         area.
917         - Set the background color to gray on 2.0 when we are readonly.
918
919 2007-03-15  Chris Toshok  <toshok@ximian.com>
920
921         [ Fixes bug #81144 ]
922         
923         * XplatUIX11.cs: implement VirtualScreen independently of
924         WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
925         property.
926
927 2007-03-15  Chris Toshok  <toshok@ximian.com>
928
929         * Hwnd.cs: add an internal field for the cached_window_state.
930
931         * XplatUIX11.cs: cache the window state, invalidating the cache
932         (and thus re-querying the X server) only when we see an update to
933         the _NET_WM_STATE property.
934
935 2007-03-15  Chris Toshok  <toshok@ximian.com>
936
937         * BindingSource.cs: get a lot of the unit tests working.
938
939 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
940
941         * Control.cs: Modify UpdateStyles to store distances when bounds >=
942         0 instead of just bounds > 0.  [Fixes bug #80912]
943
944 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
945
946         * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
947         and methods.
948
949 2007-03-15  Ivan N. Zlatev <contact@i-nz.net>
950         
951         * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
952         XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
953         XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
954         WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
955
956 2007-03-15  Chris Toshok  <toshok@ximian.com>
957
958         [ Fixes #81101 ]
959         
960         * Control.cs: add Ivan's fix for 81101, with a slight modification
961         - you can set control.Target to null.
962
963 2007-03-14  Jonathan Pobst  <monkey@jpobst.com>
964
965         * ToolStripItem.cs: If our OwnerItem is null, we can't use 
966         HideDropDown, use Hide instead to prevent an NRE.
967         [Fixes bug #81147]
968
969 2007-03-14  Jackson Harper  <jackson@ximian.com>
970
971         * TextBoxBase.cs: Mess with the creation stuff a little. We need
972         to calculate the document before the handle is created, in some
973         cases. (Actually just one case).
974
975 2007-03-14  Jackson Harper  <jackson@ximian.com>
976
977         * TextBoxBase.cs: Need to display the caret after letting the base
978         wndproc handle the focus methods, because the caret display
979         methods check the focus state.
980         - Try to display the caret after updating it's position with SelectWord.
981         - Don't need to do an immediate update on this recalc, since there
982         will be an invalidate anyways.
983
984 2007-03-14  Jackson Harper  <jackson@ximian.com>
985
986         * TreeView.cs: Some workarounds so that we can match event order a
987         little better.
988
989 2007-03-14  Gert Driesen  <drieseng@users.sourceforge.net>
990
991         * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
992         #80803. Avoid NullReferenceException when Control does not have
993         parent. Fixed different blinkstyle issues. Only subscribe to Tick
994         event a single time. Only draw error icon when control is created and
995         visible. Fixes failing unit tests.
996
997 2007-03-14  Andreia Gaita  <avidigal@novell.com>
998
999         * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
1000         Selecting events. Fire Leave and Enter events when changing tabs.
1001
1002 2007-03-14  George Giolfan  <georgegiolfan@yahoo.com>
1003
1004         * TreeView.cs: Add TreeViewNodeSorter.
1005         * TreeNodeCollection.cs: Add sorter parameter to Sort method.
1006
1007 2007-03-14  Chris Toshok  <toshok@ximian.com>
1008
1009         * Form.cs: go ahead and remove the RecreateHandles that jpobst
1010         removed earlier and I had him add back it.  It turns out metacity
1011         *does* in fact handle the MOTIF_WM_HINTS property changing, it
1012         just doesn't redraw the window titlebar until you resize the
1013         window.  This also means we aren't recreating the entire window
1014         hierarchy on X when you change this property.  And it looks better
1015         on windows, too.
1016
1017 2007-03-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1018
1019         * ListViewItem.cs:
1020         * ListView.cs: Collecting selection information
1021         is now done in SelectedIndexCollection rather than in
1022         SelectedListViewItemCollection. This is done so we can
1023         have the selection information code in one single place
1024         (virtual mode selection information entirely depends on
1025         SelectedIndexCollection).
1026
1027 2007-03-13  Miguel de Icaza  <miguel@novell.com>
1028
1029         * ErrorProvider.cs: Add stubs for ISupportInitialize
1030
1031 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1032
1033         * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
1034         in the right order with the right values, from the Checked property, 
1035         just as MS does (instead of triggering them from ListView).
1036
1037         * ListView.cs: Make OnItemCheck and OnItemChecked internal.
1038
1039 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1040
1041         * ListView.cs: Implement ItemChecked 2.0 event. Also cast to 
1042         the correct handler in OnItemCheck method (ItemCheckEventHandler 
1043         instead of EventHandler). This used to throw an InvalidCastException.
1044
1045 2007-03-13  Jackson Harper  <jackson@ximian.com>
1046
1047         * TextBoxBase.cs: Calculate the document before the handle is
1048         created, so there isn't an extra invalidate called.
1049
1050 2007-03-13  Jonathan Pobst  <monkey@jpobst.com>
1051
1052         * Form.cs: Don't set owner in ShowDialog until we are sure
1053         that we aren't going to throw an exception.  [Fixes bug #80773]
1054
1055 2007-03-12  George Giolfan  <georgegiolfan@yahoo.com>
1056
1057         * TreeView.cs: Make it compile.
1058
1059 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
1060
1061         * Control.cs: Another place we don't call SizeFromClientSize.
1062         * Form.cs: Another place we don't call SizeFromClientSize.
1063         [Fixes bug #81125]
1064
1065 2007-03-12  Jackson Harper  <jackson@ximian.com>
1066
1067         * TreeView.cs: Basically emulating some strangness here with
1068         exanding nodes and setting node positions when windows aren't
1069         created.
1070         - Also attempting to walk the node tree less than previously, and
1071         just use visible order calculations for determining offsets.
1072         - oops made scrolling backwards.
1073         * TreeNode.cs: We need to start nodes with a zero visible order,
1074         because the order calcs are based on the first nodes order.
1075
1076 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
1077
1078         * Form.cs: Don't exit the program if RecreateHandle is called on
1079         the main form.
1080
1081 2007-03-12  Chris Toshok  <toshok@ximian.com>
1082
1083         * XEventQueue.cs: remove the use of PostQuitState.
1084
1085         * XplatUIX11.cs: remove the use of PostQuitState.  If we get a
1086         WM_QUIT message in GetMessage, return false (and if we're in the
1087         nested WaitForHwndMessage, repost the WM_QUIT message).
1088
1089 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
1090
1091         * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
1092         or the MaximizeBox properties.  [Part of bug #80640]
1093
1094 2007-03-12  Everaldo Canuto  <everaldo@simios.org>
1095
1096         * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
1097         no links.
1098
1099 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
1100
1101         * ToolStripItem.cs: Fix some tests I broke by checking Visible
1102         instead of visible.
1103
1104 2007-03-12  Gert Driesen  <drieseng@users.sourceforge.net>
1105
1106         * FileDialog.cs: Use text of File name combobox to determine what
1107         files the user selected. Added tokenizer to parse the file names.
1108         Fixes bug #81123.
1109
1110 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
1111
1112         * Control.cs: We can't call SizeFromClientSize in the constructor,
1113         but we still need to do the same work, so make an internal version.
1114         [Fixes bug #80621]
1115
1116 2007-03-12  Jackson Harper  <jackson@ximian.com>
1117
1118         * TreeView.cs:
1119         * TreeNode.cs:
1120         * OpenTreeNodeEnumerator: Match MS better for IsVisible and
1121         IsExpanded.
1122
1123 2007-03-12  Jackson Harper  <jackson@ximian.com>
1124
1125         * TextBoxBase.cs: Now that the handles are being created a little
1126         later, we need to make sure that the document is recalculated when
1127         the handle is created.
1128
1129 2007-03-11  Everaldo Canuto  <everaldo@simios.org>
1130
1131         * Theme.cs: GetLinkFont abstract method added.
1132         
1133         * LinkLabel.cs: 
1134         - Remove CalcTrimRectangle, no longer needed.
1135         - Factor also remove, position issues must be fixed in libgdiplus.
1136         - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
1137         - GetPieceFont, CreateLinkFont and link_font removed, theme must be 
1138         care about font used to draw links.
1139         - Set TabStop to true when control is "Selectable", control is selectable
1140         when have one or more links. Fixes #80501 (test case is also added).
1141         - Set the LinkArea values after links change, LinkArea values must be
1142         based in first link position and size, a test case was created.
1143         - Fix ControlStyles.Selectable value, now is based on LinkArea value, 
1144         the attribute must be true LinkArea.Length > 0. The same was applied to
1145         TabStop.
1146         
1147         * ThemeWin32Classic.cs: 
1148         - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used 
1149         in draw method.
1150         - Use CPDrawStringDisabled to draw disabled text instead of hard code 
1151         color change.
1152         - Draw focus rectangle for every parts focused, including parts that 
1153         is on another line, its because regions returns various rectangles
1154         and not only one. Needed to mimic W32 look.
1155         - Uses Graphics.Clip to delimite region painted, it mean that now 
1156         complete text is passed to DrawString, with this we solve layout
1157         issues without create another text renderer.
1158         - Uses Region.Intersect to fix some flickers problems, now only needed
1159         parts will redrawed.
1160         - This changes fixes #79614 and some other unreported issues, on Linux 
1161         some layout problems still remain, the problem is under 
1162         MeasureCharacterRanges but it is an libgdiplus bug.
1163
1164 2007-03-10  Gert Driesen  <drieseng@users.sourceforge.net>
1165
1166         * TextBox.cs: Set for foreground color.
1167         * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
1168         this is already done in Control.
1169
1170 2007-03-10  Jackson Harper  <jackson@ximian.com>
1171
1172         * TextBox.cs: Set the background color, but reset the
1173         backcolor_set flag which is just for the user setting the
1174         background color.
1175
1176 2007-03-09  Chris Toshok  <toshok@ximian.com>
1177
1178         * Control.cs: really remove the call to XplatUI.SetVisible from
1179         CreateHandle(), like I said I did when I merged the branch.
1180
1181         * BindingSource.cs: implement some more of this stuff.
1182
1183 2007-03-09  Jackson Harper  <jackson@ximian.com>
1184
1185         * TextBox.cs: Don't explicitly set our background colors.
1186         * TextControl.cs:
1187         * TextBoxBase.cs: Draw readonly text.
1188         - Need to invalidate when backcolor or readonly are changed.
1189         
1190 2007-03-09  Jackson Harper  <jackson@ximian.com>
1191
1192         * TextBoxBase.cs: Don't set the forecolor until the handle is
1193         created.
1194         - Do not raise OnPaint, and removed some old debug code.
1195
1196 2007-03-09  George Giolfan  <georgegiolfan@yahoo.com>
1197
1198         * ScrollableControl.cs: Fix mouse wheel scrolling.
1199
1200 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
1201
1202         * Control.cs: Wire up MouseDoubleClick event.
1203
1204 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
1205
1206         * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
1207         top or bottom.
1208         * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
1209         * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
1210         item is added.  This logic was moved to ToolStrip.OnItemAdded.
1211         [Fixes bug #81090]
1212
1213 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1214
1215         * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
1216
1217 2007-03-08  Jackson Harper  <jackson@ximian.com>
1218
1219         * TreeView.cs: Show the correct image for selected node (this used
1220         to work, not sure how the code got deleted). Also implemented 2.0 feature
1221         SelectedImageKey.
1222
1223 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1224
1225         * ListView.cs:
1226         * ListViewItem.cs: Cache index in items when retrieving them
1227         in VirtualMode.
1228
1229 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
1230
1231         * ToolStripItem.cs: Don't return the explicit_size if we are using 
1232         AutoSize.  Fixes invalidation issue when user has explicitly set a
1233         size and has AutoSize = true.
1234
1235 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
1236
1237         * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
1238
1239 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
1240
1241         * DataGridView.cs: Remove event handler from DataView when a
1242         DataTable is used as DataSource.
1243
1244 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
1245
1246         * Control.cs: Create internal setter for client_size to allow it to be
1247         set without triggering resizing code.
1248         * Form.cs: Calculate client_size in constructor, only change client_size
1249         in FormBorderStyle property if Handle has been created.
1250         [Fixes #80574, #80791]
1251
1252 2007-03-08  George Giolfan  <georgegiolfan@yahoo.com>
1253
1254         * SystemInformation.cs: Add TerminalServerSession.
1255
1256 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
1257
1258         * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
1259         TreeView code.
1260
1261 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
1262
1263         * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
1264         Handle before we were supposed to.  Now checks ActivateOnShow property
1265         in Control.
1266         * Control.cs: Add internal ActivateOnShow property.
1267         * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
1268         for ActivateOnShow.
1269         * Hwnd.cs Remove no longer needed no_activate field.
1270
1271 2007-03-07  Jackson Harper  <jackson@ximian.com>
1272
1273         * TreeView.cs: Implement owner draw tree nodes.  And a couple more
1274         2.0 properties
1275         * DrawTreeNodeEventHandler.cs: Add
1276         * DrawTreeNodeEventArgs.cs: Correct default value.
1277         
1278 2007-03-07  Chris Toshok  <toshok@ximian.com>
1279
1280         * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
1281         to be called before NativeWindow.WndProc.  Put the HwndCreating
1282         magic there to hook up our Hwnd's to handles.
1283
1284 2007-03-07  Gert Driesen  <drieseng@users.sourceforge.net>
1285
1286         * DataGridView.cs: Comment out debug code.
1287
1288 2007-03-07  Chris Toshok  <toshok@ximian.com>
1289
1290         [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
1291         to make the rest of the world happy]
1292
1293         * Control.cs (CreateHandle): there's no need to call
1294         XplatUI.SetVisible here, it's effectively done by
1295         XplatUI.CreateWindow on X now, and always was on windows.
1296
1297         * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
1298         shortcircuit out of the loop if we have a message loop running on
1299         this thread.
1300
1301         [Changelog from merge]
1302
1303         2007-03-05  Chris Toshok  <toshok@ximian.com>
1304
1305                 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
1306                 causes handle creation.
1307
1308         2007-02-28  Chris Toshok  <toshok@ximian.com>
1309
1310                 * ApplicationContext.cs: Add a flag to make sure we only raise the
1311                 ThreadExit event once (ExitThreadCore can be indirectly called
1312                 from a few places.)  I don't like the additional flag, but it
1313                 makes the event ordering/count correct.
1314
1315                 * Application.cs (MWFThread.LoopCount): don't use an enumerator
1316                 without locking the collection.  An enumerator doesn't give us any
1317                 protection from modification anyway.  Lock the thread hash and
1318                 replace the complicated enumerator loop with a foreach.
1319                 (Application.CloseForms): make internal so it can be called from
1320                 ApplicationContext.  This should probably be moved to MWFThread.
1321                 (Application.ExitThread): don't call MWFThread.Current.Exit()
1322                 here.  just call XplatUI.PostQuitMessage.  We'll exit the thread
1323                 when the runloop exits (in response to WM_QUIT.)
1324                 (Application.RunLoop): add a comment (and check) for
1325                 context.MainForm being null after setting context.MainForm.Visible
1326                 = true.  This is because you're perfectly free to dispose of a
1327                 form in VisibilityChanged.  Chalk this up to another case where we
1328                 need to synchronously generate WM_ACTIVATE from Control.Show.
1329                 Also, add handling for WM_QUIT here so we'll exit the loop.
1330                 
1331                 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit.  The
1332                 fact that we don't wait if we're only unmapping the whole_window
1333                 makes me a bit nervous, but it doesn't seem to cause any problems
1334                 yet.
1335
1336                 also, add a comment about the stupid, broken and wrong resetting
1337                 of PostQuitState to false in GetMessage().
1338
1339                 In PostQuitMessage, we need to add a WM_QUIT message to the
1340                 thread's queue.  We use the FosterParent to get the right
1341                 handle/hwnd/queue.
1342
1343                 Lastly, in SetVisible, we need to unmap both windows, since the
1344                 waiting only happens when we're unmapping the client window.  So
1345                 now, the *only* time we unmap just the whole_window is in the hack
1346                 for resizing a control to 0,0.
1347                 
1348         2007-02-21  Chris Toshok  <toshok@ximian.com>
1349
1350                 * Application.cs (CloseForms): rewrite this so that we don't
1351                 modify the list while we're traversing it.
1352
1353         2007-02-20  Chris Toshok  <toshok@ximian.com>
1354
1355                 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
1356                 of OnHandleCreated.
1357                 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
1358                 handle is created.  otherwise we'll create it here.
1359                 (VerticalScrollEvent): same here.
1360
1361                 * Application.cs (CloseForms): call Form.Dispose, don't post
1362                 WM_CLOSE_INTERNAL.
1363
1364                 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
1365                 here. Application should Dispose() of the Form's.
1366
1367                 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
1368                 WM_DESTROY as well.
1369                 (MapWindow,UnmapWindow): only actually do the waiting for
1370                 SHOWWINDOW if the control we're dealing with is a Form.
1371                 (CreateWindow): if the control isn't a form, SendMessage
1372                 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
1373
1374                 * Control.cs (SetVisibleCore): always use is_visible here, not
1375                 value.  If we use value, we can end up re-setting something
1376                 visible if, for instance, you do Control.Hide() in a delegate
1377                 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
1378
1379         2007-02-20  Chris Toshok  <toshok@ximian.com>
1380
1381                 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
1382                 the message we need.  PeekMessage returning false should not be a
1383                 condition under which we exit the loop.
1384
1385         2007-02-15  Chris Toshok  <toshok@ximian.com>
1386
1387                 * Control.cs (Refresh): only refresh if we've got a handle and are
1388                 visible.
1389                 (CreateAccessibilityInstance): CreateControl() here.
1390                 (UpdateChildrenZOrder): complicate the code loop even more by
1391                 taking into account controls that haven't had their handle
1392                 created, and those that aren't visible.  But on the flip side,
1393                 simplify the code by splitting it into two loops.  one which
1394                 builds up the list of child controls we're interested in, and the
1395                 other that sets the z order of those children.
1396
1397         2007-02-14  Chris Toshok  <toshok@ximian.com>
1398
1399                 * Control.cs: Control.AccessibilityObject causes the control to be
1400                 created, not just the handle.
1401
1402         2007-02-14  Chris Toshok  <toshok@ximian.com>
1403
1404                 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
1405                 problem on X where a window might have its handle created (and be
1406                 visible) while the window is unmapped.  calling XConfigureWindow
1407                 on an unmapped window is bad, and generates X errors.
1408
1409         2007-02-13  Chris Toshok  <toshok@ximian.com>
1410
1411                 * Control.cs (CreateHandle): don't loop over our children setting
1412                 their parent here.  do it when in WndProc when we're shown.
1413                 (UpdateChildrenZOrder): make this internal so we can call it from
1414                 ScrollableControl.
1415                 (WndProc): for WM_SHOWWINDOW, reparent the child control after
1416                 creating its handle.  Also, remove the calls to PerformLayout from
1417                 here.  they're done in ScrollableControl.OnVisibleChanged.  Also,
1418                 OnVisibleChanged only seems to be called directly here for the
1419                 toplevel control.  It's propagated down the window hierarchy by
1420                 calls to child.OnParentVisibleChanged.
1421                 (OnVisibleChanged): don't do layout here - it's done (oddly
1422                 enough, according to a glance at stack traces on ms.net..) in
1423                 ScrollableControl.
1424                 
1425                 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
1426                 z order of our children before calling PerformLayout.
1427
1428         2007-02-12  Chris Toshok  <toshok@ximian.com>
1429
1430                 [big change, fixes #80020]
1431                 
1432                 * AccessibleObject.cs: we need to make owner internal again to fix
1433                 some of ControlAccessibleObject.
1434
1435                 * Control.cs: lots of changes here.  add support for WM_CREATE,
1436                 for which we generate OnHandleCreated.  Remove the OnHandleCreated
1437                 call from CreateHandle.  Also add support for WM_SHOWWINDOW where
1438                 we create child controls.  leave the MonoTODO's for the
1439                 accessibility calls, but fix the exceptions so the tests pass.
1440
1441                 Add the InvalidOperationExceptions to Invoke methods, and remove a
1442                 couple of InvokeInternal methods we aren't using.
1443                 
1444                 Also, add a couple of CreateHandle calls in places where we know
1445                 the handles are being created but our code doesn't reference
1446                 .Handle.
1447
1448                 Make SetVisibleCore call OnVisibleChange if the handle isn't
1449                 created.  If the handle is created, we rely on XplatUI.SetVisible
1450                 generating the event synchronously.
1451                 
1452                 Lastly, make sure we don't use this.Handle inside CreateHandle,
1453                 because we can call back into client (and that code can dispose of
1454                 the control).
1455
1456                 * XplatUIStructs.cs: misc/cleanup.
1457
1458                 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
1459                 although we don't populate the wParam properly.
1460                 (CreateWindow): generate WM_CREATE.
1461                 (MapWindow,UnmapWindow): make these calls synchronous, at great
1462                 performance expense (particularly in the unmap case), to match
1463                 win32 behavior.
1464
1465                 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
1466                 to call it.
1467                 (set_MdiParent): don't recreate the handle unless it's been
1468                 created already.
1469                 
1470                 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
1471                 it's created.
1472
1473                 * NativeWindow.cs: this is probably the weirdest part of the
1474                 patch.  We need a way to link up the window being created to the
1475                 WM_CREATE message.  Since we can only be creating one window at a
1476                 time on a given thread, we keep track of a per-thread reference so
1477                 we can dispatch it properly.  We also need to keep track of the
1478                 Hwnd currently being created so that the win32 backend doesn't
1479                 have problems.
1480                 
1481                 * XplatUIWin32.cs: a similar change to the one we made in
1482                 NativeWindow.cs.
1483
1484 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
1485
1486         * ToolStripItem.cs: Make CalculatePreferredSize virtual.
1487         * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
1488         to draw the menu shortcut string.
1489
1490 2007-03-07  Jackson Harper  <jackson@ximian.com>
1491
1492         * TreeNode.cs: Add the 2.0 collapse method.
1493
1494 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
1495
1496         * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
1497
1498 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
1499
1500         * DataGridView.cs: Change DataSource will clear column and row
1501         lists. Call Invalidate() to reflect DataSource change.
1502
1503 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
1504
1505         * DataGridView.cs: Add rows when DataSource is System.Data.DataView
1506         and a new row is added to it.
1507
1508 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
1509
1510         * DataGridView.cs: Add columns when DataSource is en empty list but
1511         is a System.Data.DataView (from a System.Data.DataTable).
1512
1513 2007-03-06  Andreia Gaita  <avidigal@novell.com>
1514
1515         * Label.cs: Implement AutoEllipsis (2.0)
1516
1517 2007-03-06  Jackson Harper  <jackson@ximian.com>
1518
1519         * TreeView.cs: Implement 2.0 TopNode setter property.
1520         - Use a local var instead of the skipped_nodes field for computing
1521         how many nodes to skip.  Otherwise we won't scroll because the
1522         valuechanged handler checks if skipped_nodes is equal to the new
1523         value.
1524         - Implement 2.0 Sort method.
1525         - Add useless 2.0 DoubleBuffer property
1526         - Implement 2.0 LineColors property.  Lets you change the color of
1527         the lines in the tree. Terribly useful for creating non cohesive
1528         desktops.
1529         - Implement 2.0 image key feature.
1530
1531 2007-03-06  Jackson Harper  <jackson@ximian.com>
1532
1533         * TreeView.cs: We can't get the bounds of the nodes before raising
1534         the AfterSelect event, because that event could change the node's
1535         bounds (scrolling, font change, etc).
1536
1537 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1538
1539         * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
1540         * Form.cs: Don't recreate handle when creating FormWindowManager, just
1541           update window styles. In CreateParams us VisibleInternal instead of
1542           VIsible to get the actual visible flag set for this form.
1543         * FormWindowManager.cs: Activate the form whenever the mouse clicks on
1544           the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
1545           handle the case when the form is already maximized, in which case
1546           it should be restored. Fixes #81043.
1547
1548 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1549
1550         * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
1551
1552 2007-03-05  Jackson Harper  <jackson@ximian.com>
1553
1554         * TreeViewHitTestInfo.cs: implement.
1555
1556 2007-03-05  Jackson Harper  <jackson@ximian.com>
1557
1558         * InternalWindowManager.cs: class status fix.
1559
1560 2007-03-05  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1561
1562         * InternalWindowManager.cs: All windows that have a parent
1563         are confined to their parent when they're being moved.
1564         Fixes #80822.
1565
1566 2007-03-04  Gert Driesen  <drieseng@users.sourceforge.net>
1567
1568         * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
1569         on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
1570
1571 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1572
1573         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
1574           buttons invisible before deciding which ones should be visible
1575           (fixes minimize/maximize buttons showing up in toolwindows). Remove
1576           an unused variable.
1577         * InternalWindowManager.cs: Remove warning.
1578
1579 2007-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1580
1581         * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
1582         to throw an InvalidOperationException is virtual mode is being used.
1583
1584 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
1585
1586         * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
1587         ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
1588         ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
1589         ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
1590         ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
1591         ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
1592
1593 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1594
1595         * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
1596           driver.KeyboardDelay from XplatUI.KeyboardDelay 
1597         * XplatUIW      in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
1598           (patch by Sergey Volk)
1599
1600 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1601
1602         * ToolWindowManager.cs: Added, contains logic for
1603           tool windows.
1604         * CreateParams.cs: Add a few helper methods and an
1605           internal variable to know which control the CreateParams belongs
1606           to.
1607         * Control.cs: Call Form.ChangingParent when the
1608           parent is about to be changed.
1609         * XplatUIX11.cs: DeriveStyles (): Set
1610           caption_height for all windows that have captions and are children.
1611           Update to use ToolWindowManager instead of InternalWindowManager
1612           for ToolWindows.
1613         * XplatUIWin32.cs: Set fake window styles for all
1614           windows that have window managers.
1615         * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
1616           now duplicated for mdi windows when they are
1617           maximized, first for the buttons the window itself has, then for
1618           the buttons that appear in the menu bar. Makes things a little
1619           easier). Updated UpdateWindowDecorations, SetWindowState and the
1620           mouse eventhandlers accordingly.
1621         * Form.cs: Add ChangingParent (), contains the
1622           logic of what should happen when the parent changes. In MdiParent
1623           don't set things that ChangingParent () is doing. When handling
1624           WM_CLOSE, we can close the form if there are any other modal forms
1625           and the current form is a descendent of the modal form.
1626         * InternalWindowManager.cs: A lot of refactoring,
1627           the title buttons are now extracted to a separate container class
1628           that takes care of all button code (clicks, tooltips, etc). Moved
1629           Iconic|Maximized|Normal Bounds properties to this class from
1630           MdiWindowManager, so that the window state logic can succeed for
1631           other than mdi wm's. Implemented general window state change logic.
1632           Moved CreateButtons to ThemeWin32Classic, since the theme might
1633           override which buttons are available when as well as the exact
1634           location.
1635         * FormWindowManager.cs: Added, contains logic for
1636           normal forms.
1637         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
1638           which buttons go where (and if they are at all visible). 
1639           Removed special handling of maximized windows, since they aren't special. 
1640           In DrawManagedWindowDecorations don't try to draw the text if it is
1641           empty.
1642         * MdiClient.cs: ArrangeIconicWindows: Don't  calculate any sizes, 
1643           use whatever the wm gives us.
1644
1645 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
1646
1647         * ButtonBase.cs: Add 2.0 properties.
1648         * Button.cs: Override Draw for 2.0.
1649         * Control.cs: Add Entered and Selected properties.
1650         * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
1651         TextRenderer.cs: Make internal for 1.1 to unify drawing code.
1652         * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
1653         buttons.
1654         * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
1655
1656 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
1657
1658         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code.  :/
1659
1660 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
1661
1662         * XplatUIWin32.cs: Register a new class with Windows each time we get
1663         a new ClassStyle.  [Fixes bugs #79432, #80817]
1664         * Controls.cs: Set the correct ClassStyle in CreateParams.
1665         * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
1666
1667 2007-03-01  Gert Driesen  <drieseng@users.sourceforge.net>
1668
1669         * ListView.cs: Add fireEvent argument to ReorderColumn since the
1670         ColumnReordered event must not be signaled when modifying DisplayIndex
1671         of a ColumnHeader. Added internal ReorderColumns method which takes
1672         care of drawing, and updating the internal DisplayIndex of the
1673         ColumnHeader. Added AddColumn method which is invoked from
1674         ColumnHeaderCollection when adding or inserting columns, and which
1675         ensures that reorder_columns_indices is kept in sync. Avoid redrawing
1676         after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
1677         Recalculated dispay indices after removing a ColumnHeader.
1678         * ColumnHeader.cs: Save DisplayIndex separately from ListView to
1679         match MS. Allows last display index to be returned after ListView
1680         is disposed. Update actual location of ColumnHeader when DisplayIndex
1681         is modified.
1682
1683 2007-03-01  Everaldo Canuto  <everaldo@simios.org>
1684
1685         * LinkLabel.cs: Improve CalcTrimRectangle.
1686         
1687         * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
1688
1689 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
1690
1691         * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
1692         get rectangle as a result value.
1693
1694 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
1695
1696         * LinkLabel.cs: Theres some diferences between rectangle return from 
1697         MeasureCharacterRanges and the area used for DrawString to fix this 
1698         CalcMeasurementFactor method was created, it calcules the diferences
1699         to be use later to adjust rectangle in draw operations. Fixes #80473.
1700         
1701         * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
1702         to adjust draw rectangle.
1703
1704 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
1705
1706         * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
1707         text and some other changes to reduce and optimize source code.
1708
1709 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
1710
1711         * RadioButton.cs: Implement 2.0 event.
1712         * RelatedImageListAttribute.cs: Implement new class.
1713
1714 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
1715
1716         * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
1717
1718 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
1719
1720         * CheckBox.cs: Implement 2.0 functionality.
1721
1722 2007-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1723
1724         * ListView.cs: Refactor Add and AddRange methods of
1725         ListViewItemCollection, to not update the ListView
1726         everytime an item is added in AddRange. Also move the update
1727         code to a new CollectionChanged method, and call it
1728         from other methods that need it as well (this should also fix some
1729         bugs when Sorting is used).
1730
1731 2007-02-27  Jackson Harper  <jackson@ximian.com>
1732
1733         * TextControl.cs: Try to never let the caret stay in a non-text
1734         tag.
1735         * TextBoxBase.cs: Update the caret.
1736
1737 2007-02-26  Jonathan Pobst  <monkey@jpobst.com>
1738
1739         * XplatUIStructs.cs: Add some convenience methods for POINT structure.
1740         * XplatUIWin32.cs: Add some convenience methods for RECT structure,
1741         delete POINT structure, duplicate of one in XplatUIStructs.
1742         * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
1743
1744 2007-02-26  Gert Driesen  <drieseng@users.sourceforge.net>
1745
1746         * ListView.cs: Initialize LabelEditEventArgs after setting Text of
1747         edit box since otherwise the Label would immediately be set (even if
1748         the user did not modify the label). In OnKeyDown set Handled to true
1749         if Return or Escape was pressed. In ColumnHeaderCollection unlink
1750         columns that are to be removed. In ListViewItemCollection unlink items
1751         that are to be removed.
1752
1753 2007-02-24  Jonathan Pobst  <monkey@jpobst.com>
1754
1755         * TextRenderer.cs: If we set a GDI clip region, we need to clear
1756         it when we are done.  [Fixes bug #80949]
1757
1758 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
1759
1760         * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
1761
1762 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1763
1764         * ListView.cs: I forgot to commit the changes for ListView 
1765         in my previous patch.
1766
1767 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
1768
1769         * Clipboard.cs: Partially implement an overload of SetDataObject.
1770         * Form.cs: Implement ShowWithoutActivation.
1771         * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
1772
1773 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1774
1775         This is a first set of changes to make the Virtual mode works,
1776         by avoiding the retrieval of ListViewItem instances until
1777         draw time.
1778
1779         * ListView.cs: Store item position in the ListView instead of the
1780         ListViewItem, this way we don't request the Bounds property of
1781         ListViewItem inside the ListView calculations, as well as cache the item
1782         size in item_size field. Store indexes instead of ListViewItem
1783         instances in the matrix used by icon view. Add a ItemMatrixLocation
1784         struct to hold the row and col info of the matrix info.
1785
1786         * ListViewItem.cs: Don't store the location anymore, and only cache
1787         the rectangles for GetBounds. Use the ListView.GetItemLocation
1788         method to retrieve the actual location.
1789
1790 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
1791
1792         * TextRenderer.cs: Add clipping support, thanks to George.
1793         [Fixes bug #80949]
1794
1795 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
1796
1797         * ListViewItem.cs: Cancel label edit when item is removed from 
1798         ListView.
1799         * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
1800         event before the edit textbox is displayed.  Added CancelEdit method
1801         which is used end to editing while ignoring the value set by the
1802         user. In EndEdit, set focus to ListView to avoid losing focus to
1803         other controls. In ListViewItemCollection.Clear, cancel editing of
1804         any of the items.  In Remove, cancel editing of item being removed.
1805         Avoid udplicate code by modifing RemoveAt to invoke Remove.
1806
1807 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
1808
1809         * FileDialog.cs: Update FSEntry when move is successful. Fixes
1810         bug #80948.  
1811
1812 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
1813
1814         * MainMenu.cs: Change Draw method to take care about MenuOrigin to be 
1815         compatible with non X11 systems. Fixes #80901.
1816
1817 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
1818
1819         * ListView.cs: Added bool argument to UpdateMultiSelection to specify
1820         whether the item should be unselected and reselect. We do no want this
1821         when we're starting to edit the label. Do not fire the 
1822         SelectedIndexChanged event from ListView when its already been fired
1823         by modifying ListViewItem.Selected. Fixes bug #80943.
1824
1825 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
1826
1827         * TextRenderer.cs: Previos commit logic was backwards.
1828
1829 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
1830
1831         * TextRenderer.cs: Don't add padding on MeasureText if we were
1832         sent the NoPadding flag.
1833
1834 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
1835
1836         * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
1837         after DrawButton. To prevent image overlaps button borders SetClip and 
1838         ResetClip added before and after draw image. Fixes #79129.
1839
1840 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
1841
1842         * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify 
1843         window size, it fix problem when you run under win32 that theres
1844         Size diferent than ClientSize. Also fix controls size and positions
1845         to mimic Win32. Fixes #80837.
1846
1847 2007-02-22  Everaldo Canuto  <everaldo@simios.org>
1848
1849         * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on 
1850         menu area to fix some problems for non X11 systems. Fixes #80613.
1851
1852 2007-02-22  Jackson Harper  <jackson@ximian.com>
1853
1854         * TreeNode.cs: When a node is expanded, set its is_expanded flag
1855         even if it doesn't have any children.
1856
1857 2007-02-22  Jackson Harper  <jackson@ximian.com>
1858
1859         * TreeView.cs: Calculate the top node 'on the fly', this
1860         eliminates issues where you need to click on the tree before
1861         scrolling it to get the top node computed correctly.
1862         * TreeNodeCollection.cs: We don't need to mess with the top node
1863         anymore.
1864
1865 2007-02-22  Jackson Harper  <jackson@ximian.com>
1866
1867         * DataGridViewRow.cs: Fix typo so height can actually be set.
1868         Patch by Peter Grimm.
1869
1870 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
1871
1872         * FileDialog.cs: Fixed support for renaming files and directories.
1873         * ListView.cs: Do not lose focus when edit is canceled. Process
1874         Escape as regular key (to prevent closing of dialogs).
1875
1876 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
1877
1878         * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
1879         spaces. Changed spaces to tabs. Removed unnecessary init of bools.
1880
1881 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
1882
1883         * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
1884         did not modify label.
1885         * ListView.cs: Only set LabelEditEventArgs.Label if user actually
1886         modified the text. Reset Label when user presses Escape in edit mode.
1887         Move focus to ListView after having cancelled or finished editing the
1888         label.
1889
1890 2007-02-21  Gert Driesen  <drieseng@users.sourceforge.net>
1891
1892         * ComboBox.cs: Removed unnecessary initializations. Marked items field
1893         private. Clear textbox when Text is set to null and SelectedIndex is
1894         already -1.
1895         * FileDialog.cs: Removed unnecessary initializations. Removed 
1896         workarounds for ComboBox bugs that are now fixed. Modified
1897         DefaultExt, InitialDirectory and Title property to change null to
1898         zero-length string in getters. Avoid directly accessing fields.
1899
1900 2007-02-20  Jackson Harper  <jackson@ximian.com>
1901
1902         * TextControl.cs: Remove RecalAlignments call, that was some
1903         debugging leftovers.
1904         - Don't use the line indent when we shouldn't.
1905         * RichTextBox.cs: Add support for paragraph left indents.
1906
1907 2007-02-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
1908
1909         * Control.cs: Fix BeginInvoke signature for 2.0 profile.
1910         Seems like the class status pages doesn't catch params differences.
1911
1912 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
1913
1914         * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
1915
1916 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
1917
1918         * ComboBox.cs: Setting Text should have no effect if item text of
1919         selected item exactly matches value. First lookup text using
1920         case-sensitive comparison, and fallback to case-insensitive comparison.
1921         FindString(Exact) returns -1 if search string is null. On 2.0 profile, 
1922         allow startIndex to be last index. Changed ArgumentOutOfRangeException
1923         paramname to match MS. Restart from first item if string is not found
1924         after startIndex. Fixed paramname of ArgumentNullException that is
1925         thrown for null value in ObjectCollection.Contains.
1926
1927 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
1928
1929         * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
1930
1931 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1932
1933         * ListControl.cs: In SelectedValue use value.Equals to compare for
1934         equality instead of ==, otherwise it will fail for strings.
1935         Fixes #80794.
1936
1937 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1938         
1939         * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
1940         since the caret won't show up unless ShowSelection is true. 
1941         Fixes #80795.
1942
1943 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1944
1945         * Application.cs: When disabling all forms but the main form, do not
1946           disable any descendants of the main form (such as mdi children or
1947           other parented forms). Fixes #80822 on Windows.
1948         * Form.cs: If we have a parent, set the WS_CHILD style.
1949         * Control.cs: Update the window styles if the control whose parent has
1950           changed is a form (the WS_CHILD style has to be switched).
1951
1952 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
1953
1954         * XplatUIStructs.cs: MsgUIState structure added.
1955
1956 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
1957
1958         * FileDialog.cs: Removed need for separate fileName field. On 2.0
1959         profile, do not check filename(s) for illegal character if filename(s)
1960         were set non-interactively but always check on 1.0 profile. Fixed NRE
1961          in DefaultExt and only strip off first leading dot. Improve exception
1962         message when invalid Filter is set. Do not ignore InitialDirectory if
1963         it does no exist. Store specified Title, and if empty use default
1964         title (depending on type of dialog). Added an internal DialogTitle 
1965         property for retrieving dialog title. Fixed logic of displayed dir to
1966         more closely match MS. Avoid setting ComboBox.Text to a zero-length 
1967         string as its buggy.
1968         * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
1969         FileName is a zero-length string (it can never be null). Override 
1970         DialogTitle property to set default title of dialog box.
1971         * SaveFileDialog.cs: Override DialogTitle property to set default
1972         title of dialog box.
1973
1974 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
1975
1976         * FileDialog.cs: Modify default text of filename and filetype labels
1977         to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
1978         after we've updated the SelectedIndex. Fixes part of bug #80887.
1979         * SaveFileDialog.cs: Set text of filetype label.
1980
1981 2007-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1982
1983         * LabelEditEventArgs.cs: New internal SetLabel method, to set the
1984         label field. Needed by latest Jackson's fixes for ListView.
1985
1986 2007-02-16  Andreia Gaita  <avidigal@novell.com>
1987
1988         * PrintPreviewControl/PrintPreviewDialog: Properly dispose of 
1989         print preview images.
1990
1991 2007-02-16  Jackson Harper  <jackson@ximian.com>
1992
1993         * ListView.cs: Make AfterLabelEdit work correctly.
1994         * FileDialog.cs: After changing the name of the folder, we have to
1995         make sure that it is created, or that we pop up an error because
1996         it already exists.
1997
1998 2007-02-16  Jackson Harper  <jackson@ximian.com>
1999
2000         * X11Dnd.cs: Implement aliases on mime handlers, so things like
2001         System.String are mapped to text.
2002         - Handle dataobjects, getting all the possible formats out of them
2003         - We dont need the drag event args before we give feedback. This
2004         allows feedback cursors to be immediate before selections have
2005         been converted.
2006
2007 2007-02-16  Jackson Harper  <jackson@ximian.com>
2008
2009         * TextBoxBase.cs: Modified the method for inserting images to
2010         taking a line and position instead of tag and position.
2011         * RichTextBox.cs: Handle PngBlip data by inserting the png image
2012         into the RTF file.
2013         * TextControl.cs: Allow images to be inserted as the first tag of
2014         a line.
2015         - Fix some off by one issues when we assume the first tag is a
2016         text tag, not an image tag.
2017
2018 2007-02-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2019
2020         * ListView.cs: Set focus to ListView when ItemControl gets a
2021         WM_RBUTTONDOWN message, to mimic .Net behaviour. 
2022         Fixes part of #80467.
2023
2024 2007-02-15  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2025
2026         * DateTimePicker.cs: Call RecreateHandle if the Format changes and
2027           validate Text input (if null or empty string reset Value to default
2028           value). Fixes #80830.
2029
2030 2007-02-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2031
2032         * ListView.cs: Set owner as null for columns and items when
2033         Dispose is invoked. Fixes #80607.
2034
2035 2007-02-14  Jonathan Pobst  <monkey@jpobst.com>
2036
2037         * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
2038         showing DropDowns, don't show a Grip when doing Flow layout.
2039         [This fixes the toolbox in PDN 2.72.]
2040         * ToolStripItem.cs: Add Anchor property and some internal properties to
2041         reduces needed changes to FlowLayout.
2042         * ToolStripOverflow.cs: Remove unused variable.
2043         * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
2044         use it in the layout calculations.
2045
2046 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
2047
2048         * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
2049         reported in #79640.
2050         
2051         * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
2052         size calculation.
2053
2054 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
2055
2056         * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from 
2057         MeasureString format, it can make button very large in some cases, it is
2058         strange but is what win32 do.
2059
2060 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
2061
2062         * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string 
2063         size calculation.
2064
2065         * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
2066         rendering, the value is based on MenuAccessKeysUnderlined.
2067
2068 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
2069
2070         * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
2071         for most themes.
2072         
2073         * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
2074         
2075         * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
2076         and use MenuAccessKeysUnderlined instead.
2077
2078 2007-02-13  Andreia Gaita  <avidigal@novell.com>
2079
2080         * ContainerControl.cs: Focus fix for nunit treeview selection bug.
2081         A selected control would not get a Focus call if:
2082                 - the default active control of the container is the same as
2083                   the one that was selected
2084                 - we are switching from one container to another
2085         Under these conditions, the container being selected already has
2086         an active_control, which is the same as the one being activated, 
2087         so set_ActiveControl would always return and not send the Focus
2088         call. Fix to check if the currently active control of the container
2089         is actually focused.
2090
2091 2007-02-13  Jonathan Pobst  <monkey@jpobst.com>
2092
2093         * StatusStrip.cs: Implement the spring layout.
2094         * ToolStripControlHost.cs: Make sure the hosted control's visibility
2095         always matches the host.
2096         * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
2097         and TextAfterImage.
2098
2099 2007-02-13  Andreia Gaita  <avidigal@novell.com>
2100
2101         * Control.cs: Code reorganization only.
2102           - Reorganize the WndProc cases so that each case has it's own handling method, 
2103           to help with the no-line-numbering stack traces.
2104           - Formatting changes (it's vstudio's fault, really :p)
2105
2106 2007-02-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2107
2108         * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
2109           Thread.CurrentUICulture to match DateTimePicker's (and MS)
2110           behaviour.
2111
2112 2007-02-12  Jackson Harper  <jackson@ximian.com>
2113
2114         * RichTextBox.cs:
2115         * TextBox.cs: By default we have a non multiline document
2116         - use the multiline property instead of the internal variable
2117         * TextBoxBase.cs: Treat multiline and non multiline the same in
2118         most places.
2119         - Use the documents multiline flag instead of tracking it ourself
2120         * TextControl.cs: Attempt at getting multiline to match MS
2121         behavior.  Lines now track an offset, which is either their X or Y
2122         offset depending on whether or not we are in multiline mode.
2123         - Update all the methods to understand that lines have an X value.
2124         - Fix crash in Undo::Duplicate when empty lines are deleted.
2125
2126 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
2127
2128         * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and 
2129         code moved to properties PreferredHeight and PreferredWidth. It solve the
2130         all problems when preferred sizes must be recalculated. Fixes #80801.
2131
2132 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
2133
2134         * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
2135         font height when compatible_text_rendering is false. Partially fix #80801.
2136
2137 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
2138
2139         * Form.cs: Fixed typo in exception message. Fixes bug #80779.
2140
2141 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
2142
2143         * Form.cs: Improved exception messages in ShowDialog.
2144
2145 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
2146
2147         * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
2148         PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
2149         if not set. Fixes bug #80764. Avoid accessing current_settings field
2150         directly.
2151
2152 2007-02-08  Everaldo Canuto  <everaldo@simios.org>
2153
2154         * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
2155         false.
2156
2157         * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
2158         public in 2.0 and for easy maintenance and dont break compatibility it is 
2159         internal in 1.1.
2160         
2161 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
2162
2163         * ToolStripItem.cs: Implement using images from ImageList.
2164
2165 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2166
2167         * DateTimePicker.cs: Change default date-formatting culture from
2168           CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
2169           seems to be the way MS does it.
2170
2171 2007-02-08  Andreia Gaita  <avidigal@novell.com>
2172
2173         * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image 
2174         (the 6 was cut off on the right side)
2175
2176 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
2177
2178         * Form.cs: Tell MenuStrips to close when the form is clicked.
2179         * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs, 
2180         ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
2181         ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
2182         ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add 
2183         support for Overflow, where items that do not fit are automatically
2184         reparented to a drop down menu.
2185         * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
2186         Also: fixes bug #80747.
2187
2188 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2189
2190         * ComboBox.cs: Remove warning (unused code).
2191         * ScrollableControl.cs: Remove warning for 1.1 profile.
2192
2193 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2194
2195         * Form.cs: Remove a warning.
2196
2197 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2198
2199         * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
2200           'g' specifier, not documented anywhere, but seems to always show up
2201           as a single space (might have something to do with the DateTime 'g'
2202           specifier, which is the era format, but since DateTimePicker can't
2203           go earlier than 1753 it wouldn't matter) . Fixed quote handling,
2204           won't crash if the format has an unmatched quote. Now shows
2205           single-character formats correctly. Fixes #80744.
2206
2207 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
2208
2209         * StatusStrip.cs: Stretch property needs to call base.Stretch,
2210         not this.Stretch to fix stack overflow. [Fixes bug #80760]
2211
2212 2007-02-07  Chris Toshok  <toshok@ximian.com>
2213
2214         * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
2215         background color.  it overwrites the background image we've
2216         already painted.  Fixes #80599.
2217
2218 2007-02-07  Chris Toshok  <toshok@ximian.com>
2219
2220         * DataGrid.cs: return immediately from Edit() when there are no
2221         columns.  Fixes #80662.
2222
2223 2007-02-07  Chris Toshok  <toshok@ximian.com>
2224
2225         * MessageBox.cs: fix #80625.  don't always show the Help button in
2226         2.0.  use the displayHelpButton parameter to determine if we
2227         should show it. Also, make the internal show_help field private.
2228
2229 2007-02-07  Chris Toshok  <toshok@ximian.com>
2230
2231         * Control.cs (SetVisibleCore): check in the proposed patch for
2232         80604, and set is_visible before calling CreateControl.
2233
2234 2007-02-07  Jonathan Pobst  <monkey@jpobst.com>
2235
2236         * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to 
2237         MonoInternalNote.  This is added automagically by VS2005, so let's not crash
2238         on it.
2239
2240 2007-02-06  Everaldo Canuto  <everaldo@simios.org>
2241
2242         * MenuAPI.cs: hotkey_active internal field added, it is required because
2243         we need to know when hotkeys must be draw, before this change a keystate
2244         Navigating was used but we can have menu in navigating state without
2245         hotkeys. Fixes #80694.
2246         
2247         * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
2248
2249 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2250
2251         * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
2252           corresponding events and methods to be internal for 1.1 profile and
2253           public for 2.0 profile (required by SizeGrip).
2254         * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
2255           implicit control list). Don't set the size nor the location of the
2256           SizeGrip anymore as it's not needed.
2257         * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
2258           draw directly on the captured control (fixes #80656). Removed
2259           ShowGrip (it wasn't used anywhere), redraw (always true), added
2260           GetDefaultSize and GetDefaultRectangle to calculate defaults.
2261         * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
2262           be called from SizeGrip.
2263
2264 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2265
2266         * Timer.cs: Throw ArgumentException if Interval <= 0.
2267
2268 2007-02-05  Jackson Harper  <jackson@ximian.com>
2269
2270         * TreeView.cs: We need to check scrollbar visibility when window
2271         visibility is updated, because non visible trees don't ever add
2272         scrollbars.
2273         * Cursor.cs: We want the override cursor to be reset to NULL when
2274         we set current cursor to the default cursor.
2275
2276 2007-02-05  Jackson Harper  <jackson@ximian.com>
2277
2278         * TextControl.cs: Don't have crlfs when we are non multiline.
2279         - Consolidate the line position.
2280
2281 2007-02-05  Jackson Harper  <jackson@ximian.com>
2282
2283         * X11Keyboard.cs: BACK+CTRL gets a special char code.
2284
2285 2007-02-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2286
2287         * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
2288           handling LeaveNotify->NotifyUngrab in order to send
2289           WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
2290           after calling XUngrabPointer, so we call WindowUngrabbed directly
2291           from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
2292         * Control.cs: Handle WM_CAPTURECHANGED in order to raise
2293           MouseCaptureChanged correctly. Also create handles if changing
2294           Capture (matches MS behaviour).
2295
2296 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2297
2298         * SizeGrip.cs: Make the last change 2.0 only.
2299
2300 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2301
2302         * SizeGrip.cs: If resizing and the capture is lost, revert any size
2303           changes to initial size (fixes #80597).
2304
2305 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2306
2307         * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
2308
2309 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2310
2311         * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
2312           background) and only allow dragging if enabled. This way the
2313           sizegrip can be used to fill the open square that otherwise would
2314           have been shown in the bottom right corner of ScrollableControl
2315           when ScrollableControl is not suppose to support sizing.
2316         * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
2317           sizegrip is shown and enabled, and hook up with necessary events.
2318
2319 2007-02-01  Chris Toshok  <toshok@ximian.com>
2320
2321         * DataGridTextBoxColumn.cs: clean up the
2322         GetFormattedString/GetColumnValueAtRow combination of functions.
2323         Also fix UpdateUI, and the initial state of
2324         IsInEditOrNavigateMode.
2325
2326         * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
2327         aren't supposed to scroll the textbox here, we're supposed to
2328         scroll the datagrid.
2329
2330 2007-02-01  Chris Toshok  <toshok@ximian.com>
2331
2332         * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
2333         setting the position.
2334
2335 2007-02-01  Chris Toshok  <toshok@ximian.com>
2336
2337         * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
2338         here, since the most recent focus fixes keep us from generating
2339         the Leave event when our textbox gets focus.
2340         (Edit): we should be passing null for the column style's
2341         instantText parameter.
2342         
2343 2007-02-01  Jonathan Pobst  <monkey@jpobst.com>
2344
2345         * ToolStripDropDownItem.cs: Make sure DropDownOpening event is 
2346         raised.  Fixes menu text/icons not showing up in PDN.
2347
2348 2007-02-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2349
2350         * Control.cs: Remove code in constructor that makes every
2351         control with WS_CHILD set have initial location -1, -1.
2352
2353 2007-01-31  Jackson Harper  <jackson@ximian.com>
2354
2355         * X11Dnd.cs: Take the keyboard on init to reduce coupling with
2356         XplatUIX11.
2357         * XplatUIX11.cs: Give teh keyboard to teh dnd.
2358
2359 2007-01-31  Jackson Harper  <jackson@ximian.com>
2360
2361         * X11Dnd.cs: Use IDataObject instead of the DataObject class.
2362         - Remove some debug code.
2363
2364 2007-01-31  Jackson Harper  <jackson@ximian.com>
2365
2366         * XplatUIX11.cs: If you set the override cursor during a grab, it
2367         should actually override the grab cursor.  This comes into play
2368         when you are setting custom cursors in a DND feedback method.
2369
2370 2007-01-31  Jackson Harper  <jackson@ximian.com>
2371
2372         * X11Dnd.cs: Add support for handling the QueryContinue and
2373         GiveFeedback events.
2374         - Cancel drag and drop actions when the escape key is clicked.
2375         * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
2376         can handle the ESCAPE key.
2377         - Allow dnd to swallow BUTTONUP messages if it needs to.  This is
2378         done when dnd events are continued after the button is released.
2379         - Add a new helper method so that dnd can translate key events.
2380
2381 2007-01-31  Alexander Olk  <alex.olk@googlemail.com>
2382
2383         * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
2384         make it more obvious what is happening.
2385
2386 2007-01-30  Jackson Harper  <jackson@ximian.com>
2387
2388         * XplatUIX11.cs: Don't break when handling button release in drag
2389         and drop operations. We need that BUTTONUP message to get through
2390         so capture is released.
2391         * X11Dnd.cs: We don't need to manually grab the pointer anymore,
2392         this is handled automatically when the mouse is down.
2393
2394 2007-01-30  Jackson Harper  <jackson@ximian.com>
2395
2396         * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
2397         is closed, so we need to make sure that we aren't changing the
2398         dialog result when the OK (Open or Save) button has been clicked
2399         and we are closing the window ourselves.  Note we don't need to
2400         worry about the cache being written in this case, because it was
2401         already done in the previous FilOk call.
2402
2403 2007-01-30  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2404         
2405         * DateTimePicker.cs: Remove a warning.
2406         * ComboBox.cs: Remove a couple of warnings.
2407
2408 2007-01-29  Chris Toshok  <toshok@ximian.com>
2409
2410         * XplatUIX11.cs: don't crash, and remove the icon if the user has
2411         set one, if SetIcon is passed a null icon.
2412
2413 2007-01-29  Andreia Gaita  <avidigal@novell.com>
2414
2415         * TextBox.cs: Redraw when the password characters changes
2416         * TextControl.cs: Check if textbox has a password char and draw 
2417         a line of password chars instead of the text in the line. LineTag gets 
2418         an extra Draw() method which allows document.Draw to override the text 
2419         that will be drawn. Removes 1024 char limitation on length of passworded 
2420         lines.
2421
2422 2007-01-29  Jackson Harper  <jackson@ximian.com>
2423
2424         * TextBoxBase.cs: Deleting sections of text is undoable.  Deleting
2425         single chars is not.
2426
2427 2007-01-28  Jonathan Pobst  <monkey@jpobst.com>
2428
2429         * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
2430         one pixel.  Fix a StackOverflowException caused by an overload wrongly
2431         calling itself.
2432
2433 2007-01-26  Everaldo Canuto  <everaldo@simios.org>
2434
2435         * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
2436         also remove ProcessArrowKey and put the code inside ProcessKeys.
2437
2438 2007-01-26  Jonathan Pobst  <monkey@jpobst.com>
2439
2440         * PaddingConverter.cs: Added.
2441
2442 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2443         
2444         * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
2445         ShowPanels is false (fixes #80600). Only draw up to 127 characters
2446         of text (fixes #80601). For panels clip the text to draw to the
2447         panel (fixes #80603).
2448
2449 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2450
2451         * ComboBox.cs: Fixed implementation of ResetText.
2452
2453 2007-01-25  Jackson Harper  <jackson@ximian.com>
2454
2455         * TextControl.cs: For the last char of a line we need to use the
2456         line size, not that chars width, since it won't actually be
2457         computed since the right side of a char is based on the start of
2458         the left side of the next char, and the next char does not exist.
2459
2460 2007-01-25  Chris Toshok  <toshok@ximian.com>
2461
2462         * Splitter.cs: fix the new unit tests, and reindent some switch
2463         statements.
2464
2465 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2466
2467         * ComboBox.cs: Implemented 2.0 methods and events.
2468         * TextBoxBase.cs: Added OnTextUpdate, so that
2469         ComboBox.ComboTextBox can inform ComboBox of it.
2470
2471 2007-01-25  Jackson Harper  <jackson@ximian.com>
2472
2473         * TextControl.cs: Respect ShowSelection when deciding whether or
2474         not to display the caret, this allows comboboxes to have carets
2475         when the combotextbox does not have focus.
2476
2477 2007-01-25  Jackson Harper  <jackson@ximian.com>
2478
2479         * TextControl.cs: Add a Suspend/Resume for updating, basically the
2480         same as the Suspend/Resume for recalc, except this will do actual
2481         Invalidates.
2482         - New Undo manager, works much like the MS version.
2483         - Implemented Redo
2484         * TextBoxBase.cs: The Cut operation is undoable.
2485
2486 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2487         
2488         * TextBoxBase.cs: Don't antialias text. Makes it look way better
2489         on Windows (no difference on Linux).    
2490
2491 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2492
2493         * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
2494         we don't want to activate any windows. Fixes #79433.
2495
2496 2007-01-25  Jonathan Pobst  <monkey@jpobst.com>
2497
2498         - ButtonBase.cs: Fix capitalization of parameter: disposing.
2499         [Fixes bug #80609]
2500
2501 2007-01-25  Alexander Olk  <alex.olk@googlemail.com>
2502
2503         * FileDialog.cs:
2504         - Move to using System.ComponentModel.EventHandlerList
2505         - Replace Refresh with Invalidate
2506         - Clear the mime filecache on closing
2507         - Some other memory reducing work. After beeing closed FD now uses
2508           only about 300 KB for the fdo mime stuff plus the memory of the
2509           cached icons.
2510         * Mime.cs: Changed coding style and removed unnecessary commented
2511         code. Some more memory memory reducing work.
2512
2513 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2514
2515         * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
2516         a few other missing 2.0 properties.
2517         * Theme.cs: Added DrawFlatStyleComboBox.
2518         * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
2519
2520 2007-01-24  Chris Toshok  <toshok@ximian.com>
2521
2522         * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
2523         wake_waiting flag, not just when there's data to be read.  if we
2524         don't, then future wakeup's won't reach us and we'll be doomed to
2525         wait for the entire 1 second timeout forever (unless there are X
2526         events to be had).
2527
2528 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
2529
2530         * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
2531         until you pass Items.Count, not Items.Count - 1 like 1.1.
2532
2533 2007-01-24  Gert Driesen  <drieseng@users.sourceforge.net>
2534
2535         * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
2536
2537 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
2538
2539         * ToolStripContainer.cs: The recent Dock fix exposed that I was
2540         adding the panels in the wrong order.
2541
2542 2007-01-24  Jackson Harper  <jackson@ximian.com>
2543
2544         * TextBoxBase.cs: When we move the caret we also need to move the
2545         selection, this fixes some random crashing after doing select
2546         text, unselect, delete a char, paste.
2547
2548 2007-01-24  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2549
2550         * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
2551
2552 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
2553
2554         * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
2555         OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553. 
2556         * ToolBar.cs: Force redraw in BackgroundImageChanged.
2557
2558 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
2559
2560         * ToolBar.cs:
2561         - Implement support for vertical toolbars. Fixes #80539;
2562         - Call LayoutToolBar when resize, it fix some other problems in layout.
2563         - Rename requested_height to requested_size, as we can have width on it
2564         when toolbar is vertical.
2565         - Create a private property "Vertical" that uses Dock to verify when 
2566         toolbar is vertical or not.
2567         - Set ControlStyles when change Dock property.
2568         - Refactory in LayoutToolBar to have better variables names and to support
2569         vertical toolbars.
2570         - Fixes default value for ButtonSize when button count is equal zero, size
2571         must be (39, 36) test case writed.
2572
2573 2007-01-23  Chris Toshok  <toshok@ximian.com>
2574
2575         * Control.cs: fix the checks so that they work correctly for mdi
2576         parents/children.
2577
2578 2007-01-23  Chris Toshok  <toshok@ximian.com>
2579
2580         * Control.cs: ControlCollection seems to have super-secret
2581         abstraction breaking knowledge of Mdi containers.  allow MdiClient
2582         to add toplevel controls.
2583
2584 2007-01-23  Chris Toshok  <toshok@ximian.com>
2585
2586         * Control.cs: throw an ArgumentException if a toplevel control is
2587         added to our control collection from ControlCollection.Add, as
2588         well as from ControlCollection.IList.Add.  This fixes the
2589         ControlSetTopLevelTest.TestTopLevelAdd unit test.
2590
2591         Also, in ControlCollection.IList.Add, don't through an
2592         ArgumentNullException, throw an ArgumentException, when value ==
2593         null.  This matches MS.
2594
2595 2007-01-23  Chris Toshok  <toshok@ximian.com>
2596
2597         * BindingSource.cs: initial, incomplete, implementation of
2598         BindingSource.
2599
2600 2007-01-23  Jackson Harper  <jackson@ximian.com>
2601
2602         * TextControl.cs:
2603         * TextBoxBase.cs: Checking in some pieces of the undo stuff so
2604         that I can fix a broken unit test (TextBoxTest::ClearUndo)
2605         
2606 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
2607
2608         * ToolBar.cs: Add status fields to ToolBarButtonInfo.
2609
2610 2007-01-23  Andreia Gaita  <avidigal@novell.com>
2611
2612         * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
2613         * TreeNodeCollection.cs: New Add() methods, ContainsKey and
2614         IndexOfKey() for 2.0
2615
2616 2007-01-23  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2617
2618         * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
2619         to prevent it from changing z-order.
2620         * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
2621         leave UI updates in MdiWindowManager.
2622         * InternalWindowManager.cs: Check for 0 sized nc areas and make them
2623         1 sized (NC handling goes weird on Linux otherwise).
2624         * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
2625         necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
2626         remove a few NCRequestRecalcs. Changed calculations in IconicBounds
2627         to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
2628         and SetWindowState(s) to allow for changing the size of an activated child
2629         before activating it (reduces a lot of flicker).
2630
2631 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
2632
2633         * Form.cs: Changing FormBorderStyle has different semantics based
2634         on whether the Form is visible or not.  If not visible, don't change
2635         the Size.  But InvalidateNC needs to be called to force the window
2636         to pick up the changes and redraw itself.  [Fixes bug #80574]
2637
2638 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
2639
2640         [Moma work]
2641         * ContainerControl.cs: ProcessCmdKey.
2642         * ErrorProvider.cs: new constructor.
2643         * Form.cs: fix AutoValidateEvent compiler warning.
2644         * Label.cs: fix OnAutoSizeChanged compiler warning.
2645         * MenuStrip.cs: fix CanOverflow compiler warning.
2646         * TabControl.cs: SelectTab, OnSelected methods, Selected event.
2647         * TextBox.cs: Dispose.
2648         * ToolStrip.cs: CanOverflow, re-enable double buffering.
2649         * ToolStripControlHost.cs: fix CausesValidation compiler warning.
2650         * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
2651         * ToolStripItem.cs: Overflow, RightToLeft properties.
2652
2653 2007-01-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2654
2655         * Form.cs: Move the layout of the main form to MdiWindowManager.
2656         * MdiWindowManager.cs: If WindowState changes from or to Maximized,
2657         do a layout of the main window to update MdiClient's client area to
2658         the right area. Fixes #80533. Remove the calculation of nc size, 
2659         it was just wrong and the correct one is the same as for 
2660         InternalWindowManager. 
2661
2662 2007-01-20  Jonathan Pobst  <monkey@jpobst.com>
2663
2664         * Control.cs: Setting Anchor or Dock needs to reset the other
2665         to its default.  [Fixes bug #80556]
2666
2667 2007-01-20  Chris Toshok  <toshok@ximian.com>
2668
2669         * CheckedListBox.cs: class status changes.
2670
2671         * ScrollableControl.cs: same.
2672
2673         * RichTextBox.cs: same.
2674
2675         * ContainerControl.cs: same.
2676
2677         * ListView.cs: same.
2678
2679         * NotifyIcon.cs: same.
2680
2681         * MenuStrip.cs: same.
2682
2683         * RadioButton.cs: same.
2684
2685         * CheckBox.cs: same.
2686
2687         * PrintPreviewDialog.cs: same.
2688
2689         * Form.cs: same.
2690
2691 2007-01-19  Jonathan Pobst  <monkey@jpobst.com>
2692
2693         * TreeNode.cs: Apply Alan's patch for Name property.
2694
2695 2007-01-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2696         
2697         * Form.cs: Implemented SizeGripStyle.
2698         * SizeGrip.cs: Check for minimum and maximum size for the
2699         control being resized and only resize if size has actually
2700         changed.
2701
2702 2007-01-19  Chris Toshok  <toshok@ximian.com>
2703
2704         * DataGridColumnStyle.cs: stop setting _readonly in the
2705         PropertyDescriptor setter.  fixes a unit test failure.
2706
2707         also, rename ParentReadOnly to TableStyleReadOnly, and have it
2708         just consult our table style (if we have one).  We don't need to
2709         consult the datagrid readonly attribute because that's passed in
2710         as the _ro arg to Edit.  this simplifies things a little.
2711         
2712         * DataGrid.cs: use CurrentColumn instead of
2713         current_cell.ColumnNumber just to simplify some of the code.
2714
2715         switch the order of some things in the CurrentCell setter to keep
2716         the previous cell from getting a textbox again -
2717         EnsureCellVisibility causes scrolling to happen, which calls Edit.
2718         So we need to set the new cell before calling it.
2719         
2720         call Edit in OnEnter, as does Microsoft.
2721         
2722         also, make sure the current table style isn't the one we create
2723         initially when checking to see if it's different than the one
2724         we're setting it to in BindColumns (this fixes #80421).
2725
2726         * GridTableStylesCollection.cs: table styles can have "" for a
2727         mapping name.  part of the fix for #80421.
2728
2729         * DataGridTextBoxColumn.cs: simplify the readonly calculation in
2730         Edit significantly.
2731
2732 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
2733
2734         * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
2735         and less GDI object leaky-er.
2736
2737 2007-01-18  Andreia Gaita  <avidigal@novell.com>
2738
2739         * LinkLabel.cs: Add opaque control style
2740
2741 2007-01-18  Jackson Harper  <jackson@ximian.com>
2742
2743         * TextControl.cs: Calculate width properly.
2744         - Don't store the tag's X offset, this can be figured out very
2745         easily.
2746         - When getting the caret tag make sure to get the last empty tag.
2747
2748 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
2749
2750         * Form.cs: Recalculate our size after setting a new FormBorderStyle.
2751         [Fixes bug #79959]
2752
2753         * Control.cs: Color.Empty shouldn't count for previous transparent
2754         redraw changes.
2755
2756 2007-01-18  Jackson Harper  <jackson@ximian.com>
2757
2758         * TextBox.cs:
2759         * RichTextBox.cs:
2760         * TextControl.cs: Starting to merge in some pieces of my older
2761         undo work.  Basically just some slight cleanup of the undo API.
2762
2763 2007-01-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2764
2765         * TrackBar.cs: Fix signature of RightToLeftLayout.
2766         * StatusBar.cs: Implemented missing 2.0 methods and attributes.
2767         * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
2768         * Application.cs: Implemented UseWaitCursor.
2769
2770 2007-01-18  Jackson Harper  <jackson@ximian.com>
2771
2772         * TextControl.cs: We can't skip tags if any part of the tag is
2773         visible.
2774
2775 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
2776
2777         * ContainerControl.cs: Override OnLayout.
2778
2779 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
2780
2781         * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
2782
2783         * ContextMenuStrip.cs: Make sure context menu is shown on top of 
2784         everything else.
2785
2786 2007-01-18  Chris Toshok  <toshok@ximian.com>
2787
2788         * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
2789         (leftover from the container_selected days, I'd wager).  fixes bug
2790         #80546.
2791
2792 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
2793
2794         * Control.cs: Apply patch from George to fix the new testcase on
2795         bug #80451.  We can't just check for Color.Transparent, we need 
2796         to check if the back color's alpha channel is < 255.
2797
2798 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
2799
2800         * Form.cs: Move setting show_icon = true to before the constructor
2801         so that the base constructor has that information when it calculates
2802         the form's size.  Was causing forms to be (6, 6) bigger than they
2803         were supposed to be.  Thanks for catching this Rolf!
2804
2805 2007-01-18  Jackson Harper  <jackson@ximian.com>
2806
2807         * TextControl.cs: When replacing a selection we need to invalidate
2808         from the initial selection start, because selection start is moved
2809         to the end of the replacement.
2810
2811 2007-01-18  Andreia Gaita  <avidigal@novell.com>
2812
2813         * LinkLabel.cs: Missing ControlStyles. Fixes #80482
2814
2815 2007-01-18  Chris Toshok  <toshok@ximian.com>
2816
2817         * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
2818         I just added.
2819
2820 2007-01-17  Everaldo Canuto  <everaldo@simios.org>
2821
2822         * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every 
2823         layout methods and properties from ToolBarButton must be available
2824         into ToolBarButtonInfo.
2825
2826 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
2827
2828         * Control.cs: If the control has a transparent background, we
2829         need to refresh it when it moves and when it's parent's background
2830         image changes.  [Fixes bug #80451]
2831
2832 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
2833
2834         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code!  Doh!
2835
2836 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
2837
2838         * XplatUIWin32.cs: Implement proper double buffering for Windows.
2839         [Fixes bug #80447, and probably speeds up things as well]
2840
2841 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2842
2843         * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
2844         * XplatUIWin32.cs: We need to recalculate NC size after changing 
2845         window style to toolwindow (otherwise the client rectangle will be
2846         3 pixels to small for some reason).
2847         * MdiWindowManager.cs: Revert NC size calculations to match how
2848         they are calculated only based on window styles (to match
2849         Win32AdjustWindowRectEx, since otherwise when setting size or 
2850         location, Control will call Win32AdjustWindowRectEx to update client 
2851         size, which would provoke a paint, then we'd get a NCCALCSIZE and 
2852         calculate a different value of client size causing another paint 
2853         (and flickering))
2854         * InternalWindowManager.cs: When moving or resizing a window only
2855         update size or location if they actually changed.
2856         * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
2857         (seems to match Windows behaviour better). Cleaned up 
2858         ManagedWindowDecorations to draw what's needed and nothing else
2859         (was drawing borders and lines where they shouldn't be)
2860         * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
2861         (style = 0xFFFF) and takes into account caption height when 
2862         calculating window rectangle.   
2863
2864 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
2865
2866         * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button 
2867         can be added to toolbar multiple times, we need to maintain a list of 
2868         button information for each positions.
2869
2870 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
2871
2872         * ToolBar.cs: Some small stetic changes.
2873
2874 2007-01-16  Jackson Harper  <jackson@ximian.com>
2875
2876         * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
2877         that allow us to have nested recalc = false blocks.
2878         - Add paste support for images in the RichTextBox
2879         * RichTextBox.cs: flush the text after the color is changed, so
2880         the change takes effect.
2881         - Use SuspendRecalc
2882         - Some extra debugging info
2883         * TextControl.cs: Tags no longer track their length, it is just
2884         computed from the next tags length, this makes things a little
2885         simpler and reduces places that we have to track length changes.
2886         - Refactored the linetag class a little so we could make it
2887         a base class for different kinds of tags
2888         - Created a image tag, a tag that can have a single image inserted
2889         into it
2890         - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
2891         that we can call suspend multiple times.
2892         - Add some debugging methods
2893
2894 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2895
2896         * MdiClient.cs: Add ActivatePreviousChild for 
2897         mdi child window navigation.
2898         * Form.cs: Use MdiClient.ActivateNextChild/
2899         ActivatePreviousChild instead of Form.SelectNextControl
2900         to select the next/previous child since 
2901         SelectNextControl doesn't do it in the same order
2902         as mdi children should do it.
2903
2904 2007-01-16  Chris Toshok  <toshok@ximian.com>
2905
2906         * Control.cs: remove container_selected field.
2907
2908 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2909
2910         * MdiClient.cs: Update main form's ActiveChild when
2911         updating keyboard focus for the mdi child.
2912
2913 2007-01-16  Jonathan Pobst  <jpobst@novell.com>
2914
2915         * Control.cs: PreferredSize fix.
2916
2917         * Form.cs: Add several 2.0 events, properties, and methods.
2918
2919 2007-01-16  Gert Driesen  <drieseng@users.sourceforge.net>
2920
2921         * Form.cs: Provide meaningful message when MdiParent is assigned a
2922         Form that is not an MdiContainer.
2923
2924 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2925
2926         * MdiClient.cs: Update main form's ActiveChild when
2927         activating a mdi child.
2928
2929 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2930
2931         * MdiWindowManager.cs: Fix NRE when merging menus and main form
2932         doesn't have a menu.
2933
2934         * Form.cs: Request NCRecalc after creating a mdi child window.
2935         Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab, 
2936         Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
2937         
2938         * MdiClient.cs: Add new method SendFocusToActiveChild that either
2939         sends keyboard focus to the active child, or to the MdiClient
2940         if there are no child forms.
2941         
2942 2007-01-15  Chris Toshok  <toshok@ximian.com>
2943
2944         * ListView.cs: drop the *Internal overrides, just do our work in
2945         ItemControl's WndProc instead.
2946
2947         * UpDownBase.cs: a few large changes.  Fix up the Selectable state
2948         of the various controls, and forward the events properly (in the
2949         same manner as MS) from the textbox to the UpDown.  Also the
2950         ActiveControl of the UpDownBase gets set properly now.  Finally,
2951         we don't call UpdateEditText from the ctor.  Fixes bug #79957.
2952
2953         * NumericUpDown.cs: set Text in the ctor.
2954
2955         * DomainUpDown.cs: call UpdateEditText in the ctor.
2956         
2957         * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
2958         so even a Selectable = false textbox can be focused if you click
2959         in it.  Go figure.
2960
2961         * Control.cs: remove On{Got,Lost}FocusInternal.  Subclasses can
2962         just add their handling in their respective WndProc's.  Also add
2963         an explicit FocusInternal method that doesn't consult CanFocus
2964         before calling Select(this).
2965
2966         * TextBoxBase.cs: deal with removal of the FocusInternal calls -
2967         do our work in WndProc instead.
2968
2969         * TabControl.cs: same.
2970
2971         * ComboBox.cs: same.
2972
2973 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
2974
2975         * Menu.cs: implement MergeItems and Replace for MenuMerge method.
2976         Fixes #80006.
2977
2978 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2979
2980         * ListViewItem.cs:
2981         * ThemeWin32Classic.cs: Don't draw the item text outside
2982         item bounds in Details view, as well as use trimming.
2983         Fixes bug #80376.
2984
2985 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
2986
2987         * Form.cs: Implement Form.ShowIcon.
2988         
2989         * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
2990         null, which when combined with the DlgModalFrame window style removes
2991         the icon from the title bar.
2992
2993 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
2994
2995         * Control.cs: Call OnMouseClick after OnClick. (2.0)
2996
2997 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
2998
2999         * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
3000         menu when mdi child windows theres a menu, uses insert to get icon
3001         at first position. Partially fix #80006.
3002
3003 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
3004
3005         * Clipboard.cs: Implement 2.0 methods.
3006
3007 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
3008
3009         * Menu.cs: Implement Insert method of MenuItemCollection class
3010         to fix MenuMerge.
3011
3012 2007-01-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3013
3014         * ListView.cs: Implement 2.0 FindItemWithText method.
3015
3016 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
3017
3018         * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
3019         to calculate menu bar size. Fixes #80290.
3020
3021 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
3022
3023         * ThemeWin32Classic.cs: Fix position of menuitem check mark.
3024
3025 2007-01-11  Chris Toshok  <toshok@ximian.com>
3026
3027         * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
3028         initial form.
3029
3030 2007-01-11  Chris Toshok  <toshok@ximian.com>
3031
3032         * LinkLabel.cs: make sure to call base.Select in our Select method
3033         if it turns out we're going to be selected (i.e. if we have a link
3034         that is going to receive focus).  That way our container's
3035         ActiveControl is updated properly.
3036
3037 2007-01-11  Chris Toshok  <toshok@ximian.com>
3038
3039         * LinkLabel.cs: turns out that LinkLabels are only Selectable if
3040         they have 1 or more links.  this fixes the crash gert reported.
3041
3042 2007-01-11  Andreia Gaita  <avidigal@novell.com>
3043
3044         * ContainerControl.cs: Remove ContainerSelected flag, not needed
3045         anymore.
3046
3047         * Control.cs (Controls.Add): Check if control to be added to the collection
3048         is a top level control, and throw an ArgumentException if it is.
3049         Remove ContainerSelectedFlag, not needed anymore.
3050
3051         * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
3052         top most control doesn't activate the form. This fixes a problem in the
3053         MessageBox, where the default button wouldn't get focus because the form
3054         was activated before being Loaded - when the Owner is set, SetTopMost is
3055         called, and it would activate it.
3056
3057 2007-01-11  Jonathan Pobst  <jpobst@novell.com>
3058
3059         * Button.cs: When clicked and setting the parent form's DialogResult,
3060         use FindForm instead of Parent, since parent could be a container
3061         control and not the Form.  Fixes bug #80495.
3062
3063 2007-01-10  Chris Toshok  <toshok@ximian.com>
3064
3065         * Form.cs: move the call to SendControlFocus into the same
3066         is_loaded check.
3067
3068 2007-01-10  Chris Toshok  <toshok@ximian.com>
3069
3070         * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
3071         It breaks in the face of the new ActiveControl stuff, and should
3072         be unnecessary.
3073
3074         * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
3075         activecontrol's focus if it's not already set, after we set
3076         ActiveControl, but before we call OnActivated.  Re-fixes #79667
3077         after the previous focus/active control fixes regressed it.
3078
3079         * Control.cs: reindent some code.
3080         
3081 2007-01-10  Chris Toshok  <toshok@ximian.com>
3082
3083         * Splitter.cs: clearing some outstanding changes from my tree.
3084         Replace all accesses (not writes) to the internal dock_style field
3085         with the Dock property.
3086
3087 2007-01-10  Chris Toshok  <toshok@ximian.com>
3088
3089         * Control.cs: make FireEnter, FireLeave, FireValidating, and
3090         FireValidated virtual.
3091
3092         * Form.cs: override and don't chain up calls to FireEnter and
3093         FireLeave.
3094
3095 2007-01-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3096
3097         * ListView.cs: Add more text padding space when using
3098         auto resize for columns (the previous value didn't work fine).
3099
3100         * ThemeWin32Classic.cs: Update text position inside columns,
3101         to match the appeareance of .Net.
3102
3103         * ColumnHeader.cs: When using auto resize, only the Width should
3104         depend on the sub items, not the Height. Also, set width after
3105         auto resizing (the value of Width should never remain as -1 or -2).
3106
3107 2007-01-10  Chris Toshok  <toshok@ximian.com>
3108
3109         * Application.cs: fix compilation errors when debug is enabled.
3110
3111 2007-01-10  Chris Toshok  <toshok@ximian.com>
3112
3113         * ContainerControl.cs (set_ActiveControl): rework this a bit (and
3114         add some nice ascii art pictures and explanation of the process).
3115         (GetMostDeeplyNestedActiveControl): new utility function we need
3116         because our ActiveControl can refer to a child container with its
3117         own ActiveControl.
3118
3119         * Form.cs (OnActivated): remove the call to SelectActiveControl
3120         from here, since you can override this method and not chain up,
3121         and winforms still sets the active control.
3122         (OnCreateControl): also remove the unnecessary SelectActiveControl
3123         call from here.
3124         (WndProc): it's actually called from the WM_ACTIVATE block, just
3125         before calling OnActivated.
3126
3127         * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
3128         inside the else.  the ActiveControl setter will end up setting
3129         focus on @control.  This keeps us from setting it again (and
3130         generating an extra LostFocus/GotFocus pair).
3131         (Select (bool, bool)): reindent.
3132
3133 2007-01-10  Jonathan Pobst  <jpobst@novell.com>
3134
3135         * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
3136         StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
3137         ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
3138         ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
3139         ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
3140         ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
3141         ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
3142         ToolStripTextBox.cs: Another wave of corcompare work.
3143
3144 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3145
3146         * ColumnHeader.cs: Implement 2.0 AutoResize method using
3147         the Width property.
3148
3149         * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
3150         methods by callling Column.AutoResize method on columns.
3151
3152 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
3153
3154         * Control.cs: Provide proper implementations of PreferredSize
3155         and GetPreferredSize (2.0).
3156
3157 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
3158
3159         * Form.cs: Remove one character (!) to make my previous OnClosing
3160         stuff work for modal windows like MessageBox.
3161
3162 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3163
3164         * ListView.cs:
3165         * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
3166         ListView.Columns to get the last displayed column. Fixes #80452.
3167
3168 2007-01-09  Everaldo Canuto  <everaldo@simios.org>
3169
3170         * Label.cs, LinkLabel.cs: Source code identation fixes.
3171
3172 2007-01-08  Everaldo Canuto  <everaldo@simios.org>
3173
3174         * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
3175         we dont need to invalidate only borders because when we invalidate four
3176         border lines the invalidate's generates a complete redraw of button, 
3177         because it now invalidate a complete rect some other redraws operations
3178         are fixed. Fixes #80196.
3179         
3180         * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
3181         Remove ToolBarInvalidateEntireButton as it is not used.
3182
3183 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
3184         
3185         * Form.cs: Make sure that both OnClosing and OnFormClosing are
3186         called for 2.0 profile.
3187         * CloseReason.cs: Make class internal for 1.1.
3188
3189 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
3190
3191         * ToolStripManager.cs: Implement FindToolStrip functionality.
3192         * ToolStrip.cs: Register and unregister with ToolStripManager.
3193
3194 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
3195
3196         * Control.cs: This was messy.  2.0 moves much of ControlCollection
3197         to ArrangedElementCollection.  Implemented this with as few #if's as 
3198         possible (which is still too many).
3199
3200 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
3201
3202         * Control.cs: Implement SizeFromClientSize() [2.0].
3203
3204 2007-01-07  Everaldo Canuto  <everaldo@simios.org>
3205
3206         * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
3207         use Theme.BorderSize to calculate area instead of static value 1, 
3208         by the way use new BorderStaticSize instead     Border3DSize when 
3209         border_static is true. Fixes #79537.
3210         
3211         * XplatUIOSX.cs: Fix call to GetClientRectangle. 
3212         
3213         * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
3214         it is not needed.
3215
3216 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
3217
3218         * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
3219
3220 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
3221
3222         * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
3223         WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
3224         
3225         * Hwnd.cs: 
3226         - border_static field added, it will used to define when a control 
3227         theres 3D border but it must be static (thin).
3228         - In GetWindowRectangle use Theme.BorderSize to calculate area 
3229         instead of static value 1, by the way use new BorderStaticSize instead
3230         Border3DSize when border_static is true.
3231
3232         * XplatUIX11.cs, XplatUIOSX.cs: 
3233         - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
3234         
3235         * Theme.cs: BorderStaticSize field added.
3236
3237 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
3238
3239         * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
3240
3241 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
3242
3243         * Control.cs: Under InternalBorderStyle call RecreateHangle to 
3244         mimic same behavior than win32 that set border only in CreateParams,
3245         it fix problems under CreateParams overrides. Fix #79442 and partial
3246         fix #79537.
3247         
3248         * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
3249         of thi control you must call recreate handle. 
3250         
3251         * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
3252         need to do anything as RecreateHangle will take care about borders.
3253
3254 2007-01-05  Mike Kestner  <mkestner@novell.com>
3255
3256         * ListView.cs: hack to eliminate Lost/Got focus notifications on
3257         cycles between the ItemControl and parent.  Fixes #80388.
3258
3259 2007-01-05  Gert Driesen  <drieseng@users.sourceforge.net>
3260
3261         * Control.cs: Lazy init layout engine. Do not directly use 
3262         layout_engine since LayoutEngine may be overridden (on 2.0 profile).
3263
3264 2007-01-05  Chris Toshok  <toshok@ximian.com>
3265
3266         * DataGrid.cs: don't forceably rebind columns in SetDataSource
3267         unless our list manager has changed (i.e. unless we have reason to
3268         believe our columns have changed).  Fixes #80422.
3269         
3270         also, disable the call do BindColumns in
3271         OnListManagerMetaDataChanged.  this breaks this test in 2.0 (in
3272         1.1 the event isn't raised in response to a column addition on a
3273         table.)
3274
3275 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
3276
3277         * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
3278         that inheritors can not call it if they choose.  Fixes bug #80456.
3279
3280 2007-01-05  Andreia Gaita  <avidigal@novell.com>
3281
3282         * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it 
3283         doesn't blow up with a null exception on marshalling.
3284         
3285 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
3286
3287         * Control.cs: Implement several 2.0 protected properties and methods.
3288         Ensure that all necessary events are being called when properties
3289         are set.
3290
3291 2007-01-05  Mike Kestner  <mkestner@novell.com>
3292
3293         * ListView.cs: implement PgUp/PgDn for Details view.  Also
3294         fixes First/LastVisibleIndex to use the item_control.ClientRect 
3295         instead of the parent control.  Fixes #80378.
3296
3297 2006-01-05  Atsushi Enomoto  <atsushi@ximian.com>
3298
3299         * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
3300           determine whether to use yard-pound or not (bug #78399).
3301
3302 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
3303
3304         * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
3305         problems. So it is time to bring back the old popupbutton colors.
3306
3307 2006-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3308
3309         * ColumnHeader.cs:
3310         * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
3311         property by using the internal information of the
3312         columns order in ListView.
3313
3314 2007-01-04  Jonathan Pobst  <monkey@jpobst.com>
3315
3316         * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
3317         Add 2.0 Tag properties.
3318
3319         * LinkArea.cs: Add 2.0 ToString method.
3320
3321 2007-01-03  Chris Toshok  <toshok@ximian.com>
3322
3323         * DataGrid.cs: the Alt+0 handling was wrong, it should have been
3324         Ctrl+0.  Fixes bug #80367.  Also, don't eat the Delete keypress
3325         when we're editing, which fixes #80047.
3326
3327 2007-01-03  Chris Toshok  <toshok@ximian.com>
3328
3329         * Form.cs: apply patch contributed by Dominik Seichter.  fixes
3330         #80404.
3331
3332 2007-01-03  Jonathan Pobst  <monkey@jpobst.com>
3333
3334         * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
3335         property and implementation.
3336
3337         * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
3338         for MdiWindowListItem property.
3339
3340         * ToolStripDropDown.cs: Don't consider hidden menu items while
3341         laying out the menu.
3342
3343 2007-01-03  Andreia Gaita  <avidigal@novell.com>
3344
3345         * SendKeys.cs: window handle is not needed in win32, so just
3346         get the active window for X after parsing keys and don't use
3347         it when building the message; it is passed by parameter to the 
3348         Xplat method and used there to build the message instead. Also,
3349         wait for events to be processed on SendWait, as opposed to Send,
3350         which doesn't wait :) Playing with threads and Send() completely 
3351         hangs on ms.net, only SendWait() works.
3352         
3353         XplatUIX11.cs
3354         X11Display.cs: Check for valid window handle.
3355
3356 2007-01-03  Jackson Harper  <jackson@ximian.com>
3357
3358         * TextControl.cs: Need to prevent wrap calculations when replacing
3359         text (this was there before i removed it accidently).
3360         - Don't update the cursor during the positioning, just set it to
3361         selection_start at the end of the operaion.
3362
3363 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3364
3365         * Control.cs:
3366         * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
3367         
3368 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3369
3370         * MonthCalendar.cs: Added Click and DoubleClick events again,
3371         but this time they only hide Control's Click and DoubleClick.
3372         
3373 2007-01-03  Gert Driesen  <drieseng@users.sourceforge.net>
3374
3375         * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
3376         System.Drawing assembly. Spaces to tabs. Removed extra tabs.
3377
3378 2007-01-02  Jackson Harper  <jackson@ximian.com>
3379
3380         * TextBoxBase.cs: We move the caret with the split now, so we
3381         don't need to explicitly move the caret after splitting.  This
3382         fixes the caret bumping down an extra line on Enter.
3383
3384 2007-01-02  Miguel de Icaza  <miguel@novell.com>
3385
3386         * ContainerControl.cs: Add AutoValidateChanged event (for PDN
3387         2.72). 
3388
3389         * ScrollableControl.cs: Add Scroll event.
3390
3391 2007-01-02  Mike Kestner  <mkestner@novell.com>
3392
3393         * ListView.cs: one more try with help from georgegiolfan@yahoo.com 
3394         to fix all hdr height padding codepaths.  Fixes #80207.
3395
3396 2007-01-02  Chris Toshok  <toshok@ximian.com>
3397
3398         * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
3399         setting it to the Control defaults anyway, and it being after the
3400         Dock set was screwing up layout.
3401         (set_Dock): don't short circuit out of setting base.Dock.  Also,
3402         no need to call UpdateStatusBar here, as it'll be re-layed out if
3403         it needs to be.
3404
3405 2007-01-02  Mike Kestner  <mkestner@novell.com>
3406
3407         * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
3408         to header height for width == -1. Fixes the rest of #80207.
3409
3410 2007-01-02  Mike Kestner  <mkestner@novell.com>
3411
3412         * ListView.cs: rework the mouse event forwarding everaldo added
3413         to translate the coordinates to the parent control not
3414         raise the parent events until after we've done our work. Hover
3415         needs more work, in the case where HoverSelection is on, because
3416         the item control receives more than one MouseHover per Enter
3417         event, so we need to ensure only the "first" hover gets forwarded.
3418         Opening a minor bug for that.
3419
3420 2007-01-02  Gert Driesen  <drieseng@users.sourceforge.net>
3421
3422         * CheckedListBox.cs: Fixed SelectionMode to match MS.
3423         * ListControl.cs: Implemented AllowSelection property. Removed extra
3424         tabs.
3425         * ListBox.cs: Implemented AllowSelection property.
3426
3427 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
3428
3429         * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
3430         SelectedItem, it prevent for errors when you must disable item
3431         before perform click. Fixes #80409.
3432
3433 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
3434
3435         * MenuAPI.cs: Prevent second level and beyond submenus to close
3436         until first level when move out side of popup.
3437         
3438 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
3439
3440         * MenuAPI.cs:
3441         - Down submenu positin in three pixels.
3442         - Closes sub menu when mouse leaves from menu. Fixes #80402.
3443
3444 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
3445
3446         * ThemeWin32Classic.cs:
3447         - Fix popup menu size adding one pixel on the top.
3448         - Down menu item border from two to one to mimic Win32.
3449         - Some source identation fixes. 
3450
3451 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
3452
3453         * ThemeWin32Classic.cs: Use float numbers to calculate size and
3454         position of menu arrows, it fix wrong arrow size.
3455
3456 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
3457
3458         * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
3459         instead of line, it simplify draw operation and fix it using 3D
3460         borders to mimic Win32.
3461
3462 2007-01-01  Jonathan Pobst  <monkey@jpobst.com>
3463
3464         * StatusStrip.cs: Add implementation of the sizing grip.
3465
3466         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
3467         StatusStrip rendering.
3468
3469 2006-12-31  Chris Toshok  <toshok@ximian.com>
3470
3471         * ToolBar.cs: don't assign to dock_style in the .ctor.  it doesn't
3472         override the layout style (anchor/dock) of the control.  assign to
3473         Dock instead.  Fixes bug #80416.
3474
3475         * ToolStrip.cs: same.
3476
3477 2006-12-31  Andreia Gaita  <avidigal@novell.com>
3478
3479         * ContainerControl.cs: Use ContainerSelected flag to check if 
3480         a Container is directly selected, or if Select is called on a 
3481         non-container. If a container is directly selected, focus events 
3482         should not be raised.
3483         Apply #80411 patch to throw exception on set_ActiveControl if 
3484         control is the same as the current one.
3485         
3486         * Control.cs: Use ContainerSelected flag (see above).
3487         Add invalidation check to raise event but not invalidate if 
3488         dimensions are 0.       
3489         Apply #80411 patch.
3490         
3491
3492 2006-12-31  Everaldo Canuto  <everaldo@simios.org>
3493
3494         * MenuAPI.cs: After click, dont close popup menu when menu is
3495         ContextMenu. Fixes #80399.
3496
3497 2006-12-30  Chris Toshok  <toshok@ximian.com>
3498
3499         * ContainerControl.cs: make sure we throw the exception if the
3500         container control doesn't contain the control we're setting
3501         ActiveControl to.
3502
3503 2006-12-30  Chris Toshok  <toshok@ximian.com>
3504
3505         * Control.cs (SetTopLevel): fix the exception raised by
3506         SetTopLevel for child controls.
3507         (set_Anchor): call UpdateDistances when setting the anchor type.
3508         This fixes bug #80336.
3509
3510 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
3511
3512         * Theme.cs: For now, revert back to 8pt font.
3513
3514 2006-12-29  Everaldo Canuto  <everaldo@simios.org>
3515
3516         * MenuAPI.cs: Set popup as active when open a ContextMenu. 
3517         Fixes #80395.
3518
3519 2006-12-29  Chris Toshok  <toshok@ximian.com>
3520
3521         * Control.cs: reorder the code in OnResize to give the same event
3522         ordering as MS.
3523
3524 2006-12-29  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3525
3526         * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
3527         TileHorizontally and TileVertically.
3528         
3529 2006-12-29  Alexander Olk  <alex.olk@googlemail.com>
3530
3531         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
3532         FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
3533         SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
3534         Corrected copyright and email adress.
3535
3536 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
3537
3538         * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
3539         of Exception in FullPath property if no TreeView is associated with
3540         the TreeNode.
3541
3542 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
3543
3544         * Theme.cs: Marked default_font as private, and initialize it in ctor
3545         with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
3546         on 2.0 profile.
3547         * ThemeGtk.cs: Removed default_font intialization.
3548         * ThemeWin32Classic.cs: Removed default_font initialization.
3549
3550 2006-12-28  Chris Toshok  <toshok@ximian.com>
3551
3552         * Control.cs: fix a couple of place where we were creating handles
3553         more aggressively than we should be.  Fixes ControlRefresh unit
3554         tests.
3555
3556 2006-12-28  Chris Toshok  <toshok@ximian.com>
3557
3558         * Control.cs: contrary to what the comment said, Control.Dock does
3559         not supercede Control.Anchor - the last one you assign to decides
3560         the layout behavior.  so we need to keep track of which was the
3561         last set.  Also, fix some of the affected property arguments in
3562         PerformLayout calls, and remove an redundant parent.PerformLayout
3563         call in OnResized.
3564
3565         Add a VisibleInternal property, which returns is_visible.  We
3566         can/should get rid of all the usage of this field elsewhere.
3567
3568 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3569         
3570         * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
3571         control style, not DoubleBuffer. Added UseDoubleBuffering property
3572         that indicates whether doublebuffering is enabled and supported.
3573         (comment from and code based on Gert Driesen's patch in #80324).
3574         Fixes #80324.
3575
3576 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3577         
3578         * Control.cs: Fixed a NRE.
3579
3580 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3581
3582         * TrackBar.cs: Fix SmallChange and LargeChange exceptions
3583         for 2.0.
3584
3585 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3586
3587         * Control.cs: Rewrote double buffering, now a seperate
3588         class handles all the buffering, no Graphics is disposed of
3589         until the painting is finished (earlier implementation 
3590         would crash if the control was resized in the OnPaint, 
3591         since it would cause the double buffer to be recreated
3592         and the old one disposed), a separate Graphics is 
3593         created for every paint (MS behaviour and anyways the state
3594         of the Graphics would have to be saved and restored otherwise)
3595         
3596         * XplatUIDriver.cs: 
3597         * XplatUIX11.cs:
3598         * XplatUI.cs: Added and implemented GetOffscreenGraphics 
3599         so that we can get the graphics for the back buffer without
3600         having to create a new one and remove the offscreen_dc parameter
3601         from CreateOffscreenDrawable and DestroyOffscreenDrawable.
3602         
3603 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3604
3605         * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
3606         Also make virtual all the key-related methods.
3607
3608         * ListViewItem.cs: Make virtual the key related methods for
3609         ListViewSubItemCollection.
3610
3611 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3612
3613         * ListView.cs:
3614         * ListViewItem.cs:
3615         * ThemeWin32Classic.cs:
3616         * Theme.cs: Initial support for Tile view in ListView,
3617         as well as the implementation of the required bits for it (Item
3618         and Subitem).
3619
3620 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
3621
3622         * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
3623         of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
3624         Provide useful exception messages.
3625
3626 2006-12-27  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3627
3628         * TrackBar.cs: Remove a warning.
3629         * MonthCalendar.cs: Moved back to using Capture to hide the calendar
3630         when used by DateTimePicker, fixes #80287. This also requires that 
3631         MonthCalendar implements it's own drawing for the yearly updown control,
3632         otherwise the Capture tracking would be too complicated. Removed the Click 
3633         and DoubleClick events (according to comments they were hiding the base class
3634         event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
3635         raise these events, not that they cannot be raised. It is possible to raise 
3636         them by calling OnClick and OnDoubleClick). Added two internal fields in 
3637         HitTestInfo in order to track give more tracking info needed by MonthCalendar.
3638         * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
3639         * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
3640         event, no longer needed.
3641         
3642 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
3643
3644         * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
3645         true if new value differs from current value.
3646
3647 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
3648
3649         * Control.cs: ControlCollection.Count must be public. Fixed build of
3650         unit tests.
3651
3652 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
3653
3654         * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
3655
3656 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
3657
3658         * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
3659
3660 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
3661
3662         * Control.cs: Invalidates control including when Width and Height is 
3663         equal zero or is not visible, only Paint event must be care about 
3664         this. Fixes #79913.
3665
3666 2006-12-26  Chris Toshok  <toshok@ximian.com>
3667
3668         * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
3669         more corcompare work.
3670
3671         * DataGridView.cs: fix compiler warning.
3672
3673         * ColumnHeader.cs: some corcompare work, and also take the
3674         opportunity to make the internal fields private.
3675
3676         * ListView.cs: fix the fallout from the above field change.
3677
3678 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
3679
3680         * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
3681         ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
3682         ToolStripTextBox.cs: Fixes to events and corcompare.
3683
3684 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
3685
3686         * ListView.cs: Call owner.OnMousexx event to propagate events from
3687         item to ListView. Fixes #80367.
3688
3689 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
3690
3691         * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
3692         if value is less than one. ItemHeight should not be set to a value
3693         less than 1, and throw ArgumentOutOfRangeException on 2.0 profile. 
3694         Removed extra tabs.
3695
3696 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
3697
3698         * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
3699         * ToolStripStatusLabel.cs: Add Spring for Moma.
3700
3701 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
3702
3703         * DataGridView.cs: Fixed several NullReferenceException in On* methods.
3704         Fixed code formatting. Removed debug code.
3705         * DataGridViewTextBoxEditingControl.cs: Removed debug code.
3706
3707 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
3708
3709         * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
3710         RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
3711         ArgumentOutOfRangeException if ColumnCount is negative. In 
3712         ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
3713         less than 4 or higher than 32768.
3714         * DataGridViewCellStyle.cs: Fixed default value for NullValue.
3715         Fixed FormatProvider to return CurrentCulture unless explicitly set.
3716         Fixed IsFormatProviderDefault to return true if FormatProvider has
3717         not been explicitly set.
3718
3719 2006-12-25  Chris Toshok  <toshok@ximian.com>
3720
3721         * Application.cs: add a couple of 2.0 events.
3722
3723 2006-12-25  Chris Toshok  <toshok@ximian.com>
3724
3725         * Control.cs: fix compiler warning.
3726
3727         * AxHost.cs: corcompare fixes.
3728
3729         * ApplicationContext.cs: corcompare fixes.
3730
3731 2006-12-25  Chris Toshok  <toshok@ximian.com>
3732
3733         * Control.cs: only update dist_right/dist_bottom if the
3734         width/height is > 0.  this fixes anchored controls being resized
3735         smaller until they disappear and then resized larger again.
3736
3737 2006-12-25  Chris Toshok  <toshok@ximian.com>
3738
3739         * Control.cs: a couple of changes.  Remove dist_left and dist_top,
3740         since they're nothing more than X/Left and Y/Top, respectively.
3741
3742         Also, move back to a per-control Bitmap/Graphics for
3743         DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
3744         MT case.  Go with a tiny bitmap though, 1x1, instead of Width x
3745         Height.
3746
3747 2006-12-25  Miguel de Icaza  <miguel@novell.com>
3748
3749         * MessageBox.cs: Implemented overload that takes a new "bool
3750         displayHelpButton" by adding a new internal field "show_help".
3751         When clicked this will raise the HelpRequested on the owner or the
3752         main form. 
3753
3754         From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
3755         From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
3756
3757         * ListView.cs: Add support ColumnWidthChanged and
3758         ColumnWidthChanging. 
3759
3760         Add support for ColumnReordered event.
3761         (ReorderColumn): Add NET_2_0 specific support for cancelling the
3762         reorder.
3763
3764         Very nice codebase!
3765
3766         * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
3767
3768         This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
3769
3770 2006-12-24  Chris Toshok  <toshok@ximian.com>
3771
3772         * GridTablesFactory.cs: 2.0 corcompare work.
3773
3774         * ToolStripContainer.cs: add "override" to
3775         ContextMenuStripChanged, and remove the local event object.
3776
3777         * ToolStripDropDown.cs: same with a couple properties.
3778
3779         * ToolStripPanel.cs: same with AutoSizeChanged event.
3780
3781         * TextBoxBase.cs: add "override" to AutoSizeChanged.
3782
3783         * Form.cs: add the remaining 2.0 events, and do some corcompare
3784         attribute work.
3785
3786         * DateTimePicker.cs: add "new" to padding.
3787
3788         * ButtonBase.cs: use Control's use_compatible_text_rendering.
3789
3790         * ToolStripContentPanel.cs: use base.AutoSizeChanged.
3791
3792         * DataGridView.cs: PaddingChanged is overridden.
3793
3794 2006-12-24  Chris Toshok  <toshok@ximian.com>
3795
3796         * Control.cs: corecompare work here too.
3797
3798         * DataGridViewElement.cs, DataGridView.cs,
3799         DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
3800         DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
3801         DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
3802         DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
3803         work.
3804
3805 2006-12-24  Miguel de Icaza  <miguel@novell.com>
3806
3807         * Control.cs: Switched the error message on the console for a
3808         todo.  A review of the code will have to cope with this anyways
3809         (since its a large feature, it is in our radar) and it was
3810         producing too much output when running PDN.
3811
3812         * ToolStripComboBox.cs: Set the text when the SelectedIndex
3813         changes.  Applications depend on this (PDN 2.72)
3814
3815 2006-12-23  Chris Toshok  <toshok@ximian.com>
3816
3817         * TableLayoutSettings.cs: finish up the corcompare work for this
3818         class.
3819
3820 2006-12-23  Chris Toshok  <toshok@ximian.com>
3821
3822         * Control.cs: make SetImplicitBounds internal, do some futzing
3823         with LayoutEngine so that it's available in 1.1, and remove the
3824         entire duplicated code mess from PerformLayout.  Use
3825         System.Windows.Forms.Layout.DefaultLayout instead.
3826
3827         * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
3828
3829 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
3830
3831         * Form.cs: Add MainMenuStrip property.
3832
3833 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
3834
3835         * Control.cs: Add ContextMenuStrip property and implementation.
3836         Fix ContextMenu implementation to show menu centered on control when
3837         activated using the keyboard instead of showing at screen (0,0).
3838
3839         * ToolStripDropDown.cs: Fix needed overload of Show ().
3840
3841 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
3842
3843         * Menu.cs: Name property added for 2.0 profile.
3844         
3845 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
3846
3847         * Menu.cs: Update information about FindMenuItem, method to be
3848         implemented soon.
3849
3850 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
3851
3852         * MenuAPI.cs: When deselect items deselect also selected subitems.
3853         
3854 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
3855
3856         * MenuAPI.cs: When hides menu set Wnd to null, it prevents
3857         FindSubItemByCoord to found itens that is not active, also an
3858         cheking added to FindSubItemByCoord to search for items only 
3859         in visible popup windows. Fixes #80274.
3860
3861 2006-12-22  Everaldo Canuto  <everaldo@simios.org>
3862
3863         * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
3864         internal property, it be care about change ExStyle. 
3865
3866 2006-12-22  Andreia Gaita  <avidigal@novell.com>
3867
3868         * ContainerControl.cs: set activeControl for parent forms up the 
3869         tree when the new activecontrol is a container.
3870         When validating the active control, if it is a container, also
3871         raise up the validation for it's active control. Fixes #80280
3872         
3873         * Control.cs: Add internal property flag and check to prevent
3874         Focus events from getting raised when Select() is called for
3875         a ContainerControl. There are still too many focus events being
3876         raised at the moment though.
3877         Cleaned up the code a bit.
3878
3879 2006-12-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3880
3881         * Control.cs: Added all missing 2.0 events.and
3882         fixed a couple of corcompare issues.
3883         * TrackBar.cs: Implemented missing 2.0 bits.
3884         * MonthCalendar.cs, 
3885         * DateTimePicker.cs, 
3886         * MdiClient.cs: Fixed some corcompare issues.
3887
3888 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
3889
3890         * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
3891         SplitterPanel.cs: corecompare work.
3892
3893 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
3894
3895         * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
3896         Clean up warnings for BackgroundImageChanged and PaddingChanged
3897         events now that they are implemented in Control.cs.
3898
3899 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
3900
3901         * Control.cs: Make sure layout_engine isn't null before using it (2.0).
3902         
3903         * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
3904         TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
3905         of TableLayoutPanel and supporting cast.
3906
3907 2006-12-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3908
3909         * XplatUIWin32.cs: 
3910         - GrabWindow now confines the mouse pointer to the confine window.
3911         - Added Win32ClipCursor and Win32GetClipCursor.
3912
3913         * Control.cs: 
3914         - Added CaptureWithConfine to be able to capture and confine 
3915         mouse pointer.
3916         
3917         * InternalWindowManager.cs: 
3918         - Call CaptureWithConfine instead of Capture if we're an
3919         MdiChild (fixes #79982).
3920
3921 2006-12-21  Chris Toshok  <toshok@ximian.com>
3922
3923         * DataGrid.cs: guard against the initial state of selection, where
3924         selection_start == -1.  make sure we only select from index >= 0.
3925         Fixes bug #80291.
3926
3927 2006-12-21  Chris Toshok  <toshok@ximian.com>
3928
3929         * Control.cs: we don't need to be so draconian with
3930         UpdateDistances, and we thusly don't need to call it before
3931         calling PerformLayout in ResumeLayout.  Fixes bug #80289.
3932
3933 2006-12-21  Daniel Nauck  <dna@mono-project.de>
3934
3935         * ComboBox.cs,
3936         TextBox.cs: Implemented AutoComplete properties.
3937
3938 2006-12-20  Chris Toshok  <toshok@ximian.com>
3939
3940         * DataGridView*.cs: some corecompare work.
3941
3942 2006-12-20  Jackson Harper  <jackson@ximian.com>
3943
3944         * XplatUIX11.cs: We need to hide the caret when deleting it,
3945         otherwise you get carets left lying around everywhere.
3946         * TextBoxBase.cs: Kill then redraw the caret when scrolling.  This
3947         prevents getting some weird half drawn caret tracers when
3948         scrolling.
3949         * TextControl.cs: Attempt to reduce the number of times we need to
3950         recreate the caret.
3951
3952 2006-12-20  Gert Driesen  <drieseng@users.sourceforge.net>
3953
3954         * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
3955
3956 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3957
3958         * DateTimePicker.cs:
3959         - Implemented missing 2.0 bits.
3960         - Changed some default values to match MS.
3961         
3962 2006-12-20  Jackson Harper  <jackson@ximian.com>
3963
3964         * TextBoxBase.cs: When changing the font across the document we
3965         can't recalculate after changing each line, since that will cahnge
3966         the line count.
3967         - PreferredHeight is a little different than i thought.
3968         - When backspacing, move the caret before we do the actual char
3969         delete, because when that delete crosses a wrap boundary the
3970         positional information will change.
3971
3972 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3973
3974         * Control.cs: Added some missing 2.0 bits: 
3975         BackgroundImageLayout, BackgroundImageLayoutChanged, 
3976         OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and 
3977         add IBindableComponent and IDropTarget implementation.
3978         
3979         * MonthCalendar.cs: 
3980         - Added all missing 2.0 features:
3981         BackgroundImageLayout, RightToLeftLayout, 
3982         OnHandleDestroyed, RightToLeftLayoutChanged, 
3983         BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
3984         PaddingChanged.
3985         - Rewrote all the BoldDate code, it was completely broken.
3986         - Fixed all the tests (the tests can now be re-enabled, the
3987         problems were not with the tests, but with the control, it was
3988         mostly broken).
3989         
3990         * DateTimePicker.cs: Changed the location where the 
3991         MonthCalendar is shown.
3992         
3993 2006-12-19  Chris Toshok  <toshok@ximian.com>
3994
3995         * DataGridView.cs: add IDropTarget implementation.
3996
3997         * ToolStripPanel.cs: add IDropTarget implementation.
3998
3999 2006-12-19  Jackson Harper  <jackson@ximian.com>
4000
4001         * TextControl.cs: soft now means something different than what it
4002         used to mean, we want to move the caret regardless of whether or
4003         not this break was soft (would we really have wanted the caret
4004         to not move with the break in the old context?)
4005         * TreeView.cs: Make sure we factor in the vert scrollbar when
4006         calculating the horizontal scrollbar's maximum.
4007
4008 2006-12-19  Andreia Gaita  <avidigal@novell.org>
4009
4010         * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
4011         check for keywords in alternate casing, close bug #80049.
4012
4013 2006-12-19  Chris Toshok  <toshok@ximian.com>
4014
4015         * ToolStripItem.cs: add the implementation of the 4 IDropTarget
4016         methods (which all do nothing).
4017
4018         * IDropTarget.cs: add the 4 missing methods.
4019
4020 2006-12-19  Chris Toshok  <toshok@ximian.com>
4021
4022         * TableLayoutRowStyleCollection.cs: corcompare work.
4023         
4024         * TableLayoutSettings.cs: same.
4025
4026         * TableLayoutStyle.cs: same.
4027
4028         * TableLayoutColumnStyleCollection.cs: same.
4029
4030 2006-12-19  Jonathan Pobst  <monkey@jpobst.com>
4031
4032         * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
4033         TableLayoutPanel I've had in my local tree for way too long.
4034
4035 2006-12-19  Miguel de Icaza  <miguel@novell.com>
4036
4037         * TableLayoutSettings.cs: Finish the public API (still needs all
4038         the logic to update on changes). 
4039
4040         * TableLayoutPanelCellPosition.cs: new file.
4041         
4042         * TableLayoutRowStyleCollection.cs,
4043         TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
4044         TableLayoutSettings.cs: Track the final 2.0 table api.
4045
4046 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4047
4048         * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
4049         and Image List 2.0 members for ColummnHeader.
4050         * ListView.cs: Add key-related 2.0 methods for
4051         ColumnHeaderCollection.
4052
4053 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
4054
4055         * ListViewItem.cs: Changed AddRange overloads to match MS: throw
4056         ArgumentNullException if items argument is null. Ignore null item in
4057         arrays. Removed extra tabs.
4058
4059 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
4060
4061         * MonthCalendar.cs: Fixed InvalidCastException.
4062
4063 2006-12-19  Jackson Harper  <jackson@ximian.com>
4064
4065         * TextControl.cs: Don't increment the position here.
4066         - When calculating char positions only add in the line break size
4067         for hard line breaks.
4068
4069 2006-12-19  Andreia Gaita  <avidigal@novell.org>
4070
4071         * SendKeys.cs: Changed some things to match ms.net behaviour
4072         when parsing shifted capital letters.
4073         
4074         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX: 
4075         Add window handle as parameter to SendInput. X11 needs the 
4076         window handle, and the handle being passed      to it in the keys 
4077         queue is the active control handle (which windows needs), not 
4078         the window handle.
4079         
4080         XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput 
4081         to support SendKeys on X.       
4082         
4083         * X11Keyboard: Implement helper method to lookup a linux keycode
4084         given the virtual keycode. Added table of keycode-2-virtualkey
4085         values to support this.
4086
4087 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4088
4089         * ListView.cs: Add support for SelectedIndexCollection
4090         and SelectedItemCollection 2.0 methods. Implement support
4091         for ImageKey too.
4092         * ListViewItem.cs: Add support for ListViewSubItemCollection
4093         2.0 methods. Also, fix an incorrect behavior of AddRange method
4094         (it shouldn't call Clear).
4095         * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
4096
4097 2006-12-19  Jackson Harper  <jackson@ximian.com>
4098
4099         * RichTextBox.cs: 
4100         * TextBoxBase.cs: New args for FormatText
4101         * TextControl.cs: Rewrote the main drawing method, this version
4102         feels a little easier to understand and debug to me.  Hopefully it
4103         does to others also
4104         - Fix FormatText to OR in the new formating values.  Added
4105         FormatSpecified param, basically this works in the same way as
4106         BoundsSpecified in Control.
4107         - Set the caret properties when the caret is positioned.
4108         - When wrapping text make sure that we calculate the width of the
4109         last character
4110         - when calculating alignments we might have wrapped down to the
4111         next line, so don't search for an individual tag, search for the
4112         end of the line
4113         - We need to invalidate the selection area when we replace the
4114         selection.
4115         
4116 2006-12-19  Daniel Nauck  <dna@mono-project.de>
4117
4118         * Application.cs: add Restart () 2.0 support
4119
4120 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
4121
4122         * MenuItem.cs: Invalidate menu item rectangle after change Enable
4123         property. Fixes #80268.
4124         
4125 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
4126
4127         * MenuAPI.cs: Dont trigger select event when closes top menu
4128         item. Fixes #80270.
4129
4130 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
4131
4132         * MenuAPI.cs: When you click on menuitem only trigger onselect
4133         event for top menu itens. Fixes #80271.
4134         
4135 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4136
4137         * MdiWindowManager.cs: Make IconicBounds depend on
4138         the bottom of MdiClient, not the top (fixes #80267)
4139         
4140 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4141
4142         * MdiClient.cs: Added missing 2.0 attribute
4143
4144 2006-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4145
4146         * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
4147         as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
4148
4149 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
4150
4151         * MenuAPI.cs: Fix click when menuitem is not popup,
4152         this regression was caused by last commit (#80272).
4153
4154 2006-12-17  Everaldo Canuto  <everaldo@simios.org>
4155
4156         * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
4157         fire click event or close menu. Fixes #80272.
4158
4159 2006-12-17  Daniel Nauck  <dna@mono-project.de>
4160
4161         * ListViewHitTestInfo.cs: add
4162
4163 2006-12-17  Daniel Nauck  <dna@mono-project.de>
4164
4165         * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
4166         * FlatButtonAppearance.cs: add
4167         * DockingAttribute.cs: add
4168
4169 2006-12-17  Chris Toshok  <toshok@ximian.com>
4170
4171         * DataGrid.cs: hook up MetaDataChanged event on the list manager,
4172         and rebind our columns when it does - this way, if you make
4173         changes to the DataTable (or set the Table attribute on a DataView
4174         after setting it as the DataGrid's DataSource, the changes are
4175         made visible.)  Fixes bug #80107.
4176
4177 2006-12-17  Daniel Nauck  <dna@mono-project.de>
4178
4179         * ListViewGroup.cs: add internal Location property for layouting.
4180         * Theme.cs: add abstract ListViewGroupHeight function.
4181         * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
4182
4183 2006-12-16  Andreia Gaita  <avidigal@novell.com>
4184
4185         * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
4186         Added reset of selected index to 0 when adding first tab page.
4187         Fixes #80264
4188         
4189         * NumericUpDown.cs: Fix NET_2_0 check
4190
4191 2006-12-16  Daniel Nauck  <dna@mono-project.de>
4192
4193         * ListViewGroup.cs: fixed DefaultValueAttribute value
4194
4195 2006-12-16  Daniel Nauck  <dna@mono-project.de>
4196
4197         * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
4198
4199 2006-12-15  Miguel de Icaza  <miguel@novell.com>
4200
4201         * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
4202         TextBoxBase.cs, ListView.cs, ContainerControl.cs,
4203         ScrollableControl.cs: Add a handful of methods that are
4204         overwritten in 2.0 
4205
4206 2006-12-15  Chris Toshok  <toshok@ximian.com>
4207
4208         * XplatUIWin32.cs: initial implementation of the Reversible
4209         drawing functions.  there are some problems.  DrawReversibleFrame
4210         doesn't seem to work at all for Dashed FrameStyle, and in the
4211         Thick case there are drawing errors at the corners (we probably
4212         need to bind Rectangle instead of doing moveto/lineto's.)
4213
4214 2006-12-16  Andreia Gaita  <avidigal@novell.com>
4215         
4216         * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput, 
4217         to send blocks of key messages. Send accumulates keys to send with Flush, 
4218         while SendWait sends all keys immediately.
4219                 
4220         * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, 
4221         XplatUIX11.cs,  XplatUIX11-new.cs:
4222         - Define SendInput and stubs for OSX and X11, implements Win32 with a call
4223         to Win32 SendInput.
4224         - Added INPUT support structures to XplatUIWin32 for Win32SendInput
4225         
4226         Tests:  It seems ms.net is hooking the keyboard to implement this, so doing unit
4227         testing for ms.net on this class is very tricky, as the tests run too fast 
4228         to allow the hook to release, essentially freezing the keyboard and the 
4229         test. So, barring a win32 miracle, they'll be commited in the ms-notworking     
4230         category :p
4231
4232 2006-12-16  Daniel Nauck  <dna@mono-project.de>
4233
4234         * Padding.cs: fixed serialization compability to MS ("_var" field names),
4235                         added missing attributes.
4236  
4237 2006-12-15  Daniel Nauck  <dna@mono-project.de>
4238
4239         * ListViewGroup.cs: Added missing attributes.
4240         * ListViewGroupCollection.cs: Added missing attributes.
4241
4242 2006-12-15  Daniel Nauck  <dna@mono-project.de>
4243
4244         * ListViewItem.cs: fixed ListViewSubItem text property.
4245
4246 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4247         
4248         * Control.cs: Added missing 2.0 attributes
4249         
4250 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4251         
4252         * MdiClient.cs: Added missing 2.0 attribute.
4253         * MonthCalendar.cs: Added some missing 2.0 attributes 
4254         and properties.
4255         
4256 2006-12-15  Daniel Nauck  <dna@mono-project.de>
4257
4258         * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
4259
4260 2006-12-15  Jonathan Pobst  <monkey@jpobst.com>
4261
4262         * MainMenu.cs: Add the new 2.0 constructor to help out people
4263         using the MainMenu in VS2005.
4264
4265 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4266         
4267         * MdiChildContext.cs: Removed it, no longer used.
4268         * MdiClient.cs: Added missing 2.0 attributes.
4269         
4270 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4271         
4272         * InternalWindowManager.cs: Fix a NullRef with previous 
4273         changes for toolwindows.
4274         
4275 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4276
4277         * Control.cs: 
4278         - Added AfterTopMostControl to allow for certain controls 
4279         to always stay on top when normal controls are brought to 
4280         front.
4281         
4282         * XplatUIWin32.cs: 
4283         - (DrawInversibleRectangle): Get window rectangle from Win32 
4284         in stead of from control, since Win32 doesn't calculate
4285         screen coords correctly from control's Location if it 
4286         have docked siblings.
4287         
4288         * MdiWindowManager.cs:
4289         - Correct the control menu popup location when clicked on
4290         the maximized form icon. (fixes #80223.1)
4291         - Don't show moving rectangle if mouse hasn't moved from
4292         the original clicked point.
4293         - Removed FormGotFocus handler (not used).
4294         - Calculate the control buttons location from the main
4295         window's size and not client size (fixes #79770).
4296         - Form is now closed when the form icon is double-clicked
4297         (fixes #79775). 
4298         - Correct NCCalcSize numbers a little bit (fixes #80223.2)
4299         
4300         * InternalWindowManager.cs:
4301         - Moved some MDI-only methods to MdiWindowManager.
4302         - Removed unused properties and methods.
4303         - Unified method naming for methods handling wm messages.
4304         - Moved all message handling to seperate methods for
4305         each message.
4306         
4307         * ThemeWin32Classic.cs:
4308         - DrawManagedWindowDecorations now draws the title bar 
4309         with a gradient brush.
4310         - Add a CPDrawButtonInternal that allows us to specify
4311         light, normal and dark colors for the buttons (control 
4312         buttons for MDI children were drawn with the same light
4313         color as the background, therefore loosing the 3D effect).
4314         
4315         * SizeGrip.cs:
4316         - Add a CapturedControl property that is used to 
4317         determine the control to resize (defaults to parent). 
4318         Needed for MdiClient, since its SizeGrip's parent is
4319         MdiClient, but the control to resize is the main form.
4320         
4321         * MdiClient.cs:
4322         - Set SizeGrip's CapturedControl to the main form in order
4323         to resize the main form and not the MdiClient.
4324         - Override AfterTopMostControl to leave the scrollbars 
4325         always on top.
4326
4327 2006-12-15  Daniel Nauck  <dna@mono-project.de>
4328
4329         * ListView.cs: fixed ListViewItemCollection AddRange and
4330                         implemented ListViewItemCollection AddRange 2.0 support.
4331
4332 2006-12-15  Daniel Nauck  <dna@mono-project.de>
4333
4334         * ListViewGroup.cs: Add.
4335         * ListViewGroupCollection.cs: Add
4336         * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
4337         * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
4338                                 stub for ImageKey 2.0 support.
4339
4340 2006-12-14  Mike Kestner  <mkestner@novell.com>
4341
4342         * ListView.cs: add text padding to the autocalculation for columns
4343         of width -2.  Fixes #80207.
4344  
4345 2006-12-14  Mike Kestner  <mkestner@novell.com>
4346
4347         * ListView.cs: add some index guarding for partial row navigation 
4348         logic.  Fixes #80250.
4349
4350 2006-12-14  Mike Kestner  <mkestner@novell.com>
4351
4352         * ListView.cs: throw ArgumentExceptions when parented ListViewItems
4353         are added or inserted to the collection.  Fixes #81099.
4354
4355 2006-12-13  Everaldo Canuto  <everaldo@simios.org>
4356
4357         * MenuAPI.cs: Closes menu when right click out side of popup
4358         it fix problem in ContextMenu and MainMenu. Fixes #80252.
4359
4360 2006-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4361
4362         * ListViewItem.cs: Fix dumb error.
4363
4364         * ListView.cs: Add Find and ContainsKey methods in 
4365         ListViewItemCollection, and also return true for IsReadOnly
4366         and IsFixedSize (changes for 2.0). 
4367
4368 2006-12-13  Gert Driesen  <drieseng@users.sourceforge.net>
4369
4370         * Control.cs: Allow Region to be set to null.
4371
4372 2006-12-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4373
4374         * MdiWindowManager.cs: Remove unused (commented out) code.
4375         * Form.cs: When the MdiChild is maximized, the form needs 
4376         WM_NCMOUSELEAVE, so request it.
4377         * InternalWindowManager.cs: 
4378         - Added tooltips to control buttons.
4379         - Removed duplicated control button handling code.
4380         - Removed unused (commented out) code.
4381         
4382 2006-12-12  Everaldo Canuto  <everaldo@simios.org>
4383
4384         * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor 
4385         was used because we must set cursor without trigger ChangeCursor event
4386         and without change Cursor control property. Fixes #79963.
4387
4388 2006-12-12  Andreia Gaita  <avidigal@novell.com>
4389         
4390         * Control.cs: Check if Region setter value is null, and ignore
4391
4392 2006-12-12  Jackson Harper  <jackson@ximian.com>
4393
4394         * TextControl.cs: We were almost always drawing one more line then
4395         needed, since the GetLineByPixel will return the last line found
4396         at that pixel. In most cases though, we were invalidating up to
4397         the junction between two lines.
4398         - Improve debug code.
4399
4400 2006-12-12  Chris Toshok  <toshok@ximian.com>
4401
4402         * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
4403         and FillReversibleRectangle.
4404
4405         * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
4406         and FillReversibleRectangle.
4407
4408         * XplatUIWin32.cs: add stubs which do nothing for
4409         DrawReversibleFrame, DrawReversibleLine, and
4410         FillReversibleRectangle.
4411
4412         * XplatUIOSX.cs: add stubs which raise NIE for
4413         DrawReversibleFrame, DrawReversibleLine, and
4414         FillReversibleRectangle.
4415
4416         * XplatUIX11.cs: add working implementation for
4417         DrawReversibleFrame, DrawReversibleLine, and
4418         FillReversibleRectangle.
4419         
4420         * ControlPaint.cs: implement DrawReversibleFrame,
4421         DrawReversibleLine, and FillReversibleRectangle, by calling into
4422         the appropriate XplatUI method.
4423
4424 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4425
4426         * Form.cs: Make MdiClient have the focus even if it's
4427         not selectable, since it should receive WM_KEY* and WM_MOUSE 
4428         messages. Fixes #79907.
4429         
4430 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4431
4432         * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
4433         queried after the window is created.
4434         
4435         * XplatUIX11.cs: Added SendParentNotify to implement 
4436         WM_PARENTNOTIFY logic. Fixes #79965.
4437         
4438         * Control.cs: Added MakeParam.
4439         
4440 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4441
4442         * MdiClient.cs: Resume Layout before setting window
4443         states (fixes #80201).
4444
4445 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4446
4447         * MenuAPI.cs: Deselect a menu item after performing
4448         the click (fixes #80197).
4449
4450 2006-12-11  Jackson Harper  <jackson@ximian.com>
4451
4452         * TextBoxBase.cs: We need to cap this value, since Maximum -
4453         ViewPortHeight can be less than zero.
4454         - Only do selection with the left mouse button.
4455         * TextBox.cs: Don't tell the world that we have a context menu.
4456         * Control.cs: New method so that we can control whether or not the
4457         context menu is visible outside MWF.
4458
4459 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
4460
4461         * ToolBarButton.cs: Fix text positon. 
4462
4463 2006-12-11  Miguel de Icaza  <miguel@novell.com>
4464
4465         * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
4466
4467         * Control.cs (DoubleBuffered): Add implementation.
4468
4469         * Application.cs (OpenForms): Add.
4470
4471 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
4472
4473         * Form.cs: Use opacity instead of Opactiy to determine if we need
4474         to set the WS_EX_LAYERED bit.  [Fixes bug #80185]
4475
4476 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
4477
4478         * Control.cs: Fix NRE if Control.Site was set to null.
4479
4480 2006-12-11  Chris Toshok  <toshok@ximian.com>
4481
4482         * Control.cs: ControlCollection.Remove should return if the arg is
4483         null, and ControlCollection.SetChildIndex should raise a ANE.
4484
4485 2006-12-11  Gert Driesen  <drieseng@users.sourceforge.net>
4486
4487         * Control.cs: Verify value set for Dock property. Code formatting
4488         updates.
4489
4490 2006-12-11  Jackson Harper  <jackson@ximian.com>
4491
4492         * TextControl.cs: Draw the caret and the selection when a flag is
4493         set on the owner.
4494         * TextBoxBase.cs: We want to draw the caret and the selection for
4495         TextBox but not for TextBoxBase.
4496         - If the window is resized and scrolling is no longer needed (the
4497         whole doc is visible) set the scroll position to zero.
4498         - The default SelectWord (the one TextBox uses) should move the
4499         caret to the end of the word.
4500         - SelectAll moves the caret to the end of the selection.
4501         * TextBox.cs: We don't selectall on focus, we just do it when the
4502         control is created.
4503         
4504 2006-12-11  Mike Kestner  <mkestner@novell.com>
4505
4506         * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
4507
4508 2006-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4509
4510         * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer 
4511         2.0 support.
4512         * ListViewItem.cs: Add Name 2.0 property.
4513
4514 2006-12-11  Andreia Gaita  <avidigal@novell.com>
4515
4516         * TabControl.cs: Set visibility on selected or default tab 
4517         when tabcontrol handle is created, so that it's contents
4518         actually show up (duh). Fixes #80193
4519         Don't redraw the control if there is no handle created, as
4520         the selected index might be completely invalid. Added some tests
4521         to check for this.
4522
4523 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
4524
4525         * ToolBar.cs: Uses maximun width and height of all buttons as 
4526         button rectangle when ButtonSize specified, it looks strange but
4527         is what happens in Win32. Fixes #80189.
4528
4529 2006-12-11  Jackson Harper  <jackson@ximian.com>
4530
4531         * TextControl.cs: Need to track undo levels ourself, since
4532         compound actions will mess them up.
4533
4534 2006-12-10  Andreia Gaita  <avidigal@novell.com>
4535
4536         * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
4537         SelectedIndex value is changed (even if it's not valid).
4538         Reset SelectedIndex to 0 when the handle is created and if
4539         the current index is invalid.
4540         Fixes SelectdeIndex unit tests and #80128
4541
4542 2006-12-08  Chris Toshok  <toshok@ximian.com>
4543
4544         * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
4545         calls EndEdit, it needs to be called before we set current_cell to
4546         its new value.  Otherwise, we end up committing the value in the
4547         textbox to the new cell as well.  Fixes bug #80160.
4548
4549 2006-12-08  Chris Toshok  <toshok@ximian.com>
4550
4551         * Form.cs (set_CancelButton): if the button's DialogResult is
4552         None, set it to Cancel.  Fixes bug 80180.
4553
4554 2006-12-08  Jackson Harper  <jackson@ximian.com>
4555
4556         * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
4557         to watch ourselves when setting the canvas size and setting the
4558         scrollbar values.
4559
4560 2006-12-08  Chris Toshok  <toshok@ximian.com>
4561
4562         * DataGrid.cs: comment out the two MakeTransparent calls for the
4563         time being so people using trunk (and not 1.2.2) on windows can
4564         actually use the datagrid.  This deals with bug #80151.
4565
4566 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
4567
4568         * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
4569         Graphics.DrawImage (image, int, int, int, int) overload instead
4570         of Graphics.DrawImage (image, int, int).  GDI+ can't figure out
4571         the dpi difference and was blurring images it drew.
4572         [Fixes bug #79960]
4573
4574 2006-12-08  Chris Toshok  <toshok@ximian.com>
4575
4576         * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
4577         rowcnt is 0 (such as with an empty datasource), and make sure we
4578         initialize not_usedarea.Y to cells.Y, so we don't draw over the
4579         other areas (caption, parent row, etc, etc).  Fixes bug #80095.
4580
4581 2006-12-08  Chris Toshok  <toshok@ximian.com>
4582
4583         * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
4584         grid.
4585
4586 2006-12-08  Chris Toshok  <toshok@ximian.com>
4587
4588         [ Fixes bug #80167 ]
4589         
4590         * ThemeWin32Classic.cs: don't draw the image if the button's flat
4591         style is FlatStyle.System.
4592
4593         * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
4594         ButtonBase.flat_style private, and switch uses of it to the public
4595         property.
4596         
4597 2006-12-08  Chris Toshok  <toshok@ximian.com>
4598
4599         [ Fixes bug #80121 ]
4600         
4601         * ThemeWin32Classic.cs: center the caption text in the datagrid
4602         when we draw it.
4603
4604         * DataGrid.cs: lessen the amount we add to the caption height from
4605         6 to 2.  6 was making it huge.
4606
4607 2006-12-08  Andreia Gaita  <avidigal@novell.com>
4608
4609         * UpDownBase: Handle MouseWheel call directly instead of capturing
4610         the inner textbox's OnMouseWheel. Fixes #80166
4611
4612 2006-12-08  Jackson Harper  <jackson@ximian.com>
4613
4614         * TextControl.cs: We need to invalidate the textbox when we empty
4615         it (how had this not been discovered before?)
4616
4617 2006-12-08  Jackson Harper  <jackson@ximian.com>
4618
4619         * TextBoxBase.cs: Reworked the mouse down code so I could get it
4620         to behave like MS, we now ignore the eventargs.Click and just
4621         track state ourself, which we were already doing anyways.
4622         - Constrain the double click handler to the double click size.
4623         
4624 2006-12-08  Chris Toshok  <toshok@ximian.com>
4625
4626         * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
4627         direction if that scrollbar isn't shown.  fixes bug #80158.
4628
4629 2006-12-08  Andreia Gaita  <avidigal@novell.com>
4630
4631         * NumericUpDown.cs: Update value on getter. Fixes #79950
4632
4633 2006-12-08  Chris Toshok  <toshok@ximian.com>
4634
4635         * MenuItem.cs: add back in the event cloning code.  I didn't know
4636         how to do it in the face of the EventHandlerList work i'd done
4637         last week.  Fixes bug #80183.
4638
4639 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
4640
4641         * Control.cs: Add an invalidate to the BackgroundImage setter.
4642         [Fixes 80184]
4643
4644 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
4645
4646         * ToolStrip*: Add some small properties reported by MoMA, fix event
4647         firing and default properties based off of unit tests, and add some
4648         attributes based off of the class status page.
4649
4650 2006-12-07  Jackson Harper  <jackson@ximian.com>
4651
4652         * TextBoxBase.cs: Take HideSelection into account when determining
4653         whether or not to show the selection.
4654         * RichTextBox.cs: After inserting the RTF into the document move
4655         the cursor to the beginning of the document.
4656
4657 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
4658
4659         * Control.cs: Remove static ArrayList "controls" which maintained
4660         a reference to every control created.
4661         * Application.cs: Create a static FormCollection to maintain a reference
4662         to every form created.  Use it in places that formerly enumerated through
4663         the controls one looking for forms.
4664         * Form.cs: Add and remove self from above FormCollection.
4665
4666 2006-12-07  Alexander Olk  <alex.olk@googlemail.com>
4667
4668         * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
4669           not libgdk (though it makes me wonder why I didn't have any
4670           problems)
4671
4672 2006-12-07  Chris Toshok  <toshok@ximian.com>
4673
4674         [ you had to know this was coming after that last commit...]
4675         
4676         * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
4677         XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
4678         DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
4679         XCopyArea).
4680
4681 2006-12-07  Chris Toshok  <toshok@ximian.com>
4682
4683         * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
4684         DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
4685         all the behavior we need for double buffering.
4686
4687         * XplatUIDriver.cs: implement the 3 double buffer methods using a
4688         client side Bitmap, just like the old Control-based double buffer
4689         code did.  The methods are virtual, so each XplatUI driver
4690         subclass can replace the implementation to use a faster, platform
4691         specific approach.
4692
4693         * Control.cs: make use of the 3 Offscreen XplatUI calls in the
4694         double buffer code, and clean things up a bit in the process.
4695
4696 2006-12-06  Chris Toshok  <toshok@ximian.com>
4697
4698         * Control.cs: reindent WndProc.
4699
4700 2006-12-06  Chris Toshok  <toshok@ximian.com>
4701
4702         [ I wanna be like BenM when I grow up ]
4703         
4704         * Hwnd.cs: create a single static Graphics object on the static
4705         Bitmap we create.  use this for our text measurements.
4706
4707         * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
4708         This was causing us to allocate a backbuffer for every control,
4709         even when it wasn't flagged as double buffered.  Instead use the
4710         single graphics instance.  This might have implications for
4711         multithreaded applications.  If we run into problems we can switch
4712         to creating 1 Graphics per control, on the static Hwnd bitmap.
4713
4714         this change nets us a 7M savings in private dirty mappings when
4715         running FormsTest.exe.
4716
4717 2006-12-06  Chris Toshok  <toshok@ximian.com>
4718
4719         * ListView.cs: the BackgroundImage override is just to set
4720         attributes.  chain up to base.BackgroundImage.
4721
4722         * RichTextBox.cs: same.
4723
4724         * ToolBar.cs: same, but we need to also redraw the toolbar when it
4725         changes, so instead a handler for BackgroundImageChanged.
4726         
4727         * Control.cs: make background_image private.
4728
4729 2006-12-06  Chris Toshok  <toshok@ximian.com>
4730
4731         * ScrollBar.cs: change the assignment of cursor to Cursor.  not
4732         sure we even need this assignment, but roll with it for now.
4733
4734         * Control.cs: make the cursor field private.
4735
4736 2006-12-06  Chris Toshok  <toshok@ximian.com>
4737
4738         * Form.cs: we don't need to explicitly set ImeMode to
4739         ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
4740         behavior in the face of ImeMode.Inherit.
4741
4742         * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
4743         change the ctor's assignment to use ImeMode instead of ime_mode.
4744
4745         * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
4746         ImeModeInherit.  Only check for the parent's imemode (and return
4747         NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
4748         This fixes the button unit test, which sets both ImeMode and
4749         DefaultImeMode to ImeMode.Disable.
4750
4751         also make the ime_mode field private.
4752
4753 2006-12-06  Chris Toshok  <toshok@ximian.com>
4754
4755         * Control.cs: make control_style private.
4756
4757         * TextBoxBase.cs: fix the HandleClick override.  it was explicitly
4758         setting the styles to true, then setting them to false instead of
4759         reverting to their previous values.
4760
4761         also, call SetStyle on the scrollbars instead of using
4762         control_style directly.
4763
4764 2006-12-06  Jonathan Pobst  <monkey@jpobst.com>
4765
4766         * FormCollection.cs: Implement. [2.0]
4767
4768 2006-12-06  Chris Toshok  <toshok@ximian.com>
4769
4770         * Control.cs: make tab_stop private.
4771
4772         * Label.cs: set TabStop, not tab_stop.  reformat some event
4773         add/remove methods to make them more compact.
4774
4775 2006-12-06  Chris Toshok  <toshok@ximian.com>
4776
4777         * RadioButton.cs: fix TabStop handling.
4778
4779 2006-12-06  Chris Toshok  <toshok@ximian.com>
4780
4781         * TextBox.cs: remove the explicit assignments to has_focus.
4782         Control does that.
4783
4784         * ButtonBase.cs: remove the assignment to has_focus.  Control will
4785         manage that.
4786         
4787 2006-12-06  Chris Toshok  <toshok@ximian.com>
4788
4789         * ButtonBase.cs: remove all uses of is_enabled from this code.
4790         it's always true when any of the code containing the checks is
4791         executed.
4792
4793 2006-12-06  Chris Toshok  <toshok@ximian.com>
4794
4795         * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
4796         with different semantics (some are present in both 1.1 and 2.0
4797         profiles) so that we match MS's behavior in our unit tests.
4798
4799 2006-12-06  Jackson Harper  <jackson@ximian.com>
4800
4801         * TextControl.cs: Make this operation undoable.
4802         * TextBoxBase.cs: Factor the border width into the preferred
4803         height.
4804         - implement Modified as per the spec.
4805
4806 2006-12-06  Chris Toshok  <toshok@ximian.com>
4807
4808         * Timer.cs, Control.cs, Menu.cs: make control_tag private.
4809
4810 2006-12-06  Chris Toshok  <toshok@ximian.com>
4811
4812         * Control.cs: make right_to_left and context_menu fields private.
4813
4814 2006-12-06  Chris Toshok  <toshok@ximian.com>
4815
4816         * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
4817         XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
4818         Control.child_controls private.  switch all uses over to
4819         Control.Controls.
4820
4821 2006-12-06  Chris Toshok  <toshok@ximian.com>
4822
4823         * System.Windows.Forms/GroupBox.cs,
4824         System.Windows.Forms/AccessibleObject.cs,
4825         System.Windows.Forms/ErrorProvider.cs,
4826         System.Windows.Forms/Control.cs,
4827         System.Windows.Forms/UpDownBase.cs,
4828         System.Windows.Forms/ScrollBar.cs,
4829         System.Windows.Forms/DateTimePicker.cs,
4830         System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
4831         System.Windows.Forms/ToolTip.cs,
4832         System.Windows.Forms/RadioButton.cs,
4833         System.Windows.Forms/LinkLabel.cs,
4834         System.Windows.Forms/Splitter.cs,
4835         System.Windows.Forms/TextBoxBase.cs,
4836         System.Windows.Forms/ToolStripTextBox.cs,
4837         System.Windows.Forms/ContainerControl.cs,
4838         System.Windows.Forms/ThemeWin32Classic.cs,
4839         System.Windows.Forms/SizeGrip.cs,
4840         System.Windows.Forms/ToolStripDropDown.cs,
4841         System.Windows.Forms/ScrollableControl.cs: Make Control.parent
4842         private.  switch all uses over to Control.Parent.
4843
4844 2006-12-06  Chris Toshok  <toshok@ximian.com>
4845
4846         * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
4847         Control does this before calling emitting these events.
4848
4849         * TabControl.cs: same.
4850
4851         * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
4852         Control.client_rect.
4853
4854         * ButtonBase.cs: use the ClientSize property instead of the
4855         client_size field.
4856
4857         * ScrollableControl.cs: same.
4858
4859         * Control.cs: another pass at making properties private.  also,
4860         move the initialization of tab_stop to the ctor.
4861
4862 2006-12-05  Andreia Gaita <avidigal@novell.com>
4863
4864         * TabControl.cs: Let the selected index be set freely if the 
4865         control handle is not yet created.
4866
4867 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
4868
4869         * Control.cs: Revert dist_top, dist_right, and dist_bottom to 
4870         internal until I can rewrite DefaultLayout.
4871         * ToolStrip.cs: Fix build error and some general cleaning.
4872         * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
4873         Fix build errors caused by making some of Control's fields private.
4874
4875 2006-12-05  Jackson Harper  <jackson@ximian.com>
4876
4877         * TextControl.cs: Redo Insert a little so that it use IndexOf
4878         instead of Split, this prevents it from messing up on things like
4879         \n\n\n. Also more effecient since the split array doesn't need to
4880         be created.
4881         * TextBoxBase.cs: AppendText doesnt handle multiline and non
4882         multiline text differently, this is the first of many fixes that
4883         will make multiline/non-multiline the same thing as far as the
4884         TextBoxBase is concerned.
4885         - Don't split the text and insert lines, this can lose some line
4886         endings (like is the last line a soft or hard break). Instead use
4887         the new Insert.
4888         - Fix an off by one when combining all the lines in the Text
4889         getter.
4890         - Remove separate multiline handling from the Text getter/setter.
4891
4892 2006-12-05  Chris Toshok  <toshok@ximian.com>
4893
4894         * ButtonBase.cs: a few changes:
4895
4896         - don't reinitialize internal Control fields in the ctor when they
4897         have the same values as Control sets them.
4898
4899         - don't set has_focus in OnGotFocus/OnLostFocus.  Control does
4900         this before calling those methods.
4901
4902         - we don't need to call Refresh for anything.  use Invalidate
4903         instead.
4904
4905         - OnEnabledChanged doesn't need to redraw at all - Control.cs
4906         calls Refresh in its OnEnabledChanged.
4907         
4908         - several of the events we were registered for in the ctor to
4909         redraw ourselves already include calls to Invalidate in the
4910         property setters that raise the events.  remove the extra
4911         invalidation.
4912
4913         - reformat a switch statement that was 83274658 columns wide.
4914         
4915 2006-12-05  Mike Kestner  <mkestner@novell.com>
4916
4917         * ComboBox.cs: fix a unit test regression from a TextBox
4918         SelectionLength return of -1 when there's no selection.  
4919
4920 2006-12-05  Chris Toshok  <toshok@ximian.com>
4921
4922         * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
4923         ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
4924         cleaning up some of the internal Control fields being used by
4925         subclasses.
4926
4927 2006-12-05  Mike Kestner  <mkestner@novell.com>
4928
4929         * ComboBox.cs: fix some Simple mode regressions.  Set Visible on the
4930         listbox after AddImplicit calls since it defaults to hidden. Add a 
4931         hack to preserve requested heights across DropDownStyle changes.
4932
4933 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
4934
4935         * PropertyGrid.cs: Hide FindFirstItem method from public API.
4936
4937 2006-12-05  Chris Toshok  <toshok@ximian.com>
4938
4939         * DataGridView.cs: fix compiler warnings.
4940
4941         * PrintControllerWithStatusDialog.cs: same.
4942
4943         * ToolBar.cs: same.
4944
4945         * FolderBrowserDialog.cs: same.
4946
4947         * Splitter.cs: same.
4948
4949         * DataGridViewComboBoxCell.cs: same.
4950
4951         * XplatUIWin32.cs: same.
4952
4953         * PictureBox.cs: same.
4954
4955         * Win32DnD.cs: same.
4956
4957         * PageSetupDialog.cs: same.
4958
4959         * FileDialog.cs: same.
4960
4961         * PrintDialog.cs: same.
4962
4963         * DataGridTextBoxColumn.cs: same.
4964
4965         * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
4966
4967 2006-12-05  Chris Toshok  <toshok@ximian.com>
4968
4969         * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
4970         MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
4971         System.ComponentModel.EventHandlerList work.
4972
4973 2006-12-05  Jonathan Chambers  <joncham@gmail.com>
4974
4975         * DrawTreeNodeEventArgs.cs: Added.
4976
4977 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4978         
4979         * InternalWindowManager.cs: Remove an unused field.
4980         
4981 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4982
4983         * InternalWindowManager.cs:
4984         - Save the point where the title bar is clicked.
4985         
4986         * MdiWindowManager.cs:
4987         - Only allow moving of the window as long as the 
4988         clicked point on the title bar does not get out of
4989         MdiClient's rectangle. Fixes #79982.
4990         
4991         * MdiClient.cs:
4992         - Added Horizontal/VerticalScrollbarVisible.
4993         - Simplified the scrollbar sizing algorithm.
4994         - Cache the difference in scrolled value in
4995         H/VBarValueChanged and move the calculation out
4996         of the for loop.
4997
4998 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4999
5000         * Control.cs: Make the Console.WriteLine in WndProc 
5001         write more info.
5002
5003 2006-12-05  Chris Toshok  <toshok@ximian.com>
5004
5005         * ToolStripManager.cs, ToolStripButton.cs,
5006         ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
5007         ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
5008         ToolStripSplitButton.cs, ToolStripSeparator.cs,
5009         ToolStripRenderer.cs, ToolStripDropDownItem.cs,
5010         ToolStripProgressBar.cs, ToolStripContainer.cs,
5011         ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
5012         to using System.ComponentModel.EventHandlerList.
5013
5014 2006-12-04  Chris Toshok  <toshok@ximian.com>
5015
5016         * LinkLabel.cs: fix up compiler warnings.
5017
5018         * TableLayoutSettings.cs: same.
5019
5020         * TreeView.cs: same.
5021
5022         * ToolBar.cs: same.
5023
5024         * TabControl.cs: same.
5025
5026         * RichTextBox.cs: same.
5027
5028         * ListViewItem.cs: same.
5029
5030         * PropertyGrid.cs: same.
5031
5032         * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
5033
5034         * ToolTip.cs same.
5035
5036         * TextRenderer.cs: fix up compiler warnings.
5037
5038         * Label.cs: same.
5039
5040         * Form.cs: corcompare fixes.
5041
5042         * PictureBox.cs: fix up compiler warnings.
5043
5044         * ImageListStreamer.cs: same.
5045
5046         * TrackBar.cs: corcompare fix.
5047
5048         * Control.cs: fix up compiler warnings.
5049
5050         * SplitterPanel.cs: same.
5051
5052         * NumericTextBox.cs: same.
5053
5054         * ImageList.cs: same.
5055
5056         * StatusStrip.cs: same.
5057
5058         * ProgressBar.cs: corcompare fix.
5059
5060         * ToolStripButton.cs: fix up compiler warnings.
5061
5062         * ToolStripStatusLabel.cs: same.
5063
5064         * ToolStripSplitButton.cs: same.
5065
5066         * ToolStripSeparator.cs: same.
5067
5068         * ToolStripProgressBar.cs: same.
5069
5070         * ToolStripDropDownMenu.cs: same
5071
5072         * ToolStripDropDown.cs: same.
5073
5074         * ToolStripDropDownButton.cs: same.
5075
5076         * ToolStrip.cs: same.
5077
5078         * ToolStripControlHost.cs: same.
5079
5080         * ToolStripContentPanel.cs: same.
5081
5082         * ToolStripDropDown.cs: same.
5083
5084         * ToolStripContainer.cs: same.
5085
5086         * ToolStripPanel.cs: same, and add "new" where we need it to work
5087         with the new ArrangedElementCollection.
5088
5089         * ToolStripItemCollection.cs: add "new" where we need it to work
5090         with the new ArrangedElementCollection.
5091
5092 2006-12-04  Andreia Gaita <avidigal@novell.com>
5093
5094         * TabControl.cs: Fix default tab selection to after TabControl
5095         gets focus and not before. Fixes #80128
5096
5097 2006-12-04  Chris Toshok  <toshok@ximian.com>
5098
5099         * DataGridTableStyle.cs: remove the gross calling of
5100         datagrid.Refresh from here.  It's a broken idea and it doesn't
5101         work anyway.
5102
5103         * DataGrid.cs: instead, just register/unregister from the
5104         DataGridTableStyle events in CurrentTableStyle.  we play it
5105         conservatively and EndEdit + CalcAreasAndInvalidate on any event,
5106         even though some would most likely not require it.  Fixes bug
5107         #80115 (and one portion of #80117 as a side effect).
5108
5109 2006-12-04  Chris Toshok  <toshok@ximian.com>
5110
5111         * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
5112         so the textbox (if any) goes away.  Fixes bug #80117.
5113
5114 2006-12-04  Chris Toshok  <toshok@ximian.com>
5115
5116         * DataGridColumnStyle.cs: set the column's readonly property
5117         initially based on the property descriptor's IsReadOnly.  Fixes
5118         bug #80044.
5119
5120 2006-12-04  Chris Toshok  <toshok@ximian.com>
5121
5122         * ComboBox.cs: wrap the dropdown style changing work in
5123         SuspendLayout/ResumeLayout.  Fixes bug #79968.
5124
5125 2006-12-04  Jackson Harper  <jackson@ximian.com>
5126
5127         * TextBoxBase.cs: Fix off by one, since these are one-based.
5128         * TextBox.cs: Select all the text when we get focus.  The TextBox
5129         does this but the RTB does not.
5130
5131 2006-12-04  Chris Toshok  <toshok@ximian.com>
5132
5133         * DataGridTextBoxColumn.cs: remove some spew.
5134
5135         * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
5136         but some part of me is saying "it shouldn't be here.."  At any
5137         rate, it fixes bug #80046.  Call IEditableObject.EndEdit after
5138         setting the value.
5139
5140 2006-12-04  Chris Toshok  <toshok@ximian.com>
5141
5142         * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
5143         to reassign the propertydescriptor.
5144
5145 2006-12-04  Jackson Harper  <jackson@ximian.com>
5146
5147         * TextBoxBase.cs:
5148         * TextControl.cs: Remove some unused variables.  Maybe this will
5149         patch things up between mike and I.
5150         - don't split lines less then one char wide, if the viewport is
5151         that small text won't be visible anyways.
5152         
5153 2006-12-04  Jackson Harper  <jackson@ximian.com>
5154
5155         * TextBoxBase.cs: Default selection length is -1, need to do some
5156         more testing on windows to see when this is used for the property.
5157         - Redid the Lines [] property to that we properly remove soft line
5158         breaks
5159         - added support for preserving carriage returns
5160         -  CanUndo is not a variable like 'is undo enabled' it just returns
5161         true if there is undo operations available.
5162         - AppendText doesn't need to grab the last tag itself anymore,
5163         this happens automatically when we move the cursor.
5164         * TextControl.cs: Add CompoundActions to the undo class. This
5165         allows combining the other operations into one big option.  ie a
5166         paste will combine { delete old, insert new, move cursor }
5167         - Add InsertString undo operation
5168         - New method for deleting multiline text
5169         - Add carriage returns to lines. So we can preserve carriage
5170         returns when text is 'roundtripped'
5171
5172 2006-12-04  Chris Toshok  <toshok@ximian.com>
5173
5174         * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
5175         minimum 0.  Fixes the scrollbar exception in bug #80136.
5176
5177 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5178
5179         * MdiClient.cs: 
5180         * MdiWindowManager: Removed unused fields and methods.
5181         
5182 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5183         
5184         * StatusBar.cs: Update all panels when a AutoSize=Contents
5185         panel needs updating.
5186         
5187         * StatusBarPanel.cs: Remove twidth and only use initialize.
5188         Fixes #80031.
5189                 
5190 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5191
5192         * Form.cs: When a form's MdiParent is set add it directly
5193         on top of the z-order in stead of relying on MdiClient's
5194         ActivateChild to do it. Fixes #80135.
5195         
5196         * MdiClient.cs: 
5197         - Remove original_order, mdi_child_list is already doing
5198         the same thing.
5199         - Create mdi_child_list on construction in
5200         stead of first use (avoids a few null checks).
5201
5202         * MenuItem.cs: Use an already existing list of mdi children
5203         to get the correct order of children and remove the other
5204         redundant list.
5205
5206 2006-12-04  Chris Toshok  <toshok@ximian.com>
5207
5208         * PropertyGridView.cs: cached_splitter_location is only used in
5209         !DOUBLEBUFFER code.
5210
5211         * PropertyGrid.cs: implement the ComComponentNameChanged event
5212         using Events, hoping that would fix the warning.  Looks like a
5213         compiler bug instead (#80144).
5214
5215         * PropertyManager.cs: remove unused method.
5216
5217 2006-11-04  Everaldo Canuto  <everaldo@simios.org>
5218
5219         * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar, 
5220         include parentesis to fix expression evaluation. Fixes #79634.
5221
5222 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
5223         
5224         * MenuAPI.cs:
5225         - Changes to fix behavior in Menu control, some reported in #80097
5226         and other detected during behavior refactory like a select event
5227         problems.
5228         - Remove unneded "if's" conditions.
5229         - Created an internal to flag when popup is active in control, we need 
5230         it because in .NET you can have menu active but without popup active
5231         when you active menu using popup without visible items.
5232         - Mimic win32 behavior for Select and Popup events.  
5233         - Dont open popup menu when you dont have visible subitems.
5234         - Do nothing when click on disabled menu item.
5235         - Some small changes to follow the coding style guidelines.
5236         - Unselect menu only when another control gives focus. Fixes #80097.
5237         - Remove unused code.
5238         
5239         * MenuItem.cs: internal VisibleItems method to check if menu
5240         theres visible subitems, it will be usefull to fix some 
5241         behavior in Menu control.
5242         
5243 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
5244         
5245         * Timer.cs: Tag property for 2.0 profile.
5246         
5247 2006-12-01  Chris Toshok  <toshok@ximian.com>
5248
5249         [ after removing all warning suppressions, this cleans up over 100 warnings. ]
5250         
5251         * Win32DnD.cs: comment out some unused fields.
5252
5253         * XplatUIWin32.cs: comment out some unused pinvokes, and remove
5254         some unused properties/methods.
5255
5256         * XplatUIX11.cs: fix MousePosition so we override the base class's
5257         property instead of conflicting with it.
5258
5259         * PictureBox.cs: comment out some unused fields
5260
5261         * OSXStructs.cs: make some struct fields public.
5262
5263         * XplatUIOSX.cs: comment out some unused pinvokes, and fix
5264         MousePosition so we override the base class's property instead of
5265         conflicting with it.
5266
5267         * X11Dnd.cs: comment out some unused fields
5268
5269         * X11DesktopColors.cs: fix some struct field visibility to quiet
5270         the compiler.
5271
5272         * X11Dnd.cs: remove some debug code.
5273
5274         * ThemeClearlooks.cs: comment out unused field.
5275
5276         * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
5277
5278         * ThemeGtk.cs: comment out some unused pinvokes.
5279
5280         * Timer.cs: remove some unused fields.
5281
5282         * ThemeClearlooks.cs: comment out unused field.
5283
5284         * UpDownBase.cs: comment out unused field.
5285
5286         * DataObject.cs: comment out unused field.
5287
5288         * DataGridBoolColumn.cs: reomve unused field.
5289
5290         * DataGrid.cs: remove unused field.
5291
5292         * Cursor.cs: remove old ToBitmap code.
5293
5294         * ControlPaint.cs: remove unused method.
5295
5296         * ScrollBar.cs: remove unused fields.
5297
5298         * ComboBox.cs: remove unused field, and chain up to
5299         AccessibleObject ctor.
5300
5301         * ListBox.cs: remove unused field.
5302
5303         * ButtonBase.cs: wrap a couple fields in NET_2_0.
5304
5305         * GridEntry.cs: remove unused fields.
5306
5307         * Binding.cs: remove unused fields.
5308
5309         * AxHost.cs: remove unused method.
5310
5311         * ContainerControl.cs: remove unused field.
5312
5313         * ScrollableControl.cs: remove unused fields.
5314
5315 2006-12-01  Chris Toshok  <toshok@ximian.com>
5316
5317         * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
5318         the Where/WhereString stuff.  it's easy enough to CWL
5319         Environment.StackTrace.
5320
5321         * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
5322         unused private fields.
5323
5324 2006-12-01  Jackson Harper  <jackson@ximian.com>
5325
5326         * TextControl.cs: Do not update the view while inserting multiline
5327         text. If we update the view we might wrap lines, before entering
5328         the new lines, which causes the new line insertion calculations to
5329         be totally fubared.
5330         - Remove an old TODO
5331         - Make debug output a little nicer
5332         
5333 2006-12-01  Chris Toshok  <toshok@ximian.com>
5334
5335         * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
5336
5337 2006-12-01  Chris Toshok  <toshok@ximian.com>
5338
5339         [ fix the majority of the CS0108 warnings we've been suppressing ]
5340         
5341         * TreeView.cs: mark BackgroundImageChanged as 'new'.
5342
5343         * ToolBar.cs: ImeMode just passes stuff to Control.  Rename Layout
5344         to "LayoutToolBar" to quiet mcs.
5345         
5346         * TabControl.cs: mark our ControlCollection class as 'new'.
5347
5348         * TextBoxBase.cs: mark some events as 'new'.
5349
5350         * Splitter.cs: TabStop is 'new'.
5351
5352         * ControlBindingsCollection.cs: mark a few methods as new since
5353         they change the visibility from protected to public.
5354
5355         * RadioButton.cs: DoubleClick -> base class, and remove unused
5356         HaveDoubleClick.
5357
5358         * MonthCalendar.cs: ImeMode property -> base class, and mark many
5359         events as new.
5360
5361         * NumericUpDown.cs: TextChanged -> base class.
5362
5363         * CheckedListBox.cs: mark our ObjectCollection class as new to
5364         quiet mcs.
5365
5366         * FolderBrowserDialog.cs: make HelpRequest event new and have it
5367         muck with the base class.
5368
5369         * StatusBar.cs: fix some mcs warnings about Update being the same
5370         name as a base class method.
5371
5372         * RichTextBox.cs: mark some events as new, and make them do things
5373         to the base class impl.
5374
5375         * UserControl.cs: mark TextChanged as new, and have it manipulate
5376         base.TextChanged.
5377
5378         * UpDownBase.cs: mark some things new.
5379
5380         * CheckBox.cs: mark DoubleClick "new", and add some text about
5381         what we need to look at.
5382
5383         * Panel.cs: make the events "new", and manipulate the base
5384         version.  these are just here for attributes.
5385
5386         * AccessibleObject.cs: make owner private.
5387
5388         * Control.cs: deal with AccessibleObject.owner being private.
5389         cache our own copy if we need it.
5390
5391         * Button.cs: add "new" to the DoubleClickEvent.
5392
5393         * ListBox.cs: no need to track our own has_focus here.  let
5394         Control.has_focus do it for us.  Also some other work to clear up
5395         warnings about not overriding base class methods of the same name.
5396         
5397         * ComboBox.cs: clear up some warnings about not override base
5398         class methods of the same name.
5399
5400 2006-12-01  Chris Toshok  <toshok@ximian.com>
5401
5402         * Form.cs: flag a few things as "new" to quiet some of the mcs
5403         warnings.
5404
5405         * AxHost.cs: same.
5406
5407         * PrintPreviewDialog.cs: same.
5408
5409         * DataGridView.cs: fix a ton of corcompare warnings.  not all, but
5410         now DGV isn't so horrible on the class status page.  also, move
5411         all events to using System.ComponentModel.EventHandlerList.  my
5412         wrists hurt.
5413
5414 2006-12-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5415
5416         * MdiWindowManager.cs:
5417         - Set form to active mdi child if shown,
5418         and update the active mdi child to the next 
5419         remaining child in the z-order if the form is hidden.
5420
5421         * Form.cs: 
5422         - Track if the form has been visible and if its 
5423         visibility is beeing changed, so that the MdiClient
5424         can properly decide the ActiveMdiChild. The MdiClient 
5425         cannot track this since the form can change visibility 
5426         before MdiClient is created.
5427
5428         * MdiClient.cs:
5429         - Don't activate anything of the parent form is changing
5430         its visibility.
5431         - Rework ActiveMdiChild to only return visible mdi 
5432         children and take into account several other corner 
5433         cases.
5434
5435 2006-12-01  Chris Toshok  <toshok@ximian.com>
5436
5437         * IBindableComponent.cs: new 2.0 interface.
5438
5439 2006-12-01  Gert Driesen  <drieseng@users.sourceforge.net>
5440
5441         * DataGrid.cs: Font for caption area is bold by default.
5442
5443 2006-12-01  Everaldo Canuto  <everaldo@simios.org>
5444
5445         * Menu.cs: Tag property for 2.0.
5446         
5447 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
5448
5449         * ThemeWin32Classic.cs: Adjust menu separator drawing. 
5450         
5451 2006-12-01  Chris Toshok  <toshok@ximian.com>
5452
5453         * TreeView.cs: doh, the Begin* events should be
5454         TreeViewCancelEventHandler.
5455
5456 2006-12-01  Chris Toshok  <toshok@ximian.com>
5457
5458         * Form.cs: Form.ControlCollection already stores off the
5459         form_owner field.  don't access the base class's internal "owner"
5460         field.
5461
5462         * Control.cs: make all the fields in Control.ControlCollection
5463         private.  there's no need for any internal fields here.
5464
5465 2006-12-01  Chris Toshok  <toshok@ximian.com>
5466
5467         * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
5468         OnHandleCreated.  Fixes bug #80109.
5469
5470 2006-12-01  Chris Toshok  <toshok@ximian.com>
5471
5472         * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
5473         SplitContainer.cs, Control.cs, StatusStrip.cs,
5474         DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
5475         NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
5476         DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
5477         DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
5478         Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
5479         LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
5480         MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
5481         TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
5482         PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
5483         DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
5484
5485         do most of the work to convert our code over to use
5486         System.ComponentModel.Component.Events for
5487         adding/removing/dispatching events.
5488
5489
5490 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
5491
5492         * DataGridView.cs: Fix an ArgumentNullException reported 
5493         twice today in IRC.
5494
5495 2006-11-30  Mike Kestner  <mkestner@novell.com>
5496
5497         * ComboBox.cs: fix the scrollbar mouse event forwarding in the 
5498         grabbed listbox.  Fixes #80036 and #80101.
5499
5500 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
5501
5502         * Message.cs: Changed ToString() to match MS.
5503         
5504 2006-11-30  Jackson Harper  <jackson@ximian.com>
5505
5506         * TextBoxBase.cs: You can still change the selected text on a read
5507         only textbox.
5508         * TextControl.cs: Lower magic number for wrap calculations. This
5509         lets text get closer to the right (far) edge.
5510
5511 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
5512
5513         * Control.cs: Tweak 2.0 layout properties.
5514         * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
5515         * TextRenderer.cs: Add a new overload.
5516         * ToolStrip*: Huge amount of changes and new features.
5517
5518 2006-11-30  Mike Kestner  <mkestner@novell.com>
5519
5520         * ComboBox.cs: fixes for LargeChange and Maximum to get the 
5521         scroll range correct.  Fixes #79994.
5522
5523 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
5524
5525         * MdiWindowManager.cs: Update main form's text when
5526         a form is closed. (fixes #80038)
5527         
5528 2006-11-30  Everaldo Canuto  <everaldo@simios.org>
5529
5530         * ToolBar.cs:
5531         - Fix an regression in ButtonSize.
5532         - Get ImeMode default value change to "Disable".
5533         - Get ShowTooltips default value change to true, default value is 
5534         "false" but after make a test in .NET we get "true" result as default.
5535         
5536 2006-11-29  Jonathan Pobst  <monkey@jpobst.com>
5537
5538         * ToolStripDropDown.cs: Fix for SupportsTransparency change.
5539
5540 2006-11-29  Chris Toshok  <toshok@ximian.com>
5541
5542         * XplatUIWin32.cs (GetWindowTransparency): check return value of
5543         GetLayeredWindowAttributes.  if it's 0, return 1.0, as
5544         SetWindowTransparency hasn't been called.
5545
5546 2006-11-29  Chris Toshok  <toshok@ximian.com>
5547
5548         * Form.cs (set_TransparencyKey): only call SetWindowTransparency
5549         if it's supported.
5550         (set_AllowTransparency): reorder things a little so that the
5551         WS_EX_LAYERED style is removed properly.
5552
5553 2006-11-29  Chris Toshok  <toshok@ximian.com>
5554
5555         [ totally cosmetic eye-candy feature, fixes bug #80089 ]
5556         
5557         * Form.cs: only call the XplatUI transparency method (get/set) if
5558         SupportsTransparency says it's supported. Otherwise fallback to
5559         doing nothing (in the set case) or returning the instance field we
5560         cache (in the get case).
5561
5562         * XplatUIStructs.cs: add TransparencySupport flag enum.
5563         
5564         * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
5565         change to SupportsTransparency.
5566
5567         * XplatUIOSX.cs: stub out GetWindowTransparency, and return
5568         TransparencySupport.None from SupportsTransparency.
5569
5570         * XplatUIX11.cs: Stub out GetWindowTransparency, and return
5571         TransparencySupport.Set from SupportsTransparency.
5572
5573         * XplatUIWin32.cs: implement GetWindowTransparency calling
5574         GetLayeredWindowAttributes, and implement SupportsTransparency by
5575         checking whether or not both
5576         GetWindowTransparency/SetWindowTransparency are available
5577         entrypoints.  We need to do this since SetWindowTransparency is
5578         available as of win2k, but GetWindowTransparency requires winxp.
5579         yay win32 api.
5580
5581         * XplatUI.cs: Add GetWindowTransparency, and change
5582         SupportsTransparency to allow for either/both Get/Set.
5583
5584 2006-11-29  Chris Toshok  <toshok@ximian.com>
5585
5586         * DataGrid.cs: keep from going into an infinite loop redrawing a
5587         datagrid that has no datasource.  Fixes bug #80033.
5588
5589 2006-11-29  Chris Toshok  <toshok@ximian.com>
5590
5591         * MenuItem.cs: fix the NRE when we assign text (and therefore call
5592         Invalidate) before the mainmenu has been assigned to a control.
5593
5594 2006-11-29  Chris Toshok  <toshok@ximian.com>
5595
5596         * DataGrid.cs: detect when we should be double the double click
5597         row/column autosize stuff, although that codepath has yet to be
5598         written.  part of the work for bug #79891.
5599
5600 2006-11-29  Chris Toshok  <toshok@ximian.com>
5601
5602         * Binding.cs (SetControl): fix unit test.
5603
5604 2006-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5605
5606         * PageSetupDialog.cs: Validate the margins and set them in
5607         PageSettings. 
5608         * NumericTextBox.cs: New class to mimic the behavior of the
5609         textboxes used in the printing dialogs.
5610
5611 2006-11-29  Andreia Gaita  <avidigal@novell.com>
5612         
5613         * Form.cs: Revert previous change (remove call UpdateBounds
5614         from form constructor), because it messes with the handle creation
5615         order, and that one needs lots and lots of love.
5616         * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
5617         for valid printer and throw InvalidPrinterException if document
5618         is set but printer not valid), adding a MonoTODO. Once 
5619         handle creation is done properly, we can put this back in.
5620
5621 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
5622
5623         * MenuItem.cs: Create a invalidate method for menu item, to be
5624         calling from set text, it make text changes to imadiate update
5625         on screen. Fixes #80013. 
5626         
5627 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
5628
5629         * ToolBar.cs: Fixes and simplify toolbar button layout, it 
5630         fixes bug #80070 and some other problem on toolbar buttons
5631         layout.
5632
5633 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
5634
5635         * ThemeWin32Classic.cs: Paint toolbar toggle button background 
5636         with dotted brush.      Fixes #79564
5637         
5638 2006-11-28  Andreia Gaita  <avidigal@novell.com>
5639
5640         * Form.cs: Removed call to UpdateBounds on Form
5641         constructor, it was causing a call to CreateHandle
5642         before it was supposed to.
5643         * PrintControllerWithStatusDialog: Applied patch
5644         by Chris Toshok to hide controller when there are
5645         no printers available.
5646         PrintDialog.cs: initialize printer settings to 
5647         null - correct DefaultValues test #5
5648         * PrintPreviewControl.cs: Move PrintController
5649         initialization to GeneratePreview
5650         * PrintPreviewDialog.cs: 
5651         - Remove Preview generation     from Document_set(). It is 
5652         called on OnPaint
5653         - Throw InvalidPrinterException on CreateHandle if
5654         a Document is set but there are no printers or 
5655         printer is not valid.
5656         * ThemeWin32Classic: don't paint PrintPreviewControl
5657         if there is nothing to paint    
5658
5659 2006-11-28  Miguel de Icaza  <miguel@novell.com>
5660
5661         * Form.cs: Add another popular method.
5662
5663         * TabPage.cs: ditto.
5664
5665 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5666
5667         * MenuItem.cs: Fixed a warning.
5668         * InternalWindowManager: Fixed a warning.
5669
5670 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5671
5672         * MenuItem.cs:
5673         - When cloning a menu also clone MdiList and clone the 
5674           window menu items properly (as the forms and menuitems
5675           are kept in an internal hashtable, these need updating 
5676           as well)
5677         - Rewrote the window menu code, menu items are added in the
5678           order the forms were added to their parent, and they are
5679           updated every time the window menu is shown (before the
5680           list was only generated once, in the current order of the
5681           forms, and would never be updated). A checkmark is shown
5682           next to the item corresponding to the active mdi child.
5683
5684 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5685
5686         * XplatUIStructs.cs: 
5687         - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
5688         
5689         * XplatUIWin32.cs: 
5690         - Added TME_NONCLIENT to TMEFlags.
5691         - Handles WM_NCMOUSEMOVE in GetMessage to 
5692           generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
5693
5694         * MdiWindowManager:
5695         - Now merges mdi child menu to parent menu when maximized.
5696         - Recalculate NC areas of both mdi child and mdi parent. 
5697           Fixes #79757 (4).
5698           on window state and size changes.Fixes #79844 (3).
5699         - Handle WM_NCCALCSIZE to properly calculate borders.
5700
5701         * Form.cs:
5702         - Add/remove to the mdi containers list of mdi children 
5703           in the order they are added.
5704         - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE 
5705           to the maximized mdi child.
5706         
5707         * InternalWindowManager.cs:
5708         - Only execute a click on the control buttons on the mouse up,
5709           not on the mouse down. Show the state of the button 
5710           (was only showing Normal state, never Pressed state). The
5711           pressed button now follows the mouse (if you click the Close 
5712           button and move the mouse over the Maximize button, the 
5713           Maximize button will be shown as pressed). Since Win32 does
5714           not generate WM_NCLBUTTONUP if you release the button outside
5715           of the nc area, we need to handle WM_NCMOUSELEAVE and treat
5716           it as a mouse up.
5717         
5718         * ThemeWin32Classic.cs:
5719         - Draw a missing border around mdi child forms. Fixes #79844 (2).
5720
5721         * MdiClient.cs:
5722         - Added a list of forms which contains the order the forms are
5723           added to the mdi parent.
5724         - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
5725         - Handle WM_NCCALCSIZE to properly calculate the 3D border.
5726         - If the active form changes set the scrollbars to the top
5727           of the Z order, otherwise the form could hide them.
5728         - Scrollbars are now sized according to ClientSize, not 
5729           to Size, and they take into account the other scrollbar
5730           to determine maximum.
5731         
5732 2006-11-28  Rolf Bjarne Kvinge <RKvinge@novell.com>
5733         
5734         * XplatUI.cs:
5735         * XplatUIDriver.cs:
5736         * XplatUIX11.cs:
5737         * XplatUIWin32.cs:
5738         * XplatUIOSX.cs:
5739         - Added RequestAdditionalWM_NCMessages for windows to 
5740           opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
5741           Currently only implemented in XplatUIWin32.
5742
5743 2006-11-27  Chris Toshok  <toshok@ximian.com>
5744
5745         * Hwnd.cs: only add the hwnd to the windows hash in
5746         set_WholeWindow and set_ClientWindow if whole_window/client_window
5747         are not IntPtr.Zero.  also, remove the unused SetObjectWindow.
5748
5749 2006-11-27  Mike Kestner  <mkestner@novell.com>
5750
5751         * ComboBox.cs: remove redundant OnDropDown call.  It is called
5752         from the ComboListBox.ShowWindow code. Fixes #79969.
5753
5754 2006-11-27  Chris Toshok  <toshok@ximian.com>
5755
5756         * Hwnd.cs: remove the setters for ExposePending and
5757         NCExposePending - noone uses them.
5758
5759 2006-11-27  Jackson Harper  <jackson@ximian.com>
5760
5761         * TextControl.cs: new param for ReplaceSelection which determines
5762         whether we select the new selection, or set the cursor to the end
5763         of the new selection.
5764         * TextBoxBase.cs: Use new param for ReplaceSelection.  When
5765         pasting, select the new text.
5766         * RichTextBox.cs: Use new param for ReplaceSelection.
5767
5768 2006-11-27  Jackson Harper  <jackson@ximian.com>
5769
5770         * TextBoxBase.cs: Set the selection to the caret after the caret
5771         is moved, otherwise they get out of sync.
5772
5773 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
5774
5775         * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
5776         it fixes #80015
5777
5778 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
5779
5780         * ThemeWin32Classic.cs: 
5781         - Fix toolbar drop down arrow position.
5782         - Fix drop down appearance when ToolBar.Appearance is normal,
5783         it fixes #80018.
5784         
5785 2006-11-26  Gert Driesen  <drieseng@users.sourceforge.net>
5786
5787         * ProgressBar.cs: GetStyle fixes for 2.0 profile.
5788         * Control.cs: Same.
5789         * UpDownBase.cs: Same.
5790         * ButtonBase.cs: Same.
5791         * ScrollBar.cs: Same.
5792         * TrackBar.cs: Same.
5793         * PictureBox.cs: Same.
5794         * UserControl.cs: Same.
5795         * Label.cs: Same.
5796         * ListControl.cs: Same.
5797         * TextBoxBase.cs: Same.
5798         * ListView.cs: Same.
5799         * RichTextBox.cs: Same.
5800         * TreeView.cs: Same.
5801
5802 2006-11-25  Jordi Mas i Hernandez <jordimash@gmail.com>
5803
5804         * PrintDialog.cs:
5805         - Text label for where 
5806         - Text label comment was not shown
5807
5808 2006-11-23  Everaldo Canuto  <everaldo@simios.org>
5809
5810         * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
5811
5812 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
5813
5814         * InternalWindowManager.cs: 
5815         - Handle WM_PARENTNOTIFY to activate the form
5816         if any child control is clicked.
5817         - The form is only sizable if not minimized.
5818
5819         * MdiWindowManager.cs:
5820         - Save the IconicBounds if the form is moved.
5821         - Rework SetWindowState, now the window bounds 
5822         are stored only if the old window state is Normal.
5823         
5824         * MdiClient.cs:
5825         - In SetWindowStates store the old window state if 
5826         the window is maximized and restore window state if
5827         the window looses focus.
5828         - Don't handle any scrollbar value changes if 
5829         initializing the scroll bars. Fixes #79771.
5830         - Reworked ArrangeIconicWindows. Current algorithm
5831         tests bounds agains all other minimized windows, if
5832         any intersections create new bounds (going left to 
5833         right, bottom to top) and then test again. When 
5834         successful the bounds are saved and never computed
5835         again. Fixes #79774.
5836
5837 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
5838
5839         * InternalWindowManager.cs: Added HandleTitleBarUp.
5840
5841 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
5842
5843         * NumericUpDown.cs: In .NET 1.1, user entered text is still
5844         hexadecimal in ParseUserEdit.
5845
5846         
5847 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
5848
5849         * MdiWindowManager.cs: 
5850         - Handle a click on the form's icon to show the 
5851         system menu (when maximized). Fixes #79775.
5852         - Change the existing click handler for the form's
5853         icon when not maximized to show on MouseUp.
5854         Fixes #79776.
5855
5856         * Form.cs: In OnResize only layout the mdi child's
5857         parent if it actually has a parent. Might not if
5858         the window is closing.
5859
5860
5861 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
5862
5863         * MdiClient.cs: Ignore active MDI client for text of parent, if
5864         child has no text set.
5865
5866 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
5867
5868         * ToolBar.cs: Fixed ToString to match MS.
5869
5870 2006-11-22  Andreia Gaita  <avidigal@novell.com>
5871
5872         * NumericUpDown: 
5873         - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to 
5874         update inner values on set. Fixes #79966.
5875         - Override OnLostFocus to update value on NET 2. Fixes #79950.
5876         - Fix hexadecimal parsing.
5877         
5878         * UpDownBase: Override OnGotFocus and OnLostFocus to notify 
5879         parent. Fixes #79957
5880
5881 2006-11-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5882
5883         * Control.cs: After calling SetWindowsPos in SetBoundsCore 
5884         the actual size has to be queried, since if height /
5885         width is negative Win32 changes it to 0. 
5886         Fixes #79999 on Windows.
5887         
5888         * XplatUIX11.cs: Set height / width to 0 if negative
5889         in SetWindowPos. Fixes #79999 on Linux.
5890         
5891 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
5892
5893         * ThemeWin32Classic.cs: Fix text redenring when button is
5894         pressed.
5895
5896 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
5897
5898         * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
5899         and later navigate by mouse. Fixes #79528.
5900
5901 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
5902
5903         * ToolBar.cs: Set default value for TabStop to false in
5904         constructor, it fixes remaining behavior of bug #79863.
5905
5906 2006-11-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5907
5908         * MdiWindowManager.cs:
5909         * InternalWindowManager.cs:
5910         - Moved a few methods specific to Mdi from 
5911         InternalWindowManager to MdiWindowManager.
5912         Fixes #79996.
5913         
5914 2006-11-21  Chris Toshok  <toshok@ximian.com>
5915
5916         * XplatUIOSX.cs: stub out InvalidateNC.
5917
5918         * XplatUIWin32.cs: implement InvalidateNC using the call I found
5919         at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
5920
5921         * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
5922
5923         * XplatUIDriver.cs: add InvalidateNC abstract method.
5924
5925         * XplatUI.cs: add InvalidateNC.
5926
5927 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
5928
5929         * ToolBar.cs: Invalidate complete button area when pressed status 
5930         was changed.
5931         * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
5932         * ThemeWin32Classic.cs: Increase vertical and horizontal position 
5933         by 1 when button is pressed.
5934
5935 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
5936
5937         * ToolButton.cs: Invalidate middle of DropDown button when
5938         ToolBar theres DropDownArrows.
5939         * ThemeWin32Classic.cs: Change position of DropDown arrow and
5940         fix DropDown drawing operations.
5941
5942 2006-11-20  Chris Toshok  <toshok@ximian.com>
5943
5944         * NativeWindow.cs: fix the formatting of functions ('{' on the
5945         following line), and enable the thread exception dialog.
5946
5947         * Application.cs: remove the duplicate exception catching from
5948         here.
5949
5950 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
5951
5952         * Toolbar.cs: Triggers button click event when click on icon
5953         of dropdown ToolBarButton. Fixes #79912.
5954         
5955 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5956
5957         * Theme.cs:
5958         * ThemeWin32Classic.cs:
5959         - Added a property WindowBorderFont to enable themeing
5960           of mdi child windows' Text.
5961           
5962 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5963
5964         * InternalWindowManager.cs:
5965         * Form.cs:
5966         * MdiClient.cs:
5967         * MdiWindowManager.cs: 
5968         - If mdi child is maximized, set mdi parent's
5969           text to "Parent - [Child]". Fixes #79770.
5970         - If there is any maximized mdi child windows, only the active 
5971           window (and any new windows) is maximized, the rest are normal.
5972         - On a WindowState change only save mdi child's window bounds 
5973           if the old window state was normal. Fixes #79774.
5974         - The scroll bars are now calculated on hopefully all
5975           necessary events. Fixed #79771 / #79844->6 / #79906.
5976         - MdiClient.SizeScrollBars() now takes into account docked 
5977           controls in the parent when calculating available space.
5978         - InternalWindowManager now always repaints the entire title
5979           area. Fixes #79844->1/4/5.
5980         - Added RequestNCRecalc on mdi child windowstate changes.
5981           Fixes #79772.
5982
5983 2006-11-20  Mike Kestner  <mkestner@novell.com>
5984
5985         * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
5986         in the MouseUp handler of the listbox and move the return handling
5987         code to FireMouseUp to avoid scrolling on ups.  Fixes #79952.
5988
5989 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
5990
5991         * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855. 
5992
5993 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
5994
5995         * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
5996           working in 1.2.x anymore. So, updated.
5997
5998 2006-11-19  Gert Driesen  <drieseng@users.sourceforge.net>
5999
6000         * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
6001         NumberGroupSeparator of current culture instead of assuming en-US.
6002         Fixed bug #79967.
6003
6004 2006-11-17  Mike Kestner  <mkestner@novell.com>
6005
6006         * Control.cs: Add the concept of implicit bounds setting so that
6007         dock/undock round trips preserve explicitly set size/locations.
6008         Fixes #79313.
6009
6010 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
6011
6012         * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
6013           can't handle those filters. (Fixes bug #79961)
6014
6015 2006-11-17  Chris Toshok  <toshok@ximian.com>
6016
6017         [ fixes the exit/crashes associated with #79835.  it's clearly
6018         suboptimal though, we need to figure out a better way to solve
6019         this. ]
6020         
6021         * PrintPreviewControl.cs: deal with the new invalid printer
6022         exceptions.
6023
6024         * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
6025         and return false (so CommonDialog.ShowDialog doesn't actually show
6026         the form.)
6027
6028         * PrintDialog.cs: enable/disable the Ok button depending on
6029         whether or not the printer is valid.
6030
6031         * CommonDialog.cs (ShowDialog): only actually show the form if
6032         RunDialog returns true.
6033
6034 2006-11-17  Jackson Harper  <jackson@ximian.com>
6035
6036         * TextControl.cs: When soft splitting a line, mark it as a soft
6037         split line. Also carry over the current line break to the next
6038         line.
6039
6040 2006-11-17  Chris Toshok  <toshok@ximian.com>
6041
6042         * XplatUIX11.cs: when scrolling a window with an invalid area, we
6043         only want to shift the part of the invalid area that overlaps the
6044         area we're scrolling.  we also don't want to clear the invalid
6045         area unless the invalid area was entirely contained within the
6046         scrolling area.
6047
6048 2006-11-16  Chris Toshok  <toshok@ximian.com>
6049
6050         * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
6051         also make sure to free the memory returned by XGetWindowProperty
6052         in GetText().
6053
6054         * X11Structs.cs: remove the TimerEvent stuff, it's unused.
6055
6056 2006-11-16  Chris Toshok  <toshok@ximian.com>
6057
6058         * XplatUI.cs: add a new super secret way to get at the totally
6059         unsupported X11 backend.
6060
6061 2006-11-16  Gert Driesen  <drieseng@users.sourceforge.net>
6062
6063         * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
6064
6065 2006-11-16  Jackson Harper  <jackson@ximian.com>
6066
6067         * TreeView.cs: Allow more explicit setting of top node position
6068         for scrollbars. Slower algo, but more accurate.
6069         - CollapseAll should maintain the current top node.
6070         * TextBoxBase.cs: When positioning the caret, use the line, pos
6071         method, since the x, y method does not grab the correct tag, and
6072         the caret height never gets set correctly. (Maybe I should just do
6073         away with the caret having its own height, and always use the
6074         carets current tag for height).
6075
6076 2006-11-16  Jonathan Pobst  <monkey@jpobst.com
6077
6078         [Fixes 79778, 79923]
6079
6080         * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
6081         Parent to the FosterParent instead.
6082
6083 2006-11-16  Jackson Harper  <jackson@ximian.com>
6084
6085         * TreeView.cs: Need to recalc the topnode when we expand or
6086         collapse. The scrolling methods can't handle this on their own,
6087         since they use differences between the last scroll position, and
6088         those difference get completely messed up since we are expanding
6089         nodes.  This problem should probably be fixed in the scrolling
6090         methods, so they can figure out exactly where they are, but this
6091         will slow things down a little.
6092         * ThemeWin32Classic.cs: Special case for groupboxes with empty
6093         strings, makes nunit-gui look a lot nicer.
6094
6095 2006-11-16  Chris Toshok  <toshok@ximian.com>
6096
6097         * XplatUIX11.cs: nasty, nasty, nasty changes required because of
6098         the broken multithreaded event handling we have in here.  File
6099         this entry under "Why we should move to the new X11 backend".
6100
6101         Any thread can make it into UpdateMessageQueue, which gets events
6102         from the X socket - some of which could belong to hwnds being
6103         managed by a different thread.  We can also have multiple threads
6104         in UpdateMessageQueue at the same time, with each one reading from
6105         the X socket.  This leads to many problems, with the following
6106         solutions:
6107
6108         We can't use hwnd.Queue.Enqueue anywhere in here and must use
6109         EnqueueLocked.
6110
6111         The MotionNotify compression we do can't work across threads
6112         (without locking the entire queue, perhaps) since we call
6113         hwnd.Queue.Peek, so we just punt and don't compress motion events
6114         unless the owning thread is the one which got the X event.
6115
6116         ConfigureNotify is another fun one, since it modifies the hwnd's
6117         bounds and then enqueues the event.  We add a lock to Hwnd which
6118         is held when setting configure_pending to true (and enqueuing the
6119         event).
6120
6121         There is a race wrt the wake socket.  we need to make sure that
6122         only 1 thread is waiting on that socket, or else a thread could
6123         sleep waiting for data that never comes.  It's difficult (but not
6124         impossible) to make happen, because it seems to require something
6125         like the following:
6126
6127             1. Thread 1 polls on wake_receive
6128         
6129             2. poll returns saying there's data to be read on
6130                wake_receive.
6131         
6132             3. Thread 2 polls on wake_receive and immediately returns
6133                saying there's data to be read.
6134
6135             4. Thread 2 reads the wakeup byte from wake_receive
6136
6137             5. Thread 1 attempts to read the wakeup byte from
6138                wake_receive.
6139
6140             6. Thread 2 exits (due to a form closing, perhaps).
6141
6142             7. Thread 1 blocks forever.
6143         
6144         Fun, eh?
6145
6146         Fixing the Expose handling isn't done yet, and the races inherent
6147         in that piece of code are responsible for the drawing mistakes you
6148         see when generating expose events in a MT app (like NPlot).  This
6149         one is the likely to be the hardest to bandaid, and it doesn't
6150         appear to cause anything but drawing problems.  The other issues
6151         caused apps to exit or hang.
6152
6153         * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
6154         called from a different thread than the one that should be calling
6155         these functions.
6156
6157         * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
6158
6159 2006-11-15  Chris Toshok  <toshok@ximian.com>
6160
6161         * Application.cs: null out the context's MainForm when we exit
6162         RunLoop.  Fixes a newly checked in unit test as well as the last
6163         ODE from bug #79933.
6164
6165 2006-11-15  Chris Toshok  <toshok@ximian.com>
6166
6167         * Form.cs (set_Owner): allow a null value so we can clear the
6168         form's owner.
6169         (Dispose): set all our owned_form's Owner properties to null, and
6170         clear the owned_forms collection.
6171         (WM_CLOSE): clean up this a little bit.. still not right though.
6172
6173         * ApplicationContext.cs: OnMainFormClosed should only call
6174         ExitThreadCore if the main form isn't recreating.  Fixes unit
6175         test.
6176
6177 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
6178
6179         [Fixes 78346]
6180
6181         * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
6182
6183 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
6184
6185         [Fixes 79433]
6186
6187         * Hwnd.cs: Add a flag to show a window, but not activate it, to 
6188         keep popup window types from stealing focus from the main form
6189         on Windows.
6190
6191         * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
6192
6193         * MenuAPI.cs: Set above flag to true.
6194
6195 2006-11-15  Chris Toshok  <toshok@ximian.com>
6196
6197         * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
6198         the button being released is not in wParam.
6199
6200 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
6201
6202         * Form.cs: Add the released button to MouseEventArgs.Button
6203         for the OnMouseUp call to the MenuTracker.  Fixes menu clicking
6204         on Win32.
6205
6206 2006-11-15  Chris Toshok  <toshok@ximian.com>
6207
6208         * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
6209         GetText().  untested because it's unused in our implementation.
6210         Control.Text always caches the text, even if
6211         ControlStyles.CacheText is not set.
6212
6213         fixes bug #79939.
6214
6215 2006-11-15  Chris Toshok  <toshok@ximian.com>
6216
6217         [ fixes #79933 ]
6218         
6219         * Form.cs: in Close() don't do anything after we send the WM_CLOSE
6220         message.  no hiding, no disposing.
6221
6222         in the WM_CLOSE handler, hide the form if it's modal.
6223
6224 2006-11-15  Chris Toshok  <toshok@ximian.com>
6225
6226         * XplatUIX11.cs: use AddExpose instead of sending a message.
6227         fixes textbox border drawing.
6228
6229 2006-11-15  Chris Toshok  <toshok@ximian.com>
6230
6231         * PropertyGridView.cs: keep from crashing on mouse move/down when
6232         the property grid is empty.
6233
6234 2006-11-14  Jackson Harper  <jackson@ximian.com>
6235
6236         * TextControl.cs: Make PageUp and PageDown more like the MS
6237         versions.
6238         * TextBoxBase.cs: When we set the text property position the
6239         cursor at the beginning of the document.
6240
6241 2006-11-14  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6242
6243         * Form.cs: if a mdi child's WindowState has changed
6244         before it's creation, it would display wrong control
6245         buttons.
6246         
6247 2006-11-14  Alexander Olk  <alex.olk@googlemail.com>
6248
6249         * TreeView.cs: De-uglify TreeView checkbox checkmarks.
6250           (Fixes bug #79927)
6251
6252 2006-11-14  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6253
6254         * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that 
6255         the window gets to paint its borders even if the window is
6256         getting smaller.
6257         
6258         * Form.cs: on a WM_NCPAINT invalidate the entire menu, 
6259         otherwise the old control buttons would still be painted 
6260         if the window gets bigger.
6261         
6262         * PaintEventArgs.cs: add an internal method so that the clip 
6263         rectangle can be changed.
6264         
6265 2006-11-13  Chris Toshok  <toshok@ximian.com>
6266
6267         [ fixes bug #79745 ]
6268         
6269         * NotifyIcon.cs: lots of cleanup.
6270
6271         * X11Structs.cs: add an enum for XEMBED messages.
6272
6273         * XplatUIX11.cs: reindent one of the giant switch statements, it
6274         was taking up an additional tab stop, and this file is already way
6275         too wide for my laptop's screen.
6276
6277         Also, add handling for the XEmbed EMBEDDED_NOTIFY message.  When
6278         we get it, resize the hwnd to the WMNormalHints max_width/height.
6279
6280 2006-11-13  Jackson Harper  <jackson@ximian.com>
6281
6282         * TextBoxBase.cs: Compute the value changes for the mouse wheel
6283         teh simple way.
6284
6285 2006-11-13  Chris Toshok  <toshok@ximian.com>
6286
6287         * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
6288         #79898.  force a reference to the Region to stick around so the
6289         unmanaged object isn't collected (rendering our handle in the MSG
6290         stale).
6291
6292 2006-11-13  Chris Toshok  <toshok@ximian.com>
6293
6294         * XplatUIX11.cs: fix #79917 for window managers which support
6295
6296         using XStoreName on the raw utf8, and we need to convert to
6297         COMPOUND_TEXT if it's non-latin1.
6298
6299 2006-11-13  Chris Toshok  <toshok@ximian.com>
6300
6301         * Form.cs (set_DialogResult): we need to set closing to false if
6302         we're setting our result to None.  fixes bug #79908.
6303
6304 2006-11-13  Jackson Harper  <jackson@ximian.com>
6305
6306         * TextControl.cs: When formatting text, compute the adjusted tag
6307         lengths correctly, using FindTag for the end tag instead of trying
6308         to figure it out outselves.
6309         * TreeNode.cs: Use ActualItemHeight, which is the actual height of
6310         the item, ItemHeight doesn't work, because trees with large
6311         imagelists use those for their height
6312         * TreeView.cs: ActualItemHeight factors in the image height
6313         - compute left edge of checkboxes correctly
6314         - when expanding/collapsing move the bottom down one pixel, so we
6315         aren't moving part of the node
6316
6317 2006-11-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6318
6319         * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
6320         stack in PaintEventStart so that it won't get disposed by the gc
6321         before reaching PaintEventEnd.
6322
6323 2006-11-13  Jackson Harper  <jackson@ximian.com>
6324
6325         * TextBoxBase.cs: Don't select the word if we are on a line with
6326         no text.
6327         - We don't need to position the caret on mouse up, since the mouse
6328         move handler should be doing this
6329         - When double clicking a blank line, the caret is advanced to the
6330         next line.
6331
6332 2006-11-13  Gert Driesen  <drieseng@users.sourceforge.net>
6333
6334         * TreeNodeCollection.cs: Avoid duplicating indexer code.
6335
6336 2006-11-12  Gert Driesen  <drieseng@users.sourceforge.net>
6337
6338         * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
6339         Fixes part of bug #79910.
6340
6341 2006-11-11  Alexander Olk  <alex.olk@googlemail.com>
6342
6343         * ColorDialog.cs: Fix a NRE when adding a color to custom colors
6344           (bug #79903). Some minor string updates to match ms.
6345
6346 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
6347
6348         * FileDialog.cs: Don't add an extension if the filename
6349           already ends with that extension.
6350
6351 2006-11-10  Jackson Harper  <jackson@ximian.com>
6352
6353         * TreeView.cs: Use the currently highlighted node for the
6354         BeforeSelect event.
6355         * TextBoxBase.cs: There is no need to expand selection on
6356         MouseMove.
6357         - CanUndo means 'is there any undo operations', not 'is undo
6358         allowed on this textcontrol. Fixed ClearUndo unit test.
6359
6360 2006-11-10  Andreia Gaita  <shana.ufie@gmail.com>
6361
6362         * Button.cs: only perform click when button is Selectable (so as 
6363         not to activate default buttons when they're disabled)
6364         
6365         * Control.cs: Rewrite of the SelectNextControl and related 
6366         methods. HandleClick now selects next control if the current one
6367         is being disabled.
6368         
6369         * Form.cs: OnActivated selects next active control only if Load 
6370         has already occurred. If Load hasn't run, there's no point in 
6371         selecting here, Load might change the state of controls.
6372         
6373         * FocusTest.cs: Tests marked as working again for these fixes
6374
6375 2006-11-10  Chris Toshok  <toshok@ximian.com>
6376
6377         * XplatUIX11.cs: a couple of fixes.
6378
6379         - use XInternAtoms with almost all the atoms we need to register,
6380         instead of many, many calls to XInternAtom.  should help a bit on
6381         startup time, at the expense of making the code look a little
6382         worse.
6383
6384         - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
6385         isn't reparented (which seems to be a clue that we're running fon
6386         compiz) and they have an Owner form.  This fixes the tool windows
6387         in paint.net when running under compiz.
6388
6389         - when setting the opacity of a window, support both the case
6390         where the window has been reparented and also when it hasn't been.
6391         Since compiz/beryl doesn't seem to reparent windows, and these are
6392         the only window managers which support translucency, I'm not sure
6393         why we need the hwnd.reparented case at all.. but leave it in.
6394         now we get translucent windows in paint.net under compiz/beryl.
6395
6396 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
6397
6398         * FileDialog.cs: Always return the value for FilterIndex that
6399           was set. Internally convert it to values that make sense.
6400
6401 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
6402         
6403         * ThemeWin32Classic.cs: Fix drowp down arrow borders.
6404
6405 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
6406
6407         * Toolbar.cs: Change default value of DropDownArrows to true, the 
6408         signature still using false to make it compatible with MS but the 
6409         initial value is true. Fixes #79855.
6410
6411 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
6412
6413         * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
6414           only available on Linux.
6415
6416 2006-11-09  Everaldo Canuto  <everaldo@simios.org>
6417
6418         * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
6419         reduce number of calls to redraw method during toolbar creation.
6420
6421 2006-11-09  Mike Kestner  <mkestner@novell.com>
6422
6423         * ListView.cs : raise SelectedIndexChanged when an item is selected
6424         programmatically via the Item.Selected property.  Gert's nice 
6425         ListViewSelectedIndexChanged test fixture now runs clean.
6426
6427 2006-11-09  Mike Kestner  <mkestner@novell.com>
6428
6429         * ListView.cs : raise SelectedIndexChanged when a selected item is
6430         removed from the item collection using Remove or RemoveAt.
6431
6432 2006-11-09  Mike Kestner  <mkestner@novell.com>
6433
6434         * ListView.cs : raise SelectedIndexChanged once per selected item
6435         for compat with MS.  Fixes #79849+.
6436
6437 2006-11-09  Chris Toshok  <toshok@ximian.com>
6438
6439         * TabControl.cs: initialize row_count to 0, and set it to 1 when
6440         we need to (if we have any tab pages).  Fixes unit test.
6441
6442 2006-11-09  Chris Toshok  <toshok@ximian.com>
6443
6444         * Label.cs (CalcPreferredWidth): if Text == "", our preferred
6445         width is 0, not 3.  Fixes a unit test.
6446
6447 2006-11-09  Mike Kestner  <mkestner@novell.com>
6448
6449         * ListView.cs : use Implicit scrollbars so that focus isn't 
6450         stolen from the listview when they are clicked. Fixes #79850.
6451
6452 2006-11-09  Chris Toshok  <toshok@ximian.com>
6453
6454         * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
6455         have a root item.  Fixes #79879.
6456
6457 2006-11-09  Alexander Olk  <alex.olk@googlemail.com>
6458
6459         * FileDialog.cs:
6460           - Fix ToString ()
6461           - An ArgumentException is now thrown if a wrong filter
6462             is applied (matches ms). The previous filter doesn't change
6463             anymore if an exception is thrown.
6464           - Changing the FileName property also affects FileNames
6465         * ColorDialog.cs: The length of the CustomColors array is always
6466           16. It doesn't matter if we use a smaller array or null to update
6467           or change the custom colors property.
6468         * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
6469           for RootFolder if we get a undefined value.
6470
6471 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6472
6473         * StatusBarPanel.cs: 
6474         - Width is set to MinWidth if Width is smaller than
6475         MinWidth. Fixes #79842.
6476         - MinWidth now always overrides Width (MSDN says MinWidth
6477         is set to Width when AutoSize = None, but they do not 
6478         behave like that).
6479         - Style has now the the correct default value.
6480         
6481 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6482  
6483         * TrackBar.cs: 
6484         - The control is completely invalidated on 
6485         Got/LostFocus to draw the focus rectangle correctly.
6486         - When AutoSize then height is always 45 (width for 
6487         vertical controls).
6488         
6489         * ThemeWin32Classic.cs: The TrackBar thumb is now centered
6490         on the mouse when moved and it doesn't move when grabbed
6491         until the mouse moves as well. Also fixed some wrong 
6492         calculations when clicking on the thumb (control thought
6493         click was outside of thumb and didn't grab it).
6494         Fixes some of the issues in #79718.
6495
6496 2006-11-08  Everaldo Canuto  <everaldo@simios.org>
6497
6498         * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
6499
6500 2006-11-08  Chris Toshok  <toshok@ximian.com>
6501
6502         * PropertyGridView.cs: only call ToggleValue if the item is not
6503         readonly.
6504
6505 2006-11-08  Jackson Harper  <jackson@ximian.com>
6506
6507         * TextBoxBase.cs: The RichTextBox and textbox have very different
6508         word selection methods.  Implement the textbox's simple word
6509         selection here, and let the RichTextBox override and provide it's
6510         own.
6511         - Don't do extra selection on mouseup
6512         * RichTextBox.cs: Use the documents word selection algorithm, I
6513         think ideally, this function will be pulled into the
6514         RichTextBox.cs code someday.
6515
6516 2006-11-08  Chris Toshok  <toshok@ximian.com>
6517
6518         * RootGridEntry.cs: new class to represent GridItemType.Root.
6519
6520         * CategoryGridEntry.cs: reformat, and add boilerplate.
6521         
6522         * GridEntry.cs: remove the UIParent stuff - turns out .Parent
6523         returns the UI parent anyway, and we need special handling to
6524         implement the GetTarget method in the face of it.  Also, implement
6525         Select().
6526
6527         * PropertyGrid.cs, PropertyGridView.cs: a number of fixes.  create
6528         a root grid item, and use that instead of PropertyGrid.grid_items.
6529         Also, make use of TypeConverters (and add limitted support for
6530         ICustomTypeDescriptors) when initially populating the grid.
6531         Arrays now show up more or less properly.
6532
6533 2006-11-08  Chris Toshok  <toshok@ximian.com>
6534
6535         * Application.cs: set the modal dialog to non modal after we close
6536         it.  Fixes bug #79866.
6537
6538 2006-11-08  Jackson Harper  <jackson@ximian.com>
6539
6540         * TextControl.cs: When combining lines carry over the line end
6541         style from the end line.
6542         - Invalidate the selected area when setting it, if it is visible.
6543         * TextBoxBase.cs: Only rich text box can do full line selects.
6544         - Make sure to set the cursor position when there is a click,
6545         otherwise two clicks in separate areas could cause a large chunk
6546         to be selected.
6547
6548 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
6549
6550         * Toolbar.cs: Release flat button borders when Toolbar lost focus. 
6551         Fixes #79863.
6552
6553 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
6554
6555         * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
6556         time. Remove tooltips when ToolButton click events.  Fixes #79856.
6557
6558 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
6559
6560         * MenuAPI.cs: Ignore right click for menu actions and fixes
6561         menu border when clicked.  Fixes #79846.
6562
6563 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
6564
6565         * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
6566         MouseState after create wParam for message, this fixes mouse button 
6567         equal none in mouse up events.
6568         
6569 2006-11-07  Andreia Gaita  <shana.ufie@gmail.com>
6570
6571         * Control.cs : Focus() now calls Select to set the Container's
6572         Active Control and to give it focus. To avoid infinite recursion
6573         (because ActiveControl also calls Focus at one point), a check 
6574         is made in Focus with the help of a new internal variable
6575         is_focusing.
6576
6577 2006-11-07  Mike Kestner  <mkestner@novell.com>
6578
6579         * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
6580         if there's a selection.  Fixes #79849.
6581
6582 2006-11-07  Gert Driesen  <drieseng@users.sourceforge.net>
6583
6584         * PropertyGrid.cs: Avoid fixed height of help description label.
6585         Fixes part of bug #79829.
6586
6587 2006-11-07  Chris Toshok  <toshok@ximian.com>
6588
6589         * XplatUIX11.cs: fix #79790 again, by using the
6590         _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
6591
6592 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
6593
6594         * ToolBar.cs: Fix left click checking.
6595
6596 2006-11-07  Chris Toshok  <toshok@ximian.com>
6597
6598         * ProgressBar.cs: fix a typo in ToString().  fixes a unit test.
6599
6600 2006-11-07  Chris Toshok  <toshok@ximian.com>
6601
6602         * RelatedPropertyManager.cs: set property_name in our ctor.  fixes
6603         PropertyManager unit tests.
6604
6605         * PropertyManager.cs: make property_name internal.
6606
6607 2006-11-07  Chris Toshok  <toshok@ximian.com>
6608
6609         * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
6610         pass a unit test.  Also, don't set image_index to anything in
6611         response to setting the ImageList property.
6612
6613 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
6614
6615         * ToolBar.cs: Ignore click events when mouse button is not a
6616         left button, only accepts other button for dropdown menus.  
6617         Fixes #79854.
6618
6619 2006-11-07  Chris Toshok  <toshok@ximian.com>
6620
6621         * DataGrid.cs: make the back and parent row buttons a little less
6622         ugly.
6623
6624 2006-11-07  Jackson Harper  <jackson@ximian.com>
6625
6626         * TextBoxBase.cs: When converting to Text don't put line breaks in
6627         for soft line breaks.
6628         * TextControl.cs: There is an initial "fake" line in the document,
6629         this is now a soft break line, so that an extra line feed doesn't
6630         get added to the end of documents.
6631
6632 2006-11-07  Chris Toshok  <toshok@ximian.com>
6633
6634         [ fix bug #79778 ]
6635         
6636         * CurrencyManager.cs: if the list is readonly, don't bother
6637         checking if IBindingList.AllowNew is true.
6638
6639         * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
6640         for non-DataRowView datasources..  or rather, make it not crash.
6641         (DataGridPaintRelationRow): make sure we limit the row painting to
6642         the area not covered by the row header, and make our cell width at
6643         least large enough to cover the relation area.  This allows grids
6644         that have relations but no rows to render correctly.
6645         (DataGridPaintRowContents): same type of changes here.
6646         (SetDataSource): move back to always calling
6647         CalcAreasAndInvalidate.  this fixes a crash/drawing problem when
6648         navigating back through relations.
6649         (HitTest): handle the case where we have no cells but have
6650         relations.  Right now we generate a hit in cell 0 of whatever the
6651         row is, not sure if this is strictly correct, but it works for our
6652         purposes.
6653         
6654         * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
6655         bother doing anything.
6656
6657 2006-11-07  Jonathan Pobst  <monkey@jpobst.com>
6658
6659         * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
6660         early version of StatusStrip.  Not responsible for eaten
6661         application or firstborn children.
6662
6663 2006-11-06  Chris Toshok  <toshok@ximian.com>
6664
6665         * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
6666         call GetTabRect with a -1 index.  Fixes #79847.
6667
6668 2006-11-06  Jackson Harper  <jackson@ximian.com>
6669
6670         * TreeNodeCollection.cs: Update scrollbars after clearing.
6671
6672 2006-11-06  Chris Toshok  <toshok@ximian.com>
6673
6674         * NumericUpDown.cs: fix the ToString method for some unit test
6675         love.
6676
6677 2006-11-06  Chris Toshok  <toshok@ximian.com>
6678
6679         * PropertyGrid.cs:
6680         - set the initial SelectedGridItem if we can.
6681
6682         - Exclude non-mergable properties only if we're merging > 1
6683         object.  Merging 1 object isn't really merging, obviously.
6684
6685         - Handle PropertySort.NoSort just like Alphabetical, which is
6686         wrong of course, but at least gets things on the screen.
6687         
6688         * PropertyGridView.cs:
6689         - Add method "FindFirstItem" which finds the first property grid
6690         item, so we can select it by default.
6691
6692         - make use of GridEntry.CanResetValue.
6693
6694         - Don't call RedrawBelowItemOnExpansion here anymore, the
6695         individual GridEntry's will do that.
6696
6697         - Remove the ITypeDescriptorContextImpl internal class.
6698         
6699         * GridEntry.cs:
6700         - this class needs to implement ITypeDescriptorContext, as it's
6701         what MS's PropertyDescriptorGridEntry does, which means we can
6702         remove the ITypeDescriptorContextImpl internal class from
6703         PropertyGrid.cs.  This fixes the crashing portion of bug #79829.
6704
6705         - keep a reference to our PropertyGridView, and move the call to
6706         RedrawBelowItemOnExpansion here from PGV.  This means
6707         programmaticly setting Expanded actually does something visible.
6708
6709         - add a CanResetValue() function which takes into account our
6710         possibly multiple "selected_objects" in the merged case.  Shifting
6711         PropertyGridView to use this method fixes another unreported
6712         crasher found running the test for #79829.
6713
6714         - when Top or Bounds is updated, make sure the PropertyGridTextBox
6715         is updated to reflect this.
6716
6717         * CategoryGridEntry.cs: the ctor takes the PGV now.
6718         
6719 2006-11-06  Jackson Harper  <jackson@ximian.com>
6720
6721         * TextControl.cs: These are 1 based.
6722         * TextBoxBase.cs: When setting the selected text, don't change the
6723         selected text tags, this is done by ReplaceText, just position the
6724         cursor at the end of the new text.
6725
6726 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
6727
6728         * ListView.cs: Allow label edit only when, when LabelEdit is
6729           set to true.
6730
6731 2006-11-06  Jackson Harper  <jackson@ximian.com>
6732
6733         * TextControl.cs: If a suitable wrapping position isn't found,
6734         just wrap right in the middle of a word.
6735
6736 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
6737
6738         * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
6739           bug #79820.
6740
6741 2006-11-06  Jackson Harper  <jackson@ximian.com>
6742
6743         * TreeView.cs: Can't use the VisibleCount property when setting
6744         scrollbar heights, because this doesn't take into account whether
6745         or not the horz scrollbar just came visible.
6746
6747 2006-11-05  Everaldo Canuto  <everaldo@simios.org>
6748
6749         * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
6750         activated.  Fixes #79369, #79832.
6751
6752 2006-11-05  Alexander Olk  <alex.olk@googlemail.com>
6753
6754         * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
6755           had to remove support for links that point to a directory. FileInfo
6756           returns no usefull information (means, the directory they point to)
6757           for such links. Replaced some empty string ("") with String.Empty.
6758
6759 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
6760
6761         * TreeNodeCollection.cs: To match MS, in 1.0 profile throw 
6762         NullReferenceException when attempting to remove node that is not in
6763         collection. Throw NullReferenceException when null is passed to 
6764         Remove. Allow first element of the collection to be removed. Fixes
6765         bug #79831.  In GetEnumerator ().Current return null if positioned 
6766         before the first element of the collection. In GetEnumerator ().Reset,
6767         position before first element of the collection.
6768
6769 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
6770
6771         * PropertyGrid.cs: To match MS, remove default title and description
6772         for panel. Fixed tooltips for Categorized and Alphabetic toolbar
6773         buttons.
6774
6775 2006-11-04  Chris Toshok  <toshok@ximian.com>
6776
6777         * Theme.cs: add a Clamp method, just for kicks.
6778
6779         * ThemeWin32Classic.cs: clamp all color components to [0..255].
6780
6781 2006-11-04  Chris Toshok  <toshok@ximian.com>
6782
6783         * Form.cs: if the form isn't visible, Close() does nothing.
6784
6785 2006-11-03  Chris Toshok  <toshok@ximian.com>
6786
6787         * Form.cs (Close): if the form is modal, don't Dispose of it, only
6788         Hide it.
6789         (WndProc): don't Dispose after handling the WM_CLOSE message.
6790
6791         * Application.cs (RunLoop): toplevels is a list of Forms, so treat
6792         them as such, instead of using casts from Control to Form.  Also,
6793         don't Dispose of the modal dialog when we fall out of the loop -
6794         Close() it instead.
6795
6796         fixes bug #79813.
6797
6798 2006-11-03  Chris Toshok  <toshok@ximian.com>
6799
6800         * Control.cs (Dispose): only go through the dispose thing if we're
6801         @disposing, and we haven't already been disposed.  Fixes bug
6802         #79814.
6803
6804         * Form.cs: no reason to call "base.Dispose()" here instead of
6805         "Dispose()".
6806
6807 2006-11-03  Mike Kestner  <mkestner@novell.com>
6808
6809         * ComboBox.cs : use ToString instead of casts in AddItem for
6810         sorting functionality.  Fixes #79812.
6811
6812 2006-11-03  Chris Toshok  <toshok@ximian.com>
6813
6814         * Application.cs: pave the way for actually using the thread
6815         exception dialog.  it's ifdefed out at the moment.
6816
6817 2006-11-03  Chris Toshok  <toshok@ximian.com>
6818
6819         * ThreadExceptionDialog.cs: until we get a better layout, actually
6820         hide the details textbox and label when we shouldn't see them.
6821
6822 2006-11-03  Jackson Harper  <jackson@ximian.com>
6823
6824         * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
6825         multiline textboxes anymore.  This method also determines the
6826         width/height of a textboxes canvas area.
6827         - Sorta a revert of the last patch.  For multiline just position
6828         the controls, then bail.  This way the scrollbar width won't be
6829         altered.
6830
6831 2006-11-03  Everaldo Canuto  <everaldo@simios.org>
6832
6833         * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
6834         it dont need.  Fixes #79537.
6835
6836 2006-11-02  Jackson Harper  <jackson@ximian.com>
6837
6838         * X11Dnd.cs: We always allow copy, since XDND implies Copy.  Also
6839         send the status after firing the DndOver event.
6840
6841 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6842
6843         * TrackBar.cs: Now orientation only switches height / width if
6844         the control's handle is created (Win32 does it like this). Also 
6845         fixed a typo in ToString() for a test to pass, changed the 
6846         exception thrown in set_LargeChange and set_SmallChange to 
6847         match Win32 behaviour, and added TrackBar tests to the unit 
6848         tests.
6849
6850 2006-11-02  Chris Toshok  <toshok@ximian.com>
6851
6852         * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
6853         not _NET_WM_STATE_NO_TASKBAR.
6854
6855 2006-11-02  Jackson Harper  <jackson@ximian.com>
6856
6857         * TextControl.cs: Increment count by one, since in the update view
6858         count - 1 is used.
6859
6860 2006-11-02  Jackson Harper  <jackson@ximian.com>
6861
6862         * TextBoxBase.cs: Use client rectangle not bounds for checking if
6863         the mouse is in the client rectangle (duh).
6864
6865 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6866         
6867         * TrackBar.cs: Fixed trackbar jumping around when clicking
6868         on it - the trackbar was not detecting correctly at which
6869         side of the thumb the click was done. (fixes #79718)
6870
6871 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
6872
6873         * ListBox.cs: scroll visible area when change SelectedIndex to
6874         a non visible area.  Fixes #79481.
6875
6876 2006-11-01  Jackson Harper  <jackson@ximian.com>
6877
6878         * TextControl.cs: When replacing the selection move the selection
6879         start/end/anchor to the end of the new text.
6880
6881 2006-11-01  Jackson Harper  <jackson@ximian.com>
6882
6883         * XplatUIWin32.cs: When setting the parent change the controls
6884         visibility to it's visibility flag, not to it's old parents
6885         visibility (.Visible walks the parent chain).
6886
6887 2006-11-01  Chris Toshok  <toshok@ximian.com>
6888
6889         * XplatUIX11.cs: revert the #79790 fix, as the simple.
6890         XSetTransientForHint fix breaks paint .net's tool windows.  more
6891         work needed for that one.
6892
6893 2006-11-01  Chris Toshok  <toshok@ximian.com>
6894
6895         * ScrollBar.cs: throw ArgumentException instead of Exception in
6896         LargeChange/SmallChange setters.  fixes unit tests.
6897
6898 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
6899
6900         * ContainerControl.cs: reverted rev.67183 (which was itself
6901         a reversion of rev.66853... eh).
6902         
6903         * Control.cs: Fixes Reflector hang by changing Focus() call
6904         to what it was before rev.66643 (calling Select() here sets 
6905         ActiveControl, which in some situations calls back Focus and 
6906         eventually does a stack overflow). Temp fix.    
6907         Changes to GetNextControl() to not look for children to select when
6908         parent cannot be selectable (so it looks for siblings instead)  
6909         
6910 2006-10-31  Mike Kestner  <mkestner@novell.com>
6911
6912         * CheckedListBox.cs : off by one error in returned index from
6913         ObjectCollection.Add.  Fixes #79758.
6914
6915 2006-10-31  Chris Toshok  <toshok@ximian.com>
6916
6917         * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
6918         calls for the textbox/spinner, to keep from recursing to the point
6919         where we crash.  Fixes #79760.
6920
6921 2006-10-31  Chris Toshok  <toshok@ximian.com>
6922
6923         * ListControl.cs (set_SelectedValue): don't throw exceptions on
6924         null/"" value, just return.  matches ms's behavior and fixes some
6925         failing tests.
6926
6927 2006-10-31  Chris Toshok  <toshok@ximian.com>
6928
6929         * Control.cs (set_Capture): make a logic a little easier to
6930         follow.
6931
6932         * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
6933         if it's being destroyed.  A necessary fix surely, but a bandaid
6934         also, to fix the stuck capture problem in bug #78413.
6935
6936 2006-10-31  Chris Toshok  <toshok@ximian.com>
6937
6938         * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
6939         convention of clearing hwnd.ClientRect when we set the
6940         width/height (so it'll be recalculated by Hwnd).
6941
6942 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
6943
6944         * ContainerControl.cs: reversed Contains check from
6945         ActiveControl due to hanging problems. This fix
6946         partly regresses #79667 (button does not have
6947         initial focus), so this might be a symptom for 
6948         a larger parenting problem (set_ActiveControl
6949         is being called but the child control does
6950         not have the parent set yet?)   
6951         
6952 2006-10-31  Mike Kestner  <mkestner@novell.com>
6953
6954         * MenuAPI.cs : fix keynav when menu is click activated.
6955
6956 2006-10-31  Jonathan Pobst  <monkey@jpobst.com>
6957
6958         * ToolStrip*: Version 0.2.
6959
6960         * MenuStrip.cs: Version 0.1.
6961
6962         * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
6963
6964 2006-10-30  Chris Toshok  <toshok@ximian.com>
6965
6966         [ fixes the oversized notify icon issue in bug #79745 ]
6967         
6968         * NotifyIcon.cs: scale the icon down to the size we're given by
6969         the XplatUI layer (this would be faster if we did it once instead
6970         of whenever we paint..)  Also, remove the WM_NCPAINT handling,
6971         since it's never invoked.
6972
6973         * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
6974         pixels high by default, so let's hardcode our systray icon to that
6975         size.  The SYSTEM_TRAY protocol should really have a way for
6976         client apps to query for the correct icon size.. but oh well.  A
6977         couple of patches to deal with the screwy client_window ==
6978         whole_window notifyicon stuff (we don't want to PerformNCCalc, for
6979         instance, and also make sure we don't XSelectInput twice).
6980
6981 2006-10-30  Chris Toshok  <toshok@ximian.com>
6982
6983         * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
6984         recreating forms.  Control recreation is the bane of my existence.
6985         Fix it in a way that keeps everyone happy.
6986
6987 2006-10-30  Chris Toshok  <toshok@ximian.com>
6988
6989         * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
6990         just non-CHILD ones.  otherwise sometimes scrollbars end up with
6991         client_windows not being resized to the proper size (ReportBuilder
6992         shows this extremely well).
6993
6994 2006-10-30  Chris Toshok  <toshok@ximian.com>
6995
6996         * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
6997         for non-WS_EX_APPWINDOW windows.  This is what keeps them from
6998         showing up in the gnome taskbar.  Fixes bug #79790.
6999
7000 2006-10-30  Chris Toshok  <toshok@ximian.com>
7001
7002         * ApplicationContext.cs: guard against a NRE.
7003
7004         * Application.cs: null out the old MainForm for the context, so we
7005         don't try to use it again once it's disposed.  Fixes bug #79783.
7006
7007 2006-10-30  Chris Toshok  <toshok@ximian.com>
7008
7009         * DataGrid.cs (set_DataSource, set_DataMember): if we have a
7010         BindingContext, set the data source directly, otherwise do the
7011         lazy approach - the actual ListManager will be created when we get
7012         a BindingContext. Fixes bug #79700.
7013
7014 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
7015
7016         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
7017           XplatUIX11.cs: Remove old 2 parameter SetVisible.
7018
7019         * Control.cs: Use the new 3 parameter SetVisible with activate = true.
7020
7021 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
7022
7023         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
7024         of SetVisible that allows a window to be shown, but not activated.
7025         This is needed on Windows for MenuStrip, and can probably be used
7026         with MainMenu and ComboBox to fix the focus stealing issues on
7027         Windows.
7028
7029         * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
7030
7031 2006-10-30  Alexander Olk  <alex.olk@googlemail.com>
7032
7033         * PictureBox.cs: Fix the output of the ToString method.
7034
7035 2006-10-29  Chris Toshok  <toshok@ximian.com>
7036
7037         * Control.cs (get_TopLevelControl): fix bug #79781.
7038
7039 2006-10-29  Chris Toshok  <toshok@ximian.com>
7040
7041         * ListControl.cs (set_DataSource): throw Exception here, not
7042         ArgumentException, to match MS behavior.
7043
7044 2006-10-29  Chris Toshok  <toshok@ximian.com>
7045
7046         * Form.cs: remove the try-catch's around calls to GetWindowState.
7047         We can just check the return value.
7048
7049         * XplatUIX11.cs: don't throw exceptions from GetWindowState.
7050         Instead return -1.
7051
7052         * XplatUI.cs: Add note about additional return value for
7053         GetWindowState.
7054
7055 2006-10-29  Chris Toshok  <toshok@ximian.com>
7056
7057         * Control.cs (CreateHandle): when we create our handle, we also
7058         create the handles of our child controls.  Fixes one of the
7059         Control unit tests (CH11).
7060
7061 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
7062
7063         * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
7064
7065 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
7066
7067         * ThemeClearlooks.cs: A little speedup.
7068
7069 2006-10-27  Chris Toshok  <toshok@ximian.com>
7070
7071         * Control.cs: implement Control.FromChildHandle in a way that
7072         matches the docs (and fixes the failed test.)
7073
7074 2006-10-27  Chris Toshok  <toshok@ximian.com>
7075
7076         * DataGridTableStyle.cs: reproduce buggy MS behavior (with
7077         comments).
7078
7079         * DataGrid.cs: implement ResetForeColor such that the tests
7080         succeed.
7081         
7082 2006-10-27  Chris Toshok  <toshok@ximian.com>
7083
7084         * ToolBarButton.cs: setting text/tooltiptext to null results in it
7085         being set to "".  Fixes bug #79759.
7086
7087 2006-10-27  Jackson Harper  <jackson@ximian.com>
7088
7089         * TextControl.cs: We need to clear the entire selection area when
7090         setting the start, otherwise multiline selections are still
7091         visible.
7092
7093 2006-10-26  Chris Toshok  <toshok@ximian.com>
7094
7095         * PropertyGridView.cs: 
7096
7097         - ifdef all the code specific to the double
7098         buffer case, and provide some alternatives in the non-doublebuffer
7099         code, which makes heavy use of XplatUI.ScrollWindow to move things
7100         around without having to invalidate (and cause flicker).  There
7101         are still some drawing problems in the non-doublebuffered case, so
7102         DOUBLEBUFFER is defined by default.
7103
7104         - Fix the way dropdowns are handled.  now we explicitly watch for
7105         the events which might cause the dropdown to close, and break out
7106         of the nested event loop there.  This gets rid of all Capture
7107         code, at the expense of the Msg special casing.  Seems to work,
7108         though, and fixes bug #79743.
7109
7110 2006-10-27  Rolf Bjarne Kvinge <RKvinge@novell.com>
7111         * Control.cs: SetIsRecreating now recreates implicitly added
7112         child controls as well. Finally fixes #79629. The flag passed to 
7113         SetIsRecreating has also been removed since it wasn't used.
7114         
7115 2006-10-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7116
7117         * PageSetupDialog.cs: Clean some code, fix some bits, 
7118         add some checks, and add a printer sub-dialog.
7119
7120 2006-10-26  Chris Toshok  <toshok@ximian.com>
7121
7122         * PropertyGrid.cs: make set_SelectedObject call
7123         set_SelectedObjects, and move the duplicate logic to the
7124         SelectedObjects setter.  Also, raise SelectedObjectsChanged.
7125
7126         * PropertyGridView.cs: hide the textbox when we get a
7127         SelectedObjectsChanged event.
7128
7129         Fixes bug #79748.
7130
7131 2006-10-26  Chris Toshok  <toshok@ximian.com>
7132
7133         * PropertyGridView.cs: deal with the type converter not supporting
7134         GetStandardValues() or GetStandardValues() returning null, which
7135         is does in the default case.  Fixes #79742.
7136
7137 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
7138
7139         * CheckedListBox.cs: nunit no longer crashes when selecting 
7140         Project/Edit menu option
7141         
7142 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
7143
7144         * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
7145         is no menu selected. fixes #79739
7146
7147 2006-10-25  Chris Toshok  <toshok@ximian.com>
7148
7149         * PropertyGridView.cs: factor out the splitter invalidation code
7150         into the SplitterPercent setter, and for kicks implement the
7151         Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
7152         amount in either direction.
7153
7154 2006-10-25  Chris Toshok  <toshok@ximian.com>
7155
7156         * PropertyGridView.cs: do some cleanup of the brush used to draw
7157         text - read only fields should be grayed out.  not sure how to do
7158         this with the textbox, though.  but the textbox's should also be
7159         readonly now at least.  Also, hide/show the textbox when resizing
7160         the control.
7161         
7162         * CursorConverter.cs: use System.Reflection when getting the
7163         properties of Cursors, as TypeDescriptor.GetProperties isn't
7164         returning static properties.
7165
7166 2006-10-25  Chris Toshok  <toshok@ximian.com>
7167
7168         * PropertyGridView.cs: factor out the up/down handling, and reuse
7169         it for page up/down.  also add End/Home support.
7170
7171 2006-10-25  Chris Toshok  <toshok@ximian.com>
7172
7173         * PropertyGridView.cs:
7174
7175         - ensure the selected grid item is visible in the scrolled area,
7176         fixes bug #79572.
7177
7178         - fix Keys.Down handling when you're on the last item in the
7179         propertygrid.
7180
7181 2006-10-25  Mike Kestner  <mkestner@novell.com>
7182
7183         * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup 
7184         clicks too.  Fixes #79725.
7185
7186 2006-10-24  Chris Toshok  <toshok@ximian.com>
7187
7188         * PropertyGrid.cs: use property.Converter instead of
7189         TypeDescriptor.GetConverter(property.PropertyType), so we catch
7190         TypeConverters declared on the property as well as on the
7191         PropertyType.  Fixes bug #79678.
7192
7193 2006-10-24  Alexander Olk  <alex.olk@googlemail.com>
7194
7195         * MimeIcon.cs, Mime.cs:
7196           Fallback to the default platform handler if no shared mime info
7197           stuff exists (fixes #79693).
7198
7199 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
7200         * ContainerControl.cs: Incorrect contains check in ActiveControl 
7201         from previous fix (duh).
7202
7203 2006-10-20  Chris Toshok  <toshok@ximian.com>
7204
7205         * PropertyGridView.cs: the dropdown should be MIN(number of items
7206         in list, 15).  Fixes #79551.
7207
7208 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
7209         Fixes #79384, #79394, #79652, #79667
7210         * Application.cs: 
7211         
7212         - Modal windows are now destroyed in the proper order for windows
7213         
7214         * ContainerControl.cs:
7215         
7216         - ActiveControl setter has more conditions on when to return:
7217                 - if we're reselecting the active control, but it actually
7218                 didn't have focus (window hidden or some such), it runs
7219                 - if the active control being selected doesn't actually 
7220                 exist in the container, it returns
7221         
7222         * Form.cs
7223         
7224         - The ShowDialog now gets the current form as the owner when
7225         invoking without parameters, and correctly activates the owner 
7226         when returning
7227         
7228         * MessageBox.cs
7229         
7230         - MessageBox now catches the Escape key to exit
7231
7232 2006-10-20  Chris Toshok  <toshok@ximian.com>
7233
7234         * PropertyGridView.cs: fix a number of issues (bug #78565, and
7235         most of bug #79676):
7236
7237         - you can navigate around the property grid with the arrow keys.
7238
7239         - the dropdown is sized properly when the pg has a vertical
7240         scrollbar.
7241
7242         - fix the indentation for subentries, and properly select the
7243         entire label rect.
7244
7245         - fix the gray bar's drawing (only draw it to the last element,
7246         not for the height of the control.  Also make sure we draw that
7247         last horizontal grid line.
7248
7249         - use the same mechanism the datagrid uses wrt the editing textbox
7250         when scrolling/resizing/etc.  Namely, we hide it first, do the
7251         operation, then show it again (if it's still visible).
7252         
7253         - aggressively remove a lot of unnecessary refreshes (and also
7254         calls to Invalidate(). call more limited variants, and only redraw
7255         what we need.)
7256         
7257         * PropertyGrid.cs:
7258
7259         - when we're populating the merged collection, fill in the UI
7260         parent with either the passed in item, or the category item we
7261         create.
7262
7263         - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
7264
7265         * GridItem.cs: drop some fully qualified names.
7266         
7267         * GridEntry.cs: add a "UIParent", which is basically the parent
7268         treenode.
7269
7270         * GridItemCollection.cs: add an IndexOf method.
7271
7272 2006-10-20  Mike Kestner  <mkestner@novell.com>
7273
7274         * MainMenu.cs : go back to Draw in OnMenuChanged.  Until we get
7275         a working win32 NC invalidation mechanism, we can't invalidate
7276         menus.  [Fixes #79705]
7277
7278 2006-10-20  Mike Kestner  <mkestner@novell.com>
7279
7280         * ListBox.cs : don't update the VScrollbar if the list is empty,
7281         just hide it.  [Fixes #79692]
7282
7283 2006-10-20  Jackson Harper  <jackson@ximian.com>
7284
7285         * RichTextBox.cs: Handle some special chars better, and don't skip
7286         the entire group when we encounter a special char that we don't
7287         handle correctly.
7288
7289 2006-10-18  Chris Toshok  <toshok@ximian.com>
7290
7291         * PropertyGridView.cs: address a number of issues from bug #79676,
7292         mostly of the cosmetic variety.
7293
7294         - The highlight rectangle for indented items not extends all the
7295         way to the left.
7296
7297         - Indented items aren't indented so much.
7298
7299         - the dropdown is properly sized width-wise if the pg has a
7300         vertical scrollbar.
7301
7302 2006-10-18  Chris Toshok  <toshok@ximian.com>
7303
7304         * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
7305         systray stuff is rather convoluted to begin with.
7306
7307         systray icons are a single window for some reason (that I haven't
7308         figured out yet), and for them, client_window == whole_window.
7309         Given the way the tests are structured elsewhere to determine
7310         which paints are pending (client vs. nc), that situation will
7311         always yield PAINT, not NCPAINT.  So, if we have a pending
7312         nc_expose and no pending expose, remove the hwnd from the paint
7313         queue, and also set nc_expose_pending to false, to keep us from
7314         blocking further expose's adding the hwnd to the paint queue.
7315
7316         phew.  like i said, a rather convoluted change.  Fixes the
7317         notifyicon repaint issues in bug #79645.
7318
7319 2006-10-18  Chris Toshok  <toshok@ximian.com>
7320
7321         * Form.cs: when getting the backcolor of the form, don't get
7322         base.BackColor, as this allows parents to influence the background
7323         color.  This breaks mdi forms.  Instead, if the background_color
7324         is empty, return the default.
7325
7326 2006-10-18  Chris Toshok  <toshok@ximian.com>
7327
7328         * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
7329         to being private instead of internal static.
7330
7331         * Control.cs: remove all the stupid ParentWaitingOnRecreation
7332         crap, it wasn't working for more deeply nested controls anyway,
7333         and we already have the is_recreating flag - use that instead.
7334         Before calling DestroyHandle in RecreateHandle, recurse through
7335         the control tree setting it to true.  this returns the recreate
7336         code to much of its original simplicity, while now guaranteeing we
7337         actually recreate everything we're supposed to.  This change gets
7338         fyireporting actually showing mdi children.
7339
7340 2006-10-17  Chris Toshok  <toshok@ximian.com>
7341
7342         * Form.cs: remove some debug spew, and collapse some duplicate
7343         code at the end of SetClientSizeCore.
7344
7345         * XplatUIX11.cs: 
7346         - add some more debug spew here too wrt Destroy handling.
7347         - don't call hwnd.Dispose in DestroyWindow, it's effectively done
7348         in Control's handling of WM_DESTROY.
7349         - Remove the handling of zombie window DestroyNotifies from the
7350         event loop - we don't need it.  Now the only DestroyNotifies we
7351         actually handle are ones generated by X.
7352         - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
7353         match gtk's (functioning) handling of this. This keep metacity
7354         from leaving droppings in the form of wm borders with no window
7355         contents all over the place.
7356
7357         * Control.cs:
7358         - add a bunch of debug spew wrt control recreation.
7359         - fix a bug where we weren't tracking Visible properly on
7360         recreated hwnds.
7361         - fixed the WM_PAINT double buffer handling to support re-entrant
7362         calls (yes, i know it's gross, but it's happening to us).
7363
7364 2006-10-17  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
7365         * ThemeWin32Classic.cs: changed drawing of selected days
7366         to make them look better.
7367
7368 2006-10-16  Chris Toshok  <toshok@ximian.com>
7369
7370         * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
7371         drawing_stack.  Nuke the ClientDC/NonClientDC properties.
7372
7373         * XplatUIX11.cs: move away from using hwnd.client_dc and
7374         hwnd.non_client_dc and on to a stack of dc's (and in window's
7375         case, PAINTSTRUCT's), so we can deal with nested Paint calls
7376         without puking or not disposing of Graphics objects.
7377
7378         * XplatUIOSX.cs: same.
7379
7380         * XplatUIWin32.cs: same.
7381
7382 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
7383
7384         * FileDialog.cs: Don't call on_directory_changed inside
7385           OnSelectedIndexChanged (it changes the SelectedIndex too).
7386           Instead move it to OnSelectionChangeCommitted.
7387
7388 2006-10-13  Chris Toshok  <toshok@ximian.com>
7389
7390         * XplatUIX11.cs: more Destroy work.  the current code does the
7391         following things, in order:
7392
7393         1. Enumerates all handles of all controls at or below the one
7394         being destroyed, in pre-order.  As it is doing this, it marks the
7395         handles as zombie and clears all references to them.
7396         
7397         2. calls XDestroyWindow on the window passed in.
7398
7399         3. SendMessage's WM_DESTROY to all he handles in the accumulated
7400         list.
7401
7402 2006-10-13  Chris Toshok  <toshok@ximian.com>
7403
7404         * XplatUIX11.cs: set hwnd.zombie to true before calling
7405         SendMessage (WM_DESTROY).  this keeps us from marking the new
7406         window a zombie, and also keeps us from calling sendmessage at
7407         all.
7408
7409 2006-10-13  Jackson Harper  <jackson@ximian.com>
7410
7411         * TextControl.cs: Do not show the caret and selection at the same
7412         time.  Reduces ugliness by 35%.
7413
7414 2006-10-13  Chris Toshok  <toshok@ximian.com>
7415
7416         * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
7417         zombie after we do the recursive call, so we actually do call
7418         SendMessage on the children controls.
7419         (GetMessage): if we find a pending paint event for a zombie hwnd,
7420         remove the hwnd from the paint queue, or else it will always be
7421         there (and we'll effectively loop infinitely)
7422
7423 2006-10-13  Mike Kestner  <mkestner@novell.com>
7424
7425         * MenuItem.cs : add Selected format under keynav too.
7426         Fixes #79528.
7427
7428 2006-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
7429
7430         * PropertyGrid.cs: Fixed some NRE's and small difference between our
7431         implementation and that of MS.
7432
7433 2006-10-13  Chris Toshok  <toshok@ximian.com>
7434
7435         * Control.cs (OnInvalidated) only futz with the invalid_region if
7436         the control is double buffered.  this fixes the apparent hang in
7437         the ListView unit tests.  Someone needs to make the
7438         BeginEndUpdateTest not call OnInvalidated 15004 times, though..
7439
7440 2006-10-13  Chris Toshok  <toshok@ximian.com>
7441
7442         * PropertyGridView.cs:
7443
7444         - do a little refactoring so that only one place calls
7445         dropdown_form.Hide, and that is CloseDropDown.  make everywhere
7446         else call that.  Also make it Refresh, since there are redraw bugs
7447         otherwise (we should take a look at that...)
7448
7449         - do a little more refactoring work to share the body of code
7450         involved with the drop down.  it was duplicated in the code
7451         dealing with the listbox handling and in the code dealing with the
7452         UITypeEditors.
7453
7454         - add a Capture to the dropdown form's control once it's
7455         displayed, and add a MouseDown handler that checks to make sure
7456         the position is inside the control.  If it's not, close the
7457         dropdown.  This fixes #78190.
7458
7459         - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
7460         if the value is different than the initial value.
7461         
7462 2006-10-13  Andreia Gaita  <shana.ufie@gmail.com>
7463
7464         * Control.cs: see #78650
7465         - Fixed GetNextControl for several cases:
7466                 - Changed FindFlatForward to return 
7467                 correct sibling control when more than one
7468                 control has same TabIndex as the currently 
7469                 focused one.
7470                 - Changed FindFlatBackward to loop children
7471                 from last to first and apply same logic as in
7472                 FindFlatForward
7473                 - Changed FindControlForward to search for
7474                 children when control is not a container
7475                 but has children, or search for siblings if
7476                 control is a container...
7477                 - Changed FindControlBackward   to continue
7478                 searching for child controls when hitting 
7479                 Panel-like parents
7480                 
7481         - Fixed Focus method to update ActiveControl
7482         (FocusTest.FocusSetsActive failure)
7483         
7484         * TabControl.cs:
7485         - Focus rectangle now refreshes when gaining
7486         or losing focus
7487         - Removed grab for Tab key on IsInputKey that 
7488         was keeping tab navigation from working (#78650)
7489
7490 2006-10-13  Chris Toshok  <toshok@ximian.com>
7491
7492         * PropertyGridView.cs:
7493         - Rewrite SetPropertyValue to loop over SelectedGridItem's
7494         SelectedObjects.
7495
7496         - Deal with GridItem.Value == null a few places.
7497
7498         * PropertyGrid.cs: 
7499         - replace the PopulateGridItemCollection with a pair of methods
7500         which compute the intersection of all the properties in the
7501         SelectedObjects array.  Fixes #79615.
7502
7503         - Throw ArgumentException from set_SelectedObjects if there's a
7504         null in the array.
7505
7506         - Add GetTarget method which can be used to traverse up the
7507         GridItem.Parent chain.  It depends on the assumption that
7508         selected_objects for different GridEntries are always in the same
7509         order (a safe assumption).  Use this method and loop over all the
7510         selected objects in the entry when calling RemoveValueChanged and
7511         AddValueChanged.
7512         
7513         * GridEntry.cs: Make this handle multiple selected objects.
7514         .Value returns null if not all the selected objects share the same
7515         value.
7516
7517 2006-10-12  Jonathan Pobst  <monkey@jpobst.com>
7518         * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
7519           ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
7520           ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
7521           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
7522           ToolStripTextBox.cs: Add accessibility, fix attributes/API and
7523         add additional functionality.
7524
7525 2006-10-12  Mike Kestner  <mkestner@novell.com>
7526
7527         * ErrorProvider.cs : new ToolTipWindow ctor sig.
7528         * HelpProvider.cs : new ToolTipWindow ctor sig.
7529         * ToolTip.cs : remove ToolTip param from Window sig since it is
7530         not used.
7531         * ToolBar.cs : add tooltip support.  Fixes #79565.
7532
7533 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
7534
7535         * ComboBox.cs: move the events in set_SelectedIndex to 
7536         after the call to HighlightIndex in order to avoid 
7537         possible recursion and subsequent problems with the call
7538         to HighlightIndex and include a range check in 
7539         set_HighlightIndex. Fixes #79588
7540         
7541 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
7542
7543         * MonthCalendar.cs: When FirstDayOfWeek is default set firstday 
7544         to ui thread's settings instead of sunday. 
7545         * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
7546
7547 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
7548
7549         * DateTimePicker.cs
7550         * MonthCalendar.cs
7551         * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
7552         and implement missing functionality (selecting different parts 
7553         of the date and edit them individually with the keyboard).
7554         
7555 2006-10-11  Chris Toshok  <toshok@ximian.com>
7556
7557         * Control.cs (OnInvalidated): fix NRE relating to last change.
7558
7559 2006-10-11  Chris Toshok  <toshok@ximian.com>
7560
7561         * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
7562         atoms in _NET_WM_STATE here if the window is maximized.  We need
7563         to do this because we're *replacing* the existing _NET_WM_STATE
7564         property, so those atoms will be lost otherwise, and any further
7565         call to GetWindowState will return Normal for a window which is
7566         actually maximized.  Fixes #79338.
7567
7568 2006-10-11  Jackson Harper  <jackson@ximian.com>
7569
7570         * TextControl.cs: Special case for setting selection end to
7571         selection start, we basically kill the anchor.
7572         - some todo comments.
7573
7574 2006-10-11  Chris Toshok  <toshok@ximian.com>
7575
7576         * Control.cs: switch to using an "invalid_region" to track which
7577         parts of the image buffer need updating.  This is more code than
7578         the simple fix from r66532.  That version just attempted to always
7579         fill the entire buffer on redraw, which turns out to be
7580         inefficient when invalidating small rectangles.  This version
7581         simply adds the invalid rectangle to the invalid region.  When we
7582         get any WM_PAINT message we see if it can be filled using the
7583         image buffer, and if it can't (if the paint event's clip rectangle
7584         is visible in the invalid region) we first fill the image buffer.
7585         So, the image buffer is still a cache, we just fill it lazily.
7586
7587         * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
7588         need it any longer.
7589
7590 2006-10-11  Chris Toshok  <toshok@ximian.com>
7591
7592         * XplatUIX11.cs (SetWindowPos): we need to update both position as
7593         well as size after calling XMoveResizeWindow.  This keeps us from
7594         ignoring future SetWindowPos calls.  Fixes the disappearing
7595         DateTimePicker in the ToolBarDockExample from bug #72499.
7596
7597 2006-10-11  Chris Toshok  <toshok@ximian.com>
7598
7599         * TextBoxBase.cs: reorder things a bit when it comes to
7600         resizing-causing-recalculation.  we were recalculating the
7601         document when our position was changed, which shouldn't happen.
7602         We only care about size changes.  Clear up some more redundant
7603         recalculation calls while I'm at it.  This makes the toolbar dock
7604         example snappy when you're just dragging toolbars around (since it
7605         causes a relayout whenever you move one.)
7606
7607 2006-10-11  Chris Toshok  <toshok@ximian.com>
7608
7609         * ToolBarButton.cs (get_Rectangle): this only returns
7610         Rectangle.Empty if Visible == false, or Parent == null.
7611         Parent.Visible doesn't matter.
7612
7613 2006-10-10  Chris Toshok  <toshok@ximian.com>
7614
7615         * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
7616         by .net 1.1, so switch to an internal method instead.
7617
7618 2006-10-10  Chris Toshok  <toshok@ximian.com>
7619
7620         * Control.cs (WM_PAINT): when a control is double buffered we draw
7621         initially to the ImageBuffer and then copy from there.  But when a
7622         parent control which has child controls is double buffered, the
7623         initial drawing doesn't encompass the entire ClientRectangle of
7624         the parent control, so we end up with uninitialized bits (this is
7625         easily seen by dragging the top toolbar in
7626         wf-apps/ToolBarDockExample to the right, quickly).  The fix is to
7627         manually set the ClipRectangle of the paint_event (only the one we
7628         use to populate the ImageBuffer) to ClientRectangle.  Fixes more
7629         of the nastiness in bug #72499.
7630
7631         * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
7632         which we use in Control.cs's WM_PAINT handling.
7633
7634 2006-10-10  Jackson Harper  <jackson@ximian.com>
7635
7636         * TextBoxBase.cs: Finish off the autoscrolling stuff.
7637
7638 2006-10-10  Chris Toshok  <toshok@ximian.com>
7639
7640         * Cursor.cs: Apply a slightly different patch to the one suggested
7641         in #79609.
7642
7643 2006-10-10  Jackson Harper  <jackson@ximian.com>
7644
7645         * MenuItem.cs: Make sure to put the mdi child in the hashtable,
7646         not the parent form.
7647         * TextControl.cs: use difference in old line count vs new count to
7648         calculate how many lines were added, this takes into account soft
7649         line breaks properly.
7650
7651 2006-10-10  Chris Toshok  <toshok@ximian.com>
7652
7653         * LinkLabel.cs: don't call MeasureCharacterRanges against a
7654         rectangle located at 0,0 and the size of the text.  Use
7655         ClientRectangle instead.  This fixes rendering of non-left aligned
7656         link labels.
7657
7658 2006-10-10  Jackson Harper  <jackson@ximian.com>
7659
7660         * TextBoxBase.cs: When we set the selection start position the
7661         caret.
7662         * TextControl.cs: Need to update the caret when we decrement it to
7663         zero.
7664         - Make sure that the selection_visible flag gets reset to false if
7665         the selection isn't visible.  Before this you could get it set to
7666         visible by changing the selection start, then changing the end to
7667         equal the start.
7668
7669 2006-10-09  Jackson Harper  <jackson@ximian.com>
7670
7671         * TreeView.cs: Don't update scrollbars when we aren't visible.
7672         * TreeNodeCollection.cs: Only need to update scrollbars if being
7673         added to an expanded visible node or the root node.
7674
7675 2006-10-09  Chris Toshok  <toshok@ximian.com>
7676
7677         * XplatUIX11.cs (SendMessage): fix NRE.
7678
7679 2006-10-09  Jackson Harper  <jackson@ximian.com>
7680
7681         * TextBoxBase.cs: Implement horizontal autoscrolling.
7682         * TextControl.cs: Add a movement types that allows moving forward
7683         and backwards without wrapping.
7684
7685 2006-10-09  Mike Kestner  <mkestner@novell.com>
7686
7687         * ListViewItem.cs : layout changes for wrapped LargeIcon labels
7688         with focus "expansion" of labels.  Fixes #79532 and then some.
7689         * ThemeWin32Classic.cs : add LineLimit to ListView label format
7690         when wrapping.
7691
7692 2006-10-09  Jackson Harper  <jackson@ximian.com>
7693
7694         * TextBoxBase.cs: Set the default max values to MaxValue since
7695         we use the scrollbar for autoscrolling and the default value is
7696         100.  If we don't do this the caret won't keep up with typing
7697         after about 18 characters.
7698         * TextControl.cs: Make sure the selection is offset by the
7699         viewport x.  This fixes selection when using auto scrolling.
7700
7701 2006-10-07  Andreia Gaita <shana.ufie@gmail.com>
7702         
7703         * Form.cs: The active control should be selected after the 
7704         OnLoad so that any child control initialization that affects
7705         the selection is done. Fixes #79406
7706
7707 2006-10-06  Chris Toshok  <toshok@ximian.com>
7708
7709         * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
7710         to have no evil effects.
7711
7712         - Stop selecting StructureNotifyMask on non-toplevel windows.
7713
7714           The only way children should be resized is by using the SWF api,
7715           and we already send WM_WINDOWPOSCHANGED messages in those cases.
7716           Toplevel windows can be interacted with via the window manager,
7717           and so we keep the input mask there.
7718
7719           The other event StructureNotifyMask gives us (that we care
7720           about) is DestroyNotify.  The code is already structured such
7721           that it assumes we won't be getting a DestroyNotify event for
7722           the window we pass to XDestroyWindow (which is what
7723           StructureNotifyMask is supposed to guarantee.)  So, that code
7724           shouldn't be affected by this either.
7725
7726         - Stop selecting VisibilityChangeMask altogether.
7727
7728           We weren't doing anything with the resulting events anyway.
7729         
7730         This vastly reduces the number of X requests and events we see
7731         when resizing/laying out a large ui.
7732
7733 2006-10-06  Chris Toshok  <toshok@ximian.com>
7734
7735         * ScrollableControl.cs (DisplayRectangle): we need to take into
7736         account the DockPadding regardless of whether or not auto_scroll
7737         == true.  rework this slightly to this effect, and fix bug #79606,
7738         and part of #72499 (you can now see the drag handles and drag
7739         toolbars around).
7740
7741 2006-10-06  Gert Driesen  <drieseng@users.souceforge.net>
7742
7743         * ListViewItem.cs: Collections of selected and checked items are now
7744         dynamically rebuilt. Whenever an item is (un)checked or (de)selected
7745         we mark the collection "dirty".
7746         * ListView.cs: Marked collections readonly. Modified UpdateSelection
7747         to only clear SelectedItems when a new item is selected and MultiSelect
7748         is enabled. CheckedItems and SelectedItems now subscribe to Changed
7749         event of ListViewItemCollection, and mark its list dirty whenever
7750         that event is fire. This allows us to return selected/checked items 
7751         in the same order as they are in the Items collection. This matches
7752         the MS behavior.
7753
7754 2006-10-06  Chris Toshok  <toshok@ximian.com>
7755
7756         * NotifyIcon.cs (HandleMouseUp): only show the context menu on
7757         right mouse clicks.  Fixes bug #79593.
7758
7759 2006-10-06  Chris Toshok  <toshok@ximian.com>
7760
7761         * Splitter.cs: doh, fix splitters that don't want to cancel the
7762         movement when you drag them.  Also, impose the limits on the
7763         values we send to the SplitterMovingEvent.  Fixes #79598.
7764
7765 2006-10-06  Jackson Harper  <jackson@ximian.com>
7766
7767         * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
7768         since we use this for auto scrolling also.
7769
7770 2006-10-05  Chris Toshok  <toshok@ximian.com>
7771
7772         * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus.  I'm
7773         beginning to think that most datagrid column types don't need this
7774         method.  Fixes bug #79392.
7775
7776 2006-10-05  Chris Toshok  <toshok@ximian.com>
7777
7778         * DataGrid.cs: move back to a more lazy scheme for creating the
7779         CurrencyManager, so we aren't updating it every time you set
7780         either DataSource or DataMember.  Also, don't call
7781         RecreateDataGridRows if the currency manager hasn't changed.
7782
7783 2006-10-05  Chris Toshok  <toshok@ximian.com>
7784
7785         * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
7786         emitted, SelectedIndex should already be updated.  Fixes bug
7787         #78929.
7788
7789 2006-10-05  Jonathan Pobst  <monkey@jpobst.com>
7790
7791         * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
7792           ToolStripTextBox.cs: Initial commit.
7793         * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
7794
7795 2006-10-05  Jackson Harper  <jackson@ximian.com>
7796
7797         * TabControl.cs: We need to invalidate the tab control area when
7798         new ones are added (duh).
7799
7800 2006-10-03  Chris Toshok  <toshok@ximian.com>
7801
7802         * Form.cs (ProcessDialogKey): if the focused control is in this
7803         form and is a button, call its PerformClick method here.  Fixes
7804         #79534.
7805
7806 2006-10-04  Jackson Harper  <jackson@ximian.com>
7807
7808         * TabPage.cs: Ignore setting of Visible, and add an internal
7809         method for setting the controls visibility.  TabPage's Visible
7810         property is a little strange on MS, this seems to make us
7811         compatible, and fixes cases where people set all the tab pages to
7812         visible.
7813         * TabControl.cs: Use the new internal setting on tab pages
7814         visibility.
7815
7816 2006-10-03  Mike Kestner  <mkestner@novell.com>
7817
7818         * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
7819
7820 2006-10-03  Mike Kestner  <mkestner@novell.com>
7821
7822         * ListView.cs : use is_visible instead of Visible to check if 
7823         scrollbars should be placed/sized.  Also some max_wrap_width
7824         love for LargeIcon view.  [Fixes #79533]
7825
7826 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
7827
7828         * TextControl.cs :
7829           Make set_TextAlign() do actually update the align. Fixed #78403.
7830
7831 2006-10-03  Chris Toshok  <toshok@ximian.com>
7832
7833         * DataGrid.cs: fix a crash when switching datasources if the
7834         vertical scrollbar is at someplace other than Value = 0.  Also,
7835         reduce the number of recalculation passes we do in SetDataSource
7836         from 2 to 1.
7837
7838 2006-10-03  Jackson Harper  <jackson@ximian.com>
7839
7840         * TextBoxBase.cs: Move the if value the same bail check up, we
7841         don't want to empty the document if it is already empty, this
7842         seems to severly mess up the caret.  TODO: I should probably fix
7843         the empty statement to update teh caret somehow.
7844
7845 2006-10-03  Chris Toshok  <toshok@ximian.com>
7846
7847         * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
7848         incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
7849         reflection, an internal row type, properties on said type, etc.)
7850         will work with our datagrid.  Fixes #79531.
7851
7852 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
7853
7854         * FileDialog.cs: Don't crash if a path is not accessible
7855           (System.UnauthorizedAccessException). Fixes #79569.
7856         * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
7857           a ':' too. Return unknown icon for those paths/files.
7858
7859 2006-10-03  Sebastien Pouliot  <sebastien@ximian.com>
7860
7861         * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when 
7862         GetContainerControl returns null.
7863
7864 2006-10-02  Chris Toshok  <toshok@ximian.com>
7865
7866         * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
7867         call to XGetWindowAttributes instead of "handle".  fixes an X
7868         error using notifyicon after the NotifyIconWindow to Form base
7869         class switch.
7870
7871 2006-10-02  Chris Toshok  <toshok@ximian.com>
7872
7873         * XplatUIX11.cs (QueryPointer): new function, encapsulating the
7874         server grab and looping we need to do to get down to the most
7875         deeply nested child window.
7876         (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
7877         QueryPointer again after the WarpPointer so we can generate a
7878         proper (fake) MotionNotify event to be enqueued in the destination
7879         window's queue.
7880         (GetCursorPos): call QueryPointer.
7881
7882         Fixes #79556.
7883
7884 2006-10-02  Jackson Harper  <jackson@ximian.com>
7885
7886         * NotifyIcon.cs: Derive the notify icon from a form, so things
7887         like FindForm work on it.
7888         - Swallow the WM_CONTEXTMENU message, since that is generated on
7889         mouse down, and context menu is a mouse up kinda guy.  I believe
7890         the correct fix here is probably to make the notify icon entirely
7891         NC area, but this seems to work fine for anyone not manipulating
7892         WndProc.
7893
7894 2006-10-02  Jonathan Pobst  <monkey@jpobst.com>
7895
7896         * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
7897           ToolStripItemCollection.cs, ToolStripLabel.cs,
7898           ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
7899           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
7900           Initial implementation.
7901         * TextRenderer.cs: Provide padding to MeasureText.
7902
7903 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
7904
7905         * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
7906         of ButtonBaseAccessibleObject. Fix bug #79552.
7907
7908 2006-10-02  Jackson Harper  <jackson@ximian.com>
7909
7910         * MdiWindowManager.cs: When maximizing use the containers client
7911         rect, not it's bounds, so nc area is accounted correctly.
7912         - Use the parent form's size for the menu position, since the
7913         client isn't always the full form size.
7914
7915 2006-10-01  Chris Toshok  <toshok@ximian.com>
7916
7917         * ScrollableControl.cs: make sure neither right_edge or
7918         bottom_edge are < 0, since they're used as LargeChange for the
7919         horiz/vert scrollbars respectively.  Fixes #79539.
7920
7921 2006-10-01  Chris Toshok  <toshok@ximian.com>
7922
7923         * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
7924         the xplatuix11 code can cause us to destroy/recreate our handle.
7925
7926         * XplatUIX11.cs
7927         (SystrayAdd):
7928         - this code can be invoked many times for the same Hwnd.  Make
7929           sure we only destroy the client window once (the first time this
7930           method is called).  This fixes bug #79544.
7931         - Remove the call to the improperly bound XSync.  why we had two
7932           bindings to this, I will never know, but this call resulted in
7933           events being discarded from the queue(!).
7934         - correct a misunderstanding of _XEMBED_INFO - the second atom is
7935           not our current state but the state we wish to be in.  So, 0 if
7936           we don't want to be mapped.  Change it to 1.
7937         (SystrayRemove): The XEMBED spec makes mention of the fact that
7938         gtk doesn't support the reparent of client windows away from the
7939         embedder.  Looking at gtksocket-x11.c seems to agree with this.
7940         The only avenue we have for removing systray icons is to destroy
7941         them.  We don't want the handle to go away for good, though, so
7942         call InternalRecreateHandle on the NotifyIconWindow.  Fixes
7943         #79545.
7944         
7945 2006-10-01  Chris Toshok  <toshok@ximian.com>
7946
7947         * Form.cs (WndProc): inline the native_enabled variable usage into
7948         the cases in which it's used.  Fixes #79536.
7949
7950 2006-09-29  Mike Kestner  <mkestner@novell.com>
7951
7952         * ListView.cs : toggle the selection state for ctrl clicks in 
7953         multiselect mode. [Fixes #79417]
7954
7955 2006-09-29  Mike Kestner  <mkestner@novell.com>
7956
7957         * ListView.cs : kill CanMultiSelect and refactor the selection
7958         code to support multiselection in the absence of mod keys. Steal
7959         arrow/home/end keys by overriding InternalPreProcessMessage to
7960         restore regressed keynav behavior.
7961         [Fixes #79416]
7962
7963 2006-09-29  Jackson Harper  <jackson@ximian.com>
7964
7965         * MdiClient.cs: Repaint the titlebars when the active window is
7966         changed.
7967
7968 2006-09-29  Chris Toshok  <toshok@ximian.com>
7969
7970         * Application.cs: when entering a runloop with a modal, make sure
7971         the hwnd is enabled.  Fixes #79480.
7972
7973 2006-09-29  Chris Toshok  <toshok@ximian.com>
7974
7975         * DataGrid.cs (CurrentCell): if we try to navigate to the add row
7976         when ListManager.CanAddRows == false, bump us back one.
7977
7978         * DataGridColumnStyle.cs (ParentReadOnly): remove the
7979         listmanager.CanAddRows check.  This makes ArrayLists uneditable
7980         using a datagrid, which is not right.
7981         (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
7982         is an IEditable, but call property_descriptor.SetValue regardless.
7983         fixes #79435.
7984
7985 2006-09-29  Chris Toshok  <toshok@ximian.com>
7986
7987         * DataGridBoolColumn.cs: we need to test equality in the face of
7988         possible null values (as is the case with the default NullValue).
7989         This patch keeps us from crashing in that case.
7990
7991 2006-09-29  Jackson Harper  <jackson@ximian.com>
7992
7993         * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
7994         here, since it will get called for every node collection in the
7995         tree. This is now done in the treeview once the sorting is
7996         finished.
7997         * TreeView.cs: Recalculate the visible order, and update the
7998         scrollbars after sorting, set the top nope to the root so that the
7999         recalc actually works.
8000
8001 2006-09-29  Chris Toshok  <toshok@ximian.com>
8002
8003         * LinkLabel.cs: more handling of the default link collection in
8004         the face of LinkArea manipulation.  The default link collection
8005         contains 1 element (start=0,length=-1).  If the user sets LinkArea
8006         to anything and the links collection is the default, clear it.
8007         Then only add the link if its nonempty.  Fixes #79518.
8008
8009 2006-09-29  Chris Toshok  <toshok@ximian.com>
8010
8011         * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
8012         piece correctly when we hit a '\n'.  Fixes #79517.
8013
8014 2006-09-29  Chris Toshok  <toshok@ximian.com>
8015
8016         * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
8017         change the binding of gdk_init_check to take two IntPtr's, and
8018         pass IntPtr.Zero for both of them.  Fixes #79520.
8019
8020 2006-09-29  Mike Kestner  <mkestner@novell.com>
8021
8022         * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
8023         [Fixes #78779]
8024
8025 2006-09-28  Jackson Harper  <jackson@ximian.com>
8026
8027         * XplatUIX11.cs: When translating NC messages make sure we go from
8028         whole window to screen, not client window to screen.
8029         * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
8030         method doesn't exist
8031         - Skip over controls that aren't forms when arranging.
8032
8033 2006-09-28  Jackson Harper  <jackson@ximian.com>
8034
8035         * XplatUIWin32.cs: Clip the rect to the parent window.
8036         * XplatUIStructs.cs: Add clipping modes struct.
8037         * InternalWindowManager.cs: New private method that factors title
8038         bar heights in when calculating the pos of an NC mouse message.
8039         - Use SendMessage to force a paint when the form's size is changed
8040         instead of painting the decorations immediately.
8041         - Don't let the NC button click messages get to DefWndProc,
8042         because they will attempt to handle windowing themself, and this
8043         messes up z-order (it will put them in front of the scrollbars).
8044         * XplatUIX11.cs: Make sure that we don't reset window managers if
8045         we already have one (ie the window is an MDI window).
8046
8047 2006-09-28  Chris Toshok  <toshok@ximian.com>
8048
8049         * MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
8050         menu code really needs going over.
8051
8052 2006-09-27  Chris Toshok  <toshok@ximian.com>
8053
8054         * XplatUIX11.cs (SetWMStyles): more metacity wonderment.  turns
8055         out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
8056         window is maximizable.  So, we need to make sure that even if we
8057         clear the border/wm frame of those functions, they're still
8058         available (basically, we remove the decoration without removing
8059         the function).  Half the fix for #79338.
8060
8061 2006-09-27  Chris Toshok  <toshok@ximian.com>
8062
8063         * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
8064         Fixes bug #79515.
8065
8066 2006-09-27  Chris Toshok  <toshok@ximian.com>
8067
8068         * Splitter.cs: reorder things a bit so that we don't actually
8069         draw/move the splitter until after calling OnSplitterMoving.  This
8070         lets users cancel/disallow the movement by explicitly setting
8071         event.SplitX/SplitY.  Fixes #79372.
8072
8073 2006-09-27  Jackson Harper  <jackson@ximian.com>
8074
8075         * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
8076         because it is most likely on a window being destroyed, and that
8077         will give us an X11 error.
8078
8079 2006-09-27  Chris Toshok  <toshok@ximian.com>
8080
8081         * PropertyGridView.cs: half of the fix for #78190.  Clicking on
8082         the dropdown button now toggles between showing and hiding the
8083         dropdown.  Also, get rid of dropdown_form_showing and just use
8084         dropdown_form.Visible.  We still don't do a grab, but I'll leave
8085         that part to someone who has handled Capture-fu before.
8086
8087 2006-09-27  Chris Toshok  <toshok@ximian.com>
8088
8089         * DataGrid.cs: return false if alt isn't pressed when '0' is
8090         pressed.  this keeps the '0' key from being swallowed, and fixes
8091         bug #79350.
8092
8093 2006-09-27  Chris Toshok  <toshok@ximian.com>
8094
8095         * ComboBox.cs: use Invalidate when scrolling the dropdown list.
8096         Calling Refresh (in response to a scrollbar event) screws up the
8097         scrollbar painting.  Fixes bug #78923.
8098
8099 2006-09-27  Chris Toshok  <toshok@ximian.com>
8100
8101         * Theme.cs (SystemResPool): make the "if hashtable[key] == null
8102         then insert into hashtable" blocks threadsafe.
8103
8104 2006-09-27  Chris Toshok  <toshok@ximian.com>
8105
8106         * MessageBox.cs (CreateParams): the styles should be |'ed with our
8107         baseclass's, since otherwise the
8108         ControlBox/MinimizeBox/MaximizeBox assignments above have no
8109         effect.  This gets the close button back in messageboxes.
8110
8111 2006-09-27  Chris Toshok  <toshok@ximian.com>
8112
8113         * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
8114         flag, not just != 0.  this makes flags that are actually multiple
8115         bits (like WS_CAPTION) work.  fixes bug #79508.
8116
8117 2006-09-27  Jordi Mas i Hernandez <jordimash@gmail.com>
8118
8119         * PageSetupDialog.cs: add support for getting and settings the 
8120         paper size, source and orientation.
8121
8122 2006-09-26  Chris Toshok  <toshok@ximian.com>
8123
8124         * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
8125         and caption == "", we need to remove the resize handles as well as
8126         the title bar.
8127
8128         * Control.cs (set_Text): turns out that setting Text on a form
8129         should change the WM styles on the window, since if ControlBox ==
8130         false, the only way to get a window border is to have a non-""
8131         Text property.  check winforms/forms/text.cs for an example.  so,
8132         call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
8133         update both window styles and title.  This fixes a lot of dialogs
8134         (including the preferences dialog in MonoCalendar.)
8135
8136 2006-09-26  Chris Toshok  <toshok@ximian.com>
8137
8138         * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
8139         control isn't a Form), call Win32ShowWindow to hide the window,
8140         but don't update the control Visible property.  When we reparent
8141         back to a parent control, call SetVisible in order for the
8142         window's visibility to be reinstated.
8143
8144         * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
8145         the FosterParent.
8146
8147         * Control.cs (ControlCollection.Remove): remove that value.Hide()
8148         call for good, since it breaks MonoCalendar (and other things I'm
8149         sure.) Also, set all_controls to null *after* the owner calls,
8150         which end up regenerating it.
8151         (ChangeParent): allow new_parent to be == null, passing
8152         IntPtr.Zero down to XplatUI.
8153
8154         this fixes #79294 the right way.
8155
8156 2006-09-26  Mike Kestner  <mkestner@novell.com>
8157
8158         * GridEntry.cs : internal SetParent method.
8159         * PropertyGrid.cs : attach to property changed on the proper
8160         target if we have a hierarchical grid with subobjects. Setup
8161         GridItem.Parent for hierarchical items.
8162         * PropertyGridView.cs : Set value on the correct target for
8163         hierarchical grids. [Fixes #78903]
8164
8165 2006-09-26  Chris Toshok  <toshok@ximian.com>
8166
8167         * Control.cs (ChildNeedsRecreating): this should return true if
8168         either we're being recreated and the child is in our list, or our
8169         parent is waiting for our recreation.
8170
8171 2006-09-26  Chris Toshok  <toshok@ximian.com>
8172
8173         * Control.cs (ControlCollection.Remove): reinstate the
8174         value.Hide() call as suggested in bug #79294.
8175
8176 2006-09-26  Sebastien Pouliot  <sebastien@ximian.com>
8177
8178         * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
8179         coordinates (versus a relative move).
8180
8181 2006-09-26  Chris Toshok  <toshok@ximian.com>
8182
8183         * Control.cs: rework child recreation a little bit.  It turns out
8184         that we race between the DestroyNotify the WM_DESTROY message.  If
8185         the parent gets its DestroyNotify before the child gets the
8186         WM_DESTROY message, the child ends up not recreating (since the
8187         parent finishes its recreation on DestroyNotify, and the child
8188         checks ParentIsRecreating.)
8189
8190         So, instead we store off a list of all the child controls which
8191         need to be recreated when the parent control starts to recreate
8192         itself.  Then, when child controls get their WM_DESTROY message we
8193         check to see if they're in the parent's pending recreation list,
8194         and if so, we recreate.  This removes all dependency on ordering
8195         from the code and fixes the initial MonoCalendar upgrade dialog.
8196         
8197 2006-09-26  Jackson Harper  <jackson@ximian.com>
8198
8199         * TextControl.cs: Use the Line to get the length of the line,
8200         since soft line breaks can change the end line.
8201
8202 2006-09-26  Chris Toshok  <toshok@ximian.com>
8203
8204         * Control.cs (ControlCollection.AddImplicit): don't add the
8205         control again if it's already in one of our lists.  This keeps us
8206         from adding controls over and over again for comboboxes when their
8207         handle gets recreated (as the combobox adds implicit controls in
8208         OnHandleCreated).  Fixes the X11 errors in bug #79480.
8209
8210 2006-09-26  Jackson Harper  <jackson@ximian.com>
8211
8212         * TextControl.cs: When deleting characters make sure that any
8213         orphaned zero lengthed tags get deleted.
8214         - Fix ToString for zero lengthed tags.
8215
8216 2006-09-25  Jackson Harper  <jackson@ximian.com>
8217
8218         * TextControl.cs: When getting a tag at the location there can be
8219         multiple tags at the same spot, these are 0-lengthed tags that
8220         appear when extra formatting has been stuck in a location.  We
8221         need to pull out the last of these 0 lengthed tags.
8222
8223 2006-09-25  Jackson Harper  <jackson@ximian.com>
8224
8225         * TextControl.cs: Fix print out in debug method.
8226         * TextBoxBase.cs: When text is set bail if we are setting to the
8227         previous value.
8228         
8229 2006-09-24  Alexander Olk  <alex.olk@googlemail.com>
8230
8231         * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
8232           It is now possible to change the selected index in a FontXXXListBox
8233           with the up and down arrow keys from the FontXXXTextBoxes.
8234           Also, send the FontXXXTextBox mouse wheel event to the corresponding
8235           FontXXXListBoxes to match ms.
8236
8237 2006-09-22  Sebastien Pouliot  <sebastien@ximian.com>
8238
8239         * SystemInformation.cs: Return a clone of the theme's MenuFont because
8240         anyone can dispose it, anytime. All other properties returns enums, 
8241         structs or basic types so they don't need such tricks.
8242
8243 2006-09-22  Jackson Harper  <jackson@ximian.com>
8244
8245         * XplatUI.cs:
8246         * XplatUIWin32.cs:
8247         * Clipboard.cs:
8248         * DataFormats.cs:
8249         * XplatUIOSX.cs:
8250         * XplatUIDriver.cs: Update interface to add a primary selection
8251         flag, so the driver can use the primary selection buffer if
8252         needed.
8253         * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
8254
8255         * RichTextBox.cs: We need to supply the data object to paste now
8256         (so we can choose to supply CLIPBOARD or PRIMARY).
8257         * TextBoxBase.cs: Supply data object to paste (see above).
8258         - Middle click uses the primary selection data object.
8259         
8260 2006-09-21  Chris Toshok  <toshok@ximian.com>
8261
8262         * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
8263         of SetWMStyles.  It's still a rat's nest and is largely
8264         order-dependent which I dislike immensely.  This also fixes the X
8265         button disappearing from toplevel forms.
8266
8267 2006-09-21  Mike Kestner <mkestner@novell.com>
8268
8269         * ListBox.cs: move Jordi's click/dblclick raising code to the
8270         mouse up handler.
8271
8272 2006-09-21  Jordi Mas i Hernandez <jordimash@gmail.com>
8273
8274         * ListBox.cs: Fixes 79450
8275
8276 2006-09-21  Mike Kestner <mkestner@novell.com>
8277
8278         * TreeView.cs: guard against disposed conditions in UpdateScrollbars
8279         to deal with people updating the TreeNodeCollection after the tree
8280         is disposed.  "Fixes" 79330.
8281
8282 2006-09-20  Jackson Harper <jackson@ximian.com>
8283
8284         * TextControl.cs: Push the cursor record onto the undo stack
8285         before the delete action. This fixes 78651.
8286
8287 2006-09-20  Jonathan Chambers  <joncham@gmail.com>
8288
8289         * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
8290         CreateParams. Fixes 79329.
8291
8292 2006-09-19  Chris Toshok  <toshok@ximian.com>
8293
8294         * XplatUIX11.cs: a couple of blanket code massage passes to clean
8295         things up a bit.  First, get rid of the NetAtoms array (and the NA
8296         enum), and just embed the atoms as static fields.  Also, add a
8297         couple of functions (StyleSet and ExStyleSet) to clean up all the
8298         bitmask testing of styles.
8299
8300         * X11Structs.cs: remove the NA enum, not needed anymore.
8301         
8302 2006-09-19  Chris Toshok  <toshok@ximian.com>
8303
8304         * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
8305         (mapping them to _NET_WM_WINDOW_TYPE_UTILITY).  and add a little
8306         added cleanup to get MessageBox titles appearing again, which were
8307         broken by my earlier fix for caption-less/ControlBox-less windows.
8308
8309 2006-09-18  Jonathan Pobst <monkey@jpobst.com>
8310
8311         * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
8312           ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
8313           ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
8314           ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
8315           ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
8316           ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
8317           ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
8318           ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
8319           ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
8320           ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
8321           ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
8322             Inital import.
8323         * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
8324           ToolStripButton.cs: Stubs needed for above.
8325         * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
8326
8327 2006-09-15  Chris Toshok  <toshok@ximian.com>
8328
8329         * XplatUIX11.cs:
8330         - make the MessageQueues hashtable Synchronized.
8331         
8332         - SendMessage: if the Hwnd is owned by a different thread, use the
8333         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
8334         thread.  Fixes bug #79201.
8335
8336 2006-09-15  Chris Toshok  <toshok@ximian.com>
8337
8338         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
8339         ControlBox == false, we disallow maximize/minimize/close.  If the
8340         form Caption is "" we also disallow move (and get rid of the Title
8341         decoration).  Unfortunately, regardless of how things are set,
8342         we're stuck with the Title and WM menu.
8343
8344 2006-09-15  Chris Toshok  <toshok@ximian.com>
8345
8346         * Application.cs: add locking around the static message_filters
8347         ArrayList, part of #79196.
8348
8349 2006-09-15  Chris Toshok  <toshok@ximian.com>
8350
8351         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
8352         Form.ControlBox == false, the window has no titlebar nor resize
8353         handles.  fixes bug #79368.
8354
8355 2006-09-15  Chris Toshok  <toshok@ximian.com>
8356
8357         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
8358         >= 0.  Fixes bug #79370.
8359
8360 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
8361         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
8362         * Control.cs:
8363             Add properties: LayoutEngine, Margin, DefaultMargin.
8364             Add method: GetPreferredSize.
8365             Move layout logic from PerformLayout to layout engines. 
8366
8367 2006-09-13  Chris Toshok  <toshok@ximian.com>
8368
8369         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
8370         fix for #79326 broke #78718, so this change addresses that.
8371
8372         - in SendWMDestroyMessages remove the call to
8373         CleanupCachedWindows, since we might be recreating the control and
8374         need to maintain the references to right Hwnd handles.  Also, set
8375         the zombie flag to true for each of the children in the hierarchy
8376         instead of calling hwnd.Dispose.  This will cause GetMessage to
8377         ignore all events for the window except for DestroyNotify.
8378
8379         - In GetMessage, ignore messages except for DestroyNotify for
8380         zombie hwnds.
8381         
8382         * Control.cs: revert the is_recreating fix from the last
8383         ChangeLog.  It's definitely "right", but it breaks switching from
8384         an MDI form to a non-MDI form.  Will need to revisit that.
8385
8386         * Hwnd.cs: add a zombie flag, which means "the
8387         client_window/whole_window handles are invalid, but we're waiting
8388         for the DestroyNotify event to come in for them".  Set the flag to
8389         false explicitly if setting WholeWindow/ClientWindow, and also
8390         when Disposing.
8391         
8392 2006-09-13  Chris Toshok  <toshok@ximian.com>
8393
8394         * XplatUIX11.cs: rework window destruction slightly.
8395
8396         - when destroying the windows associated with a control, we don't
8397         need 2 separate XDestroyWindow calls.  Just the one for the
8398         whole_window (or for client_window if whole_window is somehow
8399         IntPtr.Zero -- can this happen?) is enough.
8400
8401         - reworked SendWMDestroyMessages slightly, so we always dispose
8402         the child control hwnd's after sending the messages.
8403         
8404         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
8405         the two places it was used (one was even using hwnd.Handle and the
8406         other hwnd.client_window.  ugh), adding another call in
8407         SendWMDestroyMessages.  We need this new call because now the
8408         DestroyNotify events in the queue will be ignored for the child
8409         controls (as their hwnd's were disposed, and the window id's
8410         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
8411
8412         - this fixes bug #79326.
8413
8414 2006-09-13  Chris Toshok  <toshok@ximian.com>
8415
8416         * Control.cs: don't always set is_recreating to false at the end
8417         of RecreateHandle, since sometimes we're not done (and won't be
8418         until WndProc handles the WM_DESTROY message).  Also, set
8419         is_recreating to false in the WM_DESTROY handling code.  Part of
8420         the fix for bug #79326.
8421
8422 2006-09-13  Miguel de Icaza  <miguel@novell.com>
8423
8424         * X11DesktopColors.cs: Start the droppage of debugging messages.
8425
8426         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
8427
8428 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
8429
8430         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
8431
8432 2006-09-12  Chris Toshok  <toshok@ximian.com>
8433
8434         * DataGrid.cs (get_ListManager): if the list_manager is null, try
8435         to create it using SetDataSource.  Fixes bug #79151.
8436
8437 2006-09-11  Chris Toshok  <toshok@ximian.com>
8438
8439         * XEventQueue.cs: add a DispatchIdle property.
8440
8441         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
8442         either the queue is null, or the queue has DispatchIdle set to
8443         true.
8444         (DoEvents): set queue.DispatchIdle to false around the
8445         peek/translate/dispatch message loop in this method.  This keeps
8446         Application.Doevents from emitting idle events.  Part of the fix
8447         for #78823.
8448
8449 2006-09-11  Chris Toshok  <toshok@ximian.com>
8450
8451         * DataGrid.cs (set_DataSource): make this work for both the
8452         winforms/datagrid test and ReportBuilder.  It seems as though when
8453         we've created a ListManager (or maybe it's if we have a
8454         BindingContext?), when we set the DataSource it clears the
8455         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
8456         #79333.
8457
8458 2006-09-11  Chris Toshok  <toshok@ximian.com>
8459
8460         * XplatUIX11.cs: deal with queue being null, which happens in all
8461         the Clipboard functions.  Fixes one of the two problems mentioned
8462         in #78612.
8463
8464 2006-09-11  Chris Toshok  <toshok@ximian.com>
8465
8466         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
8467         button on various spots (including outside the menu) works closer
8468         to MS, and doesn't crash.  Fixes #79343.
8469
8470 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
8471
8472         * ListView.cs: Do not initialize item_sorter in init. To match MS,
8473         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
8474         and the internal comparer is set. When a new ListViewItemSorter is set,
8475         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
8476         was specified. No further processing is necessary if SortOrder is set
8477         to it's current value. If Sorting is modified to None, and View is
8478         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
8479         (either custom or our internal ItemComparer) to null, on 1.0 profile
8480         only set item_sorter to null if its our internal IComparer. If Sorting
8481         is modified to Ascending or Descending, then use our internal IComparer
8482         if none is set, and if the current IComparer is our internal one then:
8483         on 2.0 profile always replace it with one for new Sorting, and on 1.0
8484         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
8485         Enum.IsDefined to verify whether a valid View value is specified in
8486         its setter. Automatically sort listview items when listview is
8487         created. In Sort, do nothing if ListView is not yet created, or if
8488         no item_sorter is set (no Sorting was set, Sorting was explicitly set
8489         to None or ListViewItemSorter was set to null). Added Sort overload
8490         taking a bool to indicate whether the ListView should be redrawn when
8491         items are sorted (we use this in ListViewItemCollection to avoid double
8492         redraws). Modified our internal IComparer to take the sort order into
8493         account. In Add and AddRange methods of ListViewItemCollection, also
8494         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
8495         view), but use overload with noredraw option to avoid double redraw.
8496         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
8497         true when View is Tile, and do the same when attempting to set View to
8498         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
8499         for selected/checked indices, as it involves overhead when sorting is
8500         done while these collections are not used all that often. Instead
8501         we'll build the indices on demand. Modified IList implementation of
8502         CheckedIndexCollection to use public methods if object is int.
8503         Modified CheckedListViewItemCollection to hide checked items if
8504         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
8505         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
8506         IList implementation in SelectedIndexCollection to use public methods
8507         if object is int. Modified SelectedListViewItemCollection to hide
8508         selected items if listview is not yet created.
8509         * ListViewItem.cs: CheckedIndices list no longer needs to be
8510         maintained separately (see ListView changes). Also clone font, fixes
8511         test failure.
8512
8513 2006-09-11  Mike Kestner  <mkestner@novell.com>
8514
8515         * ComboBox.cs: if we are updating the contents of the currently
8516         selected index, refresh the control or the textbox selection.
8517         [Fixes #79066]
8518
8519 2006-09-11  Mike Kestner  <mkestner@novell.com>
8520
8521         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
8522         the 'specified' logic has been moved there.  This seems like a bug 
8523         in Control.cs, since our current SetBoundsCore completely ignores 
8524         the specified parameter.  Peter's commit seems to indicate that is 
8525         the way the MS control implementation works.  [Fixes #79325]
8526
8527 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
8528
8529         * XplatUI.cs: Set default_class_name to be composed
8530         of current domain id. This allows MWF to be loaded in multiple
8531         domains on Win32.
8532
8533 2006-09-09  Miguel de Icaza  <miguel@novell.com>
8534
8535         * X11Keyboard.cs: If we are unable to obtain the input method, do
8536         not call CreateXic to create the input context.   Should fix
8537         #78944/79276.
8538
8539 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
8540
8541         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
8542           Simplified gnome support by adding more pinvokes to get the
8543           icon for a file or mime type.
8544
8545 2006-09-08  Jackson Harper  <jackson@ximian.com>
8546
8547         * MenuAPI.cs: Deslect popup context menu items before closing the
8548         window, so that you don't see the previously selected item
8549         selected when you reopen the menu.
8550         * TextControl.cs: Update the cursor position even if we don't have
8551         focus.  This fixes typing in things like the ComboBox.  I'm not
8552         totally sure we should always set the visibility if we don't have
8553         focus, but couldn't find any corner cases where the cursor showed
8554         up when it shouldn't.
8555
8556 2006-09-08  Chris Toshok  <toshok@ximian.com>
8557
8558         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
8559         our arrays are length 256.  & 0xff before indexing.  Fixes the
8560         crash in bug #78077.
8561         
8562 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8563
8564         * ThemeWin32Classic.cs: 
8565         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
8566         is true. Handle that check box too.
8567
8568 2006-09-07  Chris Toshok  <toshok@ximian.com>
8569
8570         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
8571         79244.
8572
8573 2006-09-07  Chris Toshok  <toshok@ximian.com>
8574
8575         * Control.cs: in set_BackColor only do the work if
8576         background_color != value.
8577
8578         * XplatUIX11.cs: move the clearing of invalid areas (both client
8579         and nc) to the same block of code where we set (nc_)expose_pending
8580         to false.  That is, move it from PaintEventEnd to PaintEventStart,
8581         so things that cause invalidates from within OnPaint will trigger
8582         another call to OnPaint.  Fixes bug #79262.
8583
8584 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
8585
8586         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
8587         * FileDialog.cs: Fix typo
8588
8589 2006-09-07  Jackson Harper  <jackson@ximian.com>
8590
8591         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
8592         for tab pages if they have any.
8593
8594 2006-09-06  Mike Kestner  <mkestner@novell.com>
8595
8596         * Splitter.cs: use the "current" rect when finishing drag handle
8597         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
8598
8599 2006-09-06  Mike Kestner  <mkestner@novell.com>
8600
8601         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
8602         support offset splitters. [Fixes #79298]
8603
8604 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
8605
8606         * Mime.cs: Fixed a bug that could override the global mime type
8607           result.
8608
8609 2006-09-05  Jackson Harper  <jackson@ximian.com>
8610
8611         * TabControl.cs: Better calculation method for setting the slider
8612         pos. Prevents crashes on really wide tabs.
8613         - Draw Image on tab pages if an image list is used.
8614
8615 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8616
8617         * MonthCalendar.cs: When Font changes, the Size should be
8618         updated to fit the new font's space requirements.
8619
8620 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
8621
8622         * ListBox.cs: If the items are cleared with Items.Clear set
8623           top_index to 0.
8624
8625 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8626
8627         * MonthCalendar.cs: Handle arrow keys as input keys. Also
8628         fire DateChanged event instead of DateSelected event when
8629         the date was changed by keyboard interaction.
8630
8631 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8632
8633         * DateTimePicker.cs: Handle DateChanged for the associated
8634         month_calendar control, and set month_calendar.Font from 
8635         OnFontChanged method, as well as resize the height of the
8636         control when needed. Make PreferredHeight proportional.
8637
8638 2006-09-01  Chris Toshok  <toshok@ximian.com>
8639
8640         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
8641         properties.
8642
8643         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
8644
8645 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
8646
8647         * FileDialog.cs: Set ClientSize instead of window size, to allow space
8648           for decorations (Fixes #79219)
8649
8650 2006-09-01  Mike Kestner  <mkestner@novell.com>
8651
8652         * ComboBox.cs: first stab at sorting plus some selection handling
8653         fixes to bring us more in line with MS behavior.  Also switches back
8654         to index based selection.  Alternative patches for index-based 
8655         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
8656         and latency@gmx.de on bug 78848.  I assume they were similar to this
8657         code I've had simmering in my tree forever.
8658         [Fixes #78848]
8659
8660 2006-09-01  Chris Toshok  <toshok@ximian.com>
8661
8662         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
8663         when setting list position guard against ending up with a -1 index
8664         (the other part of the fix for #78812).  Should probably make sure
8665         we don't need the analogous fix in the ItemDeleted case.
8666
8667         * DataGrid.cs:
8668         - in SetDataSource, work around the fact that the way
8669         OnBindingContextChanged is invoked will cause us to re-enter this
8670         method.  I'll remove the hack once I investigate
8671         OnBindingContextChanged.
8672
8673         - fix the logic in set_DataSource and set_DataMember (basically
8674         what to do if the other of the two is null.)
8675         
8676         - in OnListManagerItemChanged, we need to take into account the
8677         edit row when deciding whether or not to call RecreateDataGridRows
8678         (part of the fix for #78812).
8679
8680 2006-09-01  Jackson Harper  <jackson@ximian.com>
8681
8682         * Splitter.cs: Don't do anything if there is no control to affect
8683         (prevents us from crashing in weird tet cases).
8684         * TreeView.cs: Bounding box for the mouse movement reverting
8685         focus/selection back to previously selected node.  This matches
8686         MS, and makes the tree a lot more useable.
8687         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
8688         use clipping so they are not drawn.  This fixes when the control
8689         is set to have a transparent background, or if it was over an
8690         image.
8691
8692 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
8693
8694         * MimeIcon.cs: Improved handling for reading default icons when
8695           using gnome (2.16 made it necessary). Check and read svg icons
8696           first, then 48x48 and then 32x32 icons.
8697
8698 2006-08-31  Chris Toshok  <toshok@ximian.com>
8699
8700         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
8701         visible.
8702
8703         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
8704         ProcessKeyPreview.  Fixes part of #77806.
8705
8706         * DataGrid.cs: big patch.
8707
8708         - revert the queueing up of DataSource/DataMember if inside
8709         BeginInit/EndInit calls.  That's not the way the datagrid achieves
8710         its delayed databinding.  Instead, call SetDataSource in
8711         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
8712         #78811.
8713
8714         - Also, it wasn't mentioned in #78811, but the test case exhibits
8715         behavior that was lacking in our datagrid implementation - Columns
8716         that have mapping names that don't exist in the datasource's
8717         properties aren't shown.  Yuck.  To fix this I added the bound
8718         field to the column style, and basically any calculation to figure
8719         out anything about columns uses a loop to find the bound columns.
8720         still need to investigate if I can cache an array of the bound
8721         columns or if the indices must be the same.
8722
8723         - When setting CurrentCell, we no longer abort if the cell being
8724         edited was in the add row.  This fixes the other part of #77806.
8725
8726         - The new code also fixes #78807.
8727         
8728         * ThemeWin32Classic.cs: perpetrate the same disgusting
8729         column.bound field hack, and only render bound fields.
8730
8731 2006-08-31  Chris Toshok  <toshok@ximian.com>
8732
8733         * DataGridColumnStyle.cs: add bound field.  this field is true if
8734         the datasource has a property corresponding to the mapping name.
8735
8736         * DataGridTableStyle.cs: set the bound field on the column styles
8737         depending on whether or not we have a column for that property.
8738
8739 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
8740
8741         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
8742           splitter control (fixes #79228)
8743
8744 2006-08-31  Chris Toshok  <toshok@ximian.com>
8745
8746         * DataGridColumnStyle.cs: we need to delay the assignment of
8747         property descriptor until the last possible moment due to the lazy
8748         databinding stuff in the datagrid.  Also, fix the exceptions
8749         thrown by CheckValidDataSource to match MS.
8750
8751 2006-08-31  Jackson Harper  <jackson@ximian.com>
8752
8753         * Form.cs: When activated select the active control, if there is
8754         no active control, we select the first control.
8755         * XplatUIX11.cs: If there is no focus control when we get a
8756         FocusIn event, find the toplevel form and activate it.  This
8757         occurs when you popup a window, it becomes the focus window, then
8758         you close that window, giving focus back to the main window.
8759
8760 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8761
8762         * MonthCalendar.cs: 
8763         * ThemeWin32Classic.cs: Cache Font in bold style, as well
8764         as StringFormat with Center alignments in MonthCalendar,
8765         instead of creating new ones when drawing the control. 
8766         Also, draw the month name in bold style.
8767
8768 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
8769
8770         * Control.cs:
8771           - PerformLayout(): It would seem MS performs the fill even if the 
8772             control is not visible (part of #79218 fix)
8773           - ResetBackColor(): Use the setter to reset the color, to allow
8774             overriders to catch the change.
8775         * Form.cs:
8776           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
8777           - CreateHandle(): dito (part of $79218 fix)
8778           - Don't set an icon if we have a dialog
8779         * ScrollableControl.cs:
8780           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
8781           - ScrollIntoView(): No need to scroll if control is already visible
8782             (resolves fixme and fixes #79218)
8783
8784 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8785
8786         * MonthCalendar.cs: Change proportions in SingleMonthSize
8787         to match the aspect of the original control.
8788
8789 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
8790
8791         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
8792           get updated when they get maximized.
8793
8794 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
8795
8796         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
8797
8798 2006-08-29  Chris Toshok  <toshok@ximian.com>
8799
8800         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
8801
8802 2006-08-29  Jackson Harper  <jackson@ximian.com>
8803
8804         * TreeView.cs: Need to track selected node and highlighted node,
8805         they aren't always the same thing, when the mouse is down on a
8806         node it is hilighted, but not selected yet.
8807         - Do the HideSelection stuff right
8808         - Need to focus on rbutton mouse down. And redraw selection when
8809         right click is mouse upped.
8810
8811 2006-08-29  Mike Kestner  <mkestner@novell.com>
8812
8813         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
8814         when SubItems.Count < Columns.Count.  [Fixes #79167]
8815
8816 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
8817
8818         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
8819
8820 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
8821
8822         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
8823           from X. Only send based on ConfigureNotify if we don't have the
8824           correct location in hwnd (if the window manager moved us)
8825
8826 2006-08-28  Mike Kestner  <mkestner@novell.com>
8827
8828         * ListView.cs: remove a TODO. 
8829         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
8830         [Fixes ListView part of #79166]
8831
8832 2006-08-28  Mike Kestner  <mkestner@novell.com>
8833
8834         * ListView.cs: move wheel handler to parent since it is focused
8835         instead of the item_control now.  [Fixes #79177]
8836
8837 2006-08-28  Mike Kestner  <mkestner@novell.com>
8838
8839         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
8840         when the control is focused. [Fixes #79171]
8841
8842 2006-08-28  Mike Kestner  <mkestner@novell.com>
8843
8844         * ListView.cs: size the item and header controls for empty and
8845         unscrollable views.
8846         * ThemeWin32Classic.cs: draw disabled backgrounds.
8847         [Fixes #79187]
8848
8849 2006-08-28  Chris Toshok  <toshok@ximian.com>
8850
8851         * Form.cs: remove unused "active_form" static field.
8852
8853         * Hwnd.cs: lock around accesses to static windows collection.
8854
8855         * Application.cs: lock threads in Exit ().
8856
8857 2006-08-28  Chris Toshok  <toshok@ximian.com>
8858
8859         * NativeWindow.cs: lock around accesses to window_collection.
8860         
8861 2006-08-28  Chris Toshok  <toshok@ximian.com>
8862
8863         * Control.cs: err, fix this the right way, by locking on controls
8864         when using it.  not by making it synchronized.
8865
8866 2006-08-28  Chris Toshok  <toshok@ximian.com>
8867
8868         * Control.cs: make the static "controls" field synchronized, as it
8869         gets updated from multiple threads.
8870
8871 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
8872
8873         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
8874           Prevent other threads from exiting when calling thread sets quit state.
8875         * XEventQueue.cs: Added PostQuitState property
8876
8877 2006-08-27  Chris Toshok  <toshok@ximian.com>
8878
8879         * AsyncMethodData.cs: add a slot for the window handle.
8880
8881         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
8882         window (the destination control's window, not the foster window).
8883
8884         * Control.cs (BeginInvokeInternal): store the window's handle in
8885         the AsyncMethodData.
8886         
8887
8888 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
8889
8890         * XplatUIX11.cs:
8891           - PostQuitMessage: Removed resetting S.D display handle, we might have
8892             another loop started after calling PostQuitMessage (Fixes #79119)
8893           - Created destructor to reset S.D handle
8894
8895 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
8896
8897         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
8898
8899 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
8900
8901         * TextControl.cs (Insert): Update the caret position even if we don't
8902           have a handle yet, just don't call the driver in that case.
8903         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
8904           to the end of the new selection text (Fixes #79184)
8905
8906 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
8907
8908         * Form.cs (Activate): Only activate if the handle is created)
8909         * Control.c:
8910           - Mark window as invisible when it's disposed
8911           - Check if window handle is created when setting window visible, 
8912             instead of relying just on the is_created variable
8913           - Check if object is disposed when creating the control (Fixes #79155)
8914
8915 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
8916
8917         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
8918           when allowing layout again. Otherwise we re-generate the anchoring 
8919           distance to the border again and actually alter what the user wanted
8920           This is ugly, it'd be better if we used DisplayRectangle instead of
8921           ClientRectangle for Control.UpdateDistances, but that causes us to
8922           have other problems (initial anchoring positons would be wrong)
8923           (Fixes #78835)
8924
8925 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
8926
8927         * Control.cs:
8928           - The size and location setters shouldn't go directly to 
8929             SetBoundsCore, but to SetBounds, which triggers layout on the
8930             parent, then calls SetBoundsCore. (Related to fix for #78835)
8931           - SetBounds: Moved actual location update code into this function
8932             from SetBoundsCore, to match MS. Added call to PerformLayout if
8933             we have a parent (to trigger resizing of anchored parents if the 
8934             child size has changed (see testcase for #78835) 
8935         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
8936           new control code
8937         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
8938
8939 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
8940
8941         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
8942           System.Drawing when a toplevel window gets closed; there might
8943           be other toplevel windows belonging to the same app (Fixes #78052)
8944
8945 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
8946
8947         * FileDialog.cs: After reading FileDialog settings from mwf_config
8948           use Desktop prefix only if a real folder doesn't exist anymore.
8949         * FontDialog.cs: Added char sets.
8950           It is now possible to select the font, size or style with the
8951           textboxes.
8952
8953 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
8954
8955         * PrintPreviewDialog.cs: Use assembly name constants.
8956
8957 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
8958
8959         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
8960           scrollbar from whacking it's buttons)
8961
8962 2006-08-24  Chris Toshok  <toshok@ximian.com>
8963
8964         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
8965         in this patch (aggregating setting Left/Top/Width/Height to
8966         setting Bounds on the scrollbars), but the crux of the fix is in
8967         Recalculate, where we scroll by the remaining scroll_position if
8968         we're hiding a scrollbar.  The 2*$5 reward in the comment is
8969         serious.
8970
8971 2006-08-24  Jackson Harper  <jackson@ximian.com>
8972
8973         * MdiClient.cs:
8974         * MdiWindowManager.cs: If the form is made a non-mdi window we
8975         need to remove the form closed event so that closing forms works
8976         correctly.
8977
8978 2006-08-24  Jackson Harper  <jackson@ximian.com>
8979
8980         * Control.cs: Make IsRecreating internal so that the driver can
8981         check it
8982         - Temporarily remove the Hide when controls are removed, its
8983         making a whole bunch of things not work because visibility isn't
8984         getting reset elsewhere correctly
8985         * Form.cs: Need to do a full handle recreation when the mdi parent
8986         is set.
8987         * XplatUIX11.cs: If we are recreating handles don't dispose the
8988         HWNDs.  What was happening is the handles were being recreated in
8989         SendWMDestroyMessages, but then flow continued on in that method
8990         and destroyed the new handles.
8991
8992 2006-08-23  Jackson Harper  <jackson@ximian.com>
8993
8994         * Form.cs: MdiClient is always at the back of the bus
8995         * Control.cs: When the order of items in the collection is changed
8996         we need to reset the all_controls array
8997         - do the same sorta setup thats done when adding a control when a
8998         control is set on the collection.
8999
9000 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
9001
9002         * TextBoxBase.cs (get_Text): Return an empty array if our document
9003           is empty (fixes #79052)
9004
9005 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
9006
9007         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
9008           on WM_SYSCHAR messages (fixes #79053)
9009
9010 2006-08-23  Chris Toshok  <toshok@ximian.com>
9011
9012         * DataGrid.cs: fix flickering when scrolling vertically.
9013
9014 2006-08-23  Chris Toshok  <toshok@ximian.com>
9015
9016         * DataGrid.cs (EndEdit): only invalidate the row header when we
9017         need to.
9018
9019 2006-08-23  Chris Toshok  <toshok@ximian.com>
9020
9021         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
9022         methods.  fixes the flicker when scrolling around.
9023
9024 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
9025
9026         * FileDialog.cs: Making sure the control is created before we get a 
9027           chance to use it with BeginInvoke (Fixes #79096)
9028
9029 2006-08-23  Chris Toshok  <toshok@ximian.com>
9030
9031         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
9032         width to use when painting the rows.
9033
9034 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
9035
9036         * TextBoxBase.cs:
9037           - Throw ArgumentException if a negative value is passed to SelectionLength
9038           - Update the selection end if start is moved. end needs to be always
9039             after start. (Fixes #79095)
9040           - Track selection length; MS keeps the selection length even if start
9041             is changed; reset on all other operations affection selection
9042
9043 2006-08-22  Jackson Harper  <jackson@ximian.com>
9044
9045         * TreeView.cs: Make sure both scrollbars get displayed and sized
9046         correctly when the other bar is visible.
9047         - Use the original clip rectangle for checking if the area between
9048         the two scrollbars is visible, not the viewport adjusted clipping
9049         rectangle.
9050
9051 2006-08-22  Jackson Harper  <jackson@ximian.com>
9052
9053         * Binding.cs: We don't use IsBinding because it requires the
9054         control to be created, which really shouldn't be necessary just to
9055         set a property on the control.
9056
9057 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9058
9059         * ComboBox.cs: Some CB.ObjectCollection methods must throw
9060         ArgumentNullReferenceException when the argument is null.
9061
9062 2006-08-21  Jackson Harper  <jackson@ximian.com>
9063
9064         * Timer.cs: Track the thread that the timer is started in (NOT
9065         CREATED), this way messages for it will only be triggered on its
9066         queue.
9067         * XEventQueue.cs: Track the timers here, this makes timers per
9068         thread, like MS.
9069         * XplatUIX11.cs: The timers are moved to the XEventQueue.
9070
9071 2006-08-19  Chris Toshok  <toshok@ximian.com>
9072
9073         * XplatUIX11.cs: after further communication with pdb, we get the
9074         best of both worlds.  SetZOrder working for un-Mapped windows, and
9075         no X errors for un-mapped windows.
9076
9077 2006-08-19  Chris Toshok  <toshok@ximian.com>
9078
9079         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
9080         as it was causing pdn toolbars to not have the correct stacking.
9081
9082 2006-08-18  Mike Kestner  <mkestner@novell.com> 
9083
9084         * ListView.cs : guard against negative ClientArea.Width in scrollbar
9085         calculation.  Not sure why control should ever be setting a negative
9086         width though.  Fixes #78931.
9087
9088 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9089
9090         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
9091         null items in ObjectCollection class.
9092         * ListBox.cs.: Likewise.
9093
9094 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
9095
9096         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
9097           as the base method in ThemeWin32Classic should work fine.
9098           Fixed bug #78607.
9099
9100 2006-08-18  Jackson Harper  <jackson@ximian.com>
9101
9102         * Binding.cs: When validating if the value entered doesn't convert
9103         properly reset to the old value.
9104         * RadioButton.cs: Don't fire click when we get focus.
9105
9106 2006-08-18  Jackson Harper  <jackson@ximian.com>
9107
9108         * FileDialog.cs: Paint the selection on the directory combobox the
9109         same way as on MS. 
9110
9111 2006-08-17  Jackson Harper  <jackson@ximian.com>
9112
9113         * ErrorProvider.cs: Don't allow the error control to be selected.
9114         * Control.cs: Don't send the SetFocus messages, the control
9115         activation will do this, and if we do it blindly here validation
9116         does not work.
9117
9118 2006-08-17  Jackson Harper  <jackson@ximian.com>
9119
9120         * Control.cs:
9121         * ContainerControl.cs: Make validation events fire in the correct
9122         order.  TODO: For some reason the first validation event is not
9123         getting fired.
9124
9125 2006-08-17  Mike Kestner  <mkestner@novell.com> 
9126
9127         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
9128
9129 2006-08-17  Mike Kestner  <mkestner@novell.com> 
9130
9131         * ComboBox.cs : implement scroll wheel support for popped-down
9132         state. Fixes #78945. 
9133
9134 2006-08-17  Jackson Harper  <jackson@ximian.com>
9135
9136         * TreeView.cs: Specify treeview actions (old patch that didn't get
9137         committed for some reason).
9138         - Don't let the mouse wheel scroll us too far.  Just want to make
9139         the bottom node visible, not scroll it all the ways to the top.
9140
9141 2006-08-17  Jackson Harper  <jackson@ximian.com>
9142
9143         * XplatUIX11.cs: Mouse wheel events go to the focused window.
9144
9145 2006-08-17  Mike Kestner  <mkestner@novell.com> 
9146
9147         * ComboBox.cs : don't do mouseover selection in simple mode.
9148
9149 2006-08-16  Jackson Harper  <jackson@ximian.com>
9150
9151         * Form.cs: Fire the closing events for all the mdi child windows
9152         when a window is closed.  If the cancel args are set to true, the
9153         main window still gets the event fired, but it doesn't not close.
9154         * MdiWindowManager.cs: Do this closing cleanup in a Closed
9155         handler, instead of when the button is clicked, so cancelling the
9156         close works correctly.
9157         * ComboBox.cs: Send the mouse down to the scrollbar.
9158
9159 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9160
9161         * ListBox.cs: When passing 'null' to SelectedItem,
9162         set SelectedIndex to -1, to unselect items. This is the
9163         observed behaviour in .Net.
9164
9165 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
9166
9167         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
9168           MS flags saying there won't be any. (fixes #78800)
9169         * Control.cs (HandleClick): Made virtual
9170
9171 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
9172
9173         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
9174           cultures. Fixed bug #78399.
9175
9176 2006-08-16  Jackson Harper  <jackson@ximian.com>
9177
9178         * Form.cs: Use the MdiClients MdiChildren property to access
9179         MdiChildren instead of creating the array from the child controls.
9180         * MdiClient.cs: Maintain a separate array of the mdi children, so
9181         that insertion order is maintained when the Z-order is changed.
9182
9183 2006-08-16  Mike Kestner  <mkestner@novell.com> 
9184
9185         * ListView.cs : add an ItemComparer and default to it for sorting.
9186         Fixes #79076, but sorting needs a complete overhaul to be compat with
9187         MS.
9188
9189 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
9190
9191         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
9192
9193 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
9194
9195         * Hwnd.cs (Mapped): Properly traverse the tree
9196
9197 2006-08-15  Chris Toshok  <toshok@ximian.com>
9198
9199         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
9200         pass manager.Current.GetType() to ParseData.  It has to be the
9201         property type.  So, hold off doing the ParseData until we're in
9202         SetPropertyValue where we know the type.  This fixes the crash in
9203         #78821 but the textbox is still empty.
9204
9205 2006-08-15  Chris Toshok  <toshok@ximian.com>
9206
9207         * DataGrid.cs:
9208         - when we're scrolling, only call Edit() again if the
9209         current cell is still unobscured. Fixes bug #78927.
9210         - when handling mousedown on a cell, ensure the cell is visible
9211         before calling Edit.
9212         - remove the properties from DataGridRow, and remove the
9213         DataGridParentRow class altogether.
9214         
9215
9216 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
9217
9218         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
9219           fire OnTextChanged by ourselves. There's no point calling base,
9220           we don't set the base value anywhere else. Fixes #78773.
9221
9222 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9223
9224         * ListBox.cs: Call CollectionChanged when modifying
9225         an item from Items indexer, to update the actual items
9226         in the list box.
9227
9228 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9229
9230         * PrintDialog.cs: Small fixes for focus and a pair of checks,
9231         to match .Net behaviour.
9232
9233 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
9234
9235         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
9236
9237 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
9238
9239         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
9240
9241 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
9242
9243         * MessageBox.cs: Prevent potential NRE exception.
9244         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
9245
9246 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
9247
9248         * MessageBox.cs: Calculate the owner of a messagebox, also make
9249           it topmost. Fixes #78753
9250
9251 2006-08-14  Chris Toshok  <toshok@ximian.com>
9252
9253         * XplatUIX11.cs: A couple of fixes so that metacity will let us
9254         programmatically move windows.  first, set the PPosition hint as
9255         well as the USPosition hint.  Second include some code from pdb
9256         that sets the window type to NORMAL when we set the transient for
9257         hint.  This is because, in the absence of a window type, metacity
9258         thinks any window with TransientFor set is a dialog, and refuses
9259         to let us move it programmatically.  fascists.
9260
9261 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
9262
9263         * XplatUIX11.cs: When setting normal hints, take into consideration
9264           an different hints previously set so we don't delete them (fixes #78866)
9265
9266 2006-08-12  Chris Toshok  <toshok@ximian.com>
9267
9268         * ToolBarButton.cs: make Layout return a boolean, if something to
9269         do with the button's layout changed.
9270
9271         * ToolBar.cs:
9272         - add another parameter to Redraw, @force, which all existing
9273           calls set to true.
9274         - make the Layout function return a boolean which is true if the
9275           layout has actually changed.  Redraw now uses this (and @force)
9276           to determine when to invalidate.  At present the only place
9277           where @force can be false is the call from OnResize, when
9278           background_image == null.  So, resizing a toolbar when the
9279           layout doesn't change results in no drawing.
9280
9281 2006-08-12  Chris Toshok  <toshok@ximian.com>
9282
9283         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
9284         the VScrollBar and HScrollbar reversed.  oops.
9285
9286         * DataGrid.cs: fix the logic that assigns sizes to the implicit
9287         scrollbars.  we were assigning them twice (once in
9288         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
9289         therefore causing two scrollbar resizes (and redraws?) to happen
9290         per grid resize.
9291
9292 2006-08-12  Chris Toshok  <toshok@ximian.com>
9293
9294         * ToolBarButton.cs: redraw the entire button if the theme tells us
9295         to.
9296
9297         * Theme.cs: add ToolBarInvalidateEntireButton.
9298
9299         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
9300         buttons, just the border.
9301
9302         * ThemeNice.cs: redraw the entire toolbar button since we need to
9303         draw the highlight image.
9304
9305         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
9306         we need to redraw the entire button (not just the border).
9307
9308 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
9309
9310         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
9311           for vertical bars. Fixes the mismatches shown by #78513
9312
9313 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
9314
9315         * FileDialog.cs: If a saved/remembered path doesn't exist
9316           anymore, fall back to "Desktop".
9317
9318 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
9319
9320         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
9321           parent. It's apparently legal to not have one
9322         * XplatUIX11.cs:
9323           - SetZOrder: Don't try to set Z-Order on an unmapped window
9324           - CreateWindow: 0,0 are legal coordinates for a window. don't move
9325             it unless the coordinates are negative
9326
9327 2006-08-10  Mike Kestner  <mkestner@novell.com>
9328
9329         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
9330         when setting to null per msdn docs.  Fixes #78854.
9331
9332 2006-08-10  Chris Toshok  <toshok@ximian.com>
9333
9334         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
9335         flickering by setting a clip rectangle on the Graphics when we
9336         need to redraw just a particular menuitem.  Also, rename "OnClick"
9337         to "OnMouseDown" to reflect what it actually is.
9338         
9339         * Form.cs: track the OnMouseDown change.
9340
9341 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
9342
9343         * CommonDialog.cs: Properly inherit the CreateParams from the form
9344           and only change what we need. Fixes #78865
9345
9346 2006-08-10  Chris Toshok  <toshok@ximian.com>
9347
9348         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
9349         flickering in flat mode (and most of the flickering in general) by
9350         only invalidating the button border (and not the entire rectangle)
9351         when the state changes.  A couple of cases still flicker:
9352         ToggleButtons, and the dropdown arrow case when the user mouse
9353         ups.
9354
9355 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
9356
9357         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
9358           for german keyboards. Numlock state shouldn't affect the behaviour
9359           of the Del key. Fixes bug #78291.
9360
9361 2006-08-10  Chris Toshok  <toshok@ximian.com>
9362
9363         * ListControl.cs: remove the items.Clear line from BindDataItems,
9364         as this is the first thing done by both subclasses in their
9365         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
9366         passed -1, refresh the list.  This gets databinding working when
9367         the datasource is set on the list before the datasource is
9368         populated (as in wf-apps/ReportBuilder.)
9369
9370         * ComboBox.cs: remove the argument to BindDataItems.  This call
9371         should really go away, and be initiated by the ListControl code.
9372
9373         * ListBox.cs: same.
9374
9375 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
9376
9377         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
9378           if no data is in the document when the control is displayed
9379
9380 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
9381
9382         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
9383           yes (fixes #78806)
9384         * TextControl.cs: 
9385           - PositionCaret: Allow positioning of caret but don't call methods 
9386             requiring a handle if the window isn't created yet
9387           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
9388           - owner_HandleCreated: Don't position the caret, just update it's 
9389             location. User might have already set a different position
9390
9391 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
9392
9393         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
9394           windows. Screws up the returned coordinates for child windows. 
9395           Fixes #78825. I'm hoping this doesn't break something, since the
9396           code was explicitly put in 8 months ago, but no bug was attached.
9397           Menus still seem to work properly.
9398
9399 2006-08-08  Chris Toshok  <toshok@ximian.com>
9400
9401         * DataGrid.cs: make BeginInit/EndInit actually do what they're
9402         supposed to do - delay data binding until the EndInit call.  Also,
9403         make the table style collection's CollectionChangeAction.Refresh
9404         work properly.
9405
9406         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
9407         (with action = Refresh) when a consituent table's MappingName is
9408         changed.
9409
9410 2006-08-08  Chris Toshok  <toshok@ximian.com>
9411
9412         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
9413         Invalidate, since changing the text can change the size of the all
9414         toolbar buttons.
9415
9416 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
9417
9418         * Form.cs (AddOwnedForm): Still need to add the form to our listif
9419           we don't have it yet
9420
9421 2006-08-08  Chris Toshok  <toshok@ximian.com>
9422
9423         * PrintControllerWithStatusDialog.cs: don't .Close() the status
9424         dialog, as this causes X errors later on, since we actually
9425         destroy the window.  Instead, .Hide() it.
9426
9427 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
9428
9429         * ComboBox.cs: Added focus reflection for popup window
9430         * XplatUIX11.cs: 
9431           - Removed transient setting for non-app windows for now, not sure it
9432             was needed
9433           - Fixed logic checking if we have captions when deciding 
9434             override_redirect, WS_CAPTION is two bits and a 0 check was not
9435             sufficient
9436           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
9437             complicated
9438         * Form.cs: 
9439           - AddOwnedForm: Don't just add the form to the list, call the property
9440             to ensure the driver is informed about the ownership as well
9441           - CreateHandle: Set the TopMost status in the driver if we have an owner
9442         * XplatUI.cs: Fixed debug statement
9443
9444 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
9445         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
9446           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
9447           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
9448           TrackBarRenderer.cs: Make constructor private.
9449         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
9450         * ProfessionalColorTable.cs: Make properties virtual.
9451
9452 2006-08-06  Duncan Mak  <duncan@novell.com>
9453
9454         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
9455         is not changing.
9456
9457 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
9458         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
9459           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
9460           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
9461           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
9462           Initial import of new 2.0 classes.
9463
9464 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
9465         * Application.cs: Add 2.0 VisualStyles properties.
9466
9467 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
9468         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
9469           XplatUIX11.cs: Create property to allow access to existing private
9470           variable "themes_enabled"
9471
9472 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
9473
9474         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
9475         file size, as otherwise our class libraries fail using windows. Fixes
9476         bug #78759.
9477
9478 2006-08-04  Jackson Harper  <jackson@ximian.com>
9479
9480         * Form.cs:
9481         * XplatUIX11.cs: Move the toolwindow window manager creation into
9482         the X11 driver, this way on win32 we can let windows create/handle
9483         the toolwindows.
9484
9485 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9486
9487         * PrintDialog.cs: Remove some redundant checks, add some others,
9488         clean some code, and move the focus to the text boxes when the
9489         values are incorrect.
9490
9491 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
9492
9493         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
9494
9495 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
9496
9497         * NumericUpDown.cs: Setting the Minimum and Maximum is now
9498           handled correctly. Fixes bug #79001.
9499
9500 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9501
9502         * PrintDialog.cs: The "Copies" numeric up down must have
9503         set the Minimum property to 1; only if the value is bigger
9504         than 1, activate "Collate" check box. This is the behaviour of .Net.
9505         Also modify the Document elements only if it is not null.
9506
9507 2006-08-03  Jackson Harper  <jackson@ximian.com>
9508
9509         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
9510         length. (We have a larger array then actual node count).
9511                 
9512 2006-08-03  Jackson Harper  <jackson@ximian.com>
9513
9514         * ComboBox.cs: Don't show selection by default.
9515         - The SelectAll isn't needed here, since the focus code should do
9516         that
9517         - DDL style lists to manual selection drawing, so when they
9518         get/lose focus they have to invalidate.
9519
9520 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
9521
9522         * TextBoxBase.cs: Don't always show all selections by default.
9523
9524 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
9525         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
9526           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
9527           Fixed various typos.
9528
9529 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
9530
9531         * Control.cs: Removing the controls in a ControlCollection with
9532           Clear now hides the controls as expected. Fixes bug #78804. 
9533
9534 2006-08-03  Jackson Harper  <jackson@ximian.com>
9535
9536         * Control.cs: Revert previous focus patch, it breaks reflector.
9537
9538 2006-08-03  Jackson Harper  <jackson@ximian.com>
9539
9540         * ComboBox.cs: Cleanup selection and focus with the combobox.
9541         This also eliminates some duplicated keyboard code, since now
9542         everything is handled by the main class.
9543         - Make list selection work on mouse up instead of down, to match
9544         MS.
9545
9546 2006-08-02  Jackson Harper  <jackson@ximian.com>
9547
9548         * Control.cs: Setting focus needs to go through the whole
9549         selection mechanism.
9550
9551 2006-08-02  Chris Toshok  <toshok@ximian.com>
9552
9553         * PrintPreviewDialog.cs: change MinimumSize to use
9554         base.MinimumSize so it works.
9555
9556 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
9557
9558         * TextControl.cs:
9559           - UpdateCaret: Added sanity check in case caret isn't defined yet
9560           - Line.Delete: Now updating selection and caret markers if we're
9561             transfering a node (Properly fixes #78323)
9562           - SetSelectionEnd: Added sanity check
9563         * TextBoxBase.cs: Removed broken attempt to fix #78323
9564
9565 2006-08-01  Chris Toshok  <toshok@ximian.com>
9566
9567         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
9568         Close() call is handled in Form, not here.
9569
9570 2006-08-01  Chris Toshok  <toshok@ximian.com>
9571
9572         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
9573         layout/rendering.
9574
9575         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
9576         for sizes < 100% zoom.  The code now aggressively attempts to keep
9577         from calling document.Print (), and tries not to use the scaling
9578         g.DrawImage whenever possible (it still does if you scale to >
9579         100%, since usually that involves huge images).
9580
9581         * PrintPreviewControl.cs: hook up the close button.
9582
9583 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
9584         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
9585           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
9586           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
9587           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
9588           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
9589           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
9590           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
9591           Removed [Serializable] for 2.0 Event Handlers.
9592
9593 2006-07-31  Jackson Harper  <jackson@ximian.com>
9594
9595         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
9596         * TextControl.cs: Uncomment out the body of this method.
9597
9598 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
9599
9600         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
9601           standard cursors.
9602
9603 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
9604
9605         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
9606           that embed TextBox and need selections visible even if textbox is not
9607           focused to enforce that behaviour.
9608         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
9609           selection drawing
9610
9611 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
9612
9613         * TextControl.cs:
9614           - Added new SetSelectionStart/SetSelectionEnd overloads
9615           - Fixed viewport width assignment to be accurate
9616           - Adjusted alignment line shift calculations to allow cursor on right
9617             aligned lines to be always visible at the right border (like MS)
9618         * TextBoxBase.cs:
9619           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
9620           - TextBoxBase_SizeChanged: recalculating canvas on size changes
9621           - CalculateScrollBars: Use ViewPort size instead of window size, to
9622             properly consider space occupied by the border and scrollbars 
9623             (Fixes #78661)
9624           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
9625             calculations; no longer leaves artifacts
9626           - CaretMoved: Adjusted window scrolling to match MS and fixed several
9627             calculation bugs (Still missing right/center align calculations)
9628
9629 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
9630
9631         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
9632           use of both scroll rect and clip rect, as they do the same.
9633
9634 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
9635
9636         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
9637           in the event handler (fixes #78912)
9638
9639 2006-07-31  Chris Toshok  <toshok@ximian.com>
9640
9641         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
9642         grid.ListManager.Count, since grid.ListManager might be null.
9643         This of course begs the question "why are we drawing rows for a
9644         grid with no list manager (and therefor no rows)?"  Fixes the
9645         crash in bug #78929.
9646
9647 2006-07-31  Chris Toshok  <toshok@ximian.com>
9648
9649         * RelatedPropertyManager.cs: Don't always chain up to the parent
9650         ctor.  instead, call SetDataSource if the parent's position is !=
9651         -1.  Fixes the crash in #78822.
9652
9653 2006-07-31  Chris Toshok  <toshok@ximian.com>
9654
9655         * DataGrid.cs (get_ListManager): use field instead of property
9656         accessors for datasource and datamember.
9657         (RowsCount): make internal again.
9658         (OnMouseDown): end edits before resizing columns/rows.
9659         (OnMouseUp): restart edits after resizing columns/rows.
9660
9661 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
9662
9663         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
9664           This fixes the situation where the last set cursor is displayed
9665           whenever the mouse is over scrollbars.
9666
9667 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9668
9669         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
9670         Document properties, as well as initial values.
9671
9672 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
9673
9674         * XplatUIWin32.cs (SetBorderStyle): Setting both border
9675           and ClientEdge results in a 3-pixel border, which is
9676           wrong.
9677
9678 2006-07-28  Jackson Harper  <jackson@ximian.com>
9679
9680         * TreeNodeCollection.cs: Fix the clear method.
9681         - Fix the Shrink also
9682
9683 2006-07-27  Jackson Harper  <jackson@ximian.com>
9684
9685         * TreeView.cs: Make sure the visible order is computed when we
9686         attempt to size the scrollbars (for trees that mess with the
9687         scrolling when they shouldn't.
9688         - Make sure to give the scrollbars valid values.
9689
9690 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
9691
9692         * XplatUIX11.cs: Move motion compression code to where it
9693           has less performance impact
9694
9695 2006-07-26  Jackson Harper  <jackson@ximian.com>
9696
9697         * UpDownBase.cs: When the control is selected make the child
9698         controls non selectable, so that a click on them won't do a
9699         focus/unfocus cycle.
9700         - Don't give focus to the text box when the spinner is selected.
9701         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
9702
9703 2006-07-26  Chris Toshok  <toshok@ximian.com>
9704
9705         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
9706         satisfied with this solution.  If the bitmaps are small, we should
9707         just cache them in the PrintPreviewDialog and draw them here.
9708         Also, the layout is broken for the 2-up and 3-up cases.
9709
9710         * Theme.cs: add PrintPReviewControlPaint.
9711
9712         * PrintPreviewDialog.cs: first pass implementation.
9713
9714         * PrintPreviewControl.cs: first pass implementation.  No
9715         scrollbars yet.
9716
9717         * PrintDialog.cs: only validate fields if that particular portion
9718         of the UI is enabled.  Also, set the document's controller to a
9719         PrintControllerWithStatusDialog wrapping the document's print
9720         controller.
9721
9722         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
9723         bring up a SaveFileDialog (i hope we don't want to match the
9724         behavior of the crappy windows file entry) and set the
9725         PrinterSettings.PrintFileName accordingly.
9726
9727 2006-07-26  Jackson Harper  <jackson@ximian.com>
9728
9729         * ContainerControl.cs: Add a field that disables auto selecting
9730         the next control in a container when the container is activated.
9731         * UpDownBase.cs: Don't select the text box when the up down is
9732         selected.
9733
9734 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
9735
9736         * XEventQueue.cs: Added methods for peeking (used for compression
9737           of successive events)
9738         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
9739           mouse move events (fixes #78732)
9740
9741 2006-07-25  Jackson Harper  <jackson@ximian.com>
9742
9743         * UpDownBase.cs: Use an internal class for the textbox so that we
9744         can control focus.  the updown control should always have focus,
9745         if either the text area or the buttons are clicked.
9746         - Send the key messages to the textbox, since it never actually
9747         has focus
9748         - Activate and decativate the textbox caret.
9749
9750 2006-07-24  Jackson Harper  <jackson@ximian.com>
9751
9752         * Control.cs: Use the directed select when selecting a control,
9753         this way the container controls override will get called and the
9754         whole ActiveControl chain will get triggered.  TODO: probably need
9755         to make sure this gets done everywhere instead of the old
9756         Select(Control).
9757         * ContainerControl.cs: Implement the directed Select method to
9758         find and activate the correct child control.    
9759         
9760 2006-07-22  Mike Kestner  <mkestner@novell.com>
9761
9762         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
9763         menu handling code so that clicks without a grab work too.
9764         [Fixes #78914]
9765
9766 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
9767
9768         * FileDialog.cs: Enable the BackButton when dirstack has one element.
9769           Added some small optimizations.
9770
9771 2006-07-21  Matt Hargett  <matt@use.net>
9772
9773         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
9774
9775 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
9776
9777         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
9778           tests pass and match MS in some strange border cases.
9779
9780 2006-07-21  Chris Toshok  <toshok@ximian.com>
9781
9782         * ThemeWin32Classic.cs: handle drawing of the relation links and
9783         parent row buttons.
9784
9785         * Theme.cs: change args to DataGridPaintParentRow.
9786
9787         * DataGrid.cs: Don't use controls for the relation links and
9788         parent buttons, so we have to handle all their interactions in
9789         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
9790         when we're navigating through child tables, so we can reinstate
9791         selection, expanded state, current cell, etc.
9792
9793 2006-07-20  Chris Toshok  <toshok@ximian.com>
9794
9795         * ToolBar.cs: When we redraw a button, for whatever reason,
9796         there's no reason to redraw the entire toolbar.  Also, don't call
9797         Control.Refresh from within Redraw, as it's much heavier than
9798         Invalidate (which is really what we want).
9799
9800 2006-07-20  Chris Toshok  <toshok@ximian.com>
9801
9802         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
9803         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
9804         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
9805         traces from within a debug IBindingList datasource
9806         (in mono/winforms/datagrid) for *days*, I've finally gotten things
9807         to work in a similar fashion.
9808
9809 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9810
9811         * ListBox.cs: Don't call Sort () when setting 
9812         the Sorted property to false (avoid an unnecessary sort).
9813
9814 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9815
9816         * ListControl.cs: DataSource should throw an ArgumentException
9817         instead of a normal exception when the argument is not of the 
9818         correct type.
9819
9820 2006-07-20  Mike Kestner  <mkestner@novell.com>
9821
9822         * Control.cs: add InternalPreProcessMessage to allow us to steal
9823         key events before MWF gets its paws on them.  Adapted from a
9824         suggestion by eno.
9825         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
9826         up/down/left/right navigation. Override the new internal control
9827         method to steal the events since they never make it to WndProc.
9828         * ToolBarButton.cs: don't worry about pushed when setting hilight
9829         since the drawing code prefers pushed to hilight. Invalidate on 
9830         Hilight changes. Fixes #78547 and #78525.
9831
9832 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
9833
9834         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
9835           the canvas size. Fixes #78868
9836
9837 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
9838
9839         * Splitter.cs: Track requested split position until first layout
9840           is performed. Fixes #78871
9841
9842 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
9843
9844         * Application.cs: Removed code that forces 1.x for the version
9845           number if the version started with 0. Not sure why that code was
9846           there and I couldn't find any bugs that indicated we needed it.
9847           Fixes #78869
9848
9849 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
9850
9851         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
9852           ResetDefaults(), just write some output to the console until it's
9853           implemented. Fixes bug #78907 for now. Eliminated two warnings.
9854
9855 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
9856
9857         * PropertyGridView.cs: set StartPosition of drop down forms
9858         so they appear in correct initial spot.  Fixes #78190.
9859
9860 2006-07-19  Mike Kestner  <mkestner@novell.com>
9861
9862         * ThemeWin32Classic.cs: use parent background color when drawing
9863         flat toolbars.  Restructure the conditionals to make sure non-flat
9864         non-Divider toolbars are filled too.  Fixes #78837.
9865
9866 2006-07-19  Mike Kestner  <mkestner@novell.com>
9867
9868         * ListBox.cs: Sort on collection changes even if the handle
9869         isn't created yet.  Fixes #78813.
9870
9871 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9872
9873         * ListControl.cs: DisplayMember should never be null,
9874         and now we assign String.Empty when null is passed to it (this
9875         is the .Net way).
9876
9877 2006-07-17  Mike Kestner  <mkestner@novell.com>
9878
9879         * ListViewItem.cs: restructure Font and subitem Font handling 
9880         to hold a specific font and refer back to owner on null.
9881         Fixes #78761.
9882
9883 2006-07-17  Mike Kestner  <mkestner@novell.com>
9884
9885         * ToolBar.cs: bandaid for side-effect of previous patch which was
9886         discarding explicit heights for non-AutoSize toolbars.  Need to
9887         extend my format tester to deal with AutoSize=false. Fixes #78864.
9888
9889 2006-07-15  Jackson Harper  <jackson@ximian.com>
9890
9891         * LabelEditTextBox.cs:
9892         * TreeView.cs: Use a new LabelEdit class for node editing, this
9893         class automatically 'closes' itself when it gets the enter key or
9894         loses focus.
9895         - Use the client rectangle when setting the trees scrollbars, so
9896         border style is taken into account.
9897         
9898 2006-07-14  Jackson Harper  <jackson@ximian.com>
9899
9900         * TreeNode.cs:
9901         * TreeView.cs: Make the editing work similar to MSs, firing the
9902         events correctly and ending edits correctly.
9903
9904 2006-07-14  Mike Kestner  <mkestner@novell.com>
9905
9906         * ToolBarButton.cs:
9907         * ToolBar.cs: layout restructuring and redraw enhancements to support
9908         formatting changes gracefully, like setting TextAlign, ImageList, 
9909         ButtonSize, and Appearance.  Handles explicit button sizing quirks
9910         of the MS controls.  Things like flat toolbars ignoring button size
9911         but becoming constant sized at the largest button's size.  Normal
9912         toolbars with an image set cannot be shrunk smaller than the image,
9913         but text can be clipped/ignored.
9914         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
9915         is zero.  Seems like DrawString should be smart enough to not put
9916         anything on screen though. Also trim labels and ellipsize at the char
9917         boundary, not word.
9918         Fixes #78711 and #78483.
9919
9920 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
9921
9922         * FolderBrowserDialog.cs: Disable "New Folder" button and
9923           "New Folder" contextmenu menuitem if a folder like "My Computer"
9924           is selected.
9925
9926 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
9927
9928         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
9929         * FolderBrowserDialog.cs:
9930           - Use MWFConfig to store and read size and position settings
9931           - Added code to create a new folder (button or context menu).
9932             Use TreeView labeledit to change the name of the new folder.
9933
9934 2006-07-14  Jackson Harper  <jackson@ximian.com>
9935
9936         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
9937         when the tree is scrolled we end editing.
9938
9939 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
9940
9941         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
9942           Down arrows
9943
9944 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
9945
9946         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
9947         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
9948         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
9949         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
9950         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
9951         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
9952         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
9953         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
9954         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
9955         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
9956         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
9957         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
9958         ListViewItemSelectionChangedEventHandler.cs,
9959         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
9960         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
9961         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
9962         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
9963         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
9964         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
9965         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
9966         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
9967         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
9968         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
9969         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
9970         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
9971         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
9972         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
9973         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
9974         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
9975         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
9976         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
9977         WebBrowserNavigatingEventHandler.cs, 
9978         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
9979
9980 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
9981
9982         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
9983         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
9984         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
9985         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
9986         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
9987         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
9988         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
9989         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
9990         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
9991         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
9992         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
9993         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
9994         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
9995         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
9996         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
9997         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
9998         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
9999         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
10000         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
10001         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
10002         ListViewItemStates.cs, MaskFormat.cs: Added
10003
10004 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
10005
10006         * PropertyGridView.cs: Fix keyboard navigation of drop down.
10007         Patch from eno for bug 78558.
10008         
10009 2006-07-13  Jackson Harper  <jackson@ximian.com>
10010
10011         * TreeView.cs: When an edit is finished make sure that the
10012         selected node is visible.
10013         - When setting the top/bottom use the scrollbars is_visible, so
10014         everything will be set correctly even if the tree isn't visible
10015         yet.
10016
10017 2006-07-13  Jackson Harper  <jackson@ximian.com>
10018
10019         * ComboBox.cs: Revert the item->index part of my previous patch.
10020         * TreeView.cs: Use LostFocus instead of Leave for detecting when
10021         the edit box has lost focus (duh).
10022         - Just make the edit box not visible when we get return, that will
10023         take the focus, which will call EndEdit
10024         * TreeNode.cs When we start editing, notify the treeview.
10025
10026 2006-07-12  Jackson Harper  <jackson@ximian.com>
10027
10028         * ComboBox.cs: Clear out old items before setting the item list.
10029         This prevents databound controls from having their items added
10030         twice.
10031         - Switch the combobox to use indices whereever possible instead of
10032         using Item's.  This allows usto navigate through lists that have
10033         more then one item with the same string value (ie a, b, b, a).
10034         - Scroll the listboxes scrollbar when a non visible item is
10035         highlighted
10036         - Allow keypress to cycle through all the possible values. For
10037         example if you have b1, b2, b3 and hold down the B key all the
10038         values will be cycled through.
10039         
10040 2006-07-12  Jackson Harper  <jackson@ximian.com>
10041
10042         * TextBoxBase.cs:
10043         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
10044         this using the internal methods.
10045         * Control.cs: Add OnGotFocusInternal.  A new method that allows
10046         controls to "override" OnGotFocus and change focus behavior if
10047         needed.
10048         - Same thing for LostFocus
10049         * ComboBox.cs: Pass off focus to the text control properly.
10050
10051 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
10052
10053         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
10054         * FolderBrowserDialog.cs: Almost a complete rewrite.
10055           - Better support for Environment.Specialfolders
10056           - Added support for MWFVFS
10057           - Made setting SelectedPath work
10058
10059 2006-07-12  Jackson Harper  <jackson@ximian.com>
10060
10061         * Control.cs: Optimze getting all the controls.
10062
10063 2006-07-11  Jackson Harper  <jackson@ximian.com>
10064
10065         * ContainerControl.cs: Override SETFOCUS in the container control,
10066         so that it is not selected on mouse click.
10067
10068 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
10069
10070         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
10071           Hopefully we will have a better way once all of focus is complete.
10072
10073 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
10074
10075         * ThemeWin32Classic.cs: Commented out some debug code and fixed
10076           a compile error with csc.
10077
10078 2006-07-11  Jackson Harper  <jackson@ximian.com>
10079
10080         * Control.cs: When hiding a control only select the next control
10081         if the current control was focused.
10082         - Don't handle enter/leave when setting/killing focus, this is
10083         done by the container control.
10084         - Remove is_selected, it's not needed anymore.
10085         - Add utility methods for selecting a child control, and for
10086         firing the Enter/Leave events.
10087         * ContainerControl.cs: When a control is activated fire the
10088         enter/leave events.
10089         - Don't wrap when processing the tab key, so that focus can be
10090         moved outside of the container.
10091         - Use the correct active control
10092
10093 2006-07-11  Jackson Harper  <jackson@ximian.com>
10094
10095         * ComboBox.cs: Remove some debug code that was blinding me.
10096         * UpDownBase.cs: These controls actually aren't implicit, they are
10097         visible to the user.
10098
10099 2006-07-10  Chris Toshok  <toshok@ximian.com>
10100
10101         * DataGrid.cs: move back to the is_adding boolean field.  god i
10102         hate this is_editing/is_adding/is_changing stuff.
10103
10104 2006-07-10  Chris Toshok  <toshok@ximian.com>
10105
10106         * DataGridTableStyle.cs: just check if the property type is bool.
10107         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
10108         Don't use CanRenderType.
10109
10110         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
10111         if our text == NullText.  Remove CanRenderType.
10112
10113         * DataGridBoolColumn.cs: nuke CanRenderType.
10114
10115         * DataGrid.cs: reenable some code to end the current edit inside
10116         of set_CurrentCell.  This fixes the other 1.1.16 regression.
10117         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
10118         Also, remove the visible_row_count arg from CalcRowHeaders, since
10119         we don't need to worry about the actual height of the area.
10120
10121 2006-07-10  Chris Toshok  <toshok@ximian.com>
10122
10123         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
10124         mode, just return.
10125
10126         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
10127         the real sense of the IsInEditOrNavigateMode property (true =
10128         navigate, false = edit).  Also, update OnKeyPress to reflect this.
10129
10130         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
10131         column style exists, we still need to set its property descriptor
10132         to match up with our list manager.
10133
10134 2006-07-10  Chris Toshok  <toshok@ximian.com>
10135
10136         * ThemeWin32Classic.cs: implement the new row/header painting
10137         approach.  The parent row painting will likely go away and
10138         replaced with label controls, but the rest seems to work ok (and
10139         efficiently).
10140
10141         * Theme.cs: change the way we draw datagrid rows.  we don't draw
10142         the row headers as a block now.  Instead we draw them in the
10143         normal draw-row loop.  Add some calls for drawing parent rows and
10144         relation rows.
10145
10146         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
10147         a default table style.  Set the defaults from ThemeEngine.Current,
10148         not SystemColors.  Fix lots of misc issues with property setters.
10149
10150         * DataGrid.cs: move loads of style information out of this class
10151         as it's being duplicated with DataGridTableStyle.  keep track of a
10152         special DataGridTableStyle for the properties we used to mirror
10153         here.  Switch all the style properties to access this table style
10154         instead of instance fields of this class.  Also add a internal
10155         class to represent parent rows (more needs to be stored here, like
10156         the selection state from the parent table, as well as the
10157         expansion state.)  Also, for datasources with relations, do the
10158         right thing for collapse/expand, and add support for the
10159         navigation/parent row buttons.
10160
10161         Lastly, fix the crash in the 1.1.16 build.
10162
10163         * GridTableStylesCollection.cs: make the explicit interface
10164         implementations call the class's methods as opposed to duplicating
10165         them.
10166
10167         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
10168         0 so the text doesn't jump around when we move the cursor.
10169
10170 2006-07-10  Jackson Harper  <jackson@ximian.com>
10171
10172         * TextBoxBase.cs:
10173         * ListBox.cs: Match MS's ToString (this makes debugging focus
10174         stuff infinitely easier).
10175
10176 2006-07-10  Jackson Harper  <jackson@ximian.com>
10177
10178         * Control.cs (SelectNextControl): When checking the control's
10179         parent use this instead of ctrl.parent so that null can be passed
10180         to SelectNextControl. (I have unit tests for this).
10181         - Remove unused var.
10182
10183 2006-07-10  Chris Toshok  <toshok@ximian.com>
10184
10185         * CurrencyManager.cs: correct one regression, the removal of the
10186         finalType field.  Also, add a MonoTODO on CanAddRows, implement
10187         Refresh() correctly, and fix some event emission in
10188         ListChangedHandler.
10189
10190 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
10191
10192         * FileDialog.cs: Don't use brackets for new folders if they exist
10193           under *nix. Instead use -(number of existing folders +1).
10194
10195 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
10196
10197         * FileDialog.cs:
10198           - Fixed really nasty bug #78771
10199           - Don't block the whole GUI when reading directories with a lot of
10200             entries. Use an other thread instead and call BeginInvoke to
10201             update the ListView in MWFFileView
10202
10203 2006-07-07  Chris Toshok  <toshok@ximian.com>
10204
10205         * Control.cs (Dispose): release any Capture when disposing.
10206
10207 2006-07-07  Chris Toshok  <toshok@ximian.com>
10208
10209         * LinkLabel.cs (Select): if we chain up to the parent, set
10210         focused_index to -1 so we'll search for the first available link
10211         the next time the user tabs into us.  Also, if the direction is
10212         backward and focused_index == -1, start the search from the last
10213         element.
10214
10215 2006-07-07  Chris Toshok  <toshok@ximian.com>
10216
10217         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
10218         is beyond the end of the text, don't do anything.
10219         (CreateLinkPieces): set our ControlStyles.Selectable based on
10220         whether or not we have any links.
10221         (Link.Invalidate): use a loop instead of foreach.
10222         (Link.set_Start): null out owner.sorted_links so it'll be
10223         recreated by CreateLinkPieces.
10224
10225 2006-07-06  Chris Toshok  <toshok@ximian.com>
10226
10227         * LinkLabel.cs: revert the SetStyle change.
10228
10229 2006-07-06  Chris Toshok  <toshok@ximian.com>
10230
10231         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
10232         (OnEnableChanged): s/Refresh/Invalidate
10233         (OnGotFocus): if we have a focused index already, refocus it (so
10234         if we mouse out/in to the window it'll focus the right link).
10235         (OnKeyDown): move the tab handling out of here.
10236         (OnLostFocus): don't set focused_index to -1, so we can refocus it
10237         when we lose focus.
10238         (OnMouseDown): don't Capture here - Control handles it.  Also,
10239         focus the active link.
10240         (OnMouseUp): don't deal with Capture.
10241         (OnPaintBackgroundInternal): remove.
10242         (OnTextAlignChanged): CreateLinkPieces before calling the
10243         superclass's method.
10244         (OnTextChanged): call CreateLinkPieces before calling superclass's
10245         method.
10246         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
10247         move around.
10248         (Select): implement this, moving the selection between different
10249         links, and call parent.SelectNextControl if we don't have another
10250         link to focus in the given direction.
10251         (CreateLinkPieces): call Invalidate instead of Refresh.
10252         
10253 2006-07-06  Chris Toshok  <toshok@ximian.com>
10254
10255         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
10256         new LinkLabel internals.
10257
10258         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
10259         over pieces looking for active/focused/etc links.  also, deal with
10260         runs of text (and links) with embedded \n's in them, and use
10261         MeasureCharacterRanges instead of MeasureString to figure out the
10262         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
10263         two-step.
10264
10265 2006-07-04  Jackson Harper  <jackson@ximian.com>
10266
10267         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
10268         XKB or key auto repeat, do it manually.  Without key auto repeat,
10269         when a key is held down we get key press, key release, key press,
10270         key release, ... with auto repeat we get key press, key press, key
10271         press ..., and then a release when the key is actually released.
10272
10273 2006-07-03  Jackson Harper  <jackson@ximian.com>
10274
10275         * TabControl.cs:
10276         * ThemeWin32Classic.cs: Tabs do not obey normal background color
10277         rules, they are always control color regardless of the background
10278         color.
10279
10280 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
10281
10282         * FileDialog.cs: Added internal class MWFConfig.
10283           Removed Registry support and replaced it with support for the new
10284           MWFConfig class. See MWFConfig comments for more information.
10285
10286 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
10287
10288         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
10289           rectangle. Added some patches from eno from bug #78490 and fixed
10290           the arrow position for small up and down CPDrawScrollButtons.
10291
10292 2006-06-30  Jackson Harper  <jackson@ximian.com>
10293
10294         * InternalWindowManager.cs: Remove some debug code.
10295         * Form.cs: When an MdiParent is set to null, the window is
10296         "detatched" and becomes a normal window.
10297         * MdiClient.cs: Don't bring the new child form to the front until
10298         it is activated (setting it as active does this), this makes the
10299         previously active forms titlebar get redrawn as inactive.
10300
10301 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
10302
10303         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
10304           with later controls
10305
10306 2006-06-29  Mike Kestner  <mkestner@novell.com>
10307
10308         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
10309         arrow in keynav state.  Fixes #78682.
10310
10311 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
10312
10313         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
10314           order (fixes #78393)
10315
10316 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
10317
10318         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
10319           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
10320           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
10321           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
10322           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
10323           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
10324           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
10325           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
10326           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
10327           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
10328           enumerations (FlagsAttribute, SerializableAttribute, added/removed
10329           values)
10330
10331 2006-06-28  Mike Kestner  <mkestner@novell.com>
10332
10333         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
10334
10335 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
10336
10337         * PropertyGrid.cs,
10338           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
10339           item lines from other area (It also makes BackColor consistent and
10340           compatible with .NET). Fixed bug #78564.
10341
10342 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
10343
10344         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
10345         Patch from Eno for #78555.
10346
10347 2006-06-27  Chris Toshok  <toshok@ximian.com>
10348
10349         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
10350
10351         * DataGridColumnStyle.cs: same.
10352
10353         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
10354         
10355         * DataGridDrawingLogic.cs: nuke.
10356
10357 2006-06-27  Chris Toshok  <toshok@ximian.com>
10358
10359         * DataGridTableStyle.cs: clean up the constructors, and build the
10360         list of child relations for this table.  I have no idea if this is
10361         where we should be doing it (it probably isn't), but since we're
10362         already iterating over the properties..
10363
10364         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
10365         struct and array for keeping track of row information, similar to
10366         what's shown in a hack on
10367         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
10368
10369         * Theme.cs: be consistent about the naming of DataGrid methods,
10370         prefering ColumnWidths and RowHeights over columnsWidths and
10371         RowsHeights.
10372
10373         * ThemeWin32Classic.cs: same, and also add support for variable
10374         sized rows (and the +/- expansion icons for related rows).
10375
10376 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
10377
10378         * TextBoxBase.cs: Applied Eno's patch from #78660
10379
10380 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
10381
10382         * Form.cs (ScaleCore): We don't want to scale our form if it's
10383           state is minimized or maximized, but we still need to scale our
10384           child windows. Also, added try/finally block to ensure layout
10385           gets reset (Fixes #78697)
10386
10387 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
10388
10389         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
10390
10391 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
10392
10393         * Form.cs: Fixed c+p error and added check to resize form if minimum
10394           size is bigger than current size (Fixes #78709)
10395
10396 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
10397
10398         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
10399
10400 2006-06-26  Mike Kestner  <mkestner@novell.com>
10401
10402         * ComboBox.cs: only do Keypress handling in the combo when there  
10403         are items in the collection. Fixes #78710.
10404
10405 2006-06-26  Chris Toshok  <toshok@ximian.com>
10406
10407         * Binding.cs: make this work bi-directionally.  also, clear up
10408         other mixups between Push/Pull Data (e.g. we're supposed to pull
10409         data when validating).
10410
10411         * BindingManagerBase.cs: trim some fully qualified collection
10412         types.
10413
10414         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
10415
10416 2006-06-23  Chris Toshok  <toshok@ximian.com>
10417
10418         * PropertyManager.cs: It appears (according to the unit tests)
10419         that PropertyManager doesn't use
10420         PropertyDescriptor.AddValueChanged to track propery value changes
10421         in its datasource, but uses the same scheme as Binding, where it
10422         looks for a <Property>Changed event and binds to it.
10423
10424         Also, according to the docs, IsSuspended always returns false for
10425         a property manager with a non-null datasource.
10426
10427 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
10428
10429         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
10430           need to update the actual DialogResult. (Fixes #78613)
10431
10432 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
10433
10434         * Form.cs (ShowDialog): Release any captures before running the
10435           new message pump (fixes #78680)
10436
10437 2006-06-22  Mike Kestner  <mkestner@novell.com>
10438
10439         * ListView.cs: Layout column widths properly in details mode even 
10440         if HeaderStyle.None is set.  Fixes #78691.
10441
10442 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
10443
10444         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
10445
10446 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
10447
10448         * Control.cs (ContainsFocus): Using new driver method to get focused
10449           window, instead of trying to use internal tracking var, which can
10450           recursion issues (Fixes #78685)
10451         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
10452           XplatUIWin32.cs: Added GetFocus method to return focused window
10453
10454 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10455
10456         * ColorDialog.cs: when the mouse button is pressed inside the color
10457         matrix, don't let the cursor move out of it until the button is
10458         released, which is the behavior on windows. Changed 'colours' by
10459         'colors' to use the same word consistently.
10460
10461 2006-06-21  Chris Toshok  <toshok@ximian.com>
10462
10463         * DataGrid.cs: add in some basic navigation stuff (navigating to a
10464         child relation and back, using a stack).  Also, remove
10465         GetDataSource and the code that calls it - it's not needed.  Also,
10466         track CurrencyManager.ListName's removal.
10467
10468 2006-06-21  Chris Toshok  <toshok@ximian.com>
10469
10470         * CurrencyManager.cs: push some of the original type checking from
10471         BindingContext.CreateBindingManager to here, and remove some of
10472         the finalType stuff.  Need more tests to make sure I've got the
10473         ListName part right, and we might need more in SetDataSource.
10474
10475         * PropertyManager.cs: add a ctor that takes just the datasource,
10476         and no property name.  Make SetDataSource work with a null
10477         property_name, and make Current return the data_source if the
10478         property descriptor is null.  this makes 'string foo = "hi";
10479         BindingContext[foo].Current' return "hi" as it should.
10480
10481         * RelatedCurrencyManager.cs: make this code more generic - there's
10482         no reason the parent manager has to be CurrencyManager, and
10483         there's no reason to pass the DataRelation.  It suffices to use a
10484         BindingManagerBase and PropetyDescriptor.
10485
10486         * RelatedPropertyManager.cs: make a similar change here.
10487         
10488         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
10489         flower I knew it could be.
10490
10491 2006-06-20  Chris Toshok  <toshok@ximian.com>
10492
10493         * PropertyManager.cs: the PropertyChangedHandler is invoked when
10494         data in the source has changed and we need to update the control,
10495         so s/PullData/PushData.
10496
10497         * CurrencyManager.cs: Refresh is meant to update the control from
10498         data in the datasource.  So, s/PullData/PushData.
10499
10500         * BindingContext.cs: add more ugliness (we weren't handling the
10501         case where data_source = DataTable and data_member = column_name).
10502
10503         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
10504         from the perspective of the datasource.  PullData pulls from the
10505         control, PushData pushes to the control.
10506
10507 2006-06-20  Chris Toshok  <toshok@ximian.com>
10508
10509         * BindingContext.cs: rewrite the CreateBindingManager code to
10510         handle navigation paths more or less properly.  This could
10511         definitely stand some more work, in particular to push the
10512         recursion up to the toplevel.  But that relies on fixes in other
10513         places (System.Data comes to mind).
10514
10515         Also, move to a flat hashtable (and encode the twolevel nature of
10516         the dictionary into the hash key).  This lets us implement the
10517         IEnumerable.GetEnumerator method.
10518
10519         * RelatedCurrencyManager.cs: new class.  Update our view based on
10520         our relation and our parent CurrencyManager's position.
10521
10522         * CurrencyManager.cs: split out some logic from the ctor into
10523         SetView, so it can be called from the new RelatedCurrencyManager
10524         subclass.
10525
10526         * RelatedPropertyManager.cs: new class.  Update our datasource
10527         based on the position of our parent CurrencyManager.
10528
10529         * PropertyManager.cs: split out some logic from the ctor into
10530         SetDataSource, so it can be called from the new RelatedDataSource
10531         subclass.  Also, make the Current getter return the value
10532         of the PropertyDescriptor, not the data_source.
10533
10534         * Binding.cs: no need to duplicate the string splitting code here.
10535
10536 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
10537
10538         * Control.cs:
10539           - set_Enabled: OnEnabledChanged is not called if the inherited state 
10540             of the control is not altered, even though  we might be changing the
10541             internal state of the control (#78458)
10542           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
10543             OnEnabledChanged, to allow easy altering of any child window state
10544           - OnEnabledChanged: Added code to enable/disable driver window state
10545           - OnParentEnabledChanged: Instead of firing the event, call 
10546             OnEnabledChanged, which will fire the event and also a) set driver
10547             window state and pass the enabled state to any grandchildren (#78458)
10548
10549 2006-06-19  Jackson Harper  <jackson@ximian.com>
10550
10551         * InternalWindowManager.cs: We don't set the cursor explicitly
10552         thats done via the response to NCHITTESTs.
10553         - Don't need to adjust for titlebar heights anymore, the
10554         coordinates are coming in the correct coordinates now (see peters
10555         last patch).
10556
10557
10558 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
10559
10560         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
10561           being translated relative to whole window, instead of client window.
10562           That caused broken offsets on mouseclick (and caused gas for our
10563           InternalWindowManager)
10564
10565 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
10566
10567         * TextControl.cs:
10568           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
10569           - Undo(): Added replay of cursor move on DeleteChars action; added
10570             calling Undo() again if a recorded cursor move is invalid (to
10571             ensure that some action is performed on Undo)
10572         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
10573
10574 2006-06-16  Jackson Harper  <jackson@ximian.com>
10575
10576         * MdiClient.cs: Instead of just sizing maximized windows when
10577         there is a resize we also have to adjust the Y of minimized
10578         windows, so they stay pinned to the bottom of the mdi container.
10579         - Eliminate separate tracking of the active control, we can just
10580         get this from the controls collection.
10581         - Paint the decorations for the newly activated titlebar so we get
10582         a pretty blue bar.
10583         * InternalWindowManager.cs:
10584         * ThemeWin32Classic.cs: Minimized windows get all three buttons
10585         even if they are a tool window.
10586         
10587 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
10588
10589         * TextControl.cs (Undo): Handle non-existent cursor locations in the
10590           undo buffer, these can happen when text was deleted and the cursor
10591           was recorded first. Since we will also have a recorded cursor
10592           after the delete this is not an issue. (Fixes #78651)
10593
10594 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
10595
10596         * AccessibleObject.cs: Remove dependence on Control.is_selected;
10597           instead properly track control states internally (allows us to
10598           remove is_selected from Control)
10599
10600 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10601
10602         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
10603         whose width is not a multiple of 8.
10604
10605 2006-06-13  Jackson Harper  <jackson@ximian.com>
10606
10607         * MdiClient.cs:  Only maximize the next child if the current one
10608         is maximized.
10609
10610 2006-06-13  Chris Toshok  <toshok@ximian.com>
10611
10612         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
10613         modified.  Also, guard against grid or grid_drawing being null in
10614         Invalidate.
10615
10616         * DataGrid.cs: Reformat tons of getters/setters.  In the
10617         DataMember setter, just call SetNewDataSource instead of
10618         duplicating some of its functionality.  In SetNewDataSource, don't
10619         check ListManager for null, since the property getter creates the
10620         object if needed.
10621
10622         * DataGridTableStyle.cs: don't set TableStyle or call
10623         SetDataGridInternal on the column here, it's done in
10624         GridColumnStylesCollection.Add.
10625
10626         * GridColumnStylesCollection.cs: fix all the explicit interface
10627         implementations to just call our methods.  Nuke AddInternal() and
10628         move the body of it to Add().  Also, add a call to
10629         column.SetDataGridInternal to Add().
10630
10631         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
10632         base()+duplicate code.  Also, use the Format property instead of
10633         format to generate an Invalidate ala MS.  Lastly, create the
10634         textbox here, unconditionally.
10635         (set_Format): call Invalidate.
10636         (get_TextBox): no need to call EnsureTextBox.
10637         (Commit): remove the message box.
10638         (Edit) remove the call to EnsureTextBox.
10639         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
10640         (EnterNullValue): no need to check textbox for null.
10641         (HideEditBox): no need to check textbox for null.
10642         (SetDataGridInColumn): add the textbox to the grid's controls.
10643         (EnsureTextBox): nuke.
10644         
10645 2006-06-13  Jackson Harper  <jackson@ximian.com>
10646
10647         * MdiWindowManager.cs: Hook up to the maximized menus paint event
10648         and redraw the buttons when needed. Unhook when the window is
10649         unmaximized.
10650         * MainMenu.cs: Add an internal Paint event, the mdi window manager
10651         needs this so that it can redraw its buttons when the menu is
10652         repainted.
10653         * InternalWindowManager.cs:
10654         * Form.cs: The method order has changed for DrawMaximizedButtons,
10655         so that it can be a PaintEventHandler.
10656         
10657 2006-06-13  Jackson Harper  <jackson@ximian.com>
10658
10659         * MdiClient.cs: When we close a maximized mdi window, the next mdi
10660         window is activated and maximized, even if it wasn't before.
10661         - When  a new window is activated repaint the decorations of the
10662         old one, so that it no longer has the Active "look" (the blue
10663         titlebar).
10664         * InternalWindowManager.cs: Open up CreateButtons to base classes
10665         so they can recreate the buttons on state changes.
10666         - If a window is maximized give it all three buttons
10667         * MdiWindowManager.cs: Create the titlebar buttons when the state
10668         is changed, this is needed because a toolwindow will not have all
10669         three buttons until it is maximized.
10670
10671 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
10672
10673         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
10674           Fixed bug #78609.
10675
10676 2006-06-12  Jackson Harper  <jackson@ximian.com>
10677
10678         * KeysConverter.cs: Make sure we handle the Ctrl special case
10679         if its the only key.
10680         
10681 2006-06-12  Jackson Harper  <jackson@ximian.com>
10682
10683         * Theme.cs: Add a method to get the size of a managed window
10684         toolbar button.
10685         * InternalWindowManager.cs: Remove the ButtonSize property, this
10686         should be retrieved from the theme.
10687         * MdiWindowManager.cs: Get the button size from the theme
10688         * ThemeWin32Classic.cs: Make the method to get the managed window
10689         titlebar button size public.
10690         - Handle the different button sizes of maximized toolwindows
10691         (should match any maximized window).
10692         - Get the titlebar height from the theme, not the WM (which gets
10693         it from the theme).
10694
10695 2006-06-12  Jackson Harper  <jackson@ximian.com>
10696
10697         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
10698         event down to the mdi window manager.
10699         - Expose some extra stuff to base classes
10700         - Make sure to end the Capture on an NC Mouse up, so that we can
10701         get double clicks properly, and the sizing doens't stick.
10702         - When doing PointToClient contain it in the workable desktop
10703         area, this prevents windows from changing size when the cursor is
10704         pulled outside of the working area while sizing.
10705         * MdiWindowManager.cs: When we get a double click maximize the
10706         window.
10707         - Reset the cursor after handling mode changes.
10708
10709 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
10710
10711         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
10712           current desktop, instead of just assuming a 0, 0 origin. This
10713           is needed for our internal window manager, to know the top
10714           margin of the desktop
10715
10716 2006-06-12  Chris Toshok  <toshok@ximian.com>
10717
10718         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
10719         we need this to get rid of the selected background in the bool
10720         column.
10721         (CancelEditing): move the ConcedeFocus call to above the Abort
10722         call.  Also, set is_changing to false and invalidate the row
10723         header if we were changing before.
10724         (ProcessKeyPreviewInternal): remove, since noone outside this
10725         class calls it anymore.  Roll the code into ProcessKeyPreview.
10726         (EndEdit): remove the internal version.
10727         (InvalidateCurrentRowHeader): make private.
10728
10729         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
10730         Keys.Escape handling (and with it the last call to
10731         DataGrid.EndEdit from outside the class.)
10732
10733
10734 2006-06-12  Chris Toshok  <toshok@ximian.com>
10735
10736         * DataGridTextBox.cs (.ctor): isedit defaults to false.
10737         (OnKeyPress): set isedit to true.
10738         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
10739         already handled by the grid.
10740
10741         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
10742         right.  ugh.
10743         (set_DataSource): SetDataSource always returns true, so stop
10744         putting it in an if statement.
10745         (EndEdit): get rid of some {}'s
10746         (ProcessGridKey): return true in case Keys.Escape.
10747         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
10748         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
10749         PositionChanged, stopped connecting to CurrentChanged.
10750         (GetDataSource): simplify this a bunch.
10751         (SetDataSource): change return type from bool to void.
10752         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
10753         to this, and make sure we don't set ListManager.Position inside
10754         set_CurrentCell.
10755         (OnListManagerItemChanged): if we're passed an actual index,
10756         redraw that row.
10757
10758         * CurrencyManager.cs (set_Position): don't call PullData here.
10759
10760 2006-06-09  Jackson Harper  <jackson@ximian.com>
10761
10762         * TreeNode.cs:  Recalculate the visible order before doing the
10763         Expand/Collapse Below calls, because those calls generate an
10764         expose.
10765         - Reduce calls to the TreeView property, which is mildly expensive
10766         by using a local var.
10767         * Form.cs: Layout the MDI child windows when creating the parent
10768         form.
10769         - Don't use the internal constructor anymore
10770         * MdiClient.cs: use the parent form width/height (if available)
10771         when laying out the child windows, we do this because the
10772         mdiclient isn't docked yet when the initial layout is done.
10773         - Don't need an internal constructor anymore.
10774
10775 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10776
10777         * FileDialog.cs: handle access errors when trying to create a folder
10778         or changing to a directory. No need to initialize out parameters.
10779
10780 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
10781
10782         * FileDialog.cs: Append a number when creating a new folder if the
10783           folder already exists (use parenthesis instead of square brackets)
10784
10785 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
10786
10787         * FileDialog.cs:
10788           - Disabled registry support for windows and added better registry
10789             error checking for other systems (need to investigate why it
10790             works perfectly on my system)
10791           - If a folder already exist show an error MessageBox instead of
10792             trying to create an indexed name.
10793           - Fixed a non intentional typo.
10794
10795 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10796
10797         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
10798
10799 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
10800
10801         * FileDialog.cs: When creating a new folder don't crash if the
10802           folder already exists.
10803
10804 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
10805
10806         * FileDialog.cs: Allmost a complete rewrite.
10807           - added a "virtual" file system that handles the differences
10808             between unix and windows file systems (especially the directory
10809             structure). Moved most of the directory and file handling code
10810             into the vfs.
10811             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
10812             UnixFileSystem and FSEntry.
10813           - Recently used folder/directory, size, location and used file names
10814             (file name ComboBox) are now stored in the registry and get read
10815             before the dialog shows up (fixes part 6 of bug #78446).
10816           - Creation of new folders/directories is now possible (context menu
10817             or ToolBar). Added TextEntryDialog for this that fills in the gap
10818             until ListView.LabelEdit works.
10819           - Fixed cursor handling (bug #78527) and focus handling for
10820             PopupButtonPanel
10821           - Various "Search in" ComboBox enhancements. The content of the
10822             dropdown listbox now almost matches ms.
10823           - Changed the behaviour when the user switches to SpecialFolder
10824             Recent to show the ListView in View.Details.
10825           - Beside using the ToolBar to change the View property of the
10826             file ListView it is now possible to use the context menu too.
10827
10828 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
10829
10830         * ComboBox.cs: Don't create a new ObjectCollection when an item
10831           gets inserted. Just insert the item in the existing object_items
10832           ArrayList.
10833
10834 2006-06-08  Jackson Harper  <jackson@ximian.com>
10835
10836         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
10837         that the treeview and root node checks are done also, this fixes a
10838         regression i caused in the unit tests.
10839
10840 2006-06-07  Wade Berrier <wberrier@novell.com> 
10841
10842         * RichTextBox.cs: More ISO8859-1 -> unicode
10843
10844 2006-06-07  Mike Kestner  <mkestner@novell.com>
10845
10846         * ComboBox.cs : use items to hold highlight/selection so that
10847         collection insertions don't require synchronization.
10848
10849 2006-06-07  Jackson Harper  <jackson@ximian.com>
10850
10851         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
10852         routine.  We now always keep the sized edge at the cursor instead
10853         of computing movement and adjusting rects.  There is one buglet
10854         with this method though when the cursor is moved over area that
10855         the window can not expand too (such as the toolbars on the desktop).
10856
10857 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10858
10859         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
10860         here. Fixes crash on startup in AlbumSurfer.
10861
10862 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
10863
10864         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
10865           values
10866
10867 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10868
10869         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
10870         statement to avoid calling XNextEvent which will block if another thread
10871         took the event that we were expecting. Fixes bug #78605.
10872
10873 2006-06-07  Mike Kestner  <mkestner@novell.com>
10874
10875         * ListView.cs : isolated checkbox clicking from the selection logic.
10876         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
10877
10878 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10879
10880         * Form.cs: Check that the value passed to Form.DialogResult
10881         is a valid enum value.
10882
10883 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10884
10885         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
10886         Computer'. Clicking it in the network view goes to 'My Computer'.
10887         Added CIFS filesystem type. Display the mount point of filesystems.
10888         Avoid duplicate mount points (happens for me with CIFS);
10889
10890 2006-06-06  Jackson Harper  <jackson@ximian.com>
10891
10892         * InternalWindowManager.cs: Draw the maximized windows buttons
10893         when resizing.
10894
10895 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10896
10897         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
10898         all other dialogs. Fixes bug #78585.
10899
10900 2006-06-06  Mike Kestner  <mkestner@novell.com>
10901
10902         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
10903         Only invalidate checkbox on checkstate changes to avoid flicker.
10904         * ListBox.cs : avoid unselect/select when clicking selected item.
10905         avoid reselection flicker for already multiselected items.
10906         Fixes #78382.
10907
10908 2006-06-06  Jackson Harper  <jackson@ximian.com>
10909
10910         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
10911         the parent form so that the menu is removed if needed.
10912
10913 2006-06-06  Mike Kestner  <mkestner@novell.com>
10914
10915         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
10916         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
10917
10918 2006-06-06  Mike Kestner  <mkestner@novell.com>
10919
10920         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
10921
10922
10923 2006-06-06  Jackson Harper  <jackson@ximian.com>
10924
10925         * Control.cs: Use the property (instead of the field) to get the
10926         default cursor so it is instantiated correctly.
10927         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
10928         resizes so we need to manually repaint the window decorations here.
10929         - Set the titlebar button locations as soon as they are created,
10930         otherwise they are not set correctly on win32.
10931         
10932 2006-06-06  Chris Toshok  <toshok@ximian.com>
10933
10934         * CurrencyManager.cs (set_Position): call PullData before
10935         OnCurrentChanged.
10936         (AddNew): after calling IBindingList.AddNew, update our
10937         listposition, and call OnCurrentChanged/OnPositionChanged (without
10938         calling PullData).
10939         (OnCurrentChanged): remove the call to PullData from here.
10940         (OnItemChanged): remove the call to PushData from here.
10941         (OnPositionChanged): change the test from == null to != null to
10942         match the other methods.
10943         (ListChangedHandler): the grossest part of the patch.  Implement
10944         this such that it passes the unit tests in CurrencyManagerTest and
10945         the output more or less matches that of MS's implementation.
10946  
10947 2006-06-06  Mike Kestner  <mkestner@novell.com>
10948
10949         * ListView.cs : only update check state on single click.
10950         * ThemeWin32Classic.cs : fix focus drawing for details view without
10951         fullrowselect.  Fixes #78454.
10952         * XplatUIX11.cs : fix for double click emission.
10953
10954 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
10955
10956         * PropertyGridView.cs : Applied Atsushi's patch to fix
10957         font dialog bug  (#78197).
10958
10959 2006-06-05  Jackson Harper  <jackson@ximian.com>
10960
10961         * TreeNode.cs: Compute the next node for expanding/collapsing
10962         correctly. We now factor in nodes without a NextNode
10963         correctly. (Fixes somes cases in nunit-gui).
10964         * InternalWindowManager.cs: Set the bounds when updating the
10965         virtual position of a tool window.
10966         
10967 2006-06-05  Chris Toshok  <toshok@ximian.com>
10968
10969         * DataGrid.cs: rename cached_currencymgr to list_manager.
10970         (set_CurrentCell): move SetCurrentCell code here, and clean it up
10971         some.
10972         (CurrentRow, CurrentColumn): single accessors so we can make the
10973         cursor movement code a lot easier to understand.
10974         (CurrentRowIndex): implement this in terms of CurrentRow.
10975         (BeginEdit): clean this up a bit.
10976         (CancelEditing): sort out the is_editing/is_changing/is_adding
10977         stuff a little.
10978         (EndEdit): minor changes.
10979         (OnKeyDown): add a comment about a (most likely) unnecessary
10980         check.
10981         (OnMouseDown): cancel editing when we click on a row header.  And
10982         use the CurrentRow setter, not CurrentCell.
10983         (ProcessDialogKey): directly call ProcessGridKey.
10984         (UpdateSelectionAfterCursorMove): factor out this common block of
10985         code (it's used everywhere that we move the cursor by updating row
10986         or column).
10987         (ProcessGridKey): pretty substantial overhaul.  Use the
10988         CurrentRow/CurrentColumn properties to make the code a lot more
10989         readable.  Only use the CurrentCell property when we have to
10990         modify both row and column at once.  Tab behavior is still broken,
10991         and Delete is untested.
10992         (Select): if we have no selected rows, set selection_start to
10993         @row.
10994         (EditCurrentCell): rename EditCell this.  It was only ever invoked
10995         with CurrentCell as the arg, so drop the arg and rename it.
10996
10997         * DataGridColumnStyle.cs: clean up the constructors a little, and
10998         drop CommonConstructor().
10999
11000         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
11001         actually get notified when the user hits it.
11002         (ProcessKeyMessage): *substantially* simplify this method.
11003         There's no reason (that I can see) for the textbox to be making
11004         calls into the datagrid at all.  Remove all of them but the ones
11005         for Enter handling.  those will take some more work.
11006
11007         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
11008         calling HideEditBox.
11009         (HideEditBox): if we have an active textbox, render it invisible
11010         without causing a re-layout of the datagrid.
11011
11012 2006-06-05  Mike Kestner  <mkestner@novell.com>
11013
11014         * ListView.cs : fix NRE crasher when focuseditem is cleared by
11015         collection changes by resetting it to Items[0].  Fixes #78587.
11016
11017 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11018
11019         * MessageBox.cs: if the height of the text is larger than the icon_size,
11020         use that. Fixes bug #78575.
11021
11022 2006-06-05  Jackson Harper  <jackson@ximian.com>
11023
11024         * TreeView.cs: Fix line drawing when scrolling.  To do this each
11025         node is basically responsible for drawing its entire horizontal
11026         area.  When drawing a node it draws its parent node lines if
11027         needed.
11028         - Adjust the clip area to the viewport rectangle
11029         - Fix Left/Right key handling to match MS. (It expand/collapses
11030         and moves to parents/first child but does not move selection to
11031         sibling nodes).
11032         - Fix SetTop to work with new bound calculation code
11033         - When scrollbars are no longer needed we need to reset scrolling
11034         vars and recalculate the visible order so the redraw is correct
11035         * TreeNode.cs: We can't expand/collapse nodes with no children.
11036
11037 2006-06-03  John Luke  <john.luke@gmail.com> 
11038
11039         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
11040         so the colors work without dev packages
11041         
11042 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
11043
11044         * Control.cs 
11045           - Select: Implemented to just use activate. Seems to match MS 
11046             behaviour closest. Documented to only do actual control walking 
11047             based on it's parameters if in a container control so I moved 
11048             the code there.
11049           - Removed selection check logic from our internal Select() method
11050         * ContainerControl.cs:
11051           - Select: Moved selection logic from Control here, since MS documents
11052             that containers obey the bool arguments. No longer calling base
11053
11054 2006-06-02  Jackson Harper  <jackson@ximian.com>
11055
11056         * TreeView.cs: If the selected node isn't changed when we get
11057         focus update the previously selected node so that we see the
11058         selection box.
11059
11060 2006-06-02  Mike Kestner  <mkestner@novell.com>
11061
11062         * ComboBox.cs: restructure grab and general mouse event handling.
11063         Make the composite control raise mouse events like it was a single
11064         control for leaves/enters/motion/up/down events.  fix dropdown list
11065         coordinate mangling and refactor it into the scrollbar subclass to
11066         reduce code duplication.  Fixes #78282 #78361 and #78457.
11067
11068 2006-06-02  Mike Kestner  <mkestner@novell.com>
11069
11070         * ScrollBar.cs: remove Capture setting/clearing, as it happens
11071         automatically in the Control.WndProc.
11072
11073 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11074
11075         * FileDialog.cs: fix crash when running SharpChess, which sets the
11076         FilterIndex to 2 with only one Filter.
11077
11078 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11079
11080         * ToolBar.cs: add SizeSpecified property.
11081         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
11082         try to figure out our real size, otherwise fallback to what the
11083         container says.
11084
11085 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
11086
11087         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
11088         * Control.cs (WndProc): MS always calls the DefWndProc to pass
11089           up the event
11090
11091 2006-06-01  Mike Kestner  <mkestner@novell.com>
11092
11093         * ListView.cs: revamp the focus management in ListView.  It still
11094         causes churn of LostFocus/GotFocus emissions on clicks, but it's
11095         better than not handling focus at all.  Will revisit when pdb feels
11096         the general focus handling is solid.  Fixes #78526.
11097
11098 2006-06-01  Jackson Harper  <jackson@ximian.com>
11099
11100         * TreeView.cs: Set the default border style in the constructor.
11101         - Move painting to use OnPaintInternal instead of capturing
11102         WM_PAINT, this is the correct way of doing things
11103         - UpdateBelow shouldn't invalidate the scrollbar area
11104         - Cap the top on update below in case the node was above the top
11105         of the viewport rectangle.
11106         - ExpandBelow and Collapse below need to obey Begin/End Update.
11107         * TreeNode.cs: Make is_expanded internal so the treenode
11108         collection can change it without firing the whole event chain.
11109         * TreeNodeCollection.cs: When clearing all the child nodes make
11110         sure to recalc the visible order.
11111         - Improve algo for remove the top node
11112
11113 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
11114
11115         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
11116           SendMessage directly calling window procedures, which in turn might
11117           call SetFocus()
11118
11119 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
11120
11121         * Control.cs: Don't handle WM_SETFOCUS if the same window already
11122           has focus (works around X11 sending a FocusIn after our SetFocus)
11123         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
11124
11125 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
11126
11127         * Mime.cs: Fix for the NET_2_0 build.
11128           NameValueCollection needs StringComparer now.
11129
11130 2006-05-31  Chris Toshok  <toshok@ximian.com>
11131
11132         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
11133         return (via an out parameter) the starting X of the column.
11134         (UpdateVisibleColumn): track change to FromPixelToColumn.
11135         (HitTest): add a ColumnResize case here.
11136         (DrawResizeLine): new function, probably poorly named.
11137
11138         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
11139         only need to keep one reference.
11140         (set_ListManager): same.
11141         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
11142         Also, add support for HitTestType.ColumnResize.
11143         (OnMouseMove): add column resize behavior here, and change the
11144         cursor to the correct one as we move around the datagrid.
11145         (OnMouseUp): terminate the column resize if we're resizing.
11146         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
11147         for the current cell.
11148         (ConnectListManagerEvents): use cached_currencymgr.
11149         (DisconnectListManagerEvents): fill this in, using
11150         cached_currencymgr.
11151         (SetCurrentCell): remove cached_currencymgr_events handling.
11152         (SetDataMember): only call DisconnectListManagerEvents if
11153         cached_currencymgr is != null.
11154         (SetDataSource): same.
11155         (OnListManagerCurrentChanged): cached_currencymgr_events ->
11156         cached_currencymgr.
11157
11158 2006-05-31  Jackson Harper  <jackson@ximian.com>
11159
11160         * BindingManagerBase.cs: Remove somedebug code that creeped into
11161         SVN.
11162         * TreeNode.cs: We get the indent level dynamically right now, so
11163         don't track it as a member.
11164         * TreeNodeCollection.cs: Make sure all nodes added to the list
11165         have parents, treeviews/topnodes setup properly.
11166         - Don't attempt to track indent level.
11167
11168 2006-05-30  Jackson Harper  <jackson@ximian.com>
11169
11170         * BindingContext.cs: Create the currency manager tables here.
11171         This allows us to more easily create null tables (when bad data
11172         members are used), and more easily create related currency
11173         managers.
11174         * CurrencyManager.cs: All the table creation stuff is done by the
11175         binding context now.
11176         - Current should throw an exception if listposition is -1.
11177         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
11178         been bound yet.
11179
11180 2006-05-30  Mike Kestner  <mkestner@novell.com>
11181
11182         * ListView.cs: allow reexpansion of zero-width column headers.
11183         Fixes #78528.
11184
11185 2006-05-28  Chris Toshok  <toshok@ximian.com>
11186
11187         * CurrencyManager.cs (get_Current): after the late binding
11188         listposition = -1 fix, we need to guard against it here and return
11189         null, otherwise we raise an exception (which is swallowed
11190         elsewhere, and breaks datagrid databinding.)
11191
11192 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
11193
11194         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
11195           than WM_SYSKEY, don't throw if get something unexpected (#78507)
11196
11197 2006-05-26  Jackson Harper  <jackson@ximian.com>
11198
11199         * ControlPaint.cs:
11200         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
11201         values, it's faster and it's all we care about (we don't care if
11202         the names aren't equal).
11203         * KeyboardLayouts.cs: Eliminate some dead code.
11204         - Lazy init things
11205         * X11Keyboard.cs: Lazy init keyboard detection.
11206         - Cleanup access modifiers a little.
11207
11208 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
11209
11210         * XplatUIX11.cs: Once again, attempting to get layout just right.
11211
11212 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
11213
11214         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
11215           the sizes of each link section, that will result in sizes that
11216           match DrawString's layout (Fixes #78391)
11217
11218 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
11219
11220         * FileDialog.cs: If AddExtension property is true autocomplete the
11221           extensions in SaveFileDialog correctly. Fixes bug #78453.
11222           Set MyNetwork and MyComputer to "C:\" for windows. This should
11223           fix part 8 of bug #78446 for now.
11224
11225 2006-05-26  Chris Toshok  <toshok@ximian.com>
11226
11227         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
11228         invalidate the current row header if we need to, but presumably
11229         we'll invalidate the row corrsponding to the bounds or
11230         editingControl.
11231         (GridHScrolled): switch back to this method, as it's part of the
11232         public api.  *sigh*.
11233         (GridVScrolled): same.
11234         (OnMouseWheel): hack up something that more or less works.  Call
11235         GridHScrolled/GridVScrolled directly, instead of duplicating much
11236         of their code here.
11237         (EnsureCellVisibility): reinstate a bunch of this code, since we
11238         can't just set the scrollbar Value and expect to do all the work
11239         in the ValueChanged handler.  Also, Call Update() after scrolling
11240         in one direction so the other XplatX11.ScrollWindow call has the
11241         proper stuff in the proper places.
11242         (EditCell): set is_editing to true before calling .Edit.
11243
11244         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
11245         don't bother comparing first.
11246         (OnKeyPress): call grid.ColumnStartedEditing before calling
11247         base.OnKeyPress.  this will set is_changing and invalidate the row
11248         header if necessary.
11249         (ProcessKeyMessage): for WM_CHAR messages, call
11250         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
11251         and WM_KEYDOWN.
11252         
11253         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
11254         it's done in the DataGrid.
11255         (NextState): call grid.ColumnStartedEditing, which takes care of
11256         invalidating the row header (and setting is_changing).
11257
11258         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
11259         here.  it's done in the DataGrid.
11260
11261 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11262
11263         * Control.cs: allow changing the cursor when the mouse position is
11264         out of bounds but Capture is set.
11265         * LinkLabel.cs: handle the case when the mouse button is pressed on the
11266         linklabel but released somewhere else.
11267
11268 2006-05-25  Jackson Harper  <jackson@ximian.com>
11269
11270         * TreeView.cs: When we get focus if there is no selected node make
11271         it the top node
11272         - Remove some uneeded setup code from Draw.
11273         * TreeNodeCollection.cs: If the tree doesn't have a top node when
11274         a new node is inserted make the new node the top.
11275         * XplatUIX11.cs:
11276         * Timer.cs: Use Utc time so that no local time zone stuff needs to
11277         be used (should be faster).
11278         
11279 2006-05-25  Chris Toshok  <toshok@ximian.com>
11280
11281         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
11282         problem with the last commit.
11283
11284 2006-05-25  Chris Toshok  <toshok@ximian.com>
11285
11286         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
11287         need the invalidate call here, while scrolling right-to-left via
11288         the left arrow key (i.e. moving the editing cell while scrolling).
11289
11290         * DataGrid.cs (.ctor): remove the initialization of
11291         ctrl_pressed/shift_pressed.  We no longer track them using key
11292         up/down handlers, but by using Control.ModifierKeys.  Also, switch
11293         to using ValueChanged handlers on the scrollbars instead of
11294         Scrolled event handlers.  This simplifies a bunch of the scrolling
11295         code.
11296         (GridHValueChanged): rename from GridHScrolled, and change it to
11297         work with the new event args.
11298         (GridVValueChanged): same.
11299         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
11300         (OnMouseWheel): actually scroll the datagrid.  Don't change the
11301         selected cell.
11302         (ProcessGridKey): correct all the keyboard navigation stuff I
11303         could find.  Ctrl up/down/left/right/home/end work now.
11304         (EnsureCellVisibility): correct method name spelling.  Also,
11305         simplify this a touch by not explicitly calling the
11306         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
11307         scrollbar value.
11308         (OnKeyUpDG): no need for this method now.
11309         
11310 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11311
11312         * LinkLabel.cs: display the OverrideCursor when hovering the label.
11313         Fixes bug #78392.
11314
11315 2006-05-25  Chris Toshok  <toshok@ximian.com>
11316
11317         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
11318         r61019.
11319
11320 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
11321
11322         * Application.cs: Moved setting of is_modal and closing to before
11323           we create the control, to allow the event handlers called as a
11324           result of creation affect closing. Also removed Gonzalo's previous
11325           change to setting DialogResult, the behaviour has been moved to 
11326           Form.ShowDialog()
11327         * Form.cs: 
11328           - ShowDialog(): Removed explicit creation of the form, let RunLoop
11329             handle it instead
11330           - ShowDialog(): If no dialog result is set, we need to return Cancel
11331           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
11332             the close is cancelled
11333
11334 2006-05-25  Jackson Harper  <jackson@ximian.com>
11335
11336         * StatusBar.cs: We only need to update the sizes of the other
11337         panels when we have auto size contents.  Also we are only updating
11338         the contents of the panel, not the borders, so compensate for the
11339         border width (TODO: get this width from the theme somehow).
11340         * TreeView.cs: Scrollable is true by default
11341         - Use invalidate instead of refresh where needed
11342         - Factor the scrollable value into scrollbar updating
11343         - Update the scrollbars if the Scrollable property is altered
11344         - Update the selected node if its ImageIndex is changed
11345         - Handle null nodes in UpdateNode (mainly so we don't have to
11346         check if selected is null when updating it
11347         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
11348         are factored into the visible count
11349         - Use VisibleCount for clarity in the code
11350         - When the font is changed we need to recurse through all the
11351         nodes and invalidate their sizes
11352         
11353 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11354
11355         * Application.cs: set the DialogResult to fixed when the main form is
11356         hidden or destroyed while being modal.
11357
11358 2006-05-25  Miguel de Icaza  <miguel@novell.com>
11359
11360         * Theme.cs: Use Tangoified messagebox icons. 
11361
11362         (GetSizedResourceImage): Also cope with width = 0 and do not
11363         trigger a warning in that case (0 means "give me your icon from
11364         the resouce, no special size needed).
11365
11366 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
11367
11368         * Application.cs: Leave runloop if the the main modal form is 
11369           hidden (fixes #78484)
11370
11371 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
11372
11373         * BindingContext.cs : reject null datasource in Contains() and
11374           Item[].
11375         * CurrencyManager.cs : check data_member validity when data_source
11376           is dataset. When it is late binding, the initial position is -1.
11377
11378 2006-05-24  Jackson Harper  <jackson@ximian.com>
11379
11380         * TreeNodeCollection.cs: Dont't recalculate the visible order on
11381         inserted nodes that aren't visible.  This changes the
11382         max_visible_order which confuses scrollbar settings.
11383         - Use the enumerator to get the prev node instead of duplicating
11384         code.
11385         * TreeView.cs: Use new method for setting scrollbar values
11386         - Don't set the bounds every time the scrollbar is updated
11387         - When updating below the root node use an invalidate instead of a
11388         refresh to prevent the child controls (scrollbars) from being
11389         refreshed. (UpdateBelow still needs to be reworked anyways).
11390         - Reenable SetBottom now that visible orders are set correctly,
11391         added some debug code incase we ever get bad values there again.
11392         - Set the scrollbar max to 2 less then the max value, this
11393         compensates for the max value being one above the node count, and
11394         for scrollbars adding one extra "notch".
11395         - When drawing image nodes if there is an imagelist we draw the
11396         first image in the list if the supplied image index is out of the
11397         image list's bounds.
11398         
11399 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
11400
11401         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
11402           we receive a size change from the WM (Fixes #78503)
11403
11404 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
11405
11406         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
11407           rectangle (Fixes #78501)
11408
11409 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
11410
11411         * ButtonBase.cs: 
11412           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
11413             as a bitfield.
11414           - Fixed MouseMove to no longer switch pressed state unless the left
11415             mouse button is pressed. Atsushi provided the original patch (#78485)
11416           
11417 2006-05-24  Jackson Harper  <jackson@ximian.com>
11418
11419         * ScrollBar.cs: New internal methods that allow us to change a
11420         couple values on the scrollbar (the most common case is maximum
11421         and large change) without getting multiple invalidates.
11422
11423 2006-05-24  Chris Toshok  <toshok@ximian.com>
11424
11425         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
11426         (Edit): save off the original state in oldState, and set
11427         grid.is_editing to true.
11428         (OnKeyDown): abort editing if escape is pressed.  also, call
11429         NextState if space is pressed.
11430         (OnMouseDown): call NextState.
11431         (NextState): factor out shared code from OnKeyDown and OnMouseDown
11432         here.  Also, only invalidate the row header once (on the initial
11433         is_changing switch) to save on redraws.
11434
11435 2006-05-24  Chris Toshok  <toshok@ximian.com>
11436
11437         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
11438         if the value in the cell is different than it was before.  This
11439         keeps us from triggering a layout when we move around a datarid
11440         with a highlighted cell.
11441         (Edit): suspend layout when creating/positining the text box, and
11442         resume passing false so we don't ever actually re-layout.
11443         (ReleaseHostedControl): same.
11444         (EnsureTextBox): reformat slightly, and set WordWrap to false.
11445
11446         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
11447         control-key sequences should go to the datagrid - remove that
11448         lock.  Also, modify the conditions under which we move between
11449         cells when moving the cursor within a cell, and remove the "this"
11450         and "base" from field accesses.  We weren't even consistent, given
11451         they all were in the base class.
11452
11453 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
11454
11455         * Binding.cs : (.ctor)
11456           An obvious NRE fix for BindingTest.CtorNullTest().
11457
11458 2006-05-23  Chris Toshok  <toshok@ximian.com>
11459
11460         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
11461         them between lines.  This fixes some quirks editing cells in the
11462         datagrid.
11463
11464 2006-05-23  Jackson Harper  <jackson@ximian.com>
11465
11466         * TreeView.cs: Use begin/end update when doing expand/collapse all
11467         so that we don't get flicker on the scrollbar.
11468
11469 2006-05-23  Jackson Harper  <jackson@ximian.com>
11470
11471         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
11472         treenode calculations to be independant of the painting code. To
11473         do this nodes track a visible order which is calculated by the
11474         treeview.
11475         - Call new methods for expanding/collapsing nodes.  These methods
11476         use scrollwindow so we don't have to update everything below the
11477         node.
11478         * TreeView.cs: Refactored drawing and scrolling code.  We don't
11479         need to update nodes when drawing anymore or calculate scrollbar
11480         stuff.
11481         - Added new methods for expanding/collapsing nodes. These methods
11482         use ScrollWindow so as to not have to redraw all the nodes below.
11483         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
11484         we add/remove nodes or sort.
11485         - Handle removing the selected and the top node properly.
11486
11487 2006-05-23  Chris Toshok  <toshok@ximian.com>
11488
11489         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
11490         maybe this should actually happen in the datagrid code?
11491         (EndEdit): no need to invalidate anything, given that
11492         ReleaseHostedControl causes the datagrid to relayout, which
11493         invalidates everything anyway.
11494
11495         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
11496         in SetCurrentCell).
11497         (set_SelectionBackColor): call InvalidateSelection instead of
11498         Refresh.
11499         (set_SelectionForeColor): same.
11500         (BeginEdit): Flesh this out a bit.
11501         (CancelEditing): only do any of this if we're editing/adding.
11502         (EndEdit): same.
11503         (OnMouseDown): there's no need to cancel editing here, it's done
11504         in SetCurrentCell.
11505         (SetCurrentCell): only invalidate the current row header if it's a
11506         different row than the new one.
11507         (ShiftSelection): fix this to work like MS does.
11508         (ResetSelection): factor out the invalidation of selected_rows to
11509         InvalidateSelection.
11510         (SetDataSource): cancel any editing that's going on.
11511
11512         * DataGridColumnStyle.cs
11513         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
11514         call the non-interface version.
11515
11516         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
11517         header rectangle with the clip rectangle so we don't redraw the
11518         entire header for just a small area.  Gets rid of the last flicker
11519         when horizontally scrolling.
11520         (DataGridPaintRow): same.
11521
11522 2006-05-23  Mike Kestner  <mkestner@novell.com>
11523
11524         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
11525         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
11526         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
11527         Critical bug report.
11528
11529 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
11530
11531         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
11532           and this fixes #78493
11533
11534 2006-05-23  Miguel de Icaza  <miguel@novell.com>
11535
11536         * Theme.cs (GetSizedResourceImage): Scale images if the proper
11537         size is not found.  
11538         
11539         * FileDialog.cs: Do not change the background for the side bar as
11540         it wont work nicely with the theme, and also reduces the artifacts
11541         in rendering the icons (which I want to fix too).
11542
11543         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
11544         resources, not resgen resources. 
11545
11546         (PlatformDefaultHandler): Pull images using the new API.
11547
11548 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
11549
11550         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
11551           a reference to the hwnd and will not remove it unless there are
11552           no pending exposures (fixes #78341)
11553         * XplatUI.cs: Improved debug
11554
11555 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
11556
11557         * MenuAPI.cs : don't handle OnClick event when it was not the left
11558           button. Fixed bug #78487.
11559
11560 2006-05-23  Mike Kestner  <mkestner@novell.com>
11561
11562         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
11563         prefer submenus to the top menu for item lookup, to avoid popping down
11564         top-row items.
11565
11566 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
11567
11568         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
11569           Graphics.FillRectangle as the visual results are really bad (even
11570           on win). We now draw perfect arrows (and perfect shadows when the
11571           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
11572           Pen.DashPattern to draw the dots of each line.
11573
11574 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
11575
11576         * FileDialog.cs: Update the filename combobox when navigating through
11577           the ListView with the cursor keys. Fixes part 7 of bug #78446.
11578
11579 2006-05-22  Mike Kestner  <mkestner@novell.com>
11580
11581         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
11582         Fixes #78463.
11583
11584 2006-05-22  Mike Kestner  <mkestner@novell.com>
11585
11586         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
11587         requests. Fix a misspelled parameter and a copy paste exception error
11588         in Select.
11589
11590 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
11591
11592         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
11593           to get the same width/height (5/13) on X11 as the default font has on
11594           win32. This means that our DefaultFont emSize is smaller than the 
11595           the MS SWF equivalent (even thought the width/height stays the same)
11596
11597 2006-05-20  Jackson Harper  <jackson@ximian.com>
11598
11599         * MdiClient.cs:
11600         * MdiWindowManager.cs:
11601         * InternalWindowManager.cs: Make sure to use the border width from
11602         the theme.
11603
11604 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
11605
11606         * PrintDialog.cs: Implements printer details
11607
11608 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
11609
11610         * FileDialog.cs: Added focus handling for PopupButtonPanel.
11611           Fixes part 1 and 2 of bug #78446
11612
11613 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
11614
11615         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
11616           instead of sticking to the first ever calculated value
11617
11618 2006-05-19  Mike Kestner  <mkestner@novell.com>
11619
11620         * ComboBox.cs: fix mouse motion selection to use MousePosition and
11621         PointToClient, since Capture is set. Fixes #78344.
11622
11623 2006-05-19  Mike Kestner  <mkestner@novell.com>
11624
11625         * ListView.cs: match MS behavior in Details view where items are not
11626         drawn if Columns.Count == 0. 
11627         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
11628         Use a separate pen to draw the check, since changing the width affects
11629         the box as well.  Fixes #78454.
11630
11631 2006-05-18  Miguel de Icaza  <miguel@novell.com>
11632
11633         * ListView.cs: ArgumentOutOfRangeException, single versions of the
11634         exception should throw the name of the invalid argument.
11635
11636         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
11637         there are no files listed. 
11638
11639 2006-05-18  Jackson Harper  <jackson@ximian.com>
11640
11641         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
11642         up.
11643
11644 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
11645
11646         * Control.cs: Brought back our old UpdateZOrder method as a private
11647           function and switched our calls from UpdateZOrder to the new one.
11648           This fixes the Paint.Net canvas disappearing bug.
11649
11650 2006-05-18  Jackson Harper  <jackson@ximian.com>
11651
11652         * Theme.cs:
11653         * ThemeWin32Classic.cs:
11654         * InternalWindowManager.cs: Move the drawing into the theme,
11655         expose everything the theme should need from the window manager.
11656
11657 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
11658
11659         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
11660           from the call to NativeWindow to avoid walking up the parent chain
11661           further than needed (speeds up setting cursors and avoids setting
11662           the wrong cursor if a parent has another cursor defined)
11663         * Cursor.cs: When loading an icon as cursor, MS uses the center of
11664           the icon as hotspot, not what's contained as hotspot in the icon
11665           file. This fixes the perceived drawing offset seen with Paint.Net
11666         
11667 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
11668
11669         * XplatUIX11.cs: 
11670           - Store the calculated rectangle in Hwnd object and use it when 
11671             setting the client size
11672           - Force Toolwindows to always be type Dock, to ensure they're on top
11673
11674 2006-05-18  Mike Kestner  <mkestner@novell.com>
11675
11676         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
11677         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
11678         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
11679         Substantial refactoring to remove confusing nested classes. Coding
11680         standard and Get+Set->property refactorings.  Shift to index based
11681         highlighting in ComboListBox instead of constantly using IndexOf and
11682         Items[]. Add invalidations on resize for DropDownList to fix ugliness
11683         in FileDialog growth.  Draw borders manually since Simple mode needs
11684         to look like two independent controls.  Make listbox border
11685         conditional to DropDownStyle.  Improved OwnerDraw support.
11686
11687 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
11688
11689         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
11690         Don't set the disposed graphics to null, so we can throw the "right"
11691         exception if the graphics is reused later (added a flag to avoid 
11692         double disposing). Some behaviours are different under 2.0 and are
11693         filled under bug #78448.
11694
11695 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
11696
11697         * Control.cs: When double-buffering is enabled, we need to reset
11698           our graphics context between paint calls. Otherwise, any 
11699           transformations and other alterations on the context will 
11700           become cumulative (#77734)
11701
11702 2006-05-18  Mike Kestner  <mkestner@novell.com>
11703
11704         * ListView.cs: do focused item selection like MS on clicks. 
11705         Rework focus handling for ItemControl so LostFocus invalidates as
11706         well.
11707         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
11708         the ListView ItemControl has focus.
11709
11710 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
11711
11712         * XplatUIX11.cs: If client_window ends up being width or height zero
11713           due to border settings, move it off window inside whole_window (#78433)
11714
11715 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
11716
11717         * Mime.cs: Shrink the mime file cache correctly.
11718
11719 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
11720
11721         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
11722
11723 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
11724
11725         * XplatUIX11.cs (AddExpose): More sanity checks
11726
11727 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
11728
11729         * XplatUIX11.cs:
11730           - AddExpose: Don't add expose ranges outside the size of our
11731             window
11732           - Cast opacity values to Int32 to avoid crashes with certain
11733             values
11734           - Added disabled code paths that protect against illegal cross-
11735             thread painting (Developers.exe)
11736
11737 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
11738
11739         * ProgressBar.cs: Invalidate the control when it's resized
11740           since block size is based on control size. (#78388)
11741
11742 2006-05-16  Miguel de Icaza  <miguel@novell.com>
11743
11744         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
11745         of setting the incoming argument to the "reset" value, we set the
11746         this.datamember to string.empty (before we were invalidating the
11747         incoming data).   
11748
11749         Fixes 78420
11750
11751 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
11752
11753         * Form.cs: Only apply transparency settings after the form
11754           is created. (Fixes #77800)
11755
11756 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
11757
11758         * ApplicationContext.cs: Grab the HandleDestroyed event so
11759           we know when to fire OnMainFormClosed 
11760
11761 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
11762
11763         * Application.cs: Introduced sub-class to allow tracking of
11764           threads and centralized triggering of the event mess for
11765           ThreadExit, AppExit, etc..  (#76156)
11766
11767 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
11768
11769         * MimeIcon.cs:
11770           - Do not return a null icon index value for a mime subclass.
11771             Instead try the main mime type class too.
11772           - Seems that some newer distributions don't have a link to some
11773             gnome default icons anymore. So check the default gnome dir too.
11774           
11775
11776 2006-05-16  Jackson Harper  <jackson@ximian.com>
11777
11778         * MdiClient.cs: Don't paint the parent background image if we have
11779         our own background image.
11780
11781 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
11782
11783         * Control.cs:
11784           - PerformLayout: Do not shrink space filled by DockStyle.Fill
11785             controls, all filled controls are supposed to overlap (#78080)
11786           - UpdateZOrder is supposed to update the control's z-order in the
11787             parent's z-order chain. Fixed to behave like that
11788           - BringToFront: Removed obsolete code
11789           - SendToBack: Simplyfied
11790           - SetChildIndex: Trigger layout calculations when Z-order changes
11791             since layout is done by z-order
11792
11793 2006-05-16  Chris Toshok  <toshok@ximian.com>
11794
11795         [ fixes bug #78410 ]
11796         * DataGrid.cs (set_AlternatingBackColor): use
11797         grid_drawing.InvalidateCells instead of Refresh().
11798         (set_BackColor): call grid_drawing.InvalidateCells.
11799         (set_BackgroundColor): use Invalidate instead of Refresh.
11800
11801         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
11802         invalidate the cell area.
11803
11804 2006-05-15  Chris Toshok  <toshok@ximian.com>
11805
11806         [ fixes bug #78011 ]
11807         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
11808         on to DataGridPaintRow.
11809         (DataGridPaintRow): take a clip argument, and only draw the cells
11810         which intersect it.  same with the not_usedarea.
11811
11812         * Theme.cs (DataGridPaintRow) add @clip parameter.
11813
11814         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
11815         XplatUI.ScrollWindow.
11816         (ScrollToRow): same.
11817
11818         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
11819         with last column which was causing a gray swath to appear with the
11820         XplatUI.ScrollWindow code.
11821
11822 2006-05-15  Chris Toshok  <toshok@ximian.com>
11823
11824         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
11825         use XplatUI.ScrollWindow.
11826         (VerticalScrollEvent): use XplatUI.ScrollWindow.
11827
11828 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
11829
11830         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
11831
11832 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
11833
11834         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
11835           file since there are no equivalent X11 cursors
11836
11837 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
11838
11839         * MonthCalendar.cs : DateTimePicker should reflect selected date
11840           on mouse*up*, not mouse*down*. Fixed originally reported part of
11841           bug #76474.
11842
11843 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
11844
11845         * TabControl.cs : When argument index is equal or more than tab
11846           count, just ignore. Fixed bug #78395.
11847
11848 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
11849
11850         * Control.cs: Dispose all child controls when control is diposed (#78394)
11851
11852 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
11853
11854         * ColorDialog.cs: Finally it is possible to select the color with
11855           the text boxes
11856
11857 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
11858
11859         * PrintDialog.cs: Fix typo
11860
11861 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
11862
11863         * PrintDialog.cs: PrintDialog is not resizable
11864         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
11865           color. Made some ToolBar drawing methods protected virtual.
11866
11867 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
11868
11869         * PrintDialog.cs: Implementation of the PrintDialog
11870
11871 2006-05-12  Chris Toshok  <toshok@ximian.com>
11872
11873         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
11874         thumb, instead use MoveThumb.  This has the side effect of making
11875         most of the other thumb moving machinery use MoveThumb as well.
11876         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
11877         need to actually invalidate the rectangle where the new thumb will
11878         go.
11879         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
11880         We force an Update() after, so it's not as fast as it could be,
11881         but at least there's zero flicker and no droppings.
11882         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
11883         (UpdateThumbPos): add another argument (dirty), which says whether
11884         or not to calculate/add dirty regions which we later invalidate.
11885         For cases where we know we're going to use MoveThumb, we pass
11886         false for this.  Otherwise, pass true.
11887
11888 2006-05-12  Jackson Harper  <jackson@ximian.com>
11889
11890         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
11891         the status bar.
11892         
11893 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
11894
11895         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
11896           and GetClipRegion methods and UserClipWontExposeParent property.
11897         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
11898           overriding UserClipWontExposeParent property, setting to false, since
11899           Win32 handles the required expose messages to draw our clipped parent
11900           areas internally
11901         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
11902           PaintEventStart to set the user clip region if set.
11903         * Control.cs: 
11904           - Now internally tracking the Region for the control since we need to
11905             store it if the handle is not yet created and only set it when it
11906             becomes created. Before setting the region forced handle creation
11907           - Added code to draw the parents underneath a user-clipped region
11908         * Hwnd.cs: Added UserClip property
11909
11910 2006-05-12  Chris Toshok  <toshok@ximian.com>
11911
11912         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
11913         (set_Maximum): same.
11914         (set_Minimum): same.
11915         (set_SmallChange): same.
11916         (OnMouseUpSB): remove the call to refresh when releasing the
11917         thumb.  We shouldn't need it.
11918         
11919 2006-05-12  Miguel de Icaza  <miguel@novell.com>
11920
11921         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
11922         AutoSize set to None, we do not need to relayout everything, we
11923         just need to invalidate the current region.
11924
11925         (Draw): Do not draw the entire ClientArea, just redraw the
11926         clip area being passed.
11927
11928         * MdiClient.cs: Make MdiClient constructor with the Form argument
11929         internal. 
11930
11931 2006-05-12  Jackson Harper  <jackson@ximian.com>
11932
11933         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
11934         parents background image,  but strangely not their own.
11935         - (DrawStatusBarPanel): Take into account horizontal alignment
11936         when drawing the strings and icons.
11937
11938 2006-05-12  Mike Kestner  <mkestner@novell.com>
11939
11940         * ListBox.cs: avoid invalidations for focus when the collection is
11941         empty. 
11942
11943 2006-05-12  Chris Toshok  <toshok@ximian.com>
11944
11945         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
11946         invalidate the entire thumb area.  Call InvalidateDirty which
11947         limits the redraw to the thumb itself and surrounding pixels.
11948
11949         * XplatUIX11.cs (ScrollWindow): optimize copying.
11950         
11951 2006-05-12  Chris Toshok  <toshok@ximian.com>
11952
11953         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
11954         Figure out the positioning/layout in a single pass instead of
11955         multiple recursive invocations.  Speeds up the initial display of
11956         the data grid.  Also, make many things private that were
11957         originally public but unused outside this class.
11958
11959 2006-05-11  Jackson Harper  <jackson@ximian.com>
11960
11961         * MdiClient.cs: Improved layout code.
11962
11963 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
11964
11965         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
11966           not SelectedObject.
11967
11968 2006-05-11  Chris Toshok  <toshok@ximian.com>
11969
11970         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
11971         union of that will always be {0,0,width,height}.
11972
11973 2006-05-11  Jackson Harper  <jackson@ximian.com>
11974
11975         * Form.cs: Match MS's DefaultSize for forms (they must have
11976         changed the size in sp2).
11977
11978 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
11979
11980         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
11981
11982 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
11983
11984         * TextControl.cs : Fixed bug #78109. This incorrect position
11985           comparison caused crash on automatic line split.
11986         * TextBoxBase.cs : reduce duplicate code.
11987
11988 2006-05-10  Jackson Harper  <jackson@ximian.com>
11989
11990         * MdiClient.cs: Active form is only sent to the back when using
11991         the Next form functionality, when a form is clicked the current
11992         active shouldn't be sent to the back.
11993         - Layout the mdi windows when the container is first made visible.
11994         * Form.cs: Give the MdiClient a ref to the containing form when we
11995         create it.
11996         
11997 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
11998
11999         * LinkLabel.cs : link_font could be uninitialized, so populate one
12000           before actual use. Fixed bug #78340.
12001
12002 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
12003
12004         * XplatUIX11.cs : clipboard format native value is IntPtr.
12005           Fixed bug #78283.
12006
12007 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
12008
12009         * Control.cs: 
12010           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
12011             which is passed up the parent chain by DefWndProc
12012           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
12013             to DefWndProc (#77956)
12014         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
12015
12016 2006-05-10  Jackson Harper  <jackson@ximian.com>
12017
12018         * MdiClient.cs: We need to remove the controls from the mdi
12019         collection, when we close the window.
12020         * MdiWindowManager.cs: Special handling of closing mdi windows.
12021         * InternalWindowManager.cs: Make the close method virtual so the
12022         mdi window manager can handle it specially.
12023
12024 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
12025
12026         * DataGrid.cs:
12027           - Recalculate grid when the data source has changed
12028           - Matches styles provided by user from all data sources types
12029         * DataGridTableStyle.cs: For columns that provided by the user set the
12030         with the preferred value is there was unassigned.
12031         * CurrencyManager.cs: throw OnItemChanged event
12032
12033 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
12034
12035         * PictureBox.cs: Don't animate until handle is created. Start animation
12036           when handle is created.
12037
12038 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
12039
12040         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
12041           current codebase.
12042         * XEventQueue.cs: We don't need to provide the extra info
12043
12044 2006-05-10  Jackson Harper  <jackson@ximian.com>
12045
12046         * MdiClient.cs: If the mdi clients parent form has a background
12047         image set, we draw that background image for the mdi area's
12048         background.
12049
12050 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
12051
12052         * TextBoxBase.cs: Set IBeam cursor (#78347)
12053
12054 2006-05-10  Mike Kestner  <mkestner@novell.com>
12055
12056         * ToolBar.cs: fix some text padding issues with ButtonSize
12057         calculation. Update the default size to match MS documentation.
12058         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
12059         button size. Fixes #78296.
12060
12061 2006-05-10  Mike Kestner  <mkestner@novell.com>
12062
12063         * ListBox.cs: use is_visible for scrollbar positioning in case the
12064         control isn't on screen yet.  Fix off by one with Right vs Width
12065         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
12066         
12067 2006-05-10  Jackson Harper  <jackson@ximian.com>
12068
12069         * X11Dnd.cs: Drop to a control with another control on top of it.
12070         * ToolBar.cs: Work on a copy of the buttons list, so that it can
12071         be modified in click handlers. TODO: Look for similar problems in
12072         other controls.
12073
12074 2006-05-09  Jackson Harper  <jackson@ximian.com>
12075
12076         * Form.cs: Window managers need the old window state when setting
12077         window state now.
12078         * InternalWindowManager.cs: Allow the base mdi window manager to
12079         handle more of the MDI only stuff (like maximize buttons).
12080         * MdiWindowManager.cs: Fix some snafus in changing the window
12081         state.  Add all the menu functionality, for both popup and
12082         maximized menus.
12083         * MdiClient.cs: When a new form is selected the currently
12084         activated form is sent to the back, this matches MS.
12085         - Implement a new method to activate the next mdi child window.
12086
12087 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
12088
12089         * Control.cs: 
12090           - Added new InternalCapture method to allow controls to prevent
12091             the capture behaviour on the click handlers
12092           - Switched to use InternalCapture
12093         * ComboBox.cs:
12094           - Using InternalCapture to prevent mouse captures from being released
12095             on mouse button release (Fixes #78100)
12096         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
12097           returns Form borders if a caption is present. (Fixes #78310)
12098
12099 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
12100
12101         * TreeNode.cs: Changed serialization .ctor to not require every field
12102           to be present. (#78265)
12103         * OwnerDrawPropertyBag.cs: Added serialization .ctor
12104
12105 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
12106
12107         * MimeIcon.cs: for is faster than foreach for strings.
12108
12109 2006-05-05  Mike Kestner  <mkestner@novell.com>
12110
12111         * CheckedListBox.cs: update check handling code to not use selected.
12112         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
12113         behavior for visual feedback, motion response, shift/ctrl handling,
12114         and properly deal with all 4 selection modes. Updates to bounds
12115         handling logic.  Add scroll wheel support. [Fixes #77842]
12116
12117 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
12118
12119         * ListView.cs:
12120           - Moved adding of Implicit controls into .ctor. That way, subsequent
12121             creation of the controls will not cause them to think they are 
12122             toplevel windows (fixes #78200 header problem)
12123           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
12124           - Switched visibility setting of header control to use internal field
12125             to avoid triggering handle creation
12126           - Now checking if handle is created before causing a refresh when items
12127             are added (This makes us now match handle creation time with MS)
12128         * Splitter.cs: Removed loading of private splitter cursor, switched to
12129           Cursors version now that that is loading the right ones
12130         * Cursors.cs: Load proper splitter cursors from resources
12131         * Cursor.cs: Added second method of loading resource cursors for the 
12132           VS.Net users amongst us
12133
12134 2006-05-05  Mike Kestner  <mkestner@novell.com>
12135
12136         * ListView.cs: give header_control a minimum size based on the
12137         ListView size.
12138
12139 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
12140
12141         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
12142           window seems to do that with metacity, so set that type. (#78120)
12143
12144 2006-05-05  Mike Kestner  <mkestner@novell.com>
12145
12146         * ListViewItem.cs: fix Details mode checkbox layout bug.
12147         * ThemeWin32Classic.cs: draw a ListView column header for unused space
12148         at the end of the header, if it exists. [Fixes for #78200]
12149
12150 2006-05-04  Jackson Harper  <jackson@ximian.com>
12151
12152         * MdiClient.cs: Add a helper property to get the container form.
12153         * MdiWindowManager.cs: We have to make sure to use the menu origin
12154         when drawing the icons and buttons, this fixes maximized window
12155         icons/buttons on win32.
12156         * InternalWindowManager.cs: Reset the restore captions when a
12157         window goes from Maximized to Minimized and vice versa. Move the
12158         DrawMaximizedButtons into the MdiWindowManager source, tool
12159         windows can't be maximized. NOTE: This could use a little
12160         refactoring if time ever permits.
12161         
12162 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
12163
12164         * TextBox.cs: Add MWFCategoryAttributes
12165         * TextBoxBase.cs: Add MWFCategoryAttributes
12166         * Form.cs: Add MWFCategoryAttributes
12167
12168 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
12169
12170         * Control.cs: Add MWFCategoryAttributes
12171         * ScrollableControl.cs: Add MWFCategoryAttributes
12172
12173 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
12174
12175         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
12176           Divider is true. Fix a little glitch in PropertyToolBar
12177           drawing code
12178
12179 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
12180
12181         * Control.cs:
12182           - Dispose: Call base.Dispose, this causes the disposed event
12183             to be fired (and probably other, more important stuff)
12184           - SetVisibleCore: Set is_visible to true after creating the
12185             window so that the window still gets created invisible (if
12186             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
12187             to generate a WM_ACTIVE message
12188         * Form.cs: Call Dispose when we want to destroy the window, instead of
12189           just destroying the handle (Dispose will do that for us)
12190         * XplatUIX11.cs:
12191           - RootWindow also needs a queue, so we can properly process the
12192             property change events from RootWindow (like Activate)
12193           - Generatic synthetic WM_ACTIVE message when the active window is
12194             being destroyed
12195
12196 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
12197
12198         * LinkLabel.cs: Trigger a recalc of our label dimensions when
12199           bounds are changed
12200
12201 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
12202
12203         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
12204           for determining width and height (image might not be assigned if
12205           we're drawing an imagelist)
12206
12207 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
12208
12209         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
12210         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
12211           height from system
12212         * Theme.cs: No longer returns hardcoded menu height, instead calls
12213           new driver method
12214         * Form.cs (OnLoad): Scaling happens before triggering Load events 
12215           on MS (# 78257)
12216
12217 2006-05-01  Mike Kestner  <mkestner@novell.com>
12218
12219         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
12220
12221 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
12222
12223         * TextBoxBase.cs: Removed Fixme
12224         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
12225
12226 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
12227
12228         * XplatUIX11.cs:
12229           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
12230             the rectangle relative to the parent, considering borders. We
12231             don't really want that.
12232           - ScrollWindow: Fixed warning to be more understandable
12233         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
12234           scrollbars and scroll only the visible area
12235         * RichTextBox.cs: Removed debug output
12236
12237 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
12238
12239         * NumericUpDown.cs (Text): Just use base
12240         * UpDownBase.cs: Ensure txtView is created before using it
12241
12242 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
12243
12244         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
12245           casting to IntPtr to avoid 64bit overflow errors
12246
12247 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
12248
12249         * Control.cs:
12250           - AllowDrop: Don't force handle creation.
12251           - CreateHandle: Added call to tell driver if we're allowed to drop
12252
12253 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
12254
12255         * FileDialog.cs: Remember the last directory not only for the
12256           current instance but also for new FileDialog instances.
12257
12258 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
12259         
12260         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
12261           broke sending async messages
12262
12263 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
12264
12265         * XplatUIX11.cs:
12266           - ScrollWindow: Fixed method. We finally generate expose events again
12267             for scrolled areas. This was causing 'garbage' when scrolling
12268             textbox and other controls that used ScrollWindow
12269           - Switched from using the regular queue for paint events to the MS 
12270             model of 'generating' paint events when the queue is empty.
12271             We use the new XQueueEvent.Paint subclass to store which windows
12272             need painting.
12273           - AddExpose now takes the x/y/width/height of the exposed area
12274             and inserts the window into the paint queue if not already there
12275           - InvalidateWholeWindow: Switched to use new AddExpose method
12276           - UpdateMessageQueue: Added which queue to monitor for paint events
12277           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
12278             the unlikely case nothing above handles it. We reset the expose
12279             pending states to get them off the queue.
12280           - GetMessage: Now pulls a paint event if no other events are in the
12281             queue
12282           - Invalidate: Switched to new AddExpose method
12283           - PeekMessage: Updated to understand pending paint events
12284           - UpdateWindow: Fixed logic bug. We were only updating if the window
12285             didn't need updating. Also switched to sending WM_PAINT directly,
12286             like MS does.
12287         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
12288           and random access Remove(). The random access is needed to handle
12289           UpdateWindow() where a WM_PAINT is sent directly without accessing
12290           the queue.
12291         * ScrollBar.cs: Added Update() calls to cause immediate updates to
12292           allow for better feedback when scrolling. Scrollbars are small and
12293           the immediate update should make it 'feel' more responsive without
12294           slowing things down. ScrollBar still needs it's invaliate logic
12295           updated to not always invalidate the whole bar on certain changes.
12296
12297 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12298
12299         * Control.cs:
12300         (BackColor): if the control does not support a transparent background,
12301         return the default backcolor when the parent backcolor is transparent.
12302
12303 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
12304
12305         * Application.cs: Updated to new StartLoop/GetMessage API
12306         * RichTextBox.cs: Provide some output on RTF parsing errors
12307         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
12308           new queue_id argument to GetMessage and PeekMessage to allow faster
12309           handling of per-thread queues in drivers.
12310         * Hwnd.cs: Added Queue tracking and property
12311         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
12312         * XEventQueue.cs: Added thread trackingA
12313         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
12314         * XplatUIX11.cs:
12315           - Implemented new per-thread queue
12316           - GetMessage: Fixed return/break behaviour on several cases. We were
12317             returning stale messages in some cases, instead of just processing
12318             the next message
12319
12320 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
12321
12322         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
12323
12324 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
12325
12326         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
12327           fixed off-by-one comparisons between Width/Height and Right/Bottom.
12328
12329 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
12330
12331         * PropertyGridView.cs: Fix drop down width.
12332
12333 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
12334
12335         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
12336           a mess in DrawToolBar, so I removed one of them.
12337
12338 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
12339
12340         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
12341           needed (clip). Otherwise we get artifacts.
12342
12343 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
12344
12345         * FixedSizeTextBox.cs: Added constructor to allow specifying which
12346           dimension is fixed
12347         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
12348           and switched FixedSizeTextBox to only be fixed vertical (#78116)
12349         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
12350           if it matches the scale base font (avoids unneeded scaling)
12351
12352 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
12353
12354         * X11DesktopColors.cs: One gtk_init_check should be enough
12355
12356 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
12357
12358         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
12359           match MS behaviour
12360
12361 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
12362
12363         * TextBoxBase.cs: 
12364           - Generate OnTextChanged for Backspace even if we're only deleting
12365             the current selection
12366           - When setting the Text property, only select all text if the
12367             control does not have focus when it is being set. Otherwise
12368             just place the cursor at the beginning of the control
12369
12370 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
12371
12372         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
12373           Added a little helper to draw PropertyGrid ToolBar with a different
12374           border and a different BackColor.
12375         * PropertyGrid.cs: Some background parts didn't get painted with the
12376           correct background color. Added a class that helps us to draw the
12377           correct border for PropertyGridView and a class that helps us to
12378           draw ToolBars with a different backcolor
12379         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
12380
12381 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
12382
12383         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
12384         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
12385
12386 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
12387
12388         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
12389           into the palette entries. Also, since we're working on a copy
12390           we needed to copy the palette back onto the bitmap.
12391         * Cursor.cs: Same fix as XplatUIWin32.cs.
12392
12393 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
12394
12395         * ImageListStreamer.cs: Need to read the var (or we're off)
12396
12397 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
12398
12399         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
12400           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
12401           TextBoxBase.cs: Unused var fixes
12402         * AxHost.cs: Small 2.0 fix
12403         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
12404           as it seems that is what at least Metacity expects. This will make
12405           icons show up on 64bit platforms. We still have some 64bit size
12406           issues, though, since the startup app window size still won't match.
12407
12408 2006-04-25  Mike Kestner  <mkestner@novell.com>
12409
12410         * *.cs: cleanup newly reported exception var unused warnings.
12411
12412 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
12413
12414         * ThemeWin32Classic.cs: Button image alignment now matches exactly
12415           ms
12416
12417 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
12418
12419         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
12420           image. The image position is always the same, no matter if the
12421           button is pressed or not.
12422
12423 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
12424
12425         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
12426           selection and set the correct filename for SaveFileDialog.
12427           Patch by Emery Conrad.
12428
12429 2006-04-24  Mike Kestner  <mkestner@novell.com>
12430
12431         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
12432         check for item.X outside the ClientRect instead of item.Y. Fixes
12433         #78151.
12434
12435 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12436
12437         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
12438         trust that value blindly and do some sanity check. Fixes bug #77814.
12439
12440 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12441
12442         * ImageListStreamer.cs: save the mask as a 1bpp image.
12443
12444 2006-04-21  Mike Kestner  <mkestner@novell.com>
12445
12446         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
12447         pass Checked and Indeterminate to the Theme Engine. Improve
12448         encapsulation with ListBox.
12449         * ListBox.cs: Keep a StringFormat instead of calculating it every item
12450         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
12451         nested types.  Move all CheckState functionality to CheckedListBox.
12452         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
12453         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
12454         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
12455         single base list. Fix scrollbar sizing and placement to mirror MS.
12456         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
12457         used.
12458         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
12459         for CheckedListBox by using new DrawItemState info.  Center the
12460         checkboxes on the items. Use new StringFormat property.
12461
12462 2006-04-18  Jackson Harper  <jackson@ximian.com>
12463
12464         * Form.cs: MdiChildren don't do default locations the same way as
12465         regular forms.  This prevents a crash when trying to position the
12466         mdi windows.
12467
12468 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
12469
12470         * PropertyGridTextBox.cs: Formatting, copyright
12471         * PropertiesTab.cs: Formatting
12472         * PropertyGrid.cs: Formatting
12473         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
12474           click toggling of values
12475           
12476 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
12477
12478         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
12479         * Control.cs (.ctor): verify_thread_handle is static, don't reset
12480           every time a control is created
12481         * Application.cs: Removed obsolete EnableRTLMirroring method
12482
12483 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
12484
12485         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
12486         SelectedIndex to -1. Fixes bug #78121.
12487
12488 2006-04-17  Jackson Harper  <jackson@ximian.com>
12489
12490         * Binding.cs: Handle null values for Current and BindingContext.
12491         This occurs when binding is a little delayed.
12492         * CurrencyManager.cs: return null for Current when there are no
12493         items in the list.
12494         - Hookup to the listchanged event on the DataView and update
12495         bindings when the list is changed.  This fixes late binding of
12496         controls.
12497
12498 2006-04-17  Jackson Harper  <jackson@ximian.com>
12499
12500         * X11Dnd.cs:
12501         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
12502         Ringenbach.
12503
12504 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
12505
12506         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
12507           place
12508         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
12509           with the correct ButtonState
12510
12511 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
12512
12513         * XplatUIX11.cs: Improved distinguishing between window types to
12514           tell the WM a type closer to what the app wants (Fixes #78107)
12515
12516 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
12517
12518         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
12519           GrabHandle
12520
12521 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
12522
12523         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
12524           drawing code to reflect the size grip changes
12525
12526 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12527
12528         * ImageListStreamer.cs: fix handling of the mask that follows the main
12529         bitmap when deserializing and serialize it properly. The generated mask
12530         should better be a 1bpp image, but I'll do that later.
12531
12532 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
12533
12534         * FileDialog.cs: Show something in the DirComboBox on *nix if the
12535           path doesn't fit into some of our Current.Places
12536
12537 2006-04-13  Jackson Harper  <jackson@ximian.com>
12538
12539         * ComboBox.cs: Use borders instead of drawing our own decorations,
12540         try to obey correct rules for heights.
12541         * Theme.cs:
12542         * ThemeNice.cs:
12543         * ThemeClearLooks.cs:
12544         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
12545         this is now handled by borders.
12546         - Remove unused DrawListBoxDecorationSize method.
12547         
12548 2006-04-13  Mike Kestner  <mkestner@novell.com>
12549
12550         * MenuAPI.cs: null guarding for the disbled click check fixes crash
12551         reported by Alex.
12552
12553 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
12554
12555         * ThemeWin32Classic.cs: 
12556           - Fixed CPDrawStringDisabled
12557           - Corrected drawing of disabled menu items
12558           - Fixed drawing of disabled radio buttons (bug #78095)
12559           - Draw check in a disabled CheckBox with color ControlDark 
12560
12561 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
12562
12563         * Form.cs: Use the provided width when calculating the menu size;
12564           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
12565           and ClientSize.Width won't be updated yet
12566         * Application.cs: Use Visible instead of Show() to make form visible,
12567           this way we create the handle later and menusize is considered
12568
12569 2006-04-12  Mike Kestner  <mkestner@novell.com>
12570
12571         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
12572         reporting.
12573
12574 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
12575
12576         * TextBox.cs: Implemented context menu
12577
12578 2006-04-12  Mike Kestner  <mkestner@novell.com>
12579
12580         * ListView.cs: implement box selection. fixes #77838.
12581         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
12582
12583 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
12584
12585         * XplatUIX11.cs: Added setting of window type when transient window
12586           is created (metacity would move it otherwise)
12587         * X11Structs.cs: Added WINDOW_TYPE atoms
12588         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
12589           background (the control is Opaque but still wants transparent
12590           backgrounds)
12591
12592 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
12593
12594         * Control.cs: Added OnPaintBackgroundInternal to allow controls
12595           that set Opaque but don't mean it (like all ButtonBase-derived
12596           controls) to still draw their background
12597         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
12598           the background
12599
12600 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
12601
12602         * Control.cs (PaintControlBackground): Set the graphics object
12603           on our PaintEvent to null to prevent it from being disposed
12604           when the PaintEvent gets disposed
12605
12606 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
12607
12608         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
12609         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
12610
12611 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
12612
12613         * Control.cs: 
12614           - Added transparency check to BackColor property. Transparent
12615             backgrounds are only allowed if the control styles permit it
12616           - Added recursive painting of parent control background and
12617             foreground if a control with a transparent backcolor is drawn
12618             (Thanks to Tim Ringenback for providing his 'hack' as a base
12619              for this patch) Fixes #77985 and #78026.
12620           - Added Opaque style check before calling OnPaintBackground, no
12621             need to draw the background if the control is opaque
12622           - Removed ControlAccessibleObject owner variable (inherited from
12623             base, no need to define again)
12624           - Added some documentation links explaining the drawing events
12625             and styles
12626
12627 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
12628
12629         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
12630           that the affected control is the located at the left border of our
12631           parent (Fixes #77936)
12632
12633 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
12634
12635         * TextBoxBase.cs: When rendering disabled or readonly controls,
12636           draw the background with 'Control' instead of 'Window' color as
12637           long as the user hasn't specifically set a color
12638
12639 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
12640
12641         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
12642           since that won't be updated if the user types text (only if it's
12643           programatically set)
12644
12645 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
12646
12647         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
12648           layout changes do to app-triggered resizes will have the proper
12649           display rectangle for layout
12650
12651 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
12652
12653         * ThemeWin32Classic.cs:
12654           - Make use of the SystemBrushes and SystemPens wherever possible
12655           - Corrected some highlight colors
12656           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
12657             drawing
12658         * Theme.cs: Added Empty field to CPColor struct
12659
12660 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
12661
12662         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
12663           is displayed when calculating the display rectangle. Thanks to Mike
12664           for teaching me the err of my ways.
12665
12666 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
12667
12668         * ScrollableControl.cs:
12669           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
12670             (instead of 0,0) and we now return the real width/height instead of
12671             just the clientrectangle, adjusted for padding. The rectangle is
12672             now cached and created by the new CalculateDisplayRectangle method.
12673           - Created new CalculateDisplayRectange method, which basically does
12674             what get_DisplayRectangle() did originally, but now using the 
12675             right edge instead of DisplayRectangle to determine the size of
12676             our scrollbars
12677           - get_Canvas(): Fixed it to properly calculate canvas for 
12678             right/bottom controls which seem to be placed to the right/bottom
12679             of any controls that have a fixed location
12680           - Removed TODO that's taken care of
12681           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
12682             and SetDisplayRectLocation according to new MSDN2 docs
12683           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
12684             event when that is called, this is added for compatibility
12685           - ScrollControlIntoView(): Implemented.
12686           - Switched scrollbars to be implicit, they shouldn't be selectable
12687         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
12688           call it when the active control is set/changed
12689         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
12690         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
12691           implicit_control variable (used for native Win32 message generation)
12692         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
12693           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
12694         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
12695         * XplatUIStructs.cs: Added ScrollBarCommands enum
12696
12697 2006-04-10  Jackson Harper  <jackson@ximian.com>
12698
12699         * ButtonBase.cs:
12700         * CheckedListBox.cs:
12701         * ComboBox.cs:
12702         * DataGrid.cs:
12703         * DataGridView.cs:
12704         * Form.cs:
12705         * GroupBox.cs:
12706         * ListBox.cs:
12707         * PrintPreviewControl.cs:
12708         * ProgressBar.cs:
12709         * PropertyGrid.cs:
12710         * Splitter.cs:
12711         * StatusBar.cs:
12712         * TrackBar.cs:
12713         * UpDownBase.cs: Fixup base event overrides.
12714         
12715 2006-04-06  Mike Kestner  <mkestner@novell.com>
12716
12717         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
12718         all user-initiated value changes to min <= value <= max-thumbsz+1.
12719         (set_Value): check for vert/horiz when calculating new thumb position.
12720         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
12721         like MS does.
12722         (OnMouseMoveSB): refactor the thumb dragging code and refine
12723         invalidation logic to reduce flicker.
12724         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
12725         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
12726         (UpdateThumbPosition): small code readability cleanup
12727
12728 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
12729
12730         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
12731           different
12732
12733 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
12734
12735         * ThemeNice.cs: Use a better graphics effect when a button is pressed
12736
12737 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
12738
12739         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
12740         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
12741           This dramatically reduces the number of Pen.Dispose calls. 
12742           Where possible call ResPool methods only once instead of calling it
12743           over and over again (for example for the same color).
12744
12745 2006-04-06  Mike Kestner  <mkestner@novell.com>
12746
12747         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
12748         Also remove an unused private field on the collection. Fixes #77972.
12749
12750 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
12751
12752         * ThemeNice.cs: Added ToolBar drawing code
12753
12754 2006-04-06  Mike Kestner  <mkestner@novell.com>
12755
12756         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
12757         I'm assuming that means we need to look up the toplevel for the
12758         provided control. Fixes the crash trace in #77911 but exposes another
12759         crash in some strange reflection usage in NDocGui.
12760
12761 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
12762
12763         * ThemeNice.cs: Gave it a little silver touch and added Images
12764           method
12765         * FontDialog.cs: FontDialog is not resizable
12766         * FileDialg.cs: Added SizeGripStyle.Show
12767
12768 2006-04-05  Jackson Harper  <jackson@ximian.com>
12769
12770         * KeyboardLayouts.cs: Remove warning.
12771
12772 2006-04-05  Jackson Harper  <jackson@ximian.com>
12773
12774         * Control.cs: Enable OnPaintInternal so we can use it for drawing
12775         all of our controls instead of Paint +=.
12776         * ListBox.cs:
12777         * ListView.cs:
12778         * MenuAPI.cs:
12779         * MessageBox.cs:
12780         * NotifyIcon.cs:
12781         * ProgressBar.cs:
12782         * ScrollBar.cs:
12783         * Splitter.cs:
12784         * StatusBar.cs:
12785         * TabControl.cs:
12786         * TextBoxBase.cs:
12787         * ToolBar.cs:
12788         * TrackBar.cs:
12789         * UpDownBase.cs:
12790         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
12791         use OnPaintInternal. Remove Width/Height and Visible checks in
12792         paint handler, this is done at a higher level now.
12793         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
12794         * PaintEventArgs.cs: Add a handled flag so controls that don't
12795         want anymore painting after OnPaintInternal can make sure OnPaint
12796         isn't called.
12797
12798 2006-04-05  Mike Kestner  <mkestner@novell.com>
12799
12800         * Form.cs: fix the menu WndProc hacks to respect the native enabled
12801         state of the form, so that we don't process events when Modal dialogs
12802         are up. Fixes #77922.
12803
12804 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
12805
12806         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
12807           checking is done.
12808
12809 2006-04-05  Mike Kestner  <mkestner@novell.com>
12810
12811         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
12812
12813 2006-04-05  Mike Kestner  <mkestner@novell.com>
12814
12815         * ListView.cs (HeaderMouseMove): null guarding for the over column
12816         when setting up the drag_to_index.  Fixes #78015.
12817
12818 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
12819
12820         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
12821           in the taskbar. Transient windows seem to accomplish that.
12822
12823 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
12824
12825         * Form.cs:
12826           - Re-enabled CreateParams.X/Y code for FormStartPosition
12827           - Added code for manual placement when creating the Control
12828           - Incomplete patch to treat MDI forms differently when
12829             setting the ClientSizeCore. (Still need to figure out handling
12830             x/y coords there)
12831         * XplatUIX11.cs:
12832           - When we're explicitly setting the X/Y position of a non-Child
12833             window, let the WM know. Metacity really wants this.
12834
12835 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
12836
12837         * ThemeNice.cs: Added CPDrawButton
12838
12839 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
12840
12841         * ThemeNice.cs: Changed the color for focused buttons and activated
12842           the arrows for small scroll buttons.
12843
12844 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
12845
12846         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
12847           anymore. Changed some method modifiers to protected (virtual)
12848         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
12849           changes
12850         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
12851           Updated drawing of menus, buttons and progressbars; added
12852           CPDrawBorder3D 
12853
12854 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12855
12856         * ImageListStreamer.cs: implemented serialization/deserialization
12857         of the images.
12858
12859 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
12860
12861         * ThemeWin32Classic.cs:
12862           - Removed all the DrawFrameControl stuff; CPDrawButton,
12863             CPDrawCheckBox and CPDrawRadioButton are now handled directly
12864             inside the methods
12865           - Updated and corrected the drawing code of CPDrawButton,
12866             CPDrawCheckBox and CPDrawRadioButton to better match ms
12867           - Updated theme checkbox and radiobutton code to use the CP*
12868             methods
12869
12870 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
12871
12872         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
12873           bug is fixed
12874
12875 2006-03-31  Jackson Harper  <jackson@ximian.com>
12876
12877         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
12878         sometimes.
12879         * UpDownBase.cs: Don't CreateGraphics manually, use a
12880         Refresh. Ideally we would invalidate the correct areas here.
12881
12882 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
12883
12884         * XplatUIX11.cs: 
12885           - We now track the mapping state of windows. If a window (or 
12886             one of it's parents) is not mapped we no longer permit
12887             WM_PAINT messages to be generated since we'd otherwise get 
12888             lots of BadMatch X errors. Jackson did all the work figuring
12889             out the problem.
12890           - Destroying the caret if the window it's contained in is 
12891             destroyed. Can't use regular DestroyCaret method since it
12892             might fall into a drawing function (trying to remove the
12893             caret) and with that generate new BadMatch errors. Again,
12894             Jackson tracked this down.
12895           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
12896             make sure we send the messages to all windows. (The old code
12897             would send the WM_DESTROY to the window, and then all child
12898             windows would be 'gone' because the WM_DESTROY handle lookup
12899             would no longer find the destroyed window)
12900         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
12901         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
12902
12903 2006-03-31  Jackson Harper  <jackson@ximian.com>
12904
12905         * ScrollableControl.cs: Dont recalc if we are not visible.
12906
12907 2006-03-31  Mike Kestner  <mkestner@novell.com>
12908
12909         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
12910         the visibility branch.
12911
12912 2006-03-31  Jackson Harper  <jackson@ximian.com>
12913
12914         * ScrollBar.cs: Cap values when incrementing/decrementing.
12915
12916 2006-03-31  Mike Kestner  <mkestner@novell.com>
12917
12918         * MenuAPI.cs: setup menu.tracker for popup/context menus.
12919         * ToolTip.cs: guard against timer expirations with no active control.
12920         Not sure why it happened.
12921
12922 2006-03-31  Mike Kestner  <mkestner@novell.com>
12923
12924         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
12925         text.
12926         * ToolTip.cs: Position the tooltip based on where the cursor is at
12927         popup time, not at MouseEnter time.  Add a Down state so that we don't
12928         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
12929         positioning offset. Lookup DisplaySize at positioning time, since it
12930         can theoretically change during invocation.
12931         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
12932         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
12933
12934 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
12935
12936         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
12937           Fixes behaviour when the Text property of the box is String.Empty
12938
12939 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
12940
12941         * XplatUIX11.cs: Only send mouseleave for our client windows, not
12942           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
12943           a window)
12944
12945 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
12946
12947         * FileDialog.cs: Visual enhancement for the popup buttons in 
12948           PopupButtonPanel
12949
12950 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
12951
12952         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
12953           code
12954
12955 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
12956
12957         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
12958           highlighted menu items to match ms
12959
12960 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
12961
12962         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
12963
12964 2006-03-30  Mike Kestner  <mkestner@novell.com>
12965
12966         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
12967         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
12968         go active to account for HotLight to Selected transition.
12969         * MenuItem.cs: add internal Selected prop. Fill out the Status
12970         property by calculating it from item info. Add HotLight,
12971         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
12972
12973 2006-03-30  Mike Kestner  <mkestner@novell.com>
12974
12975         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
12976
12977 2006-03-29  Jackson Harper  <jackson@ximian.com>
12978
12979         * Form.cs: Implement TODO.
12980
12981 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
12982
12983         * PrintPreviewDialog.cs: Implemented missing methods and events; still
12984           missing proper dialog setup in the constructor
12985
12986 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
12987
12988         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
12989         * Control.cs:
12990           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
12991           - Fixed ResetBindings and removed TODO
12992           - Added check for cross-thread calls to get_Handle()
12993           - Added Marshaller attribute for set_Font to satisfy class status
12994         * FontDialog.cs: Removed TODOs that seemed implemented
12995         * UpDownBase.cs: Removed unneeded TODO and Fixme
12996         * MessageBox.cs: Implemented support for Default button and removed TODO
12997         * FileDialog.cs: Removed obsolete TODO
12998         * DomainUpDown.cs: Removed obsolete TODO
12999         * ButtonBase.cs: Removed obsolete TODO
13000         * XplatUIWin32.cs: Removed obsolete TODO
13001         * Form.cs:
13002           - Removed obsolete TODO
13003           - Calling CheckAcceptButton when the acceptbutton is changed to allow
13004             internal status updates
13005           - Making sure the active control is selected when the control is created
13006         * CurrencyManager.cs: Removed obsolete TODO
13007
13008 2006-03-29  Mike Kestner  <mkestner@novell.com>
13009
13010         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
13011         of PrintPreviewDialog and RichTextBox.
13012
13013 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
13014
13015         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
13016           DarkDark, Light and LightLight colors for a specific color
13017         * ThemeWin32Classic.cs:
13018           - Use Button drawing code to draw RadioButtons and CheckBoxes with
13019             Appearance = Button 
13020           - Make use of the new ResPool helper CPColor
13021           - Draw ProgressBar and StatusBar with correct 3D borders
13022
13023 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
13024
13025         * ColorDialog.cs: Return selected color. Fixes bug #77940.
13026
13027 2006-03-28  Mike Kestner  <mkestner@novell.com>
13028
13029         * ListView.cs: fix Icon layout to plan for scrollbar widths when
13030         calculating col/row counts.
13031
13032 2006-03-28  Mike Kestner  <mkestner@novell.com>
13033
13034         * ColumnHeader.cs:
13035         * ListView.cs:
13036         * ListViewItem.cs:
13037         * Menu.cs: 
13038         switch to explicit interface method implementation for some methods
13039         corcompare identifies as inconsistent with MS.
13040
13041 2006-03-28  Mike Kestner  <mkestner@novell.com>
13042
13043         * MainMenu.cs: 
13044         * Menu.cs:
13045         add a few missing methods from the class status output.
13046
13047 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
13048
13049         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
13050           correct.
13051
13052 2006-03-28  Mike Kestner  <mkestner@novell.com>
13053
13054         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
13055
13056 2006-03-27  Mike Kestner  <mkestner@novell.com>
13057
13058         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
13059         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
13060
13061 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
13062
13063         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
13064
13065 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
13066
13067         * ThemeWin32Classic.cs:
13068           - GroupBox: Inserted a little gap between the text and the lines
13069             on the right side
13070           - Made the code in CPDrawBorder3D more readable
13071           - Corrected the drawing location of the up and down arrows in 
13072             CPDrawScrollButton
13073
13074 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
13075
13076         * ControlPaint.cs: Corrected line widths in DrawBorder for
13077           ButtonBorderStyle Inset and Outset
13078
13079 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
13080
13081         * ThemeWin32Classic.cs:
13082           - Rewrote the totally broken CPDrawBorder3D method. That was
13083             one of the main problems for the terrific ThemeWin32Classic
13084             look
13085           - Updated and corrected Button drawing
13086           - Correct the dimensions of the SizeGrip to match ms ones
13087           - Removed a small drawing glitch in DrawComboBoxEditDecorations
13088         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
13089           Border3DStyle.Sunken to match ms.
13090
13091 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
13092
13093         * ThemeWin32Classic.cs: First small part of the "de-uglify
13094           ThemeWin32Classic" effort, SizeGrip
13095
13096 2006-03-24  Jackson Harper  <jackson@ximian.com>
13097
13098         * XplatUIX11.cs: Give a max idle time of one second, this matches
13099         MS and forces an Idle event every second when there are no other
13100         events in the queue.
13101
13102 2006-03-24  Mike Kestner  <mkestner@novell.com>
13103
13104         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
13105         * ListView.Item.cs: fix layout issues with null image lists and images
13106         smaller than checkbox size.
13107         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
13108         mode like MS does.  It's weird, but consistent.  ;-)
13109         Fixes #77890.
13110
13111 2006-03-24  Mike Kestner  <mkestner@novell.com>
13112
13113         * ListView.cs: Scroll wheel support for the item control.  Fixes
13114         #77839.
13115
13116 2006-03-23  Jackson Harper  <jackson@ximian.com>
13117
13118         * ScrollableControl.cs: Special case negative sized areas, not
13119         zero.
13120         * MonthCalendar.cs: Save the rect of the clicked date so we can
13121         use it for invalidation.
13122         - Try to cut down on the number of invalidates
13123         - Invalidate the rect the mouse is over and was over when moving
13124         the mouse, so we get the focus box following the cursor.
13125
13126 2006-03-23  Mike Kestner  <mkestner@novell.com>
13127
13128         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
13129         focus rectangle drawing. Fixes #77835.
13130
13131 2006-03-23  Mike Kestner  <mkestner@novell.com>
13132
13133         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
13134         the if and else if and reverting back to the original == check on the
13135         None conditional.
13136
13137 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
13138
13139         * FontDialog.cs: Update the example panel if the selected index of
13140           the fontListBox changes.
13141
13142 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
13143
13144         * FileDialog.cs: Make FileDialog remember which directory it was in
13145           last in the same execution.
13146
13147 2006-03-22  Mike Kestner  <mkestner@novell.com>
13148
13149         * FileDialog.cs: make the DropDownMenu on the toolbar display
13150         RadioChecks since they are mutually exclusive and that's what MS does.
13151
13152 2006-03-22  Mike Kestner  <mkestner@novell.com>
13153
13154         * Theme.cs: add Color param to CPDrawMenuGlyph.
13155         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
13156         checks and radio marks and arrows are visible on highlighted items.
13157         * ControlPaint.cs: update to use new Theme signature.
13158
13159 2006-03-22  Mike Kestner  <mkestner@novell.com>
13160
13161         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
13162         is active. Fixes #77870.
13163
13164 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
13165
13166         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
13167           to be focused/selected after startup
13168
13169 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
13170
13171         * ColorDialog.cs: 
13172           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
13173             CustomColors and ShowHelp properties
13174           - Some internal rewrites to get better results when using the
13175             ColorMatrix
13176
13177 2006-03-22  Mike Kestner  <mkestner@novell.com>
13178
13179         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
13180         HoverSelection.  Fixes #77836.
13181
13182 2006-03-22  Mike Kestner  <mkestner@novell.com>
13183
13184         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
13185         ToggleButtons.  (De)Sensitize the Back button around a stack count of
13186         1, not 0.  Update ButtonSize based on a pixel count of the win32
13187         control.  Adjust the toolbar size/location for new button size.
13188
13189 2006-03-22  Jackson Harper  <jackson@ximian.com>
13190
13191         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
13192         true.
13193         * ScrollBar.cs: When doing increments and decrements we need to
13194         set the Value property so that ValueChanged gets raised. A
13195         possible optimization here would be to make an internal SetValue
13196         that doesn't invalidate immediately.
13197         * ToolTip.cs: Tooltips get added to their container (when
13198         supplied) so they get disposed when the container is disposed.
13199         - Don't create tooltips for String.Empty. This prevents all these
13200         little 2-3 pixel windows from showing up when running nunit-gui
13201         and driving me mad.
13202         * Form.cs: Don't set topmost when setting the owner if the handles
13203         haven't been created yet.  The topmost set will happen when the
13204         handles are created.
13205
13206 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
13207
13208         * XplatUIX11.cs:
13209           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
13210           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
13211             visible (to allow them to recalculate their sizes)
13212
13213 2006-03-21  Mike Kestner  <mkestner@novell.com>
13214
13215         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
13216         methods. Removed a ton of redundant code.  Still not really happy with
13217         the border rendering, but I think that's mainly because of the
13218         ControlDarkDark being black instead of a dark grey. Depending on how 
13219         close we want to be, we might want to revisit those color choices.
13220         Among the new features added during the refactor were DropDownArrow
13221         pressed rendering, Disabled image rendering.  Proper flat appearance
13222         boundary rendering.  Removed the Divider and Wrapping dividers since I
13223         can't figure out any combination of themes and conditions to make the
13224         MS control draw a horizontal line on a toolbar despite what the
13225         Divider property docs indicate.
13226         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
13227         conditions and incorrect layout.  Updated to coding standard.
13228         * ToolBarButton.cs: refactored layout and positioning code from
13229         ToolBar to here.  Invalidate wherever possible instead of forcing
13230         redraws of the whole toolbar. 
13231         (Known remaining issues: explicit ButtonSize smaller than provided
13232         images.)
13233
13234 2006-03-21  Mike Kestner  <mkestner@novell.com>
13235
13236         * ContextMenu.cs (Show): use the position parameter instead of just
13237         showing at the MousePosition.
13238
13239 2006-03-21  Jackson Harper  <jackson@ximian.com>
13240
13241         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
13242         control handle this.
13243         * TreeNodeCollection.cs: If we are clearing the root node we need
13244         to reset top_node so calcs can still happen.
13245         * ThemeWin32Classic.cs: This is a Flags so we need to check
13246         properly.
13247         
13248 2006-03-21  Jackson Harper  <jackson@ximian.com>
13249
13250         * DataGrid.cs: Create columns when the binding context has been
13251         changed.
13252         * X11Structs.cs: Keysyms are uints.
13253         - Add size to fix build.
13254
13255 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
13256
13257         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
13258           XplatUIOSX.cs: 
13259           - Added ResetMouseHover method to allow controls to retrigger
13260             hovering if they need it more than once
13261           - Implemented MouseHoverTime and MouseHoverSize properties
13262         * Timer.cs: Start() must reset the interval
13263         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
13264           properties
13265
13266 2006-03-21  Jackson Harper  <jackson@ximian.com>
13267
13268         * X11Keyboard.cs: improved layout detection. Move the nonchar
13269         tables into this file.
13270         * KeyboardLayouts.cs: Move the tables into resource files.
13271
13272 2006-03-21  Mike Kestner  <mkestner@novell.com>
13273
13274         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
13275
13276 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
13277
13278         * Mime.cs: Various speed optimizations. Looking up mime types
13279           is now 2 times faster than before
13280
13281 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
13282
13283         * CreateParams.cs: Added internal menu field
13284         * Control.cs: 
13285           - Switched call order for UpdateBounds; now we always call
13286             the one that also takes ClientSize, and we're calculating the 
13287             client size via driver method in the others. The previous
13288             method of tracking client size by difference wasn't working
13289             for forms where even the starting client size wouldn't match
13290             the overall form size (due to borders) (Part of fix for #77729)
13291           - CreateParams(): Do not use parent.Handle unless the handle is
13292             already created. Causes havoc with Nexxia and throws off our
13293             creation of controls
13294         * XplatUIX11.cs:
13295           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
13296           - Switched handling of ConfigureNotify over to new PerformNCCalc 
13297             method (consolidates code)
13298           - Changed RequestNCRecalc to use new PerformNCCalc method
13299           - Added calls to RequestNCRecalc when menus and borders are changed
13300             to allow app to set NC size. (Part of fix for #77729) This matches
13301             when MS send a WM_NCRECALC on Win32 windows.
13302           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
13303             (Part of fix for #77729). This matches what MS does, they also
13304             send that message when the form is made visible.
13305           - XException.GetMessage: Improved usability of X errors by including
13306             a translation of the window into Hwnd and Control class
13307           - Improved debug info for window creation, reparenting and destruction
13308           - Created helper method WindowIsMapped() [Currently not used]
13309         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
13310         * Form.cs:
13311           - CreateParams: Now setting our menu on the new internal menu field
13312           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
13313             avoid calculating the same property twice
13314         * Hwnd.cs:
13315           - Improved usability of ToString() for debugging purposes
13316           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
13317             determine the height of the menu, instead of just the font. This
13318             required to also create a graphics context and to keep a bmp 
13319             around (for performance reasons)
13320
13321 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
13322
13323         * MenuAPI.cs: Added OnMouseUp method
13324         * Form.cs:
13325           - Now remembering the requested client size, avoids size errors
13326           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
13327             instead of base if the menu is active. This is required due to
13328             control now capturing and releasing on down/up and it would
13329             prematurely release our menu capture
13330
13331 2006-03-17  Jackson Harper  <jackson@ximian.com>
13332
13333         * KeyboardLayouts.cs: Add the czech layouts.
13334
13335 2006-03-16  Jackson Harper  <jackson@ximian.com>
13336
13337         * Control.cs: Use the viewport space when sizing not the controls
13338         client size, so things like ScrollableControl that effect the
13339         viewport size (when scrollbars are added) are computed correctly.
13340         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
13341         of ManagerEntrys.
13342         - Handle creating BindingManagers for null data sources.
13343         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
13344         source, otherwise when rows are added they are added to the 'fake'
13345         datasource and we will crash when trying to set the position in
13346         those rows.
13347         - Use Implicit scrollbars on the datagrid so they arent
13348         selectable.
13349         
13350 2006-03-16  Jackson Harper  <jackson@ximian.com>
13351
13352         * Binding.cs:
13353         * InternalWindowManager.cs:
13354         * MdiWindowManager.cs:
13355         * X11Keyboard.cs: I really want Mike to love me again (fix
13356         compiler warnings).
13357
13358 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
13359
13360         * DataGrid.cs:
13361           - OnMouseDown: Switch to editing mode when clicking on the cell
13362                          even if we're clicking on the cell that's currently 
13363                          selected
13364           - ProcessGridKey: Left/Right now wrap like MS.Net does
13365           - ProcessGridKey: Tab now knows to add a new row when tab is
13366                             pressed in the cell of the last column of the 
13367                             last row
13368           - ProcessGridKey: Enter now adds another row  if pressed in the last
13369                             row and selectes the new row, same column cell
13370           - ProcessGridKey: Home/End navigate columns, not rows, like 
13371                             originally implemented
13372           - Broke ProcessKeyPreview code out into an extra Internal method
13373             so it can be called from the edit code
13374         * DataGridTextBox.cs (ProcessKeyMessage):
13375           - Switched to accept Tab keypresses
13376           - Added F2 handling to allow jumping to the end of the edited cell
13377           - Added logic to allow moving caret left/right inside edited cell
13378             and making the edited cell jump when the caret hits cell borders
13379           - Tab and Enter are now passed to the datagrid after being handled
13380         * TextBoxBase.cs:
13381           - Removed capture code now that Control handles it
13382           - set_SelectionStart now ensures caret is visible
13383
13384 2006-03-16  Jackson Harper  <jackson@ximian.com>
13385
13386         * TrackBar.cs: Debackwards the increment/decrement for handling
13387         mouse clicks on the bar with vertical trackbars.
13388         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
13389         bottom to match MS.
13390
13391 2006-03-16  Mike Kestner  <mkestner@novell.com>
13392
13393         * ListView.cs: make shift/ctrl keyboard and mouse selection 
13394         consistent with the MS control. Fix a bug in
13395         SelectedListViewItemCollection.Clear that was pissing me off for the
13396         better part of a day because the collection was being altered
13397         underneath us as we walked the list.
13398
13399 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
13400
13401         * Control.cs: Not sure how we could miss this so long, but it seems
13402           that MS.Net has Capture set all the way from before calling 
13403           OnMouseDown through sending the mouse events until after
13404           OnMouseUp. This will fix DataGrid's selection being set to end
13405           at the location of the MouseUp.
13406
13407 2006-03-15  Jackson Harper  <jackson@ximian.com>
13408
13409         * BindingContext.cs: Check the binding after its added so that it
13410           can initialize the binding managers and hookup to events.
13411         * Binding.cs: Data members seem to sometimes include rows/cols in
13412           the format Row.Column we now take this into account.
13413           - Hookup to the position changed event so we can update the
13414           control when the position has changed in the data set.
13415         * CurrencyManager.cs: Take into account the row/col naming
13416           convention when creating dataset tables.
13417         * BindingContext.cs: Using a newer better way of storing
13418           datasource/datamember pairs.  Hopefully this better matches MS for
13419           looking up binding managers.
13420
13421
13422 2006-03-15  Jackson Harper  <jackson@ximian.com>
13423
13424         * BindingContext.cs: The currency manager needs the data member
13425         name, if the member is a data set we use the name to find the
13426         correct table.
13427         * CurrencyManager.cs: When creating the list prefer an IList over
13428         an IListSource.
13429         - Attempt to create a DataTable from a DataSet (TODO: might need
13430         some better error checking here, although MS doesn't seem to have much)
13431         - If we have a DataTable create a view and use it as our list.
13432
13433 2006-03-15  Mike Kestner  <mkestner@novell.com>
13434
13435         * ListView.cs: keep a matrix of the icon mode layout to facilitate
13436         keyboard navigation. Support Up/Down/Left/Right selection correctly
13437         for all 4 View modes.
13438         * ListViewItem.cs: add internal row/col fields for icon layouts.
13439
13440 2006-03-15  Jackson Harper  <jackson@ximian.com>
13441
13442         * TabControl.cs: Redraw the tabs when we resize so their newly
13443         calculated sizes are drawn on screen.
13444         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
13445         composite characters.
13446         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
13447         - filter events so that composite characters can be created
13448         patches by peter
13449         * X11Structs.cs: Add XIMProperties enum.
13450
13451 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
13452
13453         * Control.cs (BringToFront, SendToBack): Don't use window or handle
13454           unless it's created
13455
13456 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
13457
13458         * Control.cs (PerformLayout): We don't need to consider visiblity
13459           for anchoring, only for docking. This fixes 'whacky' alignment
13460           in listbox and other controls that use implicit scrollbars after
13461           the previous PerformLayout patch
13462         * ListBox.cs: Switched to use implicit scrollbars
13463           
13464 2006-03-14  Mike Kestner  <mkestner@novell.com>
13465
13466         * ToolBar.cs: 
13467         * VScrollBar.cs:
13468         - chain up the "new event" overrides to base and use
13469         OnEvent to raise them.  Part of fix for bug #76509.
13470
13471 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
13472
13473         * FileDialog.cs: Do not select an item in the parent directory
13474           on backspace
13475
13476 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
13477
13478         * Control.cs (PerformLayout): It would seem that we considered
13479           invisible windows for our layout. Not quite the right thing
13480           to do. Now we don't any longer, thereby fixing bug #76889.
13481
13482 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
13483
13484         * Control.cs (CanFocus): I goofed. A control can have focus 
13485           even though it's not selectable. Made it match MS docs.
13486
13487 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
13488
13489         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
13490           center by default (fixes #76895)
13491         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
13492           all uses of Border3DSides.All with the explicit ORd together
13493           Left|Right|Top|Bottom because I assume that nobody was aware 
13494           that All also implies a center fill. Most places I checked had
13495           a fill right above.
13496         * ProgressBarStyle.cs: Added
13497
13498 2006-03-13  Mike Kestner  <mkestner@novell.com>
13499
13500         * ListView.cs: fix breakage in drag shadow header positioning 
13501         from Peter's csc compilation fix.
13502
13503 2006-03-13  Mike Kestner  <mkestner@novell.com>
13504
13505         * ListView.cs: fix NRE produced by backspacing twice in a focused
13506         FileDialog.
13507
13508 2006-03-13  Mike Kestner  <mkestner@novell.com>
13509
13510         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
13511
13512 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
13513
13514         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
13515           be changed
13516         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
13517           the allowed size before making programmatic size changes
13518
13519 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
13520
13521         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
13522           set, metacity is broken and will still use the emty sizes in 
13523           the struct. (Fix for #77089)
13524
13525 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
13526
13527         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
13528           WindowExStyles and marked both enums as Flags
13529         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
13530           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
13531           to match WindowStyles split
13532         * XplatUIX11.cs:
13533           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
13534           - Updated to match WindowStyles split
13535         * XplatUIWin32.cs:
13536           - Fixed FosterParent creation, was using ExStyle on the Style field
13537             (This should help with Popup focus issues)
13538           - Updated to match WindowStyles split
13539
13540 2006-03-13  Jackson Harper  <jackson@ximian.com>
13541
13542         * MdiWindowManager.cs: Use the system menu height. Fixes some
13543         strange sizing issues.
13544
13545 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
13546
13547         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
13548         * TextBoxBase.cs:
13549           - Scroll to caret after inserting text (#77672)
13550           - Make scroll range one pixel higher, fixes off-by-one error (and
13551             makes underlines visible on the last line)
13552
13553 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
13554
13555         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
13556           the keyboard state from being stuck with keys in 'pressed' state when
13557           focus is switched away via keyboard
13558         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
13559           reset the keyboard if no X11 KeyUp events are expected to come
13560         * X11Structs.cs: Switched type of Visible to bool to match driver
13561
13562 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
13563
13564         * TextControl.cs:
13565           - Switched caret to be just 1 pixel wide, matches MS and looks less
13566             clunky
13567           - Moved caret display 1 pixel down from the top of the control
13568             to improve view
13569           - InsertCharAtCharet: Update the selection start if moving the caret
13570             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
13571           - No longer always creating the caret when the caret methods are
13572             called. Only the actual ShowCaret/HideCaret will do that now
13573           - Only setting caret visible if the owner control has focus
13574           - UpdateView: Added invalidation-shortcut logic for center and right 
13575             aligned text. Previously we'd update all according to the left
13576             logic which caused drawing errors. Also fixed height of invalidated
13577             areas, now properly invalidating the whole area (was off-by-one)
13578           - owner_HandleCreated: Always generate the document when the
13579             handle is created; this ensures that 
13580         * TextBoxBase.cs:
13581           - Fixed situation where caret would disappear under the right
13582             window border, also improved scrolling behaviour on left-
13583             aligned textboxes
13584           - Fixed right-aligned textboxes to have a border to the
13585             right instead of the caret being under the right border
13586         * XplatUIX11.cs:
13587           - Switched from 'nested' to simple visible/not visible tracking 
13588             for caret (part of fix for #77671)
13589           - No longer passing through translated FocusIn/FocusOut messages
13590             since we were notifying too often and the wrong windows. Instead
13591             we just notify our focussed window of receiving or loosing focus
13592         * XplatUIWin32.cs: Switched from 'nested' show/hide 
13593           counting for caret to simple visible yes/no behaviour (part of 
13594           fix for #77671)
13595
13596 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
13597
13598         * Mime.cs: Remove debug code...
13599
13600 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
13601
13602         * MimeGenerated.cs: Removed
13603         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
13604           and subclasses) from /usr/(local/)share/mime and
13605           $HOME/.local/share/mime.
13606
13607 2006-03-10  Jackson Harper  <jackson@ximian.com>
13608
13609         * MdiWindowManager.cs: Recalc the NC area when a window is
13610         maximized/restored so that the menu area is drawn on forms that
13611         don't have a menu.
13612
13613 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
13614
13615         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
13616           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
13617           us to force a WM_NCCALCRESIZE message being sent. This is needed
13618           for MDI maximizing.
13619
13620 2006-03-10  Jackson Harper  <jackson@ximian.com>
13621
13622         * Form.cs: We need to use the ActiveMenu when calculating menu
13623         height.
13624         - Fix nullref when the window manager hasn't been created yet.
13625         * Control.cs: Fix nullref when we try to bring a control to the
13626         front that has no parent.
13627         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
13628         height.
13629         - Add a dummy item to the maximized menu so it always has the
13630         correct height. Otherwise when there are no menus we don't get our
13631         icon and buttons.
13632         
13633
13634 2006-03-10  Jackson Harper  <jackson@ximian.com>
13635
13636         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
13637         stuff.
13638         * Form.cs: Make the window_state internal so the window managers
13639         can track it.
13640         - When an MDI child is maximized let its window manager create the
13641         main menu (so it can add its icon).
13642         - Notify the window managers of state changes
13643         - Let the window manager paint its buttons and handle button
13644         clicks on the menu when it is maximized.
13645         * InternalWindowManager.cs: Move the prev_bounds into the mdi
13646         window manager, since tool windows don't use it, only mdi windows.
13647         - Tell the main form that we don't want it to handle NCPAINT
13648         itself to avoid extra painting.
13649         - Handle clicks on a maximized windows menu.
13650         - Handle window state changes
13651         - Handle minimize/maximize clicks correctly by setting the window state.
13652         * MdiWindowManager.cs: Add an icon menu that (the menu you get
13653         when clicking on the forms icon).
13654         - New method to create a forms maximized menu. This is its normal
13655         menu + an icon.
13656         - Handle window state changes.
13657         - Handle sizing of maximized windows.  Maximized windows are just
13658         drawn bigger then the parent visible area. All controls are still
13659         there, they are just outside the visible area (this matches windows).
13660         * MdiClient.cs: No scrollbars when a child window is maximized.
13661         - Let the children windows figure out how big they should be when
13662         sizing maximized windows.
13663         - Implement a version of ArrangeIconicWindows somewhat similar to
13664         Windows version.  There are some little differences, but I don't
13665         think any app will rely on the layout of minimized mdi windows.
13666
13667 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
13668
13669         * Padding.cs: Several fixes to allow compiling with csc 2.0
13670
13671 2006-03-09  Jackson Harper  <jackson@ximian.com>
13672
13673         * Menu.cs:
13674         * MenuItem.cs: Cheap hack so we can add items to the list without
13675         the events being raised.  This allows adding mdi items during
13676         drawing. TODO: Should probably find a better time to add the items.
13677
13678 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
13679
13680         * ThemeWin32Classic.cs:
13681           - CheckBox_DrawText: Added logic to not wrap if not enough space
13682             is available (Fix for bug #77727)
13683           - RadioButton_DrawText: Added logic not to wrap if not enough
13684             space is available (Fix for bug #77727). Also removed some
13685             duplicate code, DrawString always drawing the regular text
13686             before hitting the if statement.
13687
13688 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
13689
13690         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
13691
13692 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
13693
13694         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
13695         * ContainerControl.cs: Partial implementation of some 2.0 scaling
13696           methods. Moved the new 2.0 properties into alphabetical order with
13697           other properties and added MonoTODO tags
13698
13699 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
13700
13701         * AutoScaleMode.cs: Added. Fix build.
13702
13703 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
13704
13705         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
13706           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
13707           and was requiring premature handle creation for calls from above
13708         * Form.cs, Control.cs: Removed handle arguments from calls to
13709           CalculateClientRect()
13710
13711 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
13712
13713         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
13714           drag_column.column_rect is MarshalByRef and can't be used that way
13715
13716 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
13717
13718         * AxHost.cs: Added deserialization constructor for 
13719           AxHost+State (fixes 77743)
13720
13721 2006-03-09  Mike Kestner  <mkestner@novell.com>
13722
13723         * ListView.cs: 
13724         - Added column drag reordering for details view.
13725         - fixed behavior when mouse is dragged off column and
13726         AllowColumnReorder is false.
13727         * ColumnHeader.cs: clone the format too in Clone.
13728         * Theme.cs: add DrawListViewHeaderDragDetails method.
13729         * ThemeWin32Classic.cs:
13730         - impl new method for drawing drag column shadows and targets.
13731         - support column offset for details mode in DrawListViewItem.
13732
13733 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
13734
13735         * TextControl.cs: Reset the char_count when the document is cleared
13736           (Fixes bug reported on mono-winforms mailing list)
13737
13738 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
13739
13740         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
13741           of calling base we simply process the key ourselves, since both
13742           DefWindowProc and the handled method would set m.Result. 
13743           (Fixes #77732)
13744
13745 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
13746
13747         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
13748           method also moves the window; instead implemented a copy of
13749           Control.ScaleCore (Part of fix for #77456)
13750         * TextBoxBase.cs: 
13751           - Created new CreateGraphicsInternal method to allow providing
13752             a graphics context when no handle is created without triggering
13753             handle creation. (Part of fix for #77456)
13754           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
13755         * TextControl.cs: 
13756           - Switched Constructor to require TextBoxBase instead of Control (to
13757             allow uncast access to CreateGraphicsInternal)
13758           - Safeguarded use of owner.Handle property. No longer accessing it
13759             unless the handle is already created.
13760           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
13761           - Now triggering a recalc when owning control becomes visible
13762         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
13763           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
13764           premature handle creation (Part of fix for #77456)
13765         * Control.cs:
13766           - We now only destroy our double-buffering buffers when the
13767             control is resized or disposed, but not when visibility
13768             changes. (The code even re-created them twice every time)
13769           - Now requiring a redraw of the buffer on visibility changes
13770             (fixes bug 77654 part 2)
13771           - Not passing OnParentVisibleChanged up unless the control
13772             is visible
13773           - CanFocus: Fixed to match MS documentation
13774           - Focus: Fixed to return actual focus state and to check if
13775             setting focus is legal before setting it
13776
13777 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
13778
13779         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
13780           when to draw focus rectangle by looking at parent focus and
13781           selected state instead. This fixes TabPages on Linux sometimes
13782           having none or multiple focus rectangles.
13783         * XplatUIX11.cs (SetFocus): 
13784           - Don't set the focus if the same window already has focus
13785           - Use SendMessage instead of PostMessage (like it's Win32
13786             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
13787             to match MS behaviour
13788         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
13789           are not selectable.
13790
13791 2006-03-07  Jackson Harper  <jackson@ximian.com>
13792
13793         * PictureBox.cs: Revert line I accidently committed last week.
13794
13795 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
13796
13797         * Control.cs: 
13798           - Added new IsRecreating and ParentIsRecreating properties to
13799             allow testing if RecreateHandle has been called on ourselves
13800             or one of our parents
13801           - WndProc(WM_DESTROY): If our control handle is being recreated
13802             we immediately need to create the handle when receiving the
13803             destroy, that way our child windows find a valid parent handle
13804             when they themselves are being recreated upon WM_DESTROY receipt
13805             (fix for bug #77654 part 1)
13806         * XplatUIX11.cs:
13807           - DestroyWindow: WM_DESTROY must be sent to our own window before
13808             notifying any child windows. MS documents that child windows
13809             are still valid when WM_DESTROY is received. (Control now relies on
13810             this behaviour)
13811           - Added some fine-grain debug options
13812
13813 2006-03-06  Jackson Harper  <jackson@ximian.com>
13814
13815         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
13816         box and base calculations off this.
13817         * MdiChildContext.cs:
13818         * MdiWindowManager.cs: Don't need to ensure scrollbars here
13819         anymore.
13820         
13821 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
13822
13823         * Splitter.cs: In situations where the affected control is added
13824           to the parent's control list after the splitter, we would not
13825           populate affected. Now we try populating it on mousedown, if
13826           it's not already set, and force it to be re-set whenever our
13827           parent changes.
13828
13829 2006-03-03  Matt Hargett  <matt@use.net>
13830
13831         * Control.cs: implement Control.Padding
13832         * Padding.cs: -Padding.All returns -1 when constructing with the
13833         implicit default ctor
13834         -Padding.ToString() matches MS.NET
13835         * ContainerControl.cs: implement
13836         ContainerControl.AutoScaleDimensions
13837         * ListControl.cs: implement ListControl.FormattingEnabled
13838         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
13839         * ButtonBase.cs:
13840         * TabPage.cs: Implement UseVisualStyleBackColor.
13841         * PictureBox.cs: Implement PictureBox.InitialImage.
13842
13843 2006-03-03  Mike Kestner  <mkestner@novell.com>
13844
13845         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
13846         event declarations to proxy to base event.
13847         * ListViewItem.cs: update to use ItemControl.
13848         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
13849         * ThemeWin32Classic.cs: update to new ListView theme API and fix
13850         column header label rendering for 0 width columns.
13851
13852 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
13853
13854         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
13855           that causes the control to be created. Fixes #77476.
13856
13857 2006-03-02  Jackson Harper  <jackson@ximian.com>
13858
13859         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
13860         expose_pending.
13861
13862 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
13863
13864         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
13865           passed in for the EventArgs (fixes #77690)
13866
13867 2006-03-01  Jackson Harper  <jackson@ximian.com>
13868
13869         * ScrollBar.cs: Refresh afterbeing resized.
13870
13871 2006-02-28  Mike Kestner  <mkestner@novell.com>
13872
13873         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
13874         Clean up a tracker compile warning.
13875         * MenuItem.cs: add internal PerformPopup method.
13876         [Fixes #77457]
13877
13878 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
13879
13880         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
13881           implicit expose) when the text is set to null
13882
13883 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
13884
13885         * RichTextBox.cs (FlushText): When newline is true, we always
13886           need to split the line, even if no text is on it and we may
13887           never eat newlines. (Fixes #77669)
13888
13889 2006-02-28  Mike Kestner  <mkestner@novell.com>
13890
13891         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
13892         and set Selected instead.
13893         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
13894         collections.
13895
13896 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
13897
13898         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
13899
13900 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
13901
13902         * FontDialog.cs:
13903           - Got rid of the panel. All controls are now directly added to
13904             the dialog form
13905           - It is now possible to set a font with the Font property
13906           - MinSize and MaxSize property do now what they should
13907           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
13908           - Searching and selecting a font with the font textbox works now,
13909             the same applies to the style and size textbox
13910           - Draw the correct 3D border in the example panel
13911           - Fixed a little mem leak (unused fonts didn't get disposed)
13912           - Many other internal updates/rewrites...
13913           - Fix typo
13914
13915 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
13916
13917         * TextControl.cs: 
13918           - InsertRTFFromStream: Added 'number of characters inserted' argument
13919           - set_SelectedRTF: Now using the number of characters to calculate
13920             the new location for the selection and cursor (x/y cannot be used
13921             due to potentially already wrapped text)
13922
13923 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
13924
13925         * TextControl.cs: Added property and implemented means to allow 
13926           disabling recalculation of a document (can be used to speed up
13927           multiple inserts and is needed to make RTF inserts predictable, see
13928           bug #77659)
13929         * RichTextBox.cs: Using the new NoRecalc property of Document to
13930           keep x/y insert locations predictable. Also makes it faster inserting
13931           large chunks of RTF
13932
13933 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
13934
13935         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
13936           it's easier for a child control to handle the other messages without
13937           having to duplicate the special functionality
13938         * TextBoxBase.cs
13939           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
13940             code to handle processing the key ourselves, in order to get 
13941             access to the result of KeyEventArgs.Handled. We now only call 
13942             ProcessKey if they key hasn't been handled already. Fixes #77526.
13943           - set_Text: If null or empty string is given, just clear the 
13944             document. Fixes part of #77526
13945
13946 2006-02-27  Jackson Harper  <jackson@ximian.com>
13947
13948         * SizeGrip.cs: Paint the background color before painting the grip
13949         so things look right.
13950         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
13951
13952 2006-02-27  Mike Kestner  <mkestner@novell.com>
13953
13954         * ListView.cs:
13955           - Restructure layout and invalidation model to remove a ton of
13956           flicker from the control and speed up performance in general.
13957           - Add manual column resize, flickers like crazy, but I already have
13958           some ideas on how I'll fix that. (#76822)
13959           - Merge the three Icon-based views into a single layout method.
13960           - Move item selection interaction logic from the item since 
13961           interaction with the collections is more appropriate to the view.
13962           - Deselection on non-item clicks.
13963         * ListViewItem.cs:
13964           - Encapsulate most of the layout. Add some internal props to trigger
13965           layout.  Move to a model where Items invalidate themselves instead
13966           of just invalidating the whole control every time something changes.
13967           - Invalidate on Text/Caption changes.
13968           - switch to an offset based layout model to avoid having to absolute
13969           position every element on item moves.
13970           - correct checkbox layout to conform to MS layout.
13971         * ThemeWin32Classic.cs:
13972           - refactor some column header drawing code.
13973           - fix string justification for column headers (#76821)
13974           - make SmallIcon labels top justified for compat with MS impl.
13975         * ThemeClearlooks.cs:
13976           - adjust to new ListViewItem internal checkbox bounds api.
13977
13978 2006-02-27  Jackson Harper  <jackson@ximian.com>
13979
13980         * Control.cs:  Change where implicit controls fall in the zorder.
13981         They are now on top of all children.
13982         - Synced AddImplicit code with Add
13983         - Removed unused enumerator.
13984         * SizeGrip.cs: Remove the TODO as its been TODONE.
13985
13986 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
13987
13988         * TextControl.cs(Insert): Combine the last lines unless the insertion
13989           string ends with \n\n, otherwise we leave one line too many (Fixes
13990           something I noticed with the testapp for #77526; the bug itself was
13991           already fixed in the previous checkin)
13992
13993 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
13994
13995         * RichTextBox.cs:
13996           - SelectionColor and SelectionFont methods no longer set absolute
13997             styles. Instead, the keep font or color respectively (This 
13998             resolves a long-standing FIXME in the code)
13999           - When flushing RTF text, the insert code now considers text trailing
14000             behind the insertion point (Fixes the bug where when replacing
14001             the selected text via SelectedRTF the remainder of the line behind 
14002             the selection would stay on the first insertion line)
14003         * TextBoxBase.cs:
14004           - AppendText now updates the selection points after inserting text
14005           - AppendText now ensures that the last tag (sometimes 0-length) of
14006             the document is used for the style information (Fixes part of 
14007             bug #77220)
14008         * TextControl.cs:
14009           - Created new FontDefiniton class to allow describing partial style
14010             changes
14011           - StreamLine() now takes a lines argument, to allow it to decide
14012             whether an encountered zero-length tag is the last in the document
14013             (which must be kept to not loose the font/color contained in it,
14014             for later appends)
14015           - Created Combine() and Split() methods for Marker structs, to 
14016             support marker updates due to reformatted documents (soft line
14017             wraps)
14018           - Implemented Document.CaretTag setter
14019           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
14020             of the last line (Not the cause, but also exposed by bug #77220)
14021           - Added LineTag argument to InsertString method, to allow callers
14022             to force a certain tag to be used (required to force use of the
14023             trailing zero-length tag of a document)
14024           - Now updating markers in Combine(), to avoid stale tag markers
14025           - Added some method descriptions to aid maintenance
14026           - Implemented new FormatText concept, allowing additive/subtractive
14027             formatting by only specifying the components that are to be 
14028             changed. This was needed for resolving the RTB.SelectedColor/
14029             RTB.SelectedFont fixmes
14030           - Added Break() support method to allow breaking up linetags (used
14031             for partial formatting)
14032           - Added GenerateTextFormat() method. It is used for partial 
14033             formatting and allows to generate a full font/color from given
14034             attributes and an existing tag.
14035
14036 2006-02-26  Jackson Harper  <jackson@ximian.com>
14037
14038         * XplatUIX11.cs:  Use the correct caption height.
14039         - Translate hittest coordinates to screen coords to match MS.
14040         * XplatUIWin32.cs: When we create MDI windows we need to reset
14041         some of the style flags, so we get a nice blank window, and can
14042         draw all the decorations ourselves.
14043         - Set a clipping rectangle on the non client paint event, the
14044         window manager drawing code needs one.
14045         * Form.cs: The window manager needs to know when the window state
14046         has been updated.
14047         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
14048         don't need to factor in border and title sizes in these
14049         methods. TODO: Remove the args and fix the call points.
14050         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
14051         properly.
14052         - Let the driver set the cursors.
14053         - Improve active window handling
14054         - Correct sizes for title bars and buttons.
14055         - Match MS drawing better
14056         * MdiWindowManager.cs: We don't need to handle border style
14057         updates specially anymore.
14058         - Check for scrollbars when windows are done moving
14059         - Handle Active properly.
14060         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
14061         correctly. I am spewing the exception though, so we don't hide the
14062         bugs.
14063         
14064 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
14065
14066         * DataGridViewRowPostPaintEventArgs.cs,
14067           DataGridViewCellPaintingEventArgs.cs,
14068           DataGridViewRowCollection.cs,
14069           DataGridViewRowPrePaintEventArgs.cs,
14070           DataGridViewCell.cs: Clear a few warnings and implement a few
14071           exceptions that should be thrown.
14072
14073 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
14074
14075         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
14076           'inheriting' our parent's (non-default) cursor. (Part of
14077            the fix for #77479)
14078
14079 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
14080
14081         * XplatUIX11.cs: Fixed cast to make csc happy
14082
14083 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
14084
14085         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
14086           it's for the client area (part of fix for #77479 and needed
14087           for MDI window cursor handling)
14088         * XplatUIX11.cs
14089           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
14090             the appropriate default cursors and also passing the message
14091             up the parent chain 
14092           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
14093             for non-client areas
14094
14095 2006-02-15  Jackson Harper  <jackson@ximian.com>
14096
14097         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
14098         is a real MDI window
14099
14100 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
14101
14102         * X11DesktopColors.cs: Instead of checking the desktop session
14103           string for "KDE" check if it starts with "KDE"
14104
14105 2006-02-10  Jackson Harper  <jackson@ximian.com>
14106
14107         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
14108         systems).
14109
14110 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
14111
14112         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
14113           errors
14114         * ColorDialog.cs:
14115           - Got rid of the panel. All controls are now directly added to
14116             the dialog form
14117           - Changed to mono coding style
14118
14119 2006-02-10  Jackson Harper  <jackson@ximian.com>
14120
14121         * InternalWindowManager.cs: We don't need the set visibility to
14122         false hack anymore now that peter has written beautiful shutdown
14123         code.
14124
14125 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
14126
14127         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
14128           where already explicitly destroyed
14129
14130 2006-02-10  Jackson Harper  <jackson@ximian.com>
14131
14132         * MdiClient.cs: Handle the case where windows are too high or to
14133         the left and we need scrollbars.
14134
14135 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
14136
14137         * MimeIcon.cs: Added some icons
14138         * FileDialog.cs:
14139           - Fixed bug #77477
14140           - Got rid of the panel. All controls are now directly added to
14141             the dialog form
14142           - Changed to mono coding style
14143           - On Linux "My Computer" and "My Network" will now show some
14144             more usefull information. A new class, MasterMount, gathers
14145             this information from /proc/mount. Updated MWFFileView to make
14146             use of this information
14147           - Fixed a bug that caused FileDialog to crash when
14148             ".recently_used" file had a zero size
14149           - FilterIndex does now what it should
14150           - Some Refactoring
14151         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
14152             FileDialog changes
14153
14154 2006-02-09  Jackson Harper  <jackson@ximian.com>
14155
14156         * ComboBox.cs: Don't touch if null.
14157
14158 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
14159
14160         * Cursor.cs: 64bit safeness fix
14161         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
14162
14163 2006-02-09  Jackson Harper  <jackson@ximian.com>
14164
14165         * Form.cs: If a form is made into an MDI form update the styles so
14166         all the props can get set correctly.
14167         - Kill the mdi_container when we dont need it anymore.
14168         * InternalWindowManager.cs: Add missing NOT
14169
14170 2006-02-08  Jackson Harper  <jackson@ximian.com>
14171
14172         * InternalWindowManager.cs: Respek clipping when drawing MDi
14173         decorations.
14174
14175 2006-02-08  Jackson Harper  <jackson@ximian.com>
14176
14177         * Hwnd.cs: Add bits to track non client expose events.
14178         * XplatUIX11.cs: Track non client expose events on the hwnd. This
14179         gives us a proper invalid rect and will allow for some nice
14180         optimizations with NC client drawing
14181         - MDI windows are children windows, so move their style handling
14182         into the child window block.
14183         * InternalWindowManager.cs: Remove a state reset that was
14184         getting invoked at the wrong time. Fixes managed windows getting
14185         into a 'stuck' captured state.
14186
14187 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
14188
14189         * TextControl.cs (Document.ctor): Now initializing 
14190           selection_anchor. Fixes #77493
14191
14192 2006-02-07  Jackson Harper  <jackson@ximian.com>
14193
14194         * TrackBar.cs: The increment/decrements were backwards.
14195
14196 2006-02-07  Mike Kestner  <mkestner@novell.com>
14197
14198         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
14199         to the instance itself.
14200
14201 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
14202
14203         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
14204           on ulongs and pointers, the size differs between 32bit and 64bit
14205           systems. 
14206
14207 2006-02-07  Mike Kestner  <mkestner@novell.com>
14208
14209         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
14210         for 64 bit platforms to work around a metacity bug. 
14211
14212 2006-02-07  Jackson Harper  <jackson@ximian.com>
14213
14214         * TrackBar.cs: Process the input keys we need, and hookup to
14215         KeyDown instead of using WndProc, so we get key messages.
14216
14217 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
14218
14219         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
14220           machine we're on. 
14221         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
14222           we need to translate the XdndVersion atoms array before sending it
14223
14224 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
14225
14226         * XplatUIX11.cs: 
14227           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
14228             number of bits for the property, not the number of bytes. The
14229             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
14230             but would not crash since it specified 8 bits instead of 4 bits)
14231           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
14232             defined as XID -> long in the C headers)
14233           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
14234             references since those are now IntPtr to begin with
14235           - Switched all Atom.XXX 'int' casts to IntPtr casts
14236           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
14237           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
14238           - Added XChangeActivePointerGrab DllImport (for X11DnD)
14239         * X11Structs.cs:
14240           - Changed 'int' type for Atoms in XEvent structures to IntPtr
14241           - Changed atom in HoverStruct to be IntPtr
14242         * X11DnD.cs:
14243           - Removed local DllImports, switched code to use those from XplatUIX11
14244           - Removed/fixed casts related to the switch of Atom to be a IntPtr
14245
14246 2006-02-06  Mike Kestner  <mkestner@novell.com>
14247
14248         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
14249         method signatures in the import region.  There may still be some
14250         lingering struct marshaling issues, as I didn't drill down into those.
14251         Yet.
14252
14253 2006-02-06  Jackson Harper  <jackson@ximian.com>
14254
14255         * ComboBox.cs: Dont manually set the top_item, this is computed
14256         when the scrollbar position is set.
14257
14258 2006-02-06  Mike Kestner  <mkestner@novell.com>
14259
14260         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
14261         startup crashes on amd64.  There's other fixes needed.  All pinvoke
14262         usage of Atom needs to be mapped to IntPtr for example.  And there are
14263         likely other int/long issues to be addressed.
14264
14265 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
14266
14267         * FileDialog.cs: One more...
14268
14269 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
14270
14271         * FileDialog.cs: Next try
14272
14273 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
14274
14275         * FileDialog.cs: First part of fix for #77464
14276
14277 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
14278
14279         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
14280           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
14281           AcceptButton border drawing.
14282
14283 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
14284
14285         * Form.cs: Moved positioning of form after auto scaling is applied,
14286           otherwise it would possibly use wrong form size.
14287
14288 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
14289
14290         * Control.cs (RecreateHandle): No need to re-create any child
14291           controls, the child windows will get destroyed automatically by
14292           the windowing system or driver, and re-created when the handle
14293           is being accessed the first time. Fixes #77456
14294         * Form.cs: No longer setting the form to closing if the handle is 
14295           being recreated. This seems like the right thing to do, don't
14296           have a bug or testcase for this, though.
14297
14298 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
14299
14300         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
14301           controls to avoid unwanted side effects
14302
14303 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
14304
14305         * Control.cs: 
14306           - ScaleCore needs to scale the bounds, not the ClientSize of the 
14307             control. Fixes #77416.
14308           - DefaultSize is 0,0 for control
14309         * TextBoxBase.cs: 
14310           - DefaultSize is 100, 20
14311           - SetBoundsCore: Now enforcing the height, no matter if the provided
14312             height is more or less than the preferred one, as long as AutoSize
14313             is on
14314         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
14315
14316 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
14317
14318         * Control.cs:
14319           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
14320             call unless both performLayout is true *and* we have a pending
14321             layout change
14322           - ResumeLayout: MS does not completely nest Suspend and Resume,
14323             they bottom out at 0, fixed our code to match that.
14324           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
14325             SetBoundsCore, we were updating even when we shouldn't. This fixes
14326             swf-anchors mis-anchoring when resizing the app fast and lots.
14327           - UpdateDistances: Now only setting the left and top distance if 
14328             we have a parent and are not suspended, this is based on
14329             a suggestion by Don Edvaldson in bug #77355.
14330           - OnVisibleChanged: Fixed logic when to create the control. We may
14331             not create the control if we have no parent or if it's not visible;
14332             switched to using Visible property instead of is_visible field 
14333             since the property also considers parent states. This fixes a bug
14334             when starting Paint.Net
14335
14336 2006-02-02  Jackson Harper  <jackson@ximian.com>
14337
14338         * Form.cs: If the forms handle hasn't been created yet don't call
14339         into xplatui to make it top most, just set the topmost flag on the
14340         form in CreateParams
14341         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
14342
14343 2006-02-01  Jackson Harper  <jackson@ximian.com>
14344
14345         * ScrollableControl.cs: Refactored the Recalculate method a
14346         little, this wasn't handling all the variants of bottom and right
14347         bars needed to be added and added/removed based on their
14348         counterparts being added/removed (which changes the drawable
14349         size). Also we special case client widths and heights of 0 and
14350         don't add the scrollbar for those.
14351
14352 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
14353
14354         * XplatUIX11.cs: 
14355           - Added method to get AbsoluteGeometry(); currently unused, but might
14356             be used in the future, if we try again to figure out toplevel
14357             coordinates with some more crappy window managers
14358           - Added FrameExtents() method to retrieve the WM set decoration size
14359           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
14360             to deal with at least KDE, FVWM and metacity (Fixes #77092)
14361         * Hwnd.cs: 
14362           - Added whacky_wm tracking var for metacity
14363           - Added logic to have default menu height if the actual menu height
14364             has not yet been calculated (part of fix for #77426)
14365         * Form.cs: Keep track whether client size has been set and re-set 
14366           it if a menu is added/removed afterwards (Fixes #77426)
14367
14368 2006-01-31  Jackson Harper  <jackson@ximian.com>
14369
14370         * Control.cs: When a new Site is set on the component attempt to
14371         pull the AmbientProperties from it.
14372
14373 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
14374
14375         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
14376           in the background of the owning form. Fixes #77332
14377
14378 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
14379
14380         * MimeIcon.cs: Fix for #77409
14381
14382 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
14383
14384         * XplatUIX11GTK.cs: Initial import
14385
14386 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
14387
14388         * FixedSizeTextBox: fixes class signature
14389
14390 2006-01-30  Jackson Harper  <jackson@ximian.com>
14391
14392         * FixedSizeTextBox.cs: New internal class that represents a
14393         textBox that will not be scaled.
14394         * TreeView.cs:
14395         * ComboBox.cs:
14396         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
14397         standard TextBox.
14398                 
14399 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
14400
14401         * XplatUIX11.cs: Retrieve default screen number instead of
14402           assuming 0. Attempted fix for #77318
14403
14404 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
14405
14406         * XplatUIWin32.cs: 
14407           - GetWindowPos: When a window is parented by FosterParent, use 
14408             the desktop instead of FosterParent as the base to get coordinates
14409           - CreateWindow: Don't make FosterParent the parent window for Popups
14410             if we don't want a taskbar entry, Popups automatically don't get one
14411         * Hwnd.cs: Need to call remove to actually remove the key from the
14412           hash table
14413
14414 2006-01-30  Mike Kestner  <mkestner@novell.com>
14415
14416         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
14417
14418 2006-01-30  Jackson Harper  <jackson@ximian.com>
14419
14420         * TreeView.cs:
14421         * TreeNode.cs: Raise events no matter how the treenode is
14422         checked. Patch by Don Edvalson.
14423
14424 2006-01-30  Jackson Harper  <jackson@ximian.com>
14425
14426         * TreeNode.cs: Signature fix.
14427
14428 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
14429
14430         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
14431
14432 2006-01-20  Mike Kestner  <mkestner@novell.com>
14433
14434         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
14435         event forwarding when menus are active.
14436         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
14437         Most of the patch is pdb's with a little rework.
14438
14439 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
14440
14441         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
14442           Removed GetMenuDC and ReleaseMenuDC methods; replaced
14443           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
14444         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
14445         * InternalWindowManager.cs: Added use of PaintEventStart/End to
14446           handling of WM_NCPAINT message, now passing the PaintEventArgs to
14447           the PaintWindowDecorations method
14448         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
14449         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
14450         * MenuAPI.cs: Made tracker window invisible
14451         * XplatUIWin32.cs:
14452           - Removed GetMenuDC and ReleaseMenuDC methods
14453           - Implemented the client=false path for PaintEventStart and
14454             PaintEventEnd
14455
14456 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
14457
14458         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
14459         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
14460           styles
14461         * Form.cs: 
14462           - MaximizeBox, MinimizeBox: Recreate the handle when setting
14463             the style
14464           - CreateParams: Reworked the styles to match MS look'n'feel,
14465             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
14466             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
14467
14468 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
14469
14470         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
14471           window is not mapped, since otherwise every form that's being 
14472           created is considered minimized, which is wrong.
14473         * Form.cs: Catching the exception and returning our internal value
14474           instead
14475
14476 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
14477
14478         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
14479           SetWindowMinMax() to have means to tell the driver about the minimum,
14480           maximum and maximized state window sizes. (Part of the fix for #76485)
14481         * Form.cs:
14482           - Implemented tracking of minimum and maximum window size, now calling
14483             new SetWindowMinMax() driver method to tell the driver (Part of the
14484             fix for #76485)
14485           - Finished handling of WM_GETMINMAXINFO method, now setting all values
14486             (Completes fix for #76485)
14487           - Calling new SetWindowMinMax driver method when the handle for a 
14488             form is created, to make sure the driver knows about it even if
14489             the values have been set before the window was created
14490           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
14491             to avoid messing up our anchoring calculations (partial fix
14492             for #77355)
14493         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
14494         * XplatUIX11.cs:
14495           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
14496           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
14497             (and presumably other freedesktop.org compliant WMs). Left the
14498             assumption unmapped=minimized, needed for SetVisible to work.
14499           - Now setting the window state when creating windows
14500           - Fixed SetVisible to consider/set the window state when mapping
14501             a Form. We cannot set the state before it's mapped, and we cannot
14502             use Form.WindowState once it's mapped (since it would ask the
14503             driver and get 'normal'. Therefore, we grab the state before
14504             mapping, map, and then set state.
14505           - Implmemented SetWindowMinMax method; Metacity does not seem to
14506             honor the ZoomHints, though.
14507         * XplatUIWin32.cs:
14508           - Removed MINMAXINFO (moved to XplatUIStructs)
14509           - Added SetWindowMinMax stub (on Win32 the only way to set that
14510             information is in response to the WM_GETMINMAXINFO message, which
14511             is handled in Form.cs)
14512           - Added logic to SetVisible to set the proper window state when a 
14513             form is made visible (fixes #75720)
14514
14515 2006-01-26  Jackson Harper  <jackson@ximian.com>
14516
14517         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
14518         same way we handle them with Invoke.
14519
14520 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
14521
14522         * Form.cs:
14523           - Added tracking of window state so CreateParams can return
14524             the appropriate style
14525           - Moved setting of WS_CAPTION style in CreateParams to allow
14526             styles without caption
14527         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
14528           control if the TextBox property is accessed. Fixes #77345
14529         * Control.cs:
14530           - get_Created: now uses is_disposed and is_created to determine
14531             return value (suggested by Jackson)
14532           - CreateHandle: No longer exits if the handle is being recreated
14533           - RecreateHandle: If the handle is not yet created call the 
14534             appropriate method to create either control or handle. If the
14535             control is already created CreateHandle will simply exit instead
14536             of just creating the handle
14537         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
14538           now SendMessage WM_DESTROY directly to the control when DestroyWindow
14539           is called.
14540         * XplatUIX11.cs: 
14541           - When DestroyWindow is called, instead of waiting for the 
14542             DestroyNotification from X11, we directly post it to the WndProc
14543             and immediately dispose the hwnd object.
14544             Same applies to DestroyChildWindows, and this obsoletes the
14545             expose_pending tracking. Contrary to Win32 behaviour we destroy our
14546             child windows before our own, to avoid X11 errors.
14547           - Removed the direct sending of WM_PAINT on UpdateWindow
14548         * XplatUIWin32.cs:
14549           - Reworked DoEvents and GetMessage to allow access to internal queue
14550             even when trying non-blocking access to the queue.  Fixes #77335. 
14551             Based on a patch suggestion by Don Edvalson. The new private
14552             GetMessage can now also be used as a backend for a PeekMessage
14553             frontend version.
14554         * XplatUI.cs: Improved debug output for CreateWindow
14555
14556 2006-01-25  Jackson Harper  <jackson@ximian.com>
14557
14558         * Help.cs: Allow param to be null. Patch by Don Edvalson.
14559
14560 2006-01-24  Jackson Harper  <jackson@ximian.com>
14561
14562         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
14563         when we have a MaxDropItems lower then the selected index.
14564
14565 2006-01-24  Jackson Harper  <jackson@ximian.com>
14566
14567         * Control.cs: Don't allow selection of non visible controls, allow
14568         selection of controls without parents.
14569
14570 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
14571
14572         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
14573         * DataGridDrawingLogic.cs: Add editing row only when is necessary
14574
14575 2006-01-23  Jackson Harper  <jackson@ximian.com>
14576
14577         * UpDownBase.cs: Make the textbox handle all the selection and
14578         tabbing. This fixes tabing to updown controls.
14579
14580 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
14581
14582         * TextBoxBase.cs: fixes exception thown the object was null
14583
14584 2006-01-23  Jackson Harper  <jackson@ximian.com>
14585
14586         * ButtonBase.cs: Just use the base CreateParams. They set
14587         visibility and enabled correctly.
14588         * ComboBox.cs:
14589         * TrackBar.cs:
14590         * MonthCalendar.cs: Lets let the base set as much of the
14591         createparams as possible so we don't have duplicate code all over
14592         the place.
14593
14594 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
14595
14596         * ThemeGtk.cs: Added TrackBar and some experimental code to
14597           get double buffering back
14598
14599 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
14600
14601         * DataGrid.cs: Allows row number set internally higher than the last
14602         when creating a new row. Restores the editing functionality.
14603
14604 2006-01-20  Mike Kestner  <mkestner@novell.com>
14605
14606         * MimeIcon.cs: delay Image creation until the icons are accessed
14607         instead of creating 190 scaled images on GnomeHandler startup.
14608
14609 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
14610
14611         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
14612           first call base before processing the event. Fixes #77279
14613
14614 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
14615
14616         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
14617           that the stride for the GDI bitmap would match the stride of
14618           a DIB or a Cursor.
14619
14620 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
14621
14622         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
14623
14624 2006-01-19  Jackson Harper  <jackson@ximian.com>
14625
14626         * ComboBox.cs: Hookup the text controls keydown event so we get
14627         those when the text control has the focus.
14628
14629 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
14630
14631         * Label.cs: Now using the base events instead of defining new ones;
14632           this allows us to just call the base properties without having to
14633           duplicate all base property logic 
14634
14635 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
14636
14637         * Label.cs: A label by default is not a tabstop (Fixes one of our
14638           failing nunit tests)
14639
14640 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
14641
14642         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
14643         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
14644
14645 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
14646
14647         * Cursor.cs: Reimplemented creating cursor bitmaps without using
14648           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
14649           This fixes #77218
14650         * XplatUIWin32.cs: 
14651           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
14652             constructor creates images that can't be saved. Part of the fix
14653             for #76103
14654           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
14655           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
14656             bug fix for handling window state in forms properly)
14657
14658 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
14659
14660         * ThemeGtk.cs: Simplify ScrollBar drawing
14661
14662 2006-01-18  Jackson Harper  <jackson@ximian.com>
14663
14664         * Splitter.cs: Set the default dock style for the splitter control
14665         in the constructor.
14666
14667 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
14668
14669         * ThemeGtk.cs: Corrected StateType and ShadowType for
14670           gtk_paint_box
14671
14672 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
14673
14674         * Control.cs: Make use of Theme.DoubleBufferingSupported
14675         * ThemeGtk.cs:
14676           - Added drawing for flat style buttons
14677           - Added ScrollBar drawing
14678
14679 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
14680
14681         * ThemeClearlooks.cs: Removed some unneeded code.
14682         * ThemeGtk.cs: First part of ThemeGtk enhancements.
14683
14684 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
14685
14686         * LinkLabel.cs: We need to update the hover drawing when
14687           leaving the control as well.
14688
14689 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
14690
14691         * DataGrid.cs: Clicking on non empty areas in the columns
14692            area was giving an exception
14693
14694 2006-01-17  Jackson Harper  <jackson@ximian.com>
14695
14696         * ThemeWin32Classic.cs:
14697         * ListView.cs: Do not draw/clip the headers when the header style
14698         is None.
14699
14700 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
14701
14702         * DataGrid.cs: Fixes 77260
14703         
14704 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
14705
14706         * DataGrid.cs: Clicking on a column on a empty grid was giving
14707           an exception
14708
14709 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
14710
14711         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
14712           or any keypress will crash the grid.
14713
14714 2006-01-17  Mike Kestner  <mkestner@novell.com>
14715
14716         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
14717         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
14718         invisible/previously-visible items.
14719         [Fixes #76909]
14720
14721 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
14722
14723         * ThemeClearlooks.cs:
14724         - Added CL_Draw_Button method; now other theme controls that are 
14725           not derived from button or do not have a button can draw buttons
14726           too
14727         - Updated ComboBox drawing
14728         - Beautified RadioButton drawing
14729         - Corrected drawing of bottom and left tabs
14730         - Beautified DateTimePicker and MonthCalendar
14731         - Added CPDrawButton and CPDrawRadioButton
14732
14733 2006-01-16  Jackson Harper  <jackson@ximian.com>
14734
14735         * ComboBox.cs: Set the initial value of the scrollbar to the
14736         current index. Reduce the numbers of refreshs and IndexOfs called.
14737
14738 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
14739
14740         * FileDialog.cs: When the file listview is focused hitting the
14741           backspace key moves the fileview to the parent directory
14742
14743 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
14744
14745         * Form.cs: 
14746           - Added RecreateHandle call when changing taskbar visibility to 
14747             trigger reparenting in Win32 driver (Fixes #75719)
14748           - If a window has minimize or maximize buttons, it cannot have
14749             a help button
14750         * XplatUIWin32.cs:
14751           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
14752             the toplevel form with FosterParent (A toolwindow not on the
14753             taskbar) (Fixes #75719)
14754           - Made FosterParent a toolwindow
14755
14756 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
14757
14758         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
14759
14760 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
14761
14762         * ToolTip.cs: If SetToolTip is called from a control and the mouse
14763           is currently over that control, make sure that tooltip_window.Text
14764           gets updated
14765
14766 2006-01-13  Mike Kestner  <mkestner@novell.com>
14767
14768         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
14769
14770 2006-01-13  Jackson Harper  <jackson@ximian.com>
14771
14772         * TreeView.cs: On MS GetNodeAt never actually factors in the X
14773         value passed.  Also redraw the selected node when we recieve
14774         focus, so tabbing between trees works correctly.
14775
14776 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
14777
14778         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
14779           ~/.gconf/%gconf-tree.xml, so use
14780           .gconf/desktop/gnome/interface/%gconf.xml
14781
14782 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
14783
14784         * TextControl.cs: Draw text in gray if control is disabled
14785
14786 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
14787
14788         * TreeView.cs: Draw the focus rectangle outside the highlight, to
14789           make sure it's always visible. Fixes #76680.
14790
14791 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
14792
14793         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
14794
14795 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
14796
14797         * PageSetupDialog.cs: Added.
14798         * PrintDialog.cs: Attributes.
14799         * PrintPreviewControl.cs: Updates.
14800         * PrintPreviewDialog.cs: Updates.
14801         
14802 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
14803
14804         * Control.cs: Undid my selection check fix, since it's not needed
14805         * TextBoxBase.cs:
14806           - Now considering the presence of hscroll/vscroll when sizing
14807             vscroll/hscroll respectively. Fixed bug #77077
14808           - Added Left/Up/Down/Right to IsInputKey list to prevent
14809             ContainerControl from stealing them. This fixes what I broke
14810             with my last checkin.
14811
14812 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
14813
14814         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
14815           I finally understand how the property can be set without a setter :-)
14816
14817 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
14818
14819         * Application.cs:
14820           - Switched RunLoop to use static Message.Create to create a 
14821             Message object
14822           - Added PreProcessMessage call in runloop for keyboard events; this
14823             is part of the fix for #77219, I overlooked this originally in the
14824             MSDN doc for PreProcessMessage
14825         * Control.cs:
14826           - Removed call to PreProcessMessage from handling of keyboard 
14827             messages; it's supposed to be done in the message pump
14828           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
14829             per MSDN documentation.
14830           - IsInputChar: All chars are input chars by default; removed the 
14831             parent calling chain, MS does not document that
14832           - PreProcessMessage: If IsInputChar is true, we want to return false
14833             to allow dispatching of the message
14834           - When selecting the next control, now also check that we're not
14835             selecting ourselves again and therefore return a false positive.
14836         * TextBoxBase.cs:
14837           - Tried to match return values for IsInputKey and ProcessDialogKey
14838             to what MS returns; moved processing of our special keys outside
14839             ProcessDialogKey since MS does not seem to return true on those.
14840           - Moved code that previously was in ProcessDialogKey into new private
14841             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
14842           - Reworked handling of WM_CHAR to not have to duplicate code from
14843             Control.cs anymore, instead we simply call down to base.
14844            
14845 2006-01-12  Jackson Harper  <jackson@ximian.com>
14846
14847         * ComboBox.cs: We always need to refresh the text area when
14848         EndUpdate is called. Fixes the combobox in the file dialog.
14849         * Control.cs: Don't create the creator_thread until the controls
14850         handle is created.  Also in InvokeRequired we check if the
14851         creator_thread is null. This gives the effect of InvokeRequired
14852         returning true if the controls handle is not created yet, and
14853         matches MS.
14854
14855 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
14856
14857         * XplatUI.cs:
14858           - Added StartLoop() driver method. This is used to allow drivers to
14859             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
14860             loop for a particular thread
14861           - Added EndLoop() driver method. This is called once the message
14862             pump for the thread is shut down
14863           - Added SupportsTransparency method to allow the driver to indicate
14864             opacity support for windows
14865         * Form.cs:
14866           - Removed TODO attribute, completed AllowTransparency property
14867           - Added documented logic to Opacity
14868         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
14869           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
14870           versions of CompatibleTextRendering
14871         * X11Structs.cs: Added opacity atom to our atom enumeration
14872         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
14873           of a form might be set before it's reparented by the WM, and we need
14874           the opacity value without calling up to Form)
14875         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
14876           SupportsTransparency() driver methods
14877         * Application.cs: Now calling StartLoop and EndLoop driver methods
14878         * XplatUIX11.cs:
14879           - Added opacity atom registration
14880           - Added StartLoop()/EndLoop() methods. They're empty right now but
14881             will need to get implemented when we switch to a per-thread queue
14882           - Implemented SupportsTransparency() method
14883           - Implemented SetWindowTransparency() method
14884           - Added support for setting the opacity value when a window is
14885             reparented (since the opacity needs to be set on the WM frame)
14886         * XplatUIOSX.cs, XplatUIWin32.cs:
14887           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
14888
14889 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
14890
14891         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
14892
14893 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
14894
14895         * FileDialog.cs: Added ToolTip for MWFFileView
14896         * MimeIcon.cs: Rewrote GnomeHandler.
14897           - Get currently used gnome icon theme from
14898             ($HOME)/.gconf/%gconf-tree.xml
14899           - Make use of inherited icon themes
14900           - Support SVG icon themes like Tango via librsvg
14901
14902 2006-01-12  Miguel de Icaza  <miguel@novell.com>
14903
14904         Revert's Jackson's revert which broke 2.0 builds.   Fix both
14905         builds. 
14906         
14907         * Application.cs: Move the use_compatible_text_rendering outside
14908         the NET_2_0 define.  If we ever need to use the
14909         use_compatible_text_rendering on the individual controls they will
14910         access the variable from the common shared code paths.
14911
14912 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
14913
14914         * XplatUI.cs:
14915           - Added more granular debug options
14916           - Added method to print both window text and id
14917           - Switched debug output to use new Window() debug method
14918           - Added IsEnabled() driver method
14919           - Added EnableWindow() driver method
14920         * Form.cs:
14921           - Removed end_modal; no longer needed, new loop handles termination
14922             via 'closing' variable
14923           - If form is modal, setting DialogResult will now initiate loop
14924             termination via 'closing' variable
14925           - Added support for is_enabled/WS_DISABLED to CreateParams
14926           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
14927             does all the work
14928           - Removed code that's now in RunLoop from ShowDialog()
14929           - Added various documented sanity checks to ShowDialog()
14930           - Added handling of WM_DESTROY message; we set 'closing' on getting
14931             the message to indicate the message pump to terminate
14932           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
14933             send by the Application.ExitThread method. (We send the message
14934             to destroy the window after all other events have been
14935             processed through the queue, instead of destroying the handle 
14936             directly)
14937           - Moved code from Close() method to WM_CLOSE handler; added logic
14938             to only send close-related events if the form is not displayed
14939             modal
14940         * Splitter.cs (..ctor): Fixed typo in resource name
14941         * Control.cs:
14942           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
14943             brush now
14944           - set_Cursor: Now only setting calling into XplatUI if the handle for
14945             the control is already created; this avoids implict handle creation
14946             or crashes if it's not created
14947           - set_Enabled: Now setting the enabled state via the new driver method
14948             instead of just tracking it
14949           - CreateParams: Added logic to set WS_DISABLED based on enabled state
14950           - CreateControl: Reordered event firing and method calls to more
14951             closely fire events in the order MS does. Now setting the
14952             enabled state in the driver when creating the control.
14953           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
14954             match MS order
14955         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
14956           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
14957         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
14958         * Hwnd.cs:
14959           - Added tracking of window enabled state (get_Enabled/set_Enabled)
14960           - Added EnabledHwnd property to easily allow a driver to find the
14961             handle of the first enabled window in the parent chain (this is
14962             used by drivers to pass up input events of disabled windows)
14963         * XplatUIDriver.cs: Added IsEnabled() method
14964         * Application.cs:
14965           - Removed crude and obsolete exiting tracking variable
14966           - Removed internal ModalRun(); replaced by RunLoop()
14967           - Implemented private CloseForms() method to allow closing all 
14968             windows owned by a particular (or all) threads
14969           - Exit() now properly closes all windows without forcing the message
14970             pump to quit
14971           - Removed obsolete InternalExit() method
14972           - Changed Run() methods to use new RunLoop() message pump
14973           - Implemented new RunLoop() method for both modal and non-modal forms
14974         * CommonDialog.cs:
14975           - get_CreateParams: Added setting of WS_DISABLED
14976           - Simplified ShowDialog(); now all the work is done in RunLoop(),
14977             invoked via Form.ShowDialog()
14978         * NativeWindow.cs: We don't remove the window from the collection when
14979           the handle is destroyed; there might still be messages for it in the
14980           queue (mainly the resulting WM_DESTROY); instead it will be removed
14981           when Control calls InvalidateHandle in the WM_DESTROY handler
14982         * XplatUIX11.cs:
14983           - CreateWindow: Added logic to handle the WS_DISABLED window style
14984           - EnableWindow: Implemented based on Hwnd.Enabled
14985           - GetMessage: Reset PostQuitState so the method can be called again
14986           - Implemented support for disabled windows (passing messages to the
14987             first enabled parent) in handling all input messages
14988           - Added optimizations for handling Expose events
14989           - Implemeted new driver method IsEnabled()
14990           - Now always resetting paint pending tracking vars when we start paint
14991           - Re-implemented UpdateWindow via just sending a WM_PAINT message
14992         * XplatUIOSX.cs: Added IsEnabled method stub
14993         * XplatUIWin32.cs: Implemented new IsEnabled() method
14994
14995 2006-01-11  Jackson Harper  <jackson@ximian.com>
14996
14997         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
14998         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
14999         variables a little.
15000         * ColorDialog.cs: Clear out the old form before adding the new
15001         panel.  
15002
15003 2006-01-11  Jackson Harper  <jackson@ximian.com>
15004
15005         * X11Dnd.cs: Make sure to add all the text formats when adding
15006         strings to the data object.
15007         * TreeNodeCollection.cs: When adding to a sorted tree we need to
15008         do some redrawing too.  Also change the UpdateNode to an
15009         UpdateBelow so the newly added node gets painted.
15010         
15011 2006-01-11  Miguel de Icaza  <miguel@novell.com>
15012
15013         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
15014         LinkLabel.cs, PropertyGrid.cs: Implement the
15015         UseCompatibleTextRendering property for 2.x
15016
15017         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
15018
15019 2006-01-11  Jackson Harper  <jackson@ximian.com>
15020
15021         * TreeView.cs: Use the property for setting the selected node so
15022         the correct events get raised.
15023         * TreeNode.cs: Update the tree when the fore/back colours of a
15024         node are set.
15025
15026 2006-01-10  Jackson Harper  <jackson@ximian.com>
15027
15028         * TreeView.cs: Allow setting SelectedNode to null.
15029
15030 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
15031
15032         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
15033
15034 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
15035
15036         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
15037
15038 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
15039
15040         * PrintDialog.cs: Added attributes and set default property values.
15041
15042 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
15043
15044         * PrintControllerWithStatusDialog.cs: 
15045         Added PrintControllerWithStatusDialog.
15046
15047 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
15048
15049         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
15050         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
15051
15052 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
15053
15054         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
15055
15056 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
15057
15058         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
15059         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
15060
15061 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
15062
15063         * MimeIcon.cs: Added internal class SVGUtil.
15064
15065 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
15066
15067         * FileDialog.cs: Don't crash if there are two files with the
15068           same name but different locations.
15069
15070 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
15071
15072         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
15073         dates across multiple month grids. Used to not highlight entire 
15074         month, but does now.
15075         
15076 2006-01-06  Jackson Harper  <jackson@ximian.com>
15077
15078         * MonthCalendar.cs: Removed DoEvents call to prevent a running
15079         message loop. Change timer intervals to numbers that seem more
15080         natural.
15081
15082 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
15083
15084         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
15085           object for location info since screen object is now implemented.
15086
15087 2006-01-05  Jackson Harper  <jackson@ximian.com>
15088
15089         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
15090         * AsyncMethodResult.cs: We no longer use a WeakReference for the
15091         AsyncMethodResult, this is because we ALWAYS want the
15092         ManualResetEvent to get set.
15093         * Control.cs: When disposing use an async invoke to call shutdown
15094         code, so that thigns don't block on the finalizer thread.  Also
15095         check if we even have a message loop before trying to send
15096         messages, if we don't then don't bother sending messages.
15097         - No more weak references for async methods
15098         * XplatUIDriver.cs: No more weak references for async methods.
15099
15100 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
15101
15102         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
15103           returns two FontFamily with the same name
15104
15105 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
15106
15107         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
15108           drawing disabled text. Instead using the ColorGrayText color
15109
15110 2006-01-04  Jackson Harper  <jackson@ximian.com>
15111
15112         * TreeNode.cs: redraw the node when its image index is changed.
15113
15114 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
15115
15116         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
15117           time I checked there are no others like it.
15118
15119 2006-01-04  Jackson Harper  <jackson@ximian.com>
15120
15121         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
15122         this gives the behavoir I was looking for.
15123         * Control.cs: Special case Invoking EventHandlers, this matches MS
15124         and fixes part of bug #76326.
15125
15126 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
15127
15128         * ThemeClearlooks.cs, FileDialog.cs:
15129           - Reflect the latest Theme class changes
15130           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
15131             with DateTime
15132             
15133 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
15134
15135         * Theme.cs: Cache UI resource images and resize them if needed
15136
15137 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
15138
15139         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
15140           is called. This fixes the crash in Nexxia when setting the font
15141           attributes in the chat. [However, RTF needs a look-over to make sure
15142           that all SelectionXXX methods handle the special case that selection
15143           is empty and therefore the change must be applied to all text starting
15144           at the cursor/selection start]
15145
15146 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
15147
15148         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
15149           XplatUIOSX.cs: Added SendMessage and PostMessage methods
15150         * X11Keyboard.cs: Switched to new way of calling PostMessage
15151
15152 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
15153
15154         * Theme.cs: Added theme interface for images to allow the theme to
15155           control what images are used for things like FileDialog, MessageBox
15156           icons, etc.
15157         * MessageBox.cs: Now uses the new Theme icon/image interfaces
15158
15159 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
15160
15161         * FileDialog.cs:
15162           - Removed some dead code
15163           - Opening a recently used file does work now
15164           - Small UI enhancements
15165           - Refactoring
15166
15167 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
15168
15169         * FileDialog.cs: Forgot too add __MonoCS__
15170
15171 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
15172
15173         * FileDialog.cs: We are able to read recently used files now let's
15174           go on and write them.
15175
15176 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
15177
15178         * FileDialog.cs: Breathe some life into "last open"/"recently used"
15179           button
15180         * MimeIcon.cs: Do a check for the top level media type also
15181
15182 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
15183
15184         * ThemeClearlooks.cs:
15185           - Added CPDrawStringDisabled
15186           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
15187             some chars if the text doesn't fit into text_rect
15188           - DrawListViewItem: If View = View.LargeIcon center the image;
15189             rewrote the drawing of ListViewItem.Text if View = 
15190             View.LargeIcon
15191
15192 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
15193
15194         * MimeIcon.cs: Use default KDE icon theme if there is no
15195           "48x48" directory for the current icon theme, fixes #77114
15196         * Mime.cs: Disable not working and actually not used code. 
15197         * ThemeWin32Classic.cs:
15198           - Replace "new SolidBrush" in GetControlBackBrush and
15199             GetControlForeBrush with ResPool.GetSolidBrush
15200           - Changed DrawListViewItem from private to protected virtual
15201         * FileDialog.cs:
15202           - Added form.MaximizeBox = true
15203           - Don't throw an exception if there is a broken symbolic link
15204
15205 2005-12-23  Jackson Harper  <jackson@ximian.com>
15206
15207         * TabControl.cs: Give the panels focus, keyboard navigation is
15208         fixed so this works correctly now.
15209         - We need these key events also.
15210         * ToolBar.cs: Remove some of the poor mans double buffering.
15211         
15212 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
15213
15214         * ComboBox.cs: The internal TextBox now returns the focus.
15215
15216 2005-12-23  Jackson Harper  <jackson@ximian.com>
15217
15218         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
15219
15220 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
15221
15222         * Control.cs: Removed debug code
15223         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
15224           implicit children
15225
15226 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
15227
15228         * Control.cs: When creating the control, update the Z-order after
15229           all it's children are created, too. (Fixes nexxia not showing
15230           picturebox bug)
15231
15232 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
15233
15234         * Control.cs: Do not update the anchoring distances if layout is
15235           suspended, instead do it once layout is resumed
15236
15237 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
15238
15239         * Control.cs: 
15240           - After many hours of debugging, for both Jackson and
15241             myself, it turns out that it helps to set the parent of a control
15242             if you want to actually see it onscreen. In the spirit of that
15243             discovery, we're now setting the parent of the control and
15244             it's children when the control's handle is created. This fix
15245             will make Lutz Roeder's Reflector run happily. 
15246           - now just creating the handle instead of the whole control when
15247             getting a graphics context for the control.
15248
15249 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
15250
15251         * ScrollableControl.cs: When calculating the canvas, don't consider
15252           the scrollbar widths. Instead, predict if horizontal scrollbar
15253           will affect canvas when deciding on vertical display and vice versa.
15254
15255 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
15256
15257         * RichTextBox.cs: Set default RTF font for documents that don't
15258           have a font table (Fixes #77076)
15259
15260 2005-12-22  Jackson Harper  <jackson@ximian.com>
15261
15262         * TextBoxBase.cs: It's difficult to do, but you can have an empty
15263         clipboard. This prevents a NullRef in that case.
15264         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
15265         clipboard. PRIMARY is for the currently selected text only. (We
15266         should implement PRIMARY at some point.
15267
15268 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
15269
15270         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
15271           a Unicode function with a structure that was defined in Ansi way.
15272           This fixes #76942.
15273
15274 2005-12-21  Jackson Harper  <jackson@ximian.com>
15275
15276         * StatusBar.cs: Statusbar handles its fore/back colours on it's
15277         on. Because thats how it rolls. (and this avoids it using ambient
15278         colours).
15279         * ThemeWin32Classic.cs: Use the proper back color for filling.
15280         * Menu.cs: Use the system menu bar color for drawing menu
15281         bars. Using the window back color will bring ambient colours into
15282         the picture.
15283
15284 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
15285
15286         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
15287           Bitmaps were created and not disposed.
15288
15289 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
15290
15291         * Control.cs (CreateControl): Don't do anything if the control is
15292           already created, otherwise we'd fire the OnCreated event more than
15293           once
15294
15295 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
15296
15297         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
15298           will always match. Instead return -1. Fixes #76464.
15299
15300 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
15301
15302         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
15303           neither the beginning nor the end of the line (Fixes bug #76479)
15304
15305 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
15306
15307         * Control.cs:
15308           - ControlNativeWindow.ControlFromHandle(): Now handling situation
15309             where handle is invalid
15310           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
15311             instead of slower linear search
15312         * NativeWindow.cs: Don't remove the window from the hashtable until
15313           after the driver has destroyed it (since the driver might use
15314           Control.FromHandle to lookup the control object
15315         * Hwnd.cs: Added DestroyPending property to track if a window is 
15316           already destroyed as far as the driver is concerned and only hasn't
15317           yet notified the control
15318         * XplatUIX11.cs:
15319           - Activate(): Check if the window is still valid before using the 
15320             handle
15321           - Implemented DestroyChildWindow() method to mark child windows as
15322             destroyed when a window is destroyed. This prevents situations 
15323             where we might call an X method based on queued events for a
15324             window that already has been destroyed but we haven't yet pulled
15325             the destroy method from the queue.
15326           - Added a call to the new DestroyChildWindow() method to the drivers
15327             DestroyWindow code. Also now marking the destroyed window itself
15328             as pending
15329
15330 2005-12-20  Jackson Harper  <jackson@ximian.com>
15331
15332         * StatusBar.cs:
15333         * StatusBarPanel.cs: Don't calculate panel sizes on draw
15334         anymore. Just do them when needed, also track the rects of panels
15335         so that we can optimize refreshing more in the future.
15336
15337 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
15338
15339         * ColorDialog.cs: Fixed focus drawing in small color controls
15340
15341 2005-12-19  Jackson Harper  <jackson@ximian.com>
15342
15343         * InternalWindowManager.cs:
15344         * MdiWindowManager.cs: Cleanup some coordinate system changes so
15345         moving windows works properly.
15346
15347 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
15348
15349         * Control.cs: 
15350           - Removed call to InitLayout() from SetBoundsCore(); doc says
15351             it's only called when a control is added to a container
15352           - Split InitLayout logic, moved to separate UpdateDistances() method
15353             since we need to perform those calculations more often than just
15354             when adding the control to a container. (Needed to fix #77022)
15355           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
15356           - Reduced the OnBindingContextChanged events count, don't send them
15357             unless the control is created, we still aren't totally matching
15358             MS, but I can't quite figure out some of their rules
15359
15360 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
15361
15362         * ThemeClearlooks.cs: Corrected distance between ProgressBar
15363           stripes
15364
15365 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
15366
15367         * ThemeClearlooks.cs:
15368           - Updated ProgressBar drawing
15369           - Corrected drawing of ScrollBars and scroll buttons
15370           - Some temporary fixes for minor pixel artefacts
15371
15372 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
15373
15374         * Control.cs:
15375           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
15376             cause events to be sent in the same order as MS does.
15377           - Added ChangeParent() method to trigger various OnXXXChanged events
15378             that need to be fired when a parent changes (This is a reworking
15379             of the patch from r54254, with the X11 errors fixed)
15380           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
15381             since on MS we get OnLayoutChanged events when calling Clear()
15382           - Changed Enabled property to consider parent state as well, if a
15383             parent is not enabled, the control will not be either
15384           - Changed Parent property to simply call Controls.Add() since that
15385             now does all the work required, this way we avoid code duplication
15386           - Threw in a few OnBindingsContextChanged calls to try and match
15387             when MS sends them. We seem to send a few too many, though.
15388           - Added call to CreateControl when adding the control to a parent.
15389             We were never calling CreateControl. Still needs some work, in
15390             some places we treat HandleCreated and ControlCreated as equal, 
15391             which is wrong
15392           - Removed obsolete commented out code from UpdateZOrder()
15393
15394 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
15395
15396         * ThemeClearlooks.cs: Updated TrackBar drawing.
15397
15398 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
15399
15400         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
15401
15402 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
15403
15404         * FileDialog.cs: Add the Help button and the open readonly
15405           checkbox only if needed
15406
15407 2005-12-16  Jackson Harper  <jackson@ximian.com>
15408
15409         * Control.cs: Make sure we have an active menu before trying to
15410         process commands on it. Prevents menu-less forms from crashing
15411         when Alt is pressed.
15412         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
15413         Dieter Bremes.
15414         * RichTextBox.cs: Expand statement to help out gmcs and fix the
15415         2.0 build.
15416
15417 2005-12-16  Jackson Harper  <jackson@ximian.com>
15418
15419         * InternalWindowManager.cs: Don't translate tool windows screen
15420         coordinates. This fixes windows 'bouncing' around when being moved.
15421
15422 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
15423
15424         * TextBoxBase.cs:
15425           - MaxLength now treats 2^31-1 equal to unlimited length (this is
15426             not quite MS compatible, MS uses that number only for single line
15427             and 2^32-1 for multi-line, but I figure it won't hurt keeping
15428             the limit at 2GB)
15429           - Now enforcing the MaxLength limit when entering characters
15430           - Added argument to internal Paste() method to track if it's called
15431             from programatically or via keyboard, since keyboard driven pastes
15432             need to enforce max-length
15433           - Added logic to Paste to only paste as many chars as MaxLength 
15434             allows
15435         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
15436         * TextControl.cs:
15437           - Added Length property to return number of characters in document
15438           - Added private CharCount property which only tracks actual chars
15439             in the document (no linefeeds) and fires event when CharCount
15440             changes
15441           - Added tracking of character count to all methods that alter it
15442           - Added LengthChanged event to allow applications to subscribe
15443             to any changes to the document
15444
15445 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
15446
15447         * TextBox.cs: 
15448           - Removed local password_char field (moved to TextBoxBase)
15449           - Now setting the document's password var when password is
15450             set
15451         * TextBoxBase.cs:
15452           - Added password_char field (needed here so MultiLine can
15453             access it)
15454           - Added logic to MultiLine property setter to set the document's
15455             variable when password display is allowed
15456           - Removed debug code and made some debug code conditional
15457         * TextControl.cs:
15458           - Added RecalculatePasswordLine() method to handle special password
15459             char only lines
15460           - Added PasswordChar property, also added related tracking vars
15461           - Draw() method now uses local text var for grabbing text to draw,
15462             this var is set to line.text unless we're doing password display,
15463             then it is set to the pre-generated all-password-chars line
15464           - Added calling RecalculatePasswordLine() method for password lines
15465
15466 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
15467
15468         * Hwnd.cs: 
15469           - Added Reparented property to allow tracking of Window Manager
15470             reparenting actions (which affect X/Y calculations of toplevel 
15471             windows)
15472           - Made ToString() print window handles in hex
15473         * XplatUIX11.cs:
15474           - AddConfigureNotify(): Now uses reparented state off Hwnd to
15475             determine if X/Y needs offsetting
15476           - AddConfigureNotify(): Fixed offset calculations
15477           - Now adds ReparentNotify messages into the queue
15478           - Now processes ReparentNotify messages and causes a 
15479             WM_WINDOWPOSCHANGED message to be sent upstream if a window
15480             is reparented (as most likely it's X/Y coordinates are changed
15481             due to that)
15482
15483 2005-12-14  Jackson Harper  <jackson@ximian.com>
15484
15485         * XplatUIX11.cs: Tool windows still need to respek focus.
15486
15487 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
15488
15489         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
15490           have a working release
15491
15492 2005-12-13  Jackson Harper  <jackson@ximian.com>
15493
15494         * Form.cs: Update styles after setting the border style regardless
15495         of whether or not the window is using a window manager.
15496
15497 2005-12-13  Jackson Harper  <jackson@ximian.com>
15498
15499         * Form.cs: We now hook into an internal window manager instead of just an
15500         MDI subsystem, this is so we can have properly behaving tool windows.
15501         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
15502         * InternalWindowManager.cs: New internal class that acts as a
15503         window manager for tool windows and as a base for mdi windows.
15504         * MdiWindowManager.cs: New class that acts as a window manager for
15505         mdi windows.
15506
15507 2005-12-12  Jackson Harper  <jackson@ximian.com>
15508
15509         * Control.cs: Updates so we match behavoir for for implicit
15510         controls. Fixes explosions in MDI.
15511
15512 2005-12-12  Jackson Harper  <jackson@ximian.com>
15513
15514         * Control.cs: Implement Invalidate (Region).
15515
15516 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
15517
15518         * Control.cs: 
15519           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
15520             the same events as MS does. MS fires events for each property 
15521             except, for unknown reasons, Cursor, when the control is reparented. 
15522             I can't seem to totally match add/remove since MS also fires some 
15523             VisibleChanged events, which makes no sense. Consolidated the
15524             parenting code into a separate method so it can be called from
15525             both Add and Remove. set_Parent no longer needs any special logic
15526             as it calls the parent's add method which implicitly fires
15527             all events
15528           - Removed some obsolete code and debug output
15529           - Enabled state is inherited from parents, if this is enabled
15530
15531 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
15532
15533         * Form.cs: Removed commented out code
15534
15535 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
15536
15537         * Control.cs:
15538           - Added internal version of Invoke, with additional argument 
15539             indicating if we're calling it from a Dispose() handler. That
15540             way we can avoid BeginInvoke throwing an exception if we're
15541             calling for an already destroyed window.
15542           - Added a dispose argument to BeginInvokeInternal, and made the
15543             check if a valid window handle chain exists conditional on
15544             it not being a dispose call
15545           - Removed code in DestroyHandle to destroy our children. Since we
15546             now handle the WM_DESTROY message we will catch all our children
15547             being destroyed.
15548           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
15549         * Form.cs:
15550           - Added a field to track the application context of the form.
15551           - No need to set closing variable as response to WM_CLOSE, instead
15552             we destroy the window. We also call PostQuitMessage if the form
15553             has an application context (which makes it the main app form,
15554             which, when closed terminates the app)
15555         * XplatUI.cs:
15556           - Dropped Exit() method, it's naming was confusing
15557           - Added PostQuitMessage() which causes GetMessage to return false
15558             once the message queue is empty
15559         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
15560           PostQuitMessage()
15561         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
15562           no longer a valid XplatUI method, but left it in since it's used
15563           internally. Added empty PostQuitMessage() method.
15564         * MenuAPI.cs: Replaced call to Exit() with call to
15565           PostQuitMessage, even though this is probably no longer needed.
15566         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
15567         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
15568         * Application.cs:
15569           - Replaced call to XplatUI.Exit() with PostQuitMessage()
15570           - Removed old debug code that would call XplatUI for exception
15571             display, enabled standard exception handling (Still not enabled
15572             though, until NativeWindow's ExternalExceptionHandler define
15573             is removed
15574         * NativeWindow.cs:
15575           - Added internal method to allow control to update NativeWindow
15576             after a window has been destroyed
15577           - Added handling of already destroyed windows when calling i
15578             DestroyWindow
15579           - Added removal of handle from list on ReleaseHandle
15580         * XplatUIX11.cs:
15581           - Dropped GetMessageResult var and related code
15582           - Added PostQuitState to field to track if PostQuitMessage has been
15583             called
15584           - Dropped Exit() method
15585           - Added PostQuitMessage() method
15586           - GetMessage now will return false if PostQuitState is set and no
15587             more messages are in the queue.
15588           - Expose handler will no longer generate WM_PAINT messages if we are
15589             in PostQuitState since it's very likely any windows have already
15590             been destroyed, and since Hwnd won't get updated until we have
15591             processed the DestroyNotify we'd be causing X errors.
15592         
15593 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
15594
15595         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
15596           Thanks to Mike for pointing out the err of my ways.
15597
15598 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
15599
15600         * Control.cs(PreProcessMessage): Moved menu handling back, but
15601           after all other key handling, to match MS (who handles Menu in
15602           DefWndProc)
15603         * Menu.cs (WndProc): Removed my brainfart
15604
15605 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
15606
15607         * Control.cs(PreProcessMessage): Removed special menu handling 
15608         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
15609
15610 2005-12-07  Mike Kestner  <mkestner@novell.com>
15611
15612         * Control.cs : special case SYSKEYUP so that we can adjust keynav
15613         state according in tracker.
15614         * Menu.cs : promote tracker field to base class and provide a tracker
15615         lookup capability.  Add/Remove shortcuts dynamically if the top menu
15616         has a tracker. Unparent items that are removed from the collection.
15617         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
15618         * Theme*.cs: add always_show_hotkeys field to support configurability
15619         of mnemonic display.  win32 doesn't show mnemonics until Alt is
15620         pressed.
15621
15622 2005-12-07  Jackson Harper  <jackson@ximian.com>
15623
15624         * MdiChildContext.cs: Use Control.ResetCursor.
15625         * Control.cs: ResetCursor needs to set the property so that the
15626         correct XplatUI call gets made.
15627
15628 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
15629
15630         * Control.cs: More fixes to make our key events match MS. We
15631           were not setting the modifier state on KeyData, and we were
15632           not generating any events when Alt was pressed with a key
15633           since handling of WM_SYSxxx was missing for the OnKey methods.
15634
15635 2005-12-07  Jackson Harper  <jackson@ximian.com>
15636
15637         * MdiChildContext.cs: reenable the sizing code.
15638         - When the mouse leaves a window reset its cursor.
15639
15640 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
15641
15642         * ThemeClearlooks.cs: Reflect latest Hwnd changes
15643
15644 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
15645
15646         * Hwnd.cs: Now using the theme 3d bordersize to calculate
15647           widths of Fixed3D borders
15648
15649 2005-12-07  Jackson Harper  <jackson@ximian.com>
15650
15651         * MdiClient.cs: Fix warnings. Earn Mike's love.
15652
15653 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
15654
15655         * ThemeClearlooks.cs:
15656           - Adjusted mouse over button color
15657           - Added first parts of CheckBox drawing
15658           - Added correct color for selected text background
15659           - Fixed ComboBox drawing
15660           - Added CPDrawBorder3D and CPDrawBorder
15661
15662 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
15663
15664         * XplatUIX11.cs: Added call to XBell for AudibleAlert
15665
15666 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
15667
15668         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
15669           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
15670           alert users via sound. We could add an enum arg with different
15671           types of alerts in the future
15672
15673 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
15674
15675         * Control.cs: Fix behaviour problems pointed out by Mike
15676
15677 2005-12-05  Mike Kestner  <mkestner@novell.com>
15678
15679         * StatusBarPanel.cs: add Invalidate method and hook it into all the
15680         prop setters.  Calls parent.Refresh for now, but could be maybe be
15681         optimized with an internal method on StatusBar at some point.
15682         [Fixes #76513]
15683
15684 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
15685
15686         * RichTextBox.cs: Implemented get_SelectionColor
15687
15688 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
15689
15690         * ThemeClearlooks.cs:
15691           - Removed dead code
15692           - Draw black button border only if button is Form.AcceptButton
15693           - Draw correct button color for pressed RadioButton if the mouse 
15694             has entered the button
15695           - Updated ProgressBar drawing!
15696           - Updated CPDrawSizeGrip drawing
15697           - Updated StatusBarPanel drawing
15698
15699 2005-12-05  Mike Kestner  <mkestner@novell.com>
15700
15701         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
15702         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
15703
15704 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
15705
15706         * ThemeClearlooks.cs: Initial check-in, activate with
15707           export MONO_THEME=clearlooks
15708         * ThemeEngine.cs: Added ThemeClearlooks
15709
15710 2005-12-03  Mike Kestner  <mkestner@novell.com>
15711
15712         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
15713         [Fixes #76897]
15714
15715 2005-12-02  Jackson Harper  <jackson@ximian.com>
15716
15717         * Form.cs: If the child form has no menu the default main menu is
15718         used as the active menu.
15719
15720 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
15721
15722         * ListBox.cs: Check if any items exist before trying to resolve 
15723           coordinates into items
15724
15725 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
15726
15727         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
15728           as the second color for the background hatch
15729
15730 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
15731
15732         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
15733         * RichTextBox.cs: FormatText position arguments are 1-based, now making
15734           sure that what we pass to FormatText is always 1-based. Fixes #76885
15735
15736 2005-11-29  Miguel de Icaza  <miguel@novell.com>
15737
15738         * NumericUpDown.cs (EndInit): When we are done initializing,
15739         reflect any updates on the UI.
15740
15741 2005-12-02  Jackson Harper  <jackson@ximian.com>
15742
15743         * ImplicitHScrollBar.cs:
15744         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
15745         their container controls.
15746         * TreeView.cs: Use the new implicit scrollbars.
15747
15748 2005-12-02  Jackson Harper  <jackson@ximian.com>
15749
15750         * TreeView.cs: Make top_node internal so the TreeNodeCollections
15751         can play with it.
15752         * TreeNodeCollection.cs: If we remove the topnode we need to
15753         update topnode to the next node in line.
15754         - When clearing nodes go through the same process as removing
15755         them, so they get depareneted and checked if they are top node.
15756
15757 2005-12-01  Jackson Harper  <jackson@ximian.com>
15758
15759         * TreeView.cs: When imagelists are used the image area is
15760         selectable as well as the text.
15761         - If there are no selected nodes select the first one.
15762         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
15763         so don't do it more then we need to.
15764
15765 2005-12-01  Jackson Harper  <jackson@ximian.com>
15766
15767         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
15768         that arrows can be scaled.
15769
15770 2005-12-01  Jackson Harper  <jackson@ximian.com>
15771
15772         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
15773         fail. Patch by Dieter Bremes
15774
15775 2005-11-30  Jackson Harper  <jackson@ximian.com>
15776
15777         * Form.cs: Property is 2.0 only
15778         * PrintDialog.cs: Signature fix.
15779
15780 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
15781
15782         * TextControl.cs: 
15783           - No longer artificially moves text 2 pixels down (now that we have
15784             borders this is no longer needed)
15785           - Added calcs for left, hanging and right indent
15786
15787 2005-11-23  Mike Kestner  <mkestner@novell.com>
15788
15789         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
15790
15791 2005-11-30  Jackson Harper  <jackson@ximian.com>
15792
15793         * MdiChildContext.cs: Set the cloned menus forms, as these don't
15794         get cloned as part of CloneMenu ().
15795         * Menu.cs: Make sure the parent of the items get set correctly
15796         when they are added.  And the owners are notified of the changes.
15797         * Form.cs: Create an ActiveMenu property, so that when MDI is used
15798         we can change the menu being displayed/handled by the form without
15799         changing the menu assosciated with the form.
15800         - Don't let Mdi children draw/handle menus.
15801         
15802 2005-11-30  Jackson Harper  <jackson@ximian.com>
15803
15804         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
15805         a MenuChanged event. Just to make the API a little more
15806         consistent.
15807         * MainMenu.cs:
15808         * MenuItem.cs: Use the new OnMenuChanged
15809         * MdiChildContext.cs: Handle menu merging.
15810         * Form.cs: Implement MergedMenu.
15811         
15812 2005-11-30  Jackson Harper  <jackson@ximian.com>
15813
15814         * Menu.cs: We were misusing Add. Add goes behind the specified
15815         index according to the docs, and does not replace the specified
15816         index. So I added an Insert method.
15817
15818 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
15819
15820         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
15821           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
15822           is for Jackson
15823         * RichTextBox.cs: Added calls to base for DnD events
15824
15825 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
15826
15827         * TextControl.cs:
15828           - Fixed drag-selection related crash; style fixes
15829           - Implemented undo class
15830             o Implemented method to capture document state for specified
15831               range in document tree
15832             o Implemented method to restore captured document state
15833             o Implemented cursor tracking
15834             o Implemented basic undo stack
15835           - Added undo cursor tracking to methods altering cursor location
15836           - Added undo tracking to selection deletion (still missing
15837             other text-altering hookups)
15838         * RichTextBox.cs:
15839           - Added SelectionLength property
15840           - Implemented CanPaste()
15841           - Implemented Paste()
15842           - Added missing protected methods
15843           - Fixed RTF->Document conversion; now uses font index 0 and color 
15844             index 0 as the default font for the parsed text
15845           - Fixed RTF<->Document font size translation
15846           - Fixed RTF generation, now properly handles cross-tag boundaries
15847             for single line selection
15848           - No longer always appends blank line to generated RTF
15849           - Removed TODOs
15850           - Added missing attributes
15851           - Hooked up undo-related methods
15852         * TextBoxBase.cs:
15853           - Implemented Copy()
15854           - Implemented Paste()
15855           - Implemented Cut()
15856           - Fixed caret mis-behaviour on backspace across line-boundaries
15857
15858 2005-11-29  Jackson Harper  <jackson@ximian.com>
15859
15860         * MdiClient.cs: Add a method for activating mdi children. Very
15861         basic right now. I imagine someday it might need more girth.
15862         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
15863         children windows names are added to the menu item.
15864         * ThemeWin32Classic.cs: Draw the arrow if the item is an
15865         mdilist. This happens regardless of whether or not there are any
15866         mdi windows to see in the list, and according to my tests happens
15867         before the items are even added. Also happens if there isn't even
15868         an mdi client to get windows from.
15869
15870 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
15871
15872         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
15873         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
15874
15875 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
15876
15877         * DataGridTableStyle.cs:
15878           - Create always the styles for the missing columns even if they are
15879             provided by the user (not default table style)
15880         * DataGrid.cs:
15881           - Fixes bug 76770
15882           - Fixes SetDataBinding (always re-attach source)
15883           - Fixes SetNewDataSource (only clear styles if they are not for 
15884             this source)
15885          -  Expands OnTableStylesCollectionChanged to handle style refresh 
15886             and remove properly
15887
15888 2005-11-29  Jackson Harper  <jackson@ximian.com>
15889
15890         * FileDialog.cs: Implement missing bits, remove some dead
15891         code.
15892         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
15893         creation of the panel so that the options set on the dialog are
15894         seen when the panel is created.
15895         * TreeView.cs: raise a click when items are clicked.
15896         
15897 2005-11-29  Jackson Harper  <jackson@ximian.com>
15898
15899         * MdiClient.cs: Pass some signature methods through to base.
15900
15901 2005-11-28  Jackson Harper  <jackson@ximian.com>
15902
15903         * ListView.cs: Raise the click event when items are clicked.
15904
15905 2005-11-28  Jackson Harper  <jackson@ximian.com>
15906
15907         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
15908         a nullref.
15909
15910 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
15911
15912         * ThemeNice.cs: - Removed 1 pixel bitmaps
15913           - Use SmoothingMode.AntiAlias where it makes sense
15914             (ScrollButton arrow for example)
15915           - Enhanced Button focus drawing
15916           - Fixed ComboBox drawing (no artefacts anymore, focus
15917             rectangle is back again, reduced size of ComboButton, etc.)
15918           - Fixed RadioButton focus drawing for Appearence.Button
15919           - Slight ScrollButton redesign
15920           - Some LinearGradientBrush size fixes
15921           - GroupBoxes have now rounded edges
15922           - Fixed StatusBar drawing
15923
15924 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
15925
15926         * ThemeNice.cs: - Remove dead code
15927           - use correct background colors for menus, etc.
15928           - Fake pixel drawing with 1 pixel bitmaps
15929
15930 2005-11-24  Jackson Harper  <jackson@ximian.com>
15931
15932         * MdiClient.cs: Size the scrollbars when resizing the window.
15933         - Resize the maximized windows when the client is resized
15934         * Form.cs: Make the child context available
15935         
15936 2005-11-23  Jackson Harper  <jackson@ximian.com>
15937
15938         * MdiChildContext.cs: Don't size windows if they are maximized.
15939
15940 2005-11-23  Mike Kestner  <mkestner@novell.com>
15941
15942         * ContextMenu.cs: use MenuTracker.
15943         * Control.cs: remove menu handle usage.
15944         * Form.cs: remove menu handle usage.
15945         * Hwnd.cs: remove menu handle usage.
15946         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
15947         motion and clicks to the new Tracker handlers.
15948         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
15949         and handle usage.
15950         * MenuAPI.cs: refactored to combine popup and menubar event handling.
15951         Killed the MENU and MENUITEM data types and associated collections
15952         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
15953         MenuTracker class that exposes the leftovers from the old MenuAPI
15954         static methods. Restructured Capture handling so that only one grab is
15955         done for the entire menu hierarchy instead of handing off grabs to
15956         submenus. Tracker now has an invisible control to Capture when active.
15957         * MenuItem.cs: add sizing accessors, kill Create
15958         and handle usage.
15959         * Theme.cs: remove menu handle and MENU(ITEM) usage.
15960         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
15961         MENU(ITEM). remove menu handle usage, use Menu directly.
15962         * XplatUIDriver.cs: remove menu handle usage.
15963         * XplatUIOSX.cs: remove menu handle usage.
15964         * XplatUIWin32.cs: remove menu handle usage.
15965         * XplatUIX11.cs: remove menu handle usage.
15966
15967 2005-11-22  Jackson Harper  <jackson@ximian.com>
15968
15969         * Hwnd.cs: Don't compute the menu size for
15970         DefaultClientRectangle.
15971         - Reenable menu sizes being computed for GetClienRectangle.
15972         * Form.cs: Remove comment of trechery
15973         
15974 2005-11-22  Jackson Harper  <jackson@ximian.com>
15975
15976         * Hwnd.cs: The adjustments for the menu bar are made when it is
15977         attached to the form.
15978
15979 2005-11-19  Jackson Harper  <jackson@ximian.com>
15980
15981         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
15982         (just like on windows).
15983
15984 2005-11-19  Jackson Harper  <jackson@ximian.com>
15985
15986         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
15987         use real buttons anymore because they are in non client area. The
15988         one TODO here is that I need to somehow invalidate a section of
15989         the non client area.
15990
15991 2005-11-18  Jackson Harper  <jackson@ximian.com>
15992
15993         * Control.cs: Put the enum check back in now that MDI doesnt have
15994         to use this to set border styles.
15995         * Form.cs: Only set mdi child windows borders if the handle has
15996         been created.
15997         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
15998         this directly on to the driver.
15999         - Get the move start position before adjusting for the titlebar
16000         height, this fixes the windows "skipping" when they are first
16001         moved.
16002
16003 2005-11-18  Jackson Harper  <jackson@ximian.com>
16004
16005         * XplatUIX11.cs: Just compute the mdi borders separately as they
16006         don't totally match up with normal form borders.
16007
16008 2005-11-18  Jackson Harper  <jackson@ximian.com>
16009
16010         * Control.cs: Set WS_ styles for borders, so that the driver does
16011         not have to retrieve the control instance to figure out what kind
16012         of borders it should have.
16013         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
16014         driver can know its an mdi child easily.
16015         * XplatUIX11.cs: Get the border styles and whether the window is
16016         MDI from the Styles and ExStyles params instead of having to get a
16017         control. This prevents a chicken and egg problem.       
16018
16019 2005-11-18  Jackson Harper  <jackson@ximian.com>
16020
16021         * MdiClient.cs: Fix typo so scrollbars show up correctly.
16022
16023 2005-11-18  Jackson Harper  <jackson@ximian.com>
16024
16025         * MdiClient.cs: Calculate when to add and remove scrollbars
16026         correctly.
16027         * MdiChildContext.cs: Adjust the y position to take the titlebar
16028         into account.
16029         - No height for FormBorderStyle.None
16030
16031 2005-11-18  Jackson Harper  <jackson@ximian.com>
16032
16033         * Control.cs: Allow non enum values to be used for
16034         InternalBorderStyle.  MDI does this to set a special border style.
16035         - New utility methods for converting points to/from client coords
16036         - Add the newly created control to the Controls collection before
16037         updating its style. This way UpdateStyle can walk the control
16038         heirarchy to find the control if needed.
16039         so I don't need to create a new Point object all the time.
16040         * Form.cs: Let MDI windows handle their border styles.
16041         - Set styles on MDI windows so the correct title style is derived.
16042         * MdiChildContext.cs: Move all the painting and window handling
16043         into the non client area.
16044         - Use correct sizing and put correct buttons on frames based on
16045         the FormBorderStyle.
16046         - Notify the mdi client about scrolling
16047         - Need to handle the buttons ourselves now, because they are all
16048         in non client areas and we can't add controls there.
16049         * MdiClient.cs: Halfway to scrolling, this implementation is
16050         somewhat broken though, we need to check to make sure other
16051         windows aren't causing scrolling before removing the bars. Also
16052         the bars need to be drawn on top, maybe I can switch implicit
16053         controls to be on top.
16054         * Hwnd.cs: caption_height and tool_caption_height are now
16055         properties of an hwnd, this way they can be set by the driver
16056         based on the type of window they are.  In X11 the window manager
16057         handles the decorations so caption_height is zero unless its an
16058         MDI window.
16059         - Add 3 pixel borders for MDI windows (0xFFFF).
16060         - Get rid of some code duplication, have DefaultClientRectanle
16061         just call GetClientRectangle.
16062         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
16063         Hwnd now.
16064         - Set border styles differently for mdi windows.
16065         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
16066         Hwnd now.
16067         
16068 2005-11-15  Mike Kestner  <mkestner@novell.com>
16069
16070         * Menu.cs: when adding an item to the collection, if item is already 
16071         parented, remove it from the parent.
16072
16073 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
16074
16075         * X11DesktopColors.cs: Added KDE support
16076
16077 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
16078
16079         * XplatUIWin32.cs: 
16080           - Clipboard methods now can translate Rtf format
16081           - No longer removes clipboard contents whenever a new format is added
16082             to allow placing multiple formats on the clipboard
16083         * Clipboard.cs: Clipboard now supports getting a IDataObject and
16084           will place all formats contained in it onto the clipboard. Also
16085           now cleans the clipboard before placing a new object onto it
16086         * RichTextBox.cs:
16087           - Implemented set_Rtf
16088           - Implemented set_SelectedRtf
16089           - Created InsertRTFFromStream() method to allow single code base
16090             for all properties and methods that insert RTF into document
16091           - Removed debug output
16092         * TextControl.cs:
16093           - Fixed Delete(int) to fix up line numbers
16094           - Fixed ReplaceSelection to combine start and end line
16095           - Fixed serious DeleteChars bug that would leave the document tree
16096             broken
16097           - Improved DumpTree with several logic checks to detect broken
16098             document trees
16099           - Removed debug lines
16100           - Fixed Caret.WordForward/WordBack moving code, now always also 
16101             updates caret.tag (fixes crash when word-selecting across tag
16102             boundaries via keyboard)
16103           - Added Insert() method for inserting multiline text into documents
16104           - Fixed DeleteChars() calculation errors that would cause a broken
16105             tag chain with multiple tag lines
16106           - DeleteChars() no longer crashes on multi-tag lines if not all tags
16107           - Split() no longer moves caret if split is at caret location
16108           - ReplaceSelection() now updates the cursor and re-displays it
16109           - ReplaceSelection() now uses new Insert() method to avoid code
16110             duplication
16111           - FormatText() can now handle formatting partial lines
16112         * TextBoxBase.cs:
16113           - Append now uses new TextControl.Insert() method (this avoids 
16114             duplicate code)
16115           - Implemented Ctrl-X (Cut) (
16116           - Implemented Ctrl-C (Copy)
16117           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
16118             regeneration when pasting text; roundtripping Copy&Paste within
16119             edit control still fails due to some calculation bugs in GenerateRTF)
16120           - The Delete key will now remove the current selection if it is visible
16121         * TextBox.cs: Removed debug lines
16122         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
16123           driver to be initialized and can't therefore be done via a static ctor)
16124
16125 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
16126
16127         * TextControl.cs: Added backend code for finding char arrays and strings
16128         * TextBoxBase.cs:
16129           - Added mouse wheel scroll support
16130           - Added support for VScroll and HScroll events
16131         * RichTextBox.cs:
16132           - Implemented all seven Find() variants
16133           - Implemented GetCharFromPosition()
16134           - Implemented GetCharIndexFromPosition()
16135           - Implemented GetLineFromIndex()
16136           - Implemented GetPositionFromCharIndex();
16137           - Implemented SaveFile for PlainText and UnicodeText
16138           - Fixed set_Font, now setting a new font applies that font to
16139             the whole document
16140           - Implemented generic Document to RTF converter
16141           - Implemented SaveFile for RichText format (still missing unicode
16142             conversion for non-ansi chars)
16143           - Implemented get_Rtf
16144           - Implemented get_SelectedRtf
16145
16146 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
16147
16148         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
16149           to allow any captures to be released before triggering OnClick. This
16150           way a click handler may capture the mouse without interference.
16151         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
16152           This way we send them even though X may not allow a grab (if the window
16153           isn't visible, for example)
16154
16155 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
16156
16157         * DataGridViewRowEventArgs.cs: DataGridView implementation
16158         * DataGridViewElement.cs: DataGridView implementation
16159         * DataGridViewComboBoxCell.cs: DataGridView implementation
16160         * DataGridViewDataErrorContexts.cs: DataGridView implementation
16161         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
16162         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
16163         * ImageLayout.cs: DataGridView implementation
16164         * DataGridViewComboBoxColumn.cs: DataGridView implementation
16165         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
16166         * DataGridViewSelectionMode.cs: DataGridView implementation
16167         * IDataGridViewEditingControl.cs: DataGridView implementation
16168         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
16169         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
16170         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
16171         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
16172         * DataGridViewColumnSortMode.cs: DataGridView implementation
16173         * DataGridView.cs: DataGridView implementation
16174         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
16175         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
16176         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
16177         * Padding.cs: DataGridView implementation
16178         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
16179         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
16180         * DataGridViewRowEventHandler.cs: DataGridView implementation
16181         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
16182         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
16183         * DataGridViewButtonCell.cs: DataGridView implementation
16184         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
16185         * DataGridViewEditMode.cs: DataGridView implementation
16186         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
16187         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
16188         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
16189         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
16190         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
16191         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
16192         * DataGridViewCellEventHandler.cs: DataGridView implementation
16193         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
16194         * DataGridViewCellStyleConverter.cs: DataGridView implementation
16195         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
16196         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
16197         * DataGridViewColumnEventArgs.cs: DataGridView implementation
16198         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
16199         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
16200         * QuestionEventArgs.cs: DataGridView implementation
16201         * IDataGridViewEditingCell.cs: DataGridView implementation
16202         * DataGridViewTriState.cs: DataGridView implementation
16203         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
16204         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
16205         * DataGridViewColumnCollection.cs: DataGridView implementation
16206         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
16207         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
16208         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
16209         * DataGridViewColumn.cs: DataGridView implementation
16210         * DataGridViewCellBorderStyle.cs: DataGridView implementation
16211         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
16212         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
16213         * DataGridViewRow.cs: DataGridView implementation
16214         * DataGridViewImageCellLayout.cs: DataGridView implementation
16215         * DataGridViewImageCell.cs: DataGridView implementation
16216         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
16217         * DataGridViewCheckBoxCell.cs: DataGridView implementation
16218         * DataGridViewHeaderCell.cs: DataGridView implementation
16219         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
16220         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
16221         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
16222         * DataGridViewTextBoxColumn.cs: DataGridView implementation
16223         * QuestionEventHandler.cs: DataGridView implementation
16224         * DataGridViewCellStyleScopes.cs: DataGridView implementation
16225         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
16226         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
16227         * DataGridViewCell.cs: DataGridView implementation
16228         * DataGridViewCellEventArgs.cs: DataGridView implementation
16229         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
16230         * DataGridViewCellStyle.cs: DataGridView implementation
16231         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
16232         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
16233         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
16234         * TextFormatFlags.cs: DataGridView implementation
16235         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
16236         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
16237         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
16238         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
16239         * DataGridViewButtonColumn.cs: DataGridView implementation
16240         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
16241         * HandledMouseEventArgs.cs: DataGridView implementation
16242         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
16243         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
16244         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
16245         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
16246         * DataGridViewRowCollection.cs: DataGridView implementation
16247         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
16248         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
16249         * DataGridViewHitTestType.cs: DataGridView implementation
16250         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
16251         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
16252         * DataGridViewColumnEventHandler.cs: DataGridView implementation
16253         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
16254         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
16255         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
16256         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
16257         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
16258         * DataGridViewContentAlignment.cs: DataGridView implementation
16259         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
16260         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
16261         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
16262         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
16263         * DataGridViewPaintParts.cs: DataGridView implementation
16264         * DataGridViewCellCollection.cs: DataGridView implementation
16265         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
16266         * DataGridViewImageColumn.cs: DataGridView implementation
16267         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
16268         * DataGridViewElementStates.cs: DataGridView implementation
16269         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
16270         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
16271         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
16272         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
16273         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
16274         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
16275         * DataGridViewRowHeaderCell.cs: DataGridView implementation
16276         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
16277         * DataGridViewTextBoxCell.cs: DataGridView implementation
16278         * DataGridViewBand.cs: DataGridView implementation
16279         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
16280         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
16281         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
16282         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
16283         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
16284         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
16285         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
16286         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
16287         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
16288         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
16289         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
16290
16291 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
16292
16293         * ThemeWin32Classic.cs: 
16294           - Draw the outside focus rectangle around buttons
16295           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
16296             doesn't use end caps for every dash of a line anymore. This
16297             workaround ignores the forecolor.
16298
16299 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
16300
16301         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
16302           endian safe.
16303
16304 2005-11-07  Jackson Harper  <jackson@ximian.com>
16305
16306         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
16307
16308 2005-11-07  Jackson Harper  <jackson@ximian.com>
16309
16310         * ScrollableControl.cs: Calculate the maximum and change vars
16311         (more) correctly so that scrollbars appear as a sensible size.
16312
16313 2005-11-04  Jackson Harper  <jackson@ximian.com>
16314
16315         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
16316         collection.
16317         * TreeView.cs: When the tree is sorted null out the top_node so
16318         that it is recalculated.
16319         - Use dotted lines instead of dashed lines to match MS better.
16320
16321 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
16322
16323         * ListView.cs: 
16324           - Implements key search for items. Useful when browsing files with FileDialog
16325           - When changing view mode or when clear the items reset scrollbar positions
16326
16327 2005-11-04  Jackson Harper  <jackson@ximian.com>
16328
16329         * CurrencyManager.cs: Implement the MetaDataChanged event, the
16330         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
16331         as to what the method may do as there is no real way of creating a
16332         derived CurrencyManager and calling the method. 
16333
16334 2005-11-03  Jackson Harper  <jackson@ximian.com>
16335
16336         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
16337         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
16338         method which seems to just be used internally to refresh the tabs.
16339
16340 2005-11-03  Jackson Harper  <jackson@ximian.com>
16341
16342         * TabControl.cs: Implement the remove method. Fix some broken
16343         comments.
16344
16345 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
16346
16347         * DateTimePicker.cs:
16348           - Added missing DateTimePickerAccessibleObject class
16349           - Added missing events
16350           - Added OnFontChanged method
16351         * Form.cs: Added missing attributes
16352         * TreeView.cs: Added missing attributes
16353
16354 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
16355
16356         * GridItemCollection.cs: Fix signatures
16357
16358 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
16359
16360         * XplatUI.cs: Updated build rev/date
16361         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
16362           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
16363         * Application.cs: Trigger context-specific ExitThread events
16364
16365 2005-11-03  Jackson Harper  <jackson@ximian.com>
16366
16367         * Menu.cs:
16368         * MainMenu.cs:
16369         * GridTableStylesCollection.cs:
16370         * Timer.cs:
16371         * TabPage.cs:
16372         * HelpProvider.cs:
16373         * StatusBar.cs:
16374         * MonthCalendar.cs: Signature fixes
16375
16376 2005-11-03  Jackson Harper  <jackson@ximian.com>
16377
16378         * TreeNodeCollection.cs: Remove should not be virtual.
16379         * TreeView.cs: Implement the last of the missing methods.
16380
16381 2005-11-03  Jackson Harper  <jackson@ximian.com>
16382
16383         * TreeNodeConverter.cs: Implement to get off my class-status back.
16384
16385 2005-11-03  Jackson Harper  <jackson@ximian.com>
16386
16387         * TreeView.cs: Hookup the bits for drag and drop.
16388         * TreeNode.cs: Don't cache the tree_view or index anymore, now
16389         that nodes can be moved from tree to tree easily this just causes
16390         all sorts of problems.
16391         * TreeNodeCollection: Don't need to give treenodes an index and
16392         treeview anymore when they are added, these are computed on the
16393         fly. Also make sure to remove a node before its added.
16394
16395 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
16396
16397         * TextControl.cs:
16398           - Added CaretSelection enum
16399           - Added comparison methods to Marker struct, makes selection code
16400             more readable
16401           - Added SelectionStart and SelectionEnd as 'moveable' location for
16402             the CaretDirection enum and handler
16403           - Added selection_prev variable to track optimized invalidation for
16404             word and line selection
16405           - Added SelectionVisible property (returns true if there is a valid 
16406             selection)
16407           - Switched CaretHasFocus to only display the caret if there is no
16408             visible selection
16409           - Avoiding StringBuilder.ToString to retrieve a single char, instead
16410             using the direct character index; should be much faster
16411           - Added various conditional debug statements
16412           - Fixed invalidation calculation for selection ranges
16413           - Added ExpandSelection() method to support word and line selection
16414           - Switched SetSelectionToCaret to use new Marker compare overloads
16415           - Added central IsWordSeparator() method to determine word 
16416             separators/whitespace and FindWordSeparator() to streamline common
16417             usage of IsWordSeparator()
16418         * TextBoxBase.cs:
16419           - Removed unneeded grabbed variable, it was just mirroring
16420             Control.Capture
16421           - No longer firing OnTextChanged event when Text setter is called,
16422             since the base will fire the event for us
16423           - Added handling of Ctrl-Up/Down selection
16424           - Added handling of Shift-Cursorkey selection
16425           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
16426             words
16427           - Added handling of Shift and Ctrl-Shift-Home/End selection
16428           - Removed some debug output
16429           - Added handling for single/double/tripple-click to place caret/
16430             select word/select line respectively (Fixes bug #76031)
16431           - Added support for drag expansion of word/line selection
16432         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
16433           current selection
16434
16435 2005-11-02  Jackson Harper  <jackson@ximian.com>
16436
16437         * X11Dnd.cs: If the drag is going to and from a MWF window just
16438         copy the data instead of sending it out through the X Selection
16439         mechanism.
16440
16441 2005-11-02  Jackson Harper  <jackson@ximian.com>
16442
16443         * X11Dnd.cs:
16444         * XplatUIX11.cs: When in a drag we don't want motion notify
16445         messages to get passed on to the other controls. This prevents
16446         mouse move messages from showing up in the drag source.
16447
16448 2005-11-02  Jackson Harper  <jackson@ximian.com>
16449
16450         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
16451         the correct button is release to end a drag.
16452         * XplatUIX11.cs: Make the button state internal so the drag system
16453         can access it.  Dragging needs to know about all button releases,
16454         not just left button.
16455
16456 2005-11-02  Miguel de Icaza  <miguel@novell.com>
16457
16458         * Form.cs (Icon): If the icon is null, reset the icon to the
16459         default value. 
16460
16461         * Cursor.cs: When writing the AND-mask bitmap do not include the
16462         number of colors, but hardcode those to two (black and white),
16463         fixes the loading of color cursors (Paint Dot Net).
16464
16465         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
16466         turn off autoscaling.
16467
16468         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
16469
16470 2005-11-02  Jackson Harper  <jackson@ximian.com>
16471
16472         * X11Dnd.cs: Make sure to send a status message if the pointer
16473         enters a control that can not accept a drop, otherwise the cursor
16474         isn't updated correctly. Also tried to compress the lines of code
16475         a bit.
16476
16477 2005-11-02  Jackson Harper  <jackson@ximian.com>
16478
16479         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
16480         set actions correctly.  This isn't perfect as XDND and win32 have
16481         some differences on how you allow actions. I'll clear this up by
16482         adding a path for drag from MWF to MWF windows.
16483         * XplatUIX11.cs: Hook into the dnd system.
16484
16485 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
16486
16487         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
16488         previously shown but they are no longer need it. Very obvious when 
16489         browsing files with FileDialog.
16490
16491 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
16492
16493         * Control.cs: We always need to call OnPaintBackground. We pretty much
16494           ignore AllPaintingInWmPaint and always do the painting there, whether 
16495           it's set or not, since we always ignore the WM_ERASEBKGND message 
16496           (which we don't generate on X11). This fixes #76616.
16497         * Panel.cs: Removed unneeded background painting. This happens properly
16498           in Control.cs already
16499
16500 2005-10-31  Mike Kestner  <mkestner@novell.com>
16501
16502         * Menu.cs: Add items to collection before setting their index.
16503         * MenuItem.cs : add range checking with ArgumentException like MS.
16504         [Fixes #76510]
16505
16506 2005-10-31  Jackson Harper  <jackson@ximian.com>
16507
16508         * ListBox.cs: Invalidate if the area is visible at all not just
16509         contained in the visible rect. Fixes unselection of semi visible
16510         items.
16511
16512 2005-10-31  Jackson Harper  <jackson@ximian.com>
16513
16514         * Control.cs: Consistently name the dnd methods. Make them
16515         internal so we can override them to match some MS behavoir
16516         internally.
16517         * Win32DnD.cs: Use the new consistent names.
16518
16519 2005-10-31  Jackson Harper  <jackson@ximian.com>
16520
16521         * TreeView.cs: Don't draw the selected node when we lose focus.
16522
16523 2005-10-31  Jackson Harper  <jackson@ximian.com>
16524
16525         * X11Dnd.cs: We still need to reset the state even though a full
16526         reset isn't being done, otherwise status's still get sent all over
16527         the place.
16528
16529 2005-10-31  Jackson Harper  <jackson@ximian.com>
16530
16531         * Control.cs: Make the dnd_aware flag internal so the dnd
16532         subsystem can check it. Catch exceptions thrown in dnd handlers to
16533         match MS behavoir.
16534         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
16535         * X11Dnd.cs: Handle null data in the converters. Set the XDND
16536         version when sending a XdndEnter. Use the control/hwnd dnd_aware
16537         flags to reduce the number of dnd enters/status's sent.
16538
16539 2005-10-31  Jackson Harper  <jackson@ximian.com>
16540
16541         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
16542
16543 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
16544
16545         * PictureBox.cs: Fixes 76512
16546
16547 2005-10-28  Jackson Harper  <jackson@ximian.com>
16548
16549         * X11Dnd.cs: Early implementation to support winforms being a drag
16550         source for data on X11. Also restructured the converters so they
16551         can go both ways now.
16552         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
16553         
16554 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
16555
16556         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
16557           clipboard requests
16558
16559 2005-10-27  Jackson Harper  <jackson@ximian.com>
16560
16561         * TreeNode.cs: Implement serialization so my DnD examples will work.
16562
16563 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
16564
16565         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
16566           TreeView.cs: Don't dispose objects that are not owned.
16567           
16568 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
16569
16570         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
16571           should retrieve the current cursor and report that, but XplatUI
16572           doesn't (yet) have an interface for that (and I'm not sure I even
16573           can, on X11)
16574         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
16575           until any message loop processing is done (and the WM_SETCURSOR
16576           replaces the cursor to the proper one)
16577         * XplatUIX11.cs: 
16578           - Fixed override behaviour, we can't set the cursor globally on X11, 
16579             just for our windows.
16580           - Invalidating the System.Drawing X11 display handle when we are
16581             shutting down
16582         * Control.cs: Fix to make csc happy
16583
16584 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
16585
16586         * TextBoxBase.cs: 
16587           - get_Text: Add last line (without trailing newline) to returned
16588             value (Fixes 76212)
16589           - get_TextLength: Count last line in returned length
16590           - ToString: Call Text property instead of duplicating code
16591
16592 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
16593
16594         * ImageList.cs: Dispose ImageAttributes objects.
16595
16596 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
16597
16598         * ImageList.cs: Use attribute constructors with less arguments where
16599           possible.
16600
16601 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
16602
16603         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
16604           Use typeof instead of strings when assembly is referenced. Added
16605           some more comments.
16606
16607 2005-10-21  Jackson Harper  <jackson@ximian.com>
16608
16609         * ListView.cs: Raise a double click event. Also tried to somewhat
16610         fix when the selectedindexchanged event is raised. Its still
16611         broken though.
16612
16613 2005-10-21  Jackson Harper  <jackson@ximian.com>
16614
16615         * TreeView.cs: New method to invalidate the plus minus area of a
16616         node without invalidating the whole node (maybe this can be used
16617         in some more places).
16618         * TreeNodeCollection.cs: When adding to an empty node we need to
16619         invalidate its plus minus area so the little block shows up.
16620         
16621 2005-10-21  Jackson Harper  <jackson@ximian.com>
16622
16623         * TreeView.cs: Make sure that when we invalidate a node the bounds
16624         are big enough to cover the selected box and the focus
16625         rectangle. Use a different colour for the lines connecting nodes
16626         so they show up with all themes.
16627
16628 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
16629
16630         * NativeWindow.cs: Don't call anything that could call into the driver,
16631           we might be on a different thread.
16632
16633 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
16634
16635         * Control.cs(Dispose): Since Dispose might run on a different thread,
16636           make sure that we call methods that could call into the driver via
16637           invoke, to avoid thread issues
16638
16639 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
16640
16641         * XplatUI.cs: Removed finalizer
16642         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
16643           not allowing to be called on the finalizer thread.
16644
16645 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
16646
16647         * ImageList.cs:
16648           - Reverted r51889 and r51891.
16649           - Added ImageListItem class that stores unmodified image items and image
16650             properties required to create list images until handle is created.
16651           - Added AddItem and moved image creation logic to AddItemInternal.
16652           - Added CreateHandle method that creates images based on unmodified items.
16653           - Added DestroyHandle that changes state to store unmodified items.
16654           - Add and AddStrip methods no more create handle.
16655           - ReduceColorDepth has no return value.
16656           - Dispose destroys handle.
16657           - Modified other methods to reflect the above changes.
16658           - Implemented key support.
16659           - Added profile 2.0 members and attributes.
16660           - Added private Reset and ShouldSerialize methods that provide the same
16661             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
16662             them as they are private.
16663           - Added some more comments about implementation details.
16664
16665 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
16666
16667         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
16668
16669 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
16670
16671         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
16672
16673 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
16674
16675         * DataGridDrawingLogic.cs: Fixes column hit calcultation
16676         * DataGridColumnStyle.cs: Remove debug message
16677
16678 2005-10-20  Jackson Harper  <jackson@ximian.com>
16679
16680         * TreeView.cs: We can always get input keys regardless of whether
16681         or not editing is enabled. They are used for navigation.
16682
16683 2005-10-20  Jackson Harper  <jackson@ximian.com>
16684
16685         * TreeNode.cs: Use the viewport rect for determining if a node
16686         needs to be moved for visibility. Don't use Begin/End edit. This
16687         calls a full refresh when its done.
16688         * TreeView.cs: New SetBottom works correctly.  Make the viewport
16689         rect property internal so the treenodes can see it. When clicking
16690         on a node we need to ensure that its visible because it might just
16691         be partly visible when clicked.
16692
16693 2005-10-20  Jackson Harper  <jackson@ximian.com>
16694
16695         * TreeNodeCollection.cs: Remove debug code.
16696
16697 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
16698
16699         * Datagrid.cs: Implements column sorting in Datagrid
16700         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
16701
16702 2005-10-20  Jackson Harper  <jackson@ximian.com>
16703
16704         * TreeNodeCollection.cs: Remove items properly. Update the correct
16705         area after removing them.
16706
16707 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
16708
16709         * Datagrid.cs: Should not call base.OnPaintBackground
16710
16711 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
16712
16713         * XplatUIX11.cs (GetMessage):
16714           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
16715             window instead of client window
16716           - Now properly calculates NC_xBUTTONUP message coordinates
16717           - ScreenToMenu now properly calculates it's coordinates of whole 
16718             window, since menus are in the whole window, not in the client
16719             window
16720           - Added WholeToScreen coordinate translation method
16721
16722 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
16723
16724         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
16725           want to return a message, loop back to the beginning of the function
16726           and grab the next real message to process instead.
16727
16728 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
16729
16730         * Splitter.cs: Properly set limits if no filler control is used
16731
16732 2005-10-19  Jackson Harper  <jackson@ximian.com>
16733
16734         * ColorDialog.cs: Don't show the help button if it is not enabled
16735         instead of disabling it (this is what MS does). Don't create the
16736         panel until the dialog is run, otherwise the vars (such as
16737         ShowHelp) are not set yet.
16738
16739 2005-10-19  Jackson Harper  <jackson@ximian.com>
16740
16741         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
16742         are reduced when adding nodes.
16743         * TreeNode.cs:
16744         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
16745         tree.
16746         
16747 2005-10-19  Jackson Harper  <jackson@ximian.com>
16748
16749         * FolderBrowserDialog.cs: End editing our treeview so the window
16750         actually gets refreshed.
16751
16752 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
16753
16754         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
16755           Obsoleted handling of WM_ERASEBKGND, now always draws our background
16756           inside of WM_PAINT
16757
16758 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
16759
16760         * MenuAPI.cs: Returns after Hidding window
16761         * XplatUIX11.cs: Added TODO found while debugging menu issues
16762
16763 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
16764
16765         * XplatUIX11.cs: Do not re-map the whole window when it's size
16766           becomes non-zero unless it's supposed to be actually visible
16767
16768 2005-10-18  Jackson Harper  <jackson@ximian.com>
16769
16770         * TreeView.cs: We don't need to keep a count anymore.
16771         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
16772         use the Grow method.
16773
16774 2005-10-18  Jackson Harper  <jackson@ximian.com>
16775
16776         * TreeNodeCollection.cs: Insert is not supported on arrays, so
16777         implement it manually here.
16778
16779 2005-10-18  Jackson Harper  <jackson@ximian.com>
16780
16781         * ImageList.cs: Dont kill the list when the colour depth is
16782         changed, just change the colour depth of all the images.
16783         - Same goes for setting the image size. Just resize them all
16784         instead of killing the list softly.
16785
16786 2005-10-18  Jackson Harper  <jackson@ximian.com>
16787
16788         * Control.cs: Don't invalidate empty rectangles.
16789
16790 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
16791
16792         * ListViewItem.cs:
16793           - Adds checked item to the Checked/Item lists (where empty before)
16794           - Do not add items to the Selected lists if they are already present
16795         * ListView.cs:
16796           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
16797           - When deleting items make sure that we delete them for the Selected
16798           and Checked list also.
16799
16800 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
16801
16802         * Label.cs: Dispose objects no longer used
16803         * ThemeWin32Classic.cs: Dispose objects no longer used
16804
16805 2005-10-18  Jackson Harper  <jackson@ximian.com>
16806
16807         * TabControl.cs: Don't refresh the whole control when the tabs are
16808         scrolled, we just need to refresh the tab area.
16809
16810 2005-10-17  Jackson Harper  <jackson@ximian.com>
16811
16812         * XplatUIX11.cs: Compress code a little bit. Only calculate the
16813         after handle when we need it.
16814
16815 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
16816
16817         * Control.cs: When the parent size changes, recalculate anchor 
16818           positions. Partial fix for #76462
16819
16820 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
16821
16822         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
16823           drawn. Fixes #76462
16824
16825 2005-10-17  Jackson Harper  <jackson@ximian.com>
16826
16827         * MonthCalendar.cs: Don't create the numeric up down until our
16828         handle is created. Otherwise our handle is created in the
16829         constructor and we don't know if we are a WS_CHILD or WS_POPUP
16830         yet.
16831
16832 2005-10-17  Jackson Harper  <jackson@ximian.com>
16833
16834         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
16835         correctly.
16836
16837 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
16838         * TreeNode.cs : small logical fix (was using local var instead of field)
16839         
16840 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
16841
16842         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
16843
16844 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
16845
16846         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
16847
16848 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
16849
16850         * Control.cs: 
16851           - Re-implemented anchoring code. My first version was really broken.
16852             This fixes bug #76033. Unlike the previous implementation we will
16853             no longer have round errors since all numbers are calculated from
16854             scratch every time. Removed various anchor-related obsolete vars.
16855           - InitLayout no longer causes layout event firing and layout to be 
16856             performed
16857
16858 2005-10-16  Jackson Harper  <jackson@ximian.com>
16859
16860         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
16861         which was broken).
16862
16863 2005-10-16  Jackson Harper  <jackson@ximian.com>
16864
16865         * TabControl.cs: Remove debug code.
16866
16867 2005-10-16  Jackson Harper  <jackson@ximian.com>
16868
16869         * XEventQueue.cs: Increase the default queue size (very simple
16870         apps needed to grow the queue).
16871         * Hwnd.cs: No finalizer so we don't need to suppress
16872         finalization. Compute the invalid area manually so a new rectangle
16873         does not newto be created.
16874         * ScrollableControl.cs: Don't set any params (otherwise visibility
16875         isn't set correctly).
16876         * MdiChildContext.cs: New constructor takes the mdi parent so it
16877         doesn't have to be computed and avoids a crash on windows. Draw
16878         the window icon properly, and allow the text to be seen.
16879         * Form.cs: Use new MdiChildContext constructor. Make sure the
16880         child context isn't null in wndproc.
16881         * TabControl.cs: Don't set focus, this is muddling keyboard
16882         behavoir. Expand the tab rows when a window size increase will
16883         allow extra tabs to be seen. Don't allow tabs smaller than the
16884         width of a window to be scrolled out of view.
16885         * TreeNode.cs:
16886         * TreeView.cs: Use measure string to calculate a nodes width, the
16887         width is cached and only updated when the text or the font is
16888         changed. Don't check for expand/collapse clicks on the first level
16889         nodes if root lines are disabled.
16890         
16891 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
16892
16893         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
16894
16895 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
16896
16897         * DataGridBoolColumn.cs: fixes warning
16898
16899 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
16900
16901         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
16902         to match more to match more precisely the MS Net behavior
16903
16904 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
16905
16906         * Hwnd.cs: Added field to track if window is mapped
16907         * XplatUIX11.cs: 
16908           - Unmap windows if they become 0-size, re-map when 
16909             they are >0 again; fixes #76035
16910           - Re-set our error handler after initializing X11Desktop
16911             to override any error handlers Gtk or whatever was called
16912             may have set.
16913
16914 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
16915
16916         * CheckedListBox.cs: Removed unused vars
16917         * ListView.cs: Fixed signatures
16918         * RichTextBox.cs: Removed unused vars
16919         * TextBoxBase.cs: Removed unused vars
16920         * XplatUIWin32.cs: Removed unused vars
16921         * XplatUIX11.cs: Removed unused vars
16922         * XplatUI.cs: Updated version and date to latest published
16923
16924 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
16925
16926         * Cursor.cs: Added private .ctor to work around a bug in
16927           resourceset (Thanks to Geoff Norton for the help on this)
16928         * SplitterEventArgs.cs: Made fields accessible so we don't
16929           waste boatloads of objects and can reuse the same one
16930           in Splitter
16931         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
16932           any captions and borders when generating screen coordinates
16933         * Splitter.cs: Reimplemented control, now fully complete, uses
16934           rubberband drawing, supports and obeys all properties, has
16935           proper cursors
16936
16937 2005-10-13  Miguel de Icaza  <miguel@novell.com>
16938
16939         * Form.cs (Form): Setup default values for autoscale and
16940         autoscale_base_size;  Make these instance variables, not static
16941         variables. 
16942
16943         (OnLoad): on the first load, adjust the size of the form.
16944
16945 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
16946
16947         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
16948           width argument to DrawReversibleRectangle()
16949         * XplatUIWin32.cs, XplatUIX11.cs: 
16950           - Implemented width for DrawReversibleRectangle()
16951           - Added logic to DrawReversibleRectangle that recognizes a zero
16952             width or height and only draws a line in that situation
16953         
16954 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
16955
16956         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
16957         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
16958         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
16959           method (it uses our FosterParent window to get a graphics context)
16960
16961 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
16962
16963         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
16964           and SetWindowBackground methods
16965         * Control.cs:
16966           - Setting proper ControlStyles
16967           - We no longer call XplatUI.SetWindowBackground and XplatUI.
16968             EraseWindowBackground, instead we draw the window background
16969             ourselves in PaintControlBackground. This behaviour is
16970             required to match MS, where, when OnPaintBackground is not
16971             called, the background is not drawn.
16972           - Removed unneeded Refresh() in set_Text
16973         * Hwnd.cs: Dropped the ErasePending support. No longer needed
16974         * XplatUIX11.cs:
16975           - Created DeriveStyles method to translate from CreateParams to
16976             FormBorderStyle and TitleStyle, also handles BorderStyle (which
16977             matches FormBorderStyle enum values)
16978           - Consolidated SetHwndStyles and CalculateWindowRect border/title
16979             style calculations into single DeriveStyles method
16980           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
16981             from redrawing the whole window on any resize or expose.
16982           - Fixed CreateWindow usage of SetWindowValuemask. Before not
16983             all styles were applied to our whole/client window appropriately
16984           - Removed EraseWindowBackground() and SetWindowBackground() methods
16985           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
16986             no longer clear/redraw the background through X
16987           - Removed handling of erase_pending bit, we have no use for it (or
16988             so it seems)
16989         * XplatUIOSX.cs:
16990           - Removed generation and handling of WM_ERASEBKGND message
16991           - Removed EraseWindowBackground() and SetWindowBackground() methods
16992           - Removed handling of hwnd.ErasePending flag
16993         * XplatUIWin32.cs:
16994           - Removed EraseWindowBackground() and SetWindowBackground() methods
16995           - We no longer call EraseWindowBackground on PaintEventStart, we 
16996             ignore the fErase flag, erasing is handled in Control in the
16997             background handler
16998         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
16999           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
17000           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
17001           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
17002           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
17003           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
17004           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
17005
17006 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
17007
17008         * PropertyGrids.cs: Get sub properties
17009         * PropertyGridView.cs: Fix drawing code
17010
17011 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
17012
17013         * ListBox.cs: Fixes 76383
17014
17015 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
17016
17017         * DataGridTextBoxColumn.cs: Sets location and size before attachment
17018         * ThemeWin32Classic.cs: Fixes border drawing and calculations
17019         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
17020
17021
17022 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
17023
17024         * ComboBox.cs: Fixes border drawing
17025
17026 2005-10-10  Miguel de Icaza  <miguel@novell.com>
17027
17028         * MimeIcon.cs: Ignore errors if the file can not be read.
17029
17030 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
17031
17032         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
17033          - Fixed border calculations
17034          - Fixed horizontal scrolling in single column listboxes
17035          - Fixed drawing issues
17036
17037 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
17038
17039         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
17040           FormBorderStyle enum
17041         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
17042           code to determine FormBorderStyles from CreateParams
17043         * Form.cs:
17044           - Fixed bug where we'd set the wrong window styles if we were
17045             not creating an MDI window
17046           - Added call to XplatUI.SetBorderStyle when form borders are set
17047         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
17048         * Hwnd.cs:
17049           - Removed obsolete edge style
17050           - Switched from BorderStyle to FormBorderStyle
17051         
17052 2005-10-10  Jackson Harper  <jackson@ximian.com>
17053
17054         * Form.cs: Use the property to get the window handle instead of
17055         accessing it directly. Prevents a null reference exception.
17056
17057 2005-10-10  Jackson Harper  <jackson@ximian.com>
17058
17059         * TreeView.cs: Don't adjust the rect given to DrawString now that
17060         our libgdiplus draws correctly.
17061
17062 2005-10-08  Jackson Harper  <jackson@ximian.com>
17063
17064         * TreeView.cs: Don't try to find the clicked on node if there are
17065         no nodes in the tree.
17066
17067 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
17068
17069         * RichTextBox.cs:
17070
17071           restore
17072
17073 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
17074
17075         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
17076           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
17077           ErrorProvider.cs:
17078           Use ResPool for brushes and dispose System.Drawing objects that
17079           are not used anymore.
17080
17081 2005-10-07  Jackson Harper  <jackson@ximian.com>
17082
17083         * MdiChildContext.cs: Use the new borders instead of drawing them
17084         ourselves.
17085
17086 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
17087
17088         * Calling UpdateBounds after changing the window's BorderStyle 
17089         since the style can change the ClientSize
17090
17091 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
17092
17093         * Control.cs: Made PaintControlBackground virtual
17094         * Panel.cs: Overriding PaintControlBackground instead of using paint
17095           event; paint event method was interfering with 'real' users of the
17096           event.
17097
17098 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
17099
17100         * ThemeWin32Classic.cs: remove border drawing since it is handled
17101         by the base control class now and was causing double border drawing.
17102
17103 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
17104
17105         * Panel.cs: Redraw our background on paint. Not a pretty solution,
17106           but it does seem to match MS behaviour. This fixes bug #75324
17107
17108 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
17109
17110         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
17111           somewhat hackish looking
17112
17113 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
17114
17115         * TextBoxBase.cs:
17116           - We now accept Enter even if AcceptEnter is false, if the containing
17117             form does not have an AcceptButton configured (fixes bug #76355)
17118           - Calculations are now fixed to no longer use Width/Height, but
17119             ClientSize.Width/Height, since we now support borders (this was
17120             a result of fixing borders and therefore bug #76166)
17121           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
17122             true (fixes bug #76354)
17123         
17124 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
17125
17126         * Control.cs: 
17127           - Defaulting BorderStyle and setting it in XplatUI when our window 
17128             is created
17129           - Added enum check to InternalBorderStyle setter
17130         * XplatUIX11.cs: 
17131           - Added drawing of window borders
17132           - Now properly calculates WM decorations offset for toplevel 
17133             windows (fixes bug #74763)
17134         * XplatUIWin32.cs: 
17135           - Implemented BorderStyles for windows (we're letting win32 draw 
17136             the border for us)
17137           - Fixed the signature for SetWindowLong
17138         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
17139           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
17140           setting borders
17141         * UpDownBase.cs: Remove drawing of borders, this is handled by
17142           the driver, outside the client area
17143         * ListView.cs: Removed bogus border calculations. The control should
17144           be oblivious to borders, since those are not part of the client
17145           area. 
17146         * X11DesktopColors.cs: Commented out (currently) unneeded variables
17147         * ThemeWin32Classic.cs: Removed border calculations from ListView 
17148           drawing code
17149
17150 2005-10-06  Jackson Harper  <jackson@ximian.com>
17151
17152         * MdiChildContext.cs: Clear out the old virtual position remove
17153         all the unneeded calls to CreateGraphics.
17154
17155 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
17156
17157         * TextControl.cs: Use proper color for highlighted text; fixes #76350
17158
17159 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
17160
17161         * Form.cs: 
17162           - Added loading and setting of our new default icon
17163           - Only set icon if window is already created
17164
17165 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
17166
17167         * Label.cs:
17168           - Do not explicitly set the foreground and background colors, to
17169             allow inheriting from parents (fixes #76302)
17170           - Use Control's InternalBorderStyle property to deal with borders
17171
17172 2005-10-06  Jackson Harper  <jackson@ximian.com>
17173
17174         * MdiChildContext.cs: Use the new xplatui function to draw a
17175         reversible rect.
17176
17177 2005-10-06  Jackson Harper  <jackson@ximian.com>
17178
17179         * Form.cs: Add the parent before creating the child context cause
17180         we need the parent when setting up the child.
17181
17182 2005-10-06  Jackson Harper  <jackson@ximian.com>
17183
17184         * FolderBrowserDialog.cs: redo the tree population code so a
17185         second thread isn't used. Should be a lot faster and more stable
17186         now.
17187
17188 2005-10-05  Jackson Harper  <jackson@ximian.com>
17189
17190         * TreeView.cs: There are no expand/collapse boxes if the node has
17191         no children.
17192
17193 2005-10-05  Jackson Harper  <jackson@ximian.com>
17194
17195         * X11DesktopColors.cs: Get menu colours for the gtk theme.
17196
17197 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
17198
17199         * FileDialog.cs: Fix InitialDirectory
17200
17201 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
17202
17203         * ComboBox.cs:
17204                 - Fixes changing between styles
17205                 - Fixes simple mode
17206                 - Fixes last item crashing when navigating with keyboard
17207
17208 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
17209
17210         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
17211
17212 2005-10-05  Jackson Harper  <jackson@ximian.com>
17213
17214         * TreeView.cs: If updating the root node do a full refresh.
17215         * TreeNode.cs: The root node should be expanded by default. Also
17216         added a utility prop to tell if we are the root node.
17217         * TreeNodeCollection.cs: Only refresh if the node we are being
17218         added to is expanded. Also added a comment on a potential
17219         optimization.
17220         
17221 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
17222
17223         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
17224           in dispose method. Fixes #76330
17225
17226 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
17227
17228         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
17229
17230                 - Implements vertical and horizontal scrolling using XplatUI
17231                 - Fixes keyboard navagation
17232                 - Fixes EnsureVisible
17233                 - Drawing fixes
17234                 - Handles and draws focus properly
17235
17236
17237 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
17238
17239         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
17240           Create handle. NET_2_0: Destroy handle when value is null.
17241
17242 2005-10-03  Jackson Harper  <jackson@ximian.com>
17243
17244         * ScrollBar.cs: My last scrollbar patch was broken. This is a
17245         revert and a new patch to prevent the thumb from refreshing so
17246         much.
17247
17248 2005-10-02  Jackson Harper  <jackson@ximian.com>
17249
17250         * ScrollBar.cs: Don't update position if it hasn't actually
17251         changed. This occurs when you hold down the increment/decrement
17252         buttons and the thumb gets to the max/min.
17253
17254 2005-10-01  Jackson Harper  <jackson@ximian.com>
17255
17256         * Form.cs:
17257         * MdiChildContext.cs:
17258         * MdiClient.cs: Implement ActiveMdiChild in Form.
17259
17260 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
17261
17262         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
17263
17264 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
17265
17266         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
17267           be found
17268
17269 2005-09-30  Jackson Harper  <jackson@ximian.com>
17270
17271         * ListBox.cs: Don't do a full refresh unless some data has
17272         actually changed.
17273
17274 2005-09-30  Jackson Harper  <jackson@ximian.com>
17275
17276         * TreeView.cs: Make sure that the checkboxes size is factored in
17277         even when not visible.
17278
17279 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
17280
17281         * FileDialog.cs: Fix Jordi's build break
17282
17283 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
17284
17285         * FileDialog.cs: 
17286                 - Use standard the Windows colours for the combobox as espected
17287                 - Dispose objects that use resouces when no longer need them
17288
17289 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
17290
17291         * X11DesktopColors.cs: Initial incomplete implementation
17292         * XplatUIX11.cs: Added call to initialize X11DesktopColors
17293
17294 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
17295
17296         * Theme.cs: 
17297           - Switched Theme color names to match the names defined in 
17298             System.Drawing.KnownColors. Life's hard enough, no need to make 
17299             it harder.
17300           - Added setters to all theme color properties so themes can set
17301             their color schemes. The setters also propagate the color changes
17302             to System.Drawing.KnownColors via reflection
17303         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
17304           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
17305           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
17306           use the new, more logical theme color names
17307         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
17308           post-NT colors
17309         * ThemeWin32Classic.cs:
17310           - Removed code to set the old classic Windows colors. Instead it
17311             now relies on the colors returned by System.Drawing.KnownColors
17312             which will be either modern static colors (Unix) or colors
17313             read from the user's configuration (Win32)
17314           - Updated to use the new, more logical theme color names
17315           - Switched DataGrid drawing code to use only Theme colors instead of
17316             a mix of System.Drawing.KnownColors and Theme colors
17317           - DrawFrameControl(): Removed code that fills the button area, the
17318             fill would overwrite any previous fill done by a control. This
17319             fixes bug #75338 
17320           - Added DrawReversibleRectangle() stub
17321         * ScrollableControl.cs: Set visible state to false when scrollbars
17322           are removed (pdn fix)
17323         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
17324           DrawReversibleRectangle() method to allow drawing primitive 
17325           'rubber bands'
17326         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
17327
17328 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
17329
17330         * ImageList.cs: Add(Icon): Create handle.
17331
17332 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
17333
17334         * ListView.cs:
17335         * ThemeWin32Classic.cs:
17336                 - Fixes detail mode
17337                 - Sets clippings
17338                 - Issues with drawing
17339
17340 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
17341
17342         * ImageList.cs: Moved RecreateHandle back to ImageList as event
17343           source has to be the ImageList.
17344
17345 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
17346
17347         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
17348
17349 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
17350
17351         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
17352
17353 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
17354
17355         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
17356
17357 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
17358         * GridItem.cs: Fixed TODOs
17359         * GridItemCollection.cs: Added ICollection interface
17360
17361 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
17362
17363         * ImageList.cs: Resize icons when needed.
17364
17365 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
17366
17367         * ListViewItem.cs
17368                 - Fixes GetBounds and returns on screen rects
17369         * ListView.cs:
17370                 - Fixes vertical and horzintal scrolling of items
17371         * ThemeWin32Classic.cs:
17372                 - Fixes drawing
17373                 
17374 2005-09-29  Raja R Harinath  <harinath@gmail.com>
17375
17376         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
17377
17378 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
17379
17380         * ImageList.cs: Added comments about handle creation. Moved Handle,
17381           HandleCreated and OnRecreateHandle implementations to ImageCollection.
17382           Handle is created in Add methods.
17383
17384 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
17385          
17386         * DataGridDrawingLogic.cs: 
17387                 - Takes rows into account on Colum calculations
17388                 - Returns the column when clickig
17389         * DataGrid.cs:
17390                 - Fixes default HitTestInfo values
17391                 - Fixes HitTestInfo.ToString
17392                 - Fixes ResetBackColor          
17393         
17394 2005-09-28  Jackson Harper  <jackson@ximian.com>
17395
17396         * MdiChildContext.cs: Obey rules for fixed sized windows (no
17397         sizing or cursor changes). Also added some temp code to draw the
17398         titlebars text (Makes dev a little easier).
17399
17400 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
17401
17402         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
17403
17404 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
17405          
17406         * ListBox.cs: Fixes bug 76253
17407
17408 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
17409
17410         * ImageList.cs: Added comments about the current implementation. Added
17411           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
17412           Format32bppArgb to preserve transparency and can use Graphics.FromImage
17413           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
17414           with Bitmap.LockBits for better performance. Revised the whole file to
17415           match MS.NET behaviour and provide better performance. Non-public
17416           interface members are calling public members even when they throw
17417           NotSupportedException for better maintainability. Moved ColorDepth,
17418           ImageSize, ImageStream and TransparentColor implementations to
17419           ImageCollection for better performance as these properties are not used
17420           by ImageList.
17421         * ImageListStreamer.cs: Added a new internal constructor that takes an
17422           ImageList.ImageCollection and serializes Images based on
17423           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
17424           match ImageList property name.
17425
17426 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
17427
17428         * ListBox.cs: Fixes IndexFromPoint for last item
17429
17430 2005-09-27  Jackson Harper  <jackson@ximian.com>
17431
17432         * Form.cs: Set the position of new mdi children correctly.
17433
17434 2005-09-27  Jackson Harper  <jackson@ximian.com>
17435
17436         * MdiClient.cs: New mdi children need to be added to the back of
17437         the controls collection so the zorder is set correctly. Also add a
17438         count of all the child windows that have been created.
17439
17440 2005-09-27  Jackson Harper  <jackson@ximian.com>
17441
17442         * Form.cs (CreateParams): Setup MDI forms correctly.
17443
17444 2005-09-27  Jackson Harper  <jackson@ximian.com>
17445
17446         * MdiChildContext.cs:
17447         * MonthCalendar.cs:
17448         * UpDownBase.cs:
17449         * ListBox.cs:
17450         * ListView.cs:
17451         * TextBoxBase.cs:
17452         * TreeView.cs:
17453         * ScrollableControl.cs:
17454         * ComboBox.cs: Add implicit controls using the new implict control
17455         functionality in ControlCollection. Also try to block multiple
17456         control add in a suspend/resume layout to save some cycles.
17457         
17458 2005-09-27  Jackson Harper  <jackson@ximian.com>
17459
17460         * Control.cs: Add functionality to the controls collection to add
17461         'implicit controls' these are controls that are created by the
17462         containing control but should not be exposed to the user. Such as
17463         scrollbars in the treeview.
17464         * Form.cs: The list var of the ControlsCollection is no longer
17465         available because of the potential of implicit controls getting
17466         ignored by someone accessing the list directly.
17467
17468 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
17469
17470         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
17471           loose it's parent. (Fixed bug introduced in r49103 when we added
17472           setting the child parent to null on Remove)
17473
17474 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
17475
17476         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
17477         * Splitter.cs: Added missing attributes for BorderStyle property.
17478         * TextBoxBase.cs: Marked Calculate* methods internal.
17479         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
17480         MS.NET.
17481
17482 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
17483          
17484         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
17485
17486 2005-09-25  Jackson Harper  <jackson@ximian.com>
17487
17488         * TreeView.cs: Update the node bounds correctly regardless of
17489         whether the node is visible.
17490
17491 2005-09-25  Jackson Harper  <jackson@ximian.com>
17492
17493         * ImageList.cs: Don't dispose the image after it is added to the
17494         image list. Only reformat images that need to be resized.
17495
17496 2005-09-25  Jackson Harper  <jackson@ximian.com>
17497
17498         * ImageList.cs: Don't set the format when changing the image.
17499
17500 2005-09-25  Jackson Harper  <jackson@ximian.com>
17501
17502         * TreeView.cs: We can't just assume the node has a font. Use the
17503         treeviews font if no node font is available.
17504
17505 2005-09-25  Jackson Harper  <jackson@ximian.com>
17506
17507         * TreeView.cs: Allow the scrollbars to be reset with negative
17508         values.
17509         - Don't add scrollbars to negative sized windows.
17510
17511 2005-09-23  Jackson Harper  <jackson@ximian.com>
17512
17513         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
17514         old Mono.Posix. Also remove some stray code that shouldn't have
17515         been committed.
17516
17517 2005-09-23  Jackson Harper  <jackson@ximian.com>
17518
17519         * TreeView.cs: Attempt at proper sizing of the horizontal
17520         scrollbar. Also don't resize the scrollbars unless they are
17521         visible.
17522
17523 2005-09-23  Jackson Harper  <jackson@ximian.com>
17524
17525         * TreeView.cs: We don't need to expand the invalid area when the
17526         selection changes, as this is all drawn in the node's bounding
17527         box. The area needs to be expanded (previous typo was contracting
17528         it) when the focus rect moves.
17529
17530 2005-09-23  Jackson Harper  <jackson@ximian.com>
17531
17532         * TreeView.cs: Display the selection box under the correct
17533         circumstances. We were rendering white text with no selection box
17534         before.
17535
17536 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
17537
17538         * TextControl.cs(Split): Now updates selection start/end if it points 
17539           into a line that's being split. Fixes a FIXME and bug #75258
17540
17541 2005-09-23  Jackson Harper  <jackson@ximian.com>
17542
17543         * Binding.cs:
17544         * ListControl.cs: Don't use the path when retrieving binding
17545         managers from the binding context. My bat sense tells me that the
17546         path is only used on insertion.
17547
17548 2005-09-22  Jackson Harper  <jackson@ximian.com>
17549
17550         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
17551
17552 2005-09-22  Jackson Harper  <jackson@ximian.com>
17553
17554         * Splitter.cs: There are special cursors used for splitting.
17555         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
17556
17557 2005-09-22  Jackson Harper  <jackson@ximian.com>
17558
17559         * Splitter.cs: Change the cursor appropriately when the splitter
17560         is moused over, so the user actually knows there is a splitter
17561         there.
17562
17563 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
17564
17565        * Label.cs : Fix ToString method to give same output as MS.NET
17566
17567 2005-09-22  Jackson Harper  <jackson@ximian.com>
17568
17569         * TreeView.cs: Create the scrollbars when the handle is created
17570         and add them right away, just make them invisble. Also account for
17571         the window being shrunk vertically to the point that the vert
17572         scrollbar needs to be added.
17573         - Remove some 0.5 adjustments to get around anti aliasing issues.
17574         
17575 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
17576          
17577         * MainMenu.cs: Fixes default value
17578         * MenuItem.cs: Fixes default value
17579
17580 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
17581
17582         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
17583
17584 2005-09-21  Jackson Harper  <jackson@ximian.com>
17585
17586         * Control.cs: Don't try to set the border style on the window if
17587         it hasn't been created. When the window is created the border
17588         style will be used.
17589
17590 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
17591
17592         * Control.cs (Update): Don't call XplatUI if we don't have a
17593           window handle yet
17594
17595 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
17596
17597         * ContainerControl.cs: Instead of throwing an exception, print
17598           a one-time warning about Validate not being implemented
17599         * XplatUIWin32.cs: Removed debug output
17600
17601 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
17602
17603         * Control.cs: Only set XplatUI background if we expect the windowing
17604           system to handle the background. This stops controls that draw their
17605           own background from flickering
17606
17607         * XplatUIX11.cs: Support custom visuals and colormaps for window 
17608           creation. This allows, amongst other things, using MWF X11 windows 
17609           with OpenGL.
17610
17611 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
17612
17613         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
17614           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
17615           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
17616           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
17617           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
17618           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
17619           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
17620           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
17621           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
17622           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
17623           GridColumnStylesCollection.cs, 
17624           IDataGridColumnStyleEditingNotificationService.cs,
17625           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
17626           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
17627           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
17628           TreeNodeCollection.cs, AmbientProperties.cs, 
17629           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
17630           DataObject.cs, ErrorProvider.cs, Splitter.cs,
17631           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
17632           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
17633           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
17634           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
17635           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
17636           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
17637           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
17638           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
17639           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
17640           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
17641           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
17642           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
17643           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
17644           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
17645           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
17646           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
17647           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
17648           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
17649           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
17650           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
17651           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
17652           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
17653           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
17654           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
17655           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
17656           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
17657           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
17658           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
17659           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
17660           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
17661           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
17662           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
17663           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
17664           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
17665           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
17666
17667 2005-09-21  Jackson Harper  <jackson@ximian.com>
17668
17669         * TreeNode.cs: Call Before/After Expand not Collapse when
17670         expanding.
17671
17672 2005-09-20  Jackson Harper  <jackson@ximian.com>
17673         
17674         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
17675
17676 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
17677          
17678         * ListViewItem.cs:
17679                 - Fixes bug 76120
17680                 - Fixes proper storing of subitems
17681                 - Fixes not updated items
17682
17683 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
17684
17685         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
17686           things if our window handle isn't created yet. Also disabled 
17687           debug for TextBoxBase
17688
17689 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
17690
17691         * MenuAPI.cs: Remove filtering of events to allow menu usage
17692
17693 2005-09-20  Miguel de Icaza  <miguel@novell.com>
17694
17695         * Cursor.cs: Allow null to be passed to Cursor.Current.
17696
17697 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
17698
17699         * ThemeWin32Classic.cs:
17700           - Change some private methods/fields to protected virtual so that 
17701             they can be accessed and overriden in derived classes
17702           - First refactoring of some methods. Derived themes now don't 
17703             need to duplicate the complete code from ThemeWin32Classic
17704         * ThemeNice.cs:
17705           - Added nice StatusBar
17706           - Derive from ThemeWin32Classic and not Theme
17707           - Removed duplicate ThemeWin32Classic code
17708
17709 2005-09-20  Miguel de Icaza  <miguel@novell.com>
17710
17711         * Control.cs (ControlCollection.Add): If the value null is passed
17712         the control is ignored. 
17713
17714         Optimize this loop.
17715
17716 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
17717
17718         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
17719           PostQuitMessage state.
17720         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
17721
17722 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
17723
17724         * Application.cs: Our constructor will never get called, move 
17725           initialization to fields; fixes bug #75933
17726
17727 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
17728
17729         * FileDialog.cs :
17730                 - Allow files to be selected properly using file name
17731                 combo box.
17732                 - Add ability to change diretory (absolute / relative)
17733                 using file name combo box.
17734
17735 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
17736          
17737         * ListBox.cs: 
17738                 - Fixes Multicolumn listboxes item wrong calculations
17739                 - Allows to click when only one item is in the listbox
17740                 - Fixes crash when no items using keyboard navigation
17741
17742 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
17743
17744         * ComboBox.cs: Reverted almost everything from the latest patch which
17745           broke ComboBox
17746
17747 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
17748         
17749         * ToolTip.cs:
17750                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
17751         * ComboBox.cs:
17752                 - When DropDownStyle is Simple, it does not show scrollbar 
17753                 to the last item of the list.
17754                 - When DropDownStyle is Simple, it crashed when the list was 
17755                 scrolled down with the down cursor key.
17756                 - Fixed a bug that when DropDownStyle is DropDownList, the 
17757                 selected item was not shown.
17758                 - The position of the selected item was not preserved when 
17759                 the next dropdown happened.
17760         * ThemeWin32Classic.cs:
17761                 - Items were wrapped at the right end.
17762         * CheckedListBox.cs:
17763                 - Fixed Add method
17764         * ListBox.cs:
17765                 - Items should be fully shown.
17766                 - When resizing and vertical scrollbar disappeared, the item 
17767                 of index 0 should be on the top of the list.
17768                 - GetItemRectangle should consider the size of ver. scrollbar
17769         * StatusBar.cs:
17770                 - SizingGrip area should not be allocated when it is not 
17771                 displayed.
17772                 - Now it reflects MinWidth of the containing panel and 
17773                 fixed a crash that happens when its width becomes so small.
17774
17775 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
17776
17777         * CheckedListBox.cs: Fixes bug 76028
17778         * ListBox.cs: Fixes bug 76028
17779
17780 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
17781
17782         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
17783         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
17784
17785 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
17786
17787         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
17788
17789 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
17790
17791         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
17792
17793 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
17794
17795         * IRootGridEntry.cs: Added
17796         * PropertyGridCommands.cs: Added
17797         * PropertiesTab.cs: Added missing methods and property
17798         * PropertyGridView.cs: Made class internal
17799         * PropertyGridTextBox.cs: Made class internal
17800
17801 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
17802
17803         * MimeIcon.cs: Try to check some other environment variables
17804           if "DESKTOP_SESSION" returns "default"
17805
17806 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
17807
17808         * ThemeNice.cs: Corrected background colors (e.g. menus)
17809         * ColorDialog.cs: Use correct background colors for controls
17810
17811 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
17812
17813         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
17814
17815 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
17816
17817         * RichTextBox.cs: Added initial implementation
17818         * lang.cs: Removed. Was accidentally checked in long time ago
17819         * TODO: Removed. Contents were obsolete
17820
17821 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
17822                                                                                 
17823         * PropertiesTab.cs : Added
17824
17825 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
17826                                                                                 
17827         * PropertyGrid.cs : Update
17828         * PropertyGridView.cs : Update
17829         * System.Windows.Forms.resx : Added images and strings
17830
17831 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
17832
17833         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
17834  
17835 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
17836
17837         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
17838           a busy loop right after the Ungrab the X11 display is otherwise 
17839           blocked
17840
17841 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
17842
17843         * ThemeWin32Classic.cs: Optimise the use of clipping
17844
17845 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
17846
17847         * DataGrid.cs: fixes recursion bug
17848
17849 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
17850
17851         * ThemeNice.cs: 
17852           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
17853           - Cleanup
17854
17855 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
17856
17857         * ThemeNice.cs: Draw nice ProgressBars
17858
17859 2005-09-01  Miguel de Icaza  <miguel@novell.com>
17860
17861         * VScrollBar.cs: Another buglet found by Aaron's tool. 
17862
17863         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
17864         bug finder.
17865
17866 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
17867
17868         * ThemeNice.cs:
17869           - Added nicer menu drawing
17870           - Updated DrawTab
17871           - some refactoring
17872
17873 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
17874
17875         * CreateParams.cs (ToString): Made output match MS
17876         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
17877             handle is already created (to avoid forcing window creation)
17878         * XplatUIX11.cs: Set window text to caption after creating window,
17879           in case Text was set before window was created
17880         * Form.cs: Use this.Text instead of a static string as caption
17881
17882 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
17883
17884         * NotifyIcon.cs: Don't set the window to visible; this screws
17885           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
17886           OnPaint without a bitmap)
17887         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
17888           happen very often anyway; we could add the check to the WM_PAINT 
17889           event generation code
17890
17891 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
17892
17893         * NotifyIcon.cs: Fill the icon area with a background color, to 
17894           avoid 'residue' when transparent icons are drawn
17895         * XplatUIX11.cs:
17896           - Handle whole_window == client_window when destroying windows
17897           - SystrayAdd(): Set client_window to whole_window value to
17898             get mouse and other events passed to NotifyIcon
17899
17900 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
17901
17902         * Form.cs: Set proper default for Opacity property
17903         * NotifyIcon.cs:
17904           - ShowSystray(): Don't bother creating telling the OS
17905             about the systray item if no icon is provided
17906           - Now handles WM_NCPAINT message to deal with whole/client window
17907             split
17908           - Create window as visible to not get caught by Expose optimization
17909         * Hwnd.cs: Removed debug message
17910         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
17911           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
17912             PaintEventStart/End to use new client argument
17913         * TextBoxBase.cs:
17914           - Commented out debug messages
17915           - Switched PaintEventStart/End to use new client argument
17916         * XplatUI.cs: Added client window bool to PaintEventStart()/
17917           PaintEventEnd() calls, to support drawing in non-client areas
17918         * XplatUIDriver.cs: 
17919           - Added client window bool to PaintEventStart()/PaintEventEnd() 
17920             calls, to support drawing in non-client areas
17921           - Added conditional compile to allow using MWF BeginInvoke 
17922             on MS runtime
17923         * XplatUIX11.cs:
17924           - Added some conditional debug output
17925           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
17926             whole/client window split
17927           - Implemented handling of client argument to PaintEventStart()/End()
17928         * Control.cs:
17929           - Throw exception if BeginInvoke() is called and the window handle
17930             or one of the window's parent handles is not created
17931           - Added conditional compile to allow using MWF BeginInvoke on
17932             MS runtime
17933           - get_Parent(): Only sets parent if handle is created. This avoids
17934             forcing window handle creation when parent is set.
17935           - Now fires Layout and Parent changed events in proper order
17936           - Switched to use Handle instead of window.Handle for Z-Order setting,
17937             the get_Parent() patch above causes us to possibly get null for 'window'
17938           - Implemented handling of client argument to PaintEventStart()/End()
17939           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
17940             default handling)
17941           - Now sends a Refresh() to all child windows when Refresh() is called
17942
17943 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
17944
17945         * Form.cs: Added (non-functional) Opacity property
17946         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
17947
17948 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
17949         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
17950           use export MONO_THEME=nice to activate it.
17951           Currently supported controls:
17952           - Button
17953           - ComboBox
17954           - ScrollBar
17955           - TabControl (TabAlignment.Top only, other will follow)
17956         * ThemeEngine.cs: Add theme nice
17957         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
17958           if enabled
17959
17960 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
17961
17962         * Splitter.cs: Resize docked control and its neighbor.
17963
17964 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
17965         -- Making Windows with Menus layout correctly --
17966         * Form.cs : The first leg of the fix
17967                 Menu setter - adjust Client Size as needed to make space for the menu
17968                 SetClientSizeCore - doesn't call base version to be able to pass the 
17969                         menu handle to XplatUI.CalculateWindowRect
17970         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
17971         * XplatUIX11.cs: The critical second leg of the fix
17972                 GetWindowPos needs to use a recalculated client_rect
17973                 so that resizing the window doesn't break layout of child controls. 
17974                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
17975                 Lots of \t\n killed
17976
17977 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
17978
17979         * Label.cs: Now properly recalculates width and height on Font and Text
17980           changes if AutoSize is set
17981
17982 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
17983         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
17984
17985 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
17986
17987         * ImageList.cs: Makes ToString method compatible with MS
17988
17989 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
17990
17991         * MenuAPI.cs: fixes bug 75716
17992
17993 2005-08-11 Umadevi S <sumadevi@novell.com>
17994         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
17995
17996 2005-08-11 Umadevi S <sumadevi@novell.com>
17997         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
17998
17999 2005-08-10  Umadevi S <sumadevi@novell.com>
18000         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
18001
18002 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
18003
18004         * Menu.cs: fixes bug 75700
18005         * MenuAPI.cs: fixes navigation issues
18006
18007 2005-08-09  Umadevi S <sumadevi@novell.com>
18008         * CheckedListBox.cs - simple fix for GetItemChecked.
18009
18010 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
18011
18012         * ComboBox.cs: Serveral fixes
18013         * ListBox.cs: Serveral fixes
18014
18015 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
18016
18017         * ComboBox.cs: Fixes FindString methods and GetItemHeight
18018         * ListBox.cs: Fixes FindString methods
18019
18020 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
18021
18022         * DataGrid.cs: fixes bugs exposed by new tests
18023
18024 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
18025
18026         * Mime.cs: Compile Mono assembly references only if compiling
18027           with Mono (Allows to build with VS.Net again)
18028
18029 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
18030
18031         * Control.cs (PaintControlBackground): Draw background image
18032         corrrectly.
18033         (CheckForIllegalCrossThreadCalls): Stubbed.
18034         
18035         * Form.cs (OnCreateControl): Center when should be centered.
18036         
18037         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
18038
18039 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
18040
18041         * Binding.cs: Binding to properties should be case unsensitive
18042
18043 2005-07-18 vlindos@nucleusys.com
18044
18045         * DataGrid.cs: fixes setmember order
18046
18047 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
18048
18049         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
18050         * FileDialog.cs: FileDialog is now resizable and uses the new
18051           MimeIconEngine
18052
18053 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
18054
18055         * DataGridTextBoxColumn.cs: default value
18056         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
18057         * GridTableStylesCollection.cs: fixes checking MappingName
18058         * DataGridDrawingLogic.cs: fixes drawing logic issues
18059         * DataSourceHelper.cs: rewritten to make compatible with more data sources
18060         * DataGrid.cs: fixes    
18061
18062 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
18063
18064         * MimeGenerated.cs: Use case sensitive comparer for
18065           NameValueCollections
18066
18067 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
18068
18069         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
18070         * ThemeWin32Classic.cs: bug fixes, code refactoring
18071         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
18072         * DataGrid.cs: bug fixes, code refactoring
18073         * DataGridTextBox.cs: bug fixes, code refactoring
18074         * DataGridColumnStyle.cs:  bug fixes, code refactoring
18075         * Theme.cs:  bug fixes, code refactoring
18076
18077 2005-07-01  Peter Bartok  <pbartok@novell.com> 
18078
18079         * TextControl.cs: Quick fix for the reported crash on ColorDialog
18080           and other text box usage
18081
18082 2005-07-01  Jackson Harper  <jackson@ximian.com>
18083
18084         * TabControl.cs: Make sure the bottom of the tab covers the pages
18085         border.
18086
18087 2005-06-30  Peter Bartok  <pbartok@novell.com> 
18088
18089         * Form.cs (ShowDialog): Assign owner of the dialog
18090         * TextBoxBase.cs: Always refresh caret size when deleting, caret
18091           might have been moved to a tag with different height
18092
18093 2005-06-30  Jackson Harper  <jackson@ximian.com>
18094
18095         * Form.cs: Don't create an infinite loop when setting focus
18096         * MenuItem.cs: Don't dirty the parents if we don't have any
18097
18098 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
18099
18100         * LibSupport.cs: Rename
18101
18102 2005-06-29  Peter Bartok  <pbartok@novell.com>
18103
18104         * TextBoxBase.cs: Re-align caret after deleting a character
18105         * TextControl.cs:
18106           - DeleteChars(): Ensure that tag covers the provided position
18107           - StreamLine(): Drop reference for dropped tag
18108
18109 2005-06-29  Peter Bartok  <pbartok@novell.com> 
18110
18111         * TextControl.cs: 
18112           - Selections now work properly, anchoring at the initial location
18113             and properly extending in either direction (SetSelectionToCaret(),
18114             SetSelectionStart() and SetSelectionEnd())
18115           - No longer redraws the whole control on selection change, now
18116             calculates delta between previous and new selection and only
18117             invalidates/redraws that area
18118           - Fixed FindPos() math off-by-one errors
18119           - Changed DeleteChars() to verify the provided tag covers the
18120             provided position, selections may have a tag that doesn't cover
18121             the position if the selection is at a tag border
18122           - Fixed off-by-one errors in DeleteChars()
18123           - Added missing streamlining check in DeleteChars() to remove
18124             zero-length tags
18125           - Implemented Invalidate() method, now properly calculates exposures
18126             between two given lines/positions
18127           - Implemented SetSelection()
18128           - Obsoleted and removed FixupSelection()
18129           - Improved RecalculateDocument() logic, removing code duplication
18130
18131 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
18132
18133         * LibSupport.cs: changes to match different input/output arguments.
18134
18135 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
18136
18137         * LibSupport.cs: added libsupport.so init routine.
18138
18139 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
18140         
18141         * ControlBindingsCollection.cs
18142                 - Throws an exception on null datasource when adding
18143                 - Checks for duplicated bindings when adding
18144
18145 2005-06-28  Jackson Harper  <jackson@ximian.com>
18146
18147         * TreeView.cs (OnKeyDown): Support left and right properly
18148         (navigates as well as expanding and collapsing.
18149         - Add support for Multiply, this expands all the selected nodes
18150         children.
18151         - Fix some tabbing.
18152
18153 2005-06-28  Jackson Harper  <jackson@ximian.com>
18154
18155         * TreeView.cs: Implement keyboard navigation, currently supports,
18156         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
18157         support for toggling checkboxes with the space bar.
18158
18159 2005-06-28  Jackson Harper  <jackson@ximian.com>
18160
18161         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
18162         tree.
18163
18164 2005-06-28  Jackson Harper  <jackson@ximian.com>
18165
18166         * TreeView.cs: Add missing event.
18167
18168 2005-06-27  Peter Bartok  <pbartok@novell.com> 
18169
18170         * TextControl.cs:
18171           - Made line ending size configurable (now allows for counting 
18172             lineendings as \n or \r\n)
18173           - Added margin to viewport to keep caret visible on right side
18174           - Fixed translation routines for line/pos to documentpos to consider
18175             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
18176           - Fixed some line-endings to be unix style
18177           - Fixed Document.FormatText to perform it's calculations 1-based
18178           - Added descriptions for a few methods that might otherwise get 
18179             used wrong
18180           - Added NOTE section with some basic conventions to remember at 
18181             the top of the file
18182           - Major fixup for RichTextBox selection drawing:
18183             * Fixed crashes when multiple tags on a single line were selected
18184             * fixed selection box drawing not overlaying text
18185             * fixed bogus offset calculation for tags not starting at index 1
18186             * Switched behaviour from using multiple Substrings of a 
18187               StringBuilder.ToString() to using multiple 
18188               StringBuilder.ToString(start, length) statements, hoping this is
18189               faster (kept original version commented out in the code, in case
18190               original version was faster)
18191         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
18192           alignment != Left
18193         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
18194           call it as well
18195
18196 2005-06-27  Jackson Harper  <jackson@ximian.com>
18197
18198         * TabControl.cs: Move to the left and right with the arrow
18199         keys. These keys don't cycle beyond first and last like
18200         tab. Refresh all the tabs when scrolling them to the left or
18201         right.
18202
18203 2005-06-27  Jackson Harper  <jackson@ximian.com>
18204
18205         * TabControl.cs:
18206           - ToString: Added method
18207           - CreateParams: Remove TODO and comment
18208           - OnKeyDown: Cycle through bounds properly.
18209           - SelectedIndex: Scroll to the right or left if we need to
18210           display the newly selected tab.
18211
18212 2005-06-23  Jackson Harper  <jackson@ximian.com>
18213
18214         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
18215         set.
18216
18217 2005-06-23  Jackson Harper  <jackson@ximian.com>
18218
18219         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
18220         CTRL-SHIFT-TAB, and HOME, END are there any others?
18221
18222 2005-06-23  Jackson Harper  <jackson@ximian.com>
18223
18224         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
18225
18226 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
18227         
18228         * DataGridTextBoxColumn.cs: fixes and enhancements
18229         * ThemeWin32Classic.cs: fixes and enhancements
18230         * DataGridBoolColumn.cs:  fixes and enhancements
18231         * DataGridDrawingLogic.cs:  fixes and enhancements
18232         * CurrencyManager.cs: fixes and enhancements
18233         * DataGrid.cs: fixes and enhancements
18234         * DataGridColumnStyle.cs:  fixes and enhancements
18235
18236 2005-06-22  Jackson Harper  <jackson@ximian.com>
18237
18238         * TabControl.cs: Add some missing methods that just call into the
18239         base. Make the TabPageCollection's IList interface behave in the
18240         same manner as the MS implementation.
18241
18242 2005-06-22  Peter Bartok  <pbartok@novell.com> 
18243
18244         * TextControl.cs: Added sanity check
18245         * TextBoxBase.cs: 
18246           - Fixed wrapping behaviour, don't set wrap on single line controls
18247             (this fixes the breakage of colordialog introduced in an earlier
18248              checkin)
18249           - Added rudimentary support for autoscrolling right-aligned controls
18250             (still needs fixing, also, center alignment scroll is missing)
18251
18252 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
18253         
18254         * ScrollBar.cs: Fixes thumbpos on Maximum values
18255
18256 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
18257         
18258         * PropertyGridView.cs: Pass context information to UITypeEditors 
18259
18260 2005-06-21  Peter Bartok  <pbartok@novell.com> 
18261
18262         * TextBoxBase.cs:
18263           - Now calling PositionCaret with absolute space coordinates
18264           - Enabled vertical scrolling
18265           - Better tracking of scrollbar changes, tied into WidthChange
18266             event
18267           - Improved cursor tracking
18268           - Removed debug output
18269         * TextControl.cs:
18270           - PositionCaret coordinates are now works in absolute space, not 
18271             the canvas
18272           - Improved tracking of document size
18273           - Added events for width and height changes
18274
18275 2005-06-21  Peter Bartok  <pbartok@novell.com>
18276
18277         * Form.cs: Set focus to active control when form is activated
18278         * TextControl.cs: 
18279           - Added word-wrap functionality to RecalculateLine() 
18280           - Added some short function descriptions for VS.Net to aid in
18281             writing dependent controls
18282           - Added Caret property, returning the current coords of the caret
18283           - Added ViewPortWidth and ViewPortHeight properties
18284           - Added Wrap property
18285           - Added CaretMoved event
18286           - Removed some old debug code
18287           - Split() can now create soft splits
18288           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
18289           - Added method to format existing text
18290           - Fixed size/alignment calculations to use viewport
18291           - RecalculateDocument now can handle changing line-numbers while
18292             calculating lines
18293
18294         * TextBox.cs:
18295           - Added some wrap logic, we don't wrap if alignment is not left
18296           - Added casts for scrollbar var, base class switched types to
18297             also support RichTextBoxA
18298           - Implemented handling of scrollbar visibility flags
18299
18300         * TextBoxBase.cs:
18301           - Switched scrollbars type to RichTextBoxScrollBars to support
18302             RichTextBox
18303           - Added tracking of canvas width/height
18304           - Switched scrollbars to be not selectable (to keep focus on text)
18305           - Added central CalculateDocument() method to handle all redraw
18306             requirements
18307           - Added ReadOnly support
18308           - Added WordWrap support
18309           - Fixed handling of Enter key (we now treat it as a DialogKey)
18310           - Fixed caret positioning when h or v scroll is not zero
18311           - Fixed placing/generation of vertical scrollbar
18312           - Added CalculateScrollBars() method to allow updating scrollbar
18313             limits and visibility
18314           - Fixed handling of horizontal scroll
18315           - Added handling of vertical scroll
18316           - Implemented auto-'jump' when caret moves to close to a left or
18317             right border and there is text to be scrolled into view (currently
18318             there's the potential for a stack overflow, until a bug in
18319             scrollbar is fixed)
18320
18321 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
18322         
18323         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
18324
18325 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
18326
18327         * Mime.cs:
18328         - added inodes.
18329         - return application/x-zerosize for files with size zero
18330           (if no extension pattern matches).
18331         - check matches collection for strings too.
18332         - return only the first mime type if the name value
18333           collection has more than one mime type.
18334
18335 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
18336         
18337         * PropertyGrid.cs: Cleaned up some TODOs
18338         * PropertyGridView.cs: Added support for UITypeEditors
18339
18340 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
18341         
18342         * DataGrid.cs: clears cached value
18343
18344 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
18345
18346         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
18347         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
18348         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
18349         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
18350         
18351 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
18352
18353         * ThemeWin32Classic.cs: fixes colour
18354
18355 2005-06-15  Peter Bartok  <pbartok@novell.com>
18356
18357         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
18358         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
18359         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
18360         * Control.cs: Added some MWFCategory and MWFDescription attributes
18361         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
18362
18363 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
18364
18365         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
18366         usage
18367
18368 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
18369
18370         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
18371         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
18372         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
18373         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
18374         * DataGrid.cs: default datagrid settings for Default Styles, fixes
18375         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
18376
18377 2005-06-13  Jackson Harper  <jackson@ximian.com>
18378
18379         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
18380         isn't printed when the user enables dropping. (X11 does accept
18381         drops).
18382         
18383 2005-06-13  Jackson Harper  <jackson@ximian.com>
18384
18385         * TreeView.cs: Remove some TODOS.
18386
18387 2005-06-13  Jackson Harper  <jackson@ximian.com>
18388
18389         * Form.cs: Hook into the mdi framework.
18390         * MdiClient.cs: Use the base control collections add method so
18391         parents get setup correctly. Set the default back colour and dock
18392         style.
18393         * MdiChildContext.cs: New class, this bad actor handles an
18394         instance of an MDI window. Right now there is only basic
18395         support. You can drag, close, and resize windows. Minimize and
18396         Maximize are partially implemented.
18397
18398 2005-06-13  Jackson Harper  <jackson@ximian.com>
18399
18400         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
18401         freaky when both vals are negative. NOTE: There are probably other
18402         places in XplatUIX11 that this needs to be done.
18403
18404 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
18405
18406         * DataGrid.cs: implement missing methods, move KeyboardNavigation
18407         * DataGridColumnStyle.cs: fixes signature
18408
18409 2005-06-12  Jackson Harper  <jackson@ximian.com>
18410
18411         * XplatUIX11.cs: Use sizing cursors similar to the ones on
18412         windows.
18413
18414 2005-06-11  Jackson Harper  <jackson@ximian.com>
18415
18416         * StatusBarPanel.cs: Signature cleanups. Implement
18417         BeginInit/EndInit.
18418
18419 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
18420
18421         * DataGridTextBoxColumn.cs: Honors aligment
18422         * GridColumnStylesCollection.cs: Contains is case unsensitive
18423         * GridTableStylesCollection.cs: several fixes
18424         * DataGridTableStyle.cs: default column creation
18425         * DataGridDrawingLogic.cs: fixes
18426         * CurrencyManager.cs: ListName property
18427         * DataGrid.cs: multiple styles support
18428         * DataGridColumnStyle.cs: fixes
18429         
18430
18431 2005-06-10  Peter Bartok  <pbartok@novell.com>
18432
18433         * Control.cs(Select): Moved SetFocus call to avoid potential
18434           loops if controls change the active control when getting focus
18435         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
18436           the up/down buttons
18437
18438 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
18439
18440         * ImageListConverter.cs: Implemented
18441
18442 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
18443
18444         * MonthCalendar.cs: Wired in NumericUpDown control for year
18445
18446 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
18447
18448         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
18449           DoubleClick events, since they are not meant to be fired.
18450
18451 2005-06-09  Peter Bartok  <pbartok@novell.com>
18452
18453         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
18454           Jonathan's standalone controls into MWF, implemented missing
18455           events, attributes and methods; added xxxAccessible classes
18456         * AccessibleObject.cs: Made fields internal so other classes
18457           can change them if needed
18458
18459 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
18460
18461         * UpDownBase.cs: Complete implementation
18462         * NumericUpDown.cs: Complete implementation
18463         * DomainUpDown.cs: Complete implementation
18464
18465 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
18466
18467         * DataGridTextBoxColumn.cs: drawing fixes
18468         * DataGridCell.cs: fixes ToString method to match MSNet
18469         * DataGridTableStyle.cs: fixes
18470         * DataGridBoolColumn.cs: fixes, drawing
18471         * DataGridDrawingLogic.cs: fixes, new methods
18472         * DataGridTextBox.cs: Keyboard and fixes
18473         * DataGrid.cs:
18474                 - Keyboard navigation
18475                 - Scrolling fixes
18476                 - Row selection (single, multiple, deletion, etc)
18477                 - Lots of fixes
18478         
18479 2005-06-07  Jackson Harper  <jackson@ximian.com>
18480
18481         * ThemeWin32Classic.cs: Clear the background area when drawing
18482         buttons.
18483
18484 2005-06-06  Peter Bartok  <pbartok@novell.com>
18485
18486         * ImageListStreamer.cs: Fixed signature for GetData
18487         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
18488         * ComboBox.cs:
18489           - Added missing ChildAccessibleObject class
18490           - Added missing OnXXXFocus overrides, switched to using those
18491             instead of the event handler
18492         * Control.cs:
18493           - Added Parent property for ControlAccessibleObject
18494           - Fixed signatures
18495           - Fixed attributes
18496           - Added ResetBindings()
18497         * ListBindingConverter.cs: Implemented some methods
18498         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
18499         * ImageList.cs: Implemented basic handle scheme, removed TODOs
18500         * ContainerControl.cs: Fixed signature, now subscribing to the
18501           ControlRemoved event instead of overriding the handler, LAMESPEC
18502         * CurrencyManager.cs: Added missing attribute
18503         * MonthCalendar.cs: Added missing properties
18504
18505 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
18506
18507         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
18508         
18509 2005-06-06  Gaurav Vaish and Ankit Jain
18510
18511         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
18512         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
18513         
18514 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
18515
18516         * Control.cs: fixes CreateParams Width / Height.
18517
18518 2005-06-05  Peter Bartok  <pbartok@novell.com>
18519
18520         * Win32DnD.cs: Removed compilation warnings
18521
18522 2005-06-05  Peter Bartok  <pbartok@novell.com>
18523
18524         * Control.cs (CreateParams): Since we don't know if one of the
18525           properties we use is overridden, lets make sure if we fail accessing
18526           we continue with a backup plan
18527
18528 2005-06-05  Peter Bartok  <pbartok@novell.com>
18529
18530         * Win32DnD.cs:
18531           - Removed debug output
18532           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
18533             struct
18534           - Plugged resource leak
18535         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
18536           MS size
18537
18538 2005-06-05  Peter Bartok  <pbartok@novell.com>
18539
18540         * XplatUIWin32.cs: Removed DnD code
18541         * Win32DnD.cs: Implemented drop source and drop target functionality
18542
18543 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
18544
18545         * UpDownBase.cs: remove duplicate addition of event, enable some code
18546         that was commented out.
18547         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
18548         Validate input when a key is pressed. It works fine now for every
18549         combination of Hexadecimal. Only missing some drawing love when sharing
18550         space with other controls.
18551
18552 2005-06-04  Peter Bartok  <pbartok@novell.com>
18553
18554         * Control.cs:
18555           - We need to pass a window for DragDrop, so enable callback events
18556           - Added DnD callback events when being a DragSource
18557         * XplatUI.cs (StartDrag): Added window handle argument
18558         * XplatUIDriver.cs (StartDrag): Added window handle argument
18559         * QueryContinueDragEventArgs: Made fields internally accessible so
18560           drivers can set them
18561         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
18562           can set them
18563
18564 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
18565
18566         * DataGridTextBoxColumn.cs: column text editing
18567         * DataGridTableStyle.cs: Respect columns styles created by the user
18568         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
18569         * DataGridBoolColumn.cs: bool column editing
18570         * DataGrid.cs: fixes to scrolling, properties, etc
18571         * DataGridTextBox.cs: handle keyboard
18572         * DataGridColumnStyle.cs: fixes
18573
18574 2005-06-02  Jackson Harper  <jackson@ximian.com>
18575
18576         * ImageListStreamer.cs: Somewhat broken implementation of
18577         GetObjectData. The RLE needs some work to match MS properly.
18578
18579 2005-06-02  Jackson Harper  <jackson@ximian.com>
18580
18581         * X11Dnd.cs: Attempting to keep at least one file in MWF
18582         monostyled.
18583
18584 2005-06-02  Peter Bartok  <pbartok@novell.com>
18585
18586         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
18587           that way
18588
18589 2005-06-02  Peter Bartok  <pbartok@novell.com>
18590
18591         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
18592         * XplatUI.cs: Added DoDragDrop() method
18593         * XplatUIDriver.cs: Added DoDragDrop() method
18594
18595 2005-06-02  Jackson Harper  <jackson@ximian.com>
18596
18597         * Splitter.cs: Implement BorderStyle.
18598
18599 2005-06-02  Jackson Harper  <jackson@ximian.com>
18600
18601         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
18602         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
18603         X11 using XDND.
18604
18605 2005-06-02  Peter Bartok  <pbartok@novell.com>
18606
18607         * DataObject.cs:
18608           - Added Data setter
18609           - Fixed broken insertion code for SetData, now also
18610             overwrites any existing entry of the same format name
18611         * Hwnd.cs: Added list of pointers that automatically gets
18612           freed when the window is disposed
18613         * XplatUI.cs: Call driver initialization method when loading
18614           a driver
18615         * Control.cs:
18616           - OnDragLeave takes EventArgs, not DragEventArgs
18617           - Added setting of WS_EX_ACCEPTFILES style when dropping is
18618             supported
18619           - Forces style update when drop state changes
18620         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
18621           not perfect since we cannot (yet) call the IDataObject.GetData()
18622           method, we keep getting 0x80004005 error, dunno why)
18623
18624 2005-06-02  Peter Bartok  <pbartok@novell.com>
18625
18626         * DragEventArgs.cs: Make fields internal so we can cache the
18627           object and re-set the fields from XplatUI
18628
18629 2005-06-02  Jackson Harper  <jackson@ximian.com>
18630
18631         * Control.cs: Add some internal methods so the DnD subsystem can
18632         raise DnD events. Also call into the driver when AllowDrop is set.
18633         * XplatUI.cs:
18634         * XplatUIDriver.cs: New method for setting whether or not a window
18635         is allowed to accept drag and drop messages.
18636                 
18637 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
18638         
18639         * ScrollBar.cs: Make sure that values sent in Scroll events
18640         are always between Maximum and Minimum.
18641
18642 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
18643
18644         * Menu.cs: Call MenuChanged when menuitem visibility has been
18645         changed.
18646         * MenuItem.cs: Rebuild menu when item is (not) visible.
18647         * MainMenu.cs: MainMenu has special MenuChanged.
18648         * Theme.cs: Caption and FrameBorderSize are not fixed.
18649         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
18650         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
18651         * XplatUIX11.cs,
18652         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
18653         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
18654
18655 2005-05-30  Jackson Harper  <jackson@ximian.com>
18656
18657         * DataFormat.cs: We can't statically initialize this stuff because
18658         it calls into the xplatui and could create a loop. So we lazy init
18659         it.
18660
18661 2005-05-28  Jackson Harper  <jackson@ximian.com>
18662
18663         * Control.cs: Proper implementation of Product(Name/Version).
18664
18665 2005-05-27  Jackson Harper  <jackson@ximian.com>
18666
18667         * DataObject.cs: Dont crash if no data is found.
18668
18669 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
18670         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
18671                 as per status page, guessing it should be set to true
18672
18673 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
18674
18675         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
18676         * DataGridTableStyle.cs: set proper formatting text, def header text
18677         * ThemeWin32Classic.cs: new themable paramaters
18678         * DataGridBoolColumn.cs: paint check box, get data, fixes
18679         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
18680         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
18681         * DataGridColumnStyle.cs: fixes
18682         * Theme.cs: new themable paramaters
18683                 
18684 2005-05-26  Peter Bartok  <pbartok@novell.com>
18685
18686         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
18687
18688 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
18689         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
18690
18691 2005-05-24  Peter Bartok  <pbartok@novell.com>
18692
18693         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
18694           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
18695           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
18696           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
18697           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
18698           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
18699           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
18700           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
18701           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
18702           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
18703           missing attributes, etc
18704         * DataGridPreferredColumnWidthTypeConverter.cs: Added
18705
18706 2005-05-24  Peter Bartok  <pbartok@novell.com>
18707
18708         * Help.cs: Added, implemented trivial functions, throws up MessageBox
18709           when user tries to get help
18710         * DataObject.cs, DataFormats.cs, LinkArea.cs,
18711           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
18712           to suppress warnings
18713         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
18714           avoid unreachable code warning
18715
18716 2005-05-20  Peter Bartok  <pbartok@novell.com>
18717
18718         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
18719
18720 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
18721
18722         * DataGridTextBoxColumn.cs: Basic painting methods
18723         * DataGridTableStyle.cs: Set table style in the column
18724         * ThemeWin32Classic.cs: Use Theme for colors
18725         * DataGridDrawingLogic.cs: Implement more drawing
18726         * DataGrid.cs: drawing, theming, enhacements, fixes
18727         * DataGridColumnStyle.cs: fixes, drawing
18728         * Theme.cs: theming for Datagrid
18729
18730 2005-05-20  Peter Bartok  <pbartok@novell.com>
18731
18732         * Cursor.cs: Implemented GetObjectData() method
18733
18734 2005-05-20  Peter Bartok  <pbartok@novell.com>
18735
18736         * Cursors.cs: Added setting of cursor name
18737         * Cursor.cs:
18738           - Implemented constructors
18739           - Implemented Draw and DrawStretched
18740           - Implemented Current property
18741           - Implemented == and != operators
18742           - Implemented Dispose()
18743           - Implemented ToString
18744           - Added missing attributes
18745         * XplatUIX11.cs:
18746           - Added missing reset for OverrideCursor when DoEvents is called
18747           - Fixed creation of cursor, logic was wrong
18748         * XplatUIWin32.cs:
18749           - Added missing reset for OverrideCursor when DoEvents is called
18750           - Fixed creation of cursor, bit arrays were swapped
18751         * Clipboard.cs: Removed obsolete MonoTODO attribute
18752
18753 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
18754
18755         * ComboBox.cs: fixes OnSelectedItemChanged
18756         * ControlBindingsCollection.cs: fixes item range check
18757
18758 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
18759
18760         * UpDownBase.cs:
18761                 - Calc preferred height properly
18762                 - Implement missing properties
18763                 
18764         * NumericUpDown.cs: Implement missing events
18765
18766 2005-05-19  Jackson Harper  <jackson@ximian.com>
18767
18768         * TabControl.cs: New method that resizes the tab pages before
18769         redrawing them. This as needed as the control is double buffered
18770         and sizing will not be recalculated unless ResizeTabPages is
18771         called.
18772         * TabPage.cs: Set base.Text instead of Text in the constructor so
18773         that UpdateOwner does not get called. Use the new Redraw method of
18774         TabControl instead of Refresh so the sizing is recalculated.
18775         * ThemeWin32Classic.cs: Draw the text for button tabs.
18776
18777 2005-05-19  Jackson Harper  <jackson@ximian.com>
18778
18779         * Control.cs: Paint control background images. Fix typo where
18780         PaintControlBackground was not getting called correctly.
18781
18782 2005-05-19  Peter Bartok  <pbartok@novell.com>
18783
18784         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
18785           I can investigate, apparently I broke FileDialog
18786
18787 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
18788
18789         * AxHost.cs: Some simple properties.
18790         * Control.cs: window must be accessible after ctor.
18791         * Form.cs: Added TransparencyKey property.
18792         * TextBoxBase.cs: Implemented Clear. Text property can be null.
18793         * XplatUIWin32.cs: SetBorderStyle implemented.
18794
18795 2005-05-18  Peter Bartok  <pbartok@novell.com>
18796
18797         * DataObject.cs: Entries are not global but particular to the
18798           DataObject, now it behaves that way
18799         * XplatUIWin32.cs: Implemented Clipboard methods
18800         * Clipboard.cs: Implemented
18801         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
18802         * XplatUIOSX.cs: Updated to final clipboard prototypes
18803         * XplatUIX11.cs: Implemented Clipboard methods
18804         * XplatUIDriver.cs: Updated to final clipboard prototypes
18805         * XplatUIStructs.cs:
18806           - Added BITMAPINFOHEADER struct
18807           - Added ClipboardFormats enum
18808         * X11Structs.cs:
18809           - Added ClipboardStruct
18810           - Added Atom enum items for clipboard types
18811           - Fixed atom types for Selection event structures
18812         * DataFormats.cs:
18813           - Added internal properties and methods for drivers to enumerate
18814             all known formats
18815           - Switched initialization method to allow drivers to assign their
18816             own IDs even for the MS predefined clipboard IDs
18817         * XplatUI.cs: Updated to final clipboard interface
18818
18819 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
18820         * PropertyGridView.cs: Fixed compiler warnings.
18821
18822 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
18823         * PropertyGrid.cs: Added some event calls
18824         * PropertyGridView.cs: Change drawing code to use double buffering
18825         * PropertyGridTextBox.cs: Changed Text property name
18826         * GridItem.cs: Added Bounds property.
18827         * GridEntry.cs: Added Bounds property.
18828
18829 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
18830
18831         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
18832         since GetType() may not return the correct type if the object is
18833         a remoting proxy.
18834
18835 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
18836
18837         * TreeNodeCollection.cs: fixes get/set item ranges
18838         
18839 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
18840
18841         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
18842                 
18843 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
18844
18845         * ComboBox.cs: Fix item range comparation
18846         * ListView.cs: Fix item range comparation
18847
18848 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
18849
18850         * FontDialog.cs:
18851           - Clear example panel when OnPaint is called
18852           - Better solution for displaying the example panel text
18853           - Select default indexes in the ListBoxes
18854
18855 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
18856
18857         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
18858
18859 2005-05-11  Peter Bartok  <pbartok@novell.com>
18860
18861         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
18862         * SelectionRangeConverter.cs: Implemented
18863         * PropertyGrid.cs: Fixed attribute value
18864         * Control.cs:
18865           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
18866           - Added Sebastien Pouliot's CAS Stack Propagation fixes
18867         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
18868           that's common to all drivers. First methods to go there are
18869           Sebastien Pouliot's CAS Stack Propagation helper methods
18870         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
18871           Sebastien Pouliot for CAS Stack Propagation
18872
18873 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
18874
18875         * OSXStructs.cs:
18876           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
18877
18878 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
18879
18880         * DataGridTextBoxColumn.cs: fixed some members
18881         * GridColumnStylesCollection.cs: indexed column is case insensitive
18882         * DataGridTableStyle.cs: fixes
18883         * ThemeWin32Classic.cs: add new theme parameter
18884         * Theme.cs: add new theme parameter
18885         * DataGridDrawingLogic.cs: Datagrid's drawing logic
18886         * DataGrid.cs: fixes, new internal properties, etc.
18887         * DataGridColumnStyle.cs: allows to set grid value
18888         *
18889
18890 2005-05-10  Peter Bartok  <pbartok@novell.com>
18891
18892         * AccessibleObject.cs:
18893           - Removed MonoTODO attribute on help, method is correct
18894           - Fixed Bounds property
18895         * AxHost.cs: Moved MonoTODO
18896         * ButtonBase.cs: Now setting AccessibleObject properties
18897         * RadioButton.cs: Setting proper AccessibleObject role
18898         * CheckBox.cs: Setting proper AccessibleObject role
18899         * ControlBindingsCollection.cs: Added properties, methods and attributes
18900         * DataFormats.cs: Fixed awkward internal API, and changed to enable
18901           userdefined DataFormats.Format items as well
18902         * ListControl.cs: Removed data_member from the public eye
18903         * OpenFileDialog.cs:
18904           - Made class sealed
18905           - Added missing attributes
18906         * SaveFileDialog.cs: Added missing attributes
18907         * ImageListStreamer.cs: Fixed code that caused warnings
18908         * LinkLabel.cs: Removed unreachable code
18909         * TreeView.cs: Fixed code that caused warnings
18910         * PropertyGridView.cs: Fixed code that caused warnings
18911         * GridColumnStylesCollection.cs: Added missing attributes
18912         * GridTableStylesCollection: Added missing attribute
18913         * PropertyManager: Added .ctor
18914         * SecurityIDType: Added
18915         * DataObject.cs: Implemented class
18916         * LinkArea.cs: Added missing attribute
18917
18918 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
18919
18920         * RadioButton.cs: call base method to allow to fire OnClick event
18921         * UpDownBase.cs: OnMouseUp call base method
18922         * CheckedListBox.cs: call base method before returning
18923         * TrackBar.cs: call base method before returning
18924         
18925
18926 2005-05-10  Peter Bartok  <pbartok@novell.com>
18927
18928         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
18929           for messages
18930
18931 2005-05-10  Peter Bartok  <pbartok@novell.com>
18932
18933         * DataFormats.cs: Implemented
18934         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
18935           XplatUIX11.cs: Added Clipboard APIs
18936         * XplatUIWin32.cs: Implemented Clipboard APIs
18937         * FolderBrowserDialog.cs: Added missing event, attributes
18938
18939 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
18940
18941         * CheckBox.cs: call base method to allow to fire OnClick event
18942
18943 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
18944
18945         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
18946
18947 2005-05-06  Peter Bartok  <pbartok@novell.com>
18948
18949         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
18950         * Screen.cs: Implemented
18951         * HelpNavigator.cs: Added
18952         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
18953           property
18954         * HelpProvider.cs: Implemented all we can do until we have a CHM
18955           help library (which means that "What's This" does work now)
18956
18957 2005-05-06  Jackson Harper  <jackson@ximian.com>
18958
18959         * XplatUIX11.cs: Fix waking up the main loop.
18960                 
18961 2005-05-05  Peter Bartok  <pbartok@novell.com>
18962
18963         * XplatUI.cs: Updated revision
18964         * Form.cs: Removed enless loop
18965         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
18966         * Label.cs (OnPaint): Added call to base.OnPaint()
18967         * ToolTip.cs: Made ToolTipWindow reusable for other controls
18968         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
18969         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
18970         * AxHost.cs: Added
18971         * ButtonBase.cs: Moved base.OnPaint() call to end of method
18972         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
18973           to ToolTip.ToolTipWindow for drawing and size methods; this allows
18974           reuse of ToolTipWindow by other controls
18975         * SizeGrip.cs: Moved base.OnPaint() call to end of method
18976         * XplatUIX11.cs: Now clipping drawing area (experimental)
18977         * PictureBox.cs: Moved base.OnPaint() call to end of method
18978         * Theme.cs: Fixed ToolTip abstracts to match new format
18979         * ErrorProvider.cs: Implemented
18980
18981 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
18982
18983         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
18984         * LinkLabel.cs:
18985                 - Adds cursors
18986                 - Handles focus
18987                 - Implements LinkBehavior
18988                 - Fixes many issues
18989
18990 2005-05-03  Jackson Harper  <jackson@ximian.com>
18991
18992         * ListView.cs: Calculate the scrollbar positioning on resize and
18993         paint, so they get put in the correct place.
18994
18995 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
18996
18997         * ColorDialogs.cs: The small color panels are now handled by
18998           SmallColorControl. This fixes drawing of the focus rectangle
18999           and adds a 3D border.
19000
19001 2005-05-03  Peter Bartok  <pbartok@novell.com>
19002
19003         * Control.cs: Modified version of Jonathan Chamber's fix for
19004           double-buffering
19005
19006 2005-05-03  Jackson Harper  <jackson@ximian.com>
19007
19008         * ListView.cs: Remove redraw variable. Control now handles whether
19009         or not a redraw needs to be done, and will only raise the paint
19010         event if redrawing is needed.
19011
19012 2005-05-03  Jackson Harper  <jackson@ximian.com>
19013
19014         * Splitter.cs: No decorations for the splitter form. Cache the
19015         hatch brush.
19016
19017 2005-05-03  Jackson Harper  <jackson@ximian.com>
19018
19019         * TreeView.cs: Use dashed lines to connect nodes. Use the
19020         ControlPaint method for drawing the focus rect instead of doing
19021         that in treeview.
19022
19023 2005-05-02  Peter Bartok  <pbartok@novell.com>
19024
19025         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
19026
19027 2005-04-29  Jackson Harper  <jackson@ximian.com>
19028
19029         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
19030         entire image buffer. Just clear the clipping rectangle.
19031
19032 2005-04-29  Jackson Harper  <jackson@ximian.com>
19033
19034         * ThemeWin32Classic.cs: Don't draw list view items that are
19035         outside the clipping rectangle.
19036
19037 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
19038
19039         * ListBox.cs: added horizontal item scroll
19040
19041 2005-04-29  Jackson Harper  <jackson@ximian.com>
19042
19043         * ThemeWin32Classic.cs: Remove some old debug code that was
19044         causing flicker with the new double buffering code.
19045
19046 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
19047
19048         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
19049         behave like combobox and comboboxlist (still not sure if this is
19050         correct though).
19051
19052 2005-04-28  Jackson Harper  <jackson@ximian.com>
19053
19054         * ThemeWin32Classic.cs: Don't fill the middle of progress
19055         bars. This fills areas outside of the clip bounds that don't need
19056         to be filled.
19057
19058 2005-04-28  Jackson Harper  <jackson@ximian.com>
19059
19060         * Control.cs: Don't expose functionality to touch the image buffers.
19061         * ProgressBar.cs:
19062         * ListView.cs: We do not need to (and no longer can) manipulate
19063         the image buffers directly. All of this is handled by Control.
19064
19065 2005-04-28  Peter Bartok  <pbartok@novell.com>
19066
19067         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
19068           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
19069           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
19070
19071 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
19072
19073         * Combobox:
19074                 - Adjust control's height for non-simple comboboxes (bug fix)
19075                 - Remove dead code
19076         * MenuAPI.cs: remove unused var
19077         * ScrollBar.cs: remove unsed var
19078                  
19079         * ListBox.cs: unselect items when clearing
19080
19081 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
19082
19083         * ListControl.cs: honors OnPositionChanged and default Selected Item
19084         * ListBox.cs: unselect items when clearing
19085
19086 2005-04-27  Jackson Harper  <jackson@ximian.com>
19087
19088         * X11Keyboard.cs: Initialize a default keyboard and give a warning
19089         if a "correct" keyboard is not found. This will make us not crash,
19090         but might give some users bad keyboard layouts...seems to be the
19091         same thing rewind does.
19092
19093 2005-04-27  Jackson Harper  <jackson@ximian.com>
19094
19095         * BindingManagerBase.cs: Attach the current/position changed
19096         handlers to their respective events.
19097
19098 2005-04-27  Jackson Harper  <jackson@ximian.com>
19099
19100         * Control.cs: Make sure that the first WM_PAINT does a full draw,
19101         not just a blit.
19102         * ThemeWin32Classic.cs: Don't fill the background for picture
19103         boxes. This could overright user drawing.
19104         * ComboBox.cs: Just fill the clipping rect not the entire client
19105         rect when drawing the background. This prevents pieces of the
19106         image buffer from getting overwritten and is theoretically faster.
19107
19108 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
19109
19110         * ComboBox.cs: Databinding support fixes, fire missing events
19111         * ListControl.cs: implement missing methods and properties, fixes
19112         * ThemeWin32Classic.cs: Databiding support on Drawing
19113         * CheckedListBox.cs: Databinding support fixes, fire missing events
19114         * ListBox.cs: Databinding support fixes, fire missing events
19115         
19116 2005-04-25  Peter Bartok  <pbartok@novell.com>
19117
19118         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
19119
19120 2005-04-25  Jackson Harper  <jackson@ximian.com>
19121
19122         * TreeView.cs: Use the horizontal scrollbars height not width when
19123         determining how much of the client area is available.
19124
19125 2005-04-25  Jackson Harper  <jackson@ximian.com>
19126
19127         * Control.cs: Double buffering is handled differently now. As per
19128         the spec, the extra buffer is created in the WM_PAINT message and
19129         passed down to the control's drawing code.
19130         * GroupBox.cs:
19131         * Label.cs:
19132         * CheckBox.cs:
19133         * ProgressBar.cs:
19134         * RadioButton.cs:
19135         * ColorDialog.cs:
19136         * ComboBox.cs:
19137         * PropertyGridView.cs:
19138         * UpDownBase.cs:
19139         * MessageBox.cs:
19140         * MenuAPI.cs:
19141         * ListView.cs:
19142         * ButtonBase.cs:
19143         * SizeGrip.cs:
19144         * ScrollBar.cs:
19145         * ListBox.cs:
19146         * TrackBar.cs:
19147         * ToolBar.cs:
19148         * PictureBox.cs:
19149         * DateTimePicker.cs:
19150         * StatusBar.cs:
19151         * TreeView.cs: Update to new double buffering system.
19152         * MonthCalendar.cs: Uncomment block, as Capture is now
19153         working. Update to new double buffering
19154         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
19155         * PaintEventArgs.cs: New internal method allows us to set the
19156         graphics object. This is used for double buffering.
19157         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
19158         rectangle. The internal paint_area var has been removed from
19159         StatusBar. The clipping rect should be used instead.
19160         * Theme.cs: Give the PictureBox drawing method a clipping rect.
19161         * TabPage.cs: The RefreshTabs method was removed, so just call the
19162         tab controls Refresh method now.
19163         * TabControl.cs: Update to new double buffering. Make sure the
19164         handle is created before sizing the tab pages, otherwise we will
19165         get stuck in a loop.
19166
19167 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
19168
19169         * LinkLabel.cs: Fix typo, bug #74719; patch
19170           from Borja Sanchez Zamorano
19171
19172 2005-04-22  Jackson Harper  <jackson@ximian.com>
19173
19174         * TreeNode.cs: Implement Handle stuff.
19175         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
19176
19177 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
19178
19179         * DataGridTextBoxColumn.cs: call base constructors, fixes
19180         * GridColumnStylesCollection.cs: missing events, methods, and functionality
19181         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
19182         * DataGridTableStyle.cs: implements create default column styles
19183         * DataGridBoolColumn.cs: which types can handle
19184         * DataGrid.cs: missing methods, fixes, new functionality
19185         * DataGridColumnStyle.cs: fixes
19186
19187 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
19188         * FolderBrowserDialog.cs:
19189         - Use a thread to fill the TreeView
19190         - Adjusted some sizes
19191
19192 2005-04-19  Peter Bartok  <pbartok@novell.com>
19193
19194         * LinkLabel.cs: (Re-)create the pieces when setting the Text
19195           property. Fixes #74360.
19196
19197 2005-04-19  Jackson Harper  <jackson@ximian.com>
19198
19199         * XEventQueue.cs: Lock when getting the lockqueue size.
19200         * PictureBox.cs: Call base OnPaint
19201         
19202 2005-04-19  Peter Bartok  <pbartok@novell.com>
19203
19204         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
19205           messages were no longer being processed (this broke BeginInvoke)
19206
19207           
19208 2005-04-18  Jackson Harper  <jackson@ximian.com>
19209
19210         * TreeView.cs: buglet that caused node images to get drawn
19211         regardless of whether or not they were in the clipping rectangle.
19212
19213 2005-04-18  Jackson Harper  <jackson@ximian.com>
19214
19215         * CurrencyManager.cs: There are four rules for GetItemProperties:
19216         - If the type is an array use the element type of the array
19217         - If the type is a typed list, use the type
19218         - If the list contains an Item property that is not an object, use
19219         that property
19220         - use the first element of the list if there are any elements in
19221         the list.
19222         
19223 2005-04-17  Jackson Harper  <jackson@ximian.oom>
19224
19225         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
19226         click. This handles offsets for scrolling properly and reduces
19227         memory. Also fixed GetNode to not offset now that TopNode works
19228         properly.
19229         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
19230         
19231 2005-04-17  Jackson Harper  <jackson@ximian.com>
19232
19233         * CursorConverter.cs: Initial implementation.
19234
19235 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
19236
19237         * ListControl.cs: work towards complex data binding support on ListControl
19238         * CurrencyManager.cs: work towards complex data binding support on ListControl
19239         * ListBox.cs: work towards complex data binding support on ListControl
19240
19241
19242 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
19243
19244         * GridTableStylesCollection.cs: fixes name and constructor
19245         * DataGridTableStyle.cs: fixes
19246         * DataGridBoolColumn.cs: fixes names and constructors
19247         * DataGrid.cs: define methods and properties. Some init implementations
19248         * DataGridCell.cs: define methods and properties. Some init implementations
19249         * GridTablesFactory.cs: Define methods and properties
19250
19251 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
19252
19253         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
19254         graphics port changes.  We still want the coordinates in global screen
19255         coordinates.
19256
19257 2005-04-14  Jackson Harper  <jackson@ximian.com>
19258
19259         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
19260         check plus minus or checkbox clicks unless those features are enabled.
19261
19262 2005-04-14  Jackson Harper  <jackson@ximian.com>
19263
19264         * TreeView.cs: Add methods for setting the top and bottom visible
19265         nodes. TreeNode::EnsureVisible uses these methods.
19266         * TreeNode.cs: Implement EnsureVisible
19267
19268 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
19269
19270         * Form.cs: Pospone menu assignation if the window has not been created yet
19271         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
19272         size and position
19273
19274 2005-04-12  Jackson Harper  <jackson@ximian.com>
19275
19276         * TreeView.cs: Set the TopNode properly when scrolling
19277         occurs. This has the added benifit of reducing the amount of
19278         walking that needs to be done when drawing. Also removed an old
19279         misleading TODO.
19280         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
19281         
19282 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
19283
19284         * Timer.cs: fixes interval setting when the timer is already enabled
19285         
19286 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
19287
19288         * FolderBrowserDialog.cs: First approach
19289
19290 2005-04-09  Peter Bartok  <pbartok@novell.com>
19291
19292         * FolderBrowserDialog: Added
19293
19294 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
19295
19296         * LinkLabel.cs: move drawing code into the theme
19297         * ThemeWin32Classic.cs: drawing code and painting background bugfix
19298         * Theme.cs: define DrawLinkLabel method
19299
19300 2005-04-05  Jackson Harper  <jackson@ximian.com>
19301
19302         * BindingContext.cs: Use weak references so these bad actors don't
19303         stay alive longer then they need to.
19304
19305 2005-04-05  Jackson Harper  <jackson@ximian.com>
19306
19307         * ListControl.cs: Basic implementation of complex databinding.
19308         * ComboBox.cs:
19309         * ListBox.cs: Add calls to ListControl databinding methods.
19310
19311 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
19312
19313         * FileDialog.cs:
19314           - Don't change PopupButtonState to Normal when the
19315             PopupButton gets pressed several times.
19316           - Renamed ButtonPanel to PopupButtonPanel
19317
19318 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
19319
19320         * ColorDialog.cs: Use cached objects instead of creating them
19321         * LinkLabel.cs: Use cached objects instead of creating them
19322         * Splitter.cs: Use cached objects instead of creating them
19323         * FontDialog.cs: Use cached objects instead of creating them
19324         * PropertyGridView.cs: Use cached objects instead of creating them
19325         * MessageBox.cs: Use cached objects instead of creating them
19326         * FileDialog.cs: Use cached objects instead of creating them
19327         * ThemeWin32Classic.cs: Use cached objects instead of creating them
19328         * TreeView.cs: Use cached objects instead of creating them
19329         
19330 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
19331
19332         * Control.cs: use Equals to compare the font since no == op
19333         * ScrollBar.cs: use Equals to compare the font since no == op
19334
19335 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
19336
19337         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
19338
19339 2005-04-01  Jackson Harper  <jackson@ximian.com>
19340
19341         * Binding.cs: Implement IsBinding.
19342         * BindingManagerBase.cs:
19343         * PropertyManager.cs:
19344         * CurrencyManager.cs: Add IsSuspended property.
19345
19346 2005-04-01  Jackson Harper  <jackson@ximian.com>
19347
19348         * Binding.cs: Had some IsAssignableFrom calls backwards.
19349
19350 2005-04-01  Jackson Harper  <jackson@ximian.com>
19351
19352         * Binding.cs: Handle null data members when pulling data.
19353         * PropertyManager.cs: Handle the data member being a property that
19354         does not exist.
19355
19356 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
19357
19358         * DataGridTextBoxColumn.cs: fixes signature
19359         * DataGrid.cs: calls right constructor
19360
19361 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
19362
19363         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
19364         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
19365         * GridTableStylesCollection.cs: implements GridTableStylesCollection
19366         * DataGridTableStyle.cs: implements DataGridTableStyle
19367         * DataGridBoolColumn.cs: implements DataGridBoolColumn
19368         * DataGridTextBox.cs: implements DataGridTextBox
19369         * DataGridColumnStyle.cs: implements DataGridColumnStyle
19370
19371 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
19372
19373         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
19374
19375 2005-03-29  Peter Bartok  <pbartok@novell.com>
19376
19377         * Application.cs:
19378           - Properly implemented CompanyName property
19379           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
19380             returns a path that includes CompanyName, ProductName and
19381             Version (fixes bug #70330)
19382
19383 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
19384
19385         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
19386           fixes bug #72588.
19387
19388 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
19389
19390         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
19391         
19392           - Added ReadOnly CheckBox
19393           - Further refactoring: moved some code from Open-/SaveFileDialog
19394             to FileDialog
19395
19396 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
19397
19398         * OpenFileDialog.cs: Fixed CheckFileExists
19399         * FileDialog.cs:
19400           Moved FileView and DirComboBox outside FileDialog class.
19401           They can now be used outside FileDialog
19402
19403 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
19404
19405         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
19406         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
19407
19408 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
19409
19410         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
19411           - Added missing CreatePrompt property in SaveDialog
19412           - Overall SaveDialog handling should be better now
19413           - Added non standard ShowHiddenFiles property
19414           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
19415           - Added InitialDirectory and RestoreDirectory support
19416
19417 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
19418
19419         * FileDialog.cs: Made dirComboBox usable
19420
19421 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
19422
19423         * FileDialog.cs: Added Filter support (case sensitiv)
19424
19425 2005-03-24  Jackson Harper  <jackson@ximian.com>
19426
19427         * TabControl.cs: Need a couple more pixels for the lines.
19428
19429 2005-03-23  Jackson Harper  <jackson@ximian.com>
19430
19431         * TabControl.cs: Give the tab page focus when it is selected.
19432
19433 2005-03-23  Jackson Harper  <jackson@ximian.com>
19434
19435         * TabControl.cs: Account for the drawing of tabs borders when
19436         invalidating. If the slider was clicked dont do click detection on
19437         the tabs.
19438
19439 2005-03-23  Jackson Harper  <jackson@ximian.com>
19440
19441         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
19442
19443 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
19444
19445         * CategoryGridEntry.cs: Added
19446         * GridItem.cs: Added helper properties
19447         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
19448         * GridEntry.cs: Updated code for collection
19449         * PropertyGrid.cs: Cleaned up some formatting
19450         * PropertyGridView.cs: Added drop down functionality for enums.
19451         * GridItemCollection.cs: Added enumerator logic
19452         * PropertyGridEntry.cs: Added
19453
19454 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
19455
19456         * FileDialog.cs:
19457           - Removed unnecessary commented code
19458           - Fixed handling for entering the filename manually in the combobox
19459
19460 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
19461
19462         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
19463
19464 2005-03-18  Peter Bartok  <pbartok@novell.com>
19465
19466         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
19467           them being touching the border
19468
19469 2005-03-18  Peter Bartok  <pbartok@novell.com>
19470
19471         * TextControl.cs: Quick hack to center text better
19472
19473 2005-03-18  Peter Bartok  <pbartok@novell.com>
19474
19475         * ControlPaint.cs:
19476           - Don't throw NotImplemented exceptions, just print a notice once
19477             instead (requested by Miguel). This makes running existing SWF
19478             apps a bit easier
19479         * Control.cs:
19480           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
19481           - Added context menu trigger on right click
19482         * Panel.cs: Trigger invalidate on resize
19483         * StatusBar.cs:
19484           - Removed old double-buffer drawing
19485           - Added ResizeRedraw style to force proper update of statusbar
19486         * ListView.cs:
19487           - Removed debug output
19488         * ThemeWin32Classic.cs:
19489           - Fixed drawing of status bar, now draws Text property if there
19490             are no defined panels
19491
19492 2005-03-18  Jackson Harper  <jackson@ximian.com>
19493
19494         * ImageList.cs: When the image stream is set pull all the images
19495         from it.
19496         * ImageListStreamer.cs: Implement reading image list streams.
19497
19498 2005-03-18  Peter Bartok  <pbartok@novell.com>
19499
19500         * ThemeWin32Classic.cs (DrawPictureBox):
19501           - Fixed calculations for centered drawing
19502           - Fixed drawing for normal mode, not scaling the image on normal
19503
19504 2005-03-18  Peter Bartok  <pbartok@novell.com>
19505
19506         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
19507           textbox
19508         * FileDialog.cs:
19509           - Made Open/Save button the accept button for FileDialog
19510           - Tied the cancel button to the IButtonControl cancel button
19511           - Save/Open now properly builds the pathname
19512           - Now handles user-entered text
19513           - Preventing crash on right-click if no item is selected
19514           - Fixed Text property, now uses contents of textbox
19515           - Fixed SelectedText property, now just returns the text part that
19516             is selected in the text box
19517
19518 2005-03-18  Jackson Harper  <jackson@ximian.com>
19519
19520         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
19521         rect, make sure to de-adjust the interior rect after drawing the
19522         tab text.
19523
19524 2005-03-18  Peter Bartok  <pbartok@novell.com>
19525
19526         * MenuAPI.cs: Remove menu *before* executing selected action to
19527           prevent the menu from 'hanging around'
19528           
19529 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
19530
19531         * XplatUIOSX.cs: Implemented WorkingArea property
19532
19533 2005-03-17  Peter Bartok  <pbartok@novell.com>
19534
19535         * XplatUIX11.cs: Fixed menu coord calculations
19536         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
19537           for calculating offsets
19538
19539 2005-03-17  Peter Bartok  <pbartok@novell.com>
19540
19541         * Hwnd.cs: Do not consider menu presence for default client
19542           rectangle location/size
19543         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
19544           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
19545           translation functions
19546         * FileDialog.cs: Fixed (what I presume is a) typo
19547
19548 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
19549
19550         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
19551           X access (avoids X-Async errors)
19552
19553 2005-03-16  Jackson Harper  <jackson@ximian.com>
19554
19555         * TabControl.cs: Raise the SelectedIndexChanged event.
19556
19557 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
19558
19559         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
19560           - Removed vertical ToolBar and replaced it with a custom panel
19561             (desktop and home button already work)
19562           - Added Help button (some controls get resized or relocated then)
19563           - Draw correct text depending on Open or Save.
19564           - Fixed some typos...
19565
19566 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
19567
19568         * ScrollBar.cs:
19569           - Only change Maximum and Minimum when need it (bug fix)
19570
19571 2005-03-15  Peter Bartok  <pbartok@novell.com>
19572
19573         * Form.cs: Use Handle for icon, to trigger creation if
19574           the window does not yet exist
19575         * Control.cs:
19576           - CanSelect: Slight performance improvement
19577           - Focus(): Preventing possible recursion
19578           - Invalidate(): Removed ControlStyle based clear flag setting
19579           - WM_PAINT: fixed logic for calling OnPaintBackground
19580           - WM_ERASEBKGND: Fixed logic, added call to new driver method
19581             EraseWindowBackground if the control doesn't paint background
19582         * XplatUIWin32.cs:
19583           - Moved EraseWindowBackground() method to internal methods
19584           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
19585             is sent via SendMessage on BeginPaint call on Win32
19586         * XplatUIX11.cs:
19587           - Added EraseWindowBackground() method
19588           - No longer sends WM_ERASEBKGND on .Expose, but on call to
19589             PaintEventStart, which more closely matches Win32 behaviour
19590           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
19591           - Fixed SetFocus() to properly deal with client and whole windows
19592         * Hwnd.cs: Added ErasePending property
19593         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
19594         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
19595
19596 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
19597
19598         * XplatUIOSX.cs:
19599           - Fix hard loop when timers exist.
19600           - Fix bugs with middle and right click for 3 button mice.
19601
19602 2005-03-11  Peter Bartok  <pbartok@novell.com>
19603
19604         * XplatUIX11.cs:
19605           - get_WorkingArea: Need to call X directly, GetWindowPos only
19606             returns cached data now
19607           - Added sanity check to GetWindowPos hwnd usage
19608
19609 2005-03-11  Jackson Harper  <jackson@ximian.com>
19610
19611         * BindingManagerBase.cs: This method isn't used anymore as
19612         PullData now updates the data in the control.
19613
19614 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
19615
19616         * Form.cs: fixes menu drawing on X11
19617         * MenuAPI.cs:  fixes menu drawing on X11
19618
19619 2005-03-11  Peter Bartok  <pbartok@novell.com>
19620
19621         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
19622           from Jonathan Gilbert; should fix bug #73606
19623         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
19624           in Screen coordinates. Thanks, Jordi.
19625         * Form.cs: Added missing attribute
19626
19627 2005-03-11  Peter Bartok  <pbartok@novell.com>
19628
19629         * Form.cs:
19630           - Rudimentary Mdi support
19631           - Removed outdated FormParent code
19632           - Implemented lots of missing properties and methods, still missing
19633             transparency support
19634           - Added missing attributes
19635           - Implemented support for MaximumBounds
19636           - Added firing of various events
19637         * XplatUI.cs: Added SetIcon() method
19638         * XplatUIDriver.cs: Added SetIcon() abstract
19639         * XplatUIOSX.cs: Stubbed out SetIcon() method
19640         * XplatUIX11.cs:
19641           - Implemented SetIcon() support
19642           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
19643           - Switched to unix line endings
19644         * XplatUIWin32.cs:
19645           - Made POINT internal so for can access it as part of MINMAX
19646           - Implemented SetIcon() support
19647           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
19648             native Mdi support again, might have to go managed)
19649         * Control.cs: Now fires the StyleChanged event
19650         * MdiClient.cs: Added; still mostly empty
19651
19652 2005-03-10  Peter Bartok  <pbartok@novell.com>
19653
19654         * SaveFileDialog.cs: Added emtpy file
19655
19656 2005-03-08  Peter Bartok  <pbartok@novell.com>
19657
19658         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
19659           in turn triggers OnCreateContro) when creating a handle for the
19660           first time.
19661         * TextControl.cs: Fixed endless loop in certain cases when
19662           replacing the current selection
19663
19664 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
19665
19666         * ScrollBar.cs:
19667           - Honors NewValue changes in Scroll events allowing apps to change it
19668           - Adds First and Last Scroll events
19669           - Fixes Thumb events
19670
19671 2005-03-07  Peter Bartok  <pbartok@novell.com>
19672
19673         * Hwnd.cs: Added DefaultClientRectangle property
19674         * XplatUI.cs: Now using the X11 driver Where() method, which provides
19675           more detailed debug information
19676         * XplatUIX11.cs:
19677           - Fixed size-change feedback loop, where we would pull an old size
19678             off the queue and mistakenly change our window's size to an
19679             earlier value
19680           - Now compressing ConfigureNotify events, to reduce looping and
19681             redraw issues
19682         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
19683           is called
19684
19685 2005-03-07  Jackson Harper  <jackson@ximian.com>
19686
19687         * Binding.cs: Push data pushes from data -> property. Check if the
19688         property is readonly when attempting to set it.
19689
19690 2005-03-07  Jackson Harper  <jackson@ximian.com>
19691
19692         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
19693         instead of IsSubclassOf. Pulling data now sets the value on the
19694         control.
19695         * PropertyManager.cs:
19696         * CurrencyManager.cs: Just need to pull data when updating now,
19697         because PullData will set the value on the control.
19698
19699 2005-03-04  Jackson Harper  <jackson@ximian.com>
19700
19701         * Binding.cs: Implement data type parsing and converting on pulled
19702         data. TODO: Are there more ways the data can be converted?
19703
19704 2005-03-04  Jackson Harper  <jackson@ximian.com>
19705
19706         * Binding.cs: Support <Property>IsNull checks. Also bind to the
19707         controls Validating method so we can repull the data when the
19708         control loses focus.
19709
19710 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
19711
19712         * ColumnHeader.cs:
19713           - Fixes null string format
19714           
19715         * ListView.cs:
19716           - Adds enum type checks
19717           - Fixes redrawing and recalc need after changing some properties
19718           - Fixes on focus_item set after the event
19719           - Fixes adding columns after the control has been created
19720           
19721         * ThemeWin32Classic.cs:
19722           - Fixes CheckBox focus rectangle
19723           - Fixes ColumnHeader drawing
19724
19725
19726 2005-03-03  Jackson Harper  <jackson@ximian.com>
19727
19728         * Binding.cs: Bind to <Property>Changed events so we can detect
19729         when properties are changed and update the data.
19730
19731 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
19732
19733         * ImageList.cs:
19734           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
19735           - Fixes ImageList constructor with ImageList container
19736           - Fixes image scaling (wrong parameters at DrawImage)
19737
19738 2005-02-02  Jackson Harper  <jackson@ximian.com>
19739
19740         * Binding.cs: Make property searches case-insensitive. Eliminate
19741         some duplicated code.
19742
19743 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
19744
19745         * ComboBox.cs:
19746                 - Handle focus event
19747                 - Fix scrollbar events
19748                 - Discard highlighted item if remove it
19749                 - Fixes SelectedItem with strings
19750
19751 2005-03-01  Peter Bartok  <pbartok@novell.com>
19752
19753         * Control.cs:
19754           - Fixed Visible property, now follows (once again) parent chain
19755             to return false if any control in the chain is visible=false
19756           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
19757           - Fixed several places where is_visible instead of Visible was used
19758           - Implemented FIXME related to focus selection when setting focused
19759             control to be invisible
19760
19761         * XplatUIWin32.cs: Now using proper method to find out if window is
19762           visible. Thanks to Jordi for pointing it out
19763
19764 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
19765
19766         * ComboBox.cs: show/hide scrollbar instead of creating it
19767
19768 2005-02-27  Jackson Harper  <jackson@ximian.com>
19769
19770         * CurrencyManager.cs: Add PositionChanged stuff.
19771
19772 2005-02-27  Peter Bartok  <pbartok@novell.com>
19773
19774         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
19775         * XplatUIOSX.cs: Added GetMenuOrigin() stub
19776         * XplatUIWin32.cs: Implemented GetMenuOrigin()
19777         * XplatUIX11.cs:
19778           - Implemented GetMenuDC()
19779           - Implemented GetMenuOrigin()
19780           - Implemented ReleaseMenuDC()
19781           - Implemented generation of WM_NCPAINT message
19782           - Implemented generation and handling of WM_NCCALCSIZE message
19783         * Form.cs: Added debug helper message for Jordi's menu work
19784         * Hwnd.cs:
19785           - Modified ClientRect property; added setter, fixed getter to handle
19786             setting of ClientRect
19787           - Added MenuOrigin property
19788
19789 2005-02-26  Peter Bartok  <pbartok@novell.com>
19790
19791         * XplatUIX11.cs:
19792           - Destroys the caret if a window that's being destroyed contains it
19793           - Ignores expose events coming from the X11 queue for windows that
19794             already are destroyed
19795           - Now uses the proper variable for handling DestroyNotify, before we
19796             marked the wrong window as destroyed
19797           - Improved/added some debug output
19798
19799 2005-02-26  Peter Bartok  <pbartok@novell.com>
19800
19801         * X11Keyboard.cs: Fixes to work on 64bit systems
19802
19803 2005-02-26  Peter Bartok  <pbartok@novell.com>
19804
19805         * Control.cs:
19806           - Now calling OnHandleDestroyed from DestroyHandle()
19807             instead of Dispose()
19808           - Removed bogus call to controls.Remove() from DestroyHandle()
19809
19810 2005-02-26  Peter Bartok  <pbartok@novell.com>
19811
19812         * Control.cs: Properly destroy child windows when our handle is
19813           destroyed
19814
19815 2005-02-25  Peter Bartok  <pbartok@novell.com>
19816
19817         * XplatUI.cs:
19818           - Added 'DriverDebug' define to allow tracing XplatUI API calls
19819           - Alphabetized Static Methods and Subclasses
19820
19821         * XplatUIX11.cs:
19822           - Added XException class to allow custom handling of X11 exceptions
19823           - Created custom X11 error handler, tied into XException class
19824           - Added support for MONO_XEXCEPTIONS env var to allow the user
19825             to either throw an exception on X errors or continue running
19826             after displaying the error
19827           - Added handling of DestroyNotify message
19828           - Added handler for CreateNotify message (still disabled)
19829           - Improved (tried to at least) Where method to provide file and lineno
19830         * X11Structs.cs:
19831           - Added XErrorHandler delegate
19832           - Added XRequest enumeration (to suppor translation of errors)
19833
19834 2005-02-25  Jackson Harper  <jackson@ximian.com>
19835
19836         * PropertyManager.cs: Implement editing features
19837         * CurrencyManager.cs:
19838         * Binding.cs: First attempt at UpdateIsBinding
19839         * BindingManagerBase.cs: Call UpdateIsBinding before
19840         pushing/pulling data.
19841
19842 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
19843
19844         * MenuAPI.cs: Respect disabled items
19845         * ThemeWin32Classic.cs
19846                 - Caches ImageAttributes creation for DrawImageDisabled
19847                 - Fixes vertical menu line drawing
19848                 - Draws disabled arrows in disable menu items
19849
19850 2005-02-24  Peter Bartok  <pbartok@novell.com>
19851
19852         * Hwnd.cs:
19853           - Added UserData property to allow associating arbitrary objects
19854             with the handle
19855           - Fixed leak; now removing Hwnd references from static windows array
19856         * XplatUIWin32.cs:
19857           - Fixed Graphics leak in PaintEventEnd
19858           - Removed usage of HandleData, switched over to Hwnd class
19859         * HandleData.cs: Removed, obsoleted by Hwnd.cs
19860
19861 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
19862
19863         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
19864         * ScrollBar.cs: Fixes bug
19865         * TrackBar.cs: removes death code, clipping, mimize refreshes,
19866          keyboard navigation enhancements
19867
19868 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
19869
19870         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
19871         * GroupBox.cs: Add control styles
19872         * Label.cs: Add control styles
19873         * UpDownBase.cs: Add control styles
19874         * ListBox.cs: Add control styles
19875         * XplatUIWin32.cs: Fixes wrong parameter order
19876
19877
19878 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
19879
19880         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
19881
19882 2005-02-23  Jackson Harper  <jackson@ximian.com>
19883
19884         * PropertyManager.cs: Implement property binding. This doesn't
19885         seem to work yet though as (I think) there are some bugs in
19886         System.ComponentModel.PropertyDescriptor.
19887         * BindingContext.cs: Use new PropertyManager constructor.
19888
19889 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
19890
19891         * ProgressBar.cs: use clip region in ProgressBar
19892         * ThemeWin32Classic.cs: use clip region in ProgressBar
19893
19894 2004-02-22  Jackson Harper  <jackson@ximian.com>
19895
19896         * BindingsCollection.cs: Remove some debug code.
19897
19898 2005-02-22  Jackson Harper  <jackson@ximian.com>
19899
19900         * BindingContext.cs:
19901         * ControlBindingsCollection.cs:
19902         * CurrencyManager.cs:
19903         * Binding.cs:
19904         * BindingManagerBase.cs: Initial implementation
19905         * BindingsCollection.cs: Add an internal contains method that the
19906         BindingManagerBase uses to ensure bindings aren't added twice to
19907         the collection.
19908         * PropertyManager.cs: Stubbed out.
19909         * Control.cs:
19910         * ContainerControl.cs: Hook up databinding
19911         
19912 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
19913
19914         * XplatUIOSX.cs:
19915           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
19916           Fixed Invalidate/Update chain.
19917           Fixed tons of other minor bugs (this is almost a complete rewrite).
19918
19919 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
19920
19921         * ComboBox.cs: do subcontrol creation when the control is created
19922
19923 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
19924
19925         * Label.cs: fixes image drawing (image and imagelist)
19926         * ThemeWin32Classic.cs: cache brushes
19927         
19928 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
19929
19930         * Form.cs: Move menu drawing code to Theme class
19931         * ComboBox.cs: Move ComboBox drawing code to Theme class
19932         * MenuItem.cs: Move menu drawing code to Theme class
19933         * MenuAPI.cs: Move menu drawing code to Theme class
19934         * ThemeWin32Classic.cs: New methods
19935         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
19936         * ListBox.cs: Move Listbox drawing code to Theme class
19937         * Theme.cs: New methods
19938
19939 2005-02-20  Peter Bartok  <pbartok@novell.com>
19940
19941         * Control.cs:
19942           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
19943             only process mnemonics on those)
19944           - Fixed event sequence for key handling; first calling
19945             ProcessKeyEventArgs now
19946         * TextBoxBase.cs:
19947           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
19948             for processing non-character keys
19949           - Fixed WM_CHAR to generate proper event sequence before processing
19950         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
19951           generation
19952
19953 2005-02-19  Peter Bartok  <pbartok@novell.com>
19954
19955         * UserControl.cs: Added TextChanged event; added attributes
19956         * SizeGrip.cs: Implemented resizing and optional display of grip
19957         * Form.cs: Fixed attribute
19958         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
19959           Changed meaning of ScrollWindow bool argument; instead of the
19960           clear attribute (which will be true usually anyway), it gives the
19961           option of moving child controls as well.
19962         * XplatUIX11.cs:
19963           - Changed to match new ScrollWindow argument
19964           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
19965             now handles the implicit parent window a WM puts around us
19966         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
19967           to work)
19968         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
19969         * TreeView.cs: Adjusted to new ScrollWindow arguments
19970
19971 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
19972
19973         * Form.cs: Menu integration with non-client area
19974         * MenuItem.cs: Menu integration with non-client area
19975         * MenuAPI.cs: Menu integration with non-client area
19976
19977 2005-02-18  Peter Bartok  <pbartok@novell.com>
19978
19979         * MethodInvoker.cs: Added
19980         * MdiLayout.cs: Added
19981         * SendKeys.cs: Started implementation
19982         * ErrorIconAlignment.cs: Added
19983
19984 2005-02-18  Peter Bartok  <pbartok@novell.com>
19985
19986         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
19987         * Form.cs: Added handling for Menu-related Non-client messages
19988
19989 2005-02-17  Peter Bartok  <pbartok@novell.com>
19990
19991         * UpDownBase.cs: Fixed typo, compilation errors
19992         * DomainUpDown.cs: Fixed attribute value
19993
19994 2005-02-16  Miguel de Icaza  <miguel@novell.com>
19995
19996         * UpDownBase.cs: Attach entry events.
19997         Propagate events.
19998         Add ForeColor property, Focused, InterceptArrowKeys (interception
19999         does not work yet).
20000
20001 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
20002
20003         * Form.cs:
20004                 - Redraw non client are on Setmenu
20005                 - Calc proper menu starting point
20006
20007 2005-02-17  Peter Bartok  <pbartok@novell.com>
20008
20009         * Application.cs: Fixed message_filter check
20010
20011 2005-02-17  Peter Bartok  <pbartok@novell.com>
20012
20013         * Application.cs: Now calls registered message filters
20014         * DockStyle.cs: Fixed attribute
20015         * Form.cs: Fixed attribute
20016         * Menu.cs: Fixed attribute
20017         * ToolTip.cs: Fixed attribute
20018         * TreeNode.cs: Added missing attributes and arranged in regions
20019         * PropertyGrid.cs: Fixed signatures
20020         * TreeNodeCollection.cs: Added attributes
20021         * Splitter.cs: Added missing attributes; arranged into regions
20022         * TabPage.cs: Added missing attributes; arranged into regions
20023         * TextBoxBase.cs: Added missing attributes
20024         * TextBox.cs: Added missing attributes
20025         * ArrangeDirection.cs: Added missing attributes
20026         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
20027         * ToolBarButton.cs: Fixed attributes
20028         * AnchorStyles.cs: Fixed attribute
20029         * TrackBar.cs: Fixed attributes
20030         * TabControl.cs: Added missing attributes and arranged into regions
20031         * ToolBar.cs: Fixed attribute
20032         * StatusBar.cs: Fixed signature, organized into regions and added
20033           attributes
20034         * StatusBarPanel.cs: Fixed attributes
20035         * ContentsResizedEventArgs.cs: Implemented
20036         * ContentsResizedEventHandler.cs: Implemented
20037         * DateBoldEventArgs.cs: Implemented
20038         * DateBoldEventHandler.cs: Implemented
20039         * UpDownEventArgs.cs: Implemented
20040         * UpDownEventHandler.cs: Implemented
20041         
20042 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
20043
20044         * Form.cs: first Menu NC refactoring
20045         * MenuAPI.cs: first Menu NC refactoring
20046         
20047 2005-02-16  Peter Bartok  <pbartok@novell.com>
20048
20049         * ImeMode.cs: Added missing attributes
20050         * Menu.cs: Fixed attribute
20051         * GroupBox.cs: Fixed attribute
20052         * Label.cs: Fixed attribute
20053         * ColorDialog.cs (RunDialog): Removed TODO attribute
20054         * ComboBox.cs: Fixed attributes
20055         * ListControl.cs: Added missing attributes
20056         * PropertyGrid.cs: Fixed attributes
20057         * Control.cs: Fixed attributes
20058         * ListViewItem.cs: Added TypeConverter attribute
20059         * NotifyIcon.cs: Fixed attributes
20060         * ListView.cs: Fixed attributes
20061         * ButtonBase.cs: Fixed attribute
20062         * ImageList.cs: Added missing attributes
20063         * ContainerControl.cs: Fixed signature
20064         * CheckedListBox.cs: Fixed attribute; added missing attributes
20065         * Panel.cs: Fixed attributes
20066         * PropertyTabChangedEventArgs.cs: Added missing attribute
20067         * PropertyValueChangedEventArgs.cs: Added missing attribute
20068         * Binding.cs: Fixed attribute
20069         * ListViewItemConverter: Implemented ListViewSubItemConverter class
20070         * ListBox.cs: Fixed attribute; added missing attributes;
20071         * ScrollableControl.cs: Added missing attributes
20072         * PictureBox.cs: Added missing attributes; implemented missing property
20073         * DateTimePicker.cs: Added missing attributes
20074         * Theme.cs (ToolWindowCaptionHeight): Fixed type
20075         * MonthCalendar.cs: Fixed attributes
20076         * StatusBarPanel.cs: Added missing attributes
20077         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
20078
20079 2005-02-16  Peter Bartok  <pbartok@novell.com>
20080
20081         * TextBoxBase.cs: The previous method to enforce height yet remember
20082           the requested high was less than ideal, this is an attempt to do
20083           it better.
20084         * Control.cs: Added comment about possible problem
20085         * Copyright: Updated format
20086         * GridItemType.cs: Fixed swapped values
20087
20088 2005-02-15  Jackson Harper  <jackson@ximian.com>
20089
20090         * BaseCollection.cs: Use property so we never access an
20091         uninitialized list. Also initialize the list in the property.
20092
20093 2005-02-15  Peter Bartok  <pbartok@novell.com>
20094
20095         * GroupBox.cs (ProcessMnemonic): Implemented
20096         * Label.cs (ProcessMnemonic): Implemented
20097         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
20098           hotkeys
20099
20100 2005-02-15  Peter Bartok  <pbartok@novell.com>
20101
20102         * RadioButton.cs (ProcessMnemonic): Implemented
20103         * CheckBox.cs (ProcessMnemonic): Implemented
20104         * Control.cs:
20105           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
20106             handling
20107           - Added internal method to allow calling ProcessMnemonic from other
20108             controls
20109         * ContainerControl.cs:
20110           - Started support for handling validation chain handling
20111           - Implemented ProcessMnemonic support
20112           - Added Select() call to Active, to make sure the active control
20113             receives focus
20114         * Form.cs: Setting toplevel flag for Forms (this was lost in the
20115           FormParent rewrite)
20116         * ThemeWin32Classic.cs:
20117           - DrawCheckBox(): Fixed stringformat to show hotkeys
20118           - DrawRadioButton(): Fixed stringformat to show hotkeys
20119         * CommonDialog.cs: Removed WndProc override, not needed
20120
20121 2005-02-14  Peter Bartok  <pbartok@novell.com>
20122
20123         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
20124           missed those in the rewrite
20125
20126 2005-02-14  Miguel de Icaza  <miguel@novell.com>
20127
20128         * NumericUpDown.cs (Increment, ToString): Add.
20129         (DecimalPlaces): implement.
20130         
20131         Add attributes.
20132         
20133         * UpDownBase.cs: Add the designer attributes.
20134
20135 2005-02-13  Peter Bartok  <pbartok@novell.com>
20136
20137         * Panel.cs: Removed border_style, now in Control
20138         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
20139           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
20140
20141 2005-02-13  Peter Bartok  <pbartok@novell.com>
20142
20143         * MouseButtons.cs: Added missing attributes
20144         * XplatUIStructs.cs: Added enumeration for title styles
20145         * LeftRightAlignment.cs: Added missing attributes
20146         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
20147           it compatible with Graphics.FromHwnd()
20148         * SelectedGridItemChangedEventArgs.cs: Fixed property type
20149         * Keys.cs: Added missing attributes
20150         * SelectionRange.cs: Added missing attributes
20151         * SelectionRangeConverter.cs: Added
20152         * XplatUI.cs:
20153           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
20154             ReleaseMenuDC methods
20155           - Renamed ReleaseWindow to UngrabWindow
20156           - Added proper startup notice to allow version identification
20157         * Form.cs:
20158           - Added missing attributes
20159           - Removed FormParent concept
20160         * Label.cs: Removed border_style field, now in Control
20161         * RadioButton.cs: Now properly selects RadioButton when focus is
20162           received
20163         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
20164         * Control.cs:
20165           - Added missing attributes
20166           - Added borderstyle handling
20167           - Removed FormParent concept support
20168           - Fixed calls to XplatUI to match changed APIs
20169           - Fixed bug that would case us to use disposed Graphics objects
20170           - Removed unneeded internal methods
20171           - PerformLayout(): Fixed to handle DockStyle.Fill properly
20172           - SelectNextControl(): Fixed to properly check common parents
20173         * TextBoxBase.cs: Removed border_style field (now in Control)
20174         * MessageBox.cs:
20175           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
20176             fixed calculations for form size
20177           - Added support for localized strings and icons
20178           - Improved form size calculations, added border
20179         * ListView.cs: Removed border_style field (now in Control)
20180         * X11Structs.cs: Moved several structs from X11 driver here
20181         * X11Keyboard.cs: Changed debug message
20182         * Application.cs: Removed FormParent concept support
20183         * CommonDialog.cs:
20184           - Resetting end_modal flag
20185           - Removed FormParent concept support
20186         * NativeWindow.cs: Removed FormParent concept support
20187         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
20188           Client area and Non-Client whole window to allow support for WM_NC
20189           messages
20190         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
20191           prevent using it until it supports Hwnd as per Geoff Norton's request
20192         * ToolBar.cs: Fixed drawing, was not doing proper drawing
20193         * PictureBox.cs: Removed border_style field, now in Control
20194         * XplatUIWin32.cs: Added new driver methods
20195
20196 2005-02-12  Peter Bartok  <pbartok@novell.com>
20197
20198         * OpacityConverter.cs: Implemented
20199         * Hwnd.cs: Internal class to support drivers that need to emulate
20200           client area/non-client area window behaviour
20201
20202 2005-02-11  Peter Bartok  <pbartok@novell.com>
20203
20204         * KeysConverter.cs: Implemented
20205
20206 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
20207
20208         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
20209         * LinkLabel: Added missing attributes
20210         * MainMenu.cs: fixes ToString
20211         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
20212         * ListBox.cs: fixes event position
20213         * TrackBar.cs: adds missing attributes and events
20214         
20215 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
20216
20217         * MenuItem.cs: Use SystemInformation and bug fixes
20218         * MenuAPI.cs: Use SystemInformation and bug fixes
20219
20220 2005-02-09  Jackson Harper  <jackson@ximian.com>
20221
20222         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
20223         their keystate otherwise things like VK_MENU get stuck "on".
20224
20225 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
20226
20227         * ListBox.cs: Fixes AddRange bug
20228         
20229 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
20230
20231         * ProgressBar.cs
20232                 - Add missing attributes
20233                 - Add missing method
20234                 
20235         * CheckedListBox.cs: Added missing attributes
20236                 - Add missing attributes
20237                 - Remove extra method
20238         
20239         * ComboBox.cs: Added missing attributes
20240         * VScrollBar.cs: Added missing attributes
20241         * ScrollBar.cs:  Added missing attributes
20242         * ListBox.cs: Fixes signature, add missing consts
20243         * LinkArea.cs:   Added missing attributes
20244         
20245
20246 2005-02-08  Peter Bartok  <pbartok@novell.com>
20247
20248         * Menu.cs: Added missing attributes
20249         * MainMenu.cs: Added missing attributes
20250         * GroupBox.cs: Added missing attributes
20251         * Label.cs: Added missing attributes
20252         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
20253         * ColorDialog.cs:
20254           - Added Instance and Options properties
20255           - Added missing attributes
20256         * Cursor.cs: Made Serializable
20257         * NotifyIcon: Added missing attributes
20258         * MenuItem.cs: Added missing attributes
20259         * TextBoxBase.cs: Implemented AppendText() and Select() methods
20260         * Panel.cs: Added Missing attributes
20261         * MonthCalendar.cs: Fixed CreateParams
20262
20263 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
20264         
20265         * LinkLabel.cs:
20266                 - Fixes signature
20267                 - Fixes issues with links
20268                 - Adds the class attributes
20269
20270 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
20271         
20272         * ComboBox.cs:
20273                 - Fixes button when no items available in dropdown
20274                 - Fixes repainting problems
20275                 - Adds the class attributes
20276                 
20277 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
20278
20279         * XplatUIOSX.cs: Detect the menu bar and title bar height from
20280         the current theme.  Cache these on startup.
20281
20282 2005-02-07  Jackson Harper  <jackson@ximian.com>
20283
20284         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
20285         the scrollbar buttons when they are depressed.
20286
20287 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
20288
20289         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
20290         Get the display size from the main displayid.  We currently dont
20291         support multiple display configurations.
20292
20293 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
20294
20295         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
20296
20297 2005-02-07  Miguel de Icaza  <miguel@novell.com>
20298
20299         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
20300
20301 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
20302
20303         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
20304
20305 2005-02-04  Jackson Harper  <jackson@ximian.com>
20306
20307         * ThemeWin32Classic.cs: Respect the clipping rect when
20308         drawing. Only fill the intersection of clips and rects so there
20309         isn't a lot of large fills.
20310         * ScrollBar.cs: Pass the correct clipping rect to the theme
20311         engine. Remove some debug code.
20312
20313 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
20314         
20315         * DateTimePicker.cs:
20316                 - Fixed crash on DateTime.Parse, use Constructor instead
20317
20318 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
20319         
20320         * MenuItem.cs:
20321         * MenuAPI.cs:
20322                 - Owner draw support (MeasureItem and DrawItem)
20323
20324 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
20325         
20326         *  Menu.cs:
20327                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
20328                 - Fixes MenuItems.Add range
20329         * MenuItem.cs:
20330                 - MergeMenu and Clone and CloneMenu functions
20331
20332 2005-02-03  Jackson Harper  <jackson@ximian.com>
20333
20334         * ScrollBar.cs: Make abstract
20335         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
20336         is abstract.
20337
20338 2005-02-03  Jackson Harper  <jackson@ximian.com>
20339
20340         * ScrollBar.cs: First part of my scrollbar fixups. This removes
20341         all the unneeded refreshes and uses invalidates with properly
20342         computed rects.
20343
20344 2005-02-03  Peter Bartok  <pbartok@novell.com>
20345
20346         * ComponentModel.cs: Added
20347         * IDataGridEditingService.cs: Added
20348         * Timer.cs: Added missing attributes
20349         * ToolTip.cs: Added missing attributes
20350
20351 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
20352
20353         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
20354
20355 2005-02-03  Peter Bartok  <pbartok@novell.com>
20356
20357         * ListBox.cs: Added missing attributes
20358
20359 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
20360         
20361         * ListBox.cs:
20362                 - Fixes font height after font change
20363                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
20364                 
20365 2005-02-02  Peter Bartok  <pbartok@novell.com>
20366
20367         * HandleData.cs: Introduced static methods to allow class
20368           to be more self-contained and track it's own HandleData objects
20369         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
20370           HandleData to use new static methods
20371
20372 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
20373
20374         * Combobox.cs:
20375                 - Fixes default size and PreferredHeight
20376                 - Missing events
20377                 - ObjectCollection.Insert implementation
20378                 
20379         * ListControl.cs
20380                 - Fixes signature
20381         * ListBox.cs:
20382                 - Several fixes
20383                 - ObjectCollection.Insert implementation
20384                 - No selection after clean
20385                 - Small fixes
20386
20387 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
20388
20389         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
20390
20391 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
20392
20393         * Combobox.cs:
20394                 - Caches ItemHeight calculation for OwnerDrawVariable
20395                 - Handles dropdown properly
20396                 - Fixes several minor bugs
20397
20398 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
20399
20400         * ListBox.cs:
20401                 - Fixes 71946 and 71950
20402                 - Fixes changing Multicolumn on the fly
20403                 - Fixes keyboard navigation on Multicolumn listboxes
20404
20405 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
20406         
20407         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
20408         crash reporter log.
20409
20410 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
20411
20412         * XplatUIOSX.cs: Allow applications to actually exit.
20413
20414 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
20415
20416         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
20417         their parent at creation time rather than lazily later.  Fixes a major
20418         regression we were experiencing.
20419
20420 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
20421
20422         * ThemeWin32Classic.cs: more date time picker painting fixes
20423         * DateTimePicker.cs: more monthcalendar drop down fixes
20424         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
20425
20426 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
20427
20428         * ScrollBar.cs:
20429                 - When moving the thumb going outside the control should stop the moving
20430                 - Adds the firing of missing events
20431                 - Fixes no button show if Size is not specified
20432                 - End / Home keys for keyboard navigation
20433
20434 2005-01-30  Peter Bartok  <pbartok@novell.com>
20435
20436         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
20437           sanity check to prevent theoretical loop
20438         * XplatUIWin32.cs (SetVisible): Removed debug output
20439         * XplatUIX11.cs (SystrayChange): Added sanity check
20440         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
20441         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
20442           behaviour, valid until the X11 client window rewrite is done
20443         * TextBox.cs (ctor): Setting proper default foreground and background
20444           colors
20445
20446 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
20447
20448         * Theme: Added DrawDateTimePicker to interface
20449         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
20450         * DateTimePicker.cs: Created (still needs keys and painting code)
20451         * DateTimePickerFormat.cs: added
20452         * MonthCalendar.cs: fixed CreateParams for popup window mode
20453           
20454 2005-01-29  Peter Bartok  <pbartok@novell.com>
20455
20456         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
20457           this should also the calculations for ligher/darker
20458         * Theme.cs: Fixed defaults for ScrollBar widths/heights
20459
20460 2005-01-29  Peter Bartok  <pbartok@novell.com>
20461
20462         * ArrangeDirection.cs: Added
20463         * ArrangeStartingPositon.cs: Added
20464         * SystemInformation.cs: Implemented
20465         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
20466           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
20467           used by SystemInformation class
20468         * X11Strucs.cs: Added XSizeHints structure
20469         * MenuAPI.cs:
20470           - Fixed CreateParams to make sure the menu window is always visible
20471           - TrackPopupMenu: Added check to make sure we don't draw the
20472             menu offscreen
20473
20474 2005-01-29  Peter Bartok  <pbartok@novell.com>
20475
20476         * HandleData.cs: Added method for altering invalid area
20477         * TextBoxBase.cs: Implemented TextLength
20478
20479 2005-01-28  Peter Bartok  <pbartok@novell.com>
20480
20481         * XplatUIX11.cs: Improvement over last patch, not sending
20482           the WM_PAINT directly anymore, instead we scroll any pending
20483           exposed areas and let the system pick out the WM_PAINT later
20484
20485 2005-01-28  Peter Bartok  <pbartok@novell.com>
20486
20487         * SWF.csproj: Deleted, no longer used. Instead,
20488           Managed.Windows.Forms/SWF.csproj should be used
20489         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
20490           directly, to avoid a potential race condition with the next
20491           scroll
20492
20493 2005-01-28  Peter Bartok  <pbartok@novell.com>
20494
20495         * XplatUI.cs: Made class internal
20496
20497 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
20498
20499         * CheckedListBox.cs:
20500                 - Draw focus
20501                 - Fixed Drawing
20502                 - Missing methods and events
20503
20504 2005-01-27  Peter Bartok  <pbartok@novell.com>
20505
20506         * Application.cs (Run): Don't use form if we don't have one
20507
20508 2005-01-27  Peter Bartok  <pbartok@novell.com>
20509
20510         * TextBoxBase.cs (get_Lines): Fixed index off by one error
20511
20512 2005-01-27  Peter Bartok  <pbartok@novell.com>
20513
20514         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
20515         * GridItem.cs: Added; Patch by Jonathan S. Chambers
20516         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
20517         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
20518         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
20519         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
20520         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
20521         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
20522         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
20523         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
20524         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
20525         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
20526
20527 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
20528
20529         * Combobox.cs:
20530                 - Draw focus on Simple Combobox
20531                 - Fixes drawing issues
20532                 - fixes 71834
20533
20534 2005-01-27  Peter Bartok  <pbartok@novell.com>
20535
20536         * Form.cs:
20537           - Place window in default location, instead of hardcoded 0/0
20538           - Send initial LocationChanged event
20539         * Control.cs:
20540           - UpdateBounds after creation to find out where the WM placed us
20541           - Make sure that if the ParentForm changes location the Form
20542             is notified
20543         * XplatUIX11.cs: XGetGeometry will not return the coords relative
20544             to the root, but to whatever the WM placed around us.
20545             Translate to root coordinates before returning toplevel
20546             coordinates
20547         * XplatUIWin32.cs: Removed debug output
20548         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
20549           flag to GetWindowPos, to allow translation of coordinates on X11
20550
20551 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
20552
20553         * ListBox.cs: connect LostFocus Event
20554
20555 2005-01-27  Peter Bartok  <pbartok@novell.com>
20556
20557         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
20558           XplatUIX11.cs: Extended the Systray API
20559         * Form.cs: Removed debug output
20560         * Application.cs: Fixed focus assignment, always need to call
20561           XplatUI.Activate() since Form.Activate() has rules that may
20562           prevent activation
20563         * NotifyIcon.cs: Should be complete now
20564         * ToolTip.cs: Worked around possible timer bug
20565
20566 2005-01-27  Jackson Harper  <jackson@ximian.com>
20567
20568         * TabControl.cs:
20569         - Only invalidate the effected tabs when the
20570         selected index changes. This reduces drawing and gets rid of some
20571         flicker.
20572         - Only refresh if the tabs need to be shifted, otherwise only
20573         invalidate the slider button.
20574         - On windows the tabs are not filled to right if the slider is
20575         visible.
20576         
20577 2005-01-27  Jackson Harper  <jackson@ximian.com>
20578
20579         * TabControl.cs: Only refresh on mouseup if we are showing the
20580         slider. Also only invalidate the button whose state has changed.
20581
20582 2005-01-26  Peter Bartok  <pbartok@novell.com>
20583
20584         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
20585         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
20586           and SystrayRemove() methods
20587         * XplatUIOSX.cs: Stubbed Systray methods
20588         * XplatUIX11.cs:
20589           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
20590             methods
20591           - Fixed broken XChangeProperty calls (marshalling messed up things)
20592         * X11Structs.cs: Added enums and structs required for Size hinting
20593         * NotifyIcon.cs: Added & implemented
20594
20595 2005-01-26  Jackson Harper  <jackson@ximian.com>
20596
20597         * TabControl.cs: Space vertically layed out tabs properly.
20598
20599 2005-01-26  Peter Bartok  <pbartok@novell.com>
20600
20601         * Form.cs (CreateClientParams): Always set the location to 0,0
20602           since we're a child window.
20603
20604         * Control.cs (SetVisibleCore): Always explicitly setting the location
20605           of a toplevel window, apparently X11 doesn't like to move windows
20606           while they're not mapped.
20607
20608 2005-01-26  Jackson Harper  <jackson@ximian.com>
20609
20610         * TabControl.cs: Implement FillToRight size mode with vertically
20611         rendered tabs.
20612
20613 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
20614
20615         * ControlPaint.cs, ThemeWin32Classic.cs
20616                 - Fixes DrawFocusRectangle
20617
20618 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
20619
20620         * MenuAPI.cs:
20621                 - MenuBar tracking only starts when item is first clicked
20622                 - Fixes menu hidding for multiple subitems
20623                 - Unselect item in MenuBar when item Executed
20624                 - Fixes bug 71495
20625
20626 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
20627
20628         * ListControl.cs:
20629                 - IsInputKey for ListBox
20630         * ListBox.cs:
20631                 - Focus item
20632                 - Shift and Control item selection
20633                 - Implement SelectionMode.MultiExtended
20634                 - Fixes RightToLeft
20635         * ComboBox.cs:
20636                 - IsInputKey implemented
20637                 - Do not generate OnTextChangedEdit on internal txt changes
20638                 
20639 2005-01-23  Peter Bartok  <pbartok@novell.com>
20640
20641         * AccessibleObject.cs: Partially implemented Select()
20642         * MonthCalendar.cs: Added missing attributes and events
20643         * Form.cs: Fixed CreateParams behaviour, now controls derived from
20644           form can properly override CreateParams.
20645         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
20646           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
20647           Control performs Invalidate & Update
20648         * NativeWindow (CreateHandle): Added special handling for Form
20649           and Form.FormParent classes to allow overriding of From.CreateParams
20650         * Control.cs:
20651           - ControlNativeWindow: Renamed 'control' variable to more intuitive
20652             name 'owner'
20653           - ControlNativeWindow: Added Owner property
20654           - Removed usage of Refresh() on property changes, changed into
20655             Invalidate(), we need to wait until the queue is processed for
20656             updates, direct calls might cause problems if not all vars for
20657             Paint are initialized
20658           - Added call to UpdateStyles() when creating the window, to set any
20659             styles that CreateWindow might have ignored.
20660           - Added support for Form CreateParent overrides to UpdateStyles()
20661         * MessageBox.cs: Removed no longer needed FormParent override stuff,
20662           CreateParams are now properly overridable
20663         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
20664           CreateParams are now properly overridable
20665
20666 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
20667
20668         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
20669         OnTextBoxChanged.
20670
20671         Capture LostFocus and OnTextBoxChanged.  The later introduces a
20672         recursive invocation that I have not figured out yet.
20673
20674         Reset the timer when not using (it was accumulating).
20675
20676
20677         (OnTextBoxChanged): Set UserEdit to true here to track whether the
20678         user has made changes that require validation.
20679
20680         Reset changing to avoid loops.
20681
20682 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
20683
20684         * NumericUpDown.cs: Display value at startup.
20685
20686         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
20687         ValidateEditText.
20688
20689         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
20690         filled in.  Added some basic parsing of text.
20691
20692         Still missing the OnXXX method overrides, and figuring out the
20693         events that must be emitted.
20694
20695         * UpDownBase.cs: Handle UserEdit on the Text property.
20696         
20697 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
20698
20699         * ComboBox.cs:
20700           - Fixes IntegralHeight
20701           - ToString method
20702
20703 2005-01-21  Jackson Harper  <jackson@ximian.com>
20704
20705         * TabControl.cs: Set the SelectedIndex property when SelectedTab
20706         is set so that the page visibility is updated and the tabs are
20707         sized correctly.
20708
20709 2005-01-21  Jackson Harper  <jackson@ximian.com>
20710
20711         * TabControl.cs: Use cliping rectangle for blitting. Give the
20712         theme the clipping rect so we can do clipping while
20713         drawing. Remove some debug code.
20714
20715 2005-01-21  Jackson Harper  <jackson@ximian.com>
20716
20717         * TabPage.cs: Add a new method so tab pages can force the tab
20718         control to recalculate the tab page sizes.
20719         * TabControl.cs: UpdateOwner needs to make the tab control recalc
20720         sizes.
20721
20722 2005-01-20  Jackson Harper  <jackson@ximian.com>
20723
20724         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
20725
20726 2005-01-20  Jackson Harper  <jackson@ximian.com>
20727
20728         * TreeView.cs: Set the bounds for nodes properly. They were
20729         getting screwed up when checkboxes were not enabled, but images
20730         were.
20731
20732 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
20733
20734         * ListBox.cs:
20735                 - Owner draw support
20736                 - Fixes
20737                 
20738 2005-01-20  Jackson Harper  <jackson@ximian.com>
20739
20740         * XplatUIStructs.cs: More misc keys
20741         * X11Keyboard.cs: Ignore some control keys.
20742
20743 2005-01-20  Jackson Harper  <jackson@ximian.com>
20744
20745         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
20746         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
20747
20748 2005-01-19  Peter Bartok  <pbartok@novell.com>
20749
20750         * Control.cs: Un-selecting the control when it is loosing focus
20751
20752 2005-01-19  Jackson Harper  <jackson@ximian.com>
20753
20754         * TreeView.cs: Hook up to the text controls leave event so we can
20755         end editing when the users clicks outside the text box.
20756         
20757 2005-01-19  Jackson Harper  <jackson@ximian.com>
20758
20759         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
20760         get set in the conversion array.
20761
20762 2005-01-19  Peter Bartok  <pbartok@novell.com>
20763
20764         * Application.cs (ModalRun): Added a call to CreateControl to ensure
20765           focus is properly set
20766         * Button.cs:
20767           - Added missing attributes
20768           - removed styles, those are already set in the base class
20769         * ButtonBase.cs:
20770           - Added missing attributes
20771           - Added clip window styles
20772         * CheckBox.cs: Added missing attributes
20773         * CommonDialog.cs:
20774           - FormParentWindow.CreateParams: Added required clip styles
20775         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
20776           also filters modifier keys
20777         * MessageBox.cs:
20778           - Added assignment of Accept and Cancel button to enable Enter
20779             and Esc keys in MessageBox dialogs
20780           - FormParentWindow.CreateParams: Added required clip styles
20781         * RadioButton.cs: Added missing attributes
20782         * TextControl.cs: No longer draws selection if control does not
20783           have focus
20784         * TextBoxBase.cs:
20785           - Now draws simple rectangle around test area to make it obvious
20786             there's a control. This is a hack until we properly support borders
20787           - A few simple fixes to support selections better, now erases selected
20788             text when typing, and resets selection when using movement keys
20789
20790 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
20791
20792         * UpDownBase.cs: Added some new properties.
20793
20794         * DomainUpDown.cs: Implement a lot to get my test working.
20795
20796 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
20797
20798         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
20799
20800 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
20801
20802         * OSXStructs (WindowAttributes): Fixed csc complaints
20803
20804 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
20805
20806         * XplayUIOSX.cs:
20807           OSXStructs.cs: Initial refactor to move enums and consts into
20808           OSXStructs and use them in the driver for greater readability.
20809
20810 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
20811
20812         * XplatUIOSX.cs: Initial support for Standard Cursors.
20813         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
20814
20815 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
20816
20817         * ComboBox.cs: ability to change style when the ctrl is already
20818         created, missing methods and events, bug fixes, signature fixes
20819
20820 2005-01-19  Peter Bartok  <pbartok@novell.com>
20821
20822         * Cursors.cs (ctor): Added ctor to fix signature
20823
20824 2005-01-18  Peter Bartok  <pbartok@novell.com>
20825
20826         * Button.cs: Implemented DoubleClick event
20827         * ButtonBase.cs:
20828           - Fixed keyboard handling to behave like MS, where the press of
20829             Spacebar is equivalent to a mousedown, and the key release is
20830             equivalent to mouseup. Now a spacebar push will give the same
20831             visual feedback like a mouse click.
20832           - Added missing attributes
20833           - Added ImeModeChanged event
20834           - Added support for generating DoubleClick event for derived classes
20835         * CheckBox.cs:
20836           - Implemented DoubleClick event
20837           - Added missing attributes
20838         * CommonDialog.cs: Added missing attribute
20839         * ContextMenu.cs: Added missing attributes
20840         * RadioButton.cs:
20841           - AutoChecked buttons do not allow to be unselected when clicked
20842             (otherwise we might end up with no selected buttons in a group)
20843           - Added missing attributes
20844           - Implemented DoubleClickEvent
20845         * ThreadExceptionDialog.cs: Enabled TextBox code
20846
20847 2005-01-18  Peter Bartok  <pbartok@novell.com>
20848
20849         * Form.cs: Removed debug output
20850         * Button.cs: Added support for DoubleClick method
20851
20852 2005-01-18  Peter Bartok  <pbartok@novell.com>
20853
20854         * Form.cs:
20855           - Added method to parent window that allows triggering size
20856             calculations when a menu is added/removed
20857           - set_Menu: Cleaned up mess from early days of Form and Control,
20858             now properly triggers a recalc when a menu is added/removed
20859           - Added case to select form itself as focused form if no child
20860             controls exist
20861           - Added PerformLayout call when showing dialog, to ensure properly
20862             placed controls
20863         * Control.cs:
20864           - Select(): Made internal so Form can access it
20865           - Focus(): Only call Xplat layer if required (avoids loop), and sets
20866             status
20867         * Application.cs (Run): Removed hack and calls PerformLayout instead
20868           to trigger calculation when Form becomes visible
20869
20870 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
20871
20872         * ComboBox.cs: fixes for ownerdraw
20873
20874 2005-01-18  Peter Bartok  <pbartok@novell.com>
20875
20876         * TextControl.cs:
20877           - Sentinel is no longer static, each Document gets it's own, this
20878             avoids locking or alternatively overwrite problems when more
20879             than one text control is used simultaneously.
20880           - Switched to use Hilight and HilightText brushes for text selection
20881
20882         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
20883
20884 2005-01-18  Peter Bartok  <pbartok@novell.com>
20885
20886         * Control.cs:
20887           - Hooked up the following events:
20888                 o ControlAdded
20889                 o ControlRemoved
20890                 o HandleDestroyed
20891                 o ImeModeChanged
20892                 o ParentChanged
20893                 o TabStopChanged
20894                 o Invalidated
20895                 o SystemColorsChanged
20896                 o ParentFontChanged
20897                 o Move
20898           - Removed debug output
20899           - Added a call to the current theme's ResetDefaults when a color change
20900             is detected
20901         * Form.cs: Now setting the proper ImeMode
20902         * Theme.cs: Defined a method to force recreation of cached resources
20903           and rereading of system defaults (ResetDefaults())
20904         * ThemeWin32Classic.cs: Added ResetDefaults() stub
20905
20906 2005-01-17  Peter Bartok  <pbartok@novell.com>
20907
20908         * Control.cs: Added missing attributes
20909
20910 2005-01-17  Jackson Harper  <jackson@ximian.com>
20911
20912         * TreeNode.cs: Implement editing. Add missing properties selected
20913         and visible.
20914         * TreeView.cs: Implement node editing. Also some fixes to use
20915         Invalidate (invalid area) instead of Refresh when selecting.
20916
20917 2005-01-17  Peter Bartok  <pbartok@novell.com>
20918
20919         * Control.cs:
20920           - Implemented InvokeGotFocus() method
20921           - Implemented InvokeLostFocus() method
20922           - Implemented InvokePaint() method
20923           - Implemented InvokePaintBackground() method
20924           - Implemented InvokeClick() method
20925           - Implemented FindForm() method
20926           - Implemented RectangleToClient() method
20927           - Implemented ClientToRectangle() method
20928           - Implemented ResetBackColor() method
20929           - Implemented ResetCursor() method
20930           - Implemented ResetFont() method
20931           - Implemented ResteForeColor() method
20932           - Implemented ResetImeMode() method
20933           - Implemented ResetLeftToRight() method
20934           - Implemented ResetText() method
20935           - Implemented Scale() methods
20936           - Implemented ScaleCore() method
20937           - Implemented Update() method
20938           - Removed unused variables
20939           - Stubbed AccessibilityNotifyClients and
20940             ControlAccessibleObject.NotifyClients() methods (dunno what to do
20941             with those yet)
20942           - Now setting proper default for RightToLeft property
20943           - Fixed bug in SetClientSizeCore that would cause windows to get
20944             really big
20945           - Now sending Click/DoubleClick events
20946           - Now selecting controls when left mouse button is clicked on
20947             selectable control
20948         * AccessibleEvents.cs: Added
20949         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
20950         * XplatUIOSX.cs: Stubbed UpdateWindow() method
20951         * XplatUIWin32.cs: Implemented UpdateWindow() method
20952         * XplatUIX11.cs: Implemented UpdateWindow() method
20953         * Form.cs: Removed stray semicolon causing CS0162 warning
20954         * ThemeWin32Classic.cs: Fixed unused variable warnings
20955         * ScrollableControl.cs: Now calls base method for ScaleCore
20956         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
20957           style to avoid interference with internal click handler (which is
20958           different than standard Control click handling)
20959         * RadioButton.cs:
20960           - Now unchecks all sibling radio buttons when control is
20961             selected (Fixes #68756)
20962           - Removed internal tabstop variable, using the one inherited from
20963             Control
20964
20965 2005-01-17  Jackson Harper  <jackson@ximian.com>
20966
20967         * NavigateEventArgs.cs: Fix base type.
20968         * LinkLabel.cs: Sig fix
20969         
20970 2005-01-17  Jackson Harper  <jackson@ximian.com>
20971
20972         * TreeView.cs: Only invalidate the effected nodes bounds when
20973         selecting nodes.
20974
20975 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
20976
20977         * XplatUIWin32.cs: fixes Win32 marshaling
20978         * XplatUIX11.cs: fixes method signature
20979
20980 2005-01-17  Peter Bartok  <pbartok@novell.com>
20981
20982         * XplatUIX11.cs: Clean up resources when we no longer need them
20983
20984 2005-01-17  Peter Bartok  <pbartok@novell.com>
20985
20986         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
20987           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
20988           and DestroyCursor() methods.
20989         * Cursor.cs: Partially implemented, now supports standard cursors;
20990           still contains some debug code
20991         * Cursors.cs: Implemented class
20992         * Control.cs:
20993           - WndProc(): Added handling of WM_SETCURSOR message, setting the
20994             appropriate cursor
20995           - Implemented Cursor property
20996           - Replaced break; with return; more straightforwar and possibly
20997             faster
20998           - Now properly setting the result for WM_HELP
20999         * X11Structs.cs: Added CursorFontShape enum
21000         * XplatUIStructs.cs:
21001           - Added StdCursor enum (to support DefineStdCursor() method)
21002           - Added HitTest enum (to support sending WM_SETCURSOR message)
21003         * XplatUIX11.cs:
21004           - Now sends the WM_SETCURSOR message
21005           - Implemented new cursor methods
21006         * XplatUIOSX.cs: Stubbed new cursor methods
21007         * XplatUIWin32.cs:
21008           - Implemented new cursor methods
21009           - Added GetSystemMetrics function and associated enumeration
21010
21011 2005-01-15  Peter Bartok  <pbartok@novell.com>
21012
21013         * Control.cs:
21014           - WndProc(): Now handles EnableNotifyMessage
21015           - SelectNextControl(): Fixed bug where if no child or sibling
21016             controls exist we looped endlessly
21017
21018 2005-01-14  Jackson Harper  <jackson@ximian.com>
21019
21020         * TreeView.cs: Recalculate the tab pages when a new one is added
21021         so that the proper bounding rects are created.
21022
21023 2005-01-14  Jackson Harper  <jackson@ximian.com>
21024
21025         * TreeView.cs: Draw a gray box instead of a grip in the lower
21026         right hand corner when there are both horizontal and vertical
21027         scroll bars.
21028
21029 2005-01-14  Jackson Harper  <jackson@ximian.com>
21030
21031         * Control.cs: When erasing backgrounds use FromHwnd instead of
21032         FromHdc when there is a NULL wparam. This occurs on the X driver.
21033         * XplatUIX11.cs: Set the wparam to NULL.
21034
21035 2005-01-13  Jackson Harper  <jackson@ximian.com>
21036
21037         * PictureBox.cs: Implement missing methods (except ToString, need
21038         to test that on windows) and events. When visibility is changed we
21039         need to redraw the image because the buffers are killed. When size
21040         is changed refresh if the sizemode needs it.
21041
21042 2005-01-13  Peter Bartok  <pbartok@novell.com>
21043
21044         * Control.cs (SelectNextControl): Was using wrong method to select
21045           a control
21046
21047 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
21048
21049         * ComboBox.cs: fixes dropstyle
21050
21051 2005-01-13  Peter Bartok  <pbartok@novell.com>
21052
21053         * Form.cs:
21054           - Implemented Select() override
21055           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
21056           - Now sets keyboard focus on startup
21057         * Control.cs (SelectNextControl): Now properly handles directed=true
21058         * TextBoxBase.cs:
21059           - WndProc: Now passes tab key on to base if AcceptTabChar=false
21060           - Added (really bad) focus rectangle (mostly for testing)
21061         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
21062           to enforce redraw on focus changes
21063         * ContainerControl.cs:
21064           - Fixed detection of Shift-Tab key presses
21065           - Fixed traversal with arrow keys
21066         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
21067           gonna keep this or if it's complete yet
21068         
21069 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
21070
21071         * ComboBox.cs: missing properties, fixes
21072
21073 2005-01-13  Peter Bartok  <pbartok@novell.com>
21074
21075         * Panel.cs (ctor): Setting Selectable window style to off
21076         * Splitter.cs (ctor): Setting Selectable window style to off
21077         * GroupBox.cs (ctor): Setting Selectable window style to off
21078         * Label.cs (ctor): Setting Selectable window style to off
21079
21080 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
21081
21082         * UpDownBase.cs (InitTimer): If the timer has been already
21083         created, enable it.
21084
21085         Use a TextBox instead of a Label.
21086
21087 2005-01-12  Jackson Harper  <jackson@ximian.com>
21088
21089         * TreeView.cs: Refresh the tree after sorting the nodes. Always
21090         draw the connecting node lines (when ShowLines is true).
21091         * TreeNode.cs: The nodes index can now be updated. This is used
21092         when a node collection is sorted.
21093         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
21094         insert or an existing unsorted node collection can be sorted.
21095         
21096 2005-01-12  Peter Bartok  <pbartok@novell.com>
21097
21098         * ContainerControl.cs: Implemented ProcessDialogKeys()
21099
21100 2005-01-12  Peter Bartok  <pbartok@novell.com>
21101
21102         * Control.cs:
21103           - Implemented SelectNextControl() method
21104           - Several focus related bug fixes
21105           - Fixed Docking calculations to match MS documentation and
21106             behaviour
21107
21108 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
21109
21110         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
21111         bug fixes
21112
21113 2005-01-12  Peter Bartok  <pbartok@novell.com>
21114
21115         * Control.cs:
21116           - Fixed broken Contains() method
21117           - Implemented GetNextControl() method. Finally. This is the pre-
21118             requisite for focus handling.
21119
21120 2005-01-12  Peter Bartok  <pbartok@novell.com>
21121
21122         * OSXStrucs.cs: Added
21123
21124 2005-01-12  Peter Bartok  <pbartok@novell.com>
21125
21126         * XplatUIWin32.cs:
21127           - Removed PeekMessageFlags
21128           - Implemented SetWindowStyle() method
21129         * XplatUIStructs.cs: Added PeekMessageFlags
21130         * X11Structs: Added missing border_width field to XWindowChanges struct
21131         * XplatUIX11.cs:
21132           - PeekMessage: Now throws exception if flags which are not yet
21133             supported are passed
21134           - Implemented SetWindowStyle() method
21135           - Fixed SetZOrder to handle AfterHwnd properly
21136         * XplatUI.cs: Added SetWindowStyle() method
21137         * XplatUIDriver.cs: Added SetWindowStyle() abstract
21138         * Control.cs:
21139           - Implemented UpdateStyles() method
21140           - Implemented UpdateZOrder() method
21141         * XplatUIOSX.cs: Added SetWindowStyle() stub
21142
21143 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
21144
21145         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
21146         button mouse).
21147
21148
21149 2005-01-11  Jackson Harper  <jackson@ximian.com>
21150
21151         * TreeView.cs: Still need to draw lines to siblings even if out of
21152         the current node is out of the clip.
21153
21154 2005-01-11  Jackson Harper  <jackson@ximian.com>
21155
21156         * TreeView.cs: When setting the hbar/vbar/grip position use
21157         SetBounds so that perform layout is only called once. Also suspend
21158         and resume layout so layout is only done once for all controls.
21159         - Removed some debug fluff
21160         * SizeGrip.cs: Call base implmentation in overriding methods.
21161         - When visibility is changed the drawing buffers are killed so we
21162         need to redraw.
21163
21164 2005-01-11  Jackson Harper  <jackson@ximian.com>
21165
21166         * TreeView.cs: Calculate the open node count while drawing. This
21167         saves us an entire tree traversal for every paint operation. Use
21168         a member var for the open node count so less vars are passed around.
21169
21170 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
21171
21172         * MonthCalendar.cs:
21173         - fixed selection to use mousemove, not mouse polling on timer
21174         * ThemeWin32Classic.cs
21175         - removed redundant unused variable "no_more_content"
21176         
21177 2005-01-11  Peter Bartok  <pbartok@novell.com>
21178
21179         * XplatUIX11.cs (DoEvents): Needs to return when no more events
21180           are pending, so it now calls PeekMessage instead of GetMessage;
21181           implemented a incomplete version of PeekMessage
21182         
21183 2005-01-11  Peter Bartok  <pbartok@novell.com>
21184
21185         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
21186           I18n issues
21187         * TextBoxBase.cs: Added sending of TextChanged event
21188
21189 2005-01-10  Jackson Harper  <jackson@ximian.com>
21190
21191         * TreeView.cs: Try not to draw outside the clipping rectangle on
21192         each node element.
21193
21194 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
21195
21196         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
21197
21198 2005-01-10  Jackson Harper  <jackson@ximian.com>
21199
21200         * TreeView.cs:
21201         - Implement fast scrolling. Now only the newly
21202         exposed nodes are drawn and the old image is moved using the
21203         XplatUI::ScrollWindow method.
21204         - Factor in height of nodes when calculating whether or not the
21205         node is in the clipping rect.
21206
21207 2005-01-10  Jackson Harper  <jackson@ximian.com>
21208
21209         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
21210
21211 2005-01-10  Peter Bartok  <pbartok@novell.com>
21212
21213         * Application.cs: Added temporary hack to resolve all our resize
21214           required issues on startup. This will get fixed properly at
21215           some point in the future
21216
21217 2005-01-10  Jackson Harper  <jackson@ximian.com>
21218
21219         * SizeGrip.cs: New internal class that is used as a sizing
21220         grip control...hence the name.
21221
21222 2005-01-10  Peter Bartok  <pbartok@novell.com>
21223
21224         * Control.cs: Implemented proper TabIndex handling, now assigning
21225           a tabindex when a control is added to a container
21226         * GroupBox.cs (ctor): Now sets the Container style bit, required
21227           for Control.GetNextControl()
21228
21229 2005-01-09  Jackson Harper  <jackson@ximian.com>
21230
21231         * TextBoxBase.cs: Clear window when scrolling (fixes build).
21232
21233 2005-01-09  Peter Bartok <pbartok@novell.com>
21234
21235         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
21236           XplatUIX11.cs: Added ability to control ScrollWindow expose and
21237           an overload for ScrollWindow to allow only scrolling a rectangle
21238
21239 2005-01-09  Peter Bartok <pbartok@novell.com>
21240
21241         * Form.cs:
21242           - Implemented SetDesktopBounds method
21243           - Implemented SetDesktopLocation method
21244
21245 2005-01-08  Jackson Harper  <jackson@ximian.com>
21246
21247         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
21248         the node count has changed, this removes to VScroll::Refresh calls
21249         when drawing.
21250
21251 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
21252
21253         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
21254
21255 2005-01-07  Jackson Harper  <jackson@ximian.com>
21256
21257         * TreeNode.cs: Just update the single node when it is
21258         checked. Don't refresh after toggling, the Expand/Collapse already
21259         handles this.
21260         * TreeView.cs: Respect clipping a little more when drawing. Try
21261         not to redraw things that don't need to be redrawn. Just hide the
21262         scrollbars when they are no longer needed instead of removing
21263         them, so they don't have to be created again and again.
21264         
21265 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
21266
21267         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
21268         coordinates to window space to place the caret properly, FIXED.
21269         Implement GetWindowState & SetWindowState
21270
21271 2005-01-06  Peter Bartok <pbartok@novell.com>
21272
21273         * Form.cs:
21274           - Implemented ClientSize property
21275           - Implemented DesktopBounds property
21276           - Implemented DesktopLocation property
21277           - Implemented IsRestrictedWindow property
21278           - Implemented Size property
21279           - Implemented TopLevel property
21280           - Implemented FormWindowState property
21281         * Control.cs:
21282           - Implemented GetTopLevel() method
21283           - Implemented SetTopLevel() method
21284         * X11Structs.cs (Atom):
21285           - Added AnyPropertyType definition
21286           - Added MapState definiton and updated XWindowAttribute struct
21287         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
21288         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
21289         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
21290         * XplatUIWin32.cs:
21291           - Implemented GetWindowState() and SetWindowState() methods
21292           - Fixed Win32GetWindowLong return type
21293         * XplatUIX11.cs:
21294           - Introduced central function for sending NET_WM messages
21295           - Implemented GetWindowState() and SetWindowState() methods
21296         * TextBoxBase.cs (set_Lines):
21297           - Now uses Foreground color for text added via Text property (Duh!)
21298           - Added code to remember programmatically requested size (fixes
21299             behaviour when Multiline is set after Size)
21300           - Added AutoSize logic
21301
21302 2005-01-06  Jackson Harper  <jackson@ximian.com>
21303
21304         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
21305
21306 2005-01-06  Jackson Harper  <jackson@ximian.com>
21307
21308         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
21309         set to less then 0.
21310
21311 2005-01-06  Jackson Harper  <jackson@ximian.com>
21312
21313         * ScrollableControl.cs: Lazy init the scrollbars.
21314         
21315 2005-01-06  Jackson Harper  <jackson@ximian.com>
21316
21317         * Theme.cs: Speed up getting pens and solid brushes, by using
21318         their ARGB as a hash instead of tostring and not calling Contains.
21319
21320 2005-01-06  Peter Bartok <pbartok@novell.com>
21321
21322         * Form.cs:
21323           - Implemented OnActivated and OnDeactivate event trigger
21324           - Implemented Activate() method
21325           - Fixed ShowDialog() to activate the form that was active before
21326             the dialog was shown
21327         * XplatUIX11.cs:
21328           - Added global active_window var that tracks the currently active
21329             X11 window
21330           - Now always grabs Property changes from the root window to always
21331             catch changes on the active window property
21332           - Added code to PropertyNotify handler to send Active/Inactive
21333             messages when state changes. This puts X11 and Win32 en par on
21334             WM_ACTIVATE notifications (except for double notifications when
21335             the user clicks away from our modal window to another one of our
21336             windows)
21337
21338 2005-01-05  Jackson Harper  <jackson@ximian.com>
21339
21340         * ImageList.cs: Implment ctor
21341
21342 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
21343
21344         * XplatUIOSX.cs: Implement Activate/SetTopmost
21345
21346 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
21347
21348         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
21349
21350 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
21351
21352         * XplatUIOSX.cs: Implement GetActive/SetFocus.
21353
21354 2005-01-05  Peter Bartok <pbartok@novell.com>
21355
21356         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
21357           XplatUIOSX.cs: Added GetActive method to return the currently
21358           active window for the application (or null, if none is active)
21359         * Form.cs:
21360           - Implemented ActiveForm
21361           - Commented out owner assignment for modal dialogs (causes problems
21362             on Win32, since the owner will be disabled)
21363           - Reworked some Active/Focus handling (still incomplete)
21364         * CommonDialog.cs: Commented out owner assignment for modal dialogs
21365           (causes problems on Win32, since the owner will be disabled)
21366         * IWin32Window: Added ComVisible attribute
21367
21368 2005-01-05  Peter Bartok <pbartok@novell.com>
21369
21370         * ToolTip.cs (WndProc): Enable setting focus now that we have the
21371           required XplatUI functions.
21372
21373 2005-01-05  Peter Bartok <pbartok@novell.com>
21374
21375         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
21376           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
21377           to implement focus and activation handling; still incomplete and
21378           with debug output
21379
21380 2005-01-04  Peter Bartok <pbartok@novell.com>
21381
21382         * TextBoxBase.cs: Changed access level for Document property to
21383           match switch to internal for TextControl
21384
21385 2005-01-04  Peter Bartok <pbartok@novell.com>
21386
21387         * AccessibleObject: Added ComVisible attribute
21388
21389 2005-01-04  Jackson Harper  <jackson@ximian.com>
21390
21391         * X11Keyboard.cs: Remove unneeded var.
21392
21393 2005-01-04  Jackson Harper  <jackson@ximian.com>
21394
21395         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
21396         but PAINT.
21397         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
21398         ClientMessage. This makes apps exit cleanly (more often).
21399         
21400 2005-01-04  Jackson Harper  <jackson@ximian.com>
21401
21402         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
21403         handling focus, return correct colors and fonts,
21404         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
21405         handle selection, horizontal scrolling, and mouse interaction.
21406
21407 2005-01-04  Peter Bartok <pbartok@novell.com>
21408
21409         * ICommandExecutor.cs: Added
21410         * IDataGridColumnStyleEditingNotificationService.cs: Added
21411         * IFeatureSupport.cs: Added
21412         * IFileReaderService.cs: Added
21413         * IDataObject.cs: Added ComVisible attribute
21414         * AmbientProperties.cs: Added
21415         * BaseCollection.cs: Added missing attributes
21416         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
21417         * BaseCollection.cs: Added missing attributes
21418         * Binding.cs: Added TypeConverter attribute
21419         * BindingContext.cs: Added DefaultEvent attribute
21420         * BindingsCollection.cs: Added DefaultEvent attribute
21421         * Button.cs: Added DefaultValue attribute
21422         * DragEventArgs.cs: Added ComVisible attribute
21423         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
21424         * KeyEventArgs.cs: Added ComVisible attribute
21425         * KeyPressEventArgs.cs: Added ComVisible attribute
21426         * MouseEventArgs.cs: Added ComVisible attribute
21427         * NavigateEventArgs.cs: Added
21428         * NavigateEventHandler.cs: Added
21429         * FeatureSupport.cs: Added
21430         * OSFeature.cs: Added
21431         * Theme.cs: Added abstract Version property to support OSFeature
21432         * ThemeWin32Classic.cs: Added Version property to
21433           support OSFeature.Themes
21434         * ProgressBar.cs: Removed OnPaintBackground override, not required since
21435           the proper styles to avoid background drawing are set, also doesn't
21436           match MS signature
21437         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
21438         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
21439         * ScrollEventArgs.cs: Added ComVisible attribute
21440         * SplitterEventArgs.cs: Added ComVisible attribute
21441         * AccessibleSelection.cs: Added Flags attribute
21442         * Appearance.cs: Added ComVisible attribute
21443         * Border3DSide.cs: Added ComVisible attribute
21444         * Border3DStyle.cs: Added ComVisible attribute
21445         * BorderStyle.cs: Added ComVisible attribute
21446         * DragAction.cs: Added ComVisible attribute
21447         * ErrorBlinkStyle.cs: Added
21448         * ScrollEventType.cs: Added ComVisible attribute
21449         * AnchorStyles.cs: Added Editor attribute
21450         * DockStyle.cs: Added Editor attribute
21451         * HorizontalAlignment.cs: Added ComVisible attribute
21452         * HelpEventArgs.cs: Added ComVisible attribute
21453         * PaintEventArgs.cs: Added IDisposable
21454
21455 2005-01-04  Peter Bartok <pbartok@novell.com>
21456
21457         * TextControl.cs: Switched Line, LineTag and Document classes to
21458           internal
21459
21460 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
21461
21462         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
21463         Simple mode, fixes, IntegralHeight, etc.
21464
21465 2005-01-04  Peter Bartok <pbartok@novell.com>
21466
21467         * TextBoxBase.cs: Using proper font variable now
21468
21469 2005-01-04  Peter Bartok <pbartok@novell.com>
21470
21471         * Form.cs (ShowDialog): Set parent to owner, if provided
21472         * GroupBox.cs: Removed unused vars
21473         * TextControl.cs:
21474           - Added GetHashCode() for Document and LineTag classes
21475           - Removed unused variables
21476           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
21477             to allow translation between continuous char position and line/pos
21478         * CheckBox.cs: Removed vars that are provided by base class
21479         * RadioButton.cs: Removed vars that are provided by base class, added
21480           new keyword where required
21481         * LinkLabel.cs: Added new keyword where required
21482         * Control.cs (WndProc): Removed unused variable
21483         * TextBoxBase.cs:
21484           - Finished SelectionLength property
21485           - Implemented SelectionStart property
21486           - Implemented Text property
21487           - Removed unused vars
21488         * MessageBox.cs: Added new keyword where required
21489         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
21490           WndProc signature
21491         * MenuAPI.cs: Added new keyword where required
21492         * ButtonBase.cs: Removed vars that are provided by base class, added
21493           new keyword where required
21494         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
21495           argument to double, to allow compiling with csc 2.0 (Atsushi ran
21496           into this)
21497         * Application.cs (Run): Now triggers the ThreadExit event
21498         * CommonDialog.cs: Added new keyword where required; now properly sets
21499           parent (owner) for dialog
21500         * XplatUIX11.cs: Commented out unused vars
21501         * StatusBar.cs: Fixed signature for Text property
21502         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
21503
21504 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
21505
21506         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
21507         TrackBar.cs, MonthCalendar.cs: remove unused vars
21508
21509 2005-01-03  Jackson Harper  <jackson@ximian.com>
21510
21511         * ThemeWin32Classic.cs:
21512         * X11Keyboard.cs: Remove unused vars.
21513
21514 2005-01-03  Peter Bartok  <pbartok@novell.com>
21515
21516         * TextBox.cs:
21517           - set_Text: Tied into TextControl
21518           - set_TextAlignment: Tied into TextControl
21519         * TextControl.cs:
21520           - Added alignment properties and implemented alignment handling
21521             and drawing (still has a bug, not generating proper expose events)
21522           - Added new Line() constructor to allow passing the line alignment
21523           - Fixed selection setting, properly handling end<start now
21524           - Added aligment considerations to RecalculateDocument()
21525         * TextBoxBase.cs:
21526           - Now properly enforces control height for single line controls
21527           - Added support for CharacterCasing
21528           - Added IsInputKey override
21529           - Fixed Keys.Enter logic
21530           - Added SetBoundsCore override
21531           - Fixed mouse selection handling
21532
21533 2005-01-03  Jackson Harper  <jackson@ximian.com>
21534
21535         * TreeView.cs:
21536           - Collapse and uncheck all nodes when CheckBoxes is disabled.
21537           - Checkboxes are always aligned to the bottom of the node,
21538           regardless of item height.
21539           - Use the node bounds to draw the text so we can center it when
21540           the item height is greater then the font height.
21541           - Node::Bounds are only the text part of the node.
21542         * TreeNode.cs: New method to combine collapsing and unchecking all
21543           nodes recursively.
21544
21545 2005-01-02  Jackson Harper  <jackson@ximian.com>
21546
21547         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
21548         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
21549         tree when a check is changed. TODO: Only refresh the checked node.
21550
21551 2004-12-30  Jackson Harper  <jackson@ximian.com>
21552
21553         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
21554         * TreeNode.cs: When collapsing make sure to never collapse the
21555         root node.
21556
21557 2004-12-29  Jackson Harper  <jackson@ximian.com>
21558
21559         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
21560         
21561 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
21562
21563         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
21564
21565 2004-12-28  Peter Bartok  <pbartok@novell.com>
21566
21567         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
21568           not yet assigned
21569
21570 2004-12-28  Peter Bartok  <pbartok@novell.com>
21571
21572         * Control.cs (WndProc): Added WM_HELP handler, now generates
21573           HelpRequested event
21574         * Form.cs: Added HelpButton property and required support code
21575         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
21576
21577 2004-12-28  Peter Bartok  <pbartok@novell.com>
21578
21579         * CommonDialog.cs:
21580           - Made DialogForm.owner variable internal
21581           - Added check to ensure owner form is set before setting
21582             owner properties in CreateParams
21583
21584 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
21585
21586         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
21587           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
21588           GetCursorPos.  Fix major visibility issues.  Rework the windowing
21589           system to support borderless/titleless windows (implements menus).
21590           Fix GetWindowPos.  Implement initial background color support for
21591           views.
21592
21593 2004-12-28  Peter Bartok  <pbartok@novell.com>
21594
21595         * Form.cs (get_CreateParams): Make sure we have an owner before using
21596           the owner variable. Implement proper default if no owner exists
21597
21598 2004-12-28  Peter Bartok  <pbartok@novell.com>
21599
21600         * In preparation for making Managed.Windows.Forms the default build target
21601           for System.Windows.Forms, the following stubbed files were added.
21602           Dialogs are currently being implemented by contributors and are only
21603           short-term place holders.
21604         * ColorDialog.cs: Initial check-in (minmal stub)
21605         * DataGrid.cs: Initial check-in (minimal stub)
21606         * DataGridLineStyle.cs: Initial check-in (minimal stub)
21607         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
21608         * DataGridTableStyle.cs: Initial check-in (minimal stub)
21609         * FontDialog.cs: Initial check-in (minimal stub)
21610         * FileDialog.cs: Initial check-in (minimal stub)
21611         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
21612         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
21613         * OpenFileDialog: Initial check-in (minimal stub)
21614         * IComponentEditorPageSite.cs: Initial check-in
21615         * Splitter.cs: Initial check-in (for Jackson)
21616         * SplitterEventArgs.cs: Initial check-in (for Jackson)
21617         * SplitterEventHandler.cs: Initial check-in (for Jackson)
21618         * TextBox.cs: Initial check-in; still needs some wiring to
21619           TextControl backend
21620         * Form.cs: Implemented ControlBox property
21621         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
21622         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
21623         * TextControl.cs: Added selection functionality; added todo header
21624         * TextBoxBase.cs:
21625           - Implemented Lines property
21626           - Implemented TextHeight property
21627           - Implemented SelectedText property
21628           - Implemented SelectionLength property
21629           - Implemented SelectAll method
21630           - Implemented ToString method
21631           - Removed and cleaned up some debug code
21632           - Implemented (still buggy) mouse text selection
21633
21634 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
21635
21636         * ComboBox.cs: Complete DropDownList implementation, fixes.
21637
21638 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
21639
21640         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
21641         * ComboBoxStyle.cs: ComboBoxStyle enum
21642         * ComboBox.cs: Initial work on ComboBox control
21643
21644 2004-12-21  Peter Bartok  <pbartok@novell.com>
21645
21646         * Control.cs (ctor, CreateParams): Moved setting of is_visible
21647           forward so that anything that creates a window gets the default,
21648           also no longer uses Visible property in CreateParams to avoid
21649           walking up the parent chain and possibly get the wrong visible
21650           status. Fixed IsVisible to no longer walk up to the parent.
21651
21652 2004-12-21  Peter Bartok  <pbartok@novell.com>
21653
21654         * Form.cs (ShowDialog): Unset modality for the proper window
21655  
21656 2004-12-20  Peter Bartok  <pbartok@novell.com>
21657
21658         * CommonDialog.cs: Initial check-in
21659
21660 2004-12-20  Peter Bartok  <pbartok@novell.com>
21661
21662         * Control.cs (Visible): Now uses the parent window instead of the
21663           client area window for the property
21664
21665         * Form.cs
21666           - ShowDialog(): Now uses the proper window for modality
21667           - The default visibility state for the form parent is now false. This
21668             will prevent the user from seeing all the changes to the form and
21669             its controls before the application hits Application.Run()
21670           - Removed some stale commented out code
21671
21672         * NativeWindow.cs:
21673           - Added FindWindow() method to have a method to check for existence
21674             of a window handle
21675           - Added ability to override default exception handling (for example
21676             when debugging with VS.Net; to do this the ExternalExceptionHandler
21677             define must be set
21678           - Removed some useless debug output
21679
21680         * XplatUIX11.cs:
21681           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
21682             not working as expected
21683           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
21684             property to allow switching back to the modal window if focus is
21685             given to another one of our windows (Application Modal)
21686           - Now only sets override_redirect if we create a window
21687             without WS_CAPTION
21688           - Moved EventMask selection before mapping of newly created window
21689             so we can catch the map event as well
21690           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
21691           - Added various Atom related DllImports
21692           - Implemented Exit() method
21693           - .ctor() : No longer shows window if WS_VISIBLE is not defined
21694             in the CreateParams
21695
21696         * MessageBox.cs: Now properly deals with the FormParent window by
21697           providing an override the FormParent CreateParams property to
21698           set as POPUP instead of OVERLAPPED window.
21699
21700 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
21701
21702         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
21703         Minor code cleanup.
21704
21705 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
21706         
21707         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
21708
21709 2004-12-18  Peter Bartok  <pbartok@novell.com>
21710
21711         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
21712           implementing SetModal() method
21713
21714 2004-12-18  Peter Bartok  <pbartok@novell.com>
21715
21716         * X11Structs.cs (XGCValues): Fixed type of function element
21717         * XplatUI.cs: Added ScrollWindow() method
21718         * XplatUIDriver.cs: Added ScrollWindow() abstract
21719         * XplatUIWin32.cs: Implemented ScrollWindow() method
21720         * XplatUIX11.cs: Implemented ScrollWindow() method
21721         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
21722
21723 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
21724
21725         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
21726         Some more keyboard support (INCOMPLETE)
21727
21728 2004-12-17  Peter Bartok  <pbartok@novell.com>
21729
21730         * TextControl.cs:
21731         - Added color attribute to line tags.
21732         - Added color argument to all functions dealing with tags
21733         - Added color argument support to various functions
21734         - Fixed miss-calculation of baseline/shift in certain circumstances
21735
21736         * TextBoxBase.cs: Added new color option to test code
21737
21738 2004-12-17  Jackson Harper  <jackson@ximian.com>
21739
21740         * TreeNode.cs:
21741         * MonthCalendar.cs: Signature fixes
21742
21743 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
21744
21745         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
21746         keyboard event moved it.  Create a new graphics context for each paint resolves this
21747
21748 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
21749
21750         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
21751         Make caret exist and go blink blink.  Initial keyboard support.
21752         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
21753         works.
21754
21755 2004-12-17  Jackson Harper  <jackson@ximian.com>
21756
21757         * XplatUIStructs.cs: Updated set of virtual keycodes.
21758         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
21759
21760 2004-12-17  Jackson Harper  <jackson@ximian.com>
21761
21762         * XplatUIX11.cs: Prune old keyboard code.
21763
21764 2004-12-17  Jackson Harper  <jackson@ximian.com>
21765
21766         * XplatUIX11.cs: When generating mouse wparams get the modifier
21767         keys from the ModifierKeys property.
21768
21769 2004-12-17  Jackson Harper  <jackson@ximian.com>
21770
21771         * X11Keyboard.cs: Send up/down input when generating
21772         messages. Remove some unused vars.
21773
21774 2004-12-17  Jackson Harper  <jackson@ximian.com>
21775
21776         * TabControl.cs:
21777         * TreeView.cs: get rid of warnings.
21778
21779 2004-12-17  Jackson Harper  <jackson@ximian.com>
21780
21781         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
21782
21783 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
21784
21785         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
21786           CheckedListBox.cs: Implementation
21787
21788 2004-12-17  Peter Bartok  <pbartok@novell.com>
21789
21790         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
21791
21792 2004-12-16  Peter Bartok  <pbartok@novell.com>
21793
21794         * TextControl.cs:
21795           - InsertCharAtCaret(): Fixed start pos fixup
21796           - CaretLine_get: No longer derives the line from the tag, the tag
21797             could be stale if lines in the document have been added or deleted
21798           - RebalanceAfterDelete(): Fixed bug in balancing code
21799           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
21800           - Line.Streamline(): Now can also elminate leading empty tags
21801           - DumpTree(): Added a few more tests and prevented exception on
21802             uninitialized data
21803           - Added Debug section for Combining lines
21804           - Delete(): Now copies all remaining properties of a line
21805           
21806         * TextBoxBase.cs:
21807           - Left mousebutton now sets the caret (and middle button still acts
21808             as formatting tester, which must go away soon)
21809           - Added Debug section for Deleting/Combining lines
21810           - Fixed calculations for UpdateView after Combining lines
21811
21812 2004-12-16  Peter Bartok  <pbartok@novell.com>
21813
21814         * TextControl.cs: Now properly aligns text on a baseline, using the
21815           new XplatUI.GetFontMetrics() method. Simplified several calculations
21816         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
21817           defined
21818
21819 2004-12-16  Peter Bartok  <pbartok@novell.com>
21820
21821         * XplatUI.cs: Added GetFontMetrics() method
21822         * XplatUIDriver.cs: Added GetFontMetrics() abstract
21823         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
21824           into libgdiplus, our private GetFontMetrics function
21825         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
21826         * XplatUIWin32.cs: Implemented GetFontMetrics() method
21827
21828 2004-12-16  Jackson Harper  <jackson@ximain.com>
21829
21830         * XplatUIStruct.cs: Add enum for dead keys
21831         * X11Keyboard.cs: Map and unmap dead keys.
21832
21833 2004-12-16  Jackson Harper  <jackson@ximian.com>
21834
21835         * X11Keyboard.cs: Detect and use the num lock mask.
21836
21837 2004-12-16  Peter Bartok  <pbartok@novell.com>
21838
21839         * Control.cs (CreateGraphics): Added check to make sure the
21840           handle of the window exists before calling Graphics.FromHwnd()
21841
21842 2004-12-16  Peter Bartok  <pbartok@novell.com>
21843
21844         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
21845           contains a lot of code that's not supposed to be there for the
21846           real thing, but required for developing/testing the textbox
21847           backend.
21848
21849 2004-12-16  Peter Bartok  <pbartok@novell.com>
21850
21851         * TextControl.cs:
21852         - Fixed Streamline method
21853         - Added FindTag method to Line
21854         - Added DumpTree method for debugging
21855         - Added DecrementLines() method for deleting lines
21856         - Fixed UpdateView to update the cursor to end-of-line on single-line
21857           updates
21858         - Added PositionCaret() method
21859         - Fixed MoveCaret(LineDown) to move into the last line, too
21860         - Added InsertChar overload
21861         - Fixed InsertChar tag offset calculations
21862         - Added DeleteChar() method
21863         - Added Combine() method for folding lines
21864         - Fixed Delete() method, no longer allocates wasted Line object and
21865           now copies all properties when swapping nodes
21866         - Delete() method now updates document line counter
21867
21868 2004-12-15  Jackson Harper  <jackson@ximian.com>
21869
21870         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
21871         * X11Keyboard.cs: Expose the currently selected modifier keys
21872         through a property.
21873
21874 2004-12-15  Peter Bartok  <pbartok@novell.com>
21875
21876         * TextControl.cs: Initial check-in. Still incomplete
21877
21878 2004-12-15  Jackson Harper  <jackson@ximian.com>
21879
21880         * TreeNode.cs:
21881         * TreeView.cs: Fix build on csc (second time today ;-))
21882
21883 2004-12-15  Jackson Harper  <jackson@ximian.com>
21884
21885         * TreeView.cs: Store the treenodes plus/minus box bounds when it
21886         is calculated and use this for click testing.
21887         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
21888
21889 2004-12-15  Jackson Harper  <jackson@ximian.com>
21890
21891         * TreeView.cs: Pass the nodes image index to the image list when
21892         drawing that image.
21893
21894 2004-12-15  Jackson Harper  <jackson@ximian.com>
21895
21896         * X11Keyboard.cs: Set messages hwnd.
21897         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
21898         post_message calls.
21899
21900 2004-12-15  Jackson Harper  <jackson@ximian.com>
21901
21902         * X11Keyboard.cs: Fix to compile with csc.
21903         
21904 2004-12-15  Jackson Harper  <jackson@ximian.com>
21905
21906         * X11Structs.cs: Add key mask values
21907         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
21908         * X11Keyboard.cs: New file - Extrapolates and interpolates key
21909         down/up foo into WM_CHAR foo
21910         * KeyboardLayouts.cs: Common keyboard layouts
21911         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
21912         post messages into the main queue.
21913
21914 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
21915
21916         * Button.cs: implement ProcessMnemonic
21917         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
21918           brushes everytime
21919         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
21920         * ButtonBase.cs: Show HotkeyPrefix (not the &)
21921
21922 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
21923         
21924         * MonthCalendar.cs: Implemented click-hold for next/previous month
21925           and date selection
21926           
21927 2004-12-11  Peter Bartok  <pbartok@novell.com>
21928
21929         * X11Structs.cs:
21930           - Added XKeyboardState (moved from XplatUIX11.cs)
21931           - Added XCreateGC related enums and structures
21932           - Added GXFunction for XSetFunction
21933
21934         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
21935
21936         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
21937           CaretVisible() calls
21938
21939         * ToolTip.cs: Added code to prevent stealing focus from app windows
21940
21941         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
21942           DestroyCaret, SetCaretPos and CaretVisible)
21943
21944         * XplatUIX11.cs:
21945           - Added implementation for caret functions
21946           - Moved hover variables into a struct, to make it a bit easier
21947             on the eyes and to debug
21948           - Removed XKeyboardState (moved to XplatUIX11.cs)
21949           - Moved Keyboard properties into the properties region
21950
21951         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
21952           call to get a graphics context for our control
21953
21954         * XplatUIOSX.cs: Added empty overrides for the new caret functions
21955
21956         * TreeView.cs: Fixed bug. No matter what color was set it would always
21957           return SystemColors.Window
21958
21959         * XplatUIWin32.cs: Implemented caret overrides
21960
21961 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
21962
21963         * ListBox.cs: fire events, implement missing methods and properties,
21964         sorting.
21965
21966 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
21967
21968         * MonthCalendar.cs: invalidation bug fixing
21969         * ThemeWin32Classic.cs: paint fixing
21970
21971 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
21972
21973         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
21974         prepare the CGContextRef there now.
21975
21976 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
21977
21978         * MonthCalendar.cs:
21979           - optimisationL only invalidate areas that have changed
21980         * ThemeWin32Classic.cs:
21981           - only paint parts that intersect with clip_area
21982
21983 2004-12-09  Peter Bartok  <pbartok@novell.com>
21984
21985         * Application.cs: Undid changes from r37004 which cause problems
21986         on X11
21987
21988 2004-12-09  Ravindra  <rkumar@novell.com>
21989
21990         * ToolBar.cs: Added support for displaying ContextMenu
21991         attached to a button on ToolBar.
21992         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
21993         property.
21994
21995 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
21996
21997         * Label.cs: autosize works in text change and removes unnecessary
21998         invalidate
21999
22000 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
22001
22002         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
22003         remove warnings
22004
22005 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
22006
22007         * XplatUIOSX.cs: Added mouse move/click/grab support
22008         Remove some debugging WriteLines not needed anymore.
22009         Add window resizing/positioning.
22010         Fix visibility on reparenting.
22011
22012 2004-12-08  Peter Bartok  <pbartok@novell.com>
22013
22014         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
22015
22016 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
22017
22018         * XplatUIOSX.cs: Initial checkin
22019         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
22020
22021 2004-12-03  Ravindra <rkumar@novell.com>
22022
22023         * ListView.cs: Added some keybindings and fixed scrolling.
22024         ScrollBars listen to ValueChanged event instead of Scroll
22025         Event. This would let us take care of all changes being
22026         done in the scrollbars' values programmatically or manually.
22027         * ListView.cs (CanMultiselect): Added a check for shift key.
22028         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
22029         * ListViewItem.cs (Clone): Fixed. We need to make a copy
22030         of ListViewSubItemCollection as well.
22031
22032 2004-12-06  Peter Bartok <pbartok@novell.com>
22033
22034         * Control.cs (Parent): Added check and exception to prevent
22035         circular parenting
22036
22037 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
22038
22039         * ListBox.cs: implemented clipping, selection single and multiple,
22040         bug fixing
22041
22042 2004-12-03  Ravindra <rkumar@novell.com>
22043
22044         * ListView.cs (ListView_KeyDown):
22045         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
22046         when CTRL key is pressed.
22047         * ListViewItem.cs (Selected): Fixed setting the property.
22048
22049 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
22050
22051         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
22052
22053         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
22054         MinimizeBox, ShowInTaskbar, TopMost properties.
22055
22056         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
22057         will be implemented).
22058
22059 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
22060
22061         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
22062
22063         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
22064         tests.
22065         
22066         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
22067         
22068         * TreeView.cs: BackColor is Colors.Window.
22069
22070 2004-12-01  Jackson Harper  <jackson@ximian.com>
22071
22072         * TreeView.cs: When resizing the tree if the user is making it
22073         smaller we don't get expose events, so we need to handle adding
22074         the horizontal scrollbar in the size changed handler as well as
22075         the expose handler.
22076
22077 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
22078
22079         * DrawItemState.cs: fixes wrong enum values
22080
22081 2004-12-01  Jackson Harper  <jackson@ximian.com>
22082
22083         * TreeView.cs: Resize the hbar as well as the vbar on resize.
22084
22085 2004-12-01  Jackson Harper  <jackson@ximian.com>
22086
22087         * NodeLabelEditEventArgs.cs:
22088         * NodeLabelEditEventHandler.cs:
22089         * OpenTreeNodeEnumerator.cs:
22090         * TreeNode.cs:
22091         * TreeNodeCollection.cs:
22092         * TreeView.cs:
22093         * TreeViewAction.cs:
22094         * TreeViewCancelEventArgs.cs:
22095         * TreeViewCancelEventHandler.cs:
22096         * TreeViewEventArgs.cs:
22097         * TreeViewEventHandler.cs: Initial implementation.
22098
22099 2004-12-01  Ravindra <rkumar@novell.com>
22100
22101         * ListView.cs (CalculateListView): Fixed scrolling related
22102         calculations. Also, removed some debug statements from other
22103         places.
22104         * ListViewItem.cs: Changed access to 'selected' instance variable
22105         from private to internal.
22106         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
22107
22108 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
22109
22110         * ThemeWin32Classic.cs: remove cache of brush and pens for
22111         specific controls and use the global system, fixes scrollbutton
22112         bugs (for small sizes, disabled, etc)
22113         
22114         * ScrollBar.cs: does not show the thumb for very small controls
22115         (as MS) and allow smaller buttons that the regular size
22116
22117 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
22118
22119         * UpDownBase.cs: Add abstract methods for the interface.
22120         Add new virtual methods (need to be hooked up to TextEntry when it
22121         exists).
22122         Add override methods for most features.
22123         Computes the size, forces the height of the text entry.
22124
22125         * NumericUpDown.cs: Put here the current testing code.
22126
22127         * Set eol-style property on all files that do not have mixed line
22128         endings, to minimize the future problems.  There are still a few
22129         files with mixed endings, and someone should choose whether they
22130         want to move it or not.
22131
22132 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
22133
22134         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
22135         System.Colors
22136         
22137 2004-11-30  Ravindra <rkumar@novell.com>
22138
22139         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
22140         drawing and replaced use of SystemColors by theme colors.
22141         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
22142         * ListView.cs (ListViewItemCollection.Add): Throw exception when
22143         same ListViewItem is being added more than once.
22144
22145 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
22146
22147         * MonthCalendar.cs:
22148           - ControlStyles love to make the control not flicker
22149           
22150 2004-11-30  Peter Bartok  <pbartok@novell.com>
22151
22152         * CharacterCasing.cs: Added
22153
22154 2004-11-29  Peter Bartok  <pbartok@novell.com>
22155
22156         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
22157           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
22158           I am removing these files as they conflict with already completed
22159           work. While it is fantastic to get contributions to MWF, I
22160           respectfully ask that everyone please coordinate their contributions
22161           through mono-winforms-list or #mono-winforms at this time. We're
22162           explicitly avoiding stubbing and don't want controls that don't have
22163           their basic functionality implemented in svn. Please also see
22164           http://www.mono-project.com/contributing/winforms.html
22165
22166
22167 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
22168
22169         * Application.cs (ModalRun): Don't hang after exit.
22170
22171         * Theme.cs: New TreeViewDefaultSize property.
22172
22173         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
22174         with less hardcoded SystemColors constant.
22175         Implemented TreeViewDefaultSize.
22176
22177         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
22178         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
22179
22180
22181 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
22182
22183         * MonthCalendar.cs:
22184           - Fix NextMonthDate and PrevMonthDate click moving calendar
22185
22186 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
22187
22188         * MonthCalendar.cs:
22189           - Fix usage of ScrollChange Property when scrolling months
22190
22191 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
22192
22193         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
22194          - Fixes menu destroying
22195          - Support adding and removing items on already created menus
22196
22197 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
22198
22199         * MonthCalendar.cs:
22200           - Re-worked all bolded dates handling to match win32
22201         * ThemeWin32Classic.cs:
22202           - Fixed rendering with bolded dates
22203
22204 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
22205
22206         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
22207         - Horizontal scroolbar
22208         - Multicolumn
22209         - Fixes
22210
22211
22212 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
22213
22214         * MonthCalendar.cs:
22215           - Fix Usage of MaxSelectionCount from SelectionRange
22216           - Fixed Shift + Cursor Selection
22217           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
22218           - Fixed normal cursor selection to be compat with win32
22219           - Fixed Shift + Mouse Click selection
22220
22221 2004-11-24  Peter Bartok <pbartok@novell.com>
22222
22223         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
22224         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
22225         * XplatUIX11.cs:
22226           - CreatedKeyBoardMsg now updates keystate with Alt key
22227           - Added workaround for timer crash to CheckTimers, Jackson will
22228             develop a proper fix and check in later
22229           - Implemented DispatchMessage
22230           - Removed calling the native window proc from GetMessage (call
22231             now moved to DispatchMessage)
22232
22233         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
22234           the keydata (Fixes bug #69831)
22235
22236         * XplatUIWin32.cs:
22237           - (DispatchMessage): Switched to return IntPtr
22238           - Added DllImport for SetFocus
22239
22240 2004-11-24  Ravindra <rkumar@novell.com>
22241
22242         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
22243         background drawing.
22244         * ListViewItem.cs: Fixed various properties, calculations
22245         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
22246         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
22247         and some internal properties. Fixed MouseDown handler and Paint
22248         method.
22249
22250 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
22251
22252         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
22253
22254 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
22255
22256         * ContainerControl.cs: correct accidental check in of local changes
22257
22258 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
22259
22260         * ThemeWin32Classic.cs:
22261                 - Fixed Drawing Last month in grid (sometimes not showing)
22262         * MonthCalendar.cs:
22263                 - Fixed title width calculation bug (makeing title small)
22264
22265 2004-11-23  Peter Bartok <pbartok@novell.com>
22266
22267         * XplatUIX11.cs:
22268           - Added generation of WM_MOUSEHOVER event
22269           - Added missing assignment of async_method atom
22270           - Fixed WM_ERASEBKGND; now only redraws the exposed area
22271
22272 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
22273
22274         * ThemeWin32Classic.cs:
22275                 - Fixed Drawing of today circle when showtodaycircle not set
22276                 - fixed drawing of first and last month in the grid (gay dates)
22277         * MonthCalendar.cs:
22278                 - Fixed Drawing of today circle
22279                 - Fixed drawing of grady dates
22280                 - Fixed HitTest for today link when ShowToday set to false
22281                 - Fixed DefaultSize to obey ShowToday
22282
22283 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
22284
22285         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
22286         * System.Windows.Forms/Theme.cs
22287         * MonthCalendar.cs: added for MonthCalendar
22288         * SelectionRange.cs: added for MonthCalendar
22289         * Day.cs: added for MonthCalendar: added for MonthCalendar
22290         * DateRangeEventArgs.cs: added for MonthCalendar
22291         * DateRangeEventHandler.cs: added for MonthCalendar
22292
22293 2004-11-22  Ravindra <rkumar@novell.com>
22294
22295         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
22296         property.
22297
22298 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
22299
22300         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
22301         event handler.
22302         
22303         * NumericUpDown.cs: Added new implementation.
22304         * UpDownBase.cs: Added new implementation.
22305
22306         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
22307         implementations.
22308         
22309         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
22310         implementations.
22311
22312         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
22313         methods.
22314
22315 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
22316
22317         * Timer.cs  (Dispose): Should call the base dispose when
22318         overriding.
22319
22320 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
22321
22322         * ScrollBar.cs: updates thumb position when max, min or increment
22323         is changed
22324
22325 2004-11-21  Ravindra <rkumar@novell.com>
22326
22327         * ListView.cs: Implemented item selection, activation and
22328         column header style. Fixed properties to do a redraw, if
22329         required. Added support for MouseHover, DoubleClick, KeyDown
22330         and KeyUp event handling and some minor fixes.
22331         * ListViewItem.cs: Fixed constructor.
22332         * ThemeWin32Classic.cs: Improved drawing for ListView.
22333
22334 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
22335
22336         * ThemeWin32Classic.cs: initial listbox drawing code
22337         * DrawMode.cs: new enumerator
22338         * ListControl.cs: stubbed class
22339         * ListBox.cs: initial implementation
22340         * Theme.cs: new methods definitions
22341         * SelectionMode.cs: new enumerator
22342
22343 2004-11-17  Peter Bartok  <pbartok@novell.com>
22344
22345         * XplatUIWin32.cs: Added double-click events to the class style
22346         * Control.cs (WndProc):
22347           - Added handling of click-count to MouseDown/ MouseUp events.
22348           - Added handling of middle and right mouse buttons
22349           - Removed old debug code
22350
22351 2004-11-17  Jackson Harper  <jackson@ximian.com>
22352
22353         * XplatUIX11.cs: Use the new Mono.Unix namespace.
22354
22355 2004-11-17  Ravindra <rkumar@novell.com>
22356
22357         * ListView.cs: Added event handling for MouseMove/Up/Down.
22358         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
22359         * ThemeWin32Classic.cs: We need to clear the graphics context and
22360         draw column header in a proper state.
22361
22362
22363 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
22364
22365         *  Menu.cs: fixes signature
22366
22367 2004-11-16  Peter Bartok  <pbartok@novell.com>
22368
22369         * XplatUIX11.cs (GetMessage): Implemented generation of
22370           double click mouse messages
22371
22372 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
22373
22374         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
22375         not by menu
22376
22377 2004-11-11  Peter Bartok  <pbartok@novell.com>
22378
22379         * HandleData.cs: Added Visible property
22380         * XplatUIX11.cs (IsVisible): Now uses Visible property from
22381           HandleData
22382         * XplatUIX11.cs: Removed old debug leftovers
22383         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
22384         * Control.cs (WndProc): Removed old debug leftovers,
22385           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
22386           needed WM_SIZE handling
22387
22388 2004-11-11  Jackson Harper  <jackson@ximian.com>
22389
22390         * OwnerDrawPropertyBag.cs:
22391         * TreeViewImageIndexConverter.cs: Initial implementation
22392
22393 2004-11-10  Jackson Harper  <jackson@ximian.com>
22394
22395         * ThemeWin32Classic.cs:
22396         * TabControl.cs: instead of moving tabs by the slider pos just
22397         start drawing at the tab that is offset by the slider. This way
22398         scrolling always moves by exactly one tab.
22399
22400 2004-11-10  Jackson Harper  <jackson@ximian.com>
22401
22402         * TabControl.cs: You can only scroll left when the slider has
22403         already ben moved right.
22404         
22405 2004-11-10  Jackson Harper  <jackson@ximian.com>
22406
22407         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
22408         the clip area.
22409         
22410 2004-11-10  Jackson Harper  <jackson@ximian.com>
22411
22412         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
22413         clip area.
22414         
22415 2004-11-09  Jackson Harper  <jackson@ximian.com>
22416
22417         * TabControl.cs (CalcXPos): New helper method so we can determine
22418         the proper place to start drawing vertical tabs.
22419         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
22420         
22421 2004-11-09  Jackson Harper  <jackson@ximian.com>
22422
22423         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
22424         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
22425         and Bottom, left and right are illegal values for this and
22426         multiline is enabled when the alignment is set to left or right.
22427         (DrawTab): Each alignment block should draw the text itself now
22428         because Left requires special love. Also add rendering for Left
22429         aligned tabs.
22430         
22431 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
22432
22433         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
22434         does not destroy the windows, removes debugging messages
22435
22436 2004-11-09  jba  <jba-mono@optusnet.com.au>
22437
22438         * ThemeWin32Classic.cs
22439         (DrawButtonBase): Fix verticle text rect clipping in windows
22440         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
22441         rendering and incorrect text rect clipping
22442         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
22443         rendering and incorrect text rect clipping
22444         
22445 2004-11-08  Jackson Harper  <jackson@ximian.com>
22446
22447         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
22448         bottom when they are bottom aligned so the bottoms of the tabs get
22449         displayed.
22450         * TabControl.cs (DropRow): Move rows up instead of down when the
22451         tab control is bottom aligned.
22452
22453 2004-11-08 13:59  pbartok
22454
22455         * XplatUIX11.cs:
22456           - Added handling for various window styles
22457           - Added handling for popup windows
22458           - Added SetTopmost handling
22459
22460 2004-11-08 13:55  pbartok
22461
22462         * XplatUIWin32.cs:
22463           - Added argument to SetTopmost method
22464           - Fixed broken ClientToScreen function
22465
22466 2004-11-08 13:53  pbartok
22467
22468         * XplatUIStructs.cs:
22469           - Added missing WS_EX styles
22470
22471 2004-11-08 13:53  pbartok
22472
22473         * XplatUI.cs, XplatUIDriver.cs:
22474           - Added argument to SetTopmost
22475
22476 2004-11-08 13:52  pbartok
22477
22478         * X11Structs.cs:
22479           - Added XSetWindowAttributes structure
22480           - Improved XWindowAttributes structure
22481           - Added SetWindowValuemask enum
22482           - Added window creation arguments enum
22483           - Added gravity enum
22484           - Added Motif hints structure
22485           - Added various Motif flags and enums
22486           - Added PropertyMode enum for property functions
22487
22488 2004-11-08 13:50  pbartok
22489
22490         * Form.cs:
22491           - Fixed arguments for updated SetTopmost method
22492
22493 2004-11-08 13:49  pbartok
22494
22495         * ToolTip.cs:
22496           - Fixed arguments for updated SetTopmost function
22497           - Fixed usage of PointToClient
22498
22499 2004-11-08 13:44  pbartok
22500
22501         * MenuAPI.cs:
22502           - Added Clipping of children and siblings
22503
22504 2004-11-08 13:41  pbartok
22505
22506         * MainMenu.cs:
22507           - Removed SetMenuBarWindow call. We do this in Form.cs
22508
22509 2004-11-08 13:40  jackson
22510
22511         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
22512           scrolling jimmi in the correct location with bottom aligned tabs
22513
22514 2004-11-08 13:36  pbartok
22515
22516         * ContainerControl.cs:
22517           - Implemented BindingContext
22518           - Implemented ParentForm
22519
22520 2004-11-08 12:46  jackson
22521
22522         * TabControl.cs: Put bottom rendered tabs in the right location
22523
22524 2004-11-08 07:15  jordi
22525
22526         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
22527           removes dead code
22528
22529 2004-11-05 17:30  jackson
22530
22531         * TabControl.cs: When selected tabs are expanded make sure they
22532           don't go beyond the edges of the tab control
22533
22534 2004-11-05 14:57  jackson
22535
22536         * TabControl.cs: Reset show_slider so if the control is resized to
22537           a size where it is no longer needed it's not displayed anymore
22538
22539 2004-11-05 13:16  jackson
22540
22541         * TabControl.cs: Make tab pages non visible when added to the
22542           control
22543
22544 2004-11-05 12:42  jackson
22545
22546         * TabControl.cs: Implement SizeMode.FillToRight
22547
22548 2004-11-05 12:16  jackson
22549
22550         * Control.cs: Do not call CreateHandle if the handle is already
22551           created
22552
22553 2004-11-05 11:46  jackson
22554
22555         * TabControl.cs: Remove superflous call to CalcTabRows
22556
22557 2004-11-05 09:07  jackson
22558
22559         * XplatUIX11.cs: Update for Mono.Posix changes
22560
22561 2004-11-05 07:00  ravindra
22562
22563         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
22564           scrolling.
22565
22566 2004-11-04 22:47  jba
22567
22568         * ThemeWin32Classic.cs:
22569           - Fix Button rendering for FlatStyle = Flat or Popup
22570           - Fix RadioButton and CheckBox rendering when Appearance = Button
22571             (normal and flatstyle).
22572           - Correct outer rectangle color when drawing focus rectangle
22573           - Adjust button bounds to be 1 px smaller when focused
22574           - Make button not draw sunken 3d border when pushed (windows compat)
22575           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
22576           - Offset the text in RadioButton and Checkbox when being rendered as
22577           a button.
22578           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
22579           radiobuttons
22580           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
22581           - Fixed disabled text rendering for normally rendered radiobuttons
22582
22583 2004-11-04 10:26  jackson
22584
22585         * TabControl.cs: Recalculate tab rows when resizing
22586
22587 2004-11-04 07:47  jordi
22588
22589         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
22590           collection completion, drawing issues, missing features
22591
22592 2004-11-04 05:03  ravindra
22593
22594         * ScrollBar.cs:
22595                 - We need to recalculate the Thumb area when
22596                 LargeChange/maximum/minimum values are changed.
22597           - We set the 'pos' in UpdatePos() method to minimum, if it's less
22598                 than minimum. This is required to handle the case if large_change is
22599                 more than max, and use LargeChange property instead of large_change
22600                 variable.
22601           - We return max+1 when large_change is more than max, like MS does.
22602
22603 2004-11-04 04:29  ravindra
22604
22605         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
22606                 - Changed default value signatures (prefixed all with ListView).
22607                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
22608                 ListView.
22609           - Fixed calculations for ListViewItem and implemented Clone()
22610           method.
22611
22612 2004-11-04 04:26  ravindra
22613
22614         * Theme.cs, ThemeWin32Classic.cs:
22615                 - Changed default ListView values signatures (prefixed all with
22616                 ListView).
22617           - Fixed default size values for VScrollBar and HScrollBar.
22618                 - Fixed DrawListViewItem method.
22619
22620 2004-11-04 04:05  ravindra
22621
22622         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
22623
22624 2004-11-04 04:04  ravindra
22625
22626         * ImageList.cs: Implemented the missing overload for Draw method.
22627
22628 2004-11-03 19:29  jackson
22629
22630         * TabControl.cs: Handle dropping rows on selection properly
22631
22632 2004-11-03 11:59  jackson
22633
22634         * TabControl.cs: remove debug code
22635
22636 2004-11-03 11:52  jackson
22637
22638         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
22639           the scrolly widgerywoo
22640
22641 2004-11-02 13:52  jackson
22642
22643         * TabControl.cs: Resize the tab pages and tabs when the tab control
22644           is resized
22645
22646 2004-11-02 13:40  jackson
22647
22648         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
22649           selected tab to the bottom
22650
22651 2004-11-02 13:39  jackson
22652
22653         * TabPage.cs: Store the tab pages row
22654
22655 2004-11-02 12:33  jordi
22656
22657         * MenuItem.cs: fixes handle creation
22658
22659 2004-11-02 11:42  jackson
22660
22661         * TabControl.cs: signature fix
22662
22663 2004-11-02 08:56  jackson
22664
22665         * TabControl.cs: Calculate whether the tab is on an edge properly.
22666           Remove top secret debugging code
22667
22668 2004-11-01 19:57  jackson
22669
22670         * TabControl.cs: Add click handling, and proper sizing
22671
22672 2004-11-01 19:47  jackson
22673
22674         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
22675           tab controls
22676
22677 2004-11-01 19:39  jackson
22678
22679         * TabPage.cs: add internal property to store the bounds of a tab
22680           page
22681
22682 2004-10-30 04:23  ravindra
22683
22684         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
22685           values.
22686
22687 2004-10-30 04:21  ravindra
22688
22689         * ListView.cs, ListViewItem.cs: Added support for scrolling and
22690           fixed calculations.
22691
22692 2004-10-30 03:06  pbartok
22693
22694         * XplatUIX11.cs:
22695           - Removed extension of DllImported libs
22696
22697 2004-10-29 09:55  jordi
22698
22699         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
22700           navigation, itemcollection completion, menu fixes
22701
22702 2004-10-27 22:58  pbartok
22703
22704         * XplatUIX11.cs:
22705           - Now throws a nice error message when no X display could be opened
22706
22707 2004-10-26 13:51  jordi
22708
22709         * ListView.cs: removes warning
22710
22711 2004-10-26 03:55  ravindra
22712
22713         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
22714           ThemeWin32Classic.cs: Some formatting for my last checkins.
22715
22716 2004-10-26 03:36  ravindra
22717
22718         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
22719           control and default values.
22720
22721 2004-10-26 03:35  ravindra
22722
22723         * Theme.cs: Added some default values for ListView control.
22724
22725 2004-10-26 03:33  ravindra
22726
22727         * ToolBar.cs: ToolBar should use the user specified button size, if
22728           there is any. Added a size_specified flag for the same.
22729
22730 2004-10-26 03:33  ravindra
22731
22732         * ColumnHeader.cs: Added some internal members and calculations for
22733           ColumnHeader.
22734
22735 2004-10-26 03:32  ravindra
22736
22737         * ListViewItem.cs: Calculations for ListViewItem.
22738
22739 2004-10-26 03:31  ravindra
22740
22741         * ListView.cs: Added some internal members and calculations for
22742           ListView.
22743
22744 2004-10-22 13:31  jordi
22745
22746         * MenuAPI.cs: speedup menus drawing
22747
22748 2004-10-22 13:16  jackson
22749
22750         * XplatUIX11.cs: Make sure to update exposed regions when adding an
22751           expose event
22752
22753 2004-10-22 11:49  jackson
22754
22755         * Control.cs: oops
22756
22757 2004-10-22 11:41  jackson
22758
22759         * Control.cs: Check to see if the window should have its background
22760           repainted by X when drawing.
22761
22762 2004-10-22 11:31  jackson
22763
22764         * XplatUIX11.cs: When invalidating areas only use XClearArea if
22765           clear is true, this way we do not get flicker from X repainting the
22766           background
22767
22768 2004-10-22 11:28  jackson
22769
22770         * XEventQueue.cs: Queue properly
22771
22772 2004-10-21 09:38  jackson
22773
22774         * XEventQueue.cs: Fix access modifier
22775
22776 2004-10-21 09:36  jackson
22777
22778         * XEventQueue.cs: Don't loose messages
22779
22780 2004-10-21 09:22  jackson
22781
22782         * XEventQueue.cs: Don't loose messages
22783
22784 2004-10-20 04:15  jordi
22785
22786         * BootMode.cs: enum need it by SystemInfo
22787
22788 2004-10-19 21:58  pbartok
22789
22790         * XplatUIWin32.cs:
22791           - Small sanity check
22792
22793 2004-10-19 21:56  pbartok
22794
22795         * Form.cs:
22796           - Added private FormParentWindow class which acts as the container
22797             for our form and as the non-client area where menus are drawn
22798           - Added/Moved required tie-ins to Jordi's menus
22799           - Fixed/Implemented the FormStartPosition functionality
22800
22801 2004-10-19 21:52  pbartok
22802
22803         * Control.cs:
22804           - Removed unneeded locals
22805           - Added code to all size and location properties to understand and
22806             deal with the parent container of Form
22807
22808 2004-10-19 21:33  pbartok
22809
22810         * Application.cs:
22811           - Fixed to deal with new Form subclasses for menus
22812
22813 2004-10-19 17:48  jackson
22814
22815         * XEventQueue.cs: commit correct version of file
22816
22817 2004-10-19 16:50  jackson
22818
22819         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
22820
22821 2004-10-19 16:15  jordi
22822
22823         * MenuAPI.cs: MenuBarCalcSize returns the height
22824
22825 2004-10-19 08:31  pbartok
22826
22827         * Control.cs:
22828           - Added missing call to PreProcessMessage before calling OnXXXKey
22829           methods
22830
22831 2004-10-19 00:04  ravindra
22832
22833         * ToolTip.cs: Fixed constructor.
22834
22835 2004-10-18 09:31  jordi
22836
22837         * MenuAPI.cs: menuitems in menubars do not have shortcuts
22838
22839 2004-10-18 09:26  jordi
22840
22841         * MenuItem.cs: fixes MenuItem class signature
22842
22843 2004-10-18 08:56  jordi
22844
22845         * MenuAPI.cs: prevents windows from showing in the taskbar
22846
22847 2004-10-18 00:28  ravindra
22848
22849         * ToolTip.cs: Suppressed a warning message.
22850
22851 2004-10-18 00:27  ravindra
22852
22853         * Control.cs: Default value of visible property must be true.
22854
22855 2004-10-17 23:19  pbartok
22856
22857         * ToolTip.cs:
22858           - Complete implementation
22859
22860 2004-10-17 23:19  pbartok
22861
22862         * XplatUIX11.cs:
22863           - Added EnableWindow method
22864           - Added SetModal stub
22865           - Added generation of WM_ACTIVATE message (still needs testing)
22866           - Added SetTopMost stub
22867           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
22868
22869 2004-10-17 23:17  pbartok
22870
22871         * XplatUIWin32.cs:
22872           - Removed VirtualKeys to XplatUIStructs
22873           - Implemented SetTopMost method
22874           - Implemented EnableWindow method
22875           - Bugfix in ScreenToClient()
22876           - Bugfixes in ClientToScreen()
22877
22878 2004-10-17 22:51  pbartok
22879
22880         * XplatUIStructs.cs:
22881           - Added WS_EX styles to WindowStyles enumeration
22882
22883 2004-10-17 22:50  pbartok
22884
22885         * XplatUI.cs, XplatUIDriver.cs:
22886           - Added method for enabling/disabling windows
22887           - Added method for setting window modality
22888           - Added method for setting topmost window
22889
22890 2004-10-17 22:49  pbartok
22891
22892         * ThemeWin32Classic.cs:
22893           - Added ToolTip drawing code
22894
22895 2004-10-17 22:49  pbartok
22896
22897         * Theme.cs:
22898           - Added ToolTip abstracts
22899
22900 2004-10-17 22:47  pbartok
22901
22902         * Form.cs:
22903           - Fixed Form.ControlCollection to handle owner relations
22904           - Added Owner/OwnedForms handling
22905           - Implemented Z-Ordering for owned forms
22906           - Removed unneeded private overload of ShowDialog
22907           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
22908             so I hope)
22909           - Fixed Close(), had wrong default
22910           - Added firing of OnLoad event
22911           - Added some commented out debug code for Ownership handling
22912
22913 2004-10-17 22:16  pbartok
22914
22915         * Control.cs:
22916           - Fixed/implemented flat list of controls
22917
22918 2004-10-17 22:14  pbartok
22919
22920         * Application.cs:
22921           - Added code to simulate modal dialogs on Win32
22922
22923 2004-10-17 16:11  jordi
22924
22925         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
22926           mouse event
22927
22928 2004-10-17 13:39  jordi
22929
22930         * MenuAPI.cs: menu drawing fixes
22931
22932 2004-10-15 09:10  ravindra
22933
22934         * StructFormat.cs: General Enum.
22935
22936 2004-10-15 09:09  ravindra
22937
22938         * SizeGripStyle.cs: Enum for Form.
22939
22940 2004-10-15 09:08  ravindra
22941
22942         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
22943           in Theme for ListView.
22944
22945 2004-10-15 09:06  ravindra
22946
22947         * ColumnHeader.cs: Flushing some formatting changes.
22948
22949 2004-10-15 09:05  ravindra
22950
22951         * ListViewItem.cs: Implemented GetBounds method and fixed coding
22952           style.
22953
22954 2004-10-15 09:03  ravindra
22955
22956         * ListView.cs: Implemented Paint method and fixed coding style.
22957
22958 2004-10-15 07:34  jordi
22959
22960         * MenuAPI.cs: fix for X11
22961
22962 2004-10-15 07:32  ravindra
22963
22964         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
22965                 - Renamed Paint() method to Draw() for clarity. Also, moved
22966                 DrawImage() to OnPaint().
22967
22968 2004-10-15 07:25  ravindra
22969
22970         * CheckBox.cs, RadioButton.cs:
22971                 - Removed Redraw (), we get it from ButtonBase.
22972                 - Implemented Paint (), to do class specific painting.
22973
22974 2004-10-15 07:16  ravindra
22975
22976         * ButtonBase.cs:
22977                 - Redraw () is not virtual now.
22978                 - Added an internal virtual method Paint (), so that
22979                 derived classes can do their painting on their own.
22980                 - Modified OnPaint () to call Paint ().
22981
22982 2004-10-15 06:43  jordi
22983
22984         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
22985           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
22986
22987 2004-10-15 00:30  ravindra
22988
22989         * MessageBox.cs:
22990                 - MessageBox on windows does not have min/max buttons.
22991                 This change in CreateParams fixes this on Windows. We
22992                 still need to implement this windowstyle behavior in
22993                 our X11 driver.
22994
22995 2004-10-14 05:14  ravindra
22996
22997         * ToolBar.cs:
22998                 - Changed Redraw () to do a Refresh () always.
22999                 - Fixed the MouseMove event handling when mouse is pressed,
23000                 ie drag event handling.
23001                 - Replaced the usage of ToolBarButton.Pressed property to
23002                 ToolBarButton.pressed internal variable.
23003
23004 2004-10-14 05:10  ravindra
23005
23006         * ToolBarButton.cs:
23007                 - Added an internal member 'inside' to handle mouse move
23008                 with mouse pressed ie mouse drag event.
23009                 - Changed 'Pressed' property to return true only when
23010                 'inside' and 'pressed' are both true.
23011                 - Some coding style love.
23012
23013 2004-10-14 00:17  ravindra
23014
23015         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
23016           public method.
23017
23018 2004-10-14 00:15  ravindra
23019
23020         * ButtonBase.cs: Redraw () related improvements.
23021
23022 2004-10-14 00:14  ravindra
23023
23024         * MessageBox.cs: Moved InitFormSize () out of Paint method and
23025           removed unnecessary calls to Button.Show () method.
23026
23027 2004-10-13 17:50  pbartok
23028
23029         * XplatUIX11.cs:
23030           - Formatting fix
23031           - Removed destroying of window until we solve the problem of X
23032             destroying the window before us on shutdown
23033
23034 2004-10-13 16:32  pbartok
23035
23036         * ButtonBase.cs:
23037           - Now Redraws on MouseUp for FlatStyle Flat and Popup
23038
23039 2004-10-13 14:18  pbartok
23040
23041         * XplatUIX11.cs:
23042           - Added code to destroy the X window
23043
23044 2004-10-13 14:18  pbartok
23045
23046         * XplatUIWin32.cs:
23047           - Added code to destroy a window
23048
23049 2004-10-13 14:12  pbartok
23050
23051         * ButtonBase.cs:
23052           - Added the Redraw on Resize that got dropped in the last rev
23053
23054 2004-10-13 09:06  pbartok
23055
23056         * ThemeWin32Classic.cs:
23057           - Path from John BouAntoun:
23058             * Fix check rendering (centre correctly for normal style, offset
23059               correctly for FlatStyle).
23060             * Fix border color usage (use backcolor) for FlatStyle.Popup
23061             * Use checkbox.Capture instead of checkbox.is_pressed when
23062               rendering flatstyle states.
23063
23064 2004-10-12 21:48  pbartok
23065
23066         * ThemeWin32Classic.cs:
23067           - Removed all occurences of SystemColors and replaced them with the
23068             matching theme color
23069
23070 2004-10-12 21:41  pbartok
23071
23072         * ThemeWin32Classic.cs:
23073           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
23074             him using the function for flatstyle drawing
23075           - Changed functions to use the new version of CPDrawBorder3D
23076
23077 2004-10-12 21:15  pbartok
23078
23079         * ControlPaint.cs:
23080           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
23081             match MS documentation. They need to return defined colors if the
23082             passed color matches the configured control color. Thanks to John
23083             BouAntoun for pointing this out.
23084
23085 2004-10-12 20:57  pbartok
23086
23087         * Control.cs:
23088           - Fix from John BouAntoun: Raise ForeColorChanged event when text
23089             color is changed
23090
23091 2004-10-12 20:46  pbartok
23092
23093         * CheckBox.cs:
23094           - Fix from John BouAntoun: Now properly sets the Appearance property
23095
23096 2004-10-12 20:45  pbartok
23097
23098         * ThemeWin32Classic.cs:
23099           - Fixes from John BouAntoun: now handles forecolors and backcolors
23100             for flatstyle rendered controls much better; It also fixes normal
23101             checkbox rendering when pushed or disabled.
23102
23103 2004-10-08 02:50  jordi
23104
23105         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
23106           work
23107
23108 2004-10-07 08:56  jordi
23109
23110         * ThemeWin32Classic.cs: Removes deletion of cached brushes
23111
23112 2004-10-06 03:59  jordi
23113
23114         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
23115           XplatUIWin32.cs: removes warnings from compilation
23116
23117 2004-10-05 12:23  jackson
23118
23119         * RadioButton.cs: Fix ctor
23120
23121 2004-10-05 11:10  pbartok
23122
23123         * MessageBox.cs:
23124           - Partial implementation by Benjamin Dasnois
23125
23126 2004-10-05 10:15  jackson
23127
23128         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
23129           by John BouAntoun
23130
23131 2004-10-05 03:07  ravindra
23132
23133         * ToolBar.cs:
23134                 - Removed a private method, Draw ().
23135                 - Fixed the ButtonDropDown event handling.
23136                 - Fixed MouseMove event handling.
23137
23138 2004-10-05 03:04  ravindra
23139
23140         * ThemeWin32Classic.cs:
23141                 - Added DrawListView method and ListViewDefaultSize property.
23142                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
23143                 - Changed DOS style CRLF to Unix format (dos2unix).
23144
23145 2004-10-05 03:03  ravindra
23146
23147         * Theme.cs:
23148                 - Added DrawListView method and ListViewDefaultSize property.
23149
23150 2004-10-05 02:42  ravindra
23151
23152         * ToolBarButton.cs: Added an internal member dd_pressed to handle
23153           clicks on DropDown arrow.
23154
23155 2004-10-04 22:56  jackson
23156
23157         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
23158           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
23159           Control handle the buffers, derived classes should not have to
23160           CreateBuffers themselves.
23161
23162 2004-10-04 21:20  jackson
23163
23164         * StatusBar.cs: The control handles resizing the buffers now.
23165
23166 2004-10-04 21:18  jackson
23167
23168         * Control.cs: When resizing the buffers should be invalidated. This
23169           should be handled in Control not in derived classes.
23170
23171 2004-10-04 14:45  jackson
23172
23173         * TabPage.cs: oops
23174
23175 2004-10-04 02:14  pbartok
23176
23177         * LeftRightAlignment.cs:
23178           - Initial check-in
23179
23180 2004-10-04 01:09  jordi
23181
23182         * ThemeWin32Classic.cs: fixes right button position causing right
23183           button not showing on horizontal scrollbars
23184
23185 2004-10-02 13:12  pbartok
23186
23187         * XplatUIX11.cs:
23188           - Simplified the Invalidate method by using an X call instead of
23189             generating the expose ourselves
23190           - Added an expose when the window background is changed
23191           - Implemented ClientToScreen method
23192
23193 2004-10-02 13:08  pbartok
23194
23195         * XplatUIWin32.cs:
23196           - Added Win32EnableWindow method (test for implementing modal
23197           dialogs)
23198           - Added ClientToScreen method and imports
23199
23200 2004-10-02 13:07  pbartok
23201
23202         * XplatUI.cs, XplatUIDriver.cs:
23203           - Added ClientToScreen coordinate translation method
23204
23205 2004-10-02 13:06  pbartok
23206
23207         * KeyPressEventArgs.cs:
23208           - Fixed access level for constructor
23209
23210 2004-10-02 13:06  pbartok
23211
23212         * NativeWindow.cs:
23213           - Changed access level for the window_collection hash table
23214
23215 2004-10-02 13:05  pbartok
23216
23217         * Form.cs:
23218           - Added KeyPreview property
23219           - Added Menu property (still incomplete, pending Jordi's menu work)
23220           - Implemented ProcessCmdKey
23221           - Implemented ProcessDialogKey
23222           - Implemented ProcessKeyPreview
23223
23224 2004-10-02 13:02  pbartok
23225
23226         * Control.cs:
23227           - Added private method to get the Control object from the window
23228           handle
23229           - Implemented ContextMenu property
23230           - Implemented PointToScreen
23231           - Implemented PreProcessMessage
23232           - Implemented IsInputChar
23233           - Implemented IsInputKey
23234           - Implemented ProcessCmdKey
23235           - Completed ProcessKeyEventArgs
23236           - Fixed message loop to call the proper chain of functions on key
23237           events
23238           - Implemented ProcessDialogChar
23239           - Implemented ProcessDialogKey
23240           - Implemented ProcessKeyMessage
23241           - Implemented ProcessKeyPreview
23242           - Added RaiseDragEvent stub (MS internal method)
23243           - Added RaiseKeyEvent stub (MS internal method)
23244           - Added RaiseMouseEvent stub (MS Internal method)
23245           - Added RaisePaintEvent stub (MS Internal method)
23246           - Added ResetMouseEventArgs stub (MS Internal method)
23247           - Implemented RtlTranslateAlignment
23248           - Implemented RtlTranslateContent
23249           - Implemented RtlTranslateHorizontal
23250           - Implemented RtlTranslateLeftRight
23251           - Added generation of KeyPress event
23252
23253 2004-10-02 05:57  ravindra
23254
23255         * ListViewItem.cs: Added attributes.
23256
23257 2004-10-02 05:32  ravindra
23258
23259         * ListView.cs: Added attributes.
23260
23261 2004-10-01 11:53  jackson
23262
23263         * Form.cs: Implement the Close method so work on MessageBox can
23264           continue.
23265
23266 2004-09-30 14:06  pbartok
23267
23268         * XplatUIX11.cs:
23269           - Bug fixes
23270
23271 2004-09-30 11:34  jackson
23272
23273         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
23274
23275 2004-09-30 07:26  ravindra
23276
23277         * ListViewItemConverter.cs: Converter for ListViewItem.
23278
23279 2004-09-30 07:26  ravindra
23280
23281         * SortOrder.cs: Enum for ListView control.
23282
23283 2004-09-30 07:25  ravindra
23284
23285         * ColumnHeader.cs: Supporting class for ListView control.
23286
23287 2004-09-30 07:24  ravindra
23288
23289         * ListView.cs, ListViewItem.cs: Initial implementation.
23290
23291 2004-09-30 07:20  ravindra
23292
23293         * ItemActivation.cs: Enum for ListView Control.
23294
23295 2004-09-29 20:29  pbartok
23296
23297         * XplatUIX11.cs:
23298           - Added lookup of pixel value for background color; tries to get a
23299             color 'close' to the requested color, it avoids having to create a
23300             colormap.  Depending on the display this could mean the used color
23301             is slightly off the desired color. Might have to change it to a more
23302             resource intensive colormap approach, but it will work as a
23303           workaround to avoid red screens.
23304
23305 2004-09-29 14:27  jackson
23306
23307         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
23308
23309 2004-09-28 12:44  pbartok
23310
23311         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
23312           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
23313           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
23314           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
23315           TrackBar.cs, VScrollBar.cs:
23316           - Streamlined Theme interfaces:
23317             * Each DrawXXX method for a control now is passed the object for
23318               the control to be drawn in order to allow accessing any state the
23319               theme might require
23320
23321             * ControlPaint methods for the theme now have a CP prefix to avoid
23322               name clashes with the Draw methods for controls
23323
23324             * Every control now retrieves it's DefaultSize from the current
23325             theme
23326
23327 2004-09-28 12:17  jackson
23328
23329         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
23330           drawing
23331
23332 2004-09-24 14:57  jackson
23333
23334         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
23335           Gives us a nice little performance boost.
23336
23337 2004-09-24 12:02  jackson
23338
23339         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
23340           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
23341           Control and supporting classes. Initial checkin
23342
23343 2004-09-23 13:08  jackson
23344
23345         * Form.cs: Temp build fixage
23346
23347 2004-09-23 01:39  ravindra
23348
23349         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
23350           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
23351           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
23352           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
23353           EventHandlers needed by ListView Control.
23354
23355 2004-09-22 14:12  pbartok
23356
23357         * ScrollableControl.cs:
23358           - Implemented DockPadding property
23359           - Implemented AutoScroll property
23360           - Implemented AutoScrollMargin property
23361           - Implemented AutoScrollMinSize property
23362           - Implemented AutoScrollPosition property
23363           - Implemented DisplayRectangle property (still incomplete)
23364           - Implemented CreateParams property
23365           - Implemented HScroll property
23366           - Implemented VScroll property
23367           - Implemented OnVisibleChanged property
23368
23369 2004-09-22 14:09  pbartok
23370
23371         * Form.cs:
23372           - Added Form.ControllCollection class
23373           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
23374             RemoveOwnedForm (still incomplete, missing on-top and common
23375             minimize/maximize behaviour)
23376           - Added StartPosition property (still incomplete, does not use when
23377             creating the form)
23378           - Added ShowDialog() methods (still incomplete, missing forcing the
23379             dialog modal)
23380
23381 2004-09-22 14:05  pbartok
23382
23383         * Application.cs:
23384           - Added message loop for modal dialogs
23385
23386 2004-09-22 14:02  pbartok
23387
23388         * GroupBox.cs:
23389           - Fixed wrong types for events
23390
23391 2004-09-22 14:00  pbartok
23392
23393         * Shortcut.cs, FormWindowState.cs:
23394           - Fixed wrong values
23395
23396 2004-09-22 12:01  jackson
23397
23398         * Control.cs: Text is never null
23399
23400 2004-09-20 22:14  pbartok
23401
23402         * XplatUIWin32.cs:
23403           - Fixed accessibility level for Idle handler
23404
23405 2004-09-20 18:54  jackson
23406
23407         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
23408           XplatUIX11.cs: New message loop that uses poll so we don't get a
23409           busy loop
23410
23411 2004-09-17 10:43  pbartok
23412
23413         * ScrollBar.cs:
23414           - Fixed behaviour of arrow buttons. Now properly behaves like
23415             Buttons (and like Microsoft's scrollbar arrow buttons)
23416
23417 2004-09-17 10:14  pbartok
23418
23419         * ScrollBar.cs:
23420           - Added missing release of keyboard/mouse capture
23421
23422 2004-09-17 06:18  jordi
23423
23424         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
23425           Theme.cs: Very early menu support
23426
23427 2004-09-16 17:45  pbartok
23428
23429         * XplatUIWin32.cs:
23430           - Fixed sending a window to the front
23431           - Added overload for SetWindowPos to avoid casting
23432
23433 2004-09-16 17:44  pbartok
23434
23435         * Control.cs:
23436           - Added SendToBack and BringToFront methods
23437
23438 2004-09-16 07:00  ravindra
23439
23440         * Copyright: Added Novell URL.
23441
23442 2004-09-16 07:00  ravindra
23443
23444         * ToolBar.cs: Invalidate should be done before redrawing.
23445
23446 2004-09-15 21:19  ravindra
23447
23448         * ColumnHeaderStyle.cs: Enum for ListView Control.
23449
23450 2004-09-15 21:18  ravindra
23451
23452         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
23453           ListView Control.
23454
23455 2004-09-13 18:26  jackson
23456
23457         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
23458           properly
23459
23460 2004-09-13 18:13  jackson
23461
23462         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
23463           a second thread and post messages into the main threads message
23464           queue. This makes timing much more consistent. Both win2K and XP
23465           have a minimum timer value of 15 milliseconds, so we now do this
23466           too.
23467
23468 2004-09-13 15:18  pbartok
23469
23470         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
23471           XplatUIX11.cs:
23472           - Added Z-Ordering methods
23473
23474 2004-09-13 10:56  pbartok
23475
23476         * Form.cs:
23477           - Fixed #region names
23478           - Moved properties and methods into their proper #regions
23479
23480 2004-09-13 10:51  pbartok
23481
23482         * Form.cs:
23483           - Added Accept and CancelButton properties
23484           - Added ProcessDialogKey() method
23485
23486 2004-09-13 08:18  pbartok
23487
23488         * IWindowTarget.cs:
23489           - Initial check-in
23490
23491 2004-09-10 21:50  pbartok
23492
23493         * Control.cs:
23494           - Added DoDragDrop() [incomplete]
23495           - Properly implemented 'Visible' handling
23496           - Added SetVisibleCore()
23497           - Implemented FindChildAtPoint()
23498           - Implemented GetContainerControl()
23499           - Implemented Hide()
23500
23501 2004-09-10 19:28  pbartok
23502
23503         * Control.cs:
23504           - Moved methods into their appropriate #regions
23505           - Reordered methods within regions alphabetically
23506
23507 2004-09-10 18:57  pbartok
23508
23509         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
23510           - Added method to retrieve text from window
23511
23512 2004-09-10 18:56  pbartok
23513
23514         * Control.cs:
23515           - Moved some internal functions into the internal region
23516           - Implemented FontHeight
23517           - Implemented RenderRightToLeft
23518           - Implemented ResizeRedraw
23519           - Implemented ShowFocusCues
23520           - Implemented ShowKeyboardCues
23521           - Implemented FromChildHandle
23522           - Implemented FromHandle
23523           - Implemented IsMnemonic
23524           - Implemented ReflectMessage
23525           - All public and protected Static Methods are now complete
23526
23527 2004-09-10 16:54  pbartok
23528
23529         * Control.cs:
23530           - Implemented remaining missing public instance properties
23531           - Alphabetized some out of order properties
23532
23533 2004-09-10 05:51  ravindra
23534
23535         * PictureBox.cs: Added a check for null image.
23536
23537 2004-09-10 00:59  jordi
23538
23539         * GroupBox.cs: remove cvs tag
23540
23541 2004-09-09 05:25  ravindra
23542
23543         * ToolBar.cs: Make redraw accessible from ToolBarButton.
23544
23545 2004-09-09 05:23  ravindra
23546
23547         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
23548           parent redraw.
23549
23550 2004-09-09 02:28  pbartok
23551
23552         * ThemeWin32Classic.cs:
23553           - Improve disabled string look
23554
23555 2004-09-09 01:15  jordi
23556
23557         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
23558           args and handler
23559
23560 2004-09-08 23:56  ravindra
23561
23562         * ItemBoundsPortion.cs: It's enum, not a class!
23563
23564 2004-09-08 23:47  ravindra
23565
23566         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
23567           Enums for Form.
23568
23569 2004-09-08 21:13  ravindra
23570
23571         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
23572           ListView control.
23573
23574 2004-09-08 21:03  ravindra
23575
23576         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
23577           avoid crash.
23578
23579 2004-09-08 21:01  ravindra
23580
23581         * ScrollableControl.cs: Removed unreachable code.
23582
23583 2004-09-08 06:45  jordi
23584
23585         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
23586
23587 2004-09-08 01:00  jackson
23588
23589         * XplatUIX11.cs: Only run the timers when updating the message
23590           queue. This effectively gives X messages a higher priority then
23591           timer messages. Timers still need love though
23592
23593 2004-09-07 14:01  jackson
23594
23595         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
23596           this for us and the handle is no longer valid.
23597
23598 2004-09-07 13:59  jackson
23599
23600         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
23601           loop that manages to not crash. TODO: Add poll and cleanup timers
23602
23603 2004-09-07 11:12  jordi
23604
23605         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
23606
23607 2004-09-07 03:40  jordi
23608
23609         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
23610           fixes, methods, multiple links
23611
23612 2004-09-06 06:55  jordi
23613
23614         * Control.cs: Caches ClientRectangle rectangle value
23615
23616 2004-09-05 02:03  jordi
23617
23618         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
23619           certain situations
23620
23621 2004-09-04 11:10  jordi
23622
23623         * Label.cs: Refresh when font changed
23624
23625 2004-09-02 16:24  pbartok
23626
23627         * Control.cs:
23628           - Added sanity check to creation of double buffer bitmap
23629
23630 2004-09-02 16:24  pbartok
23631
23632         * ButtonBase.cs:
23633           - Fixed selection of text color
23634           - Fixed handling of resize event; now properly recreates double
23635             buffering bitmap
23636           - Added missing assignment of TextAlignment
23637           - Added proper default for TextAlignment
23638
23639 2004-09-02 14:26  pbartok
23640
23641         * RadioButton.cs:
23642           - Added missing RadioButton.RadioButtonAccessibleObject class
23643
23644 2004-09-02 14:26  pbartok
23645
23646         * Control.cs:
23647           - Added missing Control.ControlAccessibleObject class
23648           - Started to implement Select()ion mechanisms, still very incomplete
23649
23650 2004-09-02 14:25  pbartok
23651
23652         * AccessibleObject.cs:
23653           - Added missing methods
23654
23655 2004-09-02 14:23  pbartok
23656
23657         * AccessibleNavigation.cs, AccessibleSelection.cs:
23658           - Initial check-in
23659
23660 2004-09-02 10:32  jordi
23661
23662         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
23663           pool for pens, brushes, and hatchbruses
23664
23665 2004-09-01 15:30  jackson
23666
23667         * StatusBar.cs: Fix typo
23668
23669 2004-09-01 14:44  pbartok
23670
23671         * RadioButton.cs:
23672           - Fixed state
23673
23674 2004-09-01 14:39  pbartok
23675
23676         * Button.cs, RadioButton.cs:
23677           - Functional initial check-in
23678
23679 2004-09-01 14:01  pbartok
23680
23681         * CheckBox.cs:
23682           - Added missing default
23683           - Added missing region mark
23684
23685 2004-09-01 09:10  jordi
23686
23687         * Label.cs: fixes method signatures, new methods, events, fixes
23688           autosize
23689
23690 2004-09-01 07:19  jordi
23691
23692         * Control.cs: Init string variables with an empty object
23693
23694 2004-09-01 04:20  jordi
23695
23696         * Control.cs: fires OnFontChanged event
23697
23698 2004-08-31 20:07  pbartok
23699
23700         * ButtonBase.cs:
23701           - Enabled display of strings
23702
23703 2004-08-31 20:05  pbartok
23704
23705         * Form.cs:
23706           - Added (partial) implementation of DialogResult; rest needs to be
23707             implemented when the modal loop code is done
23708
23709 2004-08-31 19:55  pbartok
23710
23711         * CheckBox.cs:
23712           - Fixed to match the removal of the needs_redraw concept
23713
23714 2004-08-31 19:55  pbartok
23715
23716         * ButtonBase.cs:
23717           - Removed the rather odd split between 'needs redraw' and redrawing
23718           - Now handles the events that require regeneration (ambient
23719             properties and size)
23720
23721 2004-08-31 19:41  pbartok
23722
23723         * Control.cs:
23724           - Added firing of BackColorChanged event
23725           - Added TopLevelControl property
23726           - Fixed handling of WM_ERASEBKGRND message
23727
23728 2004-08-31 12:49  pbartok
23729
23730         * ButtonBase.cs:
23731           - Removed debug
23732           - Minor fixes
23733
23734 2004-08-31 12:48  pbartok
23735
23736         * CheckBox.cs:
23737           - Finished (famous last words)
23738
23739 2004-08-31 04:35  jordi
23740
23741         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
23742           scrolling bugs, adds new methods
23743
23744 2004-08-30 14:42  pbartok
23745
23746         * CheckBox.cs:
23747           - Implemented CheckBox drawing code
23748
23749 2004-08-30 14:42  pbartok
23750
23751         * ButtonBase.cs:
23752           - Made Redraw() and CheckRedraw() virtual
23753           - Improved mouse up/down/move logic to properly track buttons
23754
23755 2004-08-30 09:44  pbartok
23756
23757         * CheckBox.cs:
23758           - Updated to fix broken build. Not complete yet.
23759
23760 2004-08-30 09:28  pbartok
23761
23762         * CheckState.cs:
23763           - Initial checkin
23764
23765 2004-08-30 09:17  pbartok
23766
23767         * Appearance.cs:
23768           - Initial check-in
23769
23770 2004-08-27 16:12  ravindra
23771
23772         * ToolBarButton.cs: Added TypeConverter attribute.
23773
23774 2004-08-27 16:07  ravindra
23775
23776         * ImageIndexConverter.cs: Implemented.
23777
23778 2004-08-27 14:17  pbartok
23779
23780         * Control.cs:
23781           - Removed unneeded stack vars
23782           - First attempt to fix sizing issues when layout is suspended
23783
23784 2004-08-25 15:35  jordi
23785
23786         * ScrollBar.cs: more fixes to scrollbar
23787
23788 2004-08-25 14:04  ravindra
23789
23790         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
23791           Added the missing divider code and grip for ToolBar Control.
23792
23793 2004-08-25 13:20  pbartok
23794
23795         * Control.cs:
23796           - Control now properly passes the ambient background color to child
23797             controls
23798
23799 2004-08-25 13:20  jordi
23800
23801         * ScrollBar.cs: small bug fix regarding bar position
23802
23803 2004-08-25 12:33  pbartok
23804
23805         * Timer.cs:
23806           - Now only calls SetTimer or KillTimer if the enabled state has
23807           changed
23808
23809 2004-08-25 12:33  pbartok
23810
23811         * XplatUIWin32.cs:
23812           - Fixed timer handling, now seems to work
23813           - Improved error message for window creation
23814
23815 2004-08-25 12:32  pbartok
23816
23817         * Control.cs:
23818           - Fixed generation of MouseUp message
23819
23820 2004-08-25 12:29  jordi
23821
23822         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
23823           and fixes for progressbar
23824
23825 2004-08-24 18:43  ravindra
23826
23827         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
23828           in ToolBar control.
23829
23830 2004-08-24 17:15  pbartok
23831
23832         * Panel.cs:
23833           - Added #region
23834           - Added missing events
23835           - Alphabetized
23836
23837 2004-08-24 17:14  pbartok
23838
23839         * StatusBar.cs, PictureBox.cs:
23840           - Now uses Control's CreateParams
23841
23842 2004-08-24 16:36  pbartok
23843
23844         * XplatUIX11.cs:
23845           - Fixed background color handling
23846           - Fixed sending of enter/leave events on a grab
23847
23848 2004-08-24 16:35  pbartok
23849
23850         * X11Structs.cs:
23851           - Refined definitions for CrossingEvent
23852
23853 2004-08-24 12:37  jordi
23854
23855         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
23856           formmating, methods signature, and adds missing events
23857
23858 2004-08-24 12:24  jordi
23859
23860         * Control.cs: fire OnEnabledChanged event
23861
23862 2004-08-24 11:17  pbartok
23863
23864         * XplatUIWin32.cs:
23865           - Implemented SetTimer() and KillTimer()
23866
23867 2004-08-24 11:16  pbartok
23868
23869         * XplatUIX11.cs:
23870           - Now uses Remove instead of Add to kill the timer
23871
23872 2004-08-24 10:16  jackson
23873
23874         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
23875           picture boxes in the theme now. Draw picture box borders and obey
23876           sizing modes
23877
23878 2004-08-24 05:49  jackson
23879
23880         * Timer.cs: Remove top secret debugging code
23881
23882 2004-08-24 05:34  jackson
23883
23884         * PictureBox.cs: Temp hack to make picture boxes draw their full
23885           image
23886
23887 2004-08-24 05:29  jackson
23888
23889         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
23890           XplatUIX11.cs: Move timers to the driver level. On X they are
23891           queued by the driver and checked on idle.
23892
23893 2004-08-24 01:07  jackson
23894
23895         * XplatUIX11.cs: Use a queue for async messages instead of passing
23896           them as ClientMessages since that was totally broken. Also simply
23897           check for events and return an idle message if none are found. This
23898           gives us an idle handler, and prevents deadlocking when no messages
23899           are in the queue.
23900
23901 2004-08-23 18:19  ravindra
23902
23903         * XplatUIWin32.cs: Removed the unwanted destructor.
23904
23905 2004-08-23 17:27  pbartok
23906
23907         * ButtonBase.cs:
23908           - Finishing touches. Works now, just needs some optimizations.
23909
23910 2004-08-23 16:53  jordi
23911
23912         * ScrollBar.cs: small fix
23913
23914 2004-08-23 16:45  pbartok
23915
23916         * Application.cs:
23917           - Removed debug output
23918           - Simplifications
23919
23920 2004-08-23 16:43  jordi
23921
23922         * ScrollBar.cs: [no log message]
23923
23924 2004-08-23 16:10  pbartok
23925
23926         * Form.cs:
23927           - Fixed handling of WM_CLOSE message
23928           - Removed debug output
23929
23930 2004-08-23 16:09  pbartok
23931
23932         * Application.cs:
23933           - Added handling of Idle event
23934           - Added handling of form closing
23935           - Fixed reporting of MessageLoop property
23936           - Removed some unneeded code, should provide a bit of a speedup
23937
23938 2004-08-23 15:22  pbartok
23939
23940         * Control.cs:
23941           - Added InitLayout() method
23942           - Added code to properly perform layout when Anchor or Dock property
23943             is changed
23944           - Changed 'interpretation' of ResumeLayout. MS seems to have a
23945             LAMESPEC, tried to do it in a way that makes sense
23946
23947 2004-08-23 14:10  jordi
23948
23949         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
23950           properties and methods
23951
23952 2004-08-23 13:55  pbartok
23953
23954         * Control.cs:
23955           - Properly fixed Jordi's last fix
23956           - Now uses Cursor's Position property instead of calling XplatUI
23957           directly
23958
23959 2004-08-23 13:44  jordi
23960
23961         * PaintEventHandler.cs: Adding missing attribute
23962
23963 2004-08-23 13:39  pbartok
23964
23965         * Cursor.cs:
23966           - Implemented Position property
23967
23968 2004-08-23 13:39  pbartok
23969
23970         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
23971           - Added method to move mouse cursor
23972
23973 2004-08-23 13:39  pbartok
23974
23975         * XplatUIX11.cs:
23976           - Fixed setting of background color
23977           - Added method to move mouse cursor
23978
23979 2004-08-23 13:16  jordi
23980
23981         * Control.cs: avoids null exception
23982
23983 2004-08-22 17:46  jackson
23984
23985         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
23986           PictureBox
23987
23988 2004-08-22 17:40  jackson
23989
23990         * XplatUIX11.cs: Add some missing locks
23991
23992 2004-08-22 15:10  pbartok
23993
23994         * Control.cs, Form.cs:
23995           - Removed OverlappedWindow style from Control, instead it's default
23996             now is child
23997           - Made form windows OverlappedWindow by default
23998
23999 2004-08-22 13:34  jackson
24000
24001         * ScrollBar.cs: Update the position through the Value property so
24002           the OnValueChanged event is raised.
24003
24004 2004-08-22 12:04  pbartok
24005
24006         * SWF.csproj:
24007           - Added Cursor.cs and UserControl.cs
24008
24009 2004-08-22 12:03  pbartok
24010
24011         * Cursor.cs:
24012           - Started implementation, not usable yet
24013
24014 2004-08-22 12:00  pbartok
24015
24016         * UserControl.cs:
24017           - Implemented UserControl (complete)
24018
24019 2004-08-21 19:20  ravindra
24020
24021         * ToolBar.cs: Correcting the formatting mess of VS.NET.
24022
24023 2004-08-21 18:49  ravindra
24024
24025         * ToolBar.cs: Probably this completes the missing attributes in
24026           toolbar control.
24027
24028 2004-08-21 18:03  ravindra
24029
24030         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
24031           Fixed toolbar control signatures.
24032
24033 2004-08-21 16:32  pbartok
24034
24035         * LinkLabel.cs:
24036           - Signature Fixes
24037
24038 2004-08-21 16:30  pbartok
24039
24040         * Label.cs:
24041           - Signature fixes
24042
24043 2004-08-21 16:19  pbartok
24044
24045         * Control.cs, Label.cs:
24046           - Signature fixes
24047
24048 2004-08-21 15:57  pbartok
24049
24050         * ButtonBase.cs:
24051           - Added loads of debug output for development
24052           - Fixed typo in method name
24053
24054 2004-08-21 15:52  pbartok
24055
24056         * ToolBarButtonClickEventArgs.cs:
24057           - Added missing base class
24058
24059 2004-08-21 14:53  pbartok
24060
24061         * Control.cs:
24062           - Updated to match new GrabWindow signature
24063
24064 2004-08-21 14:51  pbartok
24065
24066         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
24067           - Added method to get default display size
24068
24069 2004-08-21 14:23  pbartok
24070
24071         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
24072           - Added method to query current grab state
24073           - Added argument to allow confining a grab to a window
24074
24075 2004-08-21 14:22  pbartok
24076
24077         * Keys.cs:
24078           - Added [Flags] attribute so that modifiers can be used in bitwise
24079           ops
24080
24081 2004-08-21 14:21  pbartok
24082
24083         * TrackBar.cs, ScrollBar.cs:
24084           - Replaced direct XplatUI calls with their Control counterpart
24085
24086 2004-08-21 13:32  pbartok
24087
24088         * Control.cs:
24089           - Implemented Created property
24090
24091 2004-08-21 13:28  pbartok
24092
24093         * Control.cs:
24094           - Implemented ContainsFocus
24095
24096 2004-08-21 13:26  pbartok
24097
24098         * Control.cs:
24099           - Implemented CausesValidation
24100
24101 2004-08-21 13:21  pbartok
24102
24103         * Control.cs:
24104           - Implemented CanFocus
24105           - Implemented CanSelect
24106           - Implemented Capture
24107
24108 2004-08-21 12:35  pbartok
24109
24110         * XplatUIWin32.cs:
24111           - Fixed bug with Async message handling
24112           - Implemented getting the ModifierKeys
24113
24114 2004-08-21 12:32  jackson
24115
24116         * AsyncMethodResult.cs: Make sure we have the mutex before we
24117           release it. Fixes BeginInvoke on windows
24118
24119 2004-08-21 11:31  pbartok
24120
24121         * XplatUIWin32.cs, XplatUIX11.cs:
24122           - Drivers now return proper mouse state
24123
24124 2004-08-21 10:54  jackson
24125
24126         * Control.cs: Implement EndInvoke
24127
24128 2004-08-21 10:48  jackson
24129
24130         * Timer.cs: Remove unneeded finalizer
24131
24132 2004-08-20 19:52  ravindra
24133
24134         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
24135           in mouse event handling in the ToolBar control.
24136
24137 2004-08-20 19:50  ravindra
24138
24139         * ImageList.cs: Changed draw method to use the arguments passed in
24140           to draw the image.
24141
24142 2004-08-20 18:58  pbartok
24143
24144         * XplatUIStructs.cs:
24145           - Added private message for async communication
24146
24147 2004-08-20 17:38  ravindra
24148
24149         * Control.cs: Made RightToLeft property virtual and removed a
24150           Console.WriteLine.
24151
24152 2004-08-20 14:39  jordi
24153
24154         * ThemeGtk.cs: use style_attach
24155
24156 2004-08-20 14:39  pbartok
24157
24158         * XplatUIWin32.cs:
24159           - Added jackson's Async code from X11 to Win32
24160
24161 2004-08-20 14:09  pbartok
24162
24163         * SWF.csproj:
24164           - Added all new files
24165
24166 2004-08-20 14:09  pbartok
24167
24168         * Control.cs:
24169           - Added call to set window background color
24170
24171 2004-08-20 14:03  pbartok
24172
24173         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
24174           - Added method for setting the window background
24175
24176 2004-08-20 14:02  pbartok
24177
24178         * XplatUIWin32.cs:
24179           - Added method for setting the background color
24180           - Added handling for erasing the window background
24181
24182 2004-08-20 13:45  jordi
24183
24184         * TrackBar.cs: fixes timer, new properties and methods
24185
24186 2004-08-20 13:34  jackson
24187
24188         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
24189           correct thread
24190
24191 2004-08-20 13:22  jackson
24192
24193         * Timer.cs: Timer Tick events are now handed through Controls Async
24194           mechanism so the callbacks are executed in the same thread as X
24195
24196 2004-08-20 13:19  jackson
24197
24198         * XplatUIDriver.cs: Expose functionality to send async messages
24199           through the driver
24200
24201 2004-08-20 13:18  jackson
24202
24203         * Control.cs: Implement Begininvoke
24204
24205 2004-08-20 13:14  jackson
24206
24207         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
24208           messages through the driver
24209
24210 2004-08-20 13:12  jackson
24211
24212         * XplatUIX11.cs: Lock before all X operations. Also added Async
24213           method functionality through XSendEvent
24214
24215 2004-08-20 13:11  jackson
24216
24217         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
24218           This will screw up on 64 bit systems)
24219
24220 2004-08-20 13:10  jackson
24221
24222         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
24223           Async messages through X/Win32
24224
24225 2004-08-19 19:39  pbartok
24226
24227         * XplatUIX11.cs:
24228           - Updated code to match new HandleData.DeviceContext type
24229
24230 2004-08-19 19:38  pbartok
24231
24232         * HandleData.cs:
24233           - Made DeviceContext a generic object to allow usage from various
24234           drivers
24235           - Added support for queueing Windows messages
24236
24237 2004-08-19 19:37  pbartok
24238
24239         * XplatUIWin32.cs:
24240           - Added generation of MouseEnter, MouseLeave and MouseHover events
24241           - Added cleanup on EndPaint
24242
24243 2004-08-19 19:17  pbartok
24244
24245         * Control.cs:
24246           - Added handling of WM_MOUSEHOVER
24247           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
24248           code
24249
24250 2004-08-19 18:55  jordi
24251
24252         * ThemeGtk.cs: fixes button order
24253
24254 2004-08-19 18:12  jordi
24255
24256         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
24257
24258 2004-08-19 17:09  pbartok
24259
24260         * Control.cs:
24261           - Added Right property
24262           - Added RightToLeft property
24263
24264 2004-08-19 16:27  jordi
24265
24266         * ThemeGtk.cs: experimental GTK theme support
24267
24268 2004-08-19 16:26  jordi
24269
24270         * ITheme.cs, Theme.cs: move themes from an interface to a class
24271
24272 2004-08-19 16:25  jordi
24273
24274         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
24275           theme enhancaments
24276
24277 2004-08-19 16:04  pbartok
24278
24279         * XplatUIX11.cs:
24280           - Added colormap basics
24281           - Added a way to re-initialize with a different display handle
24282           - Fixed setting of the window background color
24283           - Added various X11 imports related to colors and colormaps
24284
24285 2004-08-19 15:51  pbartok
24286
24287         * X11Structs.cs:
24288           - Removed packing hints (Paolo suggested this a while back)
24289           - fixed colormap type
24290           - Added default Atom types
24291           - Added Screen and color structs and enums
24292
24293 2004-08-19 15:39  pbartok
24294
24295         * ImageList.cs:
24296           - Added missing Draw() method
24297           - Added missing RecreateHandle event
24298
24299 2004-08-19 15:30  pbartok
24300
24301         * Form.cs:
24302           - Added handling of WM_CLOSE
24303
24304 2004-08-18 13:16  jordi
24305
24306         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
24307           a table
24308
24309 2004-08-18 09:56  jordi
24310
24311         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
24312
24313 2004-08-17 15:31  ravindra
24314
24315         * SWF.csproj: Updated project.
24316
24317 2004-08-17 15:25  pbartok
24318
24319         * Control.cs:
24320           - Drawing improvement; don't call UpdateBounds if we are not visible
24321             (or have been minimized)
24322
24323 2004-08-17 15:24  pbartok
24324
24325         * XplatUIWin32.cs:
24326           - Finished IsVisible
24327           - Added Win32GetWindowPlacement
24328
24329 2004-08-17 15:08  jackson
24330
24331         * Panel.cs: Initial checkin of the Panel
24332
24333 2004-08-17 14:25  pbartok
24334
24335         * Control.cs:
24336           - Fixed broken handling of default window sizes
24337
24338 2004-08-17 13:29  jackson
24339
24340         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
24341           has a large startup time.
24342
24343 2004-08-17 10:25  jackson
24344
24345         * HandleData.cs: union areas properly
24346
24347 2004-08-17 10:12  jackson
24348
24349         * HandleData.cs: union areas properly
24350
24351 2004-08-16 20:00  ravindra
24352
24353         * ToolBar.cs, ToolBarButton.cs: Added attributes.
24354
24355 2004-08-16 18:48  ravindra
24356
24357         * ToolBar.cs: Added attributes.
24358
24359 2004-08-16 17:17  ravindra
24360
24361         * SWF.csproj: Updated project.
24362
24363 2004-08-16 17:16  jackson
24364
24365         * XplatUIX11.cs: Check for more expose events before sending a
24366           WM_PAINT so they can all be grouped together. This makes dragging a
24367           window across another window redraw in a sane way.
24368
24369 2004-08-16 15:47  pbartok
24370
24371         * Control.cs:
24372           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
24373             support OnMouseEnter/Leave()
24374           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
24375             exposure handling
24376
24377 2004-08-16 15:46  pbartok
24378
24379         * XplatUIStructs.cs, XplatUIX11.cs:
24380           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
24381           OnMouseEnter/Leave()
24382
24383 2004-08-16 15:34  jackson
24384
24385         * XplatUIX11.cs: Group multiple expose events in HandleData, make
24386           sure messages get the message field set to WM_NULL if they are not
24387           handled.
24388
24389 2004-08-16 15:24  jackson
24390
24391         * HandleData.cs: HandleData is used for storing message information
24392           for window handles
24393
24394 2004-08-15 17:23  ravindra
24395
24396         * ColorDepth.cs: Added attribute.
24397
24398 2004-08-15 17:23  ravindra
24399
24400         * SWF.csproj: Updated project for ToolBar Control.
24401
24402 2004-08-15 17:20  ravindra
24403
24404         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
24405           control and also dos2unix format.
24406
24407 2004-08-15 17:13  ravindra
24408
24409         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
24410           ToolBarButtonClickEventArgs.cs,
24411           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
24412           ToolBarTextAlign.cs: First Implementation of ToolBar control.
24413
24414 2004-08-15 15:31  pbartok
24415
24416         * ButtonBase.cs:
24417           - First (mostly) working version
24418
24419 2004-08-13 16:15  pbartok
24420
24421         * Control.cs:
24422           - Fixed Anchor default
24423
24424 2004-08-13 15:43  pbartok
24425
24426         * Control.cs:
24427           - Changed GetCursorPos signature
24428
24429 2004-08-13 15:42  pbartok
24430
24431         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
24432           - Changed signature for GetCursorPos
24433
24434 2004-08-13 15:25  pbartok
24435
24436         * XplatUIX11.cs:
24437           - Cleanup
24438           - Fixed resizing/exposure handling
24439
24440 2004-08-13 15:22  jordi
24441
24442         * ThemeWin32Classic.cs: removes redundant code and fixes issues
24443           with tickposition
24444
24445 2004-08-13 14:55  jordi
24446
24447         * TrackBar.cs: change from wndproc to events
24448
24449 2004-08-13 13:00  jordi
24450
24451         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
24452           XplatUIX11.cs: implements PointToClient (ScreenToClient)
24453
24454 2004-08-13 12:53  pbartok
24455
24456         * XplatUIWin32.cs:
24457           - Changed GetWindowPos to also provide client area size
24458           - Fixed broken prototypes for several win32 functions
24459
24460 2004-08-13 12:53  pbartok
24461
24462         * XplatUI.cs, XplatUIDriver.cs:
24463           - Changed GetWindowPos to also provide client area size
24464
24465 2004-08-13 12:52  pbartok
24466
24467         * XplatUIX11.cs:
24468           - Added generation of WM_POSCHANGED
24469           - Changed GetWindowPos to also provide client area size
24470
24471 2004-08-13 12:52  pbartok
24472
24473         * Control.cs:
24474           - Added Dispose() and destructor
24475           - Fixed resizing and bounds calculation
24476           - Fixed Layout
24477           - Added memory savings for invisible windows
24478
24479 2004-08-13 12:46  jordi
24480
24481         * TrackBar.cs: adds timer and grap window
24482
24483 2004-08-13 10:25  jackson
24484
24485         * Timer.cs: SWF Timer
24486
24487 2004-08-12 16:59  pbartok
24488
24489         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
24490           - Implemented method to get current mouse position
24491
24492 2004-08-12 14:29  jordi
24493
24494         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
24495           enhancement, fix mouse problems, highli thumb, etc
24496
24497 2004-08-12 13:31  pbartok
24498
24499         * Control.cs:
24500           - Fixed Anchoring bugs
24501
24502 2004-08-12 13:01  jackson
24503
24504         * StatusBar.cs: Don't forget things
24505
24506 2004-08-12 12:54  jackson
24507
24508         * ThemeWin32Classic.cs: Handle owner draw status bars
24509
24510 2004-08-12 12:54  jackson
24511
24512         * StatusBar.cs: Implement missing properties, events, and methods.
24513           Handle mouse clicking
24514
24515 2004-08-12 10:19  jackson
24516
24517         * StatusBarPanelClickEventArgs.cs,
24518           StatusBarPanelClickEventHandler.cs: Classes for handling status
24519           bar panel click events
24520
24521 2004-08-12 10:10  jackson
24522
24523         * Control.cs: Add missing properties
24524
24525 2004-08-12 09:46  pbartok
24526
24527         * BindingsManagerBase.cs:
24528           - Name changed to BindingManagerBase.cs
24529
24530 2004-08-12 09:25  jordi
24531
24532         * ScrollableControl.cs: calls ctrlbase instead of exeception
24533
24534 2004-08-11 16:28  pbartok
24535
24536         * InputLanguageChangingEventArgs.cs:
24537           - Never check in before compiling. Fixes the last check-in
24538
24539 2004-08-11 16:26  pbartok
24540
24541         * InputLanguageChangingEventArgs.cs:
24542           - More signature fixes
24543
24544 2004-08-11 16:20  pbartok
24545
24546         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
24547           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
24548           ImageListStreamer.cs, InputLanguage.cs,
24549           InputLanguageChangedEventArgs.cs,
24550           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
24551           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
24552           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
24553           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
24554           - Signature fixes
24555
24556 2004-08-11 16:16  pbartok
24557
24558         * Application.cs:
24559           - Fixed Signature
24560           - Added .Net 1.1 method
24561
24562 2004-08-11 15:25  pbartok
24563
24564         * SWF.csproj:
24565           - Fixed BindingManagerBase.cs filename
24566
24567 2004-08-11 15:22  pbartok
24568
24569         * BindingManagerBase.cs:
24570           - Was checked in with wrong filename
24571
24572 2004-08-11 14:50  pbartok
24573
24574         * SWF.csproj:
24575           - Updated
24576
24577 2004-08-11 13:41  jordi
24578
24579         * XplatUIWin32.cs: Fixes ClientRect
24580
24581 2004-08-11 13:19  pbartok
24582
24583         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
24584           XplatUIX11.cs:
24585           - We had SetWindowPos and MoveWindow to set window positions and
24586             size, removed MoveWindow. We have GetWindowPos, so it made sense to
24587             keep SetWindowPos as matching counterpart
24588           - Added some X11 sanity checking
24589
24590 2004-08-11 12:59  pbartok
24591
24592         * Control.cs:
24593           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
24594             (It seems that SetBounds is just a front for SetBoundsCore and
24595              SetBoundsCore updates the underlying window system and
24596              UpdateBounds is responsible for updating the variables associated
24597              with the Control and sending the events)
24598           - Major cleanup of Size handling; we now have two sizes, client_size
24599             and bounds. Bounds defines the window with decorations, client_size
24600             without them.
24601
24602 2004-08-11 12:55  pbartok
24603
24604         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
24605           - Added method to calculate difference between decorated window and
24606             raw client area
24607
24608 2004-08-11 12:54  pbartok
24609
24610         * Label.cs:
24611           - Forcing redraw on resize
24612
24613 2004-08-11 11:43  pbartok
24614
24615         * ImageList.cs:
24616           - Removed disposing of the actual images when the list is disposed
24617
24618 2004-08-11 09:13  pbartok
24619
24620         * Control.cs:
24621           - Now properly reparents windows
24622
24623 2004-08-11 08:37  pbartok
24624
24625         * Control.cs:
24626           - Duh!
24627
24628 2004-08-11 07:47  pbartok
24629
24630         * Control.cs:
24631           - Rewrote the collection stuff. Might not be as fast now, not
24632             keeping the number of children around and accessible directly, but
24633             it's more straightforward
24634
24635 2004-08-11 07:44  pbartok
24636
24637         * AccessibleObject.cs:
24638           - Fixed to match ControlCollection rewrite
24639
24640 2004-08-11 07:43  pbartok
24641
24642         * ImageList.cs:
24643           - Added missing creation of the collection list
24644
24645 2004-08-10 20:08  jackson
24646
24647         * StatusBar.cs: Get the paint message from WndProc
24648
24649 2004-08-10 19:31  jackson
24650
24651         * ThemeWin32Classic.cs: Create Brushes as little as possible
24652
24653 2004-08-10 19:20  jackson
24654
24655         * UICues.cs: Add Flags attribute
24656
24657 2004-08-10 19:19  jackson
24658
24659         * StatusBarPanel.cs: Signature cleanup
24660
24661 2004-08-10 19:10  jackson
24662
24663         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
24664           Initial implementation of status bar item drawing
24665
24666 2004-08-10 17:27  jordi
24667
24668         * TrackBar.cs: add missing methods, properties, and restructure to
24669           hide extra ones
24670
24671 2004-08-10 16:24  jackson
24672
24673         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
24674           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
24675           attribute
24676
24677 2004-08-10 13:21  jordi
24678
24679         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
24680           enhancements and standarize on win colors defaults
24681
24682 2004-08-10 12:52  jackson
24683
24684         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
24685           ThemeWin32Classic.cs: Implement DrawItem functionality
24686
24687 2004-08-10 12:47  jordi
24688
24689         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
24690
24691 2004-08-10 12:32  jordi
24692
24693         * Control.cs: throw ontextchange event
24694
24695 2004-08-10 11:43  pbartok
24696
24697         * Control.cs:
24698           - Added more to the still unfinished Dock/Anchor layout code
24699
24700 2004-08-10 11:39  pbartok
24701
24702         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
24703           - Added GetWindowPos method
24704
24705 2004-08-10 11:36  pbartok
24706
24707         * XplatUIWin32.cs:
24708           - Implemented several methods
24709
24710 2004-08-10 09:47  jackson
24711
24712         * TrackBar.cs: Allow control to handle buffering
24713
24714 2004-08-10 09:41  jackson
24715
24716         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
24717
24718 2004-08-10 09:24  jackson
24719
24720         * Label.cs, LinkLabel.cs: Let Control handle buffering.
24721
24722 2004-08-10 09:09  jackson
24723
24724         * StatusBar.cs: Let Control handle all the buffering.
24725
24726 2004-08-10 09:08  jackson
24727
24728         * Control.cs: Control will now handle the buffering code, so each
24729           control does not have to implement this.
24730
24731 2004-08-10 08:34  jackson
24732
24733         * XplatUIDriver.cs: Use default colors from the theme
24734
24735 2004-08-09 17:12  pbartok
24736
24737         * ImageList.cs:
24738           - Fixed several bugs Ravindra pointed out
24739
24740 2004-08-09 16:11  pbartok
24741
24742         * Control.cs:
24743           - Added incomplete dock layout code
24744           - Added support for mouse wheel
24745
24746 2004-08-09 16:09  pbartok
24747
24748         * XplatUIX11.cs:
24749           - Added handling for middle and right mousebutton
24750           - Added handling for mouse wheel
24751           - Added handling for key state and mouse state and position
24752           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
24753           messages
24754
24755 2004-08-09 15:40  jackson
24756
24757         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
24758           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
24759           checkin
24760
24761 2004-08-09 15:37  jackson
24762
24763         * StatusBar.cs: Initial implementation of StatusBar
24764
24765 2004-08-09 15:36  jackson
24766
24767         * ITheme.cs: Add support for drawing status bar and getting status
24768           bar item sizes
24769
24770 2004-08-09 15:35  pbartok
24771
24772         * MouseButtons.cs:
24773           - Fixed values
24774
24775 2004-08-09 15:34  jackson
24776
24777         * ThemeWin32Classic.cs: Add support for drawing status bar and get
24778           status bar item sizes
24779
24780 2004-08-09 15:21  jackson
24781
24782         * ThemeWin32Classic.cs: Use known colors for default control
24783           colours
24784
24785 2004-08-09 15:12  jackson
24786
24787         * ThemeWin32Classic.cs: Make the default font static, it is static
24788           in control so this doesn't change functionality and creating fonts
24789           is sloooooow.
24790
24791 2004-08-09 14:56  pbartok
24792
24793         * X11Structs.cs:
24794           - Added GrabMode enum
24795
24796 2004-08-09 14:55  pbartok
24797
24798         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
24799           - Removed Run method, was only required for initial development
24800
24801 2004-08-09 14:51  pbartok
24802
24803         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
24804           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
24805           capture
24806
24807 2004-08-09 13:48  pbartok
24808
24809         * XplatUIX11.cs:
24810           - Fixed default sizing for child windows
24811
24812 2004-08-09 12:56  pbartok
24813
24814         * XplatUIX11.cs:
24815           - Added generation of WM_DESTROY message
24816           - Added handling of window manager induced shutdown
24817
24818 2004-08-09 11:31  jackson
24819
24820         * ThemeWin32Classic.cs: New names for control properties
24821
24822 2004-08-09 11:25  jackson
24823
24824         * Control.cs: Use new color names
24825
24826 2004-08-09 11:02  jackson
24827
24828         * XplatUI.cs: Get default window properties from the theme
24829
24830 2004-08-09 11:01  jackson
24831
24832         * ITheme.cs: The theme engine now controls default window
24833           properties
24834
24835 2004-08-09 11:00  jackson
24836
24837         * ThemeWin32Classic.cs: Add default window color properties
24838
24839 2004-08-09 10:17  jackson
24840
24841         * ThemeWin32Classic.cs: Use correct default back color
24842
24843 2004-08-09 10:05  jackson
24844
24845         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
24846           the theme now.
24847
24848 2004-08-09 09:56  jackson
24849
24850         * XplatUI.cs: Remove defaults, these are handled by the theme now.
24851
24852 2004-08-09 09:54  jackson
24853
24854         * Control.cs: Get default properties from the theme.
24855
24856 2004-08-09 09:53  jackson
24857
24858         * ITheme.cs: Themes now handle default control properties
24859
24860 2004-08-09 09:53  jackson
24861
24862         * ThemeWin32Classic.cs: Themes now handle default control
24863           properties so coloring will be consistent
24864
24865 2004-08-08 16:54  jordi
24866
24867         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
24868
24869 2004-08-08 15:08  jordi
24870
24871         * XplatUIX11.cs: fixes keyboard crash
24872
24873 2004-08-08 13:47  jordi
24874
24875         * Label.cs: add cvs header info
24876
24877 2004-08-08 12:09  jackson
24878
24879         * ThemeWin32Classic.cs: Add pen_buttonface
24880
24881 2004-08-08 11:52  jordi
24882
24883         * Label.cs, LinkLabel.cs: [no log message]
24884
24885 2004-08-08 11:34  jordi
24886
24887         * ThemeWin32Classic.cs: Use Windows Standard Colours
24888
24889 2004-08-07 17:32  jordi
24890
24891         * TrackBar.cs: throw exceptions of invalid enums values
24892
24893 2004-08-07 17:31  jordi
24894
24895         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
24896           draw method name
24897
24898 2004-08-07 16:56  jackson
24899
24900         * HorizontalAlignment.cs: Initial checkin
24901
24902 2004-08-07 13:16  jordi
24903
24904         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
24905           methods
24906
24907 2004-08-07 13:05  jordi
24908
24909         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
24910           GetSysColor defines
24911
24912 2004-08-06 18:01  pbartok
24913
24914         * ThemeWin32Classic.cs:
24915           - Fixed some rounding issues with float/int
24916
24917 2004-08-06 18:00  jackson
24918
24919         * DockStyle.cs, AnchorStyles.cs:
24920
24921                   Add flags and serializable attributes.
24922
24923 2004-08-06 17:46  pbartok
24924
24925         * XplatUIX11.cs:
24926           - Implemented GetParent
24927
24928 2004-08-06 17:18  pbartok
24929
24930         * TrackBar.cs:
24931           - Fixed some rounding issues with float/int
24932
24933 2004-08-06 17:17  pbartok
24934
24935         * X11Structs.cs, XplatUIX11.cs:
24936           - Fixed Refresh and Invalidate
24937
24938 2004-08-06 15:30  pbartok
24939
24940         * Control.cs, X11Structs.cs, XplatUIX11.cs:
24941           - Fixed recursive loop when resizing
24942           - Improved/fixed redrawing on expose messages
24943
24944 2004-08-06 09:53  jordi
24945
24946         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
24947           keyboard navigation
24948
24949 2004-08-06 08:02  pbartok
24950
24951         * X11Structs.cs, XplatUIX11.cs:
24952           - Fixed reparenting
24953           - Fixed window border creation
24954
24955 2004-08-05 15:38  pbartok
24956
24957         * XplatUIX11.cs:
24958           - Attempted fix for reparenting problems
24959
24960 2004-08-04 15:14  pbartok
24961
24962         * Control.cs:
24963           - Fixed Invalidation bug (calculated wrong client area)
24964           - Added ClientSize setter
24965
24966 2004-08-04 15:13  pbartok
24967
24968         * Form.cs:
24969           - Added AutoScale properties
24970
24971 2004-08-04 15:13  pbartok
24972
24973         * SWF.csproj:
24974           - Added latest files
24975
24976 2004-08-04 14:11  pbartok
24977
24978         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
24979           XplatUIX11.cs:
24980           - Added Invalidate handling
24981
24982 2004-08-03 17:09  jordi
24983
24984         * XplatUIDriver.cs: fixes spelling mistake
24985
24986 2004-07-27 09:53  jordi
24987
24988         * TrackBar.cs: fixes trackbar events, def classname, methods
24989           signature
24990
24991 2004-07-27 09:29  jordi
24992
24993         * ScrollBar.cs: fixes scrollbar events
24994
24995 2004-07-27 04:38  jordi
24996
24997         * Control.cs: changes to be able to run winforms samples
24998
24999 2004-07-26 11:42  jordi
25000
25001         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
25002           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
25003
25004 2004-07-26 05:41  jordi
25005
25006         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
25007           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
25008           implementation
25009
25010 2004-07-22 09:22  jordi
25011
25012         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
25013           check link overlapping, implement events, and fixes
25014
25015 2004-07-21 10:28  jordi
25016
25017         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
25018
25019 2004-07-21 10:19  jordi
25020
25021         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
25022           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
25023           LinkLabelLinkClickedEventArgs.cs,
25024           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
25025           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
25026           implementation
25027
25028 2004-07-19 13:09  jordi
25029
25030         * Control.cs, Label.cs: label control re-written: added missing
25031           functionlity, events, and properties
25032
25033 2004-07-19 10:49  jordi
25034
25035         * Control.cs: fixes SetBounds logic
25036
25037 2004-07-19 01:29  jordi
25038
25039         * Control.cs: Call RefreshWindow only if the window has created
25040
25041 2004-07-15 14:05  pbartok
25042
25043         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
25044           - Implemented ImageList and ImageList.ImageCollection classes
25045           - Added ColorDepth enumeration
25046           - Updated SWF VS.Net project
25047
25048 2004-07-15 11:06  jordi
25049
25050         * XplatUIStructs.cs: added MsgButons enum
25051
25052 2004-07-15 11:03  jordi
25053
25054         * Control.cs: added basic mouse handeling events
25055
25056 2004-07-15 03:38  jordi
25057
25058         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
25059           Vertical TrackBar control implementation
25060
25061 2004-07-13 09:33  jordi
25062
25063         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
25064
25065 2004-07-13 09:31  jordi
25066
25067         * Control.cs, Form.cs: commit: new properties and fixes form size
25068           problems
25069
25070 2004-07-09 14:13  miguel
25071
25072         * ProgressBar.cs: Spelling
25073
25074 2004-07-09 11:25  pbartok
25075
25076         * ProgressBar.cs:
25077           - Removed usage of Rectangle for drawing. Miguel pointed out it's
25078           faster
25079
25080 2004-07-09 11:17  miguel
25081
25082         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
25083
25084                 * ProgressBar.cs: Fixed spelling for `block'
25085
25086                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
25087                 style guidelines.
25088
25089                 Avoid using the += on rect.X, that exposed a bug in the compiler.
25090
25091 2004-07-08 23:21  pbartok
25092
25093         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
25094           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
25095           BaseCollection.cs, Binding.cs, BindingContext.cs,
25096           BindingMemberInfo.cs, BindingsCollection.cs,
25097           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
25098           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
25099           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
25100           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
25101           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
25102           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
25103           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
25104           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
25105           FrameStyle.cs, GiveFeedbackEventArgs.cs,
25106           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
25107           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
25108           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
25109           InputLanguageChangedEventArgs.cs,
25110           InputLanguageChangedEventHandler.cs,
25111           InputLanguageChangingEventArgs.cs,
25112           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
25113           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
25114           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
25115           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
25116           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
25117           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
25118           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
25119           QueryAccessibilityHelpEventArgs.cs,
25120           QueryAccessibilityHelpEventHandler.cs,
25121           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
25122           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
25123           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
25124           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
25125           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
25126           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
25127           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
25128           XplatUIX11.cs, lang.cs:
25129           - Initial check-in
25130