* TreeView.cs: doh, the Begin* events should be
[mono-project.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
blob1a7090f377d958650b618aa0cb83e8a0f000ea8e
1 2006-12-01  Chris Toshok  <toshok@ximian.com>
3         * TreeView.cs: doh, the Begin* events should be
4         TreeViewCancelEventHandler.
6 2006-12-01  Chris Toshok  <toshok@ximian.com>
8         * Form.cs: Form.ControlCollection already stores off the
9         form_owner field.  don't access the base class's internal "owner"
10         field.
12         * Control.cs: make all the fields in Control.ControlCollection
13         private.  there's no need for any internal fields here.
15 2006-12-01  Chris Toshok  <toshok@ximian.com>
17         * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
18         OnHandleCreated.  Fixes bug #80109.
20 2006-12-01  Chris Toshok  <toshok@ximian.com>
22         * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
23         SplitContainer.cs, Control.cs, StatusStrip.cs,
24         DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
25         NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
26         DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
27         DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
28         Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
29         LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
30         MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
31         TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
32         PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
33         DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
35         do most of the work to convert our code over to use
36         System.ComponentModel.Component.Events for
37         adding/removing/dispatching events.
40 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
42         * DataGridView.cs: Fix an ArgumentNullException reported 
43         twice today in IRC.
45 2006-11-30  Mike Kestner  <mkestner@novell.com>
47         * ComboBox.cs: fix the scrollbar mouse event forwarding in the 
48         grabbed listbox.  Fixes #80036 and #80101.
50 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
52         * Message.cs: Changed ToString() to match MS.
53         
54 2006-11-30  Jackson Harper  <jackson@ximian.com>
56         * TextBoxBase.cs: You can still change the selected text on a read
57         only textbox.
58         * TextControl.cs: Lower magic number for wrap calculations. This
59         lets text get closer to the right (far) edge.
61 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
63         * Control.cs: Tweak 2.0 layout properties.
64         * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
65         * TextRenderer.cs: Add a new overload.
66         * ToolStrip*: Huge amount of changes and new features.
68 2006-11-30  Mike Kestner  <mkestner@novell.com>
70         * ComboBox.cs: fixes for LargeChange and Maximum to get the 
71         scroll range correct.  Fixes #79994.
73 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
75         * MdiWindowManager.cs: Update main form's text when
76         a form is closed. (fixes #80038)
77         
78 2006-11-30  Everaldo Canuto  <everaldo@simios.org>
80         * ToolBar.cs:
81         - Fix an regression in ButtonSize.
82         - Get ImeMode default value change to "Disable".
83         - Get ShowTooltips default value change to true, default value is 
84         "false" but after make a test in .NET we get "true" result as default.
85         
86 2006-11-29  Jonathan Pobst  <monkey@jpobst.com>
88         * ToolStripDropDown.cs: Fix for SupportsTransparency change.
90 2006-11-29  Chris Toshok  <toshok@ximian.com>
92         * XplatUIWin32.cs (GetWindowTransparency): check return value of
93         GetLayeredWindowAttributes.  if it's 0, return 1.0, as
94         SetWindowTransparency hasn't been called.
96 2006-11-29  Chris Toshok  <toshok@ximian.com>
98         * Form.cs (set_TransparencyKey): only call SetWindowTransparency
99         if it's supported.
100         (set_AllowTransparency): reorder things a little so that the
101         WS_EX_LAYERED style is removed properly.
103 2006-11-29  Chris Toshok  <toshok@ximian.com>
105         [ totally cosmetic eye-candy feature, fixes bug #80089 ]
106         
107         * Form.cs: only call the XplatUI transparency method (get/set) if
108         SupportsTransparency says it's supported. Otherwise fallback to
109         doing nothing (in the set case) or returning the instance field we
110         cache (in the get case).
112         * XplatUIStructs.cs: add TransparencySupport flag enum.
113         
114         * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
115         change to SupportsTransparency.
117         * XplatUIOSX.cs: stub out GetWindowTransparency, and return
118         TransparencySupport.None from SupportsTransparency.
120         * XplatUIX11.cs: Stub out GetWindowTransparency, and return
121         TransparencySupport.Set from SupportsTransparency.
123         * XplatUIWin32.cs: implement GetWindowTransparency calling
124         GetLayeredWindowAttributes, and implement SupportsTransparency by
125         checking whether or not both
126         GetWindowTransparency/SetWindowTransparency are available
127         entrypoints.  We need to do this since SetWindowTransparency is
128         available as of win2k, but GetWindowTransparency requires winxp.
129         yay win32 api.
131         * XplatUI.cs: Add GetWindowTransparency, and change
132         SupportsTransparency to allow for either/both Get/Set.
134 2006-11-29  Chris Toshok  <toshok@ximian.com>
136         * DataGrid.cs: keep from going into an infinite loop redrawing a
137         datagrid that has no datasource.  Fixes bug #80033.
139 2006-11-29  Chris Toshok  <toshok@ximian.com>
141         * MenuItem.cs: fix the NRE when we assign text (and therefore call
142         Invalidate) before the mainmenu has been assigned to a control.
144 2006-11-29  Chris Toshok  <toshok@ximian.com>
146         * DataGrid.cs: detect when we should be double the double click
147         row/column autosize stuff, although that codepath has yet to be
148         written.  part of the work for bug #79891.
150 2006-11-29  Chris Toshok  <toshok@ximian.com>
152         * Binding.cs (SetControl): fix unit test.
154 2006-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
156         * PageSetupDialog.cs: Validate the margins and set them in
157         PageSettings. 
158         * NumericTextBox.cs: New class to mimic the behavior of the
159         textboxes used in the printing dialogs.
161 2006-11-29  Andreia Gaita  <avidigal@novell.com>
162         
163         * Form.cs: Revert previous change (remove call UpdateBounds
164         from form constructor), because it messes with the handle creation
165         order, and that one needs lots and lots of love.
166         * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
167         for valid printer and throw InvalidPrinterException if document
168         is set but printer not valid), adding a MonoTODO. Once 
169         handle creation is done properly, we can put this back in.
171 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
173         * MenuItem.cs: Create a invalidate method for menu item, to be
174         calling from set text, it make text changes to imadiate update
175         on screen. Fixes #80013. 
176         
177 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
179         * ToolBar.cs: Fixes and simplify toolbar button layout, it 
180         fixes bug #80070 and some other problem on toolbar buttons
181         layout.
183 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
185         * ThemeWin32Classic.cs: Paint toolbar toggle button background 
186         with dotted brush.      Fixes #79564
187         
188 2006-11-28  Andreia Gaita  <avidigal@novell.com>
190         * Form.cs: Removed call to UpdateBounds on Form
191         constructor, it was causing a call to CreateHandle
192         before it was supposed to.
193         * PrintControllerWithStatusDialog: Applied patch
194         by Chris Toshok to hide controller when there are
195         no printers available.
196         PrintDialog.cs: initialize printer settings to 
197         null - correct DefaultValues test #5
198         * PrintPreviewControl.cs: Move PrintController
199         initialization to GeneratePreview
200         * PrintPreviewDialog.cs: 
201         - Remove Preview generation     from Document_set(). It is 
202         called on OnPaint
203         - Throw InvalidPrinterException on CreateHandle if
204         a Document is set but there are no printers or 
205         printer is not valid.
206         * ThemeWin32Classic: don't paint PrintPreviewControl
207         if there is nothing to paint    
209 2006-11-28  Miguel de Icaza  <miguel@novell.com>
211         * Form.cs: Add another popular method.
213         * TabPage.cs: ditto.
215 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
217         * MenuItem.cs: Fixed a warning.
218         * InternalWindowManager: Fixed a warning.
220 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
222         * MenuItem.cs:
223         - When cloning a menu also clone MdiList and clone the 
224           window menu items properly (as the forms and menuitems
225           are kept in an internal hashtable, these need updating 
226           as well)
227         - Rewrote the window menu code, menu items are added in the
228           order the forms were added to their parent, and they are
229           updated every time the window menu is shown (before the
230           list was only generated once, in the current order of the
231           forms, and would never be updated). A checkmark is shown
232           next to the item corresponding to the active mdi child.
234 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
236         * XplatUIStructs.cs: 
237         - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
238         
239         * XplatUIWin32.cs: 
240         - Added TME_NONCLIENT to TMEFlags.
241         - Handles WM_NCMOUSEMOVE in GetMessage to 
242           generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
244         * MdiWindowManager:
245         - Now merges mdi child menu to parent menu when maximized.
246         - Recalculate NC areas of both mdi child and mdi parent. 
247           Fixes #79757 (4).
248           on window state and size changes.Fixes #79844 (3).
249         - Handle WM_NCCALCSIZE to properly calculate borders.
251         * Form.cs:
252         - Add/remove to the mdi containers list of mdi children 
253           in the order they are added.
254         - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE 
255           to the maximized mdi child.
256         
257         * InternalWindowManager.cs:
258         - Only execute a click on the control buttons on the mouse up,
259           not on the mouse down. Show the state of the button 
260           (was only showing Normal state, never Pressed state). The
261           pressed button now follows the mouse (if you click the Close 
262           button and move the mouse over the Maximize button, the 
263           Maximize button will be shown as pressed). Since Win32 does
264           not generate WM_NCLBUTTONUP if you release the button outside
265           of the nc area, we need to handle WM_NCMOUSELEAVE and treat
266           it as a mouse up.
267         
268         * ThemeWin32Classic.cs:
269         - Draw a missing border around mdi child forms. Fixes #79844 (2).
271         * MdiClient.cs:
272         - Added a list of forms which contains the order the forms are
273           added to the mdi parent.
274         - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
275         - Handle WM_NCCALCSIZE to properly calculate the 3D border.
276         - If the active form changes set the scrollbars to the top
277           of the Z order, otherwise the form could hide them.
278         - Scrollbars are now sized according to ClientSize, not 
279           to Size, and they take into account the other scrollbar
280           to determine maximum.
281         
282 2006-11-28  Rolf Bjarne Kvinge <RKvinge@novell.com>
283         
284         * XplatUI.cs:
285         * XplatUIDriver.cs:
286         * XplatUIX11.cs:
287         * XplatUIWin32.cs:
288         * XplatUIOSX.cs:
289         - Added RequestAdditionalWM_NCMessages for windows to 
290           opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
291           Currently only implemented in XplatUIWin32.
293 2006-11-27  Chris Toshok  <toshok@ximian.com>
295         * Hwnd.cs: only add the hwnd to the windows hash in
296         set_WholeWindow and set_ClientWindow if whole_window/client_window
297         are not IntPtr.Zero.  also, remove the unused SetObjectWindow.
299 2006-11-27  Mike Kestner  <mkestner@novell.com>
301         * ComboBox.cs: remove redundant OnDropDown call.  It is called
302         from the ComboListBox.ShowWindow code. Fixes #79969.
304 2006-11-27  Chris Toshok  <toshok@ximian.com>
306         * Hwnd.cs: remove the setters for ExposePending and
307         NCExposePending - noone uses them.
309 2006-11-27  Jackson Harper  <jackson@ximian.com>
311         * TextControl.cs: new param for ReplaceSelection which determines
312         whether we select the new selection, or set the cursor to the end
313         of the new selection.
314         * TextBoxBase.cs: Use new param for ReplaceSelection.  When
315         pasting, select the new text.
316         * RichTextBox.cs: Use new param for ReplaceSelection.
318 2006-11-27  Jackson Harper  <jackson@ximian.com>
320         * TextBoxBase.cs: Set the selection to the caret after the caret
321         is moved, otherwise they get out of sync.
323 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
325         * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
326         it fixes #80015
328 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
330         * ThemeWin32Classic.cs: 
331         - Fix toolbar drop down arrow position.
332         - Fix drop down appearance when ToolBar.Appearance is normal,
333         it fixes #80018.
334         
335 2006-11-26  Gert Driesen  <drieseng@users.sourceforge.net>
337         * ProgressBar.cs: GetStyle fixes for 2.0 profile.
338         * Control.cs: Same.
339         * UpDownBase.cs: Same.
340         * ButtonBase.cs: Same.
341         * ScrollBar.cs: Same.
342         * TrackBar.cs: Same.
343         * PictureBox.cs: Same.
344         * UserControl.cs: Same.
345         * Label.cs: Same.
346         * ListControl.cs: Same.
347         * TextBoxBase.cs: Same.
348         * ListView.cs: Same.
349         * RichTextBox.cs: Same.
350         * TreeView.cs: Same.
352 2006-11-25  Jordi Mas i Hernandez <jordimash@gmail.com>
354         * PrintDialog.cs:
355         - Text label for where 
356         - Text label comment was not shown
358 2006-11-23  Everaldo Canuto  <everaldo@simios.org>
360         * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
362 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
364         * InternalWindowManager.cs: 
365         - Handle WM_PARENTNOTIFY to activate the form
366         if any child control is clicked.
367         - The form is only sizable if not minimized.
369         * MdiWindowManager.cs:
370         - Save the IconicBounds if the form is moved.
371         - Rework SetWindowState, now the window bounds 
372         are stored only if the old window state is Normal.
373         
374         * MdiClient.cs:
375         - In SetWindowStates store the old window state if 
376         the window is maximized and restore window state if
377         the window looses focus.
378         - Don't handle any scrollbar value changes if 
379         initializing the scroll bars. Fixes #79771.
380         - Reworked ArrangeIconicWindows. Current algorithm
381         tests bounds agains all other minimized windows, if
382         any intersections create new bounds (going left to 
383         right, bottom to top) and then test again. When 
384         successful the bounds are saved and never computed
385         again. Fixes #79774.
387 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
389         * InternalWindowManager.cs: Added HandleTitleBarUp.
391 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
393         * NumericUpDown.cs: In .NET 1.1, user entered text is still
394         hexadecimal in ParseUserEdit.
396         
397 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
399         * MdiWindowManager.cs: 
400         - Handle a click on the form's icon to show the 
401         system menu (when maximized). Fixes #79775.
402         - Change the existing click handler for the form's
403         icon when not maximized to show on MouseUp.
404         Fixes #79776.
406         * Form.cs: In OnResize only layout the mdi child's
407         parent if it actually has a parent. Might not if
408         the window is closing.
411 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
413         * MdiClient.cs: Ignore active MDI client for text of parent, if
414         child has no text set.
416 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
418         * ToolBar.cs: Fixed ToString to match MS.
420 2006-11-22  Andreia Gaita  <avidigal@novell.com>
422         * NumericUpDown: 
423         - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to 
424         update inner values on set. Fixes #79966.
425         - Override OnLostFocus to update value on NET 2. Fixes #79950.
426         - Fix hexadecimal parsing.
427         
428         * UpDownBase: Override OnGotFocus and OnLostFocus to notify 
429         parent. Fixes #79957
431 2006-11-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
433         * Control.cs: After calling SetWindowsPos in SetBoundsCore 
434         the actual size has to be queried, since if height /
435         width is negative Win32 changes it to 0. 
436         Fixes #79999 on Windows.
437         
438         * XplatUIX11.cs: Set height / width to 0 if negative
439         in SetWindowPos. Fixes #79999 on Linux.
440         
441 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
443         * ThemeWin32Classic.cs: Fix text redenring when button is
444         pressed.
446 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
448         * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
449         and later navigate by mouse. Fixes #79528.
451 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
453         * ToolBar.cs: Set default value for TabStop to false in
454         constructor, it fixes remaining behavior of bug #79863.
456 2006-11-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
458         * MdiWindowManager.cs:
459         * InternalWindowManager.cs:
460         - Moved a few methods specific to Mdi from 
461         InternalWindowManager to MdiWindowManager.
462         Fixes #79996.
463         
464 2006-11-21  Chris Toshok  <toshok@ximian.com>
466         * XplatUIOSX.cs: stub out InvalidateNC.
468         * XplatUIWin32.cs: implement InvalidateNC using the call I found
469         at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
471         * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
473         * XplatUIDriver.cs: add InvalidateNC abstract method.
475         * XplatUI.cs: add InvalidateNC.
477 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
479         * ToolBar.cs: Invalidate complete button area when pressed status 
480         was changed.
481         * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
482         * ThemeWin32Classic.cs: Increase vertical and horizontal position 
483         by 1 when button is pressed.
485 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
487         * ToolButton.cs: Invalidate middle of DropDown button when
488         ToolBar theres DropDownArrows.
489         * ThemeWin32Classic.cs: Change position of DropDown arrow and
490         fix DropDown drawing operations.
492 2006-11-20  Chris Toshok  <toshok@ximian.com>
494         * NativeWindow.cs: fix the formatting of functions ('{' on the
495         following line), and enable the thread exception dialog.
497         * Application.cs: remove the duplicate exception catching from
498         here.
500 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
502         * Toolbar.cs: Triggers button click event when click on icon
503         of dropdown ToolBarButton. Fixes #79912.
504         
505 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
507         * Theme.cs:
508         * ThemeWin32Classic.cs:
509         - Added a property WindowBorderFont to enable themeing
510           of mdi child windows' Text.
511           
512 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
514         * InternalWindowManager.cs:
515         * Form.cs:
516         * MdiClient.cs:
517         * MdiWindowManager.cs: 
518         - If mdi child is maximized, set mdi parent's
519           text to "Parent - [Child]". Fixes #79770.
520         - If there is any maximized mdi child windows, only the active 
521           window (and any new windows) is maximized, the rest are normal.
522         - On a WindowState change only save mdi child's window bounds 
523           if the old window state was normal. Fixes #79774.
524         - The scroll bars are now calculated on hopefully all
525           necessary events. Fixed #79771 / #79844->6 / #79906.
526         - MdiClient.SizeScrollBars() now takes into account docked 
527           controls in the parent when calculating available space.
528         - InternalWindowManager now always repaints the entire title
529           area. Fixes #79844->1/4/5.
530         - Added RequestNCRecalc on mdi child windowstate changes.
531           Fixes #79772.
533 2006-11-20  Mike Kestner  <mkestner@novell.com>
535         * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
536         in the MouseUp handler of the listbox and move the return handling
537         code to FireMouseUp to avoid scrolling on ups.  Fixes #79952.
539 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
541         * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855. 
543 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
545         * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
546           working in 1.2.x anymore. So, updated.
548 2006-11-19  Gert Driesen  <drieseng@users.sourceforge.net>
550         * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
551         NumberGroupSeparator of current culture instead of assuming en-US.
552         Fixed bug #79967.
554 2006-11-17  Mike Kestner  <mkestner@novell.com>
556         * Control.cs: Add the concept of implicit bounds setting so that
557         dock/undock round trips preserve explicitly set size/locations.
558         Fixes #79313.
560 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
562         * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
563           can't handle those filters. (Fixes bug #79961)
565 2006-11-17  Chris Toshok  <toshok@ximian.com>
567         [ fixes the exit/crashes associated with #79835.  it's clearly
568         suboptimal though, we need to figure out a better way to solve
569         this. ]
570         
571         * PrintPreviewControl.cs: deal with the new invalid printer
572         exceptions.
574         * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
575         and return false (so CommonDialog.ShowDialog doesn't actually show
576         the form.)
578         * PrintDialog.cs: enable/disable the Ok button depending on
579         whether or not the printer is valid.
581         * CommonDialog.cs (ShowDialog): only actually show the form if
582         RunDialog returns true.
584 2006-11-17  Jackson Harper  <jackson@ximian.com>
586         * TextControl.cs: When soft splitting a line, mark it as a soft
587         split line. Also carry over the current line break to the next
588         line.
590 2006-11-17  Chris Toshok  <toshok@ximian.com>
592         * XplatUIX11.cs: when scrolling a window with an invalid area, we
593         only want to shift the part of the invalid area that overlaps the
594         area we're scrolling.  we also don't want to clear the invalid
595         area unless the invalid area was entirely contained within the
596         scrolling area.
598 2006-11-16  Chris Toshok  <toshok@ximian.com>
600         * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
601         also make sure to free the memory returned by XGetWindowProperty
602         in GetText().
604         * X11Structs.cs: remove the TimerEvent stuff, it's unused.
606 2006-11-16  Chris Toshok  <toshok@ximian.com>
608         * XplatUI.cs: add a new super secret way to get at the totally
609         unsupported X11 backend.
611 2006-11-16  Gert Driesen  <drieseng@users.sourceforge.net>
613         * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
615 2006-11-16  Jackson Harper  <jackson@ximian.com>
617         * TreeView.cs: Allow more explicit setting of top node position
618         for scrollbars. Slower algo, but more accurate.
619         - CollapseAll should maintain the current top node.
620         * TextBoxBase.cs: When positioning the caret, use the line, pos
621         method, since the x, y method does not grab the correct tag, and
622         the caret height never gets set correctly. (Maybe I should just do
623         away with the caret having its own height, and always use the
624         carets current tag for height).
626 2006-11-16  Jonathan Pobst  <monkey@jpobst.com
628         [Fixes 79778, 79923]
630         * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
631         Parent to the FosterParent instead.
633 2006-11-16  Jackson Harper  <jackson@ximian.com>
635         * TreeView.cs: Need to recalc the topnode when we expand or
636         collapse. The scrolling methods can't handle this on their own,
637         since they use differences between the last scroll position, and
638         those difference get completely messed up since we are expanding
639         nodes.  This problem should probably be fixed in the scrolling
640         methods, so they can figure out exactly where they are, but this
641         will slow things down a little.
642         * ThemeWin32Classic.cs: Special case for groupboxes with empty
643         strings, makes nunit-gui look a lot nicer.
645 2006-11-16  Chris Toshok  <toshok@ximian.com>
647         * XplatUIX11.cs: nasty, nasty, nasty changes required because of
648         the broken multithreaded event handling we have in here.  File
649         this entry under "Why we should move to the new X11 backend".
651         Any thread can make it into UpdateMessageQueue, which gets events
652         from the X socket - some of which could belong to hwnds being
653         managed by a different thread.  We can also have multiple threads
654         in UpdateMessageQueue at the same time, with each one reading from
655         the X socket.  This leads to many problems, with the following
656         solutions:
658         We can't use hwnd.Queue.Enqueue anywhere in here and must use
659         EnqueueLocked.
661         The MotionNotify compression we do can't work across threads
662         (without locking the entire queue, perhaps) since we call
663         hwnd.Queue.Peek, so we just punt and don't compress motion events
664         unless the owning thread is the one which got the X event.
666         ConfigureNotify is another fun one, since it modifies the hwnd's
667         bounds and then enqueues the event.  We add a lock to Hwnd which
668         is held when setting configure_pending to true (and enqueuing the
669         event).
671         There is a race wrt the wake socket.  we need to make sure that
672         only 1 thread is waiting on that socket, or else a thread could
673         sleep waiting for data that never comes.  It's difficult (but not
674         impossible) to make happen, because it seems to require something
675         like the following:
677             1. Thread 1 polls on wake_receive
678         
679             2. poll returns saying there's data to be read on
680                wake_receive.
681         
682             3. Thread 2 polls on wake_receive and immediately returns
683                saying there's data to be read.
685             4. Thread 2 reads the wakeup byte from wake_receive
687             5. Thread 1 attempts to read the wakeup byte from
688                wake_receive.
690             6. Thread 2 exits (due to a form closing, perhaps).
692             7. Thread 1 blocks forever.
693         
694         Fun, eh?
696         Fixing the Expose handling isn't done yet, and the races inherent
697         in that piece of code are responsible for the drawing mistakes you
698         see when generating expose events in a MT app (like NPlot).  This
699         one is the likely to be the hardest to bandaid, and it doesn't
700         appear to cause anything but drawing problems.  The other issues
701         caused apps to exit or hang.
703         * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
704         called from a different thread than the one that should be calling
705         these functions.
707         * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
709 2006-11-15  Chris Toshok  <toshok@ximian.com>
711         * Application.cs: null out the context's MainForm when we exit
712         RunLoop.  Fixes a newly checked in unit test as well as the last
713         ODE from bug #79933.
715 2006-11-15  Chris Toshok  <toshok@ximian.com>
717         * Form.cs (set_Owner): allow a null value so we can clear the
718         form's owner.
719         (Dispose): set all our owned_form's Owner properties to null, and
720         clear the owned_forms collection.
721         (WM_CLOSE): clean up this a little bit.. still not right though.
723         * ApplicationContext.cs: OnMainFormClosed should only call
724         ExitThreadCore if the main form isn't recreating.  Fixes unit
725         test.
727 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
729         [Fixes 78346]
731         * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
733 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
735         [Fixes 79433]
737         * Hwnd.cs: Add a flag to show a window, but not activate it, to 
738         keep popup window types from stealing focus from the main form
739         on Windows.
741         * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
743         * MenuAPI.cs: Set above flag to true.
745 2006-11-15  Chris Toshok  <toshok@ximian.com>
747         * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
748         the button being released is not in wParam.
750 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
752         * Form.cs: Add the released button to MouseEventArgs.Button
753         for the OnMouseUp call to the MenuTracker.  Fixes menu clicking
754         on Win32.
756 2006-11-15  Chris Toshok  <toshok@ximian.com>
758         * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
759         GetText().  untested because it's unused in our implementation.
760         Control.Text always caches the text, even if
761         ControlStyles.CacheText is not set.
763         fixes bug #79939.
765 2006-11-15  Chris Toshok  <toshok@ximian.com>
767         [ fixes #79933 ]
768         
769         * Form.cs: in Close() don't do anything after we send the WM_CLOSE
770         message.  no hiding, no disposing.
772         in the WM_CLOSE handler, hide the form if it's modal.
774 2006-11-15  Chris Toshok  <toshok@ximian.com>
776         * XplatUIX11.cs: use AddExpose instead of sending a message.
777         fixes textbox border drawing.
779 2006-11-15  Chris Toshok  <toshok@ximian.com>
781         * PropertyGridView.cs: keep from crashing on mouse move/down when
782         the property grid is empty.
784 2006-11-14  Jackson Harper  <jackson@ximian.com>
786         * TextControl.cs: Make PageUp and PageDown more like the MS
787         versions.
788         * TextBoxBase.cs: When we set the text property position the
789         cursor at the beginning of the document.
791 2006-11-14  Rolf Bjarne Kvinge  <RKvinge@novell.com>
793         * Form.cs: if a mdi child's WindowState has changed
794         before it's creation, it would display wrong control
795         buttons.
796         
797 2006-11-14  Alexander Olk  <alex.olk@googlemail.com>
799         * TreeView.cs: De-uglify TreeView checkbox checkmarks.
800           (Fixes bug #79927)
802 2006-11-14  Rolf Bjarne Kvinge <RKvinge@novell.com> 
804         * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that 
805         the window gets to paint its borders even if the window is
806         getting smaller.
807         
808         * Form.cs: on a WM_NCPAINT invalidate the entire menu, 
809         otherwise the old control buttons would still be painted 
810         if the window gets bigger.
811         
812         * PaintEventArgs.cs: add an internal method so that the clip 
813         rectangle can be changed.
814         
815 2006-11-13  Chris Toshok  <toshok@ximian.com>
817         [ fixes bug #79745 ]
818         
819         * NotifyIcon.cs: lots of cleanup.
821         * X11Structs.cs: add an enum for XEMBED messages.
823         * XplatUIX11.cs: reindent one of the giant switch statements, it
824         was taking up an additional tab stop, and this file is already way
825         too wide for my laptop's screen.
827         Also, add handling for the XEmbed EMBEDDED_NOTIFY message.  When
828         we get it, resize the hwnd to the WMNormalHints max_width/height.
830 2006-11-13  Jackson Harper  <jackson@ximian.com>
832         * TextBoxBase.cs: Compute the value changes for the mouse wheel
833         teh simple way.
835 2006-11-13  Chris Toshok  <toshok@ximian.com>
837         * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
838         #79898.  force a reference to the Region to stick around so the
839         unmanaged object isn't collected (rendering our handle in the MSG
840         stale).
842 2006-11-13  Chris Toshok  <toshok@ximian.com>
844         * XplatUIX11.cs: fix #79917 for window managers which support
846         using XStoreName on the raw utf8, and we need to convert to
847         COMPOUND_TEXT if it's non-latin1.
849 2006-11-13  Chris Toshok  <toshok@ximian.com>
851         * Form.cs (set_DialogResult): we need to set closing to false if
852         we're setting our result to None.  fixes bug #79908.
854 2006-11-13  Jackson Harper  <jackson@ximian.com>
856         * TextControl.cs: When formatting text, compute the adjusted tag
857         lengths correctly, using FindTag for the end tag instead of trying
858         to figure it out outselves.
859         * TreeNode.cs: Use ActualItemHeight, which is the actual height of
860         the item, ItemHeight doesn't work, because trees with large
861         imagelists use those for their height
862         * TreeView.cs: ActualItemHeight factors in the image height
863         - compute left edge of checkboxes correctly
864         - when expanding/collapsing move the bottom down one pixel, so we
865         aren't moving part of the node
867 2006-11-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
869         * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
870         stack in PaintEventStart so that it won't get disposed by the gc
871         before reaching PaintEventEnd.
873 2006-11-13  Jackson Harper  <jackson@ximian.com>
875         * TextBoxBase.cs: Don't select the word if we are on a line with
876         no text.
877         - We don't need to position the caret on mouse up, since the mouse
878         move handler should be doing this
879         - When double clicking a blank line, the caret is advanced to the
880         next line.
882 2006-11-13  Gert Driesen  <drieseng@users.sourceforge.net>
884         * TreeNodeCollection.cs: Avoid duplicating indexer code.
886 2006-11-12  Gert Driesen  <drieseng@users.sourceforge.net>
888         * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
889         Fixes part of bug #79910.
891 2006-11-11  Alexander Olk  <alex.olk@googlemail.com>
893         * ColorDialog.cs: Fix a NRE when adding a color to custom colors
894           (bug #79903). Some minor string updates to match ms.
896 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
898         * FileDialog.cs: Don't add an extension if the filename
899           already ends with that extension.
901 2006-11-10  Jackson Harper  <jackson@ximian.com>
903         * TreeView.cs: Use the currently highlighted node for the
904         BeforeSelect event.
905         * TextBoxBase.cs: There is no need to expand selection on
906         MouseMove.
907         - CanUndo means 'is there any undo operations', not 'is undo
908         allowed on this textcontrol. Fixed ClearUndo unit test.
910 2006-11-10  Andreia Gaita  <shana.ufie@gmail.com>
912         * Button.cs: only perform click when button is Selectable (so as 
913         not to activate default buttons when they're disabled)
914         
915         * Control.cs: Rewrite of the SelectNextControl and related 
916         methods. HandleClick now selects next control if the current one
917         is being disabled.
918         
919         * Form.cs: OnActivated selects next active control only if Load 
920         has already occurred. If Load hasn't run, there's no point in 
921         selecting here, Load might change the state of controls.
922         
923         * FocusTest.cs: Tests marked as working again for these fixes
925 2006-11-10  Chris Toshok  <toshok@ximian.com>
927         * XplatUIX11.cs: a couple of fixes.
929         - use XInternAtoms with almost all the atoms we need to register,
930         instead of many, many calls to XInternAtom.  should help a bit on
931         startup time, at the expense of making the code look a little
932         worse.
934         - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
935         isn't reparented (which seems to be a clue that we're running fon
936         compiz) and they have an Owner form.  This fixes the tool windows
937         in paint.net when running under compiz.
939         - when setting the opacity of a window, support both the case
940         where the window has been reparented and also when it hasn't been.
941         Since compiz/beryl doesn't seem to reparent windows, and these are
942         the only window managers which support translucency, I'm not sure
943         why we need the hwnd.reparented case at all.. but leave it in.
944         now we get translucent windows in paint.net under compiz/beryl.
946 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
948         * FileDialog.cs: Always return the value for FilterIndex that
949           was set. Internally convert it to values that make sense.
951 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
952         
953         * ThemeWin32Classic.cs: Fix drowp down arrow borders.
955 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
957         * Toolbar.cs: Change default value of DropDownArrows to true, the 
958         signature still using false to make it compatible with MS but the 
959         initial value is true. Fixes #79855.
961 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
963         * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
964           only available on Linux.
966 2006-11-09  Everaldo Canuto  <everaldo@simios.org>
968         * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
969         reduce number of calls to redraw method during toolbar creation.
971 2006-11-09  Mike Kestner  <mkestner@novell.com>
973         * ListView.cs : raise SelectedIndexChanged when an item is selected
974         programmatically via the Item.Selected property.  Gert's nice 
975         ListViewSelectedIndexChanged test fixture now runs clean.
977 2006-11-09  Mike Kestner  <mkestner@novell.com>
979         * ListView.cs : raise SelectedIndexChanged when a selected item is
980         removed from the item collection using Remove or RemoveAt.
982 2006-11-09  Mike Kestner  <mkestner@novell.com>
984         * ListView.cs : raise SelectedIndexChanged once per selected item
985         for compat with MS.  Fixes #79849+.
987 2006-11-09  Chris Toshok  <toshok@ximian.com>
989         * TabControl.cs: initialize row_count to 0, and set it to 1 when
990         we need to (if we have any tab pages).  Fixes unit test.
992 2006-11-09  Chris Toshok  <toshok@ximian.com>
994         * Label.cs (CalcPreferredWidth): if Text == "", our preferred
995         width is 0, not 3.  Fixes a unit test.
997 2006-11-09  Mike Kestner  <mkestner@novell.com>
999         * ListView.cs : use Implicit scrollbars so that focus isn't 
1000         stolen from the listview when they are clicked. Fixes #79850.
1002 2006-11-09  Chris Toshok  <toshok@ximian.com>
1004         * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
1005         have a root item.  Fixes #79879.
1007 2006-11-09  Alexander Olk  <alex.olk@googlemail.com>
1009         * FileDialog.cs:
1010           - Fix ToString ()
1011           - An ArgumentException is now thrown if a wrong filter
1012             is applied (matches ms). The previous filter doesn't change
1013             anymore if an exception is thrown.
1014           - Changing the FileName property also affects FileNames
1015         * ColorDialog.cs: The length of the CustomColors array is always
1016           16. It doesn't matter if we use a smaller array or null to update
1017           or change the custom colors property.
1018         * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
1019           for RootFolder if we get a undefined value.
1021 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
1023         * StatusBarPanel.cs: 
1024         - Width is set to MinWidth if Width is smaller than
1025         MinWidth. Fixes #79842.
1026         - MinWidth now always overrides Width (MSDN says MinWidth
1027         is set to Width when AutoSize = None, but they do not 
1028         behave like that).
1029         - Style has now the the correct default value.
1030         
1031 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
1033         * TrackBar.cs: 
1034         - The control is completely invalidated on 
1035         Got/LostFocus to draw the focus rectangle correctly.
1036         - When AutoSize then height is always 45 (width for 
1037         vertical controls).
1038         
1039         * ThemeWin32Classic.cs: The TrackBar thumb is now centered
1040         on the mouse when moved and it doesn't move when grabbed
1041         until the mouse moves as well. Also fixed some wrong 
1042         calculations when clicking on the thumb (control thought
1043         click was outside of thumb and didn't grab it).
1044         Fixes some of the issues in #79718.
1046 2006-11-08  Everaldo Canuto  <everaldo@simios.org>
1048         * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
1050 2006-11-08  Chris Toshok  <toshok@ximian.com>
1052         * PropertyGridView.cs: only call ToggleValue if the item is not
1053         readonly.
1055 2006-11-08  Jackson Harper  <jackson@ximian.com>
1057         * TextBoxBase.cs: The RichTextBox and textbox have very different
1058         word selection methods.  Implement the textbox's simple word
1059         selection here, and let the RichTextBox override and provide it's
1060         own.
1061         - Don't do extra selection on mouseup
1062         * RichTextBox.cs: Use the documents word selection algorithm, I
1063         think ideally, this function will be pulled into the
1064         RichTextBox.cs code someday.
1066 2006-11-08  Chris Toshok  <toshok@ximian.com>
1068         * RootGridEntry.cs: new class to represent GridItemType.Root.
1070         * CategoryGridEntry.cs: reformat, and add boilerplate.
1071         
1072         * GridEntry.cs: remove the UIParent stuff - turns out .Parent
1073         returns the UI parent anyway, and we need special handling to
1074         implement the GetTarget method in the face of it.  Also, implement
1075         Select().
1077         * PropertyGrid.cs, PropertyGridView.cs: a number of fixes.  create
1078         a root grid item, and use that instead of PropertyGrid.grid_items.
1079         Also, make use of TypeConverters (and add limitted support for
1080         ICustomTypeDescriptors) when initially populating the grid.
1081         Arrays now show up more or less properly.
1083 2006-11-08  Chris Toshok  <toshok@ximian.com>
1085         * Application.cs: set the modal dialog to non modal after we close
1086         it.  Fixes bug #79866.
1088 2006-11-08  Jackson Harper  <jackson@ximian.com>
1090         * TextControl.cs: When combining lines carry over the line end
1091         style from the end line.
1092         - Invalidate the selected area when setting it, if it is visible.
1093         * TextBoxBase.cs: Only rich text box can do full line selects.
1094         - Make sure to set the cursor position when there is a click,
1095         otherwise two clicks in separate areas could cause a large chunk
1096         to be selected.
1098 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
1100         * Toolbar.cs: Release flat button borders when Toolbar lost focus. 
1101         Fixes #79863.
1103 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
1105         * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
1106         time. Remove tooltips when ToolButton click events.  Fixes #79856.
1108 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
1110         * MenuAPI.cs: Ignore right click for menu actions and fixes
1111         menu border when clicked.  Fixes #79846.
1113 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
1115         * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
1116         MouseState after create wParam for message, this fixes mouse button 
1117         equal none in mouse up events.
1118         
1119 2006-11-07  Andreia Gaita  <shana.ufie@gmail.com>
1121         * Control.cs : Focus() now calls Select to set the Container's
1122         Active Control and to give it focus. To avoid infinite recursion
1123         (because ActiveControl also calls Focus at one point), a check 
1124         is made in Focus with the help of a new internal variable
1125         is_focusing.
1127 2006-11-07  Mike Kestner  <mkestner@novell.com>
1129         * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
1130         if there's a selection.  Fixes #79849.
1132 2006-11-07  Gert Driesen  <drieseng@users.sourceforge.net>
1134         * PropertyGrid.cs: Avoid fixed height of help description label.
1135         Fixes part of bug #79829.
1137 2006-11-07  Chris Toshok  <toshok@ximian.com>
1139         * XplatUIX11.cs: fix #79790 again, by using the
1140         _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
1142 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
1144         * ToolBar.cs: Fix left click checking.
1146 2006-11-07  Chris Toshok  <toshok@ximian.com>
1148         * ProgressBar.cs: fix a typo in ToString().  fixes a unit test.
1150 2006-11-07  Chris Toshok  <toshok@ximian.com>
1152         * RelatedPropertyManager.cs: set property_name in our ctor.  fixes
1153         PropertyManager unit tests.
1155         * PropertyManager.cs: make property_name internal.
1157 2006-11-07  Chris Toshok  <toshok@ximian.com>
1159         * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
1160         pass a unit test.  Also, don't set image_index to anything in
1161         response to setting the ImageList property.
1163 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
1165         * ToolBar.cs: Ignore click events when mouse button is not a
1166         left button, only accepts other button for dropdown menus.  
1167         Fixes #79854.
1169 2006-11-07  Chris Toshok  <toshok@ximian.com>
1171         * DataGrid.cs: make the back and parent row buttons a little less
1172         ugly.
1174 2006-11-07  Jackson Harper  <jackson@ximian.com>
1176         * TextBoxBase.cs: When converting to Text don't put line breaks in
1177         for soft line breaks.
1178         * TextControl.cs: There is an initial "fake" line in the document,
1179         this is now a soft break line, so that an extra line feed doesn't
1180         get added to the end of documents.
1182 2006-11-07  Chris Toshok  <toshok@ximian.com>
1184         [ fix bug #79778 ]
1185         
1186         * CurrencyManager.cs: if the list is readonly, don't bother
1187         checking if IBindingList.AllowNew is true.
1189         * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
1190         for non-DataRowView datasources..  or rather, make it not crash.
1191         (DataGridPaintRelationRow): make sure we limit the row painting to
1192         the area not covered by the row header, and make our cell width at
1193         least large enough to cover the relation area.  This allows grids
1194         that have relations but no rows to render correctly.
1195         (DataGridPaintRowContents): same type of changes here.
1196         (SetDataSource): move back to always calling
1197         CalcAreasAndInvalidate.  this fixes a crash/drawing problem when
1198         navigating back through relations.
1199         (HitTest): handle the case where we have no cells but have
1200         relations.  Right now we generate a hit in cell 0 of whatever the
1201         row is, not sure if this is strictly correct, but it works for our
1202         purposes.
1203         
1204         * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
1205         bother doing anything.
1207 2006-11-07  Jonathan Pobst  <monkey@jpobst.com>
1209         * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
1210         early version of StatusStrip.  Not responsible for eaten
1211         application or firstborn children.
1213 2006-11-06  Chris Toshok  <toshok@ximian.com>
1215         * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
1216         call GetTabRect with a -1 index.  Fixes #79847.
1218 2006-11-06  Jackson Harper  <jackson@ximian.com>
1220         * TreeNodeCollection.cs: Update scrollbars after clearing.
1222 2006-11-06  Chris Toshok  <toshok@ximian.com>
1224         * NumericUpDown.cs: fix the ToString method for some unit test
1225         love.
1227 2006-11-06  Chris Toshok  <toshok@ximian.com>
1229         * PropertyGrid.cs:
1230         - set the initial SelectedGridItem if we can.
1232         - Exclude non-mergable properties only if we're merging > 1
1233         object.  Merging 1 object isn't really merging, obviously.
1235         - Handle PropertySort.NoSort just like Alphabetical, which is
1236         wrong of course, but at least gets things on the screen.
1237         
1238         * PropertyGridView.cs:
1239         - Add method "FindFirstItem" which finds the first property grid
1240         item, so we can select it by default.
1242         - make use of GridEntry.CanResetValue.
1244         - Don't call RedrawBelowItemOnExpansion here anymore, the
1245         individual GridEntry's will do that.
1247         - Remove the ITypeDescriptorContextImpl internal class.
1248         
1249         * GridEntry.cs:
1250         - this class needs to implement ITypeDescriptorContext, as it's
1251         what MS's PropertyDescriptorGridEntry does, which means we can
1252         remove the ITypeDescriptorContextImpl internal class from
1253         PropertyGrid.cs.  This fixes the crashing portion of bug #79829.
1255         - keep a reference to our PropertyGridView, and move the call to
1256         RedrawBelowItemOnExpansion here from PGV.  This means
1257         programmaticly setting Expanded actually does something visible.
1259         - add a CanResetValue() function which takes into account our
1260         possibly multiple "selected_objects" in the merged case.  Shifting
1261         PropertyGridView to use this method fixes another unreported
1262         crasher found running the test for #79829.
1264         - when Top or Bounds is updated, make sure the PropertyGridTextBox
1265         is updated to reflect this.
1267         * CategoryGridEntry.cs: the ctor takes the PGV now.
1268         
1269 2006-11-06  Jackson Harper  <jackson@ximian.com>
1271         * TextControl.cs: These are 1 based.
1272         * TextBoxBase.cs: When setting the selected text, don't change the
1273         selected text tags, this is done by ReplaceText, just position the
1274         cursor at the end of the new text.
1276 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
1278         * ListView.cs: Allow label edit only when, when LabelEdit is
1279           set to true.
1281 2006-11-06  Jackson Harper  <jackson@ximian.com>
1283         * TextControl.cs: If a suitable wrapping position isn't found,
1284         just wrap right in the middle of a word.
1286 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
1288         * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
1289           bug #79820.
1291 2006-11-06  Jackson Harper  <jackson@ximian.com>
1293         * TreeView.cs: Can't use the VisibleCount property when setting
1294         scrollbar heights, because this doesn't take into account whether
1295         or not the horz scrollbar just came visible.
1297 2006-11-05  Everaldo Canuto  <everaldo@simios.org>
1299         * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
1300         activated.  Fixes #79369, #79832.
1302 2006-11-05  Alexander Olk  <alex.olk@googlemail.com>
1304         * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
1305           had to remove support for links that point to a directory. FileInfo
1306           returns no usefull information (means, the directory they point to)
1307           for such links. Replaced some empty string ("") with String.Empty.
1309 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
1311         * TreeNodeCollection.cs: To match MS, in 1.0 profile throw 
1312         NullReferenceException when attempting to remove node that is not in
1313         collection. Throw NullReferenceException when null is passed to 
1314         Remove. Allow first element of the collection to be removed. Fixes
1315         bug #79831.  In GetEnumerator ().Current return null if positioned 
1316         before the first element of the collection. In GetEnumerator ().Reset,
1317         position before first element of the collection.
1319 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
1321         * PropertyGrid.cs: To match MS, remove default title and description
1322         for panel. Fixed tooltips for Categorized and Alphabetic toolbar
1323         buttons.
1325 2006-11-04  Chris Toshok  <toshok@ximian.com>
1327         * Theme.cs: add a Clamp method, just for kicks.
1329         * ThemeWin32Classic.cs: clamp all color components to [0..255].
1331 2006-11-04  Chris Toshok  <toshok@ximian.com>
1333         * Form.cs: if the form isn't visible, Close() does nothing.
1335 2006-11-03  Chris Toshok  <toshok@ximian.com>
1337         * Form.cs (Close): if the form is modal, don't Dispose of it, only
1338         Hide it.
1339         (WndProc): don't Dispose after handling the WM_CLOSE message.
1341         * Application.cs (RunLoop): toplevels is a list of Forms, so treat
1342         them as such, instead of using casts from Control to Form.  Also,
1343         don't Dispose of the modal dialog when we fall out of the loop -
1344         Close() it instead.
1346         fixes bug #79813.
1348 2006-11-03  Chris Toshok  <toshok@ximian.com>
1350         * Control.cs (Dispose): only go through the dispose thing if we're
1351         @disposing, and we haven't already been disposed.  Fixes bug
1352         #79814.
1354         * Form.cs: no reason to call "base.Dispose()" here instead of
1355         "Dispose()".
1357 2006-11-03  Mike Kestner  <mkestner@novell.com>
1359         * ComboBox.cs : use ToString instead of casts in AddItem for
1360         sorting functionality.  Fixes #79812.
1362 2006-11-03  Chris Toshok  <toshok@ximian.com>
1364         * Application.cs: pave the way for actually using the thread
1365         exception dialog.  it's ifdefed out at the moment.
1367 2006-11-03  Chris Toshok  <toshok@ximian.com>
1369         * ThreadExceptionDialog.cs: until we get a better layout, actually
1370         hide the details textbox and label when we shouldn't see them.
1372 2006-11-03  Jackson Harper  <jackson@ximian.com>
1374         * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
1375         multiline textboxes anymore.  This method also determines the
1376         width/height of a textboxes canvas area.
1377         - Sorta a revert of the last patch.  For multiline just position
1378         the controls, then bail.  This way the scrollbar width won't be
1379         altered.
1381 2006-11-03  Everaldo Canuto  <everaldo@simios.org>
1383         * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
1384         it dont need.  Fixes #79537.
1386 2006-11-02  Jackson Harper  <jackson@ximian.com>
1388         * X11Dnd.cs: We always allow copy, since XDND implies Copy.  Also
1389         send the status after firing the DndOver event.
1391 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
1393         * TrackBar.cs: Now orientation only switches height / width if
1394         the control's handle is created (Win32 does it like this). Also 
1395         fixed a typo in ToString() for a test to pass, changed the 
1396         exception thrown in set_LargeChange and set_SmallChange to 
1397         match Win32 behaviour, and added TrackBar tests to the unit 
1398         tests.
1400 2006-11-02  Chris Toshok  <toshok@ximian.com>
1402         * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
1403         not _NET_WM_STATE_NO_TASKBAR.
1405 2006-11-02  Jackson Harper  <jackson@ximian.com>
1407         * TextControl.cs: Increment count by one, since in the update view
1408         count - 1 is used.
1410 2006-11-02  Jackson Harper  <jackson@ximian.com>
1412         * TextBoxBase.cs: Use client rectangle not bounds for checking if
1413         the mouse is in the client rectangle (duh).
1415 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
1416         
1417         * TrackBar.cs: Fixed trackbar jumping around when clicking
1418         on it - the trackbar was not detecting correctly at which
1419         side of the thumb the click was done. (fixes #79718)
1421 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
1423         * ListBox.cs: scroll visible area when change SelectedIndex to
1424         a non visible area.  Fixes #79481.
1426 2006-11-01  Jackson Harper  <jackson@ximian.com>
1428         * TextControl.cs: When replacing the selection move the selection
1429         start/end/anchor to the end of the new text.
1431 2006-11-01  Jackson Harper  <jackson@ximian.com>
1433         * XplatUIWin32.cs: When setting the parent change the controls
1434         visibility to it's visibility flag, not to it's old parents
1435         visibility (.Visible walks the parent chain).
1437 2006-11-01  Chris Toshok  <toshok@ximian.com>
1439         * XplatUIX11.cs: revert the #79790 fix, as the simple.
1440         XSetTransientForHint fix breaks paint .net's tool windows.  more
1441         work needed for that one.
1443 2006-11-01  Chris Toshok  <toshok@ximian.com>
1445         * ScrollBar.cs: throw ArgumentException instead of Exception in
1446         LargeChange/SmallChange setters.  fixes unit tests.
1448 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
1450         * ContainerControl.cs: reverted rev.67183 (which was itself
1451         a reversion of rev.66853... eh).
1452         
1453         * Control.cs: Fixes Reflector hang by changing Focus() call
1454         to what it was before rev.66643 (calling Select() here sets 
1455         ActiveControl, which in some situations calls back Focus and 
1456         eventually does a stack overflow). Temp fix.    
1457         Changes to GetNextControl() to not look for children to select when
1458         parent cannot be selectable (so it looks for siblings instead)  
1459         
1460 2006-10-31  Mike Kestner  <mkestner@novell.com>
1462         * CheckedListBox.cs : off by one error in returned index from
1463         ObjectCollection.Add.  Fixes #79758.
1465 2006-10-31  Chris Toshok  <toshok@ximian.com>
1467         * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
1468         calls for the textbox/spinner, to keep from recursing to the point
1469         where we crash.  Fixes #79760.
1471 2006-10-31  Chris Toshok  <toshok@ximian.com>
1473         * ListControl.cs (set_SelectedValue): don't throw exceptions on
1474         null/"" value, just return.  matches ms's behavior and fixes some
1475         failing tests.
1477 2006-10-31  Chris Toshok  <toshok@ximian.com>
1479         * Control.cs (set_Capture): make a logic a little easier to
1480         follow.
1482         * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
1483         if it's being destroyed.  A necessary fix surely, but a bandaid
1484         also, to fix the stuck capture problem in bug #78413.
1486 2006-10-31  Chris Toshok  <toshok@ximian.com>
1488         * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
1489         convention of clearing hwnd.ClientRect when we set the
1490         width/height (so it'll be recalculated by Hwnd).
1492 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
1494         * ContainerControl.cs: reversed Contains check from
1495         ActiveControl due to hanging problems. This fix
1496         partly regresses #79667 (button does not have
1497         initial focus), so this might be a symptom for 
1498         a larger parenting problem (set_ActiveControl
1499         is being called but the child control does
1500         not have the parent set yet?)   
1501         
1502 2006-10-31  Mike Kestner  <mkestner@novell.com>
1504         * MenuAPI.cs : fix keynav when menu is click activated.
1506 2006-10-31  Jonathan Pobst  <monkey@jpobst.com>
1508         * ToolStrip*: Version 0.2.
1510         * MenuStrip.cs: Version 0.1.
1512         * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
1514 2006-10-30  Chris Toshok  <toshok@ximian.com>
1516         [ fixes the oversized notify icon issue in bug #79745 ]
1517         
1518         * NotifyIcon.cs: scale the icon down to the size we're given by
1519         the XplatUI layer (this would be faster if we did it once instead
1520         of whenever we paint..)  Also, remove the WM_NCPAINT handling,
1521         since it's never invoked.
1523         * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
1524         pixels high by default, so let's hardcode our systray icon to that
1525         size.  The SYSTEM_TRAY protocol should really have a way for
1526         client apps to query for the correct icon size.. but oh well.  A
1527         couple of patches to deal with the screwy client_window ==
1528         whole_window notifyicon stuff (we don't want to PerformNCCalc, for
1529         instance, and also make sure we don't XSelectInput twice).
1531 2006-10-30  Chris Toshok  <toshok@ximian.com>
1533         * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
1534         recreating forms.  Control recreation is the bane of my existence.
1535         Fix it in a way that keeps everyone happy.
1537 2006-10-30  Chris Toshok  <toshok@ximian.com>
1539         * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
1540         just non-CHILD ones.  otherwise sometimes scrollbars end up with
1541         client_windows not being resized to the proper size (ReportBuilder
1542         shows this extremely well).
1544 2006-10-30  Chris Toshok  <toshok@ximian.com>
1546         * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
1547         for non-WS_EX_APPWINDOW windows.  This is what keeps them from
1548         showing up in the gnome taskbar.  Fixes bug #79790.
1550 2006-10-30  Chris Toshok  <toshok@ximian.com>
1552         * ApplicationContext.cs: guard against a NRE.
1554         * Application.cs: null out the old MainForm for the context, so we
1555         don't try to use it again once it's disposed.  Fixes bug #79783.
1557 2006-10-30  Chris Toshok  <toshok@ximian.com>
1559         * DataGrid.cs (set_DataSource, set_DataMember): if we have a
1560         BindingContext, set the data source directly, otherwise do the
1561         lazy approach - the actual ListManager will be created when we get
1562         a BindingContext. Fixes bug #79700.
1564 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
1566         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
1567           XplatUIX11.cs: Remove old 2 parameter SetVisible.
1569         * Control.cs: Use the new 3 parameter SetVisible with activate = true.
1571 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
1573         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
1574         of SetVisible that allows a window to be shown, but not activated.
1575         This is needed on Windows for MenuStrip, and can probably be used
1576         with MainMenu and ComboBox to fix the focus stealing issues on
1577         Windows.
1579         * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
1581 2006-10-30  Alexander Olk  <alex.olk@googlemail.com>
1583         * PictureBox.cs: Fix the output of the ToString method.
1585 2006-10-29  Chris Toshok  <toshok@ximian.com>
1587         * Control.cs (get_TopLevelControl): fix bug #79781.
1589 2006-10-29  Chris Toshok  <toshok@ximian.com>
1591         * ListControl.cs (set_DataSource): throw Exception here, not
1592         ArgumentException, to match MS behavior.
1594 2006-10-29  Chris Toshok  <toshok@ximian.com>
1596         * Form.cs: remove the try-catch's around calls to GetWindowState.
1597         We can just check the return value.
1599         * XplatUIX11.cs: don't throw exceptions from GetWindowState.
1600         Instead return -1.
1602         * XplatUI.cs: Add note about additional return value for
1603         GetWindowState.
1605 2006-10-29  Chris Toshok  <toshok@ximian.com>
1607         * Control.cs (CreateHandle): when we create our handle, we also
1608         create the handles of our child controls.  Fixes one of the
1609         Control unit tests (CH11).
1611 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
1613         * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
1615 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
1617         * ThemeClearlooks.cs: A little speedup.
1619 2006-10-27  Chris Toshok  <toshok@ximian.com>
1621         * Control.cs: implement Control.FromChildHandle in a way that
1622         matches the docs (and fixes the failed test.)
1624 2006-10-27  Chris Toshok  <toshok@ximian.com>
1626         * DataGridTableStyle.cs: reproduce buggy MS behavior (with
1627         comments).
1629         * DataGrid.cs: implement ResetForeColor such that the tests
1630         succeed.
1631         
1632 2006-10-27  Chris Toshok  <toshok@ximian.com>
1634         * ToolBarButton.cs: setting text/tooltiptext to null results in it
1635         being set to "".  Fixes bug #79759.
1637 2006-10-27  Jackson Harper  <jackson@ximian.com>
1639         * TextControl.cs: We need to clear the entire selection area when
1640         setting the start, otherwise multiline selections are still
1641         visible.
1643 2006-10-26  Chris Toshok  <toshok@ximian.com>
1645         * PropertyGridView.cs: 
1647         - ifdef all the code specific to the double
1648         buffer case, and provide some alternatives in the non-doublebuffer
1649         code, which makes heavy use of XplatUI.ScrollWindow to move things
1650         around without having to invalidate (and cause flicker).  There
1651         are still some drawing problems in the non-doublebuffered case, so
1652         DOUBLEBUFFER is defined by default.
1654         - Fix the way dropdowns are handled.  now we explicitly watch for
1655         the events which might cause the dropdown to close, and break out
1656         of the nested event loop there.  This gets rid of all Capture
1657         code, at the expense of the Msg special casing.  Seems to work,
1658         though, and fixes bug #79743.
1660 2006-10-27  Rolf Bjarne Kvinge <RKvinge@novell.com>
1661         * Control.cs: SetIsRecreating now recreates implicitly added
1662         child controls as well. Finally fixes #79629. The flag passed to 
1663         SetIsRecreating has also been removed since it wasn't used.
1664         
1665 2006-10-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1667         * PageSetupDialog.cs: Clean some code, fix some bits, 
1668         add some checks, and add a printer sub-dialog.
1670 2006-10-26  Chris Toshok  <toshok@ximian.com>
1672         * PropertyGrid.cs: make set_SelectedObject call
1673         set_SelectedObjects, and move the duplicate logic to the
1674         SelectedObjects setter.  Also, raise SelectedObjectsChanged.
1676         * PropertyGridView.cs: hide the textbox when we get a
1677         SelectedObjectsChanged event.
1679         Fixes bug #79748.
1681 2006-10-26  Chris Toshok  <toshok@ximian.com>
1683         * PropertyGridView.cs: deal with the type converter not supporting
1684         GetStandardValues() or GetStandardValues() returning null, which
1685         is does in the default case.  Fixes #79742.
1687 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
1689         * CheckedListBox.cs: nunit no longer crashes when selecting 
1690         Project/Edit menu option
1691         
1692 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
1694         * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
1695         is no menu selected. fixes #79739
1697 2006-10-25  Chris Toshok  <toshok@ximian.com>
1699         * PropertyGridView.cs: factor out the splitter invalidation code
1700         into the SplitterPercent setter, and for kicks implement the
1701         Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
1702         amount in either direction.
1704 2006-10-25  Chris Toshok  <toshok@ximian.com>
1706         * PropertyGridView.cs: do some cleanup of the brush used to draw
1707         text - read only fields should be grayed out.  not sure how to do
1708         this with the textbox, though.  but the textbox's should also be
1709         readonly now at least.  Also, hide/show the textbox when resizing
1710         the control.
1711         
1712         * CursorConverter.cs: use System.Reflection when getting the
1713         properties of Cursors, as TypeDescriptor.GetProperties isn't
1714         returning static properties.
1716 2006-10-25  Chris Toshok  <toshok@ximian.com>
1718         * PropertyGridView.cs: factor out the up/down handling, and reuse
1719         it for page up/down.  also add End/Home support.
1721 2006-10-25  Chris Toshok  <toshok@ximian.com>
1723         * PropertyGridView.cs:
1725         - ensure the selected grid item is visible in the scrolled area,
1726         fixes bug #79572.
1728         - fix Keys.Down handling when you're on the last item in the
1729         propertygrid.
1731 2006-10-25  Mike Kestner  <mkestner@novell.com>
1733         * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup 
1734         clicks too.  Fixes #79725.
1736 2006-10-24  Chris Toshok  <toshok@ximian.com>
1738         * PropertyGrid.cs: use property.Converter instead of
1739         TypeDescriptor.GetConverter(property.PropertyType), so we catch
1740         TypeConverters declared on the property as well as on the
1741         PropertyType.  Fixes bug #79678.
1743 2006-10-24  Alexander Olk  <alex.olk@googlemail.com>
1745         * MimeIcon.cs, Mime.cs:
1746           Fallback to the default platform handler if no shared mime info
1747           stuff exists (fixes #79693).
1749 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
1750         * ContainerControl.cs: Incorrect contains check in ActiveControl 
1751         from previous fix (duh).
1753 2006-10-20  Chris Toshok  <toshok@ximian.com>
1755         * PropertyGridView.cs: the dropdown should be MIN(number of items
1756         in list, 15).  Fixes #79551.
1758 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
1759         Fixes #79384, #79394, #79652, #79667
1760         * Application.cs: 
1761         
1762         - Modal windows are now destroyed in the proper order for windows
1763         
1764         * ContainerControl.cs:
1765         
1766         - ActiveControl setter has more conditions on when to return:
1767                 - if we're reselecting the active control, but it actually
1768                 didn't have focus (window hidden or some such), it runs
1769                 - if the active control being selected doesn't actually 
1770                 exist in the container, it returns
1771         
1772         * Form.cs
1773         
1774         - The ShowDialog now gets the current form as the owner when
1775         invoking without parameters, and correctly activates the owner 
1776         when returning
1777         
1778         * MessageBox.cs
1779         
1780         - MessageBox now catches the Escape key to exit
1782 2006-10-20  Chris Toshok  <toshok@ximian.com>
1784         * PropertyGridView.cs: fix a number of issues (bug #78565, and
1785         most of bug #79676):
1787         - you can navigate around the property grid with the arrow keys.
1789         - the dropdown is sized properly when the pg has a vertical
1790         scrollbar.
1792         - fix the indentation for subentries, and properly select the
1793         entire label rect.
1795         - fix the gray bar's drawing (only draw it to the last element,
1796         not for the height of the control.  Also make sure we draw that
1797         last horizontal grid line.
1799         - use the same mechanism the datagrid uses wrt the editing textbox
1800         when scrolling/resizing/etc.  Namely, we hide it first, do the
1801         operation, then show it again (if it's still visible).
1802         
1803         - aggressively remove a lot of unnecessary refreshes (and also
1804         calls to Invalidate(). call more limited variants, and only redraw
1805         what we need.)
1806         
1807         * PropertyGrid.cs:
1809         - when we're populating the merged collection, fill in the UI
1810         parent with either the passed in item, or the category item we
1811         create.
1813         - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
1815         * GridItem.cs: drop some fully qualified names.
1816         
1817         * GridEntry.cs: add a "UIParent", which is basically the parent
1818         treenode.
1820         * GridItemCollection.cs: add an IndexOf method.
1822 2006-10-20  Mike Kestner  <mkestner@novell.com>
1824         * MainMenu.cs : go back to Draw in OnMenuChanged.  Until we get
1825         a working win32 NC invalidation mechanism, we can't invalidate
1826         menus.  [Fixes #79705]
1828 2006-10-20  Mike Kestner  <mkestner@novell.com>
1830         * ListBox.cs : don't update the VScrollbar if the list is empty,
1831         just hide it.  [Fixes #79692]
1833 2006-10-20  Jackson Harper  <jackson@ximian.com>
1835         * RichTextBox.cs: Handle some special chars better, and don't skip
1836         the entire group when we encounter a special char that we don't
1837         handle correctly.
1839 2006-10-18  Chris Toshok  <toshok@ximian.com>
1841         * PropertyGridView.cs: address a number of issues from bug #79676,
1842         mostly of the cosmetic variety.
1844         - The highlight rectangle for indented items not extends all the
1845         way to the left.
1847         - Indented items aren't indented so much.
1849         - the dropdown is properly sized width-wise if the pg has a
1850         vertical scrollbar.
1852 2006-10-18  Chris Toshok  <toshok@ximian.com>
1854         * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
1855         systray stuff is rather convoluted to begin with.
1857         systray icons are a single window for some reason (that I haven't
1858         figured out yet), and for them, client_window == whole_window.
1859         Given the way the tests are structured elsewhere to determine
1860         which paints are pending (client vs. nc), that situation will
1861         always yield PAINT, not NCPAINT.  So, if we have a pending
1862         nc_expose and no pending expose, remove the hwnd from the paint
1863         queue, and also set nc_expose_pending to false, to keep us from
1864         blocking further expose's adding the hwnd to the paint queue.
1866         phew.  like i said, a rather convoluted change.  Fixes the
1867         notifyicon repaint issues in bug #79645.
1869 2006-10-18  Chris Toshok  <toshok@ximian.com>
1871         * Form.cs: when getting the backcolor of the form, don't get
1872         base.BackColor, as this allows parents to influence the background
1873         color.  This breaks mdi forms.  Instead, if the background_color
1874         is empty, return the default.
1876 2006-10-18  Chris Toshok  <toshok@ximian.com>
1878         * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
1879         to being private instead of internal static.
1881         * Control.cs: remove all the stupid ParentWaitingOnRecreation
1882         crap, it wasn't working for more deeply nested controls anyway,
1883         and we already have the is_recreating flag - use that instead.
1884         Before calling DestroyHandle in RecreateHandle, recurse through
1885         the control tree setting it to true.  this returns the recreate
1886         code to much of its original simplicity, while now guaranteeing we
1887         actually recreate everything we're supposed to.  This change gets
1888         fyireporting actually showing mdi children.
1890 2006-10-17  Chris Toshok  <toshok@ximian.com>
1892         * Form.cs: remove some debug spew, and collapse some duplicate
1893         code at the end of SetClientSizeCore.
1895         * XplatUIX11.cs: 
1896         - add some more debug spew here too wrt Destroy handling.
1897         - don't call hwnd.Dispose in DestroyWindow, it's effectively done
1898         in Control's handling of WM_DESTROY.
1899         - Remove the handling of zombie window DestroyNotifies from the
1900         event loop - we don't need it.  Now the only DestroyNotifies we
1901         actually handle are ones generated by X.
1902         - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
1903         match gtk's (functioning) handling of this. This keep metacity
1904         from leaving droppings in the form of wm borders with no window
1905         contents all over the place.
1907         * Control.cs:
1908         - add a bunch of debug spew wrt control recreation.
1909         - fix a bug where we weren't tracking Visible properly on
1910         recreated hwnds.
1911         - fixed the WM_PAINT double buffer handling to support re-entrant
1912         calls (yes, i know it's gross, but it's happening to us).
1914 2006-10-17  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
1915         * ThemeWin32Classic.cs: changed drawing of selected days
1916         to make them look better.
1918 2006-10-16  Chris Toshok  <toshok@ximian.com>
1920         * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
1921         drawing_stack.  Nuke the ClientDC/NonClientDC properties.
1923         * XplatUIX11.cs: move away from using hwnd.client_dc and
1924         hwnd.non_client_dc and on to a stack of dc's (and in window's
1925         case, PAINTSTRUCT's), so we can deal with nested Paint calls
1926         without puking or not disposing of Graphics objects.
1928         * XplatUIOSX.cs: same.
1930         * XplatUIWin32.cs: same.
1932 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
1934         * FileDialog.cs: Don't call on_directory_changed inside
1935           OnSelectedIndexChanged (it changes the SelectedIndex too).
1936           Instead move it to OnSelectionChangeCommitted.
1938 2006-10-13  Chris Toshok  <toshok@ximian.com>
1940         * XplatUIX11.cs: more Destroy work.  the current code does the
1941         following things, in order:
1943         1. Enumerates all handles of all controls at or below the one
1944         being destroyed, in pre-order.  As it is doing this, it marks the
1945         handles as zombie and clears all references to them.
1946         
1947         2. calls XDestroyWindow on the window passed in.
1949         3. SendMessage's WM_DESTROY to all he handles in the accumulated
1950         list.
1952 2006-10-13  Chris Toshok  <toshok@ximian.com>
1954         * XplatUIX11.cs: set hwnd.zombie to true before calling
1955         SendMessage (WM_DESTROY).  this keeps us from marking the new
1956         window a zombie, and also keeps us from calling sendmessage at
1957         all.
1959 2006-10-13  Jackson Harper  <jackson@ximian.com>
1961         * TextControl.cs: Do not show the caret and selection at the same
1962         time.  Reduces ugliness by 35%.
1964 2006-10-13  Chris Toshok  <toshok@ximian.com>
1966         * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
1967         zombie after we do the recursive call, so we actually do call
1968         SendMessage on the children controls.
1969         (GetMessage): if we find a pending paint event for a zombie hwnd,
1970         remove the hwnd from the paint queue, or else it will always be
1971         there (and we'll effectively loop infinitely)
1973 2006-10-13  Mike Kestner  <mkestner@novell.com>
1975         * MenuItem.cs : add Selected format under keynav too.
1976         Fixes #79528.
1978 2006-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
1980         * PropertyGrid.cs: Fixed some NRE's and small difference between our
1981         implementation and that of MS.
1983 2006-10-13  Chris Toshok  <toshok@ximian.com>
1985         * Control.cs (OnInvalidated) only futz with the invalid_region if
1986         the control is double buffered.  this fixes the apparent hang in
1987         the ListView unit tests.  Someone needs to make the
1988         BeginEndUpdateTest not call OnInvalidated 15004 times, though..
1990 2006-10-13  Chris Toshok  <toshok@ximian.com>
1992         * PropertyGridView.cs:
1994         - do a little refactoring so that only one place calls
1995         dropdown_form.Hide, and that is CloseDropDown.  make everywhere
1996         else call that.  Also make it Refresh, since there are redraw bugs
1997         otherwise (we should take a look at that...)
1999         - do a little more refactoring work to share the body of code
2000         involved with the drop down.  it was duplicated in the code
2001         dealing with the listbox handling and in the code dealing with the
2002         UITypeEditors.
2004         - add a Capture to the dropdown form's control once it's
2005         displayed, and add a MouseDown handler that checks to make sure
2006         the position is inside the control.  If it's not, close the
2007         dropdown.  This fixes #78190.
2009         - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
2010         if the value is different than the initial value.
2011         
2012 2006-10-13  Andreia Gaita  <shana.ufie@gmail.com>
2014         * Control.cs: see #78650
2015         - Fixed GetNextControl for several cases:
2016                 - Changed FindFlatForward to return 
2017                 correct sibling control when more than one
2018                 control has same TabIndex as the currently 
2019                 focused one.
2020                 - Changed FindFlatBackward to loop children
2021                 from last to first and apply same logic as in
2022                 FindFlatForward
2023                 - Changed FindControlForward to search for
2024                 children when control is not a container
2025                 but has children, or search for siblings if
2026                 control is a container...
2027                 - Changed FindControlBackward   to continue
2028                 searching for child controls when hitting 
2029                 Panel-like parents
2030                 
2031         - Fixed Focus method to update ActiveControl
2032         (FocusTest.FocusSetsActive failure)
2033         
2034         * TabControl.cs:
2035         - Focus rectangle now refreshes when gaining
2036         or losing focus
2037         - Removed grab for Tab key on IsInputKey that 
2038         was keeping tab navigation from working (#78650)
2040 2006-10-13  Chris Toshok  <toshok@ximian.com>
2042         * PropertyGridView.cs:
2043         - Rewrite SetPropertyValue to loop over SelectedGridItem's
2044         SelectedObjects.
2046         - Deal with GridItem.Value == null a few places.
2048         * PropertyGrid.cs: 
2049         - replace the PopulateGridItemCollection with a pair of methods
2050         which compute the intersection of all the properties in the
2051         SelectedObjects array.  Fixes #79615.
2053         - Throw ArgumentException from set_SelectedObjects if there's a
2054         null in the array.
2056         - Add GetTarget method which can be used to traverse up the
2057         GridItem.Parent chain.  It depends on the assumption that
2058         selected_objects for different GridEntries are always in the same
2059         order (a safe assumption).  Use this method and loop over all the
2060         selected objects in the entry when calling RemoveValueChanged and
2061         AddValueChanged.
2062         
2063         * GridEntry.cs: Make this handle multiple selected objects.
2064         .Value returns null if not all the selected objects share the same
2065         value.
2067 2006-10-12  Jonathan Pobst  <monkey@jpobst.com>
2068         * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
2069           ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
2070           ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
2071           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
2072           ToolStripTextBox.cs: Add accessibility, fix attributes/API and
2073         add additional functionality.
2075 2006-10-12  Mike Kestner  <mkestner@novell.com>
2077         * ErrorProvider.cs : new ToolTipWindow ctor sig.
2078         * HelpProvider.cs : new ToolTipWindow ctor sig.
2079         * ToolTip.cs : remove ToolTip param from Window sig since it is
2080         not used.
2081         * ToolBar.cs : add tooltip support.  Fixes #79565.
2083 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
2085         * ComboBox.cs: move the events in set_SelectedIndex to 
2086         after the call to HighlightIndex in order to avoid 
2087         possible recursion and subsequent problems with the call
2088         to HighlightIndex and include a range check in 
2089         set_HighlightIndex. Fixes #79588
2090         
2091 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
2093         * MonthCalendar.cs: When FirstDayOfWeek is default set firstday 
2094         to ui thread's settings instead of sunday. 
2095         * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
2097 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
2099         * DateTimePicker.cs
2100         * MonthCalendar.cs
2101         * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
2102         and implement missing functionality (selecting different parts 
2103         of the date and edit them individually with the keyboard).
2104         
2105 2006-10-11  Chris Toshok  <toshok@ximian.com>
2107         * Control.cs (OnInvalidated): fix NRE relating to last change.
2109 2006-10-11  Chris Toshok  <toshok@ximian.com>
2111         * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
2112         atoms in _NET_WM_STATE here if the window is maximized.  We need
2113         to do this because we're *replacing* the existing _NET_WM_STATE
2114         property, so those atoms will be lost otherwise, and any further
2115         call to GetWindowState will return Normal for a window which is
2116         actually maximized.  Fixes #79338.
2118 2006-10-11  Jackson Harper  <jackson@ximian.com>
2120         * TextControl.cs: Special case for setting selection end to
2121         selection start, we basically kill the anchor.
2122         - some todo comments.
2124 2006-10-11  Chris Toshok  <toshok@ximian.com>
2126         * Control.cs: switch to using an "invalid_region" to track which
2127         parts of the image buffer need updating.  This is more code than
2128         the simple fix from r66532.  That version just attempted to always
2129         fill the entire buffer on redraw, which turns out to be
2130         inefficient when invalidating small rectangles.  This version
2131         simply adds the invalid rectangle to the invalid region.  When we
2132         get any WM_PAINT message we see if it can be filled using the
2133         image buffer, and if it can't (if the paint event's clip rectangle
2134         is visible in the invalid region) we first fill the image buffer.
2135         So, the image buffer is still a cache, we just fill it lazily.
2137         * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
2138         need it any longer.
2140 2006-10-11  Chris Toshok  <toshok@ximian.com>
2142         * XplatUIX11.cs (SetWindowPos): we need to update both position as
2143         well as size after calling XMoveResizeWindow.  This keeps us from
2144         ignoring future SetWindowPos calls.  Fixes the disappearing
2145         DateTimePicker in the ToolBarDockExample from bug #72499.
2147 2006-10-11  Chris Toshok  <toshok@ximian.com>
2149         * TextBoxBase.cs: reorder things a bit when it comes to
2150         resizing-causing-recalculation.  we were recalculating the
2151         document when our position was changed, which shouldn't happen.
2152         We only care about size changes.  Clear up some more redundant
2153         recalculation calls while I'm at it.  This makes the toolbar dock
2154         example snappy when you're just dragging toolbars around (since it
2155         causes a relayout whenever you move one.)
2157 2006-10-11  Chris Toshok  <toshok@ximian.com>
2159         * ToolBarButton.cs (get_Rectangle): this only returns
2160         Rectangle.Empty if Visible == false, or Parent == null.
2161         Parent.Visible doesn't matter.
2163 2006-10-10  Chris Toshok  <toshok@ximian.com>
2165         * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
2166         by .net 1.1, so switch to an internal method instead.
2168 2006-10-10  Chris Toshok  <toshok@ximian.com>
2170         * Control.cs (WM_PAINT): when a control is double buffered we draw
2171         initially to the ImageBuffer and then copy from there.  But when a
2172         parent control which has child controls is double buffered, the
2173         initial drawing doesn't encompass the entire ClientRectangle of
2174         the parent control, so we end up with uninitialized bits (this is
2175         easily seen by dragging the top toolbar in
2176         wf-apps/ToolBarDockExample to the right, quickly).  The fix is to
2177         manually set the ClipRectangle of the paint_event (only the one we
2178         use to populate the ImageBuffer) to ClientRectangle.  Fixes more
2179         of the nastiness in bug #72499.
2181         * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
2182         which we use in Control.cs's WM_PAINT handling.
2184 2006-10-10  Jackson Harper  <jackson@ximian.com>
2186         * TextBoxBase.cs: Finish off the autoscrolling stuff.
2188 2006-10-10  Chris Toshok  <toshok@ximian.com>
2190         * Cursor.cs: Apply a slightly different patch to the one suggested
2191         in #79609.
2193 2006-10-10  Jackson Harper  <jackson@ximian.com>
2195         * MenuItem.cs: Make sure to put the mdi child in the hashtable,
2196         not the parent form.
2197         * TextControl.cs: use difference in old line count vs new count to
2198         calculate how many lines were added, this takes into account soft
2199         line breaks properly.
2201 2006-10-10  Chris Toshok  <toshok@ximian.com>
2203         * LinkLabel.cs: don't call MeasureCharacterRanges against a
2204         rectangle located at 0,0 and the size of the text.  Use
2205         ClientRectangle instead.  This fixes rendering of non-left aligned
2206         link labels.
2208 2006-10-10  Jackson Harper  <jackson@ximian.com>
2210         * TextBoxBase.cs: When we set the selection start position the
2211         caret.
2212         * TextControl.cs: Need to update the caret when we decrement it to
2213         zero.
2214         - Make sure that the selection_visible flag gets reset to false if
2215         the selection isn't visible.  Before this you could get it set to
2216         visible by changing the selection start, then changing the end to
2217         equal the start.
2219 2006-10-09  Jackson Harper  <jackson@ximian.com>
2221         * TreeView.cs: Don't update scrollbars when we aren't visible.
2222         * TreeNodeCollection.cs: Only need to update scrollbars if being
2223         added to an expanded visible node or the root node.
2225 2006-10-09  Chris Toshok  <toshok@ximian.com>
2227         * XplatUIX11.cs (SendMessage): fix NRE.
2229 2006-10-09  Jackson Harper  <jackson@ximian.com>
2231         * TextBoxBase.cs: Implement horizontal autoscrolling.
2232         * TextControl.cs: Add a movement types that allows moving forward
2233         and backwards without wrapping.
2235 2006-10-09  Mike Kestner  <mkestner@novell.com>
2237         * ListViewItem.cs : layout changes for wrapped LargeIcon labels
2238         with focus "expansion" of labels.  Fixes #79532 and then some.
2239         * ThemeWin32Classic.cs : add LineLimit to ListView label format
2240         when wrapping.
2242 2006-10-09  Jackson Harper  <jackson@ximian.com>
2244         * TextBoxBase.cs: Set the default max values to MaxValue since
2245         we use the scrollbar for autoscrolling and the default value is
2246         100.  If we don't do this the caret won't keep up with typing
2247         after about 18 characters.
2248         * TextControl.cs: Make sure the selection is offset by the
2249         viewport x.  This fixes selection when using auto scrolling.
2251 2006-10-07  Andreia Gaita <shana.ufie@gmail.com>
2252         
2253         * Form.cs: The active control should be selected after the 
2254         OnLoad so that any child control initialization that affects
2255         the selection is done. Fixes #79406
2257 2006-10-06  Chris Toshok  <toshok@ximian.com>
2259         * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
2260         to have no evil effects.
2262         - Stop selecting StructureNotifyMask on non-toplevel windows.
2264           The only way children should be resized is by using the SWF api,
2265           and we already send WM_WINDOWPOSCHANGED messages in those cases.
2266           Toplevel windows can be interacted with via the window manager,
2267           and so we keep the input mask there.
2269           The other event StructureNotifyMask gives us (that we care
2270           about) is DestroyNotify.  The code is already structured such
2271           that it assumes we won't be getting a DestroyNotify event for
2272           the window we pass to XDestroyWindow (which is what
2273           StructureNotifyMask is supposed to guarantee.)  So, that code
2274           shouldn't be affected by this either.
2276         - Stop selecting VisibilityChangeMask altogether.
2278           We weren't doing anything with the resulting events anyway.
2279         
2280         This vastly reduces the number of X requests and events we see
2281         when resizing/laying out a large ui.
2283 2006-10-06  Chris Toshok  <toshok@ximian.com>
2285         * ScrollableControl.cs (DisplayRectangle): we need to take into
2286         account the DockPadding regardless of whether or not auto_scroll
2287         == true.  rework this slightly to this effect, and fix bug #79606,
2288         and part of #72499 (you can now see the drag handles and drag
2289         toolbars around).
2291 2006-10-06  Gert Driesen  <drieseng@users.souceforge.net>
2293         * ListViewItem.cs: Collections of selected and checked items are now
2294         dynamically rebuilt. Whenever an item is (un)checked or (de)selected
2295         we mark the collection "dirty".
2296         * ListView.cs: Marked collections readonly. Modified UpdateSelection
2297         to only clear SelectedItems when a new item is selected and MultiSelect
2298         is enabled. CheckedItems and SelectedItems now subscribe to Changed
2299         event of ListViewItemCollection, and mark its list dirty whenever
2300         that event is fire. This allows us to return selected/checked items 
2301         in the same order as they are in the Items collection. This matches
2302         the MS behavior.
2304 2006-10-06  Chris Toshok  <toshok@ximian.com>
2306         * NotifyIcon.cs (HandleMouseUp): only show the context menu on
2307         right mouse clicks.  Fixes bug #79593.
2309 2006-10-06  Chris Toshok  <toshok@ximian.com>
2311         * Splitter.cs: doh, fix splitters that don't want to cancel the
2312         movement when you drag them.  Also, impose the limits on the
2313         values we send to the SplitterMovingEvent.  Fixes #79598.
2315 2006-10-06  Jackson Harper  <jackson@ximian.com>
2317         * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
2318         since we use this for auto scrolling also.
2320 2006-10-05  Chris Toshok  <toshok@ximian.com>
2322         * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus.  I'm
2323         beginning to think that most datagrid column types don't need this
2324         method.  Fixes bug #79392.
2326 2006-10-05  Chris Toshok  <toshok@ximian.com>
2328         * DataGrid.cs: move back to a more lazy scheme for creating the
2329         CurrencyManager, so we aren't updating it every time you set
2330         either DataSource or DataMember.  Also, don't call
2331         RecreateDataGridRows if the currency manager hasn't changed.
2333 2006-10-05  Chris Toshok  <toshok@ximian.com>
2335         * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
2336         emitted, SelectedIndex should already be updated.  Fixes bug
2337         #78929.
2339 2006-10-05  Jonathan Pobst  <monkey@jpobst.com>
2341         * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
2342           ToolStripTextBox.cs: Initial commit.
2343         * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
2345 2006-10-05  Jackson Harper  <jackson@ximian.com>
2347         * TabControl.cs: We need to invalidate the tab control area when
2348         new ones are added (duh).
2350 2006-10-03  Chris Toshok  <toshok@ximian.com>
2352         * Form.cs (ProcessDialogKey): if the focused control is in this
2353         form and is a button, call its PerformClick method here.  Fixes
2354         #79534.
2356 2006-10-04  Jackson Harper  <jackson@ximian.com>
2358         * TabPage.cs: Ignore setting of Visible, and add an internal
2359         method for setting the controls visibility.  TabPage's Visible
2360         property is a little strange on MS, this seems to make us
2361         compatible, and fixes cases where people set all the tab pages to
2362         visible.
2363         * TabControl.cs: Use the new internal setting on tab pages
2364         visibility.
2366 2006-10-03  Mike Kestner  <mkestner@novell.com>
2368         * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
2370 2006-10-03  Mike Kestner  <mkestner@novell.com>
2372         * ListView.cs : use is_visible instead of Visible to check if 
2373         scrollbars should be placed/sized.  Also some max_wrap_width
2374         love for LargeIcon view.  [Fixes #79533]
2376 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
2378         * TextControl.cs :
2379           Make set_TextAlign() do actually update the align. Fixed #78403.
2381 2006-10-03  Chris Toshok  <toshok@ximian.com>
2383         * DataGrid.cs: fix a crash when switching datasources if the
2384         vertical scrollbar is at someplace other than Value = 0.  Also,
2385         reduce the number of recalculation passes we do in SetDataSource
2386         from 2 to 1.
2388 2006-10-03  Jackson Harper  <jackson@ximian.com>
2390         * TextBoxBase.cs: Move the if value the same bail check up, we
2391         don't want to empty the document if it is already empty, this
2392         seems to severly mess up the caret.  TODO: I should probably fix
2393         the empty statement to update teh caret somehow.
2395 2006-10-03  Chris Toshok  <toshok@ximian.com>
2397         * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
2398         incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
2399         reflection, an internal row type, properties on said type, etc.)
2400         will work with our datagrid.  Fixes #79531.
2402 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
2404         * FileDialog.cs: Don't crash if a path is not accessible
2405           (System.UnauthorizedAccessException). Fixes #79569.
2406         * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
2407           a ':' too. Return unknown icon for those paths/files.
2409 2006-10-03  Sebastien Pouliot  <sebastien@ximian.com>
2411         * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when 
2412         GetContainerControl returns null.
2414 2006-10-02  Chris Toshok  <toshok@ximian.com>
2416         * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
2417         call to XGetWindowAttributes instead of "handle".  fixes an X
2418         error using notifyicon after the NotifyIconWindow to Form base
2419         class switch.
2421 2006-10-02  Chris Toshok  <toshok@ximian.com>
2423         * XplatUIX11.cs (QueryPointer): new function, encapsulating the
2424         server grab and looping we need to do to get down to the most
2425         deeply nested child window.
2426         (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
2427         QueryPointer again after the WarpPointer so we can generate a
2428         proper (fake) MotionNotify event to be enqueued in the destination
2429         window's queue.
2430         (GetCursorPos): call QueryPointer.
2432         Fixes #79556.
2434 2006-10-02  Jackson Harper  <jackson@ximian.com>
2436         * NotifyIcon.cs: Derive the notify icon from a form, so things
2437         like FindForm work on it.
2438         - Swallow the WM_CONTEXTMENU message, since that is generated on
2439         mouse down, and context menu is a mouse up kinda guy.  I believe
2440         the correct fix here is probably to make the notify icon entirely
2441         NC area, but this seems to work fine for anyone not manipulating
2442         WndProc.
2444 2006-10-02  Jonathan Pobst  <monkey@jpobst.com>
2446         * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
2447           ToolStripItemCollection.cs, ToolStripLabel.cs,
2448           ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
2449           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
2450           Initial implementation.
2451         * TextRenderer.cs: Provide padding to MeasureText.
2453 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
2455         * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
2456         of ButtonBaseAccessibleObject. Fix bug #79552.
2458 2006-10-02  Jackson Harper  <jackson@ximian.com>
2460         * MdiWindowManager.cs: When maximizing use the containers client
2461         rect, not it's bounds, so nc area is accounted correctly.
2462         - Use the parent form's size for the menu position, since the
2463         client isn't always the full form size.
2465 2006-10-01  Chris Toshok  <toshok@ximian.com>
2467         * ScrollableControl.cs: make sure neither right_edge or
2468         bottom_edge are < 0, since they're used as LargeChange for the
2469         horiz/vert scrollbars respectively.  Fixes #79539.
2471 2006-10-01  Chris Toshok  <toshok@ximian.com>
2473         * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
2474         the xplatuix11 code can cause us to destroy/recreate our handle.
2476         * XplatUIX11.cs
2477         (SystrayAdd):
2478         - this code can be invoked many times for the same Hwnd.  Make
2479           sure we only destroy the client window once (the first time this
2480           method is called).  This fixes bug #79544.
2481         - Remove the call to the improperly bound XSync.  why we had two
2482           bindings to this, I will never know, but this call resulted in
2483           events being discarded from the queue(!).
2484         - correct a misunderstanding of _XEMBED_INFO - the second atom is
2485           not our current state but the state we wish to be in.  So, 0 if
2486           we don't want to be mapped.  Change it to 1.
2487         (SystrayRemove): The XEMBED spec makes mention of the fact that
2488         gtk doesn't support the reparent of client windows away from the
2489         embedder.  Looking at gtksocket-x11.c seems to agree with this.
2490         The only avenue we have for removing systray icons is to destroy
2491         them.  We don't want the handle to go away for good, though, so
2492         call InternalRecreateHandle on the NotifyIconWindow.  Fixes
2493         #79545.
2494         
2495 2006-10-01  Chris Toshok  <toshok@ximian.com>
2497         * Form.cs (WndProc): inline the native_enabled variable usage into
2498         the cases in which it's used.  Fixes #79536.
2500 2006-09-29  Mike Kestner  <mkestner@novell.com>
2502         * ListView.cs : toggle the selection state for ctrl clicks in 
2503         multiselect mode. [Fixes #79417]
2505 2006-09-29  Mike Kestner  <mkestner@novell.com>
2507         * ListView.cs : kill CanMultiSelect and refactor the selection
2508         code to support multiselection in the absence of mod keys. Steal
2509         arrow/home/end keys by overriding InternalPreProcessMessage to
2510         restore regressed keynav behavior.
2511         [Fixes #79416]
2513 2006-09-29  Jackson Harper  <jackson@ximian.com>
2515         * MdiClient.cs: Repaint the titlebars when the active window is
2516         changed.
2518 2006-09-29  Chris Toshok  <toshok@ximian.com>
2520         * Application.cs: when entering a runloop with a modal, make sure
2521         the hwnd is enabled.  Fixes #79480.
2523 2006-09-29  Chris Toshok  <toshok@ximian.com>
2525         * DataGrid.cs (CurrentCell): if we try to navigate to the add row
2526         when ListManager.CanAddRows == false, bump us back one.
2528         * DataGridColumnStyle.cs (ParentReadOnly): remove the
2529         listmanager.CanAddRows check.  This makes ArrayLists uneditable
2530         using a datagrid, which is not right.
2531         (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
2532         is an IEditable, but call property_descriptor.SetValue regardless.
2533         fixes #79435.
2535 2006-09-29  Chris Toshok  <toshok@ximian.com>
2537         * DataGridBoolColumn.cs: we need to test equality in the face of
2538         possible null values (as is the case with the default NullValue).
2539         This patch keeps us from crashing in that case.
2541 2006-09-29  Jackson Harper  <jackson@ximian.com>
2543         * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
2544         here, since it will get called for every node collection in the
2545         tree. This is now done in the treeview once the sorting is
2546         finished.
2547         * TreeView.cs: Recalculate the visible order, and update the
2548         scrollbars after sorting, set the top nope to the root so that the
2549         recalc actually works.
2551 2006-09-29  Chris Toshok  <toshok@ximian.com>
2553         * LinkLabel.cs: more handling of the default link collection in
2554         the face of LinkArea manipulation.  The default link collection
2555         contains 1 element (start=0,length=-1).  If the user sets LinkArea
2556         to anything and the links collection is the default, clear it.
2557         Then only add the link if its nonempty.  Fixes #79518.
2559 2006-09-29  Chris Toshok  <toshok@ximian.com>
2561         * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
2562         piece correctly when we hit a '\n'.  Fixes #79517.
2564 2006-09-29  Chris Toshok  <toshok@ximian.com>
2566         * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
2567         change the binding of gdk_init_check to take two IntPtr's, and
2568         pass IntPtr.Zero for both of them.  Fixes #79520.
2570 2006-09-29  Mike Kestner  <mkestner@novell.com>
2572         * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
2573         [Fixes #78779]
2575 2006-09-28  Jackson Harper  <jackson@ximian.com>
2577         * XplatUIX11.cs: When translating NC messages make sure we go from
2578         whole window to screen, not client window to screen.
2579         * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
2580         method doesn't exist
2581         - Skip over controls that aren't forms when arranging.
2583 2006-09-28  Jackson Harper  <jackson@ximian.com>
2585         * XplatUIWin32.cs: Clip the rect to the parent window.
2586         * XplatUIStructs.cs: Add clipping modes struct.
2587         * InternalWindowManager.cs: New private method that factors title
2588         bar heights in when calculating the pos of an NC mouse message.
2589         - Use SendMessage to force a paint when the form's size is changed
2590         instead of painting the decorations immediately.
2591         - Don't let the NC button click messages get to DefWndProc,
2592         because they will attempt to handle windowing themself, and this
2593         messes up z-order (it will put them in front of the scrollbars).
2594         * XplatUIX11.cs: Make sure that we don't reset window managers if
2595         we already have one (ie the window is an MDI window).
2597 2006-09-28  Chris Toshok  <toshok@ximian.com>
2599         * MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
2600         menu code really needs going over.
2602 2006-09-27  Chris Toshok  <toshok@ximian.com>
2604         * XplatUIX11.cs (SetWMStyles): more metacity wonderment.  turns
2605         out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
2606         window is maximizable.  So, we need to make sure that even if we
2607         clear the border/wm frame of those functions, they're still
2608         available (basically, we remove the decoration without removing
2609         the function).  Half the fix for #79338.
2611 2006-09-27  Chris Toshok  <toshok@ximian.com>
2613         * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
2614         Fixes bug #79515.
2616 2006-09-27  Chris Toshok  <toshok@ximian.com>
2618         * Splitter.cs: reorder things a bit so that we don't actually
2619         draw/move the splitter until after calling OnSplitterMoving.  This
2620         lets users cancel/disallow the movement by explicitly setting
2621         event.SplitX/SplitY.  Fixes #79372.
2623 2006-09-27  Jackson Harper  <jackson@ximian.com>
2625         * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
2626         because it is most likely on a window being destroyed, and that
2627         will give us an X11 error.
2629 2006-09-27  Chris Toshok  <toshok@ximian.com>
2631         * PropertyGridView.cs: half of the fix for #78190.  Clicking on
2632         the dropdown button now toggles between showing and hiding the
2633         dropdown.  Also, get rid of dropdown_form_showing and just use
2634         dropdown_form.Visible.  We still don't do a grab, but I'll leave
2635         that part to someone who has handled Capture-fu before.
2637 2006-09-27  Chris Toshok  <toshok@ximian.com>
2639         * DataGrid.cs: return false if alt isn't pressed when '0' is
2640         pressed.  this keeps the '0' key from being swallowed, and fixes
2641         bug #79350.
2643 2006-09-27  Chris Toshok  <toshok@ximian.com>
2645         * ComboBox.cs: use Invalidate when scrolling the dropdown list.
2646         Calling Refresh (in response to a scrollbar event) screws up the
2647         scrollbar painting.  Fixes bug #78923.
2649 2006-09-27  Chris Toshok  <toshok@ximian.com>
2651         * Theme.cs (SystemResPool): make the "if hashtable[key] == null
2652         then insert into hashtable" blocks threadsafe.
2654 2006-09-27  Chris Toshok  <toshok@ximian.com>
2656         * MessageBox.cs (CreateParams): the styles should be |'ed with our
2657         baseclass's, since otherwise the
2658         ControlBox/MinimizeBox/MaximizeBox assignments above have no
2659         effect.  This gets the close button back in messageboxes.
2661 2006-09-27  Chris Toshok  <toshok@ximian.com>
2663         * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
2664         flag, not just != 0.  this makes flags that are actually multiple
2665         bits (like WS_CAPTION) work.  fixes bug #79508.
2667 2006-09-27  Jordi Mas i Hernandez <jordimash@gmail.com>
2669         * PageSetupDialog.cs: add support for getting and settings the 
2670         paper size, source and orientation.
2672 2006-09-26  Chris Toshok  <toshok@ximian.com>
2674         * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
2675         and caption == "", we need to remove the resize handles as well as
2676         the title bar.
2678         * Control.cs (set_Text): turns out that setting Text on a form
2679         should change the WM styles on the window, since if ControlBox ==
2680         false, the only way to get a window border is to have a non-""
2681         Text property.  check winforms/forms/text.cs for an example.  so,
2682         call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
2683         update both window styles and title.  This fixes a lot of dialogs
2684         (including the preferences dialog in MonoCalendar.)
2686 2006-09-26  Chris Toshok  <toshok@ximian.com>
2688         * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
2689         control isn't a Form), call Win32ShowWindow to hide the window,
2690         but don't update the control Visible property.  When we reparent
2691         back to a parent control, call SetVisible in order for the
2692         window's visibility to be reinstated.
2694         * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
2695         the FosterParent.
2697         * Control.cs (ControlCollection.Remove): remove that value.Hide()
2698         call for good, since it breaks MonoCalendar (and other things I'm
2699         sure.) Also, set all_controls to null *after* the owner calls,
2700         which end up regenerating it.
2701         (ChangeParent): allow new_parent to be == null, passing
2702         IntPtr.Zero down to XplatUI.
2704         this fixes #79294 the right way.
2706 2006-09-26  Mike Kestner  <mkestner@novell.com>
2708         * GridEntry.cs : internal SetParent method.
2709         * PropertyGrid.cs : attach to property changed on the proper
2710         target if we have a hierarchical grid with subobjects. Setup
2711         GridItem.Parent for hierarchical items.
2712         * PropertyGridView.cs : Set value on the correct target for
2713         hierarchical grids. [Fixes #78903]
2715 2006-09-26  Chris Toshok  <toshok@ximian.com>
2717         * Control.cs (ChildNeedsRecreating): this should return true if
2718         either we're being recreated and the child is in our list, or our
2719         parent is waiting for our recreation.
2721 2006-09-26  Chris Toshok  <toshok@ximian.com>
2723         * Control.cs (ControlCollection.Remove): reinstate the
2724         value.Hide() call as suggested in bug #79294.
2726 2006-09-26  Sebastien Pouliot  <sebastien@ximian.com>
2728         * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
2729         coordinates (versus a relative move).
2731 2006-09-26  Chris Toshok  <toshok@ximian.com>
2733         * Control.cs: rework child recreation a little bit.  It turns out
2734         that we race between the DestroyNotify the WM_DESTROY message.  If
2735         the parent gets its DestroyNotify before the child gets the
2736         WM_DESTROY message, the child ends up not recreating (since the
2737         parent finishes its recreation on DestroyNotify, and the child
2738         checks ParentIsRecreating.)
2740         So, instead we store off a list of all the child controls which
2741         need to be recreated when the parent control starts to recreate
2742         itself.  Then, when child controls get their WM_DESTROY message we
2743         check to see if they're in the parent's pending recreation list,
2744         and if so, we recreate.  This removes all dependency on ordering
2745         from the code and fixes the initial MonoCalendar upgrade dialog.
2746         
2747 2006-09-26  Jackson Harper  <jackson@ximian.com>
2749         * TextControl.cs: Use the Line to get the length of the line,
2750         since soft line breaks can change the end line.
2752 2006-09-26  Chris Toshok  <toshok@ximian.com>
2754         * Control.cs (ControlCollection.AddImplicit): don't add the
2755         control again if it's already in one of our lists.  This keeps us
2756         from adding controls over and over again for comboboxes when their
2757         handle gets recreated (as the combobox adds implicit controls in
2758         OnHandleCreated).  Fixes the X11 errors in bug #79480.
2760 2006-09-26  Jackson Harper  <jackson@ximian.com>
2762         * TextControl.cs: When deleting characters make sure that any
2763         orphaned zero lengthed tags get deleted.
2764         - Fix ToString for zero lengthed tags.
2766 2006-09-25  Jackson Harper  <jackson@ximian.com>
2768         * TextControl.cs: When getting a tag at the location there can be
2769         multiple tags at the same spot, these are 0-lengthed tags that
2770         appear when extra formatting has been stuck in a location.  We
2771         need to pull out the last of these 0 lengthed tags.
2773 2006-09-25  Jackson Harper  <jackson@ximian.com>
2775         * TextControl.cs: Fix print out in debug method.
2776         * TextBoxBase.cs: When text is set bail if we are setting to the
2777         previous value.
2778         
2779 2006-09-24  Alexander Olk  <alex.olk@googlemail.com>
2781         * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
2782           It is now possible to change the selected index in a FontXXXListBox
2783           with the up and down arrow keys from the FontXXXTextBoxes.
2784           Also, send the FontXXXTextBox mouse wheel event to the corresponding
2785           FontXXXListBoxes to match ms.
2787 2006-09-22  Sebastien Pouliot  <sebastien@ximian.com>
2789         * SystemInformation.cs: Return a clone of the theme's MenuFont because
2790         anyone can dispose it, anytime. All other properties returns enums, 
2791         structs or basic types so they don't need such tricks.
2793 2006-09-22  Jackson Harper  <jackson@ximian.com>
2795         * XplatUI.cs:
2796         * XplatUIWin32.cs:
2797         * Clipboard.cs:
2798         * DataFormats.cs:
2799         * XplatUIOSX.cs:
2800         * XplatUIDriver.cs: Update interface to add a primary selection
2801         flag, so the driver can use the primary selection buffer if
2802         needed.
2803         * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
2805         * RichTextBox.cs: We need to supply the data object to paste now
2806         (so we can choose to supply CLIPBOARD or PRIMARY).
2807         * TextBoxBase.cs: Supply data object to paste (see above).
2808         - Middle click uses the primary selection data object.
2809         
2810 2006-09-21  Chris Toshok  <toshok@ximian.com>
2812         * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
2813         of SetWMStyles.  It's still a rat's nest and is largely
2814         order-dependent which I dislike immensely.  This also fixes the X
2815         button disappearing from toplevel forms.
2817 2006-09-21  Mike Kestner <mkestner@novell.com>
2819         * ListBox.cs: move Jordi's click/dblclick raising code to the
2820         mouse up handler.
2822 2006-09-21  Jordi Mas i Hernandez <jordimash@gmail.com>
2824         * ListBox.cs: Fixes 79450
2826 2006-09-21  Mike Kestner <mkestner@novell.com>
2828         * TreeView.cs: guard against disposed conditions in UpdateScrollbars
2829         to deal with people updating the TreeNodeCollection after the tree
2830         is disposed.  "Fixes" 79330.
2832 2006-09-20  Jackson Harper <jackson@ximian.com>
2834         * TextControl.cs: Push the cursor record onto the undo stack
2835         before the delete action. This fixes 78651.
2837 2006-09-20  Jonathan Chambers  <joncham@gmail.com>
2839         * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
2840         CreateParams. Fixes 79329.
2842 2006-09-19  Chris Toshok  <toshok@ximian.com>
2844         * XplatUIX11.cs: a couple of blanket code massage passes to clean
2845         things up a bit.  First, get rid of the NetAtoms array (and the NA
2846         enum), and just embed the atoms as static fields.  Also, add a
2847         couple of functions (StyleSet and ExStyleSet) to clean up all the
2848         bitmask testing of styles.
2850         * X11Structs.cs: remove the NA enum, not needed anymore.
2851         
2852 2006-09-19  Chris Toshok  <toshok@ximian.com>
2854         * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
2855         (mapping them to _NET_WM_WINDOW_TYPE_UTILITY).  and add a little
2856         added cleanup to get MessageBox titles appearing again, which were
2857         broken by my earlier fix for caption-less/ControlBox-less windows.
2859 2006-09-18  Jonathan Pobst <monkey@jpobst.com>
2861         * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
2862           ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
2863           ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
2864           ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
2865           ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
2866           ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
2867           ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
2868           ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
2869           ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
2870           ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
2871           ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
2872             Inital import.
2873         * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
2874           ToolStripButton.cs: Stubs needed for above.
2875         * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
2877 2006-09-15  Chris Toshok  <toshok@ximian.com>
2879         * XplatUIX11.cs:
2880         - make the MessageQueues hashtable Synchronized.
2881         
2882         - SendMessage: if the Hwnd is owned by a different thread, use the
2883         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
2884         thread.  Fixes bug #79201.
2886 2006-09-15  Chris Toshok  <toshok@ximian.com>
2888         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
2889         ControlBox == false, we disallow maximize/minimize/close.  If the
2890         form Caption is "" we also disallow move (and get rid of the Title
2891         decoration).  Unfortunately, regardless of how things are set,
2892         we're stuck with the Title and WM menu.
2894 2006-09-15  Chris Toshok  <toshok@ximian.com>
2896         * Application.cs: add locking around the static message_filters
2897         ArrayList, part of #79196.
2899 2006-09-15  Chris Toshok  <toshok@ximian.com>
2901         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
2902         Form.ControlBox == false, the window has no titlebar nor resize
2903         handles.  fixes bug #79368.
2905 2006-09-15  Chris Toshok  <toshok@ximian.com>
2907         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
2908         >= 0.  Fixes bug #79370.
2910 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
2911         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
2912         * Control.cs:
2913             Add properties: LayoutEngine, Margin, DefaultMargin.
2914             Add method: GetPreferredSize.
2915             Move layout logic from PerformLayout to layout engines. 
2917 2006-09-13  Chris Toshok  <toshok@ximian.com>
2919         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
2920         fix for #79326 broke #78718, so this change addresses that.
2922         - in SendWMDestroyMessages remove the call to
2923         CleanupCachedWindows, since we might be recreating the control and
2924         need to maintain the references to right Hwnd handles.  Also, set
2925         the zombie flag to true for each of the children in the hierarchy
2926         instead of calling hwnd.Dispose.  This will cause GetMessage to
2927         ignore all events for the window except for DestroyNotify.
2929         - In GetMessage, ignore messages except for DestroyNotify for
2930         zombie hwnds.
2931         
2932         * Control.cs: revert the is_recreating fix from the last
2933         ChangeLog.  It's definitely "right", but it breaks switching from
2934         an MDI form to a non-MDI form.  Will need to revisit that.
2936         * Hwnd.cs: add a zombie flag, which means "the
2937         client_window/whole_window handles are invalid, but we're waiting
2938         for the DestroyNotify event to come in for them".  Set the flag to
2939         false explicitly if setting WholeWindow/ClientWindow, and also
2940         when Disposing.
2941         
2942 2006-09-13  Chris Toshok  <toshok@ximian.com>
2944         * XplatUIX11.cs: rework window destruction slightly.
2946         - when destroying the windows associated with a control, we don't
2947         need 2 separate XDestroyWindow calls.  Just the one for the
2948         whole_window (or for client_window if whole_window is somehow
2949         IntPtr.Zero -- can this happen?) is enough.
2951         - reworked SendWMDestroyMessages slightly, so we always dispose
2952         the child control hwnd's after sending the messages.
2953         
2954         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
2955         the two places it was used (one was even using hwnd.Handle and the
2956         other hwnd.client_window.  ugh), adding another call in
2957         SendWMDestroyMessages.  We need this new call because now the
2958         DestroyNotify events in the queue will be ignored for the child
2959         controls (as their hwnd's were disposed, and the window id's
2960         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
2962         - this fixes bug #79326.
2964 2006-09-13  Chris Toshok  <toshok@ximian.com>
2966         * Control.cs: don't always set is_recreating to false at the end
2967         of RecreateHandle, since sometimes we're not done (and won't be
2968         until WndProc handles the WM_DESTROY message).  Also, set
2969         is_recreating to false in the WM_DESTROY handling code.  Part of
2970         the fix for bug #79326.
2972 2006-09-13  Miguel de Icaza  <miguel@novell.com>
2974         * X11DesktopColors.cs: Start the droppage of debugging messages.
2976         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
2978 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
2980         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
2982 2006-09-12  Chris Toshok  <toshok@ximian.com>
2984         * DataGrid.cs (get_ListManager): if the list_manager is null, try
2985         to create it using SetDataSource.  Fixes bug #79151.
2987 2006-09-11  Chris Toshok  <toshok@ximian.com>
2989         * XEventQueue.cs: add a DispatchIdle property.
2991         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
2992         either the queue is null, or the queue has DispatchIdle set to
2993         true.
2994         (DoEvents): set queue.DispatchIdle to false around the
2995         peek/translate/dispatch message loop in this method.  This keeps
2996         Application.Doevents from emitting idle events.  Part of the fix
2997         for #78823.
2999 2006-09-11  Chris Toshok  <toshok@ximian.com>
3001         * DataGrid.cs (set_DataSource): make this work for both the
3002         winforms/datagrid test and ReportBuilder.  It seems as though when
3003         we've created a ListManager (or maybe it's if we have a
3004         BindingContext?), when we set the DataSource it clears the
3005         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
3006         #79333.
3008 2006-09-11  Chris Toshok  <toshok@ximian.com>
3010         * XplatUIX11.cs: deal with queue being null, which happens in all
3011         the Clipboard functions.  Fixes one of the two problems mentioned
3012         in #78612.
3014 2006-09-11  Chris Toshok  <toshok@ximian.com>
3016         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
3017         button on various spots (including outside the menu) works closer
3018         to MS, and doesn't crash.  Fixes #79343.
3020 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
3022         * ListView.cs: Do not initialize item_sorter in init. To match MS,
3023         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
3024         and the internal comparer is set. When a new ListViewItemSorter is set,
3025         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
3026         was specified. No further processing is necessary if SortOrder is set
3027         to it's current value. If Sorting is modified to None, and View is
3028         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
3029         (either custom or our internal ItemComparer) to null, on 1.0 profile
3030         only set item_sorter to null if its our internal IComparer. If Sorting
3031         is modified to Ascending or Descending, then use our internal IComparer
3032         if none is set, and if the current IComparer is our internal one then:
3033         on 2.0 profile always replace it with one for new Sorting, and on 1.0
3034         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
3035         Enum.IsDefined to verify whether a valid View value is specified in
3036         its setter. Automatically sort listview items when listview is
3037         created. In Sort, do nothing if ListView is not yet created, or if
3038         no item_sorter is set (no Sorting was set, Sorting was explicitly set
3039         to None or ListViewItemSorter was set to null). Added Sort overload
3040         taking a bool to indicate whether the ListView should be redrawn when
3041         items are sorted (we use this in ListViewItemCollection to avoid double
3042         redraws). Modified our internal IComparer to take the sort order into
3043         account. In Add and AddRange methods of ListViewItemCollection, also
3044         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
3045         view), but use overload with noredraw option to avoid double redraw.
3046         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
3047         true when View is Tile, and do the same when attempting to set View to
3048         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
3049         for selected/checked indices, as it involves overhead when sorting is
3050         done while these collections are not used all that often. Instead
3051         we'll build the indices on demand. Modified IList implementation of
3052         CheckedIndexCollection to use public methods if object is int.
3053         Modified CheckedListViewItemCollection to hide checked items if
3054         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
3055         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
3056         IList implementation in SelectedIndexCollection to use public methods
3057         if object is int. Modified SelectedListViewItemCollection to hide
3058         selected items if listview is not yet created.
3059         * ListViewItem.cs: CheckedIndices list no longer needs to be
3060         maintained separately (see ListView changes). Also clone font, fixes
3061         test failure.
3063 2006-09-11  Mike Kestner  <mkestner@novell.com>
3065         * ComboBox.cs: if we are updating the contents of the currently
3066         selected index, refresh the control or the textbox selection.
3067         [Fixes #79066]
3069 2006-09-11  Mike Kestner  <mkestner@novell.com>
3071         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
3072         the 'specified' logic has been moved there.  This seems like a bug 
3073         in Control.cs, since our current SetBoundsCore completely ignores 
3074         the specified parameter.  Peter's commit seems to indicate that is 
3075         the way the MS control implementation works.  [Fixes #79325]
3077 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
3079         * XplatUI.cs: Set default_class_name to be composed
3080         of current domain id. This allows MWF to be loaded in multiple
3081         domains on Win32.
3083 2006-09-09  Miguel de Icaza  <miguel@novell.com>
3085         * X11Keyboard.cs: If we are unable to obtain the input method, do
3086         not call CreateXic to create the input context.   Should fix
3087         #78944/79276.
3089 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
3091         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
3092           Simplified gnome support by adding more pinvokes to get the
3093           icon for a file or mime type.
3095 2006-09-08  Jackson Harper  <jackson@ximian.com>
3097         * MenuAPI.cs: Deslect popup context menu items before closing the
3098         window, so that you don't see the previously selected item
3099         selected when you reopen the menu.
3100         * TextControl.cs: Update the cursor position even if we don't have
3101         focus.  This fixes typing in things like the ComboBox.  I'm not
3102         totally sure we should always set the visibility if we don't have
3103         focus, but couldn't find any corner cases where the cursor showed
3104         up when it shouldn't.
3106 2006-09-08  Chris Toshok  <toshok@ximian.com>
3108         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
3109         our arrays are length 256.  & 0xff before indexing.  Fixes the
3110         crash in bug #78077.
3111         
3112 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3114         * ThemeWin32Classic.cs: 
3115         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
3116         is true. Handle that check box too.
3118 2006-09-07  Chris Toshok  <toshok@ximian.com>
3120         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
3121         79244.
3123 2006-09-07  Chris Toshok  <toshok@ximian.com>
3125         * Control.cs: in set_BackColor only do the work if
3126         background_color != value.
3128         * XplatUIX11.cs: move the clearing of invalid areas (both client
3129         and nc) to the same block of code where we set (nc_)expose_pending
3130         to false.  That is, move it from PaintEventEnd to PaintEventStart,
3131         so things that cause invalidates from within OnPaint will trigger
3132         another call to OnPaint.  Fixes bug #79262.
3134 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
3136         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
3137         * FileDialog.cs: Fix typo
3139 2006-09-07  Jackson Harper  <jackson@ximian.com>
3141         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
3142         for tab pages if they have any.
3144 2006-09-06  Mike Kestner  <mkestner@novell.com>
3146         * Splitter.cs: use the "current" rect when finishing drag handle
3147         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
3149 2006-09-06  Mike Kestner  <mkestner@novell.com>
3151         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
3152         support offset splitters. [Fixes #79298]
3154 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
3156         * Mime.cs: Fixed a bug that could override the global mime type
3157           result.
3159 2006-09-05  Jackson Harper  <jackson@ximian.com>
3161         * TabControl.cs: Better calculation method for setting the slider
3162         pos. Prevents crashes on really wide tabs.
3163         - Draw Image on tab pages if an image list is used.
3165 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3167         * MonthCalendar.cs: When Font changes, the Size should be
3168         updated to fit the new font's space requirements.
3170 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
3172         * ListBox.cs: If the items are cleared with Items.Clear set
3173           top_index to 0.
3175 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3177         * MonthCalendar.cs: Handle arrow keys as input keys. Also
3178         fire DateChanged event instead of DateSelected event when
3179         the date was changed by keyboard interaction.
3181 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3183         * DateTimePicker.cs: Handle DateChanged for the associated
3184         month_calendar control, and set month_calendar.Font from 
3185         OnFontChanged method, as well as resize the height of the
3186         control when needed. Make PreferredHeight proportional.
3188 2006-09-01  Chris Toshok  <toshok@ximian.com>
3190         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
3191         properties.
3193         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
3195 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
3197         * FileDialog.cs: Set ClientSize instead of window size, to allow space
3198           for decorations (Fixes #79219)
3200 2006-09-01  Mike Kestner  <mkestner@novell.com>
3202         * ComboBox.cs: first stab at sorting plus some selection handling
3203         fixes to bring us more in line with MS behavior.  Also switches back
3204         to index based selection.  Alternative patches for index-based 
3205         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
3206         and latency@gmx.de on bug 78848.  I assume they were similar to this
3207         code I've had simmering in my tree forever.
3208         [Fixes #78848]
3210 2006-09-01  Chris Toshok  <toshok@ximian.com>
3212         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
3213         when setting list position guard against ending up with a -1 index
3214         (the other part of the fix for #78812).  Should probably make sure
3215         we don't need the analogous fix in the ItemDeleted case.
3217         * DataGrid.cs:
3218         - in SetDataSource, work around the fact that the way
3219         OnBindingContextChanged is invoked will cause us to re-enter this
3220         method.  I'll remove the hack once I investigate
3221         OnBindingContextChanged.
3223         - fix the logic in set_DataSource and set_DataMember (basically
3224         what to do if the other of the two is null.)
3225         
3226         - in OnListManagerItemChanged, we need to take into account the
3227         edit row when deciding whether or not to call RecreateDataGridRows
3228         (part of the fix for #78812).
3230 2006-09-01  Jackson Harper  <jackson@ximian.com>
3232         * Splitter.cs: Don't do anything if there is no control to affect
3233         (prevents us from crashing in weird tet cases).
3234         * TreeView.cs: Bounding box for the mouse movement reverting
3235         focus/selection back to previously selected node.  This matches
3236         MS, and makes the tree a lot more useable.
3237         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
3238         use clipping so they are not drawn.  This fixes when the control
3239         is set to have a transparent background, or if it was over an
3240         image.
3242 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
3244         * MimeIcon.cs: Improved handling for reading default icons when
3245           using gnome (2.16 made it necessary). Check and read svg icons
3246           first, then 48x48 and then 32x32 icons.
3248 2006-08-31  Chris Toshok  <toshok@ximian.com>
3250         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
3251         visible.
3253         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
3254         ProcessKeyPreview.  Fixes part of #77806.
3256         * DataGrid.cs: big patch.
3258         - revert the queueing up of DataSource/DataMember if inside
3259         BeginInit/EndInit calls.  That's not the way the datagrid achieves
3260         its delayed databinding.  Instead, call SetDataSource in
3261         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
3262         #78811.
3264         - Also, it wasn't mentioned in #78811, but the test case exhibits
3265         behavior that was lacking in our datagrid implementation - Columns
3266         that have mapping names that don't exist in the datasource's
3267         properties aren't shown.  Yuck.  To fix this I added the bound
3268         field to the column style, and basically any calculation to figure
3269         out anything about columns uses a loop to find the bound columns.
3270         still need to investigate if I can cache an array of the bound
3271         columns or if the indices must be the same.
3273         - When setting CurrentCell, we no longer abort if the cell being
3274         edited was in the add row.  This fixes the other part of #77806.
3276         - The new code also fixes #78807.
3277         
3278         * ThemeWin32Classic.cs: perpetrate the same disgusting
3279         column.bound field hack, and only render bound fields.
3281 2006-08-31  Chris Toshok  <toshok@ximian.com>
3283         * DataGridColumnStyle.cs: add bound field.  this field is true if
3284         the datasource has a property corresponding to the mapping name.
3286         * DataGridTableStyle.cs: set the bound field on the column styles
3287         depending on whether or not we have a column for that property.
3289 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
3291         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
3292           splitter control (fixes #79228)
3294 2006-08-31  Chris Toshok  <toshok@ximian.com>
3296         * DataGridColumnStyle.cs: we need to delay the assignment of
3297         property descriptor until the last possible moment due to the lazy
3298         databinding stuff in the datagrid.  Also, fix the exceptions
3299         thrown by CheckValidDataSource to match MS.
3301 2006-08-31  Jackson Harper  <jackson@ximian.com>
3303         * Form.cs: When activated select the active control, if there is
3304         no active control, we select the first control.
3305         * XplatUIX11.cs: If there is no focus control when we get a
3306         FocusIn event, find the toplevel form and activate it.  This
3307         occurs when you popup a window, it becomes the focus window, then
3308         you close that window, giving focus back to the main window.
3310 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3312         * MonthCalendar.cs: 
3313         * ThemeWin32Classic.cs: Cache Font in bold style, as well
3314         as StringFormat with Center alignments in MonthCalendar,
3315         instead of creating new ones when drawing the control. 
3316         Also, draw the month name in bold style.
3318 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
3320         * Control.cs:
3321           - PerformLayout(): It would seem MS performs the fill even if the 
3322             control is not visible (part of #79218 fix)
3323           - ResetBackColor(): Use the setter to reset the color, to allow
3324             overriders to catch the change.
3325         * Form.cs:
3326           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
3327           - CreateHandle(): dito (part of $79218 fix)
3328           - Don't set an icon if we have a dialog
3329         * ScrollableControl.cs:
3330           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
3331           - ScrollIntoView(): No need to scroll if control is already visible
3332             (resolves fixme and fixes #79218)
3334 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3336         * MonthCalendar.cs: Change proportions in SingleMonthSize
3337         to match the aspect of the original control.
3339 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
3341         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
3342           get updated when they get maximized.
3344 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
3346         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
3348 2006-08-29  Chris Toshok  <toshok@ximian.com>
3350         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
3352 2006-08-29  Jackson Harper  <jackson@ximian.com>
3354         * TreeView.cs: Need to track selected node and highlighted node,
3355         they aren't always the same thing, when the mouse is down on a
3356         node it is hilighted, but not selected yet.
3357         - Do the HideSelection stuff right
3358         - Need to focus on rbutton mouse down. And redraw selection when
3359         right click is mouse upped.
3361 2006-08-29  Mike Kestner  <mkestner@novell.com>
3363         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
3364         when SubItems.Count < Columns.Count.  [Fixes #79167]
3366 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
3368         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
3370 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
3372         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
3373           from X. Only send based on ConfigureNotify if we don't have the
3374           correct location in hwnd (if the window manager moved us)
3376 2006-08-28  Mike Kestner  <mkestner@novell.com>
3378         * ListView.cs: remove a TODO. 
3379         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
3380         [Fixes ListView part of #79166]
3382 2006-08-28  Mike Kestner  <mkestner@novell.com>
3384         * ListView.cs: move wheel handler to parent since it is focused
3385         instead of the item_control now.  [Fixes #79177]
3387 2006-08-28  Mike Kestner  <mkestner@novell.com>
3389         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
3390         when the control is focused. [Fixes #79171]
3392 2006-08-28  Mike Kestner  <mkestner@novell.com>
3394         * ListView.cs: size the item and header controls for empty and
3395         unscrollable views.
3396         * ThemeWin32Classic.cs: draw disabled backgrounds.
3397         [Fixes #79187]
3399 2006-08-28  Chris Toshok  <toshok@ximian.com>
3401         * Form.cs: remove unused "active_form" static field.
3403         * Hwnd.cs: lock around accesses to static windows collection.
3405         * Application.cs: lock threads in Exit ().
3407 2006-08-28  Chris Toshok  <toshok@ximian.com>
3409         * NativeWindow.cs: lock around accesses to window_collection.
3410         
3411 2006-08-28  Chris Toshok  <toshok@ximian.com>
3413         * Control.cs: err, fix this the right way, by locking on controls
3414         when using it.  not by making it synchronized.
3416 2006-08-28  Chris Toshok  <toshok@ximian.com>
3418         * Control.cs: make the static "controls" field synchronized, as it
3419         gets updated from multiple threads.
3421 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
3423         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
3424           Prevent other threads from exiting when calling thread sets quit state.
3425         * XEventQueue.cs: Added PostQuitState property
3427 2006-08-27  Chris Toshok  <toshok@ximian.com>
3429         * AsyncMethodData.cs: add a slot for the window handle.
3431         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
3432         window (the destination control's window, not the foster window).
3434         * Control.cs (BeginInvokeInternal): store the window's handle in
3435         the AsyncMethodData.
3436         
3438 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
3440         * XplatUIX11.cs:
3441           - PostQuitMessage: Removed resetting S.D display handle, we might have
3442             another loop started after calling PostQuitMessage (Fixes #79119)
3443           - Created destructor to reset S.D handle
3445 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
3447         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
3449 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
3451         * TextControl.cs (Insert): Update the caret position even if we don't
3452           have a handle yet, just don't call the driver in that case.
3453         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
3454           to the end of the new selection text (Fixes #79184)
3456 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
3458         * Form.cs (Activate): Only activate if the handle is created)
3459         * Control.c:
3460           - Mark window as invisible when it's disposed
3461           - Check if window handle is created when setting window visible, 
3462             instead of relying just on the is_created variable
3463           - Check if object is disposed when creating the control (Fixes #79155)
3465 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
3467         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
3468           when allowing layout again. Otherwise we re-generate the anchoring 
3469           distance to the border again and actually alter what the user wanted
3470           This is ugly, it'd be better if we used DisplayRectangle instead of
3471           ClientRectangle for Control.UpdateDistances, but that causes us to
3472           have other problems (initial anchoring positons would be wrong)
3473           (Fixes #78835)
3475 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
3477         * Control.cs:
3478           - The size and location setters shouldn't go directly to 
3479             SetBoundsCore, but to SetBounds, which triggers layout on the
3480             parent, then calls SetBoundsCore. (Related to fix for #78835)
3481           - SetBounds: Moved actual location update code into this function
3482             from SetBoundsCore, to match MS. Added call to PerformLayout if
3483             we have a parent (to trigger resizing of anchored parents if the 
3484             child size has changed (see testcase for #78835) 
3485         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
3486           new control code
3487         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
3489 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
3491         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
3492           System.Drawing when a toplevel window gets closed; there might
3493           be other toplevel windows belonging to the same app (Fixes #78052)
3495 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
3497         * FileDialog.cs: After reading FileDialog settings from mwf_config
3498           use Desktop prefix only if a real folder doesn't exist anymore.
3499         * FontDialog.cs: Added char sets.
3500           It is now possible to select the font, size or style with the
3501           textboxes.
3503 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
3505         * PrintPreviewDialog.cs: Use assembly name constants.
3507 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
3509         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
3510           scrollbar from whacking it's buttons)
3512 2006-08-24  Chris Toshok  <toshok@ximian.com>
3514         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
3515         in this patch (aggregating setting Left/Top/Width/Height to
3516         setting Bounds on the scrollbars), but the crux of the fix is in
3517         Recalculate, where we scroll by the remaining scroll_position if
3518         we're hiding a scrollbar.  The 2*$5 reward in the comment is
3519         serious.
3521 2006-08-24  Jackson Harper  <jackson@ximian.com>
3523         * MdiClient.cs:
3524         * MdiWindowManager.cs: If the form is made a non-mdi window we
3525         need to remove the form closed event so that closing forms works
3526         correctly.
3528 2006-08-24  Jackson Harper  <jackson@ximian.com>
3530         * Control.cs: Make IsRecreating internal so that the driver can
3531         check it
3532         - Temporarily remove the Hide when controls are removed, its
3533         making a whole bunch of things not work because visibility isn't
3534         getting reset elsewhere correctly
3535         * Form.cs: Need to do a full handle recreation when the mdi parent
3536         is set.
3537         * XplatUIX11.cs: If we are recreating handles don't dispose the
3538         HWNDs.  What was happening is the handles were being recreated in
3539         SendWMDestroyMessages, but then flow continued on in that method
3540         and destroyed the new handles.
3542 2006-08-23  Jackson Harper  <jackson@ximian.com>
3544         * Form.cs: MdiClient is always at the back of the bus
3545         * Control.cs: When the order of items in the collection is changed
3546         we need to reset the all_controls array
3547         - do the same sorta setup thats done when adding a control when a
3548         control is set on the collection.
3550 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
3552         * TextBoxBase.cs (get_Text): Return an empty array if our document
3553           is empty (fixes #79052)
3555 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
3557         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
3558           on WM_SYSCHAR messages (fixes #79053)
3560 2006-08-23  Chris Toshok  <toshok@ximian.com>
3562         * DataGrid.cs: fix flickering when scrolling vertically.
3564 2006-08-23  Chris Toshok  <toshok@ximian.com>
3566         * DataGrid.cs (EndEdit): only invalidate the row header when we
3567         need to.
3569 2006-08-23  Chris Toshok  <toshok@ximian.com>
3571         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
3572         methods.  fixes the flicker when scrolling around.
3574 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
3576         * FileDialog.cs: Making sure the control is created before we get a 
3577           chance to use it with BeginInvoke (Fixes #79096)
3579 2006-08-23  Chris Toshok  <toshok@ximian.com>
3581         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
3582         width to use when painting the rows.
3584 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
3586         * TextBoxBase.cs:
3587           - Throw ArgumentException if a negative value is passed to SelectionLength
3588           - Update the selection end if start is moved. end needs to be always
3589             after start. (Fixes #79095)
3590           - Track selection length; MS keeps the selection length even if start
3591             is changed; reset on all other operations affection selection
3593 2006-08-22  Jackson Harper  <jackson@ximian.com>
3595         * TreeView.cs: Make sure both scrollbars get displayed and sized
3596         correctly when the other bar is visible.
3597         - Use the original clip rectangle for checking if the area between
3598         the two scrollbars is visible, not the viewport adjusted clipping
3599         rectangle.
3601 2006-08-22  Jackson Harper  <jackson@ximian.com>
3603         * Binding.cs: We don't use IsBinding because it requires the
3604         control to be created, which really shouldn't be necessary just to
3605         set a property on the control.
3607 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3609         * ComboBox.cs: Some CB.ObjectCollection methods must throw
3610         ArgumentNullReferenceException when the argument is null.
3612 2006-08-21  Jackson Harper  <jackson@ximian.com>
3614         * Timer.cs: Track the thread that the timer is started in (NOT
3615         CREATED), this way messages for it will only be triggered on its
3616         queue.
3617         * XEventQueue.cs: Track the timers here, this makes timers per
3618         thread, like MS.
3619         * XplatUIX11.cs: The timers are moved to the XEventQueue.
3621 2006-08-19  Chris Toshok  <toshok@ximian.com>
3623         * XplatUIX11.cs: after further communication with pdb, we get the
3624         best of both worlds.  SetZOrder working for un-Mapped windows, and
3625         no X errors for un-mapped windows.
3627 2006-08-19  Chris Toshok  <toshok@ximian.com>
3629         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
3630         as it was causing pdn toolbars to not have the correct stacking.
3632 2006-08-18  Mike Kestner  <mkestner@novell.com> 
3634         * ListView.cs : guard against negative ClientArea.Width in scrollbar
3635         calculation.  Not sure why control should ever be setting a negative
3636         width though.  Fixes #78931.
3638 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3640         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
3641         null items in ObjectCollection class.
3642         * ListBox.cs.: Likewise.
3644 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
3646         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
3647           as the base method in ThemeWin32Classic should work fine.
3648           Fixed bug #78607.
3650 2006-08-18  Jackson Harper  <jackson@ximian.com>
3652         * Binding.cs: When validating if the value entered doesn't convert
3653         properly reset to the old value.
3654         * RadioButton.cs: Don't fire click when we get focus.
3656 2006-08-18  Jackson Harper  <jackson@ximian.com>
3658         * FileDialog.cs: Paint the selection on the directory combobox the
3659         same way as on MS. 
3661 2006-08-17  Jackson Harper  <jackson@ximian.com>
3663         * ErrorProvider.cs: Don't allow the error control to be selected.
3664         * Control.cs: Don't send the SetFocus messages, the control
3665         activation will do this, and if we do it blindly here validation
3666         does not work.
3668 2006-08-17  Jackson Harper  <jackson@ximian.com>
3670         * Control.cs:
3671         * ContainerControl.cs: Make validation events fire in the correct
3672         order.  TODO: For some reason the first validation event is not
3673         getting fired.
3675 2006-08-17  Mike Kestner  <mkestner@novell.com> 
3677         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
3679 2006-08-17  Mike Kestner  <mkestner@novell.com> 
3681         * ComboBox.cs : implement scroll wheel support for popped-down
3682         state. Fixes #78945. 
3684 2006-08-17  Jackson Harper  <jackson@ximian.com>
3686         * TreeView.cs: Specify treeview actions (old patch that didn't get
3687         committed for some reason).
3688         - Don't let the mouse wheel scroll us too far.  Just want to make
3689         the bottom node visible, not scroll it all the ways to the top.
3691 2006-08-17  Jackson Harper  <jackson@ximian.com>
3693         * XplatUIX11.cs: Mouse wheel events go to the focused window.
3695 2006-08-17  Mike Kestner  <mkestner@novell.com> 
3697         * ComboBox.cs : don't do mouseover selection in simple mode.
3699 2006-08-16  Jackson Harper  <jackson@ximian.com>
3701         * Form.cs: Fire the closing events for all the mdi child windows
3702         when a window is closed.  If the cancel args are set to true, the
3703         main window still gets the event fired, but it doesn't not close.
3704         * MdiWindowManager.cs: Do this closing cleanup in a Closed
3705         handler, instead of when the button is clicked, so cancelling the
3706         close works correctly.
3707         * ComboBox.cs: Send the mouse down to the scrollbar.
3709 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3711         * ListBox.cs: When passing 'null' to SelectedItem,
3712         set SelectedIndex to -1, to unselect items. This is the
3713         observed behaviour in .Net.
3715 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
3717         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
3718           MS flags saying there won't be any. (fixes #78800)
3719         * Control.cs (HandleClick): Made virtual
3721 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
3723         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
3724           cultures. Fixed bug #78399.
3726 2006-08-16  Jackson Harper  <jackson@ximian.com>
3728         * Form.cs: Use the MdiClients MdiChildren property to access
3729         MdiChildren instead of creating the array from the child controls.
3730         * MdiClient.cs: Maintain a separate array of the mdi children, so
3731         that insertion order is maintained when the Z-order is changed.
3733 2006-08-16  Mike Kestner  <mkestner@novell.com> 
3735         * ListView.cs : add an ItemComparer and default to it for sorting.
3736         Fixes #79076, but sorting needs a complete overhaul to be compat with
3737         MS.
3739 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
3741         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
3743 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
3745         * Hwnd.cs (Mapped): Properly traverse the tree
3747 2006-08-15  Chris Toshok  <toshok@ximian.com>
3749         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
3750         pass manager.Current.GetType() to ParseData.  It has to be the
3751         property type.  So, hold off doing the ParseData until we're in
3752         SetPropertyValue where we know the type.  This fixes the crash in
3753         #78821 but the textbox is still empty.
3755 2006-08-15  Chris Toshok  <toshok@ximian.com>
3757         * DataGrid.cs:
3758         - when we're scrolling, only call Edit() again if the
3759         current cell is still unobscured. Fixes bug #78927.
3760         - when handling mousedown on a cell, ensure the cell is visible
3761         before calling Edit.
3762         - remove the properties from DataGridRow, and remove the
3763         DataGridParentRow class altogether.
3764         
3766 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
3768         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
3769           fire OnTextChanged by ourselves. There's no point calling base,
3770           we don't set the base value anywhere else. Fixes #78773.
3772 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3774         * ListBox.cs: Call CollectionChanged when modifying
3775         an item from Items indexer, to update the actual items
3776         in the list box.
3778 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3780         * PrintDialog.cs: Small fixes for focus and a pair of checks,
3781         to match .Net behaviour.
3783 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
3785         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
3787 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
3789         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
3791 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
3793         * MessageBox.cs: Prevent potential NRE exception.
3794         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
3796 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
3798         * MessageBox.cs: Calculate the owner of a messagebox, also make
3799           it topmost. Fixes #78753
3801 2006-08-14  Chris Toshok  <toshok@ximian.com>
3803         * XplatUIX11.cs: A couple of fixes so that metacity will let us
3804         programmatically move windows.  first, set the PPosition hint as
3805         well as the USPosition hint.  Second include some code from pdb
3806         that sets the window type to NORMAL when we set the transient for
3807         hint.  This is because, in the absence of a window type, metacity
3808         thinks any window with TransientFor set is a dialog, and refuses
3809         to let us move it programmatically.  fascists.
3811 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
3813         * XplatUIX11.cs: When setting normal hints, take into consideration
3814           an different hints previously set so we don't delete them (fixes #78866)
3816 2006-08-12  Chris Toshok  <toshok@ximian.com>
3818         * ToolBarButton.cs: make Layout return a boolean, if something to
3819         do with the button's layout changed.
3821         * ToolBar.cs:
3822         - add another parameter to Redraw, @force, which all existing
3823           calls set to true.
3824         - make the Layout function return a boolean which is true if the
3825           layout has actually changed.  Redraw now uses this (and @force)
3826           to determine when to invalidate.  At present the only place
3827           where @force can be false is the call from OnResize, when
3828           background_image == null.  So, resizing a toolbar when the
3829           layout doesn't change results in no drawing.
3831 2006-08-12  Chris Toshok  <toshok@ximian.com>
3833         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
3834         the VScrollBar and HScrollbar reversed.  oops.
3836         * DataGrid.cs: fix the logic that assigns sizes to the implicit
3837         scrollbars.  we were assigning them twice (once in
3838         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
3839         therefore causing two scrollbar resizes (and redraws?) to happen
3840         per grid resize.
3842 2006-08-12  Chris Toshok  <toshok@ximian.com>
3844         * ToolBarButton.cs: redraw the entire button if the theme tells us
3845         to.
3847         * Theme.cs: add ToolBarInvalidateEntireButton.
3849         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
3850         buttons, just the border.
3852         * ThemeNice.cs: redraw the entire toolbar button since we need to
3853         draw the highlight image.
3855         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
3856         we need to redraw the entire button (not just the border).
3858 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
3860         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
3861           for vertical bars. Fixes the mismatches shown by #78513
3863 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
3865         * FileDialog.cs: If a saved/remembered path doesn't exist
3866           anymore, fall back to "Desktop".
3868 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
3870         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
3871           parent. It's apparently legal to not have one
3872         * XplatUIX11.cs:
3873           - SetZOrder: Don't try to set Z-Order on an unmapped window
3874           - CreateWindow: 0,0 are legal coordinates for a window. don't move
3875             it unless the coordinates are negative
3877 2006-08-10  Mike Kestner  <mkestner@novell.com>
3879         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
3880         when setting to null per msdn docs.  Fixes #78854.
3882 2006-08-10  Chris Toshok  <toshok@ximian.com>
3884         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
3885         flickering by setting a clip rectangle on the Graphics when we
3886         need to redraw just a particular menuitem.  Also, rename "OnClick"
3887         to "OnMouseDown" to reflect what it actually is.
3888         
3889         * Form.cs: track the OnMouseDown change.
3891 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
3893         * CommonDialog.cs: Properly inherit the CreateParams from the form
3894           and only change what we need. Fixes #78865
3896 2006-08-10  Chris Toshok  <toshok@ximian.com>
3898         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
3899         flickering in flat mode (and most of the flickering in general) by
3900         only invalidating the button border (and not the entire rectangle)
3901         when the state changes.  A couple of cases still flicker:
3902         ToggleButtons, and the dropdown arrow case when the user mouse
3903         ups.
3905 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
3907         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
3908           for german keyboards. Numlock state shouldn't affect the behaviour
3909           of the Del key. Fixes bug #78291.
3911 2006-08-10  Chris Toshok  <toshok@ximian.com>
3913         * ListControl.cs: remove the items.Clear line from BindDataItems,
3914         as this is the first thing done by both subclasses in their
3915         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
3916         passed -1, refresh the list.  This gets databinding working when
3917         the datasource is set on the list before the datasource is
3918         populated (as in wf-apps/ReportBuilder.)
3920         * ComboBox.cs: remove the argument to BindDataItems.  This call
3921         should really go away, and be initiated by the ListControl code.
3923         * ListBox.cs: same.
3925 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
3927         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
3928           if no data is in the document when the control is displayed
3930 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
3932         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
3933           yes (fixes #78806)
3934         * TextControl.cs: 
3935           - PositionCaret: Allow positioning of caret but don't call methods 
3936             requiring a handle if the window isn't created yet
3937           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
3938           - owner_HandleCreated: Don't position the caret, just update it's 
3939             location. User might have already set a different position
3941 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
3943         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
3944           windows. Screws up the returned coordinates for child windows. 
3945           Fixes #78825. I'm hoping this doesn't break something, since the
3946           code was explicitly put in 8 months ago, but no bug was attached.
3947           Menus still seem to work properly.
3949 2006-08-08  Chris Toshok  <toshok@ximian.com>
3951         * DataGrid.cs: make BeginInit/EndInit actually do what they're
3952         supposed to do - delay data binding until the EndInit call.  Also,
3953         make the table style collection's CollectionChangeAction.Refresh
3954         work properly.
3956         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
3957         (with action = Refresh) when a consituent table's MappingName is
3958         changed.
3960 2006-08-08  Chris Toshok  <toshok@ximian.com>
3962         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
3963         Invalidate, since changing the text can change the size of the all
3964         toolbar buttons.
3966 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
3968         * Form.cs (AddOwnedForm): Still need to add the form to our listif
3969           we don't have it yet
3971 2006-08-08  Chris Toshok  <toshok@ximian.com>
3973         * PrintControllerWithStatusDialog.cs: don't .Close() the status
3974         dialog, as this causes X errors later on, since we actually
3975         destroy the window.  Instead, .Hide() it.
3977 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
3979         * ComboBox.cs: Added focus reflection for popup window
3980         * XplatUIX11.cs: 
3981           - Removed transient setting for non-app windows for now, not sure it
3982             was needed
3983           - Fixed logic checking if we have captions when deciding 
3984             override_redirect, WS_CAPTION is two bits and a 0 check was not
3985             sufficient
3986           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
3987             complicated
3988         * Form.cs: 
3989           - AddOwnedForm: Don't just add the form to the list, call the property
3990             to ensure the driver is informed about the ownership as well
3991           - CreateHandle: Set the TopMost status in the driver if we have an owner
3992         * XplatUI.cs: Fixed debug statement
3994 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
3995         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
3996           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
3997           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
3998           TrackBarRenderer.cs: Make constructor private.
3999         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
4000         * ProfessionalColorTable.cs: Make properties virtual.
4002 2006-08-06  Duncan Mak  <duncan@novell.com>
4004         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
4005         is not changing.
4007 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
4008         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
4009           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
4010           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
4011           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
4012           Initial import of new 2.0 classes.
4014 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
4015         * Application.cs: Add 2.0 VisualStyles properties.
4017 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
4018         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
4019           XplatUIX11.cs: Create property to allow access to existing private
4020           variable "themes_enabled"
4022 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4024         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
4025         file size, as otherwise our class libraries fail using windows. Fixes
4026         bug #78759.
4028 2006-08-04  Jackson Harper  <jackson@ximian.com>
4030         * Form.cs:
4031         * XplatUIX11.cs: Move the toolwindow window manager creation into
4032         the X11 driver, this way on win32 we can let windows create/handle
4033         the toolwindows.
4035 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4037         * PrintDialog.cs: Remove some redundant checks, add some others,
4038         clean some code, and move the focus to the text boxes when the
4039         values are incorrect.
4041 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
4043         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
4045 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
4047         * NumericUpDown.cs: Setting the Minimum and Maximum is now
4048           handled correctly. Fixes bug #79001.
4050 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4052         * PrintDialog.cs: The "Copies" numeric up down must have
4053         set the Minimum property to 1; only if the value is bigger
4054         than 1, activate "Collate" check box. This is the behaviour of .Net.
4055         Also modify the Document elements only if it is not null.
4057 2006-08-03  Jackson Harper  <jackson@ximian.com>
4059         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
4060         length. (We have a larger array then actual node count).
4061                 
4062 2006-08-03  Jackson Harper  <jackson@ximian.com>
4064         * ComboBox.cs: Don't show selection by default.
4065         - The SelectAll isn't needed here, since the focus code should do
4066         that
4067         - DDL style lists to manual selection drawing, so when they
4068         get/lose focus they have to invalidate.
4070 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
4072         * TextBoxBase.cs: Don't always show all selections by default.
4074 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
4075         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
4076           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
4077           Fixed various typos.
4079 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
4081         * Control.cs: Removing the controls in a ControlCollection with
4082           Clear now hides the controls as expected. Fixes bug #78804. 
4084 2006-08-03  Jackson Harper  <jackson@ximian.com>
4086         * Control.cs: Revert previous focus patch, it breaks reflector.
4088 2006-08-03  Jackson Harper  <jackson@ximian.com>
4090         * ComboBox.cs: Cleanup selection and focus with the combobox.
4091         This also eliminates some duplicated keyboard code, since now
4092         everything is handled by the main class.
4093         - Make list selection work on mouse up instead of down, to match
4094         MS.
4096 2006-08-02  Jackson Harper  <jackson@ximian.com>
4098         * Control.cs: Setting focus needs to go through the whole
4099         selection mechanism.
4101 2006-08-02  Chris Toshok  <toshok@ximian.com>
4103         * PrintPreviewDialog.cs: change MinimumSize to use
4104         base.MinimumSize so it works.
4106 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
4108         * TextControl.cs:
4109           - UpdateCaret: Added sanity check in case caret isn't defined yet
4110           - Line.Delete: Now updating selection and caret markers if we're
4111             transfering a node (Properly fixes #78323)
4112           - SetSelectionEnd: Added sanity check
4113         * TextBoxBase.cs: Removed broken attempt to fix #78323
4115 2006-08-01  Chris Toshok  <toshok@ximian.com>
4117         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
4118         Close() call is handled in Form, not here.
4120 2006-08-01  Chris Toshok  <toshok@ximian.com>
4122         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
4123         layout/rendering.
4125         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
4126         for sizes < 100% zoom.  The code now aggressively attempts to keep
4127         from calling document.Print (), and tries not to use the scaling
4128         g.DrawImage whenever possible (it still does if you scale to >
4129         100%, since usually that involves huge images).
4131         * PrintPreviewControl.cs: hook up the close button.
4133 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
4134         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
4135           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
4136           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
4137           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
4138           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
4139           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
4140           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
4141           Removed [Serializable] for 2.0 Event Handlers.
4143 2006-07-31  Jackson Harper  <jackson@ximian.com>
4145         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
4146         * TextControl.cs: Uncomment out the body of this method.
4148 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
4150         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
4151           standard cursors.
4153 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
4155         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
4156           that embed TextBox and need selections visible even if textbox is not
4157           focused to enforce that behaviour.
4158         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
4159           selection drawing
4161 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
4163         * TextControl.cs:
4164           - Added new SetSelectionStart/SetSelectionEnd overloads
4165           - Fixed viewport width assignment to be accurate
4166           - Adjusted alignment line shift calculations to allow cursor on right
4167             aligned lines to be always visible at the right border (like MS)
4168         * TextBoxBase.cs:
4169           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
4170           - TextBoxBase_SizeChanged: recalculating canvas on size changes
4171           - CalculateScrollBars: Use ViewPort size instead of window size, to
4172             properly consider space occupied by the border and scrollbars 
4173             (Fixes #78661)
4174           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
4175             calculations; no longer leaves artifacts
4176           - CaretMoved: Adjusted window scrolling to match MS and fixed several
4177             calculation bugs (Still missing right/center align calculations)
4179 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
4181         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
4182           use of both scroll rect and clip rect, as they do the same.
4184 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
4186         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
4187           in the event handler (fixes #78912)
4189 2006-07-31  Chris Toshok  <toshok@ximian.com>
4191         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
4192         grid.ListManager.Count, since grid.ListManager might be null.
4193         This of course begs the question "why are we drawing rows for a
4194         grid with no list manager (and therefor no rows)?"  Fixes the
4195         crash in bug #78929.
4197 2006-07-31  Chris Toshok  <toshok@ximian.com>
4199         * RelatedPropertyManager.cs: Don't always chain up to the parent
4200         ctor.  instead, call SetDataSource if the parent's position is !=
4201         -1.  Fixes the crash in #78822.
4203 2006-07-31  Chris Toshok  <toshok@ximian.com>
4205         * DataGrid.cs (get_ListManager): use field instead of property
4206         accessors for datasource and datamember.
4207         (RowsCount): make internal again.
4208         (OnMouseDown): end edits before resizing columns/rows.
4209         (OnMouseUp): restart edits after resizing columns/rows.
4211 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
4213         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
4214           This fixes the situation where the last set cursor is displayed
4215           whenever the mouse is over scrollbars.
4217 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4219         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
4220         Document properties, as well as initial values.
4222 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
4224         * XplatUIWin32.cs (SetBorderStyle): Setting both border
4225           and ClientEdge results in a 3-pixel border, which is
4226           wrong.
4228 2006-07-28  Jackson Harper  <jackson@ximian.com>
4230         * TreeNodeCollection.cs: Fix the clear method.
4231         - Fix the Shrink also
4233 2006-07-27  Jackson Harper  <jackson@ximian.com>
4235         * TreeView.cs: Make sure the visible order is computed when we
4236         attempt to size the scrollbars (for trees that mess with the
4237         scrolling when they shouldn't.
4238         - Make sure to give the scrollbars valid values.
4240 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
4242         * XplatUIX11.cs: Move motion compression code to where it
4243           has less performance impact
4245 2006-07-26  Jackson Harper  <jackson@ximian.com>
4247         * UpDownBase.cs: When the control is selected make the child
4248         controls non selectable, so that a click on them won't do a
4249         focus/unfocus cycle.
4250         - Don't give focus to the text box when the spinner is selected.
4251         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
4253 2006-07-26  Chris Toshok  <toshok@ximian.com>
4255         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
4256         satisfied with this solution.  If the bitmaps are small, we should
4257         just cache them in the PrintPreviewDialog and draw them here.
4258         Also, the layout is broken for the 2-up and 3-up cases.
4260         * Theme.cs: add PrintPReviewControlPaint.
4262         * PrintPreviewDialog.cs: first pass implementation.
4264         * PrintPreviewControl.cs: first pass implementation.  No
4265         scrollbars yet.
4267         * PrintDialog.cs: only validate fields if that particular portion
4268         of the UI is enabled.  Also, set the document's controller to a
4269         PrintControllerWithStatusDialog wrapping the document's print
4270         controller.
4272         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
4273         bring up a SaveFileDialog (i hope we don't want to match the
4274         behavior of the crappy windows file entry) and set the
4275         PrinterSettings.PrintFileName accordingly.
4277 2006-07-26  Jackson Harper  <jackson@ximian.com>
4279         * ContainerControl.cs: Add a field that disables auto selecting
4280         the next control in a container when the container is activated.
4281         * UpDownBase.cs: Don't select the text box when the up down is
4282         selected.
4284 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
4286         * XEventQueue.cs: Added methods for peeking (used for compression
4287           of successive events)
4288         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
4289           mouse move events (fixes #78732)
4291 2006-07-25  Jackson Harper  <jackson@ximian.com>
4293         * UpDownBase.cs: Use an internal class for the textbox so that we
4294         can control focus.  the updown control should always have focus,
4295         if either the text area or the buttons are clicked.
4296         - Send the key messages to the textbox, since it never actually
4297         has focus
4298         - Activate and decativate the textbox caret.
4300 2006-07-24  Jackson Harper  <jackson@ximian.com>
4302         * Control.cs: Use the directed select when selecting a control,
4303         this way the container controls override will get called and the
4304         whole ActiveControl chain will get triggered.  TODO: probably need
4305         to make sure this gets done everywhere instead of the old
4306         Select(Control).
4307         * ContainerControl.cs: Implement the directed Select method to
4308         find and activate the correct child control.    
4309         
4310 2006-07-22  Mike Kestner  <mkestner@novell.com>
4312         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
4313         menu handling code so that clicks without a grab work too.
4314         [Fixes #78914]
4316 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
4318         * FileDialog.cs: Enable the BackButton when dirstack has one element.
4319           Added some small optimizations.
4321 2006-07-21  Matt Hargett  <matt@use.net>
4323         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
4325 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
4327         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
4328           tests pass and match MS in some strange border cases.
4330 2006-07-21  Chris Toshok  <toshok@ximian.com>
4332         * ThemeWin32Classic.cs: handle drawing of the relation links and
4333         parent row buttons.
4335         * Theme.cs: change args to DataGridPaintParentRow.
4337         * DataGrid.cs: Don't use controls for the relation links and
4338         parent buttons, so we have to handle all their interactions in
4339         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
4340         when we're navigating through child tables, so we can reinstate
4341         selection, expanded state, current cell, etc.
4343 2006-07-20  Chris Toshok  <toshok@ximian.com>
4345         * ToolBar.cs: When we redraw a button, for whatever reason,
4346         there's no reason to redraw the entire toolbar.  Also, don't call
4347         Control.Refresh from within Redraw, as it's much heavier than
4348         Invalidate (which is really what we want).
4350 2006-07-20  Chris Toshok  <toshok@ximian.com>
4352         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
4353         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
4354         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
4355         traces from within a debug IBindingList datasource
4356         (in mono/winforms/datagrid) for *days*, I've finally gotten things
4357         to work in a similar fashion.
4359 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4361         * ListBox.cs: Don't call Sort () when setting 
4362         the Sorted property to false (avoid an unnecessary sort).
4364 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4366         * ListControl.cs: DataSource should throw an ArgumentException
4367         instead of a normal exception when the argument is not of the 
4368         correct type.
4370 2006-07-20  Mike Kestner  <mkestner@novell.com>
4372         * Control.cs: add InternalPreProcessMessage to allow us to steal
4373         key events before MWF gets its paws on them.  Adapted from a
4374         suggestion by eno.
4375         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
4376         up/down/left/right navigation. Override the new internal control
4377         method to steal the events since they never make it to WndProc.
4378         * ToolBarButton.cs: don't worry about pushed when setting hilight
4379         since the drawing code prefers pushed to hilight. Invalidate on 
4380         Hilight changes. Fixes #78547 and #78525.
4382 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
4384         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
4385           the canvas size. Fixes #78868
4387 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
4389         * Splitter.cs: Track requested split position until first layout
4390           is performed. Fixes #78871
4392 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
4394         * Application.cs: Removed code that forces 1.x for the version
4395           number if the version started with 0. Not sure why that code was
4396           there and I couldn't find any bugs that indicated we needed it.
4397           Fixes #78869
4399 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
4401         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
4402           ResetDefaults(), just write some output to the console until it's
4403           implemented. Fixes bug #78907 for now. Eliminated two warnings.
4405 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
4407         * PropertyGridView.cs: set StartPosition of drop down forms
4408         so they appear in correct initial spot.  Fixes #78190.
4410 2006-07-19  Mike Kestner  <mkestner@novell.com>
4412         * ThemeWin32Classic.cs: use parent background color when drawing
4413         flat toolbars.  Restructure the conditionals to make sure non-flat
4414         non-Divider toolbars are filled too.  Fixes #78837.
4416 2006-07-19  Mike Kestner  <mkestner@novell.com>
4418         * ListBox.cs: Sort on collection changes even if the handle
4419         isn't created yet.  Fixes #78813.
4421 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4423         * ListControl.cs: DisplayMember should never be null,
4424         and now we assign String.Empty when null is passed to it (this
4425         is the .Net way).
4427 2006-07-17  Mike Kestner  <mkestner@novell.com>
4429         * ListViewItem.cs: restructure Font and subitem Font handling 
4430         to hold a specific font and refer back to owner on null.
4431         Fixes #78761.
4433 2006-07-17  Mike Kestner  <mkestner@novell.com>
4435         * ToolBar.cs: bandaid for side-effect of previous patch which was
4436         discarding explicit heights for non-AutoSize toolbars.  Need to
4437         extend my format tester to deal with AutoSize=false. Fixes #78864.
4439 2006-07-15  Jackson Harper  <jackson@ximian.com>
4441         * LabelEditTextBox.cs:
4442         * TreeView.cs: Use a new LabelEdit class for node editing, this
4443         class automatically 'closes' itself when it gets the enter key or
4444         loses focus.
4445         - Use the client rectangle when setting the trees scrollbars, so
4446         border style is taken into account.
4447         
4448 2006-07-14  Jackson Harper  <jackson@ximian.com>
4450         * TreeNode.cs:
4451         * TreeView.cs: Make the editing work similar to MSs, firing the
4452         events correctly and ending edits correctly.
4454 2006-07-14  Mike Kestner  <mkestner@novell.com>
4456         * ToolBarButton.cs:
4457         * ToolBar.cs: layout restructuring and redraw enhancements to support
4458         formatting changes gracefully, like setting TextAlign, ImageList, 
4459         ButtonSize, and Appearance.  Handles explicit button sizing quirks
4460         of the MS controls.  Things like flat toolbars ignoring button size
4461         but becoming constant sized at the largest button's size.  Normal
4462         toolbars with an image set cannot be shrunk smaller than the image,
4463         but text can be clipped/ignored.
4464         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
4465         is zero.  Seems like DrawString should be smart enough to not put
4466         anything on screen though. Also trim labels and ellipsize at the char
4467         boundary, not word.
4468         Fixes #78711 and #78483.
4470 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
4472         * FolderBrowserDialog.cs: Disable "New Folder" button and
4473           "New Folder" contextmenu menuitem if a folder like "My Computer"
4474           is selected.
4476 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
4478         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
4479         * FolderBrowserDialog.cs:
4480           - Use MWFConfig to store and read size and position settings
4481           - Added code to create a new folder (button or context menu).
4482             Use TreeView labeledit to change the name of the new folder.
4484 2006-07-14  Jackson Harper  <jackson@ximian.com>
4486         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
4487         when the tree is scrolled we end editing.
4489 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
4491         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
4492           Down arrows
4494 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
4496         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
4497         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
4498         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
4499         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
4500         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
4501         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
4502         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
4503         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
4504         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
4505         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
4506         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
4507         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
4508         ListViewItemSelectionChangedEventHandler.cs,
4509         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
4510         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
4511         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
4512         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
4513         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
4514         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
4515         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
4516         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
4517         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
4518         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
4519         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
4520         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
4521         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
4522         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
4523         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
4524         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
4525         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
4526         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
4527         WebBrowserNavigatingEventHandler.cs, 
4528         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
4530 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
4532         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
4533         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
4534         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
4535         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
4536         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
4537         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
4538         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
4539         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
4540         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
4541         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
4542         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
4543         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
4544         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
4545         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
4546         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
4547         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
4548         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
4549         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
4550         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
4551         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
4552         ListViewItemStates.cs, MaskFormat.cs: Added
4554 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
4556         * PropertyGridView.cs: Fix keyboard navigation of drop down.
4557         Patch from eno for bug 78558.
4558         
4559 2006-07-13  Jackson Harper  <jackson@ximian.com>
4561         * TreeView.cs: When an edit is finished make sure that the
4562         selected node is visible.
4563         - When setting the top/bottom use the scrollbars is_visible, so
4564         everything will be set correctly even if the tree isn't visible
4565         yet.
4567 2006-07-13  Jackson Harper  <jackson@ximian.com>
4569         * ComboBox.cs: Revert the item->index part of my previous patch.
4570         * TreeView.cs: Use LostFocus instead of Leave for detecting when
4571         the edit box has lost focus (duh).
4572         - Just make the edit box not visible when we get return, that will
4573         take the focus, which will call EndEdit
4574         * TreeNode.cs When we start editing, notify the treeview.
4576 2006-07-12  Jackson Harper  <jackson@ximian.com>
4578         * ComboBox.cs: Clear out old items before setting the item list.
4579         This prevents databound controls from having their items added
4580         twice.
4581         - Switch the combobox to use indices whereever possible instead of
4582         using Item's.  This allows usto navigate through lists that have
4583         more then one item with the same string value (ie a, b, b, a).
4584         - Scroll the listboxes scrollbar when a non visible item is
4585         highlighted
4586         - Allow keypress to cycle through all the possible values. For
4587         example if you have b1, b2, b3 and hold down the B key all the
4588         values will be cycled through.
4589         
4590 2006-07-12  Jackson Harper  <jackson@ximian.com>
4592         * TextBoxBase.cs:
4593         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
4594         this using the internal methods.
4595         * Control.cs: Add OnGotFocusInternal.  A new method that allows
4596         controls to "override" OnGotFocus and change focus behavior if
4597         needed.
4598         - Same thing for LostFocus
4599         * ComboBox.cs: Pass off focus to the text control properly.
4601 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
4603         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
4604         * FolderBrowserDialog.cs: Almost a complete rewrite.
4605           - Better support for Environment.Specialfolders
4606           - Added support for MWFVFS
4607           - Made setting SelectedPath work
4609 2006-07-12  Jackson Harper  <jackson@ximian.com>
4611         * Control.cs: Optimze getting all the controls.
4613 2006-07-11  Jackson Harper  <jackson@ximian.com>
4615         * ContainerControl.cs: Override SETFOCUS in the container control,
4616         so that it is not selected on mouse click.
4618 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
4620         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
4621           Hopefully we will have a better way once all of focus is complete.
4623 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
4625         * ThemeWin32Classic.cs: Commented out some debug code and fixed
4626           a compile error with csc.
4628 2006-07-11  Jackson Harper  <jackson@ximian.com>
4630         * Control.cs: When hiding a control only select the next control
4631         if the current control was focused.
4632         - Don't handle enter/leave when setting/killing focus, this is
4633         done by the container control.
4634         - Remove is_selected, it's not needed anymore.
4635         - Add utility methods for selecting a child control, and for
4636         firing the Enter/Leave events.
4637         * ContainerControl.cs: When a control is activated fire the
4638         enter/leave events.
4639         - Don't wrap when processing the tab key, so that focus can be
4640         moved outside of the container.
4641         - Use the correct active control
4643 2006-07-11  Jackson Harper  <jackson@ximian.com>
4645         * ComboBox.cs: Remove some debug code that was blinding me.
4646         * UpDownBase.cs: These controls actually aren't implicit, they are
4647         visible to the user.
4649 2006-07-10  Chris Toshok  <toshok@ximian.com>
4651         * DataGrid.cs: move back to the is_adding boolean field.  god i
4652         hate this is_editing/is_adding/is_changing stuff.
4654 2006-07-10  Chris Toshok  <toshok@ximian.com>
4656         * DataGridTableStyle.cs: just check if the property type is bool.
4657         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
4658         Don't use CanRenderType.
4660         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
4661         if our text == NullText.  Remove CanRenderType.
4663         * DataGridBoolColumn.cs: nuke CanRenderType.
4665         * DataGrid.cs: reenable some code to end the current edit inside
4666         of set_CurrentCell.  This fixes the other 1.1.16 regression.
4667         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
4668         Also, remove the visible_row_count arg from CalcRowHeaders, since
4669         we don't need to worry about the actual height of the area.
4671 2006-07-10  Chris Toshok  <toshok@ximian.com>
4673         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
4674         mode, just return.
4676         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
4677         the real sense of the IsInEditOrNavigateMode property (true =
4678         navigate, false = edit).  Also, update OnKeyPress to reflect this.
4680         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
4681         column style exists, we still need to set its property descriptor
4682         to match up with our list manager.
4684 2006-07-10  Chris Toshok  <toshok@ximian.com>
4686         * ThemeWin32Classic.cs: implement the new row/header painting
4687         approach.  The parent row painting will likely go away and
4688         replaced with label controls, but the rest seems to work ok (and
4689         efficiently).
4691         * Theme.cs: change the way we draw datagrid rows.  we don't draw
4692         the row headers as a block now.  Instead we draw them in the
4693         normal draw-row loop.  Add some calls for drawing parent rows and
4694         relation rows.
4696         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
4697         a default table style.  Set the defaults from ThemeEngine.Current,
4698         not SystemColors.  Fix lots of misc issues with property setters.
4700         * DataGrid.cs: move loads of style information out of this class
4701         as it's being duplicated with DataGridTableStyle.  keep track of a
4702         special DataGridTableStyle for the properties we used to mirror
4703         here.  Switch all the style properties to access this table style
4704         instead of instance fields of this class.  Also add a internal
4705         class to represent parent rows (more needs to be stored here, like
4706         the selection state from the parent table, as well as the
4707         expansion state.)  Also, for datasources with relations, do the
4708         right thing for collapse/expand, and add support for the
4709         navigation/parent row buttons.
4711         Lastly, fix the crash in the 1.1.16 build.
4713         * GridTableStylesCollection.cs: make the explicit interface
4714         implementations call the class's methods as opposed to duplicating
4715         them.
4717         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
4718         0 so the text doesn't jump around when we move the cursor.
4720 2006-07-10  Jackson Harper  <jackson@ximian.com>
4722         * TextBoxBase.cs:
4723         * ListBox.cs: Match MS's ToString (this makes debugging focus
4724         stuff infinitely easier).
4726 2006-07-10  Jackson Harper  <jackson@ximian.com>
4728         * Control.cs (SelectNextControl): When checking the control's
4729         parent use this instead of ctrl.parent so that null can be passed
4730         to SelectNextControl. (I have unit tests for this).
4731         - Remove unused var.
4733 2006-07-10  Chris Toshok  <toshok@ximian.com>
4735         * CurrencyManager.cs: correct one regression, the removal of the
4736         finalType field.  Also, add a MonoTODO on CanAddRows, implement
4737         Refresh() correctly, and fix some event emission in
4738         ListChangedHandler.
4740 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
4742         * FileDialog.cs: Don't use brackets for new folders if they exist
4743           under *nix. Instead use -(number of existing folders +1).
4745 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
4747         * FileDialog.cs:
4748           - Fixed really nasty bug #78771
4749           - Don't block the whole GUI when reading directories with a lot of
4750             entries. Use an other thread instead and call BeginInvoke to
4751             update the ListView in MWFFileView
4753 2006-07-07  Chris Toshok  <toshok@ximian.com>
4755         * Control.cs (Dispose): release any Capture when disposing.
4757 2006-07-07  Chris Toshok  <toshok@ximian.com>
4759         * LinkLabel.cs (Select): if we chain up to the parent, set
4760         focused_index to -1 so we'll search for the first available link
4761         the next time the user tabs into us.  Also, if the direction is
4762         backward and focused_index == -1, start the search from the last
4763         element.
4765 2006-07-07  Chris Toshok  <toshok@ximian.com>
4767         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
4768         is beyond the end of the text, don't do anything.
4769         (CreateLinkPieces): set our ControlStyles.Selectable based on
4770         whether or not we have any links.
4771         (Link.Invalidate): use a loop instead of foreach.
4772         (Link.set_Start): null out owner.sorted_links so it'll be
4773         recreated by CreateLinkPieces.
4775 2006-07-06  Chris Toshok  <toshok@ximian.com>
4777         * LinkLabel.cs: revert the SetStyle change.
4779 2006-07-06  Chris Toshok  <toshok@ximian.com>
4781         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
4782         (OnEnableChanged): s/Refresh/Invalidate
4783         (OnGotFocus): if we have a focused index already, refocus it (so
4784         if we mouse out/in to the window it'll focus the right link).
4785         (OnKeyDown): move the tab handling out of here.
4786         (OnLostFocus): don't set focused_index to -1, so we can refocus it
4787         when we lose focus.
4788         (OnMouseDown): don't Capture here - Control handles it.  Also,
4789         focus the active link.
4790         (OnMouseUp): don't deal with Capture.
4791         (OnPaintBackgroundInternal): remove.
4792         (OnTextAlignChanged): CreateLinkPieces before calling the
4793         superclass's method.
4794         (OnTextChanged): call CreateLinkPieces before calling superclass's
4795         method.
4796         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
4797         move around.
4798         (Select): implement this, moving the selection between different
4799         links, and call parent.SelectNextControl if we don't have another
4800         link to focus in the given direction.
4801         (CreateLinkPieces): call Invalidate instead of Refresh.
4802         
4803 2006-07-06  Chris Toshok  <toshok@ximian.com>
4805         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
4806         new LinkLabel internals.
4808         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
4809         over pieces looking for active/focused/etc links.  also, deal with
4810         runs of text (and links) with embedded \n's in them, and use
4811         MeasureCharacterRanges instead of MeasureString to figure out the
4812         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
4813         two-step.
4815 2006-07-04  Jackson Harper  <jackson@ximian.com>
4817         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
4818         XKB or key auto repeat, do it manually.  Without key auto repeat,
4819         when a key is held down we get key press, key release, key press,
4820         key release, ... with auto repeat we get key press, key press, key
4821         press ..., and then a release when the key is actually released.
4823 2006-07-03  Jackson Harper  <jackson@ximian.com>
4825         * TabControl.cs:
4826         * ThemeWin32Classic.cs: Tabs do not obey normal background color
4827         rules, they are always control color regardless of the background
4828         color.
4830 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
4832         * FileDialog.cs: Added internal class MWFConfig.
4833           Removed Registry support and replaced it with support for the new
4834           MWFConfig class. See MWFConfig comments for more information.
4836 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
4838         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
4839           rectangle. Added some patches from eno from bug #78490 and fixed
4840           the arrow position for small up and down CPDrawScrollButtons.
4842 2006-06-30  Jackson Harper  <jackson@ximian.com>
4844         * InternalWindowManager.cs: Remove some debug code.
4845         * Form.cs: When an MdiParent is set to null, the window is
4846         "detatched" and becomes a normal window.
4847         * MdiClient.cs: Don't bring the new child form to the front until
4848         it is activated (setting it as active does this), this makes the
4849         previously active forms titlebar get redrawn as inactive.
4851 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
4853         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
4854           with later controls
4856 2006-06-29  Mike Kestner  <mkestner@novell.com>
4858         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
4859         arrow in keynav state.  Fixes #78682.
4861 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
4863         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
4864           order (fixes #78393)
4866 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
4868         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
4869           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
4870           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
4871           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
4872           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
4873           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
4874           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
4875           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
4876           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
4877           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
4878           enumerations (FlagsAttribute, SerializableAttribute, added/removed
4879           values)
4881 2006-06-28  Mike Kestner  <mkestner@novell.com>
4883         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
4885 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
4887         * PropertyGrid.cs,
4888           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
4889           item lines from other area (It also makes BackColor consistent and
4890           compatible with .NET). Fixed bug #78564.
4892 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
4894         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
4895         Patch from Eno for #78555.
4897 2006-06-27  Chris Toshok  <toshok@ximian.com>
4899         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
4901         * DataGridColumnStyle.cs: same.
4903         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
4904         
4905         * DataGridDrawingLogic.cs: nuke.
4907 2006-06-27  Chris Toshok  <toshok@ximian.com>
4909         * DataGridTableStyle.cs: clean up the constructors, and build the
4910         list of child relations for this table.  I have no idea if this is
4911         where we should be doing it (it probably isn't), but since we're
4912         already iterating over the properties..
4914         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
4915         struct and array for keeping track of row information, similar to
4916         what's shown in a hack on
4917         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
4919         * Theme.cs: be consistent about the naming of DataGrid methods,
4920         prefering ColumnWidths and RowHeights over columnsWidths and
4921         RowsHeights.
4923         * ThemeWin32Classic.cs: same, and also add support for variable
4924         sized rows (and the +/- expansion icons for related rows).
4926 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
4928         * TextBoxBase.cs: Applied Eno's patch from #78660
4930 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
4932         * Form.cs (ScaleCore): We don't want to scale our form if it's
4933           state is minimized or maximized, but we still need to scale our
4934           child windows. Also, added try/finally block to ensure layout
4935           gets reset (Fixes #78697)
4937 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
4939         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
4941 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
4943         * Form.cs: Fixed c+p error and added check to resize form if minimum
4944           size is bigger than current size (Fixes #78709)
4946 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
4948         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
4950 2006-06-26  Mike Kestner  <mkestner@novell.com>
4952         * ComboBox.cs: only do Keypress handling in the combo when there  
4953         are items in the collection. Fixes #78710.
4955 2006-06-26  Chris Toshok  <toshok@ximian.com>
4957         * Binding.cs: make this work bi-directionally.  also, clear up
4958         other mixups between Push/Pull Data (e.g. we're supposed to pull
4959         data when validating).
4961         * BindingManagerBase.cs: trim some fully qualified collection
4962         types.
4964         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
4966 2006-06-23  Chris Toshok  <toshok@ximian.com>
4968         * PropertyManager.cs: It appears (according to the unit tests)
4969         that PropertyManager doesn't use
4970         PropertyDescriptor.AddValueChanged to track propery value changes
4971         in its datasource, but uses the same scheme as Binding, where it
4972         looks for a <Property>Changed event and binds to it.
4974         Also, according to the docs, IsSuspended always returns false for
4975         a property manager with a non-null datasource.
4977 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
4979         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
4980           need to update the actual DialogResult. (Fixes #78613)
4982 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
4984         * Form.cs (ShowDialog): Release any captures before running the
4985           new message pump (fixes #78680)
4987 2006-06-22  Mike Kestner  <mkestner@novell.com>
4989         * ListView.cs: Layout column widths properly in details mode even 
4990         if HeaderStyle.None is set.  Fixes #78691.
4992 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
4994         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
4996 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
4998         * Control.cs (ContainsFocus): Using new driver method to get focused
4999           window, instead of trying to use internal tracking var, which can
5000           recursion issues (Fixes #78685)
5001         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
5002           XplatUIWin32.cs: Added GetFocus method to return focused window
5004 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5006         * ColorDialog.cs: when the mouse button is pressed inside the color
5007         matrix, don't let the cursor move out of it until the button is
5008         released, which is the behavior on windows. Changed 'colours' by
5009         'colors' to use the same word consistently.
5011 2006-06-21  Chris Toshok  <toshok@ximian.com>
5013         * DataGrid.cs: add in some basic navigation stuff (navigating to a
5014         child relation and back, using a stack).  Also, remove
5015         GetDataSource and the code that calls it - it's not needed.  Also,
5016         track CurrencyManager.ListName's removal.
5018 2006-06-21  Chris Toshok  <toshok@ximian.com>
5020         * CurrencyManager.cs: push some of the original type checking from
5021         BindingContext.CreateBindingManager to here, and remove some of
5022         the finalType stuff.  Need more tests to make sure I've got the
5023         ListName part right, and we might need more in SetDataSource.
5025         * PropertyManager.cs: add a ctor that takes just the datasource,
5026         and no property name.  Make SetDataSource work with a null
5027         property_name, and make Current return the data_source if the
5028         property descriptor is null.  this makes 'string foo = "hi";
5029         BindingContext[foo].Current' return "hi" as it should.
5031         * RelatedCurrencyManager.cs: make this code more generic - there's
5032         no reason the parent manager has to be CurrencyManager, and
5033         there's no reason to pass the DataRelation.  It suffices to use a
5034         BindingManagerBase and PropetyDescriptor.
5036         * RelatedPropertyManager.cs: make a similar change here.
5037         
5038         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
5039         flower I knew it could be.
5041 2006-06-20  Chris Toshok  <toshok@ximian.com>
5043         * PropertyManager.cs: the PropertyChangedHandler is invoked when
5044         data in the source has changed and we need to update the control,
5045         so s/PullData/PushData.
5047         * CurrencyManager.cs: Refresh is meant to update the control from
5048         data in the datasource.  So, s/PullData/PushData.
5050         * BindingContext.cs: add more ugliness (we weren't handling the
5051         case where data_source = DataTable and data_member = column_name).
5053         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
5054         from the perspective of the datasource.  PullData pulls from the
5055         control, PushData pushes to the control.
5057 2006-06-20  Chris Toshok  <toshok@ximian.com>
5059         * BindingContext.cs: rewrite the CreateBindingManager code to
5060         handle navigation paths more or less properly.  This could
5061         definitely stand some more work, in particular to push the
5062         recursion up to the toplevel.  But that relies on fixes in other
5063         places (System.Data comes to mind).
5065         Also, move to a flat hashtable (and encode the twolevel nature of
5066         the dictionary into the hash key).  This lets us implement the
5067         IEnumerable.GetEnumerator method.
5069         * RelatedCurrencyManager.cs: new class.  Update our view based on
5070         our relation and our parent CurrencyManager's position.
5072         * CurrencyManager.cs: split out some logic from the ctor into
5073         SetView, so it can be called from the new RelatedCurrencyManager
5074         subclass.
5076         * RelatedPropertyManager.cs: new class.  Update our datasource
5077         based on the position of our parent CurrencyManager.
5079         * PropertyManager.cs: split out some logic from the ctor into
5080         SetDataSource, so it can be called from the new RelatedDataSource
5081         subclass.  Also, make the Current getter return the value
5082         of the PropertyDescriptor, not the data_source.
5084         * Binding.cs: no need to duplicate the string splitting code here.
5086 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
5088         * Control.cs:
5089           - set_Enabled: OnEnabledChanged is not called if the inherited state 
5090             of the control is not altered, even though  we might be changing the
5091             internal state of the control (#78458)
5092           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
5093             OnEnabledChanged, to allow easy altering of any child window state
5094           - OnEnabledChanged: Added code to enable/disable driver window state
5095           - OnParentEnabledChanged: Instead of firing the event, call 
5096             OnEnabledChanged, which will fire the event and also a) set driver
5097             window state and pass the enabled state to any grandchildren (#78458)
5099 2006-06-19  Jackson Harper  <jackson@ximian.com>
5101         * InternalWindowManager.cs: We don't set the cursor explicitly
5102         thats done via the response to NCHITTESTs.
5103         - Don't need to adjust for titlebar heights anymore, the
5104         coordinates are coming in the correct coordinates now (see peters
5105         last patch).
5108 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
5110         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
5111           being translated relative to whole window, instead of client window.
5112           That caused broken offsets on mouseclick (and caused gas for our
5113           InternalWindowManager)
5115 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
5117         * TextControl.cs:
5118           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
5119           - Undo(): Added replay of cursor move on DeleteChars action; added
5120             calling Undo() again if a recorded cursor move is invalid (to
5121             ensure that some action is performed on Undo)
5122         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
5124 2006-06-16  Jackson Harper  <jackson@ximian.com>
5126         * MdiClient.cs: Instead of just sizing maximized windows when
5127         there is a resize we also have to adjust the Y of minimized
5128         windows, so they stay pinned to the bottom of the mdi container.
5129         - Eliminate separate tracking of the active control, we can just
5130         get this from the controls collection.
5131         - Paint the decorations for the newly activated titlebar so we get
5132         a pretty blue bar.
5133         * InternalWindowManager.cs:
5134         * ThemeWin32Classic.cs: Minimized windows get all three buttons
5135         even if they are a tool window.
5136         
5137 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
5139         * TextControl.cs (Undo): Handle non-existent cursor locations in the
5140           undo buffer, these can happen when text was deleted and the cursor
5141           was recorded first. Since we will also have a recorded cursor
5142           after the delete this is not an issue. (Fixes #78651)
5144 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
5146         * AccessibleObject.cs: Remove dependence on Control.is_selected;
5147           instead properly track control states internally (allows us to
5148           remove is_selected from Control)
5150 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5152         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
5153         whose width is not a multiple of 8.
5155 2006-06-13  Jackson Harper  <jackson@ximian.com>
5157         * MdiClient.cs:  Only maximize the next child if the current one
5158         is maximized.
5160 2006-06-13  Chris Toshok  <toshok@ximian.com>
5162         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
5163         modified.  Also, guard against grid or grid_drawing being null in
5164         Invalidate.
5166         * DataGrid.cs: Reformat tons of getters/setters.  In the
5167         DataMember setter, just call SetNewDataSource instead of
5168         duplicating some of its functionality.  In SetNewDataSource, don't
5169         check ListManager for null, since the property getter creates the
5170         object if needed.
5172         * DataGridTableStyle.cs: don't set TableStyle or call
5173         SetDataGridInternal on the column here, it's done in
5174         GridColumnStylesCollection.Add.
5176         * GridColumnStylesCollection.cs: fix all the explicit interface
5177         implementations to just call our methods.  Nuke AddInternal() and
5178         move the body of it to Add().  Also, add a call to
5179         column.SetDataGridInternal to Add().
5181         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
5182         base()+duplicate code.  Also, use the Format property instead of
5183         format to generate an Invalidate ala MS.  Lastly, create the
5184         textbox here, unconditionally.
5185         (set_Format): call Invalidate.
5186         (get_TextBox): no need to call EnsureTextBox.
5187         (Commit): remove the message box.
5188         (Edit) remove the call to EnsureTextBox.
5189         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
5190         (EnterNullValue): no need to check textbox for null.
5191         (HideEditBox): no need to check textbox for null.
5192         (SetDataGridInColumn): add the textbox to the grid's controls.
5193         (EnsureTextBox): nuke.
5194         
5195 2006-06-13  Jackson Harper  <jackson@ximian.com>
5197         * MdiWindowManager.cs: Hook up to the maximized menus paint event
5198         and redraw the buttons when needed. Unhook when the window is
5199         unmaximized.
5200         * MainMenu.cs: Add an internal Paint event, the mdi window manager
5201         needs this so that it can redraw its buttons when the menu is
5202         repainted.
5203         * InternalWindowManager.cs:
5204         * Form.cs: The method order has changed for DrawMaximizedButtons,
5205         so that it can be a PaintEventHandler.
5206         
5207 2006-06-13  Jackson Harper  <jackson@ximian.com>
5209         * MdiClient.cs: When we close a maximized mdi window, the next mdi
5210         window is activated and maximized, even if it wasn't before.
5211         - When  a new window is activated repaint the decorations of the
5212         old one, so that it no longer has the Active "look" (the blue
5213         titlebar).
5214         * InternalWindowManager.cs: Open up CreateButtons to base classes
5215         so they can recreate the buttons on state changes.
5216         - If a window is maximized give it all three buttons
5217         * MdiWindowManager.cs: Create the titlebar buttons when the state
5218         is changed, this is needed because a toolwindow will not have all
5219         three buttons until it is maximized.
5221 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
5223         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
5224           Fixed bug #78609.
5226 2006-06-12  Jackson Harper  <jackson@ximian.com>
5228         * KeysConverter.cs: Make sure we handle the Ctrl special case
5229         if its the only key.
5230         
5231 2006-06-12  Jackson Harper  <jackson@ximian.com>
5233         * Theme.cs: Add a method to get the size of a managed window
5234         toolbar button.
5235         * InternalWindowManager.cs: Remove the ButtonSize property, this
5236         should be retrieved from the theme.
5237         * MdiWindowManager.cs: Get the button size from the theme
5238         * ThemeWin32Classic.cs: Make the method to get the managed window
5239         titlebar button size public.
5240         - Handle the different button sizes of maximized toolwindows
5241         (should match any maximized window).
5242         - Get the titlebar height from the theme, not the WM (which gets
5243         it from the theme).
5245 2006-06-12  Jackson Harper  <jackson@ximian.com>
5247         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
5248         event down to the mdi window manager.
5249         - Expose some extra stuff to base classes
5250         - Make sure to end the Capture on an NC Mouse up, so that we can
5251         get double clicks properly, and the sizing doens't stick.
5252         - When doing PointToClient contain it in the workable desktop
5253         area, this prevents windows from changing size when the cursor is
5254         pulled outside of the working area while sizing.
5255         * MdiWindowManager.cs: When we get a double click maximize the
5256         window.
5257         - Reset the cursor after handling mode changes.
5259 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
5261         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
5262           current desktop, instead of just assuming a 0, 0 origin. This
5263           is needed for our internal window manager, to know the top
5264           margin of the desktop
5266 2006-06-12  Chris Toshok  <toshok@ximian.com>
5268         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
5269         we need this to get rid of the selected background in the bool
5270         column.
5271         (CancelEditing): move the ConcedeFocus call to above the Abort
5272         call.  Also, set is_changing to false and invalidate the row
5273         header if we were changing before.
5274         (ProcessKeyPreviewInternal): remove, since noone outside this
5275         class calls it anymore.  Roll the code into ProcessKeyPreview.
5276         (EndEdit): remove the internal version.
5277         (InvalidateCurrentRowHeader): make private.
5279         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
5280         Keys.Escape handling (and with it the last call to
5281         DataGrid.EndEdit from outside the class.)
5284 2006-06-12  Chris Toshok  <toshok@ximian.com>
5286         * DataGridTextBox.cs (.ctor): isedit defaults to false.
5287         (OnKeyPress): set isedit to true.
5288         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
5289         already handled by the grid.
5291         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
5292         right.  ugh.
5293         (set_DataSource): SetDataSource always returns true, so stop
5294         putting it in an if statement.
5295         (EndEdit): get rid of some {}'s
5296         (ProcessGridKey): return true in case Keys.Escape.
5297         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
5298         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
5299         PositionChanged, stopped connecting to CurrentChanged.
5300         (GetDataSource): simplify this a bunch.
5301         (SetDataSource): change return type from bool to void.
5302         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
5303         to this, and make sure we don't set ListManager.Position inside
5304         set_CurrentCell.
5305         (OnListManagerItemChanged): if we're passed an actual index,
5306         redraw that row.
5308         * CurrencyManager.cs (set_Position): don't call PullData here.
5310 2006-06-09  Jackson Harper  <jackson@ximian.com>
5312         * TreeNode.cs:  Recalculate the visible order before doing the
5313         Expand/Collapse Below calls, because those calls generate an
5314         expose.
5315         - Reduce calls to the TreeView property, which is mildly expensive
5316         by using a local var.
5317         * Form.cs: Layout the MDI child windows when creating the parent
5318         form.
5319         - Don't use the internal constructor anymore
5320         * MdiClient.cs: use the parent form width/height (if available)
5321         when laying out the child windows, we do this because the
5322         mdiclient isn't docked yet when the initial layout is done.
5323         - Don't need an internal constructor anymore.
5325 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5327         * FileDialog.cs: handle access errors when trying to create a folder
5328         or changing to a directory. No need to initialize out parameters.
5330 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
5332         * FileDialog.cs: Append a number when creating a new folder if the
5333           folder already exists (use parenthesis instead of square brackets)
5335 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
5337         * FileDialog.cs:
5338           - Disabled registry support for windows and added better registry
5339             error checking for other systems (need to investigate why it
5340             works perfectly on my system)
5341           - If a folder already exist show an error MessageBox instead of
5342             trying to create an indexed name.
5343           - Fixed a non intentional typo.
5345 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5347         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
5349 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
5351         * FileDialog.cs: When creating a new folder don't crash if the
5352           folder already exists.
5354 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
5356         * FileDialog.cs: Allmost a complete rewrite.
5357           - added a "virtual" file system that handles the differences
5358             between unix and windows file systems (especially the directory
5359             structure). Moved most of the directory and file handling code
5360             into the vfs.
5361             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
5362             UnixFileSystem and FSEntry.
5363           - Recently used folder/directory, size, location and used file names
5364             (file name ComboBox) are now stored in the registry and get read
5365             before the dialog shows up (fixes part 6 of bug #78446).
5366           - Creation of new folders/directories is now possible (context menu
5367             or ToolBar). Added TextEntryDialog for this that fills in the gap
5368             until ListView.LabelEdit works.
5369           - Fixed cursor handling (bug #78527) and focus handling for
5370             PopupButtonPanel
5371           - Various "Search in" ComboBox enhancements. The content of the
5372             dropdown listbox now almost matches ms.
5373           - Changed the behaviour when the user switches to SpecialFolder
5374             Recent to show the ListView in View.Details.
5375           - Beside using the ToolBar to change the View property of the
5376             file ListView it is now possible to use the context menu too.
5378 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
5380         * ComboBox.cs: Don't create a new ObjectCollection when an item
5381           gets inserted. Just insert the item in the existing object_items
5382           ArrayList.
5384 2006-06-08  Jackson Harper  <jackson@ximian.com>
5386         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
5387         that the treeview and root node checks are done also, this fixes a
5388         regression i caused in the unit tests.
5390 2006-06-07  Wade Berrier <wberrier@novell.com> 
5392         * RichTextBox.cs: More ISO8859-1 -> unicode
5394 2006-06-07  Mike Kestner  <mkestner@novell.com>
5396         * ComboBox.cs : use items to hold highlight/selection so that
5397         collection insertions don't require synchronization.
5399 2006-06-07  Jackson Harper  <jackson@ximian.com>
5401         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
5402         routine.  We now always keep the sized edge at the cursor instead
5403         of computing movement and adjusting rects.  There is one buglet
5404         with this method though when the cursor is moved over area that
5405         the window can not expand too (such as the toolbars on the desktop).
5407 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5409         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
5410         here. Fixes crash on startup in AlbumSurfer.
5412 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
5414         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
5415           values
5417 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5419         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
5420         statement to avoid calling XNextEvent which will block if another thread
5421         took the event that we were expecting. Fixes bug #78605.
5423 2006-06-07  Mike Kestner  <mkestner@novell.com>
5425         * ListView.cs : isolated checkbox clicking from the selection logic.
5426         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
5428 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5430         * Form.cs: Check that the value passed to Form.DialogResult
5431         is a valid enum value.
5433 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5435         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
5436         Computer'. Clicking it in the network view goes to 'My Computer'.
5437         Added CIFS filesystem type. Display the mount point of filesystems.
5438         Avoid duplicate mount points (happens for me with CIFS);
5440 2006-06-06  Jackson Harper  <jackson@ximian.com>
5442         * InternalWindowManager.cs: Draw the maximized windows buttons
5443         when resizing.
5445 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5447         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
5448         all other dialogs. Fixes bug #78585.
5450 2006-06-06  Mike Kestner  <mkestner@novell.com>
5452         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
5453         Only invalidate checkbox on checkstate changes to avoid flicker.
5454         * ListBox.cs : avoid unselect/select when clicking selected item.
5455         avoid reselection flicker for already multiselected items.
5456         Fixes #78382.
5458 2006-06-06  Jackson Harper  <jackson@ximian.com>
5460         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
5461         the parent form so that the menu is removed if needed.
5463 2006-06-06  Mike Kestner  <mkestner@novell.com>
5465         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
5466         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
5468 2006-06-06  Mike Kestner  <mkestner@novell.com>
5470         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
5473 2006-06-06  Jackson Harper  <jackson@ximian.com>
5475         * Control.cs: Use the property (instead of the field) to get the
5476         default cursor so it is instantiated correctly.
5477         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
5478         resizes so we need to manually repaint the window decorations here.
5479         - Set the titlebar button locations as soon as they are created,
5480         otherwise they are not set correctly on win32.
5481         
5482 2006-06-06  Chris Toshok  <toshok@ximian.com>
5484         * CurrencyManager.cs (set_Position): call PullData before
5485         OnCurrentChanged.
5486         (AddNew): after calling IBindingList.AddNew, update our
5487         listposition, and call OnCurrentChanged/OnPositionChanged (without
5488         calling PullData).
5489         (OnCurrentChanged): remove the call to PullData from here.
5490         (OnItemChanged): remove the call to PushData from here.
5491         (OnPositionChanged): change the test from == null to != null to
5492         match the other methods.
5493         (ListChangedHandler): the grossest part of the patch.  Implement
5494         this such that it passes the unit tests in CurrencyManagerTest and
5495         the output more or less matches that of MS's implementation.
5497 2006-06-06  Mike Kestner  <mkestner@novell.com>
5499         * ListView.cs : only update check state on single click.
5500         * ThemeWin32Classic.cs : fix focus drawing for details view without
5501         fullrowselect.  Fixes #78454.
5502         * XplatUIX11.cs : fix for double click emission.
5504 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
5506         * PropertyGridView.cs : Applied Atsushi's patch to fix
5507         font dialog bug  (#78197).
5509 2006-06-05  Jackson Harper  <jackson@ximian.com>
5511         * TreeNode.cs: Compute the next node for expanding/collapsing
5512         correctly. We now factor in nodes without a NextNode
5513         correctly. (Fixes somes cases in nunit-gui).
5514         * InternalWindowManager.cs: Set the bounds when updating the
5515         virtual position of a tool window.
5516         
5517 2006-06-05  Chris Toshok  <toshok@ximian.com>
5519         * DataGrid.cs: rename cached_currencymgr to list_manager.
5520         (set_CurrentCell): move SetCurrentCell code here, and clean it up
5521         some.
5522         (CurrentRow, CurrentColumn): single accessors so we can make the
5523         cursor movement code a lot easier to understand.
5524         (CurrentRowIndex): implement this in terms of CurrentRow.
5525         (BeginEdit): clean this up a bit.
5526         (CancelEditing): sort out the is_editing/is_changing/is_adding
5527         stuff a little.
5528         (EndEdit): minor changes.
5529         (OnKeyDown): add a comment about a (most likely) unnecessary
5530         check.
5531         (OnMouseDown): cancel editing when we click on a row header.  And
5532         use the CurrentRow setter, not CurrentCell.
5533         (ProcessDialogKey): directly call ProcessGridKey.
5534         (UpdateSelectionAfterCursorMove): factor out this common block of
5535         code (it's used everywhere that we move the cursor by updating row
5536         or column).
5537         (ProcessGridKey): pretty substantial overhaul.  Use the
5538         CurrentRow/CurrentColumn properties to make the code a lot more
5539         readable.  Only use the CurrentCell property when we have to
5540         modify both row and column at once.  Tab behavior is still broken,
5541         and Delete is untested.
5542         (Select): if we have no selected rows, set selection_start to
5543         @row.
5544         (EditCurrentCell): rename EditCell this.  It was only ever invoked
5545         with CurrentCell as the arg, so drop the arg and rename it.
5547         * DataGridColumnStyle.cs: clean up the constructors a little, and
5548         drop CommonConstructor().
5550         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
5551         actually get notified when the user hits it.
5552         (ProcessKeyMessage): *substantially* simplify this method.
5553         There's no reason (that I can see) for the textbox to be making
5554         calls into the datagrid at all.  Remove all of them but the ones
5555         for Enter handling.  those will take some more work.
5557         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
5558         calling HideEditBox.
5559         (HideEditBox): if we have an active textbox, render it invisible
5560         without causing a re-layout of the datagrid.
5562 2006-06-05  Mike Kestner  <mkestner@novell.com>
5564         * ListView.cs : fix NRE crasher when focuseditem is cleared by
5565         collection changes by resetting it to Items[0].  Fixes #78587.
5567 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5569         * MessageBox.cs: if the height of the text is larger than the icon_size,
5570         use that. Fixes bug #78575.
5572 2006-06-05  Jackson Harper  <jackson@ximian.com>
5574         * TreeView.cs: Fix line drawing when scrolling.  To do this each
5575         node is basically responsible for drawing its entire horizontal
5576         area.  When drawing a node it draws its parent node lines if
5577         needed.
5578         - Adjust the clip area to the viewport rectangle
5579         - Fix Left/Right key handling to match MS. (It expand/collapses
5580         and moves to parents/first child but does not move selection to
5581         sibling nodes).
5582         - Fix SetTop to work with new bound calculation code
5583         - When scrollbars are no longer needed we need to reset scrolling
5584         vars and recalculate the visible order so the redraw is correct
5585         * TreeNode.cs: We can't expand/collapse nodes with no children.
5587 2006-06-03  John Luke  <john.luke@gmail.com> 
5589         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
5590         so the colors work without dev packages
5591         
5592 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
5594         * Control.cs 
5595           - Select: Implemented to just use activate. Seems to match MS 
5596             behaviour closest. Documented to only do actual control walking 
5597             based on it's parameters if in a container control so I moved 
5598             the code there.
5599           - Removed selection check logic from our internal Select() method
5600         * ContainerControl.cs:
5601           - Select: Moved selection logic from Control here, since MS documents
5602             that containers obey the bool arguments. No longer calling base
5604 2006-06-02  Jackson Harper  <jackson@ximian.com>
5606         * TreeView.cs: If the selected node isn't changed when we get
5607         focus update the previously selected node so that we see the
5608         selection box.
5610 2006-06-02  Mike Kestner  <mkestner@novell.com>
5612         * ComboBox.cs: restructure grab and general mouse event handling.
5613         Make the composite control raise mouse events like it was a single
5614         control for leaves/enters/motion/up/down events.  fix dropdown list
5615         coordinate mangling and refactor it into the scrollbar subclass to
5616         reduce code duplication.  Fixes #78282 #78361 and #78457.
5618 2006-06-02  Mike Kestner  <mkestner@novell.com>
5620         * ScrollBar.cs: remove Capture setting/clearing, as it happens
5621         automatically in the Control.WndProc.
5623 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5625         * FileDialog.cs: fix crash when running SharpChess, which sets the
5626         FilterIndex to 2 with only one Filter.
5628 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5630         * ToolBar.cs: add SizeSpecified property.
5631         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
5632         try to figure out our real size, otherwise fallback to what the
5633         container says.
5635 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
5637         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
5638         * Control.cs (WndProc): MS always calls the DefWndProc to pass
5639           up the event
5641 2006-06-01  Mike Kestner  <mkestner@novell.com>
5643         * ListView.cs: revamp the focus management in ListView.  It still
5644         causes churn of LostFocus/GotFocus emissions on clicks, but it's
5645         better than not handling focus at all.  Will revisit when pdb feels
5646         the general focus handling is solid.  Fixes #78526.
5648 2006-06-01  Jackson Harper  <jackson@ximian.com>
5650         * TreeView.cs: Set the default border style in the constructor.
5651         - Move painting to use OnPaintInternal instead of capturing
5652         WM_PAINT, this is the correct way of doing things
5653         - UpdateBelow shouldn't invalidate the scrollbar area
5654         - Cap the top on update below in case the node was above the top
5655         of the viewport rectangle.
5656         - ExpandBelow and Collapse below need to obey Begin/End Update.
5657         * TreeNode.cs: Make is_expanded internal so the treenode
5658         collection can change it without firing the whole event chain.
5659         * TreeNodeCollection.cs: When clearing all the child nodes make
5660         sure to recalc the visible order.
5661         - Improve algo for remove the top node
5663 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
5665         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
5666           SendMessage directly calling window procedures, which in turn might
5667           call SetFocus()
5669 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
5671         * Control.cs: Don't handle WM_SETFOCUS if the same window already
5672           has focus (works around X11 sending a FocusIn after our SetFocus)
5673         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
5675 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
5677         * Mime.cs: Fix for the NET_2_0 build.
5678           NameValueCollection needs StringComparer now.
5680 2006-05-31  Chris Toshok  <toshok@ximian.com>
5682         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
5683         return (via an out parameter) the starting X of the column.
5684         (UpdateVisibleColumn): track change to FromPixelToColumn.
5685         (HitTest): add a ColumnResize case here.
5686         (DrawResizeLine): new function, probably poorly named.
5688         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
5689         only need to keep one reference.
5690         (set_ListManager): same.
5691         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
5692         Also, add support for HitTestType.ColumnResize.
5693         (OnMouseMove): add column resize behavior here, and change the
5694         cursor to the correct one as we move around the datagrid.
5695         (OnMouseUp): terminate the column resize if we're resizing.
5696         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
5697         for the current cell.
5698         (ConnectListManagerEvents): use cached_currencymgr.
5699         (DisconnectListManagerEvents): fill this in, using
5700         cached_currencymgr.
5701         (SetCurrentCell): remove cached_currencymgr_events handling.
5702         (SetDataMember): only call DisconnectListManagerEvents if
5703         cached_currencymgr is != null.
5704         (SetDataSource): same.
5705         (OnListManagerCurrentChanged): cached_currencymgr_events ->
5706         cached_currencymgr.
5708 2006-05-31  Jackson Harper  <jackson@ximian.com>
5710         * BindingManagerBase.cs: Remove somedebug code that creeped into
5711         SVN.
5712         * TreeNode.cs: We get the indent level dynamically right now, so
5713         don't track it as a member.
5714         * TreeNodeCollection.cs: Make sure all nodes added to the list
5715         have parents, treeviews/topnodes setup properly.
5716         - Don't attempt to track indent level.
5718 2006-05-30  Jackson Harper  <jackson@ximian.com>
5720         * BindingContext.cs: Create the currency manager tables here.
5721         This allows us to more easily create null tables (when bad data
5722         members are used), and more easily create related currency
5723         managers.
5724         * CurrencyManager.cs: All the table creation stuff is done by the
5725         binding context now.
5726         - Current should throw an exception if listposition is -1.
5727         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
5728         been bound yet.
5730 2006-05-30  Mike Kestner  <mkestner@novell.com>
5732         * ListView.cs: allow reexpansion of zero-width column headers.
5733         Fixes #78528.
5735 2006-05-28  Chris Toshok  <toshok@ximian.com>
5737         * CurrencyManager.cs (get_Current): after the late binding
5738         listposition = -1 fix, we need to guard against it here and return
5739         null, otherwise we raise an exception (which is swallowed
5740         elsewhere, and breaks datagrid databinding.)
5742 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
5744         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
5745           than WM_SYSKEY, don't throw if get something unexpected (#78507)
5747 2006-05-26  Jackson Harper  <jackson@ximian.com>
5749         * ControlPaint.cs:
5750         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
5751         values, it's faster and it's all we care about (we don't care if
5752         the names aren't equal).
5753         * KeyboardLayouts.cs: Eliminate some dead code.
5754         - Lazy init things
5755         * X11Keyboard.cs: Lazy init keyboard detection.
5756         - Cleanup access modifiers a little.
5758 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
5760         * XplatUIX11.cs: Once again, attempting to get layout just right.
5762 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
5764         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
5765           the sizes of each link section, that will result in sizes that
5766           match DrawString's layout (Fixes #78391)
5768 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
5770         * FileDialog.cs: If AddExtension property is true autocomplete the
5771           extensions in SaveFileDialog correctly. Fixes bug #78453.
5772           Set MyNetwork and MyComputer to "C:\" for windows. This should
5773           fix part 8 of bug #78446 for now.
5775 2006-05-26  Chris Toshok  <toshok@ximian.com>
5777         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
5778         invalidate the current row header if we need to, but presumably
5779         we'll invalidate the row corrsponding to the bounds or
5780         editingControl.
5781         (GridHScrolled): switch back to this method, as it's part of the
5782         public api.  *sigh*.
5783         (GridVScrolled): same.
5784         (OnMouseWheel): hack up something that more or less works.  Call
5785         GridHScrolled/GridVScrolled directly, instead of duplicating much
5786         of their code here.
5787         (EnsureCellVisibility): reinstate a bunch of this code, since we
5788         can't just set the scrollbar Value and expect to do all the work
5789         in the ValueChanged handler.  Also, Call Update() after scrolling
5790         in one direction so the other XplatX11.ScrollWindow call has the
5791         proper stuff in the proper places.
5792         (EditCell): set is_editing to true before calling .Edit.
5794         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
5795         don't bother comparing first.
5796         (OnKeyPress): call grid.ColumnStartedEditing before calling
5797         base.OnKeyPress.  this will set is_changing and invalidate the row
5798         header if necessary.
5799         (ProcessKeyMessage): for WM_CHAR messages, call
5800         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
5801         and WM_KEYDOWN.
5802         
5803         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
5804         it's done in the DataGrid.
5805         (NextState): call grid.ColumnStartedEditing, which takes care of
5806         invalidating the row header (and setting is_changing).
5808         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
5809         here.  it's done in the DataGrid.
5811 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5813         * Control.cs: allow changing the cursor when the mouse position is
5814         out of bounds but Capture is set.
5815         * LinkLabel.cs: handle the case when the mouse button is pressed on the
5816         linklabel but released somewhere else.
5818 2006-05-25  Jackson Harper  <jackson@ximian.com>
5820         * TreeView.cs: When we get focus if there is no selected node make
5821         it the top node
5822         - Remove some uneeded setup code from Draw.
5823         * TreeNodeCollection.cs: If the tree doesn't have a top node when
5824         a new node is inserted make the new node the top.
5825         * XplatUIX11.cs:
5826         * Timer.cs: Use Utc time so that no local time zone stuff needs to
5827         be used (should be faster).
5828         
5829 2006-05-25  Chris Toshok  <toshok@ximian.com>
5831         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
5832         problem with the last commit.
5834 2006-05-25  Chris Toshok  <toshok@ximian.com>
5836         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
5837         need the invalidate call here, while scrolling right-to-left via
5838         the left arrow key (i.e. moving the editing cell while scrolling).
5840         * DataGrid.cs (.ctor): remove the initialization of
5841         ctrl_pressed/shift_pressed.  We no longer track them using key
5842         up/down handlers, but by using Control.ModifierKeys.  Also, switch
5843         to using ValueChanged handlers on the scrollbars instead of
5844         Scrolled event handlers.  This simplifies a bunch of the scrolling
5845         code.
5846         (GridHValueChanged): rename from GridHScrolled, and change it to
5847         work with the new event args.
5848         (GridVValueChanged): same.
5849         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
5850         (OnMouseWheel): actually scroll the datagrid.  Don't change the
5851         selected cell.
5852         (ProcessGridKey): correct all the keyboard navigation stuff I
5853         could find.  Ctrl up/down/left/right/home/end work now.
5854         (EnsureCellVisibility): correct method name spelling.  Also,
5855         simplify this a touch by not explicitly calling the
5856         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
5857         scrollbar value.
5858         (OnKeyUpDG): no need for this method now.
5859         
5860 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5862         * LinkLabel.cs: display the OverrideCursor when hovering the label.
5863         Fixes bug #78392.
5865 2006-05-25  Chris Toshok  <toshok@ximian.com>
5867         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
5868         r61019.
5870 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
5872         * Application.cs: Moved setting of is_modal and closing to before
5873           we create the control, to allow the event handlers called as a
5874           result of creation affect closing. Also removed Gonzalo's previous
5875           change to setting DialogResult, the behaviour has been moved to 
5876           Form.ShowDialog()
5877         * Form.cs: 
5878           - ShowDialog(): Removed explicit creation of the form, let RunLoop
5879             handle it instead
5880           - ShowDialog(): If no dialog result is set, we need to return Cancel
5881           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
5882             the close is cancelled
5884 2006-05-25  Jackson Harper  <jackson@ximian.com>
5886         * StatusBar.cs: We only need to update the sizes of the other
5887         panels when we have auto size contents.  Also we are only updating
5888         the contents of the panel, not the borders, so compensate for the
5889         border width (TODO: get this width from the theme somehow).
5890         * TreeView.cs: Scrollable is true by default
5891         - Use invalidate instead of refresh where needed
5892         - Factor the scrollable value into scrollbar updating
5893         - Update the scrollbars if the Scrollable property is altered
5894         - Update the selected node if its ImageIndex is changed
5895         - Handle null nodes in UpdateNode (mainly so we don't have to
5896         check if selected is null when updating it
5897         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
5898         are factored into the visible count
5899         - Use VisibleCount for clarity in the code
5900         - When the font is changed we need to recurse through all the
5901         nodes and invalidate their sizes
5902         
5903 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5905         * Application.cs: set the DialogResult to fixed when the main form is
5906         hidden or destroyed while being modal.
5908 2006-05-25  Miguel de Icaza  <miguel@novell.com>
5910         * Theme.cs: Use Tangoified messagebox icons. 
5912         (GetSizedResourceImage): Also cope with width = 0 and do not
5913         trigger a warning in that case (0 means "give me your icon from
5914         the resouce, no special size needed).
5916 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
5918         * Application.cs: Leave runloop if the the main modal form is 
5919           hidden (fixes #78484)
5921 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
5923         * BindingContext.cs : reject null datasource in Contains() and
5924           Item[].
5925         * CurrencyManager.cs : check data_member validity when data_source
5926           is dataset. When it is late binding, the initial position is -1.
5928 2006-05-24  Jackson Harper  <jackson@ximian.com>
5930         * TreeNodeCollection.cs: Dont't recalculate the visible order on
5931         inserted nodes that aren't visible.  This changes the
5932         max_visible_order which confuses scrollbar settings.
5933         - Use the enumerator to get the prev node instead of duplicating
5934         code.
5935         * TreeView.cs: Use new method for setting scrollbar values
5936         - Don't set the bounds every time the scrollbar is updated
5937         - When updating below the root node use an invalidate instead of a
5938         refresh to prevent the child controls (scrollbars) from being
5939         refreshed. (UpdateBelow still needs to be reworked anyways).
5940         - Reenable SetBottom now that visible orders are set correctly,
5941         added some debug code incase we ever get bad values there again.
5942         - Set the scrollbar max to 2 less then the max value, this
5943         compensates for the max value being one above the node count, and
5944         for scrollbars adding one extra "notch".
5945         - When drawing image nodes if there is an imagelist we draw the
5946         first image in the list if the supplied image index is out of the
5947         image list's bounds.
5948         
5949 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
5951         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
5952           we receive a size change from the WM (Fixes #78503)
5954 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
5956         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
5957           rectangle (Fixes #78501)
5959 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
5961         * ButtonBase.cs: 
5962           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
5963             as a bitfield.
5964           - Fixed MouseMove to no longer switch pressed state unless the left
5965             mouse button is pressed. Atsushi provided the original patch (#78485)
5966           
5967 2006-05-24  Jackson Harper  <jackson@ximian.com>
5969         * ScrollBar.cs: New internal methods that allow us to change a
5970         couple values on the scrollbar (the most common case is maximum
5971         and large change) without getting multiple invalidates.
5973 2006-05-24  Chris Toshok  <toshok@ximian.com>
5975         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
5976         (Edit): save off the original state in oldState, and set
5977         grid.is_editing to true.
5978         (OnKeyDown): abort editing if escape is pressed.  also, call
5979         NextState if space is pressed.
5980         (OnMouseDown): call NextState.
5981         (NextState): factor out shared code from OnKeyDown and OnMouseDown
5982         here.  Also, only invalidate the row header once (on the initial
5983         is_changing switch) to save on redraws.
5985 2006-05-24  Chris Toshok  <toshok@ximian.com>
5987         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
5988         if the value in the cell is different than it was before.  This
5989         keeps us from triggering a layout when we move around a datarid
5990         with a highlighted cell.
5991         (Edit): suspend layout when creating/positining the text box, and
5992         resume passing false so we don't ever actually re-layout.
5993         (ReleaseHostedControl): same.
5994         (EnsureTextBox): reformat slightly, and set WordWrap to false.
5996         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
5997         control-key sequences should go to the datagrid - remove that
5998         lock.  Also, modify the conditions under which we move between
5999         cells when moving the cursor within a cell, and remove the "this"
6000         and "base" from field accesses.  We weren't even consistent, given
6001         they all were in the base class.
6003 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
6005         * Binding.cs : (.ctor)
6006           An obvious NRE fix for BindingTest.CtorNullTest().
6008 2006-05-23  Chris Toshok  <toshok@ximian.com>
6010         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
6011         them between lines.  This fixes some quirks editing cells in the
6012         datagrid.
6014 2006-05-23  Jackson Harper  <jackson@ximian.com>
6016         * TreeView.cs: Use begin/end update when doing expand/collapse all
6017         so that we don't get flicker on the scrollbar.
6019 2006-05-23  Jackson Harper  <jackson@ximian.com>
6021         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
6022         treenode calculations to be independant of the painting code. To
6023         do this nodes track a visible order which is calculated by the
6024         treeview.
6025         - Call new methods for expanding/collapsing nodes.  These methods
6026         use scrollwindow so we don't have to update everything below the
6027         node.
6028         * TreeView.cs: Refactored drawing and scrolling code.  We don't
6029         need to update nodes when drawing anymore or calculate scrollbar
6030         stuff.
6031         - Added new methods for expanding/collapsing nodes. These methods
6032         use ScrollWindow so as to not have to redraw all the nodes below.
6033         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
6034         we add/remove nodes or sort.
6035         - Handle removing the selected and the top node properly.
6037 2006-05-23  Chris Toshok  <toshok@ximian.com>
6039         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
6040         maybe this should actually happen in the datagrid code?
6041         (EndEdit): no need to invalidate anything, given that
6042         ReleaseHostedControl causes the datagrid to relayout, which
6043         invalidates everything anyway.
6045         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
6046         in SetCurrentCell).
6047         (set_SelectionBackColor): call InvalidateSelection instead of
6048         Refresh.
6049         (set_SelectionForeColor): same.
6050         (BeginEdit): Flesh this out a bit.
6051         (CancelEditing): only do any of this if we're editing/adding.
6052         (EndEdit): same.
6053         (OnMouseDown): there's no need to cancel editing here, it's done
6054         in SetCurrentCell.
6055         (SetCurrentCell): only invalidate the current row header if it's a
6056         different row than the new one.
6057         (ShiftSelection): fix this to work like MS does.
6058         (ResetSelection): factor out the invalidation of selected_rows to
6059         InvalidateSelection.
6060         (SetDataSource): cancel any editing that's going on.
6062         * DataGridColumnStyle.cs
6063         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
6064         call the non-interface version.
6066         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
6067         header rectangle with the clip rectangle so we don't redraw the
6068         entire header for just a small area.  Gets rid of the last flicker
6069         when horizontally scrolling.
6070         (DataGridPaintRow): same.
6072 2006-05-23  Mike Kestner  <mkestner@novell.com>
6074         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
6075         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
6076         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
6077         Critical bug report.
6079 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
6081         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
6082           and this fixes #78493
6084 2006-05-23  Miguel de Icaza  <miguel@novell.com>
6086         * Theme.cs (GetSizedResourceImage): Scale images if the proper
6087         size is not found.  
6088         
6089         * FileDialog.cs: Do not change the background for the side bar as
6090         it wont work nicely with the theme, and also reduces the artifacts
6091         in rendering the icons (which I want to fix too).
6093         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
6094         resources, not resgen resources. 
6096         (PlatformDefaultHandler): Pull images using the new API.
6098 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
6100         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
6101           a reference to the hwnd and will not remove it unless there are
6102           no pending exposures (fixes #78341)
6103         * XplatUI.cs: Improved debug
6105 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
6107         * MenuAPI.cs : don't handle OnClick event when it was not the left
6108           button. Fixed bug #78487.
6110 2006-05-23  Mike Kestner  <mkestner@novell.com>
6112         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
6113         prefer submenus to the top menu for item lookup, to avoid popping down
6114         top-row items.
6116 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
6118         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
6119           Graphics.FillRectangle as the visual results are really bad (even
6120           on win). We now draw perfect arrows (and perfect shadows when the
6121           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
6122           Pen.DashPattern to draw the dots of each line.
6124 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
6126         * FileDialog.cs: Update the filename combobox when navigating through
6127           the ListView with the cursor keys. Fixes part 7 of bug #78446.
6129 2006-05-22  Mike Kestner  <mkestner@novell.com>
6131         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
6132         Fixes #78463.
6134 2006-05-22  Mike Kestner  <mkestner@novell.com>
6136         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
6137         requests. Fix a misspelled parameter and a copy paste exception error
6138         in Select.
6140 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
6142         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
6143           to get the same width/height (5/13) on X11 as the default font has on
6144           win32. This means that our DefaultFont emSize is smaller than the 
6145           the MS SWF equivalent (even thought the width/height stays the same)
6147 2006-05-20  Jackson Harper  <jackson@ximian.com>
6149         * MdiClient.cs:
6150         * MdiWindowManager.cs:
6151         * InternalWindowManager.cs: Make sure to use the border width from
6152         the theme.
6154 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
6156         * PrintDialog.cs: Implements printer details
6158 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
6160         * FileDialog.cs: Added focus handling for PopupButtonPanel.
6161           Fixes part 1 and 2 of bug #78446
6163 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
6165         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
6166           instead of sticking to the first ever calculated value
6168 2006-05-19  Mike Kestner  <mkestner@novell.com>
6170         * ComboBox.cs: fix mouse motion selection to use MousePosition and
6171         PointToClient, since Capture is set. Fixes #78344.
6173 2006-05-19  Mike Kestner  <mkestner@novell.com>
6175         * ListView.cs: match MS behavior in Details view where items are not
6176         drawn if Columns.Count == 0. 
6177         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
6178         Use a separate pen to draw the check, since changing the width affects
6179         the box as well.  Fixes #78454.
6181 2006-05-18  Miguel de Icaza  <miguel@novell.com>
6183         * ListView.cs: ArgumentOutOfRangeException, single versions of the
6184         exception should throw the name of the invalid argument.
6186         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
6187         there are no files listed. 
6189 2006-05-18  Jackson Harper  <jackson@ximian.com>
6191         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
6192         up.
6194 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
6196         * Control.cs: Brought back our old UpdateZOrder method as a private
6197           function and switched our calls from UpdateZOrder to the new one.
6198           This fixes the Paint.Net canvas disappearing bug.
6200 2006-05-18  Jackson Harper  <jackson@ximian.com>
6202         * Theme.cs:
6203         * ThemeWin32Classic.cs:
6204         * InternalWindowManager.cs: Move the drawing into the theme,
6205         expose everything the theme should need from the window manager.
6207 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
6209         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
6210           from the call to NativeWindow to avoid walking up the parent chain
6211           further than needed (speeds up setting cursors and avoids setting
6212           the wrong cursor if a parent has another cursor defined)
6213         * Cursor.cs: When loading an icon as cursor, MS uses the center of
6214           the icon as hotspot, not what's contained as hotspot in the icon
6215           file. This fixes the perceived drawing offset seen with Paint.Net
6216         
6217 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
6219         * XplatUIX11.cs: 
6220           - Store the calculated rectangle in Hwnd object and use it when 
6221             setting the client size
6222           - Force Toolwindows to always be type Dock, to ensure they're on top
6224 2006-05-18  Mike Kestner  <mkestner@novell.com>
6226         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
6227         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
6228         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
6229         Substantial refactoring to remove confusing nested classes. Coding
6230         standard and Get+Set->property refactorings.  Shift to index based
6231         highlighting in ComboListBox instead of constantly using IndexOf and
6232         Items[]. Add invalidations on resize for DropDownList to fix ugliness
6233         in FileDialog growth.  Draw borders manually since Simple mode needs
6234         to look like two independent controls.  Make listbox border
6235         conditional to DropDownStyle.  Improved OwnerDraw support.
6237 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
6239         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
6240         Don't set the disposed graphics to null, so we can throw the "right"
6241         exception if the graphics is reused later (added a flag to avoid 
6242         double disposing). Some behaviours are different under 2.0 and are
6243         filled under bug #78448.
6245 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
6247         * Control.cs: When double-buffering is enabled, we need to reset
6248           our graphics context between paint calls. Otherwise, any 
6249           transformations and other alterations on the context will 
6250           become cumulative (#77734)
6252 2006-05-18  Mike Kestner  <mkestner@novell.com>
6254         * ListView.cs: do focused item selection like MS on clicks. 
6255         Rework focus handling for ItemControl so LostFocus invalidates as
6256         well.
6257         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
6258         the ListView ItemControl has focus.
6260 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
6262         * XplatUIX11.cs: If client_window ends up being width or height zero
6263           due to border settings, move it off window inside whole_window (#78433)
6265 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
6267         * Mime.cs: Shrink the mime file cache correctly.
6269 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
6271         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
6273 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
6275         * XplatUIX11.cs (AddExpose): More sanity checks
6277 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
6279         * XplatUIX11.cs:
6280           - AddExpose: Don't add expose ranges outside the size of our
6281             window
6282           - Cast opacity values to Int32 to avoid crashes with certain
6283             values
6284           - Added disabled code paths that protect against illegal cross-
6285             thread painting (Developers.exe)
6287 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
6289         * ProgressBar.cs: Invalidate the control when it's resized
6290           since block size is based on control size. (#78388)
6292 2006-05-16  Miguel de Icaza  <miguel@novell.com>
6294         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
6295         of setting the incoming argument to the "reset" value, we set the
6296         this.datamember to string.empty (before we were invalidating the
6297         incoming data).   
6299         Fixes 78420
6301 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
6303         * Form.cs: Only apply transparency settings after the form
6304           is created. (Fixes #77800)
6306 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
6308         * ApplicationContext.cs: Grab the HandleDestroyed event so
6309           we know when to fire OnMainFormClosed 
6311 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
6313         * Application.cs: Introduced sub-class to allow tracking of
6314           threads and centralized triggering of the event mess for
6315           ThreadExit, AppExit, etc..  (#76156)
6317 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
6319         * MimeIcon.cs:
6320           - Do not return a null icon index value for a mime subclass.
6321             Instead try the main mime type class too.
6322           - Seems that some newer distributions don't have a link to some
6323             gnome default icons anymore. So check the default gnome dir too.
6324           
6326 2006-05-16  Jackson Harper  <jackson@ximian.com>
6328         * MdiClient.cs: Don't paint the parent background image if we have
6329         our own background image.
6331 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
6333         * Control.cs:
6334           - PerformLayout: Do not shrink space filled by DockStyle.Fill
6335             controls, all filled controls are supposed to overlap (#78080)
6336           - UpdateZOrder is supposed to update the control's z-order in the
6337             parent's z-order chain. Fixed to behave like that
6338           - BringToFront: Removed obsolete code
6339           - SendToBack: Simplyfied
6340           - SetChildIndex: Trigger layout calculations when Z-order changes
6341             since layout is done by z-order
6343 2006-05-16  Chris Toshok  <toshok@ximian.com>
6345         [ fixes bug #78410 ]
6346         * DataGrid.cs (set_AlternatingBackColor): use
6347         grid_drawing.InvalidateCells instead of Refresh().
6348         (set_BackColor): call grid_drawing.InvalidateCells.
6349         (set_BackgroundColor): use Invalidate instead of Refresh.
6351         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
6352         invalidate the cell area.
6354 2006-05-15  Chris Toshok  <toshok@ximian.com>
6356         [ fixes bug #78011 ]
6357         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
6358         on to DataGridPaintRow.
6359         (DataGridPaintRow): take a clip argument, and only draw the cells
6360         which intersect it.  same with the not_usedarea.
6362         * Theme.cs (DataGridPaintRow) add @clip parameter.
6364         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
6365         XplatUI.ScrollWindow.
6366         (ScrollToRow): same.
6368         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
6369         with last column which was causing a gray swath to appear with the
6370         XplatUI.ScrollWindow code.
6372 2006-05-15  Chris Toshok  <toshok@ximian.com>
6374         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
6375         use XplatUI.ScrollWindow.
6376         (VerticalScrollEvent): use XplatUI.ScrollWindow.
6378 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
6380         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
6382 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
6384         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
6385           file since there are no equivalent X11 cursors
6387 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
6389         * MonthCalendar.cs : DateTimePicker should reflect selected date
6390           on mouse*up*, not mouse*down*. Fixed originally reported part of
6391           bug #76474.
6393 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
6395         * TabControl.cs : When argument index is equal or more than tab
6396           count, just ignore. Fixed bug #78395.
6398 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
6400         * Control.cs: Dispose all child controls when control is diposed (#78394)
6402 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
6404         * ColorDialog.cs: Finally it is possible to select the color with
6405           the text boxes
6407 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
6409         * PrintDialog.cs: Fix typo
6411 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
6413         * PrintDialog.cs: PrintDialog is not resizable
6414         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
6415           color. Made some ToolBar drawing methods protected virtual.
6417 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
6419         * PrintDialog.cs: Implementation of the PrintDialog
6421 2006-05-12  Chris Toshok  <toshok@ximian.com>
6423         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
6424         thumb, instead use MoveThumb.  This has the side effect of making
6425         most of the other thumb moving machinery use MoveThumb as well.
6426         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
6427         need to actually invalidate the rectangle where the new thumb will
6428         go.
6429         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
6430         We force an Update() after, so it's not as fast as it could be,
6431         but at least there's zero flicker and no droppings.
6432         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
6433         (UpdateThumbPos): add another argument (dirty), which says whether
6434         or not to calculate/add dirty regions which we later invalidate.
6435         For cases where we know we're going to use MoveThumb, we pass
6436         false for this.  Otherwise, pass true.
6438 2006-05-12  Jackson Harper  <jackson@ximian.com>
6440         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
6441         the status bar.
6442         
6443 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
6445         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
6446           and GetClipRegion methods and UserClipWontExposeParent property.
6447         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
6448           overriding UserClipWontExposeParent property, setting to false, since
6449           Win32 handles the required expose messages to draw our clipped parent
6450           areas internally
6451         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
6452           PaintEventStart to set the user clip region if set.
6453         * Control.cs: 
6454           - Now internally tracking the Region for the control since we need to
6455             store it if the handle is not yet created and only set it when it
6456             becomes created. Before setting the region forced handle creation
6457           - Added code to draw the parents underneath a user-clipped region
6458         * Hwnd.cs: Added UserClip property
6460 2006-05-12  Chris Toshok  <toshok@ximian.com>
6462         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
6463         (set_Maximum): same.
6464         (set_Minimum): same.
6465         (set_SmallChange): same.
6466         (OnMouseUpSB): remove the call to refresh when releasing the
6467         thumb.  We shouldn't need it.
6468         
6469 2006-05-12  Miguel de Icaza  <miguel@novell.com>
6471         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
6472         AutoSize set to None, we do not need to relayout everything, we
6473         just need to invalidate the current region.
6475         (Draw): Do not draw the entire ClientArea, just redraw the
6476         clip area being passed.
6478         * MdiClient.cs: Make MdiClient constructor with the Form argument
6479         internal. 
6481 2006-05-12  Jackson Harper  <jackson@ximian.com>
6483         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
6484         parents background image,  but strangely not their own.
6485         - (DrawStatusBarPanel): Take into account horizontal alignment
6486         when drawing the strings and icons.
6488 2006-05-12  Mike Kestner  <mkestner@novell.com>
6490         * ListBox.cs: avoid invalidations for focus when the collection is
6491         empty. 
6493 2006-05-12  Chris Toshok  <toshok@ximian.com>
6495         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
6496         invalidate the entire thumb area.  Call InvalidateDirty which
6497         limits the redraw to the thumb itself and surrounding pixels.
6499         * XplatUIX11.cs (ScrollWindow): optimize copying.
6500         
6501 2006-05-12  Chris Toshok  <toshok@ximian.com>
6503         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
6504         Figure out the positioning/layout in a single pass instead of
6505         multiple recursive invocations.  Speeds up the initial display of
6506         the data grid.  Also, make many things private that were
6507         originally public but unused outside this class.
6509 2006-05-11  Jackson Harper  <jackson@ximian.com>
6511         * MdiClient.cs: Improved layout code.
6513 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
6515         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
6516           not SelectedObject.
6518 2006-05-11  Chris Toshok  <toshok@ximian.com>
6520         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
6521         union of that will always be {0,0,width,height}.
6523 2006-05-11  Jackson Harper  <jackson@ximian.com>
6525         * Form.cs: Match MS's DefaultSize for forms (they must have
6526         changed the size in sp2).
6528 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
6530         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
6532 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
6534         * TextControl.cs : Fixed bug #78109. This incorrect position
6535           comparison caused crash on automatic line split.
6536         * TextBoxBase.cs : reduce duplicate code.
6538 2006-05-10  Jackson Harper  <jackson@ximian.com>
6540         * MdiClient.cs: Active form is only sent to the back when using
6541         the Next form functionality, when a form is clicked the current
6542         active shouldn't be sent to the back.
6543         - Layout the mdi windows when the container is first made visible.
6544         * Form.cs: Give the MdiClient a ref to the containing form when we
6545         create it.
6546         
6547 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
6549         * LinkLabel.cs : link_font could be uninitialized, so populate one
6550           before actual use. Fixed bug #78340.
6552 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
6554         * XplatUIX11.cs : clipboard format native value is IntPtr.
6555           Fixed bug #78283.
6557 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
6559         * Control.cs: 
6560           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
6561             which is passed up the parent chain by DefWndProc
6562           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
6563             to DefWndProc (#77956)
6564         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
6566 2006-05-10  Jackson Harper  <jackson@ximian.com>
6568         * MdiClient.cs: We need to remove the controls from the mdi
6569         collection, when we close the window.
6570         * MdiWindowManager.cs: Special handling of closing mdi windows.
6571         * InternalWindowManager.cs: Make the close method virtual so the
6572         mdi window manager can handle it specially.
6574 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
6576         * DataGrid.cs:
6577           - Recalculate grid when the data source has changed
6578           - Matches styles provided by user from all data sources types
6579         * DataGridTableStyle.cs: For columns that provided by the user set the
6580         with the preferred value is there was unassigned.
6581         * CurrencyManager.cs: throw OnItemChanged event
6583 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
6585         * PictureBox.cs: Don't animate until handle is created. Start animation
6586           when handle is created.
6588 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
6590         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
6591           current codebase.
6592         * XEventQueue.cs: We don't need to provide the extra info
6594 2006-05-10  Jackson Harper  <jackson@ximian.com>
6596         * MdiClient.cs: If the mdi clients parent form has a background
6597         image set, we draw that background image for the mdi area's
6598         background.
6600 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
6602         * TextBoxBase.cs: Set IBeam cursor (#78347)
6604 2006-05-10  Mike Kestner  <mkestner@novell.com>
6606         * ToolBar.cs: fix some text padding issues with ButtonSize
6607         calculation. Update the default size to match MS documentation.
6608         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
6609         button size. Fixes #78296.
6611 2006-05-10  Mike Kestner  <mkestner@novell.com>
6613         * ListBox.cs: use is_visible for scrollbar positioning in case the
6614         control isn't on screen yet.  Fix off by one with Right vs Width
6615         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
6616         
6617 2006-05-10  Jackson Harper  <jackson@ximian.com>
6619         * X11Dnd.cs: Drop to a control with another control on top of it.
6620         * ToolBar.cs: Work on a copy of the buttons list, so that it can
6621         be modified in click handlers. TODO: Look for similar problems in
6622         other controls.
6624 2006-05-09  Jackson Harper  <jackson@ximian.com>
6626         * Form.cs: Window managers need the old window state when setting
6627         window state now.
6628         * InternalWindowManager.cs: Allow the base mdi window manager to
6629         handle more of the MDI only stuff (like maximize buttons).
6630         * MdiWindowManager.cs: Fix some snafus in changing the window
6631         state.  Add all the menu functionality, for both popup and
6632         maximized menus.
6633         * MdiClient.cs: When a new form is selected the currently
6634         activated form is sent to the back, this matches MS.
6635         - Implement a new method to activate the next mdi child window.
6637 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
6639         * Control.cs: 
6640           - Added new InternalCapture method to allow controls to prevent
6641             the capture behaviour on the click handlers
6642           - Switched to use InternalCapture
6643         * ComboBox.cs:
6644           - Using InternalCapture to prevent mouse captures from being released
6645             on mouse button release (Fixes #78100)
6646         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
6647           returns Form borders if a caption is present. (Fixes #78310)
6649 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
6651         * TreeNode.cs: Changed serialization .ctor to not require every field
6652           to be present. (#78265)
6653         * OwnerDrawPropertyBag.cs: Added serialization .ctor
6655 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
6657         * MimeIcon.cs: for is faster than foreach for strings.
6659 2006-05-05  Mike Kestner  <mkestner@novell.com>
6661         * CheckedListBox.cs: update check handling code to not use selected.
6662         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
6663         behavior for visual feedback, motion response, shift/ctrl handling,
6664         and properly deal with all 4 selection modes. Updates to bounds
6665         handling logic.  Add scroll wheel support. [Fixes #77842]
6667 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
6669         * ListView.cs:
6670           - Moved adding of Implicit controls into .ctor. That way, subsequent
6671             creation of the controls will not cause them to think they are 
6672             toplevel windows (fixes #78200 header problem)
6673           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
6674           - Switched visibility setting of header control to use internal field
6675             to avoid triggering handle creation
6676           - Now checking if handle is created before causing a refresh when items
6677             are added (This makes us now match handle creation time with MS)
6678         * Splitter.cs: Removed loading of private splitter cursor, switched to
6679           Cursors version now that that is loading the right ones
6680         * Cursors.cs: Load proper splitter cursors from resources
6681         * Cursor.cs: Added second method of loading resource cursors for the 
6682           VS.Net users amongst us
6684 2006-05-05  Mike Kestner  <mkestner@novell.com>
6686         * ListView.cs: give header_control a minimum size based on the
6687         ListView size.
6689 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
6691         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
6692           window seems to do that with metacity, so set that type. (#78120)
6694 2006-05-05  Mike Kestner  <mkestner@novell.com>
6696         * ListViewItem.cs: fix Details mode checkbox layout bug.
6697         * ThemeWin32Classic.cs: draw a ListView column header for unused space
6698         at the end of the header, if it exists. [Fixes for #78200]
6700 2006-05-04  Jackson Harper  <jackson@ximian.com>
6702         * MdiClient.cs: Add a helper property to get the container form.
6703         * MdiWindowManager.cs: We have to make sure to use the menu origin
6704         when drawing the icons and buttons, this fixes maximized window
6705         icons/buttons on win32.
6706         * InternalWindowManager.cs: Reset the restore captions when a
6707         window goes from Maximized to Minimized and vice versa. Move the
6708         DrawMaximizedButtons into the MdiWindowManager source, tool
6709         windows can't be maximized. NOTE: This could use a little
6710         refactoring if time ever permits.
6711         
6712 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
6714         * TextBox.cs: Add MWFCategoryAttributes
6715         * TextBoxBase.cs: Add MWFCategoryAttributes
6716         * Form.cs: Add MWFCategoryAttributes
6718 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
6720         * Control.cs: Add MWFCategoryAttributes
6721         * ScrollableControl.cs: Add MWFCategoryAttributes
6723 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
6725         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
6726           Divider is true. Fix a little glitch in PropertyToolBar
6727           drawing code
6729 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
6731         * Control.cs:
6732           - Dispose: Call base.Dispose, this causes the disposed event
6733             to be fired (and probably other, more important stuff)
6734           - SetVisibleCore: Set is_visible to true after creating the
6735             window so that the window still gets created invisible (if
6736             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
6737             to generate a WM_ACTIVE message
6738         * Form.cs: Call Dispose when we want to destroy the window, instead of
6739           just destroying the handle (Dispose will do that for us)
6740         * XplatUIX11.cs:
6741           - RootWindow also needs a queue, so we can properly process the
6742             property change events from RootWindow (like Activate)
6743           - Generatic synthetic WM_ACTIVE message when the active window is
6744             being destroyed
6746 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
6748         * LinkLabel.cs: Trigger a recalc of our label dimensions when
6749           bounds are changed
6751 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
6753         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
6754           for determining width and height (image might not be assigned if
6755           we're drawing an imagelist)
6757 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
6759         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
6760         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
6761           height from system
6762         * Theme.cs: No longer returns hardcoded menu height, instead calls
6763           new driver method
6764         * Form.cs (OnLoad): Scaling happens before triggering Load events 
6765           on MS (# 78257)
6767 2006-05-01  Mike Kestner  <mkestner@novell.com>
6769         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
6771 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
6773         * TextBoxBase.cs: Removed Fixme
6774         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
6776 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
6778         * XplatUIX11.cs:
6779           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
6780             the rectangle relative to the parent, considering borders. We
6781             don't really want that.
6782           - ScrollWindow: Fixed warning to be more understandable
6783         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
6784           scrollbars and scroll only the visible area
6785         * RichTextBox.cs: Removed debug output
6787 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
6789         * NumericUpDown.cs (Text): Just use base
6790         * UpDownBase.cs: Ensure txtView is created before using it
6792 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
6794         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
6795           casting to IntPtr to avoid 64bit overflow errors
6797 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
6799         * Control.cs:
6800           - AllowDrop: Don't force handle creation.
6801           - CreateHandle: Added call to tell driver if we're allowed to drop
6803 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
6805         * FileDialog.cs: Remember the last directory not only for the
6806           current instance but also for new FileDialog instances.
6808 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
6809         
6810         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
6811           broke sending async messages
6813 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
6815         * XplatUIX11.cs:
6816           - ScrollWindow: Fixed method. We finally generate expose events again
6817             for scrolled areas. This was causing 'garbage' when scrolling
6818             textbox and other controls that used ScrollWindow
6819           - Switched from using the regular queue for paint events to the MS 
6820             model of 'generating' paint events when the queue is empty.
6821             We use the new XQueueEvent.Paint subclass to store which windows
6822             need painting.
6823           - AddExpose now takes the x/y/width/height of the exposed area
6824             and inserts the window into the paint queue if not already there
6825           - InvalidateWholeWindow: Switched to use new AddExpose method
6826           - UpdateMessageQueue: Added which queue to monitor for paint events
6827           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
6828             the unlikely case nothing above handles it. We reset the expose
6829             pending states to get them off the queue.
6830           - GetMessage: Now pulls a paint event if no other events are in the
6831             queue
6832           - Invalidate: Switched to new AddExpose method
6833           - PeekMessage: Updated to understand pending paint events
6834           - UpdateWindow: Fixed logic bug. We were only updating if the window
6835             didn't need updating. Also switched to sending WM_PAINT directly,
6836             like MS does.
6837         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
6838           and random access Remove(). The random access is needed to handle
6839           UpdateWindow() where a WM_PAINT is sent directly without accessing
6840           the queue.
6841         * ScrollBar.cs: Added Update() calls to cause immediate updates to
6842           allow for better feedback when scrolling. Scrollbars are small and
6843           the immediate update should make it 'feel' more responsive without
6844           slowing things down. ScrollBar still needs it's invaliate logic
6845           updated to not always invalidate the whole bar on certain changes.
6847 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6849         * Control.cs:
6850         (BackColor): if the control does not support a transparent background,
6851         return the default backcolor when the parent backcolor is transparent.
6853 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
6855         * Application.cs: Updated to new StartLoop/GetMessage API
6856         * RichTextBox.cs: Provide some output on RTF parsing errors
6857         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
6858           new queue_id argument to GetMessage and PeekMessage to allow faster
6859           handling of per-thread queues in drivers.
6860         * Hwnd.cs: Added Queue tracking and property
6861         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
6862         * XEventQueue.cs: Added thread trackingA
6863         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
6864         * XplatUIX11.cs:
6865           - Implemented new per-thread queue
6866           - GetMessage: Fixed return/break behaviour on several cases. We were
6867             returning stale messages in some cases, instead of just processing
6868             the next message
6870 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
6872         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
6874 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
6876         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
6877           fixed off-by-one comparisons between Width/Height and Right/Bottom.
6879 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
6881         * PropertyGridView.cs: Fix drop down width.
6883 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
6885         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
6886           a mess in DrawToolBar, so I removed one of them.
6888 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
6890         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
6891           needed (clip). Otherwise we get artifacts.
6893 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
6895         * FixedSizeTextBox.cs: Added constructor to allow specifying which
6896           dimension is fixed
6897         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
6898           and switched FixedSizeTextBox to only be fixed vertical (#78116)
6899         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
6900           if it matches the scale base font (avoids unneeded scaling)
6902 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
6904         * X11DesktopColors.cs: One gtk_init_check should be enough
6906 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
6908         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
6909           match MS behaviour
6911 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
6913         * TextBoxBase.cs: 
6914           - Generate OnTextChanged for Backspace even if we're only deleting
6915             the current selection
6916           - When setting the Text property, only select all text if the
6917             control does not have focus when it is being set. Otherwise
6918             just place the cursor at the beginning of the control
6920 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
6922         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
6923           Added a little helper to draw PropertyGrid ToolBar with a different
6924           border and a different BackColor.
6925         * PropertyGrid.cs: Some background parts didn't get painted with the
6926           correct background color. Added a class that helps us to draw the
6927           correct border for PropertyGridView and a class that helps us to
6928           draw ToolBars with a different backcolor
6929         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
6931 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
6933         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
6934         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
6936 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
6938         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
6939           into the palette entries. Also, since we're working on a copy
6940           we needed to copy the palette back onto the bitmap.
6941         * Cursor.cs: Same fix as XplatUIWin32.cs.
6943 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
6945         * ImageListStreamer.cs: Need to read the var (or we're off)
6947 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
6949         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
6950           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
6951           TextBoxBase.cs: Unused var fixes
6952         * AxHost.cs: Small 2.0 fix
6953         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
6954           as it seems that is what at least Metacity expects. This will make
6955           icons show up on 64bit platforms. We still have some 64bit size
6956           issues, though, since the startup app window size still won't match.
6958 2006-04-25  Mike Kestner  <mkestner@novell.com>
6960         * *.cs: cleanup newly reported exception var unused warnings.
6962 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
6964         * ThemeWin32Classic.cs: Button image alignment now matches exactly
6965           ms
6967 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
6969         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
6970           image. The image position is always the same, no matter if the
6971           button is pressed or not.
6973 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
6975         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
6976           selection and set the correct filename for SaveFileDialog.
6977           Patch by Emery Conrad.
6979 2006-04-24  Mike Kestner  <mkestner@novell.com>
6981         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
6982         check for item.X outside the ClientRect instead of item.Y. Fixes
6983         #78151.
6985 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6987         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
6988         trust that value blindly and do some sanity check. Fixes bug #77814.
6990 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6992         * ImageListStreamer.cs: save the mask as a 1bpp image.
6994 2006-04-21  Mike Kestner  <mkestner@novell.com>
6996         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
6997         pass Checked and Indeterminate to the Theme Engine. Improve
6998         encapsulation with ListBox.
6999         * ListBox.cs: Keep a StringFormat instead of calculating it every item
7000         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
7001         nested types.  Move all CheckState functionality to CheckedListBox.
7002         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
7003         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
7004         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
7005         single base list. Fix scrollbar sizing and placement to mirror MS.
7006         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
7007         used.
7008         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
7009         for CheckedListBox by using new DrawItemState info.  Center the
7010         checkboxes on the items. Use new StringFormat property.
7012 2006-04-18  Jackson Harper  <jackson@ximian.com>
7014         * Form.cs: MdiChildren don't do default locations the same way as
7015         regular forms.  This prevents a crash when trying to position the
7016         mdi windows.
7018 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
7020         * PropertyGridTextBox.cs: Formatting, copyright
7021         * PropertiesTab.cs: Formatting
7022         * PropertyGrid.cs: Formatting
7023         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
7024           click toggling of values
7025           
7026 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
7028         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
7029         * Control.cs (.ctor): verify_thread_handle is static, don't reset
7030           every time a control is created
7031         * Application.cs: Removed obsolete EnableRTLMirroring method
7033 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
7035         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
7036         SelectedIndex to -1. Fixes bug #78121.
7038 2006-04-17  Jackson Harper  <jackson@ximian.com>
7040         * Binding.cs: Handle null values for Current and BindingContext.
7041         This occurs when binding is a little delayed.
7042         * CurrencyManager.cs: return null for Current when there are no
7043         items in the list.
7044         - Hookup to the listchanged event on the DataView and update
7045         bindings when the list is changed.  This fixes late binding of
7046         controls.
7048 2006-04-17  Jackson Harper  <jackson@ximian.com>
7050         * X11Dnd.cs:
7051         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
7052         Ringenbach.
7054 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
7056         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
7057           place
7058         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
7059           with the correct ButtonState
7061 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
7063         * XplatUIX11.cs: Improved distinguishing between window types to
7064           tell the WM a type closer to what the app wants (Fixes #78107)
7066 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
7068         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
7069           GrabHandle
7071 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
7073         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
7074           drawing code to reflect the size grip changes
7076 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7078         * ImageListStreamer.cs: fix handling of the mask that follows the main
7079         bitmap when deserializing and serialize it properly. The generated mask
7080         should better be a 1bpp image, but I'll do that later.
7082 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
7084         * FileDialog.cs: Show something in the DirComboBox on *nix if the
7085           path doesn't fit into some of our Current.Places
7087 2006-04-13  Jackson Harper  <jackson@ximian.com>
7089         * ComboBox.cs: Use borders instead of drawing our own decorations,
7090         try to obey correct rules for heights.
7091         * Theme.cs:
7092         * ThemeNice.cs:
7093         * ThemeClearLooks.cs:
7094         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
7095         this is now handled by borders.
7096         - Remove unused DrawListBoxDecorationSize method.
7097         
7098 2006-04-13  Mike Kestner  <mkestner@novell.com>
7100         * MenuAPI.cs: null guarding for the disbled click check fixes crash
7101         reported by Alex.
7103 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
7105         * ThemeWin32Classic.cs: 
7106           - Fixed CPDrawStringDisabled
7107           - Corrected drawing of disabled menu items
7108           - Fixed drawing of disabled radio buttons (bug #78095)
7109           - Draw check in a disabled CheckBox with color ControlDark 
7111 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
7113         * Form.cs: Use the provided width when calculating the menu size;
7114           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
7115           and ClientSize.Width won't be updated yet
7116         * Application.cs: Use Visible instead of Show() to make form visible,
7117           this way we create the handle later and menusize is considered
7119 2006-04-12  Mike Kestner  <mkestner@novell.com>
7121         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
7122         reporting.
7124 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
7126         * TextBox.cs: Implemented context menu
7128 2006-04-12  Mike Kestner  <mkestner@novell.com>
7130         * ListView.cs: implement box selection. fixes #77838.
7131         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
7133 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
7135         * XplatUIX11.cs: Added setting of window type when transient window
7136           is created (metacity would move it otherwise)
7137         * X11Structs.cs: Added WINDOW_TYPE atoms
7138         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
7139           background (the control is Opaque but still wants transparent
7140           backgrounds)
7142 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
7144         * Control.cs: Added OnPaintBackgroundInternal to allow controls
7145           that set Opaque but don't mean it (like all ButtonBase-derived
7146           controls) to still draw their background
7147         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
7148           the background
7150 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
7152         * Control.cs (PaintControlBackground): Set the graphics object
7153           on our PaintEvent to null to prevent it from being disposed
7154           when the PaintEvent gets disposed
7156 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
7158         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
7159         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
7161 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
7163         * Control.cs: 
7164           - Added transparency check to BackColor property. Transparent
7165             backgrounds are only allowed if the control styles permit it
7166           - Added recursive painting of parent control background and
7167             foreground if a control with a transparent backcolor is drawn
7168             (Thanks to Tim Ringenback for providing his 'hack' as a base
7169              for this patch) Fixes #77985 and #78026.
7170           - Added Opaque style check before calling OnPaintBackground, no
7171             need to draw the background if the control is opaque
7172           - Removed ControlAccessibleObject owner variable (inherited from
7173             base, no need to define again)
7174           - Added some documentation links explaining the drawing events
7175             and styles
7177 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
7179         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
7180           that the affected control is the located at the left border of our
7181           parent (Fixes #77936)
7183 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
7185         * TextBoxBase.cs: When rendering disabled or readonly controls,
7186           draw the background with 'Control' instead of 'Window' color as
7187           long as the user hasn't specifically set a color
7189 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
7191         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
7192           since that won't be updated if the user types text (only if it's
7193           programatically set)
7195 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
7197         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
7198           layout changes do to app-triggered resizes will have the proper
7199           display rectangle for layout
7201 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
7203         * ThemeWin32Classic.cs:
7204           - Make use of the SystemBrushes and SystemPens wherever possible
7205           - Corrected some highlight colors
7206           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
7207             drawing
7208         * Theme.cs: Added Empty field to CPColor struct
7210 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
7212         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
7213           is displayed when calculating the display rectangle. Thanks to Mike
7214           for teaching me the err of my ways.
7216 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
7218         * ScrollableControl.cs:
7219           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
7220             (instead of 0,0) and we now return the real width/height instead of
7221             just the clientrectangle, adjusted for padding. The rectangle is
7222             now cached and created by the new CalculateDisplayRectangle method.
7223           - Created new CalculateDisplayRectange method, which basically does
7224             what get_DisplayRectangle() did originally, but now using the 
7225             right edge instead of DisplayRectangle to determine the size of
7226             our scrollbars
7227           - get_Canvas(): Fixed it to properly calculate canvas for 
7228             right/bottom controls which seem to be placed to the right/bottom
7229             of any controls that have a fixed location
7230           - Removed TODO that's taken care of
7231           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
7232             and SetDisplayRectLocation according to new MSDN2 docs
7233           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
7234             event when that is called, this is added for compatibility
7235           - ScrollControlIntoView(): Implemented.
7236           - Switched scrollbars to be implicit, they shouldn't be selectable
7237         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
7238           call it when the active control is set/changed
7239         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
7240         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
7241           implicit_control variable (used for native Win32 message generation)
7242         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
7243           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
7244         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
7245         * XplatUIStructs.cs: Added ScrollBarCommands enum
7247 2006-04-10  Jackson Harper  <jackson@ximian.com>
7249         * ButtonBase.cs:
7250         * CheckedListBox.cs:
7251         * ComboBox.cs:
7252         * DataGrid.cs:
7253         * DataGridView.cs:
7254         * Form.cs:
7255         * GroupBox.cs:
7256         * ListBox.cs:
7257         * PrintPreviewControl.cs:
7258         * ProgressBar.cs:
7259         * PropertyGrid.cs:
7260         * Splitter.cs:
7261         * StatusBar.cs:
7262         * TrackBar.cs:
7263         * UpDownBase.cs: Fixup base event overrides.
7264         
7265 2006-04-06  Mike Kestner  <mkestner@novell.com>
7267         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
7268         all user-initiated value changes to min <= value <= max-thumbsz+1.
7269         (set_Value): check for vert/horiz when calculating new thumb position.
7270         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
7271         like MS does.
7272         (OnMouseMoveSB): refactor the thumb dragging code and refine
7273         invalidation logic to reduce flicker.
7274         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
7275         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
7276         (UpdateThumbPosition): small code readability cleanup
7278 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
7280         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
7281           different
7283 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
7285         * ThemeNice.cs: Use a better graphics effect when a button is pressed
7287 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
7289         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
7290         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
7291           This dramatically reduces the number of Pen.Dispose calls. 
7292           Where possible call ResPool methods only once instead of calling it
7293           over and over again (for example for the same color).
7295 2006-04-06  Mike Kestner  <mkestner@novell.com>
7297         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
7298         Also remove an unused private field on the collection. Fixes #77972.
7300 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
7302         * ThemeNice.cs: Added ToolBar drawing code
7304 2006-04-06  Mike Kestner  <mkestner@novell.com>
7306         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
7307         I'm assuming that means we need to look up the toplevel for the
7308         provided control. Fixes the crash trace in #77911 but exposes another
7309         crash in some strange reflection usage in NDocGui.
7311 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
7313         * ThemeNice.cs: Gave it a little silver touch and added Images
7314           method
7315         * FontDialog.cs: FontDialog is not resizable
7316         * FileDialg.cs: Added SizeGripStyle.Show
7318 2006-04-05  Jackson Harper  <jackson@ximian.com>
7320         * KeyboardLayouts.cs: Remove warning.
7322 2006-04-05  Jackson Harper  <jackson@ximian.com>
7324         * Control.cs: Enable OnPaintInternal so we can use it for drawing
7325         all of our controls instead of Paint +=.
7326         * ListBox.cs:
7327         * ListView.cs:
7328         * MenuAPI.cs:
7329         * MessageBox.cs:
7330         * NotifyIcon.cs:
7331         * ProgressBar.cs:
7332         * ScrollBar.cs:
7333         * Splitter.cs:
7334         * StatusBar.cs:
7335         * TabControl.cs:
7336         * TextBoxBase.cs:
7337         * ToolBar.cs:
7338         * TrackBar.cs:
7339         * UpDownBase.cs:
7340         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
7341         use OnPaintInternal. Remove Width/Height and Visible checks in
7342         paint handler, this is done at a higher level now.
7343         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
7344         * PaintEventArgs.cs: Add a handled flag so controls that don't
7345         want anymore painting after OnPaintInternal can make sure OnPaint
7346         isn't called.
7348 2006-04-05  Mike Kestner  <mkestner@novell.com>
7350         * Form.cs: fix the menu WndProc hacks to respect the native enabled
7351         state of the form, so that we don't process events when Modal dialogs
7352         are up. Fixes #77922.
7354 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
7356         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
7357           checking is done.
7359 2006-04-05  Mike Kestner  <mkestner@novell.com>
7361         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
7363 2006-04-05  Mike Kestner  <mkestner@novell.com>
7365         * ListView.cs (HeaderMouseMove): null guarding for the over column
7366         when setting up the drag_to_index.  Fixes #78015.
7368 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
7370         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
7371           in the taskbar. Transient windows seem to accomplish that.
7373 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
7375         * Form.cs:
7376           - Re-enabled CreateParams.X/Y code for FormStartPosition
7377           - Added code for manual placement when creating the Control
7378           - Incomplete patch to treat MDI forms differently when
7379             setting the ClientSizeCore. (Still need to figure out handling
7380             x/y coords there)
7381         * XplatUIX11.cs:
7382           - When we're explicitly setting the X/Y position of a non-Child
7383             window, let the WM know. Metacity really wants this.
7385 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
7387         * ThemeNice.cs: Added CPDrawButton
7389 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
7391         * ThemeNice.cs: Changed the color for focused buttons and activated
7392           the arrows for small scroll buttons.
7394 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
7396         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
7397           anymore. Changed some method modifiers to protected (virtual)
7398         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
7399           changes
7400         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
7401           Updated drawing of menus, buttons and progressbars; added
7402           CPDrawBorder3D 
7404 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7406         * ImageListStreamer.cs: implemented serialization/deserialization
7407         of the images.
7409 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
7411         * ThemeWin32Classic.cs:
7412           - Removed all the DrawFrameControl stuff; CPDrawButton,
7413             CPDrawCheckBox and CPDrawRadioButton are now handled directly
7414             inside the methods
7415           - Updated and corrected the drawing code of CPDrawButton,
7416             CPDrawCheckBox and CPDrawRadioButton to better match ms
7417           - Updated theme checkbox and radiobutton code to use the CP*
7418             methods
7420 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
7422         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
7423           bug is fixed
7425 2006-03-31  Jackson Harper  <jackson@ximian.com>
7427         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
7428         sometimes.
7429         * UpDownBase.cs: Don't CreateGraphics manually, use a
7430         Refresh. Ideally we would invalidate the correct areas here.
7432 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
7434         * XplatUIX11.cs: 
7435           - We now track the mapping state of windows. If a window (or 
7436             one of it's parents) is not mapped we no longer permit
7437             WM_PAINT messages to be generated since we'd otherwise get 
7438             lots of BadMatch X errors. Jackson did all the work figuring
7439             out the problem.
7440           - Destroying the caret if the window it's contained in is 
7441             destroyed. Can't use regular DestroyCaret method since it
7442             might fall into a drawing function (trying to remove the
7443             caret) and with that generate new BadMatch errors. Again,
7444             Jackson tracked this down.
7445           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
7446             make sure we send the messages to all windows. (The old code
7447             would send the WM_DESTROY to the window, and then all child
7448             windows would be 'gone' because the WM_DESTROY handle lookup
7449             would no longer find the destroyed window)
7450         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
7451         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
7453 2006-03-31  Jackson Harper  <jackson@ximian.com>
7455         * ScrollableControl.cs: Dont recalc if we are not visible.
7457 2006-03-31  Mike Kestner  <mkestner@novell.com>
7459         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
7460         the visibility branch.
7462 2006-03-31  Jackson Harper  <jackson@ximian.com>
7464         * ScrollBar.cs: Cap values when incrementing/decrementing.
7466 2006-03-31  Mike Kestner  <mkestner@novell.com>
7468         * MenuAPI.cs: setup menu.tracker for popup/context menus.
7469         * ToolTip.cs: guard against timer expirations with no active control.
7470         Not sure why it happened.
7472 2006-03-31  Mike Kestner  <mkestner@novell.com>
7474         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
7475         text.
7476         * ToolTip.cs: Position the tooltip based on where the cursor is at
7477         popup time, not at MouseEnter time.  Add a Down state so that we don't
7478         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
7479         positioning offset. Lookup DisplaySize at positioning time, since it
7480         can theoretically change during invocation.
7481         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
7482         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
7484 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
7486         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
7487           Fixes behaviour when the Text property of the box is String.Empty
7489 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
7491         * XplatUIX11.cs: Only send mouseleave for our client windows, not
7492           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
7493           a window)
7495 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
7497         * FileDialog.cs: Visual enhancement for the popup buttons in 
7498           PopupButtonPanel
7500 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
7502         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
7503           code
7505 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
7507         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
7508           highlighted menu items to match ms
7510 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
7512         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
7514 2006-03-30  Mike Kestner  <mkestner@novell.com>
7516         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
7517         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
7518         go active to account for HotLight to Selected transition.
7519         * MenuItem.cs: add internal Selected prop. Fill out the Status
7520         property by calculating it from item info. Add HotLight,
7521         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
7523 2006-03-30  Mike Kestner  <mkestner@novell.com>
7525         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
7527 2006-03-29  Jackson Harper  <jackson@ximian.com>
7529         * Form.cs: Implement TODO.
7531 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
7533         * PrintPreviewDialog.cs: Implemented missing methods and events; still
7534           missing proper dialog setup in the constructor
7536 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
7538         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
7539         * Control.cs:
7540           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
7541           - Fixed ResetBindings and removed TODO
7542           - Added check for cross-thread calls to get_Handle()
7543           - Added Marshaller attribute for set_Font to satisfy class status
7544         * FontDialog.cs: Removed TODOs that seemed implemented
7545         * UpDownBase.cs: Removed unneeded TODO and Fixme
7546         * MessageBox.cs: Implemented support for Default button and removed TODO
7547         * FileDialog.cs: Removed obsolete TODO
7548         * DomainUpDown.cs: Removed obsolete TODO
7549         * ButtonBase.cs: Removed obsolete TODO
7550         * XplatUIWin32.cs: Removed obsolete TODO
7551         * Form.cs:
7552           - Removed obsolete TODO
7553           - Calling CheckAcceptButton when the acceptbutton is changed to allow
7554             internal status updates
7555           - Making sure the active control is selected when the control is created
7556         * CurrencyManager.cs: Removed obsolete TODO
7558 2006-03-29  Mike Kestner  <mkestner@novell.com>
7560         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
7561         of PrintPreviewDialog and RichTextBox.
7563 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
7565         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
7566           DarkDark, Light and LightLight colors for a specific color
7567         * ThemeWin32Classic.cs:
7568           - Use Button drawing code to draw RadioButtons and CheckBoxes with
7569             Appearance = Button 
7570           - Make use of the new ResPool helper CPColor
7571           - Draw ProgressBar and StatusBar with correct 3D borders
7573 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
7575         * ColorDialog.cs: Return selected color. Fixes bug #77940.
7577 2006-03-28  Mike Kestner  <mkestner@novell.com>
7579         * ListView.cs: fix Icon layout to plan for scrollbar widths when
7580         calculating col/row counts.
7582 2006-03-28  Mike Kestner  <mkestner@novell.com>
7584         * ColumnHeader.cs:
7585         * ListView.cs:
7586         * ListViewItem.cs:
7587         * Menu.cs: 
7588         switch to explicit interface method implementation for some methods
7589         corcompare identifies as inconsistent with MS.
7591 2006-03-28  Mike Kestner  <mkestner@novell.com>
7593         * MainMenu.cs: 
7594         * Menu.cs:
7595         add a few missing methods from the class status output.
7597 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
7599         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
7600           correct.
7602 2006-03-28  Mike Kestner  <mkestner@novell.com>
7604         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
7606 2006-03-27  Mike Kestner  <mkestner@novell.com>
7608         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
7609         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
7611 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
7613         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
7615 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
7617         * ThemeWin32Classic.cs:
7618           - GroupBox: Inserted a little gap between the text and the lines
7619             on the right side
7620           - Made the code in CPDrawBorder3D more readable
7621           - Corrected the drawing location of the up and down arrows in 
7622             CPDrawScrollButton
7624 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
7626         * ControlPaint.cs: Corrected line widths in DrawBorder for
7627           ButtonBorderStyle Inset and Outset
7629 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
7631         * ThemeWin32Classic.cs:
7632           - Rewrote the totally broken CPDrawBorder3D method. That was
7633             one of the main problems for the terrific ThemeWin32Classic
7634             look
7635           - Updated and corrected Button drawing
7636           - Correct the dimensions of the SizeGrip to match ms ones
7637           - Removed a small drawing glitch in DrawComboBoxEditDecorations
7638         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
7639           Border3DStyle.Sunken to match ms.
7641 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
7643         * ThemeWin32Classic.cs: First small part of the "de-uglify
7644           ThemeWin32Classic" effort, SizeGrip
7646 2006-03-24  Jackson Harper  <jackson@ximian.com>
7648         * XplatUIX11.cs: Give a max idle time of one second, this matches
7649         MS and forces an Idle event every second when there are no other
7650         events in the queue.
7652 2006-03-24  Mike Kestner  <mkestner@novell.com>
7654         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
7655         * ListView.Item.cs: fix layout issues with null image lists and images
7656         smaller than checkbox size.
7657         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
7658         mode like MS does.  It's weird, but consistent.  ;-)
7659         Fixes #77890.
7661 2006-03-24  Mike Kestner  <mkestner@novell.com>
7663         * ListView.cs: Scroll wheel support for the item control.  Fixes
7664         #77839.
7666 2006-03-23  Jackson Harper  <jackson@ximian.com>
7668         * ScrollableControl.cs: Special case negative sized areas, not
7669         zero.
7670         * MonthCalendar.cs: Save the rect of the clicked date so we can
7671         use it for invalidation.
7672         - Try to cut down on the number of invalidates
7673         - Invalidate the rect the mouse is over and was over when moving
7674         the mouse, so we get the focus box following the cursor.
7676 2006-03-23  Mike Kestner  <mkestner@novell.com>
7678         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
7679         focus rectangle drawing. Fixes #77835.
7681 2006-03-23  Mike Kestner  <mkestner@novell.com>
7683         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
7684         the if and else if and reverting back to the original == check on the
7685         None conditional.
7687 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
7689         * FontDialog.cs: Update the example panel if the selected index of
7690           the fontListBox changes.
7692 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
7694         * FileDialog.cs: Make FileDialog remember which directory it was in
7695           last in the same execution.
7697 2006-03-22  Mike Kestner  <mkestner@novell.com>
7699         * FileDialog.cs: make the DropDownMenu on the toolbar display
7700         RadioChecks since they are mutually exclusive and that's what MS does.
7702 2006-03-22  Mike Kestner  <mkestner@novell.com>
7704         * Theme.cs: add Color param to CPDrawMenuGlyph.
7705         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
7706         checks and radio marks and arrows are visible on highlighted items.
7707         * ControlPaint.cs: update to use new Theme signature.
7709 2006-03-22  Mike Kestner  <mkestner@novell.com>
7711         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
7712         is active. Fixes #77870.
7714 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
7716         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
7717           to be focused/selected after startup
7719 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
7721         * ColorDialog.cs: 
7722           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
7723             CustomColors and ShowHelp properties
7724           - Some internal rewrites to get better results when using the
7725             ColorMatrix
7727 2006-03-22  Mike Kestner  <mkestner@novell.com>
7729         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
7730         HoverSelection.  Fixes #77836.
7732 2006-03-22  Mike Kestner  <mkestner@novell.com>
7734         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
7735         ToggleButtons.  (De)Sensitize the Back button around a stack count of
7736         1, not 0.  Update ButtonSize based on a pixel count of the win32
7737         control.  Adjust the toolbar size/location for new button size.
7739 2006-03-22  Jackson Harper  <jackson@ximian.com>
7741         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
7742         true.
7743         * ScrollBar.cs: When doing increments and decrements we need to
7744         set the Value property so that ValueChanged gets raised. A
7745         possible optimization here would be to make an internal SetValue
7746         that doesn't invalidate immediately.
7747         * ToolTip.cs: Tooltips get added to their container (when
7748         supplied) so they get disposed when the container is disposed.
7749         - Don't create tooltips for String.Empty. This prevents all these
7750         little 2-3 pixel windows from showing up when running nunit-gui
7751         and driving me mad.
7752         * Form.cs: Don't set topmost when setting the owner if the handles
7753         haven't been created yet.  The topmost set will happen when the
7754         handles are created.
7756 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
7758         * XplatUIX11.cs:
7759           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
7760           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
7761             visible (to allow them to recalculate their sizes)
7763 2006-03-21  Mike Kestner  <mkestner@novell.com>
7765         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
7766         methods. Removed a ton of redundant code.  Still not really happy with
7767         the border rendering, but I think that's mainly because of the
7768         ControlDarkDark being black instead of a dark grey. Depending on how 
7769         close we want to be, we might want to revisit those color choices.
7770         Among the new features added during the refactor were DropDownArrow
7771         pressed rendering, Disabled image rendering.  Proper flat appearance
7772         boundary rendering.  Removed the Divider and Wrapping dividers since I
7773         can't figure out any combination of themes and conditions to make the
7774         MS control draw a horizontal line on a toolbar despite what the
7775         Divider property docs indicate.
7776         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
7777         conditions and incorrect layout.  Updated to coding standard.
7778         * ToolBarButton.cs: refactored layout and positioning code from
7779         ToolBar to here.  Invalidate wherever possible instead of forcing
7780         redraws of the whole toolbar. 
7781         (Known remaining issues: explicit ButtonSize smaller than provided
7782         images.)
7784 2006-03-21  Mike Kestner  <mkestner@novell.com>
7786         * ContextMenu.cs (Show): use the position parameter instead of just
7787         showing at the MousePosition.
7789 2006-03-21  Jackson Harper  <jackson@ximian.com>
7791         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
7792         control handle this.
7793         * TreeNodeCollection.cs: If we are clearing the root node we need
7794         to reset top_node so calcs can still happen.
7795         * ThemeWin32Classic.cs: This is a Flags so we need to check
7796         properly.
7797         
7798 2006-03-21  Jackson Harper  <jackson@ximian.com>
7800         * DataGrid.cs: Create columns when the binding context has been
7801         changed.
7802         * X11Structs.cs: Keysyms are uints.
7803         - Add size to fix build.
7805 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
7807         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
7808           XplatUIOSX.cs: 
7809           - Added ResetMouseHover method to allow controls to retrigger
7810             hovering if they need it more than once
7811           - Implemented MouseHoverTime and MouseHoverSize properties
7812         * Timer.cs: Start() must reset the interval
7813         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
7814           properties
7816 2006-03-21  Jackson Harper  <jackson@ximian.com>
7818         * X11Keyboard.cs: improved layout detection. Move the nonchar
7819         tables into this file.
7820         * KeyboardLayouts.cs: Move the tables into resource files.
7822 2006-03-21  Mike Kestner  <mkestner@novell.com>
7824         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
7826 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
7828         * Mime.cs: Various speed optimizations. Looking up mime types
7829           is now 2 times faster than before
7831 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
7833         * CreateParams.cs: Added internal menu field
7834         * Control.cs: 
7835           - Switched call order for UpdateBounds; now we always call
7836             the one that also takes ClientSize, and we're calculating the 
7837             client size via driver method in the others. The previous
7838             method of tracking client size by difference wasn't working
7839             for forms where even the starting client size wouldn't match
7840             the overall form size (due to borders) (Part of fix for #77729)
7841           - CreateParams(): Do not use parent.Handle unless the handle is
7842             already created. Causes havoc with Nexxia and throws off our
7843             creation of controls
7844         * XplatUIX11.cs:
7845           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
7846           - Switched handling of ConfigureNotify over to new PerformNCCalc 
7847             method (consolidates code)
7848           - Changed RequestNCRecalc to use new PerformNCCalc method
7849           - Added calls to RequestNCRecalc when menus and borders are changed
7850             to allow app to set NC size. (Part of fix for #77729) This matches
7851             when MS send a WM_NCRECALC on Win32 windows.
7852           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
7853             (Part of fix for #77729). This matches what MS does, they also
7854             send that message when the form is made visible.
7855           - XException.GetMessage: Improved usability of X errors by including
7856             a translation of the window into Hwnd and Control class
7857           - Improved debug info for window creation, reparenting and destruction
7858           - Created helper method WindowIsMapped() [Currently not used]
7859         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
7860         * Form.cs:
7861           - CreateParams: Now setting our menu on the new internal menu field
7862           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
7863             avoid calculating the same property twice
7864         * Hwnd.cs:
7865           - Improved usability of ToString() for debugging purposes
7866           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
7867             determine the height of the menu, instead of just the font. This
7868             required to also create a graphics context and to keep a bmp 
7869             around (for performance reasons)
7871 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
7873         * MenuAPI.cs: Added OnMouseUp method
7874         * Form.cs:
7875           - Now remembering the requested client size, avoids size errors
7876           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
7877             instead of base if the menu is active. This is required due to
7878             control now capturing and releasing on down/up and it would
7879             prematurely release our menu capture
7881 2006-03-17  Jackson Harper  <jackson@ximian.com>
7883         * KeyboardLayouts.cs: Add the czech layouts.
7885 2006-03-16  Jackson Harper  <jackson@ximian.com>
7887         * Control.cs: Use the viewport space when sizing not the controls
7888         client size, so things like ScrollableControl that effect the
7889         viewport size (when scrollbars are added) are computed correctly.
7890         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
7891         of ManagerEntrys.
7892         - Handle creating BindingManagers for null data sources.
7893         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
7894         source, otherwise when rows are added they are added to the 'fake'
7895         datasource and we will crash when trying to set the position in
7896         those rows.
7897         - Use Implicit scrollbars on the datagrid so they arent
7898         selectable.
7899         
7900 2006-03-16  Jackson Harper  <jackson@ximian.com>
7902         * Binding.cs:
7903         * InternalWindowManager.cs:
7904         * MdiWindowManager.cs:
7905         * X11Keyboard.cs: I really want Mike to love me again (fix
7906         compiler warnings).
7908 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
7910         * DataGrid.cs:
7911           - OnMouseDown: Switch to editing mode when clicking on the cell
7912                          even if we're clicking on the cell that's currently 
7913                          selected
7914           - ProcessGridKey: Left/Right now wrap like MS.Net does
7915           - ProcessGridKey: Tab now knows to add a new row when tab is
7916                             pressed in the cell of the last column of the 
7917                             last row
7918           - ProcessGridKey: Enter now adds another row  if pressed in the last
7919                             row and selectes the new row, same column cell
7920           - ProcessGridKey: Home/End navigate columns, not rows, like 
7921                             originally implemented
7922           - Broke ProcessKeyPreview code out into an extra Internal method
7923             so it can be called from the edit code
7924         * DataGridTextBox.cs (ProcessKeyMessage):
7925           - Switched to accept Tab keypresses
7926           - Added F2 handling to allow jumping to the end of the edited cell
7927           - Added logic to allow moving caret left/right inside edited cell
7928             and making the edited cell jump when the caret hits cell borders
7929           - Tab and Enter are now passed to the datagrid after being handled
7930         * TextBoxBase.cs:
7931           - Removed capture code now that Control handles it
7932           - set_SelectionStart now ensures caret is visible
7934 2006-03-16  Jackson Harper  <jackson@ximian.com>
7936         * TrackBar.cs: Debackwards the increment/decrement for handling
7937         mouse clicks on the bar with vertical trackbars.
7938         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
7939         bottom to match MS.
7941 2006-03-16  Mike Kestner  <mkestner@novell.com>
7943         * ListView.cs: make shift/ctrl keyboard and mouse selection 
7944         consistent with the MS control. Fix a bug in
7945         SelectedListViewItemCollection.Clear that was pissing me off for the
7946         better part of a day because the collection was being altered
7947         underneath us as we walked the list.
7949 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
7951         * Control.cs: Not sure how we could miss this so long, but it seems
7952           that MS.Net has Capture set all the way from before calling 
7953           OnMouseDown through sending the mouse events until after
7954           OnMouseUp. This will fix DataGrid's selection being set to end
7955           at the location of the MouseUp.
7957 2006-03-15  Jackson Harper  <jackson@ximian.com>
7959         * BindingContext.cs: Check the binding after its added so that it
7960           can initialize the binding managers and hookup to events.
7961         * Binding.cs: Data members seem to sometimes include rows/cols in
7962           the format Row.Column we now take this into account.
7963           - Hookup to the position changed event so we can update the
7964           control when the position has changed in the data set.
7965         * CurrencyManager.cs: Take into account the row/col naming
7966           convention when creating dataset tables.
7967         * BindingContext.cs: Using a newer better way of storing
7968           datasource/datamember pairs.  Hopefully this better matches MS for
7969           looking up binding managers.
7972 2006-03-15  Jackson Harper  <jackson@ximian.com>
7974         * BindingContext.cs: The currency manager needs the data member
7975         name, if the member is a data set we use the name to find the
7976         correct table.
7977         * CurrencyManager.cs: When creating the list prefer an IList over
7978         an IListSource.
7979         - Attempt to create a DataTable from a DataSet (TODO: might need
7980         some better error checking here, although MS doesn't seem to have much)
7981         - If we have a DataTable create a view and use it as our list.
7983 2006-03-15  Mike Kestner  <mkestner@novell.com>
7985         * ListView.cs: keep a matrix of the icon mode layout to facilitate
7986         keyboard navigation. Support Up/Down/Left/Right selection correctly
7987         for all 4 View modes.
7988         * ListViewItem.cs: add internal row/col fields for icon layouts.
7990 2006-03-15  Jackson Harper  <jackson@ximian.com>
7992         * TabControl.cs: Redraw the tabs when we resize so their newly
7993         calculated sizes are drawn on screen.
7994         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
7995         composite characters.
7996         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
7997         - filter events so that composite characters can be created
7998         patches by peter
7999         * X11Structs.cs: Add XIMProperties enum.
8001 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
8003         * Control.cs (BringToFront, SendToBack): Don't use window or handle
8004           unless it's created
8006 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
8008         * Control.cs (PerformLayout): We don't need to consider visiblity
8009           for anchoring, only for docking. This fixes 'whacky' alignment
8010           in listbox and other controls that use implicit scrollbars after
8011           the previous PerformLayout patch
8012         * ListBox.cs: Switched to use implicit scrollbars
8013           
8014 2006-03-14  Mike Kestner  <mkestner@novell.com>
8016         * ToolBar.cs: 
8017         * VScrollBar.cs:
8018         - chain up the "new event" overrides to base and use
8019         OnEvent to raise them.  Part of fix for bug #76509.
8021 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
8023         * FileDialog.cs: Do not select an item in the parent directory
8024           on backspace
8026 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
8028         * Control.cs (PerformLayout): It would seem that we considered
8029           invisible windows for our layout. Not quite the right thing
8030           to do. Now we don't any longer, thereby fixing bug #76889.
8032 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
8034         * Control.cs (CanFocus): I goofed. A control can have focus 
8035           even though it's not selectable. Made it match MS docs.
8037 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
8039         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
8040           center by default (fixes #76895)
8041         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
8042           all uses of Border3DSides.All with the explicit ORd together
8043           Left|Right|Top|Bottom because I assume that nobody was aware 
8044           that All also implies a center fill. Most places I checked had
8045           a fill right above.
8046         * ProgressBarStyle.cs: Added
8048 2006-03-13  Mike Kestner  <mkestner@novell.com>
8050         * ListView.cs: fix breakage in drag shadow header positioning 
8051         from Peter's csc compilation fix.
8053 2006-03-13  Mike Kestner  <mkestner@novell.com>
8055         * ListView.cs: fix NRE produced by backspacing twice in a focused
8056         FileDialog.
8058 2006-03-13  Mike Kestner  <mkestner@novell.com>
8060         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
8062 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
8064         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
8065           be changed
8066         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
8067           the allowed size before making programmatic size changes
8069 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
8071         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
8072           set, metacity is broken and will still use the emty sizes in 
8073           the struct. (Fix for #77089)
8075 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
8077         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
8078           WindowExStyles and marked both enums as Flags
8079         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
8080           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
8081           to match WindowStyles split
8082         * XplatUIX11.cs:
8083           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
8084           - Updated to match WindowStyles split
8085         * XplatUIWin32.cs:
8086           - Fixed FosterParent creation, was using ExStyle on the Style field
8087             (This should help with Popup focus issues)
8088           - Updated to match WindowStyles split
8090 2006-03-13  Jackson Harper  <jackson@ximian.com>
8092         * MdiWindowManager.cs: Use the system menu height. Fixes some
8093         strange sizing issues.
8095 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
8097         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
8098         * TextBoxBase.cs:
8099           - Scroll to caret after inserting text (#77672)
8100           - Make scroll range one pixel higher, fixes off-by-one error (and
8101             makes underlines visible on the last line)
8103 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
8105         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
8106           the keyboard state from being stuck with keys in 'pressed' state when
8107           focus is switched away via keyboard
8108         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
8109           reset the keyboard if no X11 KeyUp events are expected to come
8110         * X11Structs.cs: Switched type of Visible to bool to match driver
8112 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
8114         * TextControl.cs:
8115           - Switched caret to be just 1 pixel wide, matches MS and looks less
8116             clunky
8117           - Moved caret display 1 pixel down from the top of the control
8118             to improve view
8119           - InsertCharAtCharet: Update the selection start if moving the caret
8120             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
8121           - No longer always creating the caret when the caret methods are
8122             called. Only the actual ShowCaret/HideCaret will do that now
8123           - Only setting caret visible if the owner control has focus
8124           - UpdateView: Added invalidation-shortcut logic for center and right 
8125             aligned text. Previously we'd update all according to the left
8126             logic which caused drawing errors. Also fixed height of invalidated
8127             areas, now properly invalidating the whole area (was off-by-one)
8128           - owner_HandleCreated: Always generate the document when the
8129             handle is created; this ensures that 
8130         * TextBoxBase.cs:
8131           - Fixed situation where caret would disappear under the right
8132             window border, also improved scrolling behaviour on left-
8133             aligned textboxes
8134           - Fixed right-aligned textboxes to have a border to the
8135             right instead of the caret being under the right border
8136         * XplatUIX11.cs:
8137           - Switched from 'nested' to simple visible/not visible tracking 
8138             for caret (part of fix for #77671)
8139           - No longer passing through translated FocusIn/FocusOut messages
8140             since we were notifying too often and the wrong windows. Instead
8141             we just notify our focussed window of receiving or loosing focus
8142         * XplatUIWin32.cs: Switched from 'nested' show/hide 
8143           counting for caret to simple visible yes/no behaviour (part of 
8144           fix for #77671)
8146 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
8148         * Mime.cs: Remove debug code...
8150 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
8152         * MimeGenerated.cs: Removed
8153         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
8154           and subclasses) from /usr/(local/)share/mime and
8155           $HOME/.local/share/mime.
8157 2006-03-10  Jackson Harper  <jackson@ximian.com>
8159         * MdiWindowManager.cs: Recalc the NC area when a window is
8160         maximized/restored so that the menu area is drawn on forms that
8161         don't have a menu.
8163 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
8165         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
8166           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
8167           us to force a WM_NCCALCRESIZE message being sent. This is needed
8168           for MDI maximizing.
8170 2006-03-10  Jackson Harper  <jackson@ximian.com>
8172         * Form.cs: We need to use the ActiveMenu when calculating menu
8173         height.
8174         - Fix nullref when the window manager hasn't been created yet.
8175         * Control.cs: Fix nullref when we try to bring a control to the
8176         front that has no parent.
8177         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
8178         height.
8179         - Add a dummy item to the maximized menu so it always has the
8180         correct height. Otherwise when there are no menus we don't get our
8181         icon and buttons.
8182         
8184 2006-03-10  Jackson Harper  <jackson@ximian.com>
8186         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
8187         stuff.
8188         * Form.cs: Make the window_state internal so the window managers
8189         can track it.
8190         - When an MDI child is maximized let its window manager create the
8191         main menu (so it can add its icon).
8192         - Notify the window managers of state changes
8193         - Let the window manager paint its buttons and handle button
8194         clicks on the menu when it is maximized.
8195         * InternalWindowManager.cs: Move the prev_bounds into the mdi
8196         window manager, since tool windows don't use it, only mdi windows.
8197         - Tell the main form that we don't want it to handle NCPAINT
8198         itself to avoid extra painting.
8199         - Handle clicks on a maximized windows menu.
8200         - Handle window state changes
8201         - Handle minimize/maximize clicks correctly by setting the window state.
8202         * MdiWindowManager.cs: Add an icon menu that (the menu you get
8203         when clicking on the forms icon).
8204         - New method to create a forms maximized menu. This is its normal
8205         menu + an icon.
8206         - Handle window state changes.
8207         - Handle sizing of maximized windows.  Maximized windows are just
8208         drawn bigger then the parent visible area. All controls are still
8209         there, they are just outside the visible area (this matches windows).
8210         * MdiClient.cs: No scrollbars when a child window is maximized.
8211         - Let the children windows figure out how big they should be when
8212         sizing maximized windows.
8213         - Implement a version of ArrangeIconicWindows somewhat similar to
8214         Windows version.  There are some little differences, but I don't
8215         think any app will rely on the layout of minimized mdi windows.
8217 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
8219         * Padding.cs: Several fixes to allow compiling with csc 2.0
8221 2006-03-09  Jackson Harper  <jackson@ximian.com>
8223         * Menu.cs:
8224         * MenuItem.cs: Cheap hack so we can add items to the list without
8225         the events being raised.  This allows adding mdi items during
8226         drawing. TODO: Should probably find a better time to add the items.
8228 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
8230         * ThemeWin32Classic.cs:
8231           - CheckBox_DrawText: Added logic to not wrap if not enough space
8232             is available (Fix for bug #77727)
8233           - RadioButton_DrawText: Added logic not to wrap if not enough
8234             space is available (Fix for bug #77727). Also removed some
8235             duplicate code, DrawString always drawing the regular text
8236             before hitting the if statement.
8238 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
8240         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
8242 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
8244         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
8245         * ContainerControl.cs: Partial implementation of some 2.0 scaling
8246           methods. Moved the new 2.0 properties into alphabetical order with
8247           other properties and added MonoTODO tags
8249 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
8251         * AutoScaleMode.cs: Added. Fix build.
8253 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
8255         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
8256           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
8257           and was requiring premature handle creation for calls from above
8258         * Form.cs, Control.cs: Removed handle arguments from calls to
8259           CalculateClientRect()
8261 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
8263         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
8264           drag_column.column_rect is MarshalByRef and can't be used that way
8266 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
8268         * AxHost.cs: Added deserialization constructor for 
8269           AxHost+State (fixes 77743)
8271 2006-03-09  Mike Kestner  <mkestner@novell.com>
8273         * ListView.cs: 
8274         - Added column drag reordering for details view.
8275         - fixed behavior when mouse is dragged off column and
8276         AllowColumnReorder is false.
8277         * ColumnHeader.cs: clone the format too in Clone.
8278         * Theme.cs: add DrawListViewHeaderDragDetails method.
8279         * ThemeWin32Classic.cs:
8280         - impl new method for drawing drag column shadows and targets.
8281         - support column offset for details mode in DrawListViewItem.
8283 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
8285         * TextControl.cs: Reset the char_count when the document is cleared
8286           (Fixes bug reported on mono-winforms mailing list)
8288 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
8290         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
8291           of calling base we simply process the key ourselves, since both
8292           DefWindowProc and the handled method would set m.Result. 
8293           (Fixes #77732)
8295 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
8297         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
8298           method also moves the window; instead implemented a copy of
8299           Control.ScaleCore (Part of fix for #77456)
8300         * TextBoxBase.cs: 
8301           - Created new CreateGraphicsInternal method to allow providing
8302             a graphics context when no handle is created without triggering
8303             handle creation. (Part of fix for #77456)
8304           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
8305         * TextControl.cs: 
8306           - Switched Constructor to require TextBoxBase instead of Control (to
8307             allow uncast access to CreateGraphicsInternal)
8308           - Safeguarded use of owner.Handle property. No longer accessing it
8309             unless the handle is already created.
8310           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
8311           - Now triggering a recalc when owning control becomes visible
8312         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
8313           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
8314           premature handle creation (Part of fix for #77456)
8315         * Control.cs:
8316           - We now only destroy our double-buffering buffers when the
8317             control is resized or disposed, but not when visibility
8318             changes. (The code even re-created them twice every time)
8319           - Now requiring a redraw of the buffer on visibility changes
8320             (fixes bug 77654 part 2)
8321           - Not passing OnParentVisibleChanged up unless the control
8322             is visible
8323           - CanFocus: Fixed to match MS documentation
8324           - Focus: Fixed to return actual focus state and to check if
8325             setting focus is legal before setting it
8327 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
8329         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
8330           when to draw focus rectangle by looking at parent focus and
8331           selected state instead. This fixes TabPages on Linux sometimes
8332           having none or multiple focus rectangles.
8333         * XplatUIX11.cs (SetFocus): 
8334           - Don't set the focus if the same window already has focus
8335           - Use SendMessage instead of PostMessage (like it's Win32
8336             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
8337             to match MS behaviour
8338         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
8339           are not selectable.
8341 2006-03-07  Jackson Harper  <jackson@ximian.com>
8343         * PictureBox.cs: Revert line I accidently committed last week.
8345 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
8347         * Control.cs: 
8348           - Added new IsRecreating and ParentIsRecreating properties to
8349             allow testing if RecreateHandle has been called on ourselves
8350             or one of our parents
8351           - WndProc(WM_DESTROY): If our control handle is being recreated
8352             we immediately need to create the handle when receiving the
8353             destroy, that way our child windows find a valid parent handle
8354             when they themselves are being recreated upon WM_DESTROY receipt
8355             (fix for bug #77654 part 1)
8356         * XplatUIX11.cs:
8357           - DestroyWindow: WM_DESTROY must be sent to our own window before
8358             notifying any child windows. MS documents that child windows
8359             are still valid when WM_DESTROY is received. (Control now relies on
8360             this behaviour)
8361           - Added some fine-grain debug options
8363 2006-03-06  Jackson Harper  <jackson@ximian.com>
8365         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
8366         box and base calculations off this.
8367         * MdiChildContext.cs:
8368         * MdiWindowManager.cs: Don't need to ensure scrollbars here
8369         anymore.
8370         
8371 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
8373         * Splitter.cs: In situations where the affected control is added
8374           to the parent's control list after the splitter, we would not
8375           populate affected. Now we try populating it on mousedown, if
8376           it's not already set, and force it to be re-set whenever our
8377           parent changes.
8379 2006-03-03  Matt Hargett  <matt@use.net>
8381         * Control.cs: implement Control.Padding
8382         * Padding.cs: -Padding.All returns -1 when constructing with the
8383         implicit default ctor
8384         -Padding.ToString() matches MS.NET
8385         * ContainerControl.cs: implement
8386         ContainerControl.AutoScaleDimensions
8387         * ListControl.cs: implement ListControl.FormattingEnabled
8388         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
8389         * ButtonBase.cs:
8390         * TabPage.cs: Implement UseVisualStyleBackColor.
8391         * PictureBox.cs: Implement PictureBox.InitialImage.
8393 2006-03-03  Mike Kestner  <mkestner@novell.com>
8395         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
8396         event declarations to proxy to base event.
8397         * ListViewItem.cs: update to use ItemControl.
8398         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
8399         * ThemeWin32Classic.cs: update to new ListView theme API and fix
8400         column header label rendering for 0 width columns.
8402 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
8404         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
8405           that causes the control to be created. Fixes #77476.
8407 2006-03-02  Jackson Harper  <jackson@ximian.com>
8409         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
8410         expose_pending.
8412 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
8414         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
8415           passed in for the EventArgs (fixes #77690)
8417 2006-03-01  Jackson Harper  <jackson@ximian.com>
8419         * ScrollBar.cs: Refresh afterbeing resized.
8421 2006-02-28  Mike Kestner  <mkestner@novell.com>
8423         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
8424         Clean up a tracker compile warning.
8425         * MenuItem.cs: add internal PerformPopup method.
8426         [Fixes #77457]
8428 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
8430         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
8431           implicit expose) when the text is set to null
8433 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
8435         * RichTextBox.cs (FlushText): When newline is true, we always
8436           need to split the line, even if no text is on it and we may
8437           never eat newlines. (Fixes #77669)
8439 2006-02-28  Mike Kestner  <mkestner@novell.com>
8441         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
8442         and set Selected instead.
8443         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
8444         collections.
8446 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
8448         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
8450 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
8452         * FontDialog.cs:
8453           - Got rid of the panel. All controls are now directly added to
8454             the dialog form
8455           - It is now possible to set a font with the Font property
8456           - MinSize and MaxSize property do now what they should
8457           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
8458           - Searching and selecting a font with the font textbox works now,
8459             the same applies to the style and size textbox
8460           - Draw the correct 3D border in the example panel
8461           - Fixed a little mem leak (unused fonts didn't get disposed)
8462           - Many other internal updates/rewrites...
8463           - Fix typo
8465 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
8467         * TextControl.cs: 
8468           - InsertRTFFromStream: Added 'number of characters inserted' argument
8469           - set_SelectedRTF: Now using the number of characters to calculate
8470             the new location for the selection and cursor (x/y cannot be used
8471             due to potentially already wrapped text)
8473 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
8475         * TextControl.cs: Added property and implemented means to allow 
8476           disabling recalculation of a document (can be used to speed up
8477           multiple inserts and is needed to make RTF inserts predictable, see
8478           bug #77659)
8479         * RichTextBox.cs: Using the new NoRecalc property of Document to
8480           keep x/y insert locations predictable. Also makes it faster inserting
8481           large chunks of RTF
8483 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
8485         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
8486           it's easier for a child control to handle the other messages without
8487           having to duplicate the special functionality
8488         * TextBoxBase.cs
8489           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
8490             code to handle processing the key ourselves, in order to get 
8491             access to the result of KeyEventArgs.Handled. We now only call 
8492             ProcessKey if they key hasn't been handled already. Fixes #77526.
8493           - set_Text: If null or empty string is given, just clear the 
8494             document. Fixes part of #77526
8496 2006-02-27  Jackson Harper  <jackson@ximian.com>
8498         * SizeGrip.cs: Paint the background color before painting the grip
8499         so things look right.
8500         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
8502 2006-02-27  Mike Kestner  <mkestner@novell.com>
8504         * ListView.cs:
8505           - Restructure layout and invalidation model to remove a ton of
8506           flicker from the control and speed up performance in general.
8507           - Add manual column resize, flickers like crazy, but I already have
8508           some ideas on how I'll fix that. (#76822)
8509           - Merge the three Icon-based views into a single layout method.
8510           - Move item selection interaction logic from the item since 
8511           interaction with the collections is more appropriate to the view.
8512           - Deselection on non-item clicks.
8513         * ListViewItem.cs:
8514           - Encapsulate most of the layout. Add some internal props to trigger
8515           layout.  Move to a model where Items invalidate themselves instead
8516           of just invalidating the whole control every time something changes.
8517           - Invalidate on Text/Caption changes.
8518           - switch to an offset based layout model to avoid having to absolute
8519           position every element on item moves.
8520           - correct checkbox layout to conform to MS layout.
8521         * ThemeWin32Classic.cs:
8522           - refactor some column header drawing code.
8523           - fix string justification for column headers (#76821)
8524           - make SmallIcon labels top justified for compat with MS impl.
8525         * ThemeClearlooks.cs:
8526           - adjust to new ListViewItem internal checkbox bounds api.
8528 2006-02-27  Jackson Harper  <jackson@ximian.com>
8530         * Control.cs:  Change where implicit controls fall in the zorder.
8531         They are now on top of all children.
8532         - Synced AddImplicit code with Add
8533         - Removed unused enumerator.
8534         * SizeGrip.cs: Remove the TODO as its been TODONE.
8536 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
8538         * TextControl.cs(Insert): Combine the last lines unless the insertion
8539           string ends with \n\n, otherwise we leave one line too many (Fixes
8540           something I noticed with the testapp for #77526; the bug itself was
8541           already fixed in the previous checkin)
8543 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
8545         * RichTextBox.cs:
8546           - SelectionColor and SelectionFont methods no longer set absolute
8547             styles. Instead, the keep font or color respectively (This 
8548             resolves a long-standing FIXME in the code)
8549           - When flushing RTF text, the insert code now considers text trailing
8550             behind the insertion point (Fixes the bug where when replacing
8551             the selected text via SelectedRTF the remainder of the line behind 
8552             the selection would stay on the first insertion line)
8553         * TextBoxBase.cs:
8554           - AppendText now updates the selection points after inserting text
8555           - AppendText now ensures that the last tag (sometimes 0-length) of
8556             the document is used for the style information (Fixes part of 
8557             bug #77220)
8558         * TextControl.cs:
8559           - Created new FontDefiniton class to allow describing partial style
8560             changes
8561           - StreamLine() now takes a lines argument, to allow it to decide
8562             whether an encountered zero-length tag is the last in the document
8563             (which must be kept to not loose the font/color contained in it,
8564             for later appends)
8565           - Created Combine() and Split() methods for Marker structs, to 
8566             support marker updates due to reformatted documents (soft line
8567             wraps)
8568           - Implemented Document.CaretTag setter
8569           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
8570             of the last line (Not the cause, but also exposed by bug #77220)
8571           - Added LineTag argument to InsertString method, to allow callers
8572             to force a certain tag to be used (required to force use of the
8573             trailing zero-length tag of a document)
8574           - Now updating markers in Combine(), to avoid stale tag markers
8575           - Added some method descriptions to aid maintenance
8576           - Implemented new FormatText concept, allowing additive/subtractive
8577             formatting by only specifying the components that are to be 
8578             changed. This was needed for resolving the RTB.SelectedColor/
8579             RTB.SelectedFont fixmes
8580           - Added Break() support method to allow breaking up linetags (used
8581             for partial formatting)
8582           - Added GenerateTextFormat() method. It is used for partial 
8583             formatting and allows to generate a full font/color from given
8584             attributes and an existing tag.
8586 2006-02-26  Jackson Harper  <jackson@ximian.com>
8588         * XplatUIX11.cs:  Use the correct caption height.
8589         - Translate hittest coordinates to screen coords to match MS.
8590         * XplatUIWin32.cs: When we create MDI windows we need to reset
8591         some of the style flags, so we get a nice blank window, and can
8592         draw all the decorations ourselves.
8593         - Set a clipping rectangle on the non client paint event, the
8594         window manager drawing code needs one.
8595         * Form.cs: The window manager needs to know when the window state
8596         has been updated.
8597         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
8598         don't need to factor in border and title sizes in these
8599         methods. TODO: Remove the args and fix the call points.
8600         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
8601         properly.
8602         - Let the driver set the cursors.
8603         - Improve active window handling
8604         - Correct sizes for title bars and buttons.
8605         - Match MS drawing better
8606         * MdiWindowManager.cs: We don't need to handle border style
8607         updates specially anymore.
8608         - Check for scrollbars when windows are done moving
8609         - Handle Active properly.
8610         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
8611         correctly. I am spewing the exception though, so we don't hide the
8612         bugs.
8613         
8614 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
8616         * DataGridViewRowPostPaintEventArgs.cs,
8617           DataGridViewCellPaintingEventArgs.cs,
8618           DataGridViewRowCollection.cs,
8619           DataGridViewRowPrePaintEventArgs.cs,
8620           DataGridViewCell.cs: Clear a few warnings and implement a few
8621           exceptions that should be thrown.
8623 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
8625         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
8626           'inheriting' our parent's (non-default) cursor. (Part of
8627            the fix for #77479)
8629 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
8631         * XplatUIX11.cs: Fixed cast to make csc happy
8633 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
8635         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
8636           it's for the client area (part of fix for #77479 and needed
8637           for MDI window cursor handling)
8638         * XplatUIX11.cs
8639           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
8640             the appropriate default cursors and also passing the message
8641             up the parent chain 
8642           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
8643             for non-client areas
8645 2006-02-15  Jackson Harper  <jackson@ximian.com>
8647         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
8648         is a real MDI window
8650 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
8652         * X11DesktopColors.cs: Instead of checking the desktop session
8653           string for "KDE" check if it starts with "KDE"
8655 2006-02-10  Jackson Harper  <jackson@ximian.com>
8657         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
8658         systems).
8660 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
8662         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
8663           errors
8664         * ColorDialog.cs:
8665           - Got rid of the panel. All controls are now directly added to
8666             the dialog form
8667           - Changed to mono coding style
8669 2006-02-10  Jackson Harper  <jackson@ximian.com>
8671         * InternalWindowManager.cs: We don't need the set visibility to
8672         false hack anymore now that peter has written beautiful shutdown
8673         code.
8675 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
8677         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
8678           where already explicitly destroyed
8680 2006-02-10  Jackson Harper  <jackson@ximian.com>
8682         * MdiClient.cs: Handle the case where windows are too high or to
8683         the left and we need scrollbars.
8685 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
8687         * MimeIcon.cs: Added some icons
8688         * FileDialog.cs:
8689           - Fixed bug #77477
8690           - Got rid of the panel. All controls are now directly added to
8691             the dialog form
8692           - Changed to mono coding style
8693           - On Linux "My Computer" and "My Network" will now show some
8694             more usefull information. A new class, MasterMount, gathers
8695             this information from /proc/mount. Updated MWFFileView to make
8696             use of this information
8697           - Fixed a bug that caused FileDialog to crash when
8698             ".recently_used" file had a zero size
8699           - FilterIndex does now what it should
8700           - Some Refactoring
8701         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
8702             FileDialog changes
8704 2006-02-09  Jackson Harper  <jackson@ximian.com>
8706         * ComboBox.cs: Don't touch if null.
8708 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
8710         * Cursor.cs: 64bit safeness fix
8711         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
8713 2006-02-09  Jackson Harper  <jackson@ximian.com>
8715         * Form.cs: If a form is made into an MDI form update the styles so
8716         all the props can get set correctly.
8717         - Kill the mdi_container when we dont need it anymore.
8718         * InternalWindowManager.cs: Add missing NOT
8720 2006-02-08  Jackson Harper  <jackson@ximian.com>
8722         * InternalWindowManager.cs: Respek clipping when drawing MDi
8723         decorations.
8725 2006-02-08  Jackson Harper  <jackson@ximian.com>
8727         * Hwnd.cs: Add bits to track non client expose events.
8728         * XplatUIX11.cs: Track non client expose events on the hwnd. This
8729         gives us a proper invalid rect and will allow for some nice
8730         optimizations with NC client drawing
8731         - MDI windows are children windows, so move their style handling
8732         into the child window block.
8733         * InternalWindowManager.cs: Remove a state reset that was
8734         getting invoked at the wrong time. Fixes managed windows getting
8735         into a 'stuck' captured state.
8737 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
8739         * TextControl.cs (Document.ctor): Now initializing 
8740           selection_anchor. Fixes #77493
8742 2006-02-07  Jackson Harper  <jackson@ximian.com>
8744         * TrackBar.cs: The increment/decrements were backwards.
8746 2006-02-07  Mike Kestner  <mkestner@novell.com>
8748         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
8749         to the instance itself.
8751 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
8753         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
8754           on ulongs and pointers, the size differs between 32bit and 64bit
8755           systems. 
8757 2006-02-07  Mike Kestner  <mkestner@novell.com>
8759         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
8760         for 64 bit platforms to work around a metacity bug. 
8762 2006-02-07  Jackson Harper  <jackson@ximian.com>
8764         * TrackBar.cs: Process the input keys we need, and hookup to
8765         KeyDown instead of using WndProc, so we get key messages.
8767 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
8769         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
8770           machine we're on. 
8771         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
8772           we need to translate the XdndVersion atoms array before sending it
8774 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
8776         * XplatUIX11.cs: 
8777           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
8778             number of bits for the property, not the number of bytes. The
8779             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
8780             but would not crash since it specified 8 bits instead of 4 bits)
8781           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
8782             defined as XID -> long in the C headers)
8783           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
8784             references since those are now IntPtr to begin with
8785           - Switched all Atom.XXX 'int' casts to IntPtr casts
8786           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
8787           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
8788           - Added XChangeActivePointerGrab DllImport (for X11DnD)
8789         * X11Structs.cs:
8790           - Changed 'int' type for Atoms in XEvent structures to IntPtr
8791           - Changed atom in HoverStruct to be IntPtr
8792         * X11DnD.cs:
8793           - Removed local DllImports, switched code to use those from XplatUIX11
8794           - Removed/fixed casts related to the switch of Atom to be a IntPtr
8796 2006-02-06  Mike Kestner  <mkestner@novell.com>
8798         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
8799         method signatures in the import region.  There may still be some
8800         lingering struct marshaling issues, as I didn't drill down into those.
8801         Yet.
8803 2006-02-06  Jackson Harper  <jackson@ximian.com>
8805         * ComboBox.cs: Dont manually set the top_item, this is computed
8806         when the scrollbar position is set.
8808 2006-02-06  Mike Kestner  <mkestner@novell.com>
8810         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
8811         startup crashes on amd64.  There's other fixes needed.  All pinvoke
8812         usage of Atom needs to be mapped to IntPtr for example.  And there are
8813         likely other int/long issues to be addressed.
8815 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
8817         * FileDialog.cs: One more...
8819 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
8821         * FileDialog.cs: Next try
8823 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
8825         * FileDialog.cs: First part of fix for #77464
8827 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
8829         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
8830           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
8831           AcceptButton border drawing.
8833 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
8835         * Form.cs: Moved positioning of form after auto scaling is applied,
8836           otherwise it would possibly use wrong form size.
8838 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
8840         * Control.cs (RecreateHandle): No need to re-create any child
8841           controls, the child windows will get destroyed automatically by
8842           the windowing system or driver, and re-created when the handle
8843           is being accessed the first time. Fixes #77456
8844         * Form.cs: No longer setting the form to closing if the handle is 
8845           being recreated. This seems like the right thing to do, don't
8846           have a bug or testcase for this, though.
8848 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
8850         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
8851           controls to avoid unwanted side effects
8853 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
8855         * Control.cs: 
8856           - ScaleCore needs to scale the bounds, not the ClientSize of the 
8857             control. Fixes #77416.
8858           - DefaultSize is 0,0 for control
8859         * TextBoxBase.cs: 
8860           - DefaultSize is 100, 20
8861           - SetBoundsCore: Now enforcing the height, no matter if the provided
8862             height is more or less than the preferred one, as long as AutoSize
8863             is on
8864         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
8866 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
8868         * Control.cs:
8869           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
8870             call unless both performLayout is true *and* we have a pending
8871             layout change
8872           - ResumeLayout: MS does not completely nest Suspend and Resume,
8873             they bottom out at 0, fixed our code to match that.
8874           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
8875             SetBoundsCore, we were updating even when we shouldn't. This fixes
8876             swf-anchors mis-anchoring when resizing the app fast and lots.
8877           - UpdateDistances: Now only setting the left and top distance if 
8878             we have a parent and are not suspended, this is based on
8879             a suggestion by Don Edvaldson in bug #77355.
8880           - OnVisibleChanged: Fixed logic when to create the control. We may
8881             not create the control if we have no parent or if it's not visible;
8882             switched to using Visible property instead of is_visible field 
8883             since the property also considers parent states. This fixes a bug
8884             when starting Paint.Net
8886 2006-02-02  Jackson Harper  <jackson@ximian.com>
8888         * Form.cs: If the forms handle hasn't been created yet don't call
8889         into xplatui to make it top most, just set the topmost flag on the
8890         form in CreateParams
8891         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
8893 2006-02-01  Jackson Harper  <jackson@ximian.com>
8895         * ScrollableControl.cs: Refactored the Recalculate method a
8896         little, this wasn't handling all the variants of bottom and right
8897         bars needed to be added and added/removed based on their
8898         counterparts being added/removed (which changes the drawable
8899         size). Also we special case client widths and heights of 0 and
8900         don't add the scrollbar for those.
8902 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
8904         * XplatUIX11.cs: 
8905           - Added method to get AbsoluteGeometry(); currently unused, but might
8906             be used in the future, if we try again to figure out toplevel
8907             coordinates with some more crappy window managers
8908           - Added FrameExtents() method to retrieve the WM set decoration size
8909           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
8910             to deal with at least KDE, FVWM and metacity (Fixes #77092)
8911         * Hwnd.cs: 
8912           - Added whacky_wm tracking var for metacity
8913           - Added logic to have default menu height if the actual menu height
8914             has not yet been calculated (part of fix for #77426)
8915         * Form.cs: Keep track whether client size has been set and re-set 
8916           it if a menu is added/removed afterwards (Fixes #77426)
8918 2006-01-31  Jackson Harper  <jackson@ximian.com>
8920         * Control.cs: When a new Site is set on the component attempt to
8921         pull the AmbientProperties from it.
8923 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
8925         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
8926           in the background of the owning form. Fixes #77332
8928 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
8930         * MimeIcon.cs: Fix for #77409
8932 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
8934         * XplatUIX11GTK.cs: Initial import
8936 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
8938         * FixedSizeTextBox: fixes class signature
8940 2006-01-30  Jackson Harper  <jackson@ximian.com>
8942         * FixedSizeTextBox.cs: New internal class that represents a
8943         textBox that will not be scaled.
8944         * TreeView.cs:
8945         * ComboBox.cs:
8946         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
8947         standard TextBox.
8948                 
8949 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
8951         * XplatUIX11.cs: Retrieve default screen number instead of
8952           assuming 0. Attempted fix for #77318
8954 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
8956         * XplatUIWin32.cs: 
8957           - GetWindowPos: When a window is parented by FosterParent, use 
8958             the desktop instead of FosterParent as the base to get coordinates
8959           - CreateWindow: Don't make FosterParent the parent window for Popups
8960             if we don't want a taskbar entry, Popups automatically don't get one
8961         * Hwnd.cs: Need to call remove to actually remove the key from the
8962           hash table
8964 2006-01-30  Mike Kestner  <mkestner@novell.com>
8966         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
8968 2006-01-30  Jackson Harper  <jackson@ximian.com>
8970         * TreeView.cs:
8971         * TreeNode.cs: Raise events no matter how the treenode is
8972         checked. Patch by Don Edvalson.
8974 2006-01-30  Jackson Harper  <jackson@ximian.com>
8976         * TreeNode.cs: Signature fix.
8978 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
8980         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
8982 2006-01-20  Mike Kestner  <mkestner@novell.com>
8984         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
8985         event forwarding when menus are active.
8986         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
8987         Most of the patch is pdb's with a little rework.
8989 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
8991         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
8992           Removed GetMenuDC and ReleaseMenuDC methods; replaced
8993           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
8994         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
8995         * InternalWindowManager.cs: Added use of PaintEventStart/End to
8996           handling of WM_NCPAINT message, now passing the PaintEventArgs to
8997           the PaintWindowDecorations method
8998         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
8999         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
9000         * MenuAPI.cs: Made tracker window invisible
9001         * XplatUIWin32.cs:
9002           - Removed GetMenuDC and ReleaseMenuDC methods
9003           - Implemented the client=false path for PaintEventStart and
9004             PaintEventEnd
9006 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
9008         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
9009         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
9010           styles
9011         * Form.cs: 
9012           - MaximizeBox, MinimizeBox: Recreate the handle when setting
9013             the style
9014           - CreateParams: Reworked the styles to match MS look'n'feel,
9015             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
9016             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
9018 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
9020         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
9021           window is not mapped, since otherwise every form that's being 
9022           created is considered minimized, which is wrong.
9023         * Form.cs: Catching the exception and returning our internal value
9024           instead
9026 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
9028         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
9029           SetWindowMinMax() to have means to tell the driver about the minimum,
9030           maximum and maximized state window sizes. (Part of the fix for #76485)
9031         * Form.cs:
9032           - Implemented tracking of minimum and maximum window size, now calling
9033             new SetWindowMinMax() driver method to tell the driver (Part of the
9034             fix for #76485)
9035           - Finished handling of WM_GETMINMAXINFO method, now setting all values
9036             (Completes fix for #76485)
9037           - Calling new SetWindowMinMax driver method when the handle for a 
9038             form is created, to make sure the driver knows about it even if
9039             the values have been set before the window was created
9040           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
9041             to avoid messing up our anchoring calculations (partial fix
9042             for #77355)
9043         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
9044         * XplatUIX11.cs:
9045           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
9046           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
9047             (and presumably other freedesktop.org compliant WMs). Left the
9048             assumption unmapped=minimized, needed for SetVisible to work.
9049           - Now setting the window state when creating windows
9050           - Fixed SetVisible to consider/set the window state when mapping
9051             a Form. We cannot set the state before it's mapped, and we cannot
9052             use Form.WindowState once it's mapped (since it would ask the
9053             driver and get 'normal'. Therefore, we grab the state before
9054             mapping, map, and then set state.
9055           - Implmemented SetWindowMinMax method; Metacity does not seem to
9056             honor the ZoomHints, though.
9057         * XplatUIWin32.cs:
9058           - Removed MINMAXINFO (moved to XplatUIStructs)
9059           - Added SetWindowMinMax stub (on Win32 the only way to set that
9060             information is in response to the WM_GETMINMAXINFO message, which
9061             is handled in Form.cs)
9062           - Added logic to SetVisible to set the proper window state when a 
9063             form is made visible (fixes #75720)
9065 2006-01-26  Jackson Harper  <jackson@ximian.com>
9067         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
9068         same way we handle them with Invoke.
9070 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
9072         * Form.cs:
9073           - Added tracking of window state so CreateParams can return
9074             the appropriate style
9075           - Moved setting of WS_CAPTION style in CreateParams to allow
9076             styles without caption
9077         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
9078           control if the TextBox property is accessed. Fixes #77345
9079         * Control.cs:
9080           - get_Created: now uses is_disposed and is_created to determine
9081             return value (suggested by Jackson)
9082           - CreateHandle: No longer exits if the handle is being recreated
9083           - RecreateHandle: If the handle is not yet created call the 
9084             appropriate method to create either control or handle. If the
9085             control is already created CreateHandle will simply exit instead
9086             of just creating the handle
9087         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
9088           now SendMessage WM_DESTROY directly to the control when DestroyWindow
9089           is called.
9090         * XplatUIX11.cs: 
9091           - When DestroyWindow is called, instead of waiting for the 
9092             DestroyNotification from X11, we directly post it to the WndProc
9093             and immediately dispose the hwnd object.
9094             Same applies to DestroyChildWindows, and this obsoletes the
9095             expose_pending tracking. Contrary to Win32 behaviour we destroy our
9096             child windows before our own, to avoid X11 errors.
9097           - Removed the direct sending of WM_PAINT on UpdateWindow
9098         * XplatUIWin32.cs:
9099           - Reworked DoEvents and GetMessage to allow access to internal queue
9100             even when trying non-blocking access to the queue.  Fixes #77335. 
9101             Based on a patch suggestion by Don Edvalson. The new private
9102             GetMessage can now also be used as a backend for a PeekMessage
9103             frontend version.
9104         * XplatUI.cs: Improved debug output for CreateWindow
9106 2006-01-25  Jackson Harper  <jackson@ximian.com>
9108         * Help.cs: Allow param to be null. Patch by Don Edvalson.
9110 2006-01-24  Jackson Harper  <jackson@ximian.com>
9112         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
9113         when we have a MaxDropItems lower then the selected index.
9115 2006-01-24  Jackson Harper  <jackson@ximian.com>
9117         * Control.cs: Don't allow selection of non visible controls, allow
9118         selection of controls without parents.
9120 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
9122         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
9123         * DataGridDrawingLogic.cs: Add editing row only when is necessary
9125 2006-01-23  Jackson Harper  <jackson@ximian.com>
9127         * UpDownBase.cs: Make the textbox handle all the selection and
9128         tabbing. This fixes tabing to updown controls.
9130 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
9132         * TextBoxBase.cs: fixes exception thown the object was null
9134 2006-01-23  Jackson Harper  <jackson@ximian.com>
9136         * ButtonBase.cs: Just use the base CreateParams. They set
9137         visibility and enabled correctly.
9138         * ComboBox.cs:
9139         * TrackBar.cs:
9140         * MonthCalendar.cs: Lets let the base set as much of the
9141         createparams as possible so we don't have duplicate code all over
9142         the place.
9144 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
9146         * ThemeGtk.cs: Added TrackBar and some experimental code to
9147           get double buffering back
9149 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
9151         * DataGrid.cs: Allows row number set internally higher than the last
9152         when creating a new row. Restores the editing functionality.
9154 2006-01-20  Mike Kestner  <mkestner@novell.com>
9156         * MimeIcon.cs: delay Image creation until the icons are accessed
9157         instead of creating 190 scaled images on GnomeHandler startup.
9159 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
9161         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
9162           first call base before processing the event. Fixes #77279
9164 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
9166         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
9167           that the stride for the GDI bitmap would match the stride of
9168           a DIB or a Cursor.
9170 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
9172         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
9174 2006-01-19  Jackson Harper  <jackson@ximian.com>
9176         * ComboBox.cs: Hookup the text controls keydown event so we get
9177         those when the text control has the focus.
9179 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
9181         * Label.cs: Now using the base events instead of defining new ones;
9182           this allows us to just call the base properties without having to
9183           duplicate all base property logic 
9185 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
9187         * Label.cs: A label by default is not a tabstop (Fixes one of our
9188           failing nunit tests)
9190 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
9192         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
9193         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
9195 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
9197         * Cursor.cs: Reimplemented creating cursor bitmaps without using
9198           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
9199           This fixes #77218
9200         * XplatUIWin32.cs: 
9201           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
9202             constructor creates images that can't be saved. Part of the fix
9203             for #76103
9204           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
9205           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
9206             bug fix for handling window state in forms properly)
9208 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
9210         * ThemeGtk.cs: Simplify ScrollBar drawing
9212 2006-01-18  Jackson Harper  <jackson@ximian.com>
9214         * Splitter.cs: Set the default dock style for the splitter control
9215         in the constructor.
9217 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
9219         * ThemeGtk.cs: Corrected StateType and ShadowType for
9220           gtk_paint_box
9222 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
9224         * Control.cs: Make use of Theme.DoubleBufferingSupported
9225         * ThemeGtk.cs:
9226           - Added drawing for flat style buttons
9227           - Added ScrollBar drawing
9229 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
9231         * ThemeClearlooks.cs: Removed some unneeded code.
9232         * ThemeGtk.cs: First part of ThemeGtk enhancements.
9234 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
9236         * LinkLabel.cs: We need to update the hover drawing when
9237           leaving the control as well.
9239 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
9241         * DataGrid.cs: Clicking on non empty areas in the columns
9242            area was giving an exception
9244 2006-01-17  Jackson Harper  <jackson@ximian.com>
9246         * ThemeWin32Classic.cs:
9247         * ListView.cs: Do not draw/clip the headers when the header style
9248         is None.
9250 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
9252         * DataGrid.cs: Fixes 77260
9253         
9254 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
9256         * DataGrid.cs: Clicking on a column on a empty grid was giving
9257           an exception
9259 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
9261         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
9262           or any keypress will crash the grid.
9264 2006-01-17  Mike Kestner  <mkestner@novell.com>
9266         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
9267         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
9268         invisible/previously-visible items.
9269         [Fixes #76909]
9271 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
9273         * ThemeClearlooks.cs:
9274         - Added CL_Draw_Button method; now other theme controls that are 
9275           not derived from button or do not have a button can draw buttons
9276           too
9277         - Updated ComboBox drawing
9278         - Beautified RadioButton drawing
9279         - Corrected drawing of bottom and left tabs
9280         - Beautified DateTimePicker and MonthCalendar
9281         - Added CPDrawButton and CPDrawRadioButton
9283 2006-01-16  Jackson Harper  <jackson@ximian.com>
9285         * ComboBox.cs: Set the initial value of the scrollbar to the
9286         current index. Reduce the numbers of refreshs and IndexOfs called.
9288 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
9290         * FileDialog.cs: When the file listview is focused hitting the
9291           backspace key moves the fileview to the parent directory
9293 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
9295         * Form.cs: 
9296           - Added RecreateHandle call when changing taskbar visibility to 
9297             trigger reparenting in Win32 driver (Fixes #75719)
9298           - If a window has minimize or maximize buttons, it cannot have
9299             a help button
9300         * XplatUIWin32.cs:
9301           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
9302             the toplevel form with FosterParent (A toolwindow not on the
9303             taskbar) (Fixes #75719)
9304           - Made FosterParent a toolwindow
9306 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
9308         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
9310 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
9312         * ToolTip.cs: If SetToolTip is called from a control and the mouse
9313           is currently over that control, make sure that tooltip_window.Text
9314           gets updated
9316 2006-01-13  Mike Kestner  <mkestner@novell.com>
9318         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
9320 2006-01-13  Jackson Harper  <jackson@ximian.com>
9322         * TreeView.cs: On MS GetNodeAt never actually factors in the X
9323         value passed.  Also redraw the selected node when we recieve
9324         focus, so tabbing between trees works correctly.
9326 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
9328         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
9329           ~/.gconf/%gconf-tree.xml, so use
9330           .gconf/desktop/gnome/interface/%gconf.xml
9332 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
9334         * TextControl.cs: Draw text in gray if control is disabled
9336 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
9338         * TreeView.cs: Draw the focus rectangle outside the highlight, to
9339           make sure it's always visible. Fixes #76680.
9341 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
9343         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
9345 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
9347         * PageSetupDialog.cs: Added.
9348         * PrintDialog.cs: Attributes.
9349         * PrintPreviewControl.cs: Updates.
9350         * PrintPreviewDialog.cs: Updates.
9351         
9352 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
9354         * Control.cs: Undid my selection check fix, since it's not needed
9355         * TextBoxBase.cs:
9356           - Now considering the presence of hscroll/vscroll when sizing
9357             vscroll/hscroll respectively. Fixed bug #77077
9358           - Added Left/Up/Down/Right to IsInputKey list to prevent
9359             ContainerControl from stealing them. This fixes what I broke
9360             with my last checkin.
9362 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
9364         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
9365           I finally understand how the property can be set without a setter :-)
9367 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
9369         * Application.cs:
9370           - Switched RunLoop to use static Message.Create to create a 
9371             Message object
9372           - Added PreProcessMessage call in runloop for keyboard events; this
9373             is part of the fix for #77219, I overlooked this originally in the
9374             MSDN doc for PreProcessMessage
9375         * Control.cs:
9376           - Removed call to PreProcessMessage from handling of keyboard 
9377             messages; it's supposed to be done in the message pump
9378           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
9379             per MSDN documentation.
9380           - IsInputChar: All chars are input chars by default; removed the 
9381             parent calling chain, MS does not document that
9382           - PreProcessMessage: If IsInputChar is true, we want to return false
9383             to allow dispatching of the message
9384           - When selecting the next control, now also check that we're not
9385             selecting ourselves again and therefore return a false positive.
9386         * TextBoxBase.cs:
9387           - Tried to match return values for IsInputKey and ProcessDialogKey
9388             to what MS returns; moved processing of our special keys outside
9389             ProcessDialogKey since MS does not seem to return true on those.
9390           - Moved code that previously was in ProcessDialogKey into new private
9391             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
9392           - Reworked handling of WM_CHAR to not have to duplicate code from
9393             Control.cs anymore, instead we simply call down to base.
9394            
9395 2006-01-12  Jackson Harper  <jackson@ximian.com>
9397         * ComboBox.cs: We always need to refresh the text area when
9398         EndUpdate is called. Fixes the combobox in the file dialog.
9399         * Control.cs: Don't create the creator_thread until the controls
9400         handle is created.  Also in InvokeRequired we check if the
9401         creator_thread is null. This gives the effect of InvokeRequired
9402         returning true if the controls handle is not created yet, and
9403         matches MS.
9405 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
9407         * XplatUI.cs:
9408           - Added StartLoop() driver method. This is used to allow drivers to
9409             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
9410             loop for a particular thread
9411           - Added EndLoop() driver method. This is called once the message
9412             pump for the thread is shut down
9413           - Added SupportsTransparency method to allow the driver to indicate
9414             opacity support for windows
9415         * Form.cs:
9416           - Removed TODO attribute, completed AllowTransparency property
9417           - Added documented logic to Opacity
9418         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
9419           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
9420           versions of CompatibleTextRendering
9421         * X11Structs.cs: Added opacity atom to our atom enumeration
9422         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
9423           of a form might be set before it's reparented by the WM, and we need
9424           the opacity value without calling up to Form)
9425         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
9426           SupportsTransparency() driver methods
9427         * Application.cs: Now calling StartLoop and EndLoop driver methods
9428         * XplatUIX11.cs:
9429           - Added opacity atom registration
9430           - Added StartLoop()/EndLoop() methods. They're empty right now but
9431             will need to get implemented when we switch to a per-thread queue
9432           - Implemented SupportsTransparency() method
9433           - Implemented SetWindowTransparency() method
9434           - Added support for setting the opacity value when a window is
9435             reparented (since the opacity needs to be set on the WM frame)
9436         * XplatUIOSX.cs, XplatUIWin32.cs:
9437           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
9439 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
9441         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
9443 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
9445         * FileDialog.cs: Added ToolTip for MWFFileView
9446         * MimeIcon.cs: Rewrote GnomeHandler.
9447           - Get currently used gnome icon theme from
9448             ($HOME)/.gconf/%gconf-tree.xml
9449           - Make use of inherited icon themes
9450           - Support SVG icon themes like Tango via librsvg
9452 2006-01-12  Miguel de Icaza  <miguel@novell.com>
9454         Revert's Jackson's revert which broke 2.0 builds.   Fix both
9455         builds. 
9456         
9457         * Application.cs: Move the use_compatible_text_rendering outside
9458         the NET_2_0 define.  If we ever need to use the
9459         use_compatible_text_rendering on the individual controls they will
9460         access the variable from the common shared code paths.
9462 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
9464         * XplatUI.cs:
9465           - Added more granular debug options
9466           - Added method to print both window text and id
9467           - Switched debug output to use new Window() debug method
9468           - Added IsEnabled() driver method
9469           - Added EnableWindow() driver method
9470         * Form.cs:
9471           - Removed end_modal; no longer needed, new loop handles termination
9472             via 'closing' variable
9473           - If form is modal, setting DialogResult will now initiate loop
9474             termination via 'closing' variable
9475           - Added support for is_enabled/WS_DISABLED to CreateParams
9476           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
9477             does all the work
9478           - Removed code that's now in RunLoop from ShowDialog()
9479           - Added various documented sanity checks to ShowDialog()
9480           - Added handling of WM_DESTROY message; we set 'closing' on getting
9481             the message to indicate the message pump to terminate
9482           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
9483             send by the Application.ExitThread method. (We send the message
9484             to destroy the window after all other events have been
9485             processed through the queue, instead of destroying the handle 
9486             directly)
9487           - Moved code from Close() method to WM_CLOSE handler; added logic
9488             to only send close-related events if the form is not displayed
9489             modal
9490         * Splitter.cs (..ctor): Fixed typo in resource name
9491         * Control.cs:
9492           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
9493             brush now
9494           - set_Cursor: Now only setting calling into XplatUI if the handle for
9495             the control is already created; this avoids implict handle creation
9496             or crashes if it's not created
9497           - set_Enabled: Now setting the enabled state via the new driver method
9498             instead of just tracking it
9499           - CreateParams: Added logic to set WS_DISABLED based on enabled state
9500           - CreateControl: Reordered event firing and method calls to more
9501             closely fire events in the order MS does. Now setting the
9502             enabled state in the driver when creating the control.
9503           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
9504             match MS order
9505         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
9506           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
9507         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
9508         * Hwnd.cs:
9509           - Added tracking of window enabled state (get_Enabled/set_Enabled)
9510           - Added EnabledHwnd property to easily allow a driver to find the
9511             handle of the first enabled window in the parent chain (this is
9512             used by drivers to pass up input events of disabled windows)
9513         * XplatUIDriver.cs: Added IsEnabled() method
9514         * Application.cs:
9515           - Removed crude and obsolete exiting tracking variable
9516           - Removed internal ModalRun(); replaced by RunLoop()
9517           - Implemented private CloseForms() method to allow closing all 
9518             windows owned by a particular (or all) threads
9519           - Exit() now properly closes all windows without forcing the message
9520             pump to quit
9521           - Removed obsolete InternalExit() method
9522           - Changed Run() methods to use new RunLoop() message pump
9523           - Implemented new RunLoop() method for both modal and non-modal forms
9524         * CommonDialog.cs:
9525           - get_CreateParams: Added setting of WS_DISABLED
9526           - Simplified ShowDialog(); now all the work is done in RunLoop(),
9527             invoked via Form.ShowDialog()
9528         * NativeWindow.cs: We don't remove the window from the collection when
9529           the handle is destroyed; there might still be messages for it in the
9530           queue (mainly the resulting WM_DESTROY); instead it will be removed
9531           when Control calls InvalidateHandle in the WM_DESTROY handler
9532         * XplatUIX11.cs:
9533           - CreateWindow: Added logic to handle the WS_DISABLED window style
9534           - EnableWindow: Implemented based on Hwnd.Enabled
9535           - GetMessage: Reset PostQuitState so the method can be called again
9536           - Implemented support for disabled windows (passing messages to the
9537             first enabled parent) in handling all input messages
9538           - Added optimizations for handling Expose events
9539           - Implemeted new driver method IsEnabled()
9540           - Now always resetting paint pending tracking vars when we start paint
9541           - Re-implemented UpdateWindow via just sending a WM_PAINT message
9542         * XplatUIOSX.cs: Added IsEnabled method stub
9543         * XplatUIWin32.cs: Implemented new IsEnabled() method
9545 2006-01-11  Jackson Harper  <jackson@ximian.com>
9547         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
9548         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
9549         variables a little.
9550         * ColorDialog.cs: Clear out the old form before adding the new
9551         panel.  
9553 2006-01-11  Jackson Harper  <jackson@ximian.com>
9555         * X11Dnd.cs: Make sure to add all the text formats when adding
9556         strings to the data object.
9557         * TreeNodeCollection.cs: When adding to a sorted tree we need to
9558         do some redrawing too.  Also change the UpdateNode to an
9559         UpdateBelow so the newly added node gets painted.
9560         
9561 2006-01-11  Miguel de Icaza  <miguel@novell.com>
9563         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
9564         LinkLabel.cs, PropertyGrid.cs: Implement the
9565         UseCompatibleTextRendering property for 2.x
9567         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
9569 2006-01-11  Jackson Harper  <jackson@ximian.com>
9571         * TreeView.cs: Use the property for setting the selected node so
9572         the correct events get raised.
9573         * TreeNode.cs: Update the tree when the fore/back colours of a
9574         node are set.
9576 2006-01-10  Jackson Harper  <jackson@ximian.com>
9578         * TreeView.cs: Allow setting SelectedNode to null.
9580 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
9582         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
9584 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
9586         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
9588 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
9590         * PrintDialog.cs: Added attributes and set default property values.
9592 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
9594         * PrintControllerWithStatusDialog.cs: 
9595         Added PrintControllerWithStatusDialog.
9597 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
9599         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
9600         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
9602 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
9604         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
9606 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
9608         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
9609         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
9611 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
9613         * MimeIcon.cs: Added internal class SVGUtil.
9615 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
9617         * FileDialog.cs: Don't crash if there are two files with the
9618           same name but different locations.
9620 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
9622         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
9623         dates across multiple month grids. Used to not highlight entire 
9624         month, but does now.
9625         
9626 2006-01-06  Jackson Harper  <jackson@ximian.com>
9628         * MonthCalendar.cs: Removed DoEvents call to prevent a running
9629         message loop. Change timer intervals to numbers that seem more
9630         natural.
9632 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
9634         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
9635           object for location info since screen object is now implemented.
9637 2006-01-05  Jackson Harper  <jackson@ximian.com>
9639         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
9640         * AsyncMethodResult.cs: We no longer use a WeakReference for the
9641         AsyncMethodResult, this is because we ALWAYS want the
9642         ManualResetEvent to get set.
9643         * Control.cs: When disposing use an async invoke to call shutdown
9644         code, so that thigns don't block on the finalizer thread.  Also
9645         check if we even have a message loop before trying to send
9646         messages, if we don't then don't bother sending messages.
9647         - No more weak references for async methods
9648         * XplatUIDriver.cs: No more weak references for async methods.
9650 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
9652         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
9653           returns two FontFamily with the same name
9655 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
9657         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
9658           drawing disabled text. Instead using the ColorGrayText color
9660 2006-01-04  Jackson Harper  <jackson@ximian.com>
9662         * TreeNode.cs: redraw the node when its image index is changed.
9664 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
9666         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
9667           time I checked there are no others like it.
9669 2006-01-04  Jackson Harper  <jackson@ximian.com>
9671         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
9672         this gives the behavoir I was looking for.
9673         * Control.cs: Special case Invoking EventHandlers, this matches MS
9674         and fixes part of bug #76326.
9676 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
9678         * ThemeClearlooks.cs, FileDialog.cs:
9679           - Reflect the latest Theme class changes
9680           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
9681             with DateTime
9682             
9683 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
9685         * Theme.cs: Cache UI resource images and resize them if needed
9687 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
9689         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
9690           is called. This fixes the crash in Nexxia when setting the font
9691           attributes in the chat. [However, RTF needs a look-over to make sure
9692           that all SelectionXXX methods handle the special case that selection
9693           is empty and therefore the change must be applied to all text starting
9694           at the cursor/selection start]
9696 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
9698         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
9699           XplatUIOSX.cs: Added SendMessage and PostMessage methods
9700         * X11Keyboard.cs: Switched to new way of calling PostMessage
9702 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
9704         * Theme.cs: Added theme interface for images to allow the theme to
9705           control what images are used for things like FileDialog, MessageBox
9706           icons, etc.
9707         * MessageBox.cs: Now uses the new Theme icon/image interfaces
9709 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
9711         * FileDialog.cs:
9712           - Removed some dead code
9713           - Opening a recently used file does work now
9714           - Small UI enhancements
9715           - Refactoring
9717 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
9719         * FileDialog.cs: Forgot too add __MonoCS__
9721 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
9723         * FileDialog.cs: We are able to read recently used files now let's
9724           go on and write them.
9726 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
9728         * FileDialog.cs: Breathe some life into "last open"/"recently used"
9729           button
9730         * MimeIcon.cs: Do a check for the top level media type also
9732 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
9734         * ThemeClearlooks.cs:
9735           - Added CPDrawStringDisabled
9736           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
9737             some chars if the text doesn't fit into text_rect
9738           - DrawListViewItem: If View = View.LargeIcon center the image;
9739             rewrote the drawing of ListViewItem.Text if View = 
9740             View.LargeIcon
9742 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
9744         * MimeIcon.cs: Use default KDE icon theme if there is no
9745           "48x48" directory for the current icon theme, fixes #77114
9746         * Mime.cs: Disable not working and actually not used code. 
9747         * ThemeWin32Classic.cs:
9748           - Replace "new SolidBrush" in GetControlBackBrush and
9749             GetControlForeBrush with ResPool.GetSolidBrush
9750           - Changed DrawListViewItem from private to protected virtual
9751         * FileDialog.cs:
9752           - Added form.MaximizeBox = true
9753           - Don't throw an exception if there is a broken symbolic link
9755 2005-12-23  Jackson Harper  <jackson@ximian.com>
9757         * TabControl.cs: Give the panels focus, keyboard navigation is
9758         fixed so this works correctly now.
9759         - We need these key events also.
9760         * ToolBar.cs: Remove some of the poor mans double buffering.
9761         
9762 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
9764         * ComboBox.cs: The internal TextBox now returns the focus.
9766 2005-12-23  Jackson Harper  <jackson@ximian.com>
9768         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
9770 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
9772         * Control.cs: Removed debug code
9773         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
9774           implicit children
9776 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
9778         * Control.cs: When creating the control, update the Z-order after
9779           all it's children are created, too. (Fixes nexxia not showing
9780           picturebox bug)
9782 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
9784         * Control.cs: Do not update the anchoring distances if layout is
9785           suspended, instead do it once layout is resumed
9787 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
9789         * Control.cs: 
9790           - After many hours of debugging, for both Jackson and
9791             myself, it turns out that it helps to set the parent of a control
9792             if you want to actually see it onscreen. In the spirit of that
9793             discovery, we're now setting the parent of the control and
9794             it's children when the control's handle is created. This fix
9795             will make Lutz Roeder's Reflector run happily. 
9796           - now just creating the handle instead of the whole control when
9797             getting a graphics context for the control.
9799 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
9801         * ScrollableControl.cs: When calculating the canvas, don't consider
9802           the scrollbar widths. Instead, predict if horizontal scrollbar
9803           will affect canvas when deciding on vertical display and vice versa.
9805 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
9807         * RichTextBox.cs: Set default RTF font for documents that don't
9808           have a font table (Fixes #77076)
9810 2005-12-22  Jackson Harper  <jackson@ximian.com>
9812         * TextBoxBase.cs: It's difficult to do, but you can have an empty
9813         clipboard. This prevents a NullRef in that case.
9814         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
9815         clipboard. PRIMARY is for the currently selected text only. (We
9816         should implement PRIMARY at some point.
9818 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
9820         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
9821           a Unicode function with a structure that was defined in Ansi way.
9822           This fixes #76942.
9824 2005-12-21  Jackson Harper  <jackson@ximian.com>
9826         * StatusBar.cs: Statusbar handles its fore/back colours on it's
9827         on. Because thats how it rolls. (and this avoids it using ambient
9828         colours).
9829         * ThemeWin32Classic.cs: Use the proper back color for filling.
9830         * Menu.cs: Use the system menu bar color for drawing menu
9831         bars. Using the window back color will bring ambient colours into
9832         the picture.
9834 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
9836         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
9837           Bitmaps were created and not disposed.
9839 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
9841         * Control.cs (CreateControl): Don't do anything if the control is
9842           already created, otherwise we'd fire the OnCreated event more than
9843           once
9845 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
9847         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
9848           will always match. Instead return -1. Fixes #76464.
9850 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
9852         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
9853           neither the beginning nor the end of the line (Fixes bug #76479)
9855 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
9857         * Control.cs:
9858           - ControlNativeWindow.ControlFromHandle(): Now handling situation
9859             where handle is invalid
9860           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
9861             instead of slower linear search
9862         * NativeWindow.cs: Don't remove the window from the hashtable until
9863           after the driver has destroyed it (since the driver might use
9864           Control.FromHandle to lookup the control object
9865         * Hwnd.cs: Added DestroyPending property to track if a window is 
9866           already destroyed as far as the driver is concerned and only hasn't
9867           yet notified the control
9868         * XplatUIX11.cs:
9869           - Activate(): Check if the window is still valid before using the 
9870             handle
9871           - Implemented DestroyChildWindow() method to mark child windows as
9872             destroyed when a window is destroyed. This prevents situations 
9873             where we might call an X method based on queued events for a
9874             window that already has been destroyed but we haven't yet pulled
9875             the destroy method from the queue.
9876           - Added a call to the new DestroyChildWindow() method to the drivers
9877             DestroyWindow code. Also now marking the destroyed window itself
9878             as pending
9880 2005-12-20  Jackson Harper  <jackson@ximian.com>
9882         * StatusBar.cs:
9883         * StatusBarPanel.cs: Don't calculate panel sizes on draw
9884         anymore. Just do them when needed, also track the rects of panels
9885         so that we can optimize refreshing more in the future.
9887 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
9889         * ColorDialog.cs: Fixed focus drawing in small color controls
9891 2005-12-19  Jackson Harper  <jackson@ximian.com>
9893         * InternalWindowManager.cs:
9894         * MdiWindowManager.cs: Cleanup some coordinate system changes so
9895         moving windows works properly.
9897 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
9899         * Control.cs: 
9900           - Removed call to InitLayout() from SetBoundsCore(); doc says
9901             it's only called when a control is added to a container
9902           - Split InitLayout logic, moved to separate UpdateDistances() method
9903             since we need to perform those calculations more often than just
9904             when adding the control to a container. (Needed to fix #77022)
9905           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
9906           - Reduced the OnBindingContextChanged events count, don't send them
9907             unless the control is created, we still aren't totally matching
9908             MS, but I can't quite figure out some of their rules
9910 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
9912         * ThemeClearlooks.cs: Corrected distance between ProgressBar
9913           stripes
9915 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
9917         * ThemeClearlooks.cs:
9918           - Updated ProgressBar drawing
9919           - Corrected drawing of ScrollBars and scroll buttons
9920           - Some temporary fixes for minor pixel artefacts
9922 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
9924         * Control.cs:
9925           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
9926             cause events to be sent in the same order as MS does.
9927           - Added ChangeParent() method to trigger various OnXXXChanged events
9928             that need to be fired when a parent changes (This is a reworking
9929             of the patch from r54254, with the X11 errors fixed)
9930           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
9931             since on MS we get OnLayoutChanged events when calling Clear()
9932           - Changed Enabled property to consider parent state as well, if a
9933             parent is not enabled, the control will not be either
9934           - Changed Parent property to simply call Controls.Add() since that
9935             now does all the work required, this way we avoid code duplication
9936           - Threw in a few OnBindingsContextChanged calls to try and match
9937             when MS sends them. We seem to send a few too many, though.
9938           - Added call to CreateControl when adding the control to a parent.
9939             We were never calling CreateControl. Still needs some work, in
9940             some places we treat HandleCreated and ControlCreated as equal, 
9941             which is wrong
9942           - Removed obsolete commented out code from UpdateZOrder()
9944 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
9946         * ThemeClearlooks.cs: Updated TrackBar drawing.
9948 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
9950         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
9952 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
9954         * FileDialog.cs: Add the Help button and the open readonly
9955           checkbox only if needed
9957 2005-12-16  Jackson Harper  <jackson@ximian.com>
9959         * Control.cs: Make sure we have an active menu before trying to
9960         process commands on it. Prevents menu-less forms from crashing
9961         when Alt is pressed.
9962         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
9963         Dieter Bremes.
9964         * RichTextBox.cs: Expand statement to help out gmcs and fix the
9965         2.0 build.
9967 2005-12-16  Jackson Harper  <jackson@ximian.com>
9969         * InternalWindowManager.cs: Don't translate tool windows screen
9970         coordinates. This fixes windows 'bouncing' around when being moved.
9972 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
9974         * TextBoxBase.cs:
9975           - MaxLength now treats 2^31-1 equal to unlimited length (this is
9976             not quite MS compatible, MS uses that number only for single line
9977             and 2^32-1 for multi-line, but I figure it won't hurt keeping
9978             the limit at 2GB)
9979           - Now enforcing the MaxLength limit when entering characters
9980           - Added argument to internal Paste() method to track if it's called
9981             from programatically or via keyboard, since keyboard driven pastes
9982             need to enforce max-length
9983           - Added logic to Paste to only paste as many chars as MaxLength 
9984             allows
9985         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
9986         * TextControl.cs:
9987           - Added Length property to return number of characters in document
9988           - Added private CharCount property which only tracks actual chars
9989             in the document (no linefeeds) and fires event when CharCount
9990             changes
9991           - Added tracking of character count to all methods that alter it
9992           - Added LengthChanged event to allow applications to subscribe
9993             to any changes to the document
9995 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
9997         * TextBox.cs: 
9998           - Removed local password_char field (moved to TextBoxBase)
9999           - Now setting the document's password var when password is
10000             set
10001         * TextBoxBase.cs:
10002           - Added password_char field (needed here so MultiLine can
10003             access it)
10004           - Added logic to MultiLine property setter to set the document's
10005             variable when password display is allowed
10006           - Removed debug code and made some debug code conditional
10007         * TextControl.cs:
10008           - Added RecalculatePasswordLine() method to handle special password
10009             char only lines
10010           - Added PasswordChar property, also added related tracking vars
10011           - Draw() method now uses local text var for grabbing text to draw,
10012             this var is set to line.text unless we're doing password display,
10013             then it is set to the pre-generated all-password-chars line
10014           - Added calling RecalculatePasswordLine() method for password lines
10016 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
10018         * Hwnd.cs: 
10019           - Added Reparented property to allow tracking of Window Manager
10020             reparenting actions (which affect X/Y calculations of toplevel 
10021             windows)
10022           - Made ToString() print window handles in hex
10023         * XplatUIX11.cs:
10024           - AddConfigureNotify(): Now uses reparented state off Hwnd to
10025             determine if X/Y needs offsetting
10026           - AddConfigureNotify(): Fixed offset calculations
10027           - Now adds ReparentNotify messages into the queue
10028           - Now processes ReparentNotify messages and causes a 
10029             WM_WINDOWPOSCHANGED message to be sent upstream if a window
10030             is reparented (as most likely it's X/Y coordinates are changed
10031             due to that)
10033 2005-12-14  Jackson Harper  <jackson@ximian.com>
10035         * XplatUIX11.cs: Tool windows still need to respek focus.
10037 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
10039         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
10040           have a working release
10042 2005-12-13  Jackson Harper  <jackson@ximian.com>
10044         * Form.cs: Update styles after setting the border style regardless
10045         of whether or not the window is using a window manager.
10047 2005-12-13  Jackson Harper  <jackson@ximian.com>
10049         * Form.cs: We now hook into an internal window manager instead of just an
10050         MDI subsystem, this is so we can have properly behaving tool windows.
10051         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
10052         * InternalWindowManager.cs: New internal class that acts as a
10053         window manager for tool windows and as a base for mdi windows.
10054         * MdiWindowManager.cs: New class that acts as a window manager for
10055         mdi windows.
10057 2005-12-12  Jackson Harper  <jackson@ximian.com>
10059         * Control.cs: Updates so we match behavoir for for implicit
10060         controls. Fixes explosions in MDI.
10062 2005-12-12  Jackson Harper  <jackson@ximian.com>
10064         * Control.cs: Implement Invalidate (Region).
10066 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
10068         * Control.cs: 
10069           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
10070             the same events as MS does. MS fires events for each property 
10071             except, for unknown reasons, Cursor, when the control is reparented. 
10072             I can't seem to totally match add/remove since MS also fires some 
10073             VisibleChanged events, which makes no sense. Consolidated the
10074             parenting code into a separate method so it can be called from
10075             both Add and Remove. set_Parent no longer needs any special logic
10076             as it calls the parent's add method which implicitly fires
10077             all events
10078           - Removed some obsolete code and debug output
10079           - Enabled state is inherited from parents, if this is enabled
10081 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
10083         * Form.cs: Removed commented out code
10085 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
10087         * Control.cs:
10088           - Added internal version of Invoke, with additional argument 
10089             indicating if we're calling it from a Dispose() handler. That
10090             way we can avoid BeginInvoke throwing an exception if we're
10091             calling for an already destroyed window.
10092           - Added a dispose argument to BeginInvokeInternal, and made the
10093             check if a valid window handle chain exists conditional on
10094             it not being a dispose call
10095           - Removed code in DestroyHandle to destroy our children. Since we
10096             now handle the WM_DESTROY message we will catch all our children
10097             being destroyed.
10098           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
10099         * Form.cs:
10100           - Added a field to track the application context of the form.
10101           - No need to set closing variable as response to WM_CLOSE, instead
10102             we destroy the window. We also call PostQuitMessage if the form
10103             has an application context (which makes it the main app form,
10104             which, when closed terminates the app)
10105         * XplatUI.cs:
10106           - Dropped Exit() method, it's naming was confusing
10107           - Added PostQuitMessage() which causes GetMessage to return false
10108             once the message queue is empty
10109         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
10110           PostQuitMessage()
10111         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
10112           no longer a valid XplatUI method, but left it in since it's used
10113           internally. Added empty PostQuitMessage() method.
10114         * MenuAPI.cs: Replaced call to Exit() with call to
10115           PostQuitMessage, even though this is probably no longer needed.
10116         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
10117         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
10118         * Application.cs:
10119           - Replaced call to XplatUI.Exit() with PostQuitMessage()
10120           - Removed old debug code that would call XplatUI for exception
10121             display, enabled standard exception handling (Still not enabled
10122             though, until NativeWindow's ExternalExceptionHandler define
10123             is removed
10124         * NativeWindow.cs:
10125           - Added internal method to allow control to update NativeWindow
10126             after a window has been destroyed
10127           - Added handling of already destroyed windows when calling i
10128             DestroyWindow
10129           - Added removal of handle from list on ReleaseHandle
10130         * XplatUIX11.cs:
10131           - Dropped GetMessageResult var and related code
10132           - Added PostQuitState to field to track if PostQuitMessage has been
10133             called
10134           - Dropped Exit() method
10135           - Added PostQuitMessage() method
10136           - GetMessage now will return false if PostQuitState is set and no
10137             more messages are in the queue.
10138           - Expose handler will no longer generate WM_PAINT messages if we are
10139             in PostQuitState since it's very likely any windows have already
10140             been destroyed, and since Hwnd won't get updated until we have
10141             processed the DestroyNotify we'd be causing X errors.
10142         
10143 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
10145         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
10146           Thanks to Mike for pointing out the err of my ways.
10148 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
10150         * Control.cs(PreProcessMessage): Moved menu handling back, but
10151           after all other key handling, to match MS (who handles Menu in
10152           DefWndProc)
10153         * Menu.cs (WndProc): Removed my brainfart
10155 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
10157         * Control.cs(PreProcessMessage): Removed special menu handling 
10158         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
10160 2005-12-07  Mike Kestner  <mkestner@novell.com>
10162         * Control.cs : special case SYSKEYUP so that we can adjust keynav
10163         state according in tracker.
10164         * Menu.cs : promote tracker field to base class and provide a tracker
10165         lookup capability.  Add/Remove shortcuts dynamically if the top menu
10166         has a tracker. Unparent items that are removed from the collection.
10167         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
10168         * Theme*.cs: add always_show_hotkeys field to support configurability
10169         of mnemonic display.  win32 doesn't show mnemonics until Alt is
10170         pressed.
10172 2005-12-07  Jackson Harper  <jackson@ximian.com>
10174         * MdiChildContext.cs: Use Control.ResetCursor.
10175         * Control.cs: ResetCursor needs to set the property so that the
10176         correct XplatUI call gets made.
10178 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
10180         * Control.cs: More fixes to make our key events match MS. We
10181           were not setting the modifier state on KeyData, and we were
10182           not generating any events when Alt was pressed with a key
10183           since handling of WM_SYSxxx was missing for the OnKey methods.
10185 2005-12-07  Jackson Harper  <jackson@ximian.com>
10187         * MdiChildContext.cs: reenable the sizing code.
10188         - When the mouse leaves a window reset its cursor.
10190 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
10192         * ThemeClearlooks.cs: Reflect latest Hwnd changes
10194 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
10196         * Hwnd.cs: Now using the theme 3d bordersize to calculate
10197           widths of Fixed3D borders
10199 2005-12-07  Jackson Harper  <jackson@ximian.com>
10201         * MdiClient.cs: Fix warnings. Earn Mike's love.
10203 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
10205         * ThemeClearlooks.cs:
10206           - Adjusted mouse over button color
10207           - Added first parts of CheckBox drawing
10208           - Added correct color for selected text background
10209           - Fixed ComboBox drawing
10210           - Added CPDrawBorder3D and CPDrawBorder
10212 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
10214         * XplatUIX11.cs: Added call to XBell for AudibleAlert
10216 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
10218         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
10219           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
10220           alert users via sound. We could add an enum arg with different
10221           types of alerts in the future
10223 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
10225         * Control.cs: Fix behaviour problems pointed out by Mike
10227 2005-12-05  Mike Kestner  <mkestner@novell.com>
10229         * StatusBarPanel.cs: add Invalidate method and hook it into all the
10230         prop setters.  Calls parent.Refresh for now, but could be maybe be
10231         optimized with an internal method on StatusBar at some point.
10232         [Fixes #76513]
10234 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
10236         * RichTextBox.cs: Implemented get_SelectionColor
10238 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
10240         * ThemeClearlooks.cs:
10241           - Removed dead code
10242           - Draw black button border only if button is Form.AcceptButton
10243           - Draw correct button color for pressed RadioButton if the mouse 
10244             has entered the button
10245           - Updated ProgressBar drawing!
10246           - Updated CPDrawSizeGrip drawing
10247           - Updated StatusBarPanel drawing
10249 2005-12-05  Mike Kestner  <mkestner@novell.com>
10251         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
10252         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
10254 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
10256         * ThemeClearlooks.cs: Initial check-in, activate with
10257           export MONO_THEME=clearlooks
10258         * ThemeEngine.cs: Added ThemeClearlooks
10260 2005-12-03  Mike Kestner  <mkestner@novell.com>
10262         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
10263         [Fixes #76897]
10265 2005-12-02  Jackson Harper  <jackson@ximian.com>
10267         * Form.cs: If the child form has no menu the default main menu is
10268         used as the active menu.
10270 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
10272         * ListBox.cs: Check if any items exist before trying to resolve 
10273           coordinates into items
10275 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
10277         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
10278           as the second color for the background hatch
10280 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
10282         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
10283         * RichTextBox.cs: FormatText position arguments are 1-based, now making
10284           sure that what we pass to FormatText is always 1-based. Fixes #76885
10286 2005-11-29  Miguel de Icaza  <miguel@novell.com>
10288         * NumericUpDown.cs (EndInit): When we are done initializing,
10289         reflect any updates on the UI.
10291 2005-12-02  Jackson Harper  <jackson@ximian.com>
10293         * ImplicitHScrollBar.cs:
10294         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
10295         their container controls.
10296         * TreeView.cs: Use the new implicit scrollbars.
10298 2005-12-02  Jackson Harper  <jackson@ximian.com>
10300         * TreeView.cs: Make top_node internal so the TreeNodeCollections
10301         can play with it.
10302         * TreeNodeCollection.cs: If we remove the topnode we need to
10303         update topnode to the next node in line.
10304         - When clearing nodes go through the same process as removing
10305         them, so they get depareneted and checked if they are top node.
10307 2005-12-01  Jackson Harper  <jackson@ximian.com>
10309         * TreeView.cs: When imagelists are used the image area is
10310         selectable as well as the text.
10311         - If there are no selected nodes select the first one.
10312         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
10313         so don't do it more then we need to.
10315 2005-12-01  Jackson Harper  <jackson@ximian.com>
10317         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
10318         that arrows can be scaled.
10320 2005-12-01  Jackson Harper  <jackson@ximian.com>
10322         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
10323         fail. Patch by Dieter Bremes
10325 2005-11-30  Jackson Harper  <jackson@ximian.com>
10327         * Form.cs: Property is 2.0 only
10328         * PrintDialog.cs: Signature fix.
10330 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
10332         * TextControl.cs: 
10333           - No longer artificially moves text 2 pixels down (now that we have
10334             borders this is no longer needed)
10335           - Added calcs for left, hanging and right indent
10337 2005-11-23  Mike Kestner  <mkestner@novell.com>
10339         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
10341 2005-11-30  Jackson Harper  <jackson@ximian.com>
10343         * MdiChildContext.cs: Set the cloned menus forms, as these don't
10344         get cloned as part of CloneMenu ().
10345         * Menu.cs: Make sure the parent of the items get set correctly
10346         when they are added.  And the owners are notified of the changes.
10347         * Form.cs: Create an ActiveMenu property, so that when MDI is used
10348         we can change the menu being displayed/handled by the form without
10349         changing the menu assosciated with the form.
10350         - Don't let Mdi children draw/handle menus.
10351         
10352 2005-11-30  Jackson Harper  <jackson@ximian.com>
10354         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
10355         a MenuChanged event. Just to make the API a little more
10356         consistent.
10357         * MainMenu.cs:
10358         * MenuItem.cs: Use the new OnMenuChanged
10359         * MdiChildContext.cs: Handle menu merging.
10360         * Form.cs: Implement MergedMenu.
10361         
10362 2005-11-30  Jackson Harper  <jackson@ximian.com>
10364         * Menu.cs: We were misusing Add. Add goes behind the specified
10365         index according to the docs, and does not replace the specified
10366         index. So I added an Insert method.
10368 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
10370         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
10371           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
10372           is for Jackson
10373         * RichTextBox.cs: Added calls to base for DnD events
10375 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
10377         * TextControl.cs:
10378           - Fixed drag-selection related crash; style fixes
10379           - Implemented undo class
10380             o Implemented method to capture document state for specified
10381               range in document tree
10382             o Implemented method to restore captured document state
10383             o Implemented cursor tracking
10384             o Implemented basic undo stack
10385           - Added undo cursor tracking to methods altering cursor location
10386           - Added undo tracking to selection deletion (still missing
10387             other text-altering hookups)
10388         * RichTextBox.cs:
10389           - Added SelectionLength property
10390           - Implemented CanPaste()
10391           - Implemented Paste()
10392           - Added missing protected methods
10393           - Fixed RTF->Document conversion; now uses font index 0 and color 
10394             index 0 as the default font for the parsed text
10395           - Fixed RTF<->Document font size translation
10396           - Fixed RTF generation, now properly handles cross-tag boundaries
10397             for single line selection
10398           - No longer always appends blank line to generated RTF
10399           - Removed TODOs
10400           - Added missing attributes
10401           - Hooked up undo-related methods
10402         * TextBoxBase.cs:
10403           - Implemented Copy()
10404           - Implemented Paste()
10405           - Implemented Cut()
10406           - Fixed caret mis-behaviour on backspace across line-boundaries
10408 2005-11-29  Jackson Harper  <jackson@ximian.com>
10410         * MdiClient.cs: Add a method for activating mdi children. Very
10411         basic right now. I imagine someday it might need more girth.
10412         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
10413         children windows names are added to the menu item.
10414         * ThemeWin32Classic.cs: Draw the arrow if the item is an
10415         mdilist. This happens regardless of whether or not there are any
10416         mdi windows to see in the list, and according to my tests happens
10417         before the items are even added. Also happens if there isn't even
10418         an mdi client to get windows from.
10420 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
10422         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
10423         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
10425 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
10427         * DataGridTableStyle.cs:
10428           - Create always the styles for the missing columns even if they are
10429             provided by the user (not default table style)
10430         * DataGrid.cs:
10431           - Fixes bug 76770
10432           - Fixes SetDataBinding (always re-attach source)
10433           - Fixes SetNewDataSource (only clear styles if they are not for 
10434             this source)
10435          -  Expands OnTableStylesCollectionChanged to handle style refresh 
10436             and remove properly
10438 2005-11-29  Jackson Harper  <jackson@ximian.com>
10440         * FileDialog.cs: Implement missing bits, remove some dead
10441         code.
10442         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
10443         creation of the panel so that the options set on the dialog are
10444         seen when the panel is created.
10445         * TreeView.cs: raise a click when items are clicked.
10446         
10447 2005-11-29  Jackson Harper  <jackson@ximian.com>
10449         * MdiClient.cs: Pass some signature methods through to base.
10451 2005-11-28  Jackson Harper  <jackson@ximian.com>
10453         * ListView.cs: Raise the click event when items are clicked.
10455 2005-11-28  Jackson Harper  <jackson@ximian.com>
10457         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
10458         a nullref.
10460 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
10462         * ThemeNice.cs: - Removed 1 pixel bitmaps
10463           - Use SmoothingMode.AntiAlias where it makes sense
10464             (ScrollButton arrow for example)
10465           - Enhanced Button focus drawing
10466           - Fixed ComboBox drawing (no artefacts anymore, focus
10467             rectangle is back again, reduced size of ComboButton, etc.)
10468           - Fixed RadioButton focus drawing for Appearence.Button
10469           - Slight ScrollButton redesign
10470           - Some LinearGradientBrush size fixes
10471           - GroupBoxes have now rounded edges
10472           - Fixed StatusBar drawing
10474 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
10476         * ThemeNice.cs: - Remove dead code
10477           - use correct background colors for menus, etc.
10478           - Fake pixel drawing with 1 pixel bitmaps
10480 2005-11-24  Jackson Harper  <jackson@ximian.com>
10482         * MdiClient.cs: Size the scrollbars when resizing the window.
10483         - Resize the maximized windows when the client is resized
10484         * Form.cs: Make the child context available
10485         
10486 2005-11-23  Jackson Harper  <jackson@ximian.com>
10488         * MdiChildContext.cs: Don't size windows if they are maximized.
10490 2005-11-23  Mike Kestner  <mkestner@novell.com>
10492         * ContextMenu.cs: use MenuTracker.
10493         * Control.cs: remove menu handle usage.
10494         * Form.cs: remove menu handle usage.
10495         * Hwnd.cs: remove menu handle usage.
10496         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
10497         motion and clicks to the new Tracker handlers.
10498         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
10499         and handle usage.
10500         * MenuAPI.cs: refactored to combine popup and menubar event handling.
10501         Killed the MENU and MENUITEM data types and associated collections
10502         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
10503         MenuTracker class that exposes the leftovers from the old MenuAPI
10504         static methods. Restructured Capture handling so that only one grab is
10505         done for the entire menu hierarchy instead of handing off grabs to
10506         submenus. Tracker now has an invisible control to Capture when active.
10507         * MenuItem.cs: add sizing accessors, kill Create
10508         and handle usage.
10509         * Theme.cs: remove menu handle and MENU(ITEM) usage.
10510         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
10511         MENU(ITEM). remove menu handle usage, use Menu directly.
10512         * XplatUIDriver.cs: remove menu handle usage.
10513         * XplatUIOSX.cs: remove menu handle usage.
10514         * XplatUIWin32.cs: remove menu handle usage.
10515         * XplatUIX11.cs: remove menu handle usage.
10517 2005-11-22  Jackson Harper  <jackson@ximian.com>
10519         * Hwnd.cs: Don't compute the menu size for
10520         DefaultClientRectangle.
10521         - Reenable menu sizes being computed for GetClienRectangle.
10522         * Form.cs: Remove comment of trechery
10523         
10524 2005-11-22  Jackson Harper  <jackson@ximian.com>
10526         * Hwnd.cs: The adjustments for the menu bar are made when it is
10527         attached to the form.
10529 2005-11-19  Jackson Harper  <jackson@ximian.com>
10531         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
10532         (just like on windows).
10534 2005-11-19  Jackson Harper  <jackson@ximian.com>
10536         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
10537         use real buttons anymore because they are in non client area. The
10538         one TODO here is that I need to somehow invalidate a section of
10539         the non client area.
10541 2005-11-18  Jackson Harper  <jackson@ximian.com>
10543         * Control.cs: Put the enum check back in now that MDI doesnt have
10544         to use this to set border styles.
10545         * Form.cs: Only set mdi child windows borders if the handle has
10546         been created.
10547         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
10548         this directly on to the driver.
10549         - Get the move start position before adjusting for the titlebar
10550         height, this fixes the windows "skipping" when they are first
10551         moved.
10553 2005-11-18  Jackson Harper  <jackson@ximian.com>
10555         * XplatUIX11.cs: Just compute the mdi borders separately as they
10556         don't totally match up with normal form borders.
10558 2005-11-18  Jackson Harper  <jackson@ximian.com>
10560         * Control.cs: Set WS_ styles for borders, so that the driver does
10561         not have to retrieve the control instance to figure out what kind
10562         of borders it should have.
10563         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
10564         driver can know its an mdi child easily.
10565         * XplatUIX11.cs: Get the border styles and whether the window is
10566         MDI from the Styles and ExStyles params instead of having to get a
10567         control. This prevents a chicken and egg problem.       
10569 2005-11-18  Jackson Harper  <jackson@ximian.com>
10571         * MdiClient.cs: Fix typo so scrollbars show up correctly.
10573 2005-11-18  Jackson Harper  <jackson@ximian.com>
10575         * MdiClient.cs: Calculate when to add and remove scrollbars
10576         correctly.
10577         * MdiChildContext.cs: Adjust the y position to take the titlebar
10578         into account.
10579         - No height for FormBorderStyle.None
10581 2005-11-18  Jackson Harper  <jackson@ximian.com>
10583         * Control.cs: Allow non enum values to be used for
10584         InternalBorderStyle.  MDI does this to set a special border style.
10585         - New utility methods for converting points to/from client coords
10586         - Add the newly created control to the Controls collection before
10587         updating its style. This way UpdateStyle can walk the control
10588         heirarchy to find the control if needed.
10589         so I don't need to create a new Point object all the time.
10590         * Form.cs: Let MDI windows handle their border styles.
10591         - Set styles on MDI windows so the correct title style is derived.
10592         * MdiChildContext.cs: Move all the painting and window handling
10593         into the non client area.
10594         - Use correct sizing and put correct buttons on frames based on
10595         the FormBorderStyle.
10596         - Notify the mdi client about scrolling
10597         - Need to handle the buttons ourselves now, because they are all
10598         in non client areas and we can't add controls there.
10599         * MdiClient.cs: Halfway to scrolling, this implementation is
10600         somewhat broken though, we need to check to make sure other
10601         windows aren't causing scrolling before removing the bars. Also
10602         the bars need to be drawn on top, maybe I can switch implicit
10603         controls to be on top.
10604         * Hwnd.cs: caption_height and tool_caption_height are now
10605         properties of an hwnd, this way they can be set by the driver
10606         based on the type of window they are.  In X11 the window manager
10607         handles the decorations so caption_height is zero unless its an
10608         MDI window.
10609         - Add 3 pixel borders for MDI windows (0xFFFF).
10610         - Get rid of some code duplication, have DefaultClientRectanle
10611         just call GetClientRectangle.
10612         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
10613         Hwnd now.
10614         - Set border styles differently for mdi windows.
10615         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
10616         Hwnd now.
10617         
10618 2005-11-15  Mike Kestner  <mkestner@novell.com>
10620         * Menu.cs: when adding an item to the collection, if item is already 
10621         parented, remove it from the parent.
10623 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
10625         * X11DesktopColors.cs: Added KDE support
10627 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
10629         * XplatUIWin32.cs: 
10630           - Clipboard methods now can translate Rtf format
10631           - No longer removes clipboard contents whenever a new format is added
10632             to allow placing multiple formats on the clipboard
10633         * Clipboard.cs: Clipboard now supports getting a IDataObject and
10634           will place all formats contained in it onto the clipboard. Also
10635           now cleans the clipboard before placing a new object onto it
10636         * RichTextBox.cs:
10637           - Implemented set_Rtf
10638           - Implemented set_SelectedRtf
10639           - Created InsertRTFFromStream() method to allow single code base
10640             for all properties and methods that insert RTF into document
10641           - Removed debug output
10642         * TextControl.cs:
10643           - Fixed Delete(int) to fix up line numbers
10644           - Fixed ReplaceSelection to combine start and end line
10645           - Fixed serious DeleteChars bug that would leave the document tree
10646             broken
10647           - Improved DumpTree with several logic checks to detect broken
10648             document trees
10649           - Removed debug lines
10650           - Fixed Caret.WordForward/WordBack moving code, now always also 
10651             updates caret.tag (fixes crash when word-selecting across tag
10652             boundaries via keyboard)
10653           - Added Insert() method for inserting multiline text into documents
10654           - Fixed DeleteChars() calculation errors that would cause a broken
10655             tag chain with multiple tag lines
10656           - DeleteChars() no longer crashes on multi-tag lines if not all tags
10657           - Split() no longer moves caret if split is at caret location
10658           - ReplaceSelection() now updates the cursor and re-displays it
10659           - ReplaceSelection() now uses new Insert() method to avoid code
10660             duplication
10661           - FormatText() can now handle formatting partial lines
10662         * TextBoxBase.cs:
10663           - Append now uses new TextControl.Insert() method (this avoids 
10664             duplicate code)
10665           - Implemented Ctrl-X (Cut) (
10666           - Implemented Ctrl-C (Copy)
10667           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
10668             regeneration when pasting text; roundtripping Copy&Paste within
10669             edit control still fails due to some calculation bugs in GenerateRTF)
10670           - The Delete key will now remove the current selection if it is visible
10671         * TextBox.cs: Removed debug lines
10672         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
10673           driver to be initialized and can't therefore be done via a static ctor)
10675 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
10677         * TextControl.cs: Added backend code for finding char arrays and strings
10678         * TextBoxBase.cs:
10679           - Added mouse wheel scroll support
10680           - Added support for VScroll and HScroll events
10681         * RichTextBox.cs:
10682           - Implemented all seven Find() variants
10683           - Implemented GetCharFromPosition()
10684           - Implemented GetCharIndexFromPosition()
10685           - Implemented GetLineFromIndex()
10686           - Implemented GetPositionFromCharIndex();
10687           - Implemented SaveFile for PlainText and UnicodeText
10688           - Fixed set_Font, now setting a new font applies that font to
10689             the whole document
10690           - Implemented generic Document to RTF converter
10691           - Implemented SaveFile for RichText format (still missing unicode
10692             conversion for non-ansi chars)
10693           - Implemented get_Rtf
10694           - Implemented get_SelectedRtf
10696 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
10698         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
10699           to allow any captures to be released before triggering OnClick. This
10700           way a click handler may capture the mouse without interference.
10701         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
10702           This way we send them even though X may not allow a grab (if the window
10703           isn't visible, for example)
10705 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
10707         * DataGridViewRowEventArgs.cs: DataGridView implementation
10708         * DataGridViewElement.cs: DataGridView implementation
10709         * DataGridViewComboBoxCell.cs: DataGridView implementation
10710         * DataGridViewDataErrorContexts.cs: DataGridView implementation
10711         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
10712         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
10713         * ImageLayout.cs: DataGridView implementation
10714         * DataGridViewComboBoxColumn.cs: DataGridView implementation
10715         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
10716         * DataGridViewSelectionMode.cs: DataGridView implementation
10717         * IDataGridViewEditingControl.cs: DataGridView implementation
10718         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
10719         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
10720         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
10721         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
10722         * DataGridViewColumnSortMode.cs: DataGridView implementation
10723         * DataGridView.cs: DataGridView implementation
10724         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
10725         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
10726         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
10727         * Padding.cs: DataGridView implementation
10728         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
10729         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
10730         * DataGridViewRowEventHandler.cs: DataGridView implementation
10731         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
10732         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
10733         * DataGridViewButtonCell.cs: DataGridView implementation
10734         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
10735         * DataGridViewEditMode.cs: DataGridView implementation
10736         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
10737         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
10738         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
10739         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
10740         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
10741         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
10742         * DataGridViewCellEventHandler.cs: DataGridView implementation
10743         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
10744         * DataGridViewCellStyleConverter.cs: DataGridView implementation
10745         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
10746         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
10747         * DataGridViewColumnEventArgs.cs: DataGridView implementation
10748         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
10749         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
10750         * QuestionEventArgs.cs: DataGridView implementation
10751         * IDataGridViewEditingCell.cs: DataGridView implementation
10752         * DataGridViewTriState.cs: DataGridView implementation
10753         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
10754         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
10755         * DataGridViewColumnCollection.cs: DataGridView implementation
10756         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
10757         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
10758         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
10759         * DataGridViewColumn.cs: DataGridView implementation
10760         * DataGridViewCellBorderStyle.cs: DataGridView implementation
10761         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
10762         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
10763         * DataGridViewRow.cs: DataGridView implementation
10764         * DataGridViewImageCellLayout.cs: DataGridView implementation
10765         * DataGridViewImageCell.cs: DataGridView implementation
10766         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
10767         * DataGridViewCheckBoxCell.cs: DataGridView implementation
10768         * DataGridViewHeaderCell.cs: DataGridView implementation
10769         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
10770         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
10771         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
10772         * DataGridViewTextBoxColumn.cs: DataGridView implementation
10773         * QuestionEventHandler.cs: DataGridView implementation
10774         * DataGridViewCellStyleScopes.cs: DataGridView implementation
10775         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
10776         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
10777         * DataGridViewCell.cs: DataGridView implementation
10778         * DataGridViewCellEventArgs.cs: DataGridView implementation
10779         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
10780         * DataGridViewCellStyle.cs: DataGridView implementation
10781         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
10782         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
10783         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
10784         * TextFormatFlags.cs: DataGridView implementation
10785         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
10786         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
10787         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
10788         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
10789         * DataGridViewButtonColumn.cs: DataGridView implementation
10790         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
10791         * HandledMouseEventArgs.cs: DataGridView implementation
10792         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
10793         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
10794         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
10795         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
10796         * DataGridViewRowCollection.cs: DataGridView implementation
10797         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
10798         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
10799         * DataGridViewHitTestType.cs: DataGridView implementation
10800         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
10801         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
10802         * DataGridViewColumnEventHandler.cs: DataGridView implementation
10803         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
10804         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
10805         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
10806         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
10807         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
10808         * DataGridViewContentAlignment.cs: DataGridView implementation
10809         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
10810         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
10811         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
10812         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
10813         * DataGridViewPaintParts.cs: DataGridView implementation
10814         * DataGridViewCellCollection.cs: DataGridView implementation
10815         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
10816         * DataGridViewImageColumn.cs: DataGridView implementation
10817         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
10818         * DataGridViewElementStates.cs: DataGridView implementation
10819         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
10820         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
10821         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
10822         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
10823         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
10824         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
10825         * DataGridViewRowHeaderCell.cs: DataGridView implementation
10826         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
10827         * DataGridViewTextBoxCell.cs: DataGridView implementation
10828         * DataGridViewBand.cs: DataGridView implementation
10829         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
10830         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
10831         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
10832         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
10833         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
10834         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
10835         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
10836         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
10837         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
10838         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
10839         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
10841 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
10843         * ThemeWin32Classic.cs: 
10844           - Draw the outside focus rectangle around buttons
10845           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
10846             doesn't use end caps for every dash of a line anymore. This
10847             workaround ignores the forecolor.
10849 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
10851         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
10852           endian safe.
10854 2005-11-07  Jackson Harper  <jackson@ximian.com>
10856         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
10858 2005-11-07  Jackson Harper  <jackson@ximian.com>
10860         * ScrollableControl.cs: Calculate the maximum and change vars
10861         (more) correctly so that scrollbars appear as a sensible size.
10863 2005-11-04  Jackson Harper  <jackson@ximian.com>
10865         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
10866         collection.
10867         * TreeView.cs: When the tree is sorted null out the top_node so
10868         that it is recalculated.
10869         - Use dotted lines instead of dashed lines to match MS better.
10871 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
10873         * ListView.cs: 
10874           - Implements key search for items. Useful when browsing files with FileDialog
10875           - When changing view mode or when clear the items reset scrollbar positions
10877 2005-11-04  Jackson Harper  <jackson@ximian.com>
10879         * CurrencyManager.cs: Implement the MetaDataChanged event, the
10880         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
10881         as to what the method may do as there is no real way of creating a
10882         derived CurrencyManager and calling the method. 
10884 2005-11-03  Jackson Harper  <jackson@ximian.com>
10886         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
10887         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
10888         method which seems to just be used internally to refresh the tabs.
10890 2005-11-03  Jackson Harper  <jackson@ximian.com>
10892         * TabControl.cs: Implement the remove method. Fix some broken
10893         comments.
10895 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
10897         * DateTimePicker.cs:
10898           - Added missing DateTimePickerAccessibleObject class
10899           - Added missing events
10900           - Added OnFontChanged method
10901         * Form.cs: Added missing attributes
10902         * TreeView.cs: Added missing attributes
10904 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
10906         * GridItemCollection.cs: Fix signatures
10908 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
10910         * XplatUI.cs: Updated build rev/date
10911         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
10912           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
10913         * Application.cs: Trigger context-specific ExitThread events
10915 2005-11-03  Jackson Harper  <jackson@ximian.com>
10917         * Menu.cs:
10918         * MainMenu.cs:
10919         * GridTableStylesCollection.cs:
10920         * Timer.cs:
10921         * TabPage.cs:
10922         * HelpProvider.cs:
10923         * StatusBar.cs:
10924         * MonthCalendar.cs: Signature fixes
10926 2005-11-03  Jackson Harper  <jackson@ximian.com>
10928         * TreeNodeCollection.cs: Remove should not be virtual.
10929         * TreeView.cs: Implement the last of the missing methods.
10931 2005-11-03  Jackson Harper  <jackson@ximian.com>
10933         * TreeNodeConverter.cs: Implement to get off my class-status back.
10935 2005-11-03  Jackson Harper  <jackson@ximian.com>
10937         * TreeView.cs: Hookup the bits for drag and drop.
10938         * TreeNode.cs: Don't cache the tree_view or index anymore, now
10939         that nodes can be moved from tree to tree easily this just causes
10940         all sorts of problems.
10941         * TreeNodeCollection: Don't need to give treenodes an index and
10942         treeview anymore when they are added, these are computed on the
10943         fly. Also make sure to remove a node before its added.
10945 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
10947         * TextControl.cs:
10948           - Added CaretSelection enum
10949           - Added comparison methods to Marker struct, makes selection code
10950             more readable
10951           - Added SelectionStart and SelectionEnd as 'moveable' location for
10952             the CaretDirection enum and handler
10953           - Added selection_prev variable to track optimized invalidation for
10954             word and line selection
10955           - Added SelectionVisible property (returns true if there is a valid 
10956             selection)
10957           - Switched CaretHasFocus to only display the caret if there is no
10958             visible selection
10959           - Avoiding StringBuilder.ToString to retrieve a single char, instead
10960             using the direct character index; should be much faster
10961           - Added various conditional debug statements
10962           - Fixed invalidation calculation for selection ranges
10963           - Added ExpandSelection() method to support word and line selection
10964           - Switched SetSelectionToCaret to use new Marker compare overloads
10965           - Added central IsWordSeparator() method to determine word 
10966             separators/whitespace and FindWordSeparator() to streamline common
10967             usage of IsWordSeparator()
10968         * TextBoxBase.cs:
10969           - Removed unneeded grabbed variable, it was just mirroring
10970             Control.Capture
10971           - No longer firing OnTextChanged event when Text setter is called,
10972             since the base will fire the event for us
10973           - Added handling of Ctrl-Up/Down selection
10974           - Added handling of Shift-Cursorkey selection
10975           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
10976             words
10977           - Added handling of Shift and Ctrl-Shift-Home/End selection
10978           - Removed some debug output
10979           - Added handling for single/double/tripple-click to place caret/
10980             select word/select line respectively (Fixes bug #76031)
10981           - Added support for drag expansion of word/line selection
10982         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
10983           current selection
10985 2005-11-02  Jackson Harper  <jackson@ximian.com>
10987         * X11Dnd.cs: If the drag is going to and from a MWF window just
10988         copy the data instead of sending it out through the X Selection
10989         mechanism.
10991 2005-11-02  Jackson Harper  <jackson@ximian.com>
10993         * X11Dnd.cs:
10994         * XplatUIX11.cs: When in a drag we don't want motion notify
10995         messages to get passed on to the other controls. This prevents
10996         mouse move messages from showing up in the drag source.
10998 2005-11-02  Jackson Harper  <jackson@ximian.com>
11000         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
11001         the correct button is release to end a drag.
11002         * XplatUIX11.cs: Make the button state internal so the drag system
11003         can access it.  Dragging needs to know about all button releases,
11004         not just left button.
11006 2005-11-02  Miguel de Icaza  <miguel@novell.com>
11008         * Form.cs (Icon): If the icon is null, reset the icon to the
11009         default value. 
11011         * Cursor.cs: When writing the AND-mask bitmap do not include the
11012         number of colors, but hardcode those to two (black and white),
11013         fixes the loading of color cursors (Paint Dot Net).
11015         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
11016         turn off autoscaling.
11018         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
11020 2005-11-02  Jackson Harper  <jackson@ximian.com>
11022         * X11Dnd.cs: Make sure to send a status message if the pointer
11023         enters a control that can not accept a drop, otherwise the cursor
11024         isn't updated correctly. Also tried to compress the lines of code
11025         a bit.
11027 2005-11-02  Jackson Harper  <jackson@ximian.com>
11029         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
11030         set actions correctly.  This isn't perfect as XDND and win32 have
11031         some differences on how you allow actions. I'll clear this up by
11032         adding a path for drag from MWF to MWF windows.
11033         * XplatUIX11.cs: Hook into the dnd system.
11035 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
11037         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
11038         previously shown but they are no longer need it. Very obvious when 
11039         browsing files with FileDialog.
11041 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
11043         * Control.cs: We always need to call OnPaintBackground. We pretty much
11044           ignore AllPaintingInWmPaint and always do the painting there, whether 
11045           it's set or not, since we always ignore the WM_ERASEBKGND message 
11046           (which we don't generate on X11). This fixes #76616.
11047         * Panel.cs: Removed unneeded background painting. This happens properly
11048           in Control.cs already
11050 2005-10-31  Mike Kestner  <mkestner@novell.com>
11052         * Menu.cs: Add items to collection before setting their index.
11053         * MenuItem.cs : add range checking with ArgumentException like MS.
11054         [Fixes #76510]
11056 2005-10-31  Jackson Harper  <jackson@ximian.com>
11058         * ListBox.cs: Invalidate if the area is visible at all not just
11059         contained in the visible rect. Fixes unselection of semi visible
11060         items.
11062 2005-10-31  Jackson Harper  <jackson@ximian.com>
11064         * Control.cs: Consistently name the dnd methods. Make them
11065         internal so we can override them to match some MS behavoir
11066         internally.
11067         * Win32DnD.cs: Use the new consistent names.
11069 2005-10-31  Jackson Harper  <jackson@ximian.com>
11071         * TreeView.cs: Don't draw the selected node when we lose focus.
11073 2005-10-31  Jackson Harper  <jackson@ximian.com>
11075         * X11Dnd.cs: We still need to reset the state even though a full
11076         reset isn't being done, otherwise status's still get sent all over
11077         the place.
11079 2005-10-31  Jackson Harper  <jackson@ximian.com>
11081         * Control.cs: Make the dnd_aware flag internal so the dnd
11082         subsystem can check it. Catch exceptions thrown in dnd handlers to
11083         match MS behavoir.
11084         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
11085         * X11Dnd.cs: Handle null data in the converters. Set the XDND
11086         version when sending a XdndEnter. Use the control/hwnd dnd_aware
11087         flags to reduce the number of dnd enters/status's sent.
11089 2005-10-31  Jackson Harper  <jackson@ximian.com>
11091         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
11093 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
11095         * PictureBox.cs: Fixes 76512
11097 2005-10-28  Jackson Harper  <jackson@ximian.com>
11099         * X11Dnd.cs: Early implementation to support winforms being a drag
11100         source for data on X11. Also restructured the converters so they
11101         can go both ways now.
11102         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
11103         
11104 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
11106         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
11107           clipboard requests
11109 2005-10-27  Jackson Harper  <jackson@ximian.com>
11111         * TreeNode.cs: Implement serialization so my DnD examples will work.
11113 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
11115         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
11116           TreeView.cs: Don't dispose objects that are not owned.
11117           
11118 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
11120         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
11121           should retrieve the current cursor and report that, but XplatUI
11122           doesn't (yet) have an interface for that (and I'm not sure I even
11123           can, on X11)
11124         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
11125           until any message loop processing is done (and the WM_SETCURSOR
11126           replaces the cursor to the proper one)
11127         * XplatUIX11.cs: 
11128           - Fixed override behaviour, we can't set the cursor globally on X11, 
11129             just for our windows.
11130           - Invalidating the System.Drawing X11 display handle when we are
11131             shutting down
11132         * Control.cs: Fix to make csc happy
11134 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
11136         * TextBoxBase.cs: 
11137           - get_Text: Add last line (without trailing newline) to returned
11138             value (Fixes 76212)
11139           - get_TextLength: Count last line in returned length
11140           - ToString: Call Text property instead of duplicating code
11142 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
11144         * ImageList.cs: Dispose ImageAttributes objects.
11146 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
11148         * ImageList.cs: Use attribute constructors with less arguments where
11149           possible.
11151 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
11153         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
11154           Use typeof instead of strings when assembly is referenced. Added
11155           some more comments.
11157 2005-10-21  Jackson Harper  <jackson@ximian.com>
11159         * ListView.cs: Raise a double click event. Also tried to somewhat
11160         fix when the selectedindexchanged event is raised. Its still
11161         broken though.
11163 2005-10-21  Jackson Harper  <jackson@ximian.com>
11165         * TreeView.cs: New method to invalidate the plus minus area of a
11166         node without invalidating the whole node (maybe this can be used
11167         in some more places).
11168         * TreeNodeCollection.cs: When adding to an empty node we need to
11169         invalidate its plus minus area so the little block shows up.
11170         
11171 2005-10-21  Jackson Harper  <jackson@ximian.com>
11173         * TreeView.cs: Make sure that when we invalidate a node the bounds
11174         are big enough to cover the selected box and the focus
11175         rectangle. Use a different colour for the lines connecting nodes
11176         so they show up with all themes.
11178 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
11180         * NativeWindow.cs: Don't call anything that could call into the driver,
11181           we might be on a different thread.
11183 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
11185         * Control.cs(Dispose): Since Dispose might run on a different thread,
11186           make sure that we call methods that could call into the driver via
11187           invoke, to avoid thread issues
11189 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
11191         * XplatUI.cs: Removed finalizer
11192         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
11193           not allowing to be called on the finalizer thread.
11195 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
11197         * ImageList.cs:
11198           - Reverted r51889 and r51891.
11199           - Added ImageListItem class that stores unmodified image items and image
11200             properties required to create list images until handle is created.
11201           - Added AddItem and moved image creation logic to AddItemInternal.
11202           - Added CreateHandle method that creates images based on unmodified items.
11203           - Added DestroyHandle that changes state to store unmodified items.
11204           - Add and AddStrip methods no more create handle.
11205           - ReduceColorDepth has no return value.
11206           - Dispose destroys handle.
11207           - Modified other methods to reflect the above changes.
11208           - Implemented key support.
11209           - Added profile 2.0 members and attributes.
11210           - Added private Reset and ShouldSerialize methods that provide the same
11211             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
11212             them as they are private.
11213           - Added some more comments about implementation details.
11215 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
11217         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
11219 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
11221         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
11223 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
11225         * DataGridDrawingLogic.cs: Fixes column hit calcultation
11226         * DataGridColumnStyle.cs: Remove debug message
11228 2005-10-20  Jackson Harper  <jackson@ximian.com>
11230         * TreeView.cs: We can always get input keys regardless of whether
11231         or not editing is enabled. They are used for navigation.
11233 2005-10-20  Jackson Harper  <jackson@ximian.com>
11235         * TreeNode.cs: Use the viewport rect for determining if a node
11236         needs to be moved for visibility. Don't use Begin/End edit. This
11237         calls a full refresh when its done.
11238         * TreeView.cs: New SetBottom works correctly.  Make the viewport
11239         rect property internal so the treenodes can see it. When clicking
11240         on a node we need to ensure that its visible because it might just
11241         be partly visible when clicked.
11243 2005-10-20  Jackson Harper  <jackson@ximian.com>
11245         * TreeNodeCollection.cs: Remove debug code.
11247 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
11249         * Datagrid.cs: Implements column sorting in Datagrid
11250         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
11252 2005-10-20  Jackson Harper  <jackson@ximian.com>
11254         * TreeNodeCollection.cs: Remove items properly. Update the correct
11255         area after removing them.
11257 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
11259         * Datagrid.cs: Should not call base.OnPaintBackground
11261 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
11263         * XplatUIX11.cs (GetMessage):
11264           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
11265             window instead of client window
11266           - Now properly calculates NC_xBUTTONUP message coordinates
11267           - ScreenToMenu now properly calculates it's coordinates of whole 
11268             window, since menus are in the whole window, not in the client
11269             window
11270           - Added WholeToScreen coordinate translation method
11272 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
11274         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
11275           want to return a message, loop back to the beginning of the function
11276           and grab the next real message to process instead.
11278 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
11280         * Splitter.cs: Properly set limits if no filler control is used
11282 2005-10-19  Jackson Harper  <jackson@ximian.com>
11284         * ColorDialog.cs: Don't show the help button if it is not enabled
11285         instead of disabling it (this is what MS does). Don't create the
11286         panel until the dialog is run, otherwise the vars (such as
11287         ShowHelp) are not set yet.
11289 2005-10-19  Jackson Harper  <jackson@ximian.com>
11291         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
11292         are reduced when adding nodes.
11293         * TreeNode.cs:
11294         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
11295         tree.
11296         
11297 2005-10-19  Jackson Harper  <jackson@ximian.com>
11299         * FolderBrowserDialog.cs: End editing our treeview so the window
11300         actually gets refreshed.
11302 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
11304         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
11305           Obsoleted handling of WM_ERASEBKGND, now always draws our background
11306           inside of WM_PAINT
11308 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
11310         * MenuAPI.cs: Returns after Hidding window
11311         * XplatUIX11.cs: Added TODO found while debugging menu issues
11313 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
11315         * XplatUIX11.cs: Do not re-map the whole window when it's size
11316           becomes non-zero unless it's supposed to be actually visible
11318 2005-10-18  Jackson Harper  <jackson@ximian.com>
11320         * TreeView.cs: We don't need to keep a count anymore.
11321         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
11322         use the Grow method.
11324 2005-10-18  Jackson Harper  <jackson@ximian.com>
11326         * TreeNodeCollection.cs: Insert is not supported on arrays, so
11327         implement it manually here.
11329 2005-10-18  Jackson Harper  <jackson@ximian.com>
11331         * ImageList.cs: Dont kill the list when the colour depth is
11332         changed, just change the colour depth of all the images.
11333         - Same goes for setting the image size. Just resize them all
11334         instead of killing the list softly.
11336 2005-10-18  Jackson Harper  <jackson@ximian.com>
11338         * Control.cs: Don't invalidate empty rectangles.
11340 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
11342         * ListViewItem.cs:
11343           - Adds checked item to the Checked/Item lists (where empty before)
11344           - Do not add items to the Selected lists if they are already present
11345         * ListView.cs:
11346           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
11347           - When deleting items make sure that we delete them for the Selected
11348           and Checked list also.
11350 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
11352         * Label.cs: Dispose objects no longer used
11353         * ThemeWin32Classic.cs: Dispose objects no longer used
11355 2005-10-18  Jackson Harper  <jackson@ximian.com>
11357         * TabControl.cs: Don't refresh the whole control when the tabs are
11358         scrolled, we just need to refresh the tab area.
11360 2005-10-17  Jackson Harper  <jackson@ximian.com>
11362         * XplatUIX11.cs: Compress code a little bit. Only calculate the
11363         after handle when we need it.
11365 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
11367         * Control.cs: When the parent size changes, recalculate anchor 
11368           positions. Partial fix for #76462
11370 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
11372         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
11373           drawn. Fixes #76462
11375 2005-10-17  Jackson Harper  <jackson@ximian.com>
11377         * MonthCalendar.cs: Don't create the numeric up down until our
11378         handle is created. Otherwise our handle is created in the
11379         constructor and we don't know if we are a WS_CHILD or WS_POPUP
11380         yet.
11382 2005-10-17  Jackson Harper  <jackson@ximian.com>
11384         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
11385         correctly.
11387 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
11388         * TreeNode.cs : small logical fix (was using local var instead of field)
11389         
11390 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
11392         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
11394 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
11396         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
11398 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
11400         * Control.cs: 
11401           - Re-implemented anchoring code. My first version was really broken.
11402             This fixes bug #76033. Unlike the previous implementation we will
11403             no longer have round errors since all numbers are calculated from
11404             scratch every time. Removed various anchor-related obsolete vars.
11405           - InitLayout no longer causes layout event firing and layout to be 
11406             performed
11408 2005-10-16  Jackson Harper  <jackson@ximian.com>
11410         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
11411         which was broken).
11413 2005-10-16  Jackson Harper  <jackson@ximian.com>
11415         * TabControl.cs: Remove debug code.
11417 2005-10-16  Jackson Harper  <jackson@ximian.com>
11419         * XEventQueue.cs: Increase the default queue size (very simple
11420         apps needed to grow the queue).
11421         * Hwnd.cs: No finalizer so we don't need to suppress
11422         finalization. Compute the invalid area manually so a new rectangle
11423         does not newto be created.
11424         * ScrollableControl.cs: Don't set any params (otherwise visibility
11425         isn't set correctly).
11426         * MdiChildContext.cs: New constructor takes the mdi parent so it
11427         doesn't have to be computed and avoids a crash on windows. Draw
11428         the window icon properly, and allow the text to be seen.
11429         * Form.cs: Use new MdiChildContext constructor. Make sure the
11430         child context isn't null in wndproc.
11431         * TabControl.cs: Don't set focus, this is muddling keyboard
11432         behavoir. Expand the tab rows when a window size increase will
11433         allow extra tabs to be seen. Don't allow tabs smaller than the
11434         width of a window to be scrolled out of view.
11435         * TreeNode.cs:
11436         * TreeView.cs: Use measure string to calculate a nodes width, the
11437         width is cached and only updated when the text or the font is
11438         changed. Don't check for expand/collapse clicks on the first level
11439         nodes if root lines are disabled.
11440         
11441 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
11443         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
11445 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
11447         * DataGridBoolColumn.cs: fixes warning
11449 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
11451         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
11452         to match more to match more precisely the MS Net behavior
11454 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
11456         * Hwnd.cs: Added field to track if window is mapped
11457         * XplatUIX11.cs: 
11458           - Unmap windows if they become 0-size, re-map when 
11459             they are >0 again; fixes #76035
11460           - Re-set our error handler after initializing X11Desktop
11461             to override any error handlers Gtk or whatever was called
11462             may have set.
11464 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
11466         * CheckedListBox.cs: Removed unused vars
11467         * ListView.cs: Fixed signatures
11468         * RichTextBox.cs: Removed unused vars
11469         * TextBoxBase.cs: Removed unused vars
11470         * XplatUIWin32.cs: Removed unused vars
11471         * XplatUIX11.cs: Removed unused vars
11472         * XplatUI.cs: Updated version and date to latest published
11474 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
11476         * Cursor.cs: Added private .ctor to work around a bug in
11477           resourceset (Thanks to Geoff Norton for the help on this)
11478         * SplitterEventArgs.cs: Made fields accessible so we don't
11479           waste boatloads of objects and can reuse the same one
11480           in Splitter
11481         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
11482           any captions and borders when generating screen coordinates
11483         * Splitter.cs: Reimplemented control, now fully complete, uses
11484           rubberband drawing, supports and obeys all properties, has
11485           proper cursors
11487 2005-10-13  Miguel de Icaza  <miguel@novell.com>
11489         * Form.cs (Form): Setup default values for autoscale and
11490         autoscale_base_size;  Make these instance variables, not static
11491         variables. 
11493         (OnLoad): on the first load, adjust the size of the form.
11495 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
11497         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
11498           width argument to DrawReversibleRectangle()
11499         * XplatUIWin32.cs, XplatUIX11.cs: 
11500           - Implemented width for DrawReversibleRectangle()
11501           - Added logic to DrawReversibleRectangle that recognizes a zero
11502             width or height and only draws a line in that situation
11503         
11504 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
11506         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
11507         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
11508         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
11509           method (it uses our FosterParent window to get a graphics context)
11511 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
11513         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
11514           and SetWindowBackground methods
11515         * Control.cs:
11516           - Setting proper ControlStyles
11517           - We no longer call XplatUI.SetWindowBackground and XplatUI.
11518             EraseWindowBackground, instead we draw the window background
11519             ourselves in PaintControlBackground. This behaviour is
11520             required to match MS, where, when OnPaintBackground is not
11521             called, the background is not drawn.
11522           - Removed unneeded Refresh() in set_Text
11523         * Hwnd.cs: Dropped the ErasePending support. No longer needed
11524         * XplatUIX11.cs:
11525           - Created DeriveStyles method to translate from CreateParams to
11526             FormBorderStyle and TitleStyle, also handles BorderStyle (which
11527             matches FormBorderStyle enum values)
11528           - Consolidated SetHwndStyles and CalculateWindowRect border/title
11529             style calculations into single DeriveStyles method
11530           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
11531             from redrawing the whole window on any resize or expose.
11532           - Fixed CreateWindow usage of SetWindowValuemask. Before not
11533             all styles were applied to our whole/client window appropriately
11534           - Removed EraseWindowBackground() and SetWindowBackground() methods
11535           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
11536             no longer clear/redraw the background through X
11537           - Removed handling of erase_pending bit, we have no use for it (or
11538             so it seems)
11539         * XplatUIOSX.cs:
11540           - Removed generation and handling of WM_ERASEBKGND message
11541           - Removed EraseWindowBackground() and SetWindowBackground() methods
11542           - Removed handling of hwnd.ErasePending flag
11543         * XplatUIWin32.cs:
11544           - Removed EraseWindowBackground() and SetWindowBackground() methods
11545           - We no longer call EraseWindowBackground on PaintEventStart, we 
11546             ignore the fErase flag, erasing is handled in Control in the
11547             background handler
11548         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
11549           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
11550           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
11551           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
11552           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
11553           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
11554           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
11556 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
11558         * PropertyGrids.cs: Get sub properties
11559         * PropertyGridView.cs: Fix drawing code
11561 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
11563         * ListBox.cs: Fixes 76383
11565 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
11567         * DataGridTextBoxColumn.cs: Sets location and size before attachment
11568         * ThemeWin32Classic.cs: Fixes border drawing and calculations
11569         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
11572 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
11574         * ComboBox.cs: Fixes border drawing
11576 2005-10-10  Miguel de Icaza  <miguel@novell.com>
11578         * MimeIcon.cs: Ignore errors if the file can not be read.
11580 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
11582         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
11583          - Fixed border calculations
11584          - Fixed horizontal scrolling in single column listboxes
11585          - Fixed drawing issues
11587 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
11589         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
11590           FormBorderStyle enum
11591         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
11592           code to determine FormBorderStyles from CreateParams
11593         * Form.cs:
11594           - Fixed bug where we'd set the wrong window styles if we were
11595             not creating an MDI window
11596           - Added call to XplatUI.SetBorderStyle when form borders are set
11597         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
11598         * Hwnd.cs:
11599           - Removed obsolete edge style
11600           - Switched from BorderStyle to FormBorderStyle
11601         
11602 2005-10-10  Jackson Harper  <jackson@ximian.com>
11604         * Form.cs: Use the property to get the window handle instead of
11605         accessing it directly. Prevents a null reference exception.
11607 2005-10-10  Jackson Harper  <jackson@ximian.com>
11609         * TreeView.cs: Don't adjust the rect given to DrawString now that
11610         our libgdiplus draws correctly.
11612 2005-10-08  Jackson Harper  <jackson@ximian.com>
11614         * TreeView.cs: Don't try to find the clicked on node if there are
11615         no nodes in the tree.
11617 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
11619         * RichTextBox.cs:
11621           restore
11623 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
11625         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
11626           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
11627           ErrorProvider.cs:
11628           Use ResPool for brushes and dispose System.Drawing objects that
11629           are not used anymore.
11631 2005-10-07  Jackson Harper  <jackson@ximian.com>
11633         * MdiChildContext.cs: Use the new borders instead of drawing them
11634         ourselves.
11636 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
11638         * Calling UpdateBounds after changing the window's BorderStyle 
11639         since the style can change the ClientSize
11641 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
11643         * Control.cs: Made PaintControlBackground virtual
11644         * Panel.cs: Overriding PaintControlBackground instead of using paint
11645           event; paint event method was interfering with 'real' users of the
11646           event.
11648 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
11650         * ThemeWin32Classic.cs: remove border drawing since it is handled
11651         by the base control class now and was causing double border drawing.
11653 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
11655         * Panel.cs: Redraw our background on paint. Not a pretty solution,
11656           but it does seem to match MS behaviour. This fixes bug #75324
11658 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
11660         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
11661           somewhat hackish looking
11663 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
11665         * TextBoxBase.cs:
11666           - We now accept Enter even if AcceptEnter is false, if the containing
11667             form does not have an AcceptButton configured (fixes bug #76355)
11668           - Calculations are now fixed to no longer use Width/Height, but
11669             ClientSize.Width/Height, since we now support borders (this was
11670             a result of fixing borders and therefore bug #76166)
11671           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
11672             true (fixes bug #76354)
11673         
11674 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
11676         * Control.cs: 
11677           - Defaulting BorderStyle and setting it in XplatUI when our window 
11678             is created
11679           - Added enum check to InternalBorderStyle setter
11680         * XplatUIX11.cs: 
11681           - Added drawing of window borders
11682           - Now properly calculates WM decorations offset for toplevel 
11683             windows (fixes bug #74763)
11684         * XplatUIWin32.cs: 
11685           - Implemented BorderStyles for windows (we're letting win32 draw 
11686             the border for us)
11687           - Fixed the signature for SetWindowLong
11688         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
11689           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
11690           setting borders
11691         * UpDownBase.cs: Remove drawing of borders, this is handled by
11692           the driver, outside the client area
11693         * ListView.cs: Removed bogus border calculations. The control should
11694           be oblivious to borders, since those are not part of the client
11695           area. 
11696         * X11DesktopColors.cs: Commented out (currently) unneeded variables
11697         * ThemeWin32Classic.cs: Removed border calculations from ListView 
11698           drawing code
11700 2005-10-06  Jackson Harper  <jackson@ximian.com>
11702         * MdiChildContext.cs: Clear out the old virtual position remove
11703         all the unneeded calls to CreateGraphics.
11705 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
11707         * TextControl.cs: Use proper color for highlighted text; fixes #76350
11709 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
11711         * Form.cs: 
11712           - Added loading and setting of our new default icon
11713           - Only set icon if window is already created
11715 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
11717         * Label.cs:
11718           - Do not explicitly set the foreground and background colors, to
11719             allow inheriting from parents (fixes #76302)
11720           - Use Control's InternalBorderStyle property to deal with borders
11722 2005-10-06  Jackson Harper  <jackson@ximian.com>
11724         * MdiChildContext.cs: Use the new xplatui function to draw a
11725         reversible rect.
11727 2005-10-06  Jackson Harper  <jackson@ximian.com>
11729         * Form.cs: Add the parent before creating the child context cause
11730         we need the parent when setting up the child.
11732 2005-10-06  Jackson Harper  <jackson@ximian.com>
11734         * FolderBrowserDialog.cs: redo the tree population code so a
11735         second thread isn't used. Should be a lot faster and more stable
11736         now.
11738 2005-10-05  Jackson Harper  <jackson@ximian.com>
11740         * TreeView.cs: There are no expand/collapse boxes if the node has
11741         no children.
11743 2005-10-05  Jackson Harper  <jackson@ximian.com>
11745         * X11DesktopColors.cs: Get menu colours for the gtk theme.
11747 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
11749         * FileDialog.cs: Fix InitialDirectory
11751 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
11753         * ComboBox.cs:
11754                 - Fixes changing between styles
11755                 - Fixes simple mode
11756                 - Fixes last item crashing when navigating with keyboard
11758 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
11760         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
11762 2005-10-05  Jackson Harper  <jackson@ximian.com>
11764         * TreeView.cs: If updating the root node do a full refresh.
11765         * TreeNode.cs: The root node should be expanded by default. Also
11766         added a utility prop to tell if we are the root node.
11767         * TreeNodeCollection.cs: Only refresh if the node we are being
11768         added to is expanded. Also added a comment on a potential
11769         optimization.
11770         
11771 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
11773         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
11774           in dispose method. Fixes #76330
11776 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
11778         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
11780                 - Implements vertical and horizontal scrolling using XplatUI
11781                 - Fixes keyboard navagation
11782                 - Fixes EnsureVisible
11783                 - Drawing fixes
11784                 - Handles and draws focus properly
11787 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
11789         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
11790           Create handle. NET_2_0: Destroy handle when value is null.
11792 2005-10-03  Jackson Harper  <jackson@ximian.com>
11794         * ScrollBar.cs: My last scrollbar patch was broken. This is a
11795         revert and a new patch to prevent the thumb from refreshing so
11796         much.
11798 2005-10-02  Jackson Harper  <jackson@ximian.com>
11800         * ScrollBar.cs: Don't update position if it hasn't actually
11801         changed. This occurs when you hold down the increment/decrement
11802         buttons and the thumb gets to the max/min.
11804 2005-10-01  Jackson Harper  <jackson@ximian.com>
11806         * Form.cs:
11807         * MdiChildContext.cs:
11808         * MdiClient.cs: Implement ActiveMdiChild in Form.
11810 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
11812         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
11814 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
11816         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
11817           be found
11819 2005-09-30  Jackson Harper  <jackson@ximian.com>
11821         * ListBox.cs: Don't do a full refresh unless some data has
11822         actually changed.
11824 2005-09-30  Jackson Harper  <jackson@ximian.com>
11826         * TreeView.cs: Make sure that the checkboxes size is factored in
11827         even when not visible.
11829 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
11831         * FileDialog.cs: Fix Jordi's build break
11833 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
11835         * FileDialog.cs: 
11836                 - Use standard the Windows colours for the combobox as espected
11837                 - Dispose objects that use resouces when no longer need them
11839 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
11841         * X11DesktopColors.cs: Initial incomplete implementation
11842         * XplatUIX11.cs: Added call to initialize X11DesktopColors
11844 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
11846         * Theme.cs: 
11847           - Switched Theme color names to match the names defined in 
11848             System.Drawing.KnownColors. Life's hard enough, no need to make 
11849             it harder.
11850           - Added setters to all theme color properties so themes can set
11851             their color schemes. The setters also propagate the color changes
11852             to System.Drawing.KnownColors via reflection
11853         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
11854           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
11855           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
11856           use the new, more logical theme color names
11857         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
11858           post-NT colors
11859         * ThemeWin32Classic.cs:
11860           - Removed code to set the old classic Windows colors. Instead it
11861             now relies on the colors returned by System.Drawing.KnownColors
11862             which will be either modern static colors (Unix) or colors
11863             read from the user's configuration (Win32)
11864           - Updated to use the new, more logical theme color names
11865           - Switched DataGrid drawing code to use only Theme colors instead of
11866             a mix of System.Drawing.KnownColors and Theme colors
11867           - DrawFrameControl(): Removed code that fills the button area, the
11868             fill would overwrite any previous fill done by a control. This
11869             fixes bug #75338 
11870           - Added DrawReversibleRectangle() stub
11871         * ScrollableControl.cs: Set visible state to false when scrollbars
11872           are removed (pdn fix)
11873         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
11874           DrawReversibleRectangle() method to allow drawing primitive 
11875           'rubber bands'
11876         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
11878 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
11880         * ImageList.cs: Add(Icon): Create handle.
11882 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
11884         * ListView.cs:
11885         * ThemeWin32Classic.cs:
11886                 - Fixes detail mode
11887                 - Sets clippings
11888                 - Issues with drawing
11890 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
11892         * ImageList.cs: Moved RecreateHandle back to ImageList as event
11893           source has to be the ImageList.
11895 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
11897         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
11899 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
11901         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
11903 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
11905         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
11907 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
11908         * GridItem.cs: Fixed TODOs
11909         * GridItemCollection.cs: Added ICollection interface
11911 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
11913         * ImageList.cs: Resize icons when needed.
11915 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
11917         * ListViewItem.cs
11918                 - Fixes GetBounds and returns on screen rects
11919         * ListView.cs:
11920                 - Fixes vertical and horzintal scrolling of items
11921         * ThemeWin32Classic.cs:
11922                 - Fixes drawing
11923                 
11924 2005-09-29  Raja R Harinath  <harinath@gmail.com>
11926         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
11928 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
11930         * ImageList.cs: Added comments about handle creation. Moved Handle,
11931           HandleCreated and OnRecreateHandle implementations to ImageCollection.
11932           Handle is created in Add methods.
11934 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
11935          
11936         * DataGridDrawingLogic.cs: 
11937                 - Takes rows into account on Colum calculations
11938                 - Returns the column when clickig
11939         * DataGrid.cs:
11940                 - Fixes default HitTestInfo values
11941                 - Fixes HitTestInfo.ToString
11942                 - Fixes ResetBackColor          
11943         
11944 2005-09-28  Jackson Harper  <jackson@ximian.com>
11946         * MdiChildContext.cs: Obey rules for fixed sized windows (no
11947         sizing or cursor changes). Also added some temp code to draw the
11948         titlebars text (Makes dev a little easier).
11950 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
11952         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
11954 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
11955          
11956         * ListBox.cs: Fixes bug 76253
11958 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
11960         * ImageList.cs: Added comments about the current implementation. Added
11961           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
11962           Format32bppArgb to preserve transparency and can use Graphics.FromImage
11963           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
11964           with Bitmap.LockBits for better performance. Revised the whole file to
11965           match MS.NET behaviour and provide better performance. Non-public
11966           interface members are calling public members even when they throw
11967           NotSupportedException for better maintainability. Moved ColorDepth,
11968           ImageSize, ImageStream and TransparentColor implementations to
11969           ImageCollection for better performance as these properties are not used
11970           by ImageList.
11971         * ImageListStreamer.cs: Added a new internal constructor that takes an
11972           ImageList.ImageCollection and serializes Images based on
11973           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
11974           match ImageList property name.
11976 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
11978         * ListBox.cs: Fixes IndexFromPoint for last item
11980 2005-09-27  Jackson Harper  <jackson@ximian.com>
11982         * Form.cs: Set the position of new mdi children correctly.
11984 2005-09-27  Jackson Harper  <jackson@ximian.com>
11986         * MdiClient.cs: New mdi children need to be added to the back of
11987         the controls collection so the zorder is set correctly. Also add a
11988         count of all the child windows that have been created.
11990 2005-09-27  Jackson Harper  <jackson@ximian.com>
11992         * Form.cs (CreateParams): Setup MDI forms correctly.
11994 2005-09-27  Jackson Harper  <jackson@ximian.com>
11996         * MdiChildContext.cs:
11997         * MonthCalendar.cs:
11998         * UpDownBase.cs:
11999         * ListBox.cs:
12000         * ListView.cs:
12001         * TextBoxBase.cs:
12002         * TreeView.cs:
12003         * ScrollableControl.cs:
12004         * ComboBox.cs: Add implicit controls using the new implict control
12005         functionality in ControlCollection. Also try to block multiple
12006         control add in a suspend/resume layout to save some cycles.
12007         
12008 2005-09-27  Jackson Harper  <jackson@ximian.com>
12010         * Control.cs: Add functionality to the controls collection to add
12011         'implicit controls' these are controls that are created by the
12012         containing control but should not be exposed to the user. Such as
12013         scrollbars in the treeview.
12014         * Form.cs: The list var of the ControlsCollection is no longer
12015         available because of the potential of implicit controls getting
12016         ignored by someone accessing the list directly.
12018 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
12020         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
12021           loose it's parent. (Fixed bug introduced in r49103 when we added
12022           setting the child parent to null on Remove)
12024 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
12026         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
12027         * Splitter.cs: Added missing attributes for BorderStyle property.
12028         * TextBoxBase.cs: Marked Calculate* methods internal.
12029         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
12030         MS.NET.
12032 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
12033          
12034         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
12036 2005-09-25  Jackson Harper  <jackson@ximian.com>
12038         * TreeView.cs: Update the node bounds correctly regardless of
12039         whether the node is visible.
12041 2005-09-25  Jackson Harper  <jackson@ximian.com>
12043         * ImageList.cs: Don't dispose the image after it is added to the
12044         image list. Only reformat images that need to be resized.
12046 2005-09-25  Jackson Harper  <jackson@ximian.com>
12048         * ImageList.cs: Don't set the format when changing the image.
12050 2005-09-25  Jackson Harper  <jackson@ximian.com>
12052         * TreeView.cs: We can't just assume the node has a font. Use the
12053         treeviews font if no node font is available.
12055 2005-09-25  Jackson Harper  <jackson@ximian.com>
12057         * TreeView.cs: Allow the scrollbars to be reset with negative
12058         values.
12059         - Don't add scrollbars to negative sized windows.
12061 2005-09-23  Jackson Harper  <jackson@ximian.com>
12063         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
12064         old Mono.Posix. Also remove some stray code that shouldn't have
12065         been committed.
12067 2005-09-23  Jackson Harper  <jackson@ximian.com>
12069         * TreeView.cs: Attempt at proper sizing of the horizontal
12070         scrollbar. Also don't resize the scrollbars unless they are
12071         visible.
12073 2005-09-23  Jackson Harper  <jackson@ximian.com>
12075         * TreeView.cs: We don't need to expand the invalid area when the
12076         selection changes, as this is all drawn in the node's bounding
12077         box. The area needs to be expanded (previous typo was contracting
12078         it) when the focus rect moves.
12080 2005-09-23  Jackson Harper  <jackson@ximian.com>
12082         * TreeView.cs: Display the selection box under the correct
12083         circumstances. We were rendering white text with no selection box
12084         before.
12086 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
12088         * TextControl.cs(Split): Now updates selection start/end if it points 
12089           into a line that's being split. Fixes a FIXME and bug #75258
12091 2005-09-23  Jackson Harper  <jackson@ximian.com>
12093         * Binding.cs:
12094         * ListControl.cs: Don't use the path when retrieving binding
12095         managers from the binding context. My bat sense tells me that the
12096         path is only used on insertion.
12098 2005-09-22  Jackson Harper  <jackson@ximian.com>
12100         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
12102 2005-09-22  Jackson Harper  <jackson@ximian.com>
12104         * Splitter.cs: There are special cursors used for splitting.
12105         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
12107 2005-09-22  Jackson Harper  <jackson@ximian.com>
12109         * Splitter.cs: Change the cursor appropriately when the splitter
12110         is moused over, so the user actually knows there is a splitter
12111         there.
12113 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
12115        * Label.cs : Fix ToString method to give same output as MS.NET
12117 2005-09-22  Jackson Harper  <jackson@ximian.com>
12119         * TreeView.cs: Create the scrollbars when the handle is created
12120         and add them right away, just make them invisble. Also account for
12121         the window being shrunk vertically to the point that the vert
12122         scrollbar needs to be added.
12123         - Remove some 0.5 adjustments to get around anti aliasing issues.
12124         
12125 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
12126          
12127         * MainMenu.cs: Fixes default value
12128         * MenuItem.cs: Fixes default value
12130 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
12132         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
12134 2005-09-21  Jackson Harper  <jackson@ximian.com>
12136         * Control.cs: Don't try to set the border style on the window if
12137         it hasn't been created. When the window is created the border
12138         style will be used.
12140 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
12142         * Control.cs (Update): Don't call XplatUI if we don't have a
12143           window handle yet
12145 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
12147         * ContainerControl.cs: Instead of throwing an exception, print
12148           a one-time warning about Validate not being implemented
12149         * XplatUIWin32.cs: Removed debug output
12151 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
12153         * Control.cs: Only set XplatUI background if we expect the windowing
12154           system to handle the background. This stops controls that draw their
12155           own background from flickering
12157         * XplatUIX11.cs: Support custom visuals and colormaps for window 
12158           creation. This allows, amongst other things, using MWF X11 windows 
12159           with OpenGL.
12161 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
12163         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
12164           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
12165           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
12166           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
12167           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
12168           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
12169           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
12170           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
12171           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
12172           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
12173           GridColumnStylesCollection.cs, 
12174           IDataGridColumnStyleEditingNotificationService.cs,
12175           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
12176           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
12177           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
12178           TreeNodeCollection.cs, AmbientProperties.cs, 
12179           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
12180           DataObject.cs, ErrorProvider.cs, Splitter.cs,
12181           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
12182           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
12183           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
12184           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
12185           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
12186           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
12187           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
12188           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
12189           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
12190           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
12191           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
12192           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
12193           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
12194           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
12195           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
12196           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
12197           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
12198           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
12199           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
12200           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
12201           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
12202           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
12203           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
12204           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
12205           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
12206           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
12207           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
12208           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
12209           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
12210           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
12211           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
12212           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
12213           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
12214           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
12215           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
12217 2005-09-21  Jackson Harper  <jackson@ximian.com>
12219         * TreeNode.cs: Call Before/After Expand not Collapse when
12220         expanding.
12222 2005-09-20  Jackson Harper  <jackson@ximian.com>
12223         
12224         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
12226 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
12227          
12228         * ListViewItem.cs:
12229                 - Fixes bug 76120
12230                 - Fixes proper storing of subitems
12231                 - Fixes not updated items
12233 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
12235         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
12236           things if our window handle isn't created yet. Also disabled 
12237           debug for TextBoxBase
12239 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
12241         * MenuAPI.cs: Remove filtering of events to allow menu usage
12243 2005-09-20  Miguel de Icaza  <miguel@novell.com>
12245         * Cursor.cs: Allow null to be passed to Cursor.Current.
12247 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
12249         * ThemeWin32Classic.cs:
12250           - Change some private methods/fields to protected virtual so that 
12251             they can be accessed and overriden in derived classes
12252           - First refactoring of some methods. Derived themes now don't 
12253             need to duplicate the complete code from ThemeWin32Classic
12254         * ThemeNice.cs:
12255           - Added nice StatusBar
12256           - Derive from ThemeWin32Classic and not Theme
12257           - Removed duplicate ThemeWin32Classic code
12259 2005-09-20  Miguel de Icaza  <miguel@novell.com>
12261         * Control.cs (ControlCollection.Add): If the value null is passed
12262         the control is ignored. 
12264         Optimize this loop.
12266 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
12268         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
12269           PostQuitMessage state.
12270         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
12272 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
12274         * Application.cs: Our constructor will never get called, move 
12275           initialization to fields; fixes bug #75933
12277 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
12279         * FileDialog.cs :
12280                 - Allow files to be selected properly using file name
12281                 combo box.
12282                 - Add ability to change diretory (absolute / relative)
12283                 using file name combo box.
12285 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
12286          
12287         * ListBox.cs: 
12288                 - Fixes Multicolumn listboxes item wrong calculations
12289                 - Allows to click when only one item is in the listbox
12290                 - Fixes crash when no items using keyboard navigation
12292 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
12294         * ComboBox.cs: Reverted almost everything from the latest patch which
12295           broke ComboBox
12297 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
12298         
12299         * ToolTip.cs:
12300                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
12301         * ComboBox.cs:
12302                 - When DropDownStyle is Simple, it does not show scrollbar 
12303                 to the last item of the list.
12304                 - When DropDownStyle is Simple, it crashed when the list was 
12305                 scrolled down with the down cursor key.
12306                 - Fixed a bug that when DropDownStyle is DropDownList, the 
12307                 selected item was not shown.
12308                 - The position of the selected item was not preserved when 
12309                 the next dropdown happened.
12310         * ThemeWin32Classic.cs:
12311                 - Items were wrapped at the right end.
12312         * CheckedListBox.cs:
12313                 - Fixed Add method
12314         * ListBox.cs:
12315                 - Items should be fully shown.
12316                 - When resizing and vertical scrollbar disappeared, the item 
12317                 of index 0 should be on the top of the list.
12318                 - GetItemRectangle should consider the size of ver. scrollbar
12319         * StatusBar.cs:
12320                 - SizingGrip area should not be allocated when it is not 
12321                 displayed.
12322                 - Now it reflects MinWidth of the containing panel and 
12323                 fixed a crash that happens when its width becomes so small.
12325 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
12327         * CheckedListBox.cs: Fixes bug 76028
12328         * ListBox.cs: Fixes bug 76028
12330 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
12332         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
12333         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
12335 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
12337         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
12339 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
12341         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
12343 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
12345         * IRootGridEntry.cs: Added
12346         * PropertyGridCommands.cs: Added
12347         * PropertiesTab.cs: Added missing methods and property
12348         * PropertyGridView.cs: Made class internal
12349         * PropertyGridTextBox.cs: Made class internal
12351 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
12353         * MimeIcon.cs: Try to check some other environment variables
12354           if "DESKTOP_SESSION" returns "default"
12356 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
12358         * ThemeNice.cs: Corrected background colors (e.g. menus)
12359         * ColorDialog.cs: Use correct background colors for controls
12361 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
12363         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
12365 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
12367         * RichTextBox.cs: Added initial implementation
12368         * lang.cs: Removed. Was accidentally checked in long time ago
12369         * TODO: Removed. Contents were obsolete
12371 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
12372                                                                                 
12373         * PropertiesTab.cs : Added
12375 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
12376                                                                                 
12377         * PropertyGrid.cs : Update
12378         * PropertyGridView.cs : Update
12379         * System.Windows.Forms.resx : Added images and strings
12381 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
12383         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
12385 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
12387         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
12388           a busy loop right after the Ungrab the X11 display is otherwise 
12389           blocked
12391 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
12393         * ThemeWin32Classic.cs: Optimise the use of clipping
12395 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
12397         * DataGrid.cs: fixes recursion bug
12399 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
12401         * ThemeNice.cs: 
12402           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
12403           - Cleanup
12405 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
12407         * ThemeNice.cs: Draw nice ProgressBars
12409 2005-09-01  Miguel de Icaza  <miguel@novell.com>
12411         * VScrollBar.cs: Another buglet found by Aaron's tool. 
12413         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
12414         bug finder.
12416 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
12418         * ThemeNice.cs:
12419           - Added nicer menu drawing
12420           - Updated DrawTab
12421           - some refactoring
12423 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
12425         * CreateParams.cs (ToString): Made output match MS
12426         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
12427             handle is already created (to avoid forcing window creation)
12428         * XplatUIX11.cs: Set window text to caption after creating window,
12429           in case Text was set before window was created
12430         * Form.cs: Use this.Text instead of a static string as caption
12432 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
12434         * NotifyIcon.cs: Don't set the window to visible; this screws
12435           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
12436           OnPaint without a bitmap)
12437         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
12438           happen very often anyway; we could add the check to the WM_PAINT 
12439           event generation code
12441 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
12443         * NotifyIcon.cs: Fill the icon area with a background color, to 
12444           avoid 'residue' when transparent icons are drawn
12445         * XplatUIX11.cs:
12446           - Handle whole_window == client_window when destroying windows
12447           - SystrayAdd(): Set client_window to whole_window value to
12448             get mouse and other events passed to NotifyIcon
12450 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
12452         * Form.cs: Set proper default for Opacity property
12453         * NotifyIcon.cs:
12454           - ShowSystray(): Don't bother creating telling the OS
12455             about the systray item if no icon is provided
12456           - Now handles WM_NCPAINT message to deal with whole/client window
12457             split
12458           - Create window as visible to not get caught by Expose optimization
12459         * Hwnd.cs: Removed debug message
12460         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
12461           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
12462             PaintEventStart/End to use new client argument
12463         * TextBoxBase.cs:
12464           - Commented out debug messages
12465           - Switched PaintEventStart/End to use new client argument
12466         * XplatUI.cs: Added client window bool to PaintEventStart()/
12467           PaintEventEnd() calls, to support drawing in non-client areas
12468         * XplatUIDriver.cs: 
12469           - Added client window bool to PaintEventStart()/PaintEventEnd() 
12470             calls, to support drawing in non-client areas
12471           - Added conditional compile to allow using MWF BeginInvoke 
12472             on MS runtime
12473         * XplatUIX11.cs:
12474           - Added some conditional debug output
12475           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
12476             whole/client window split
12477           - Implemented handling of client argument to PaintEventStart()/End()
12478         * Control.cs:
12479           - Throw exception if BeginInvoke() is called and the window handle
12480             or one of the window's parent handles is not created
12481           - Added conditional compile to allow using MWF BeginInvoke on
12482             MS runtime
12483           - get_Parent(): Only sets parent if handle is created. This avoids
12484             forcing window handle creation when parent is set.
12485           - Now fires Layout and Parent changed events in proper order
12486           - Switched to use Handle instead of window.Handle for Z-Order setting,
12487             the get_Parent() patch above causes us to possibly get null for 'window'
12488           - Implemented handling of client argument to PaintEventStart()/End()
12489           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
12490             default handling)
12491           - Now sends a Refresh() to all child windows when Refresh() is called
12493 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
12495         * Form.cs: Added (non-functional) Opacity property
12496         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
12498 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
12499         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
12500           use export MONO_THEME=nice to activate it.
12501           Currently supported controls:
12502           - Button
12503           - ComboBox
12504           - ScrollBar
12505           - TabControl (TabAlignment.Top only, other will follow)
12506         * ThemeEngine.cs: Add theme nice
12507         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
12508           if enabled
12510 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
12512         * Splitter.cs: Resize docked control and its neighbor.
12514 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
12515         -- Making Windows with Menus layout correctly --
12516         * Form.cs : The first leg of the fix
12517                 Menu setter - adjust Client Size as needed to make space for the menu
12518                 SetClientSizeCore - doesn't call base version to be able to pass the 
12519                         menu handle to XplatUI.CalculateWindowRect
12520         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
12521         * XplatUIX11.cs: The critical second leg of the fix
12522                 GetWindowPos needs to use a recalculated client_rect
12523                 so that resizing the window doesn't break layout of child controls. 
12524                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
12525                 Lots of \t\n killed
12527 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
12529         * Label.cs: Now properly recalculates width and height on Font and Text
12530           changes if AutoSize is set
12532 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
12533         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
12535 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
12537         * ImageList.cs: Makes ToString method compatible with MS
12539 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
12541         * MenuAPI.cs: fixes bug 75716
12543 2005-08-11 Umadevi S <sumadevi@novell.com>
12544         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
12546 2005-08-11 Umadevi S <sumadevi@novell.com>
12547         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
12549 2005-08-10  Umadevi S <sumadevi@novell.com>
12550         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
12552 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
12554         * Menu.cs: fixes bug 75700
12555         * MenuAPI.cs: fixes navigation issues
12557 2005-08-09  Umadevi S <sumadevi@novell.com>
12558         * CheckedListBox.cs - simple fix for GetItemChecked.
12560 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
12562         * ComboBox.cs: Serveral fixes
12563         * ListBox.cs: Serveral fixes
12565 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
12567         * ComboBox.cs: Fixes FindString methods and GetItemHeight
12568         * ListBox.cs: Fixes FindString methods
12570 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
12572         * DataGrid.cs: fixes bugs exposed by new tests
12574 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
12576         * Mime.cs: Compile Mono assembly references only if compiling
12577           with Mono (Allows to build with VS.Net again)
12579 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
12581         * Control.cs (PaintControlBackground): Draw background image
12582         corrrectly.
12583         (CheckForIllegalCrossThreadCalls): Stubbed.
12584         
12585         * Form.cs (OnCreateControl): Center when should be centered.
12586         
12587         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
12589 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
12591         * Binding.cs: Binding to properties should be case unsensitive
12593 2005-07-18 vlindos@nucleusys.com
12595         * DataGrid.cs: fixes setmember order
12597 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
12599         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
12600         * FileDialog.cs: FileDialog is now resizable and uses the new
12601           MimeIconEngine
12603 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
12605         * DataGridTextBoxColumn.cs: default value
12606         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
12607         * GridTableStylesCollection.cs: fixes checking MappingName
12608         * DataGridDrawingLogic.cs: fixes drawing logic issues
12609         * DataSourceHelper.cs: rewritten to make compatible with more data sources
12610         * DataGrid.cs: fixes    
12612 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
12614         * MimeGenerated.cs: Use case sensitive comparer for
12615           NameValueCollections
12617 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
12619         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
12620         * ThemeWin32Classic.cs: bug fixes, code refactoring
12621         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
12622         * DataGrid.cs: bug fixes, code refactoring
12623         * DataGridTextBox.cs: bug fixes, code refactoring
12624         * DataGridColumnStyle.cs:  bug fixes, code refactoring
12625         * Theme.cs:  bug fixes, code refactoring
12627 2005-07-01  Peter Bartok  <pbartok@novell.com> 
12629         * TextControl.cs: Quick fix for the reported crash on ColorDialog
12630           and other text box usage
12632 2005-07-01  Jackson Harper  <jackson@ximian.com>
12634         * TabControl.cs: Make sure the bottom of the tab covers the pages
12635         border.
12637 2005-06-30  Peter Bartok  <pbartok@novell.com> 
12639         * Form.cs (ShowDialog): Assign owner of the dialog
12640         * TextBoxBase.cs: Always refresh caret size when deleting, caret
12641           might have been moved to a tag with different height
12643 2005-06-30  Jackson Harper  <jackson@ximian.com>
12645         * Form.cs: Don't create an infinite loop when setting focus
12646         * MenuItem.cs: Don't dirty the parents if we don't have any
12648 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
12650         * LibSupport.cs: Rename
12652 2005-06-29  Peter Bartok  <pbartok@novell.com>
12654         * TextBoxBase.cs: Re-align caret after deleting a character
12655         * TextControl.cs:
12656           - DeleteChars(): Ensure that tag covers the provided position
12657           - StreamLine(): Drop reference for dropped tag
12659 2005-06-29  Peter Bartok  <pbartok@novell.com> 
12661         * TextControl.cs: 
12662           - Selections now work properly, anchoring at the initial location
12663             and properly extending in either direction (SetSelectionToCaret(),
12664             SetSelectionStart() and SetSelectionEnd())
12665           - No longer redraws the whole control on selection change, now
12666             calculates delta between previous and new selection and only
12667             invalidates/redraws that area
12668           - Fixed FindPos() math off-by-one errors
12669           - Changed DeleteChars() to verify the provided tag covers the
12670             provided position, selections may have a tag that doesn't cover
12671             the position if the selection is at a tag border
12672           - Fixed off-by-one errors in DeleteChars()
12673           - Added missing streamlining check in DeleteChars() to remove
12674             zero-length tags
12675           - Implemented Invalidate() method, now properly calculates exposures
12676             between two given lines/positions
12677           - Implemented SetSelection()
12678           - Obsoleted and removed FixupSelection()
12679           - Improved RecalculateDocument() logic, removing code duplication
12681 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12683         * LibSupport.cs: changes to match different input/output arguments.
12685 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12687         * LibSupport.cs: added libsupport.so init routine.
12689 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
12690         
12691         * ControlBindingsCollection.cs
12692                 - Throws an exception on null datasource when adding
12693                 - Checks for duplicated bindings when adding
12695 2005-06-28  Jackson Harper  <jackson@ximian.com>
12697         * TreeView.cs (OnKeyDown): Support left and right properly
12698         (navigates as well as expanding and collapsing.
12699         - Add support for Multiply, this expands all the selected nodes
12700         children.
12701         - Fix some tabbing.
12703 2005-06-28  Jackson Harper  <jackson@ximian.com>
12705         * TreeView.cs: Implement keyboard navigation, currently supports,
12706         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
12707         support for toggling checkboxes with the space bar.
12709 2005-06-28  Jackson Harper  <jackson@ximian.com>
12711         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
12712         tree.
12714 2005-06-28  Jackson Harper  <jackson@ximian.com>
12716         * TreeView.cs: Add missing event.
12718 2005-06-27  Peter Bartok  <pbartok@novell.com> 
12720         * TextControl.cs:
12721           - Made line ending size configurable (now allows for counting 
12722             lineendings as \n or \r\n)
12723           - Added margin to viewport to keep caret visible on right side
12724           - Fixed translation routines for line/pos to documentpos to consider
12725             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
12726           - Fixed some line-endings to be unix style
12727           - Fixed Document.FormatText to perform it's calculations 1-based
12728           - Added descriptions for a few methods that might otherwise get 
12729             used wrong
12730           - Added NOTE section with some basic conventions to remember at 
12731             the top of the file
12732           - Major fixup for RichTextBox selection drawing:
12733             * Fixed crashes when multiple tags on a single line were selected
12734             * fixed selection box drawing not overlaying text
12735             * fixed bogus offset calculation for tags not starting at index 1
12736             * Switched behaviour from using multiple Substrings of a 
12737               StringBuilder.ToString() to using multiple 
12738               StringBuilder.ToString(start, length) statements, hoping this is
12739               faster (kept original version commented out in the code, in case
12740               original version was faster)
12741         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
12742           alignment != Left
12743         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
12744           call it as well
12746 2005-06-27  Jackson Harper  <jackson@ximian.com>
12748         * TabControl.cs: Move to the left and right with the arrow
12749         keys. These keys don't cycle beyond first and last like
12750         tab. Refresh all the tabs when scrolling them to the left or
12751         right.
12753 2005-06-27  Jackson Harper  <jackson@ximian.com>
12755         * TabControl.cs:
12756           - ToString: Added method
12757           - CreateParams: Remove TODO and comment
12758           - OnKeyDown: Cycle through bounds properly.
12759           - SelectedIndex: Scroll to the right or left if we need to
12760           display the newly selected tab.
12762 2005-06-23  Jackson Harper  <jackson@ximian.com>
12764         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
12765         set.
12767 2005-06-23  Jackson Harper  <jackson@ximian.com>
12769         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
12770         CTRL-SHIFT-TAB, and HOME, END are there any others?
12772 2005-06-23  Jackson Harper  <jackson@ximian.com>
12774         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
12776 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
12777         
12778         * DataGridTextBoxColumn.cs: fixes and enhancements
12779         * ThemeWin32Classic.cs: fixes and enhancements
12780         * DataGridBoolColumn.cs:  fixes and enhancements
12781         * DataGridDrawingLogic.cs:  fixes and enhancements
12782         * CurrencyManager.cs: fixes and enhancements
12783         * DataGrid.cs: fixes and enhancements
12784         * DataGridColumnStyle.cs:  fixes and enhancements
12786 2005-06-22  Jackson Harper  <jackson@ximian.com>
12788         * TabControl.cs: Add some missing methods that just call into the
12789         base. Make the TabPageCollection's IList interface behave in the
12790         same manner as the MS implementation.
12792 2005-06-22  Peter Bartok  <pbartok@novell.com> 
12794         * TextControl.cs: Added sanity check
12795         * TextBoxBase.cs: 
12796           - Fixed wrapping behaviour, don't set wrap on single line controls
12797             (this fixes the breakage of colordialog introduced in an earlier
12798              checkin)
12799           - Added rudimentary support for autoscrolling right-aligned controls
12800             (still needs fixing, also, center alignment scroll is missing)
12802 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
12803         
12804         * ScrollBar.cs: Fixes thumbpos on Maximum values
12806 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
12807         
12808         * PropertyGridView.cs: Pass context information to UITypeEditors 
12810 2005-06-21  Peter Bartok  <pbartok@novell.com> 
12812         * TextBoxBase.cs:
12813           - Now calling PositionCaret with absolute space coordinates
12814           - Enabled vertical scrolling
12815           - Better tracking of scrollbar changes, tied into WidthChange
12816             event
12817           - Improved cursor tracking
12818           - Removed debug output
12819         * TextControl.cs:
12820           - PositionCaret coordinates are now works in absolute space, not 
12821             the canvas
12822           - Improved tracking of document size
12823           - Added events for width and height changes
12825 2005-06-21  Peter Bartok  <pbartok@novell.com>
12827         * Form.cs: Set focus to active control when form is activated
12828         * TextControl.cs: 
12829           - Added word-wrap functionality to RecalculateLine() 
12830           - Added some short function descriptions for VS.Net to aid in
12831             writing dependent controls
12832           - Added Caret property, returning the current coords of the caret
12833           - Added ViewPortWidth and ViewPortHeight properties
12834           - Added Wrap property
12835           - Added CaretMoved event
12836           - Removed some old debug code
12837           - Split() can now create soft splits
12838           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
12839           - Added method to format existing text
12840           - Fixed size/alignment calculations to use viewport
12841           - RecalculateDocument now can handle changing line-numbers while
12842             calculating lines
12844         * TextBox.cs:
12845           - Added some wrap logic, we don't wrap if alignment is not left
12846           - Added casts for scrollbar var, base class switched types to
12847             also support RichTextBoxA
12848           - Implemented handling of scrollbar visibility flags
12850         * TextBoxBase.cs:
12851           - Switched scrollbars type to RichTextBoxScrollBars to support
12852             RichTextBox
12853           - Added tracking of canvas width/height
12854           - Switched scrollbars to be not selectable (to keep focus on text)
12855           - Added central CalculateDocument() method to handle all redraw
12856             requirements
12857           - Added ReadOnly support
12858           - Added WordWrap support
12859           - Fixed handling of Enter key (we now treat it as a DialogKey)
12860           - Fixed caret positioning when h or v scroll is not zero
12861           - Fixed placing/generation of vertical scrollbar
12862           - Added CalculateScrollBars() method to allow updating scrollbar
12863             limits and visibility
12864           - Fixed handling of horizontal scroll
12865           - Added handling of vertical scroll
12866           - Implemented auto-'jump' when caret moves to close to a left or
12867             right border and there is text to be scrolled into view (currently
12868             there's the potential for a stack overflow, until a bug in
12869             scrollbar is fixed)
12871 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
12872         
12873         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
12875 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
12877         * Mime.cs:
12878         - added inodes.
12879         - return application/x-zerosize for files with size zero
12880           (if no extension pattern matches).
12881         - check matches collection for strings too.
12882         - return only the first mime type if the name value
12883           collection has more than one mime type.
12885 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
12886         
12887         * PropertyGrid.cs: Cleaned up some TODOs
12888         * PropertyGridView.cs: Added support for UITypeEditors
12890 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
12891         
12892         * DataGrid.cs: clears cached value
12894 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
12896         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
12897         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
12898         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
12899         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
12900         
12901 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
12903         * ThemeWin32Classic.cs: fixes colour
12905 2005-06-15  Peter Bartok  <pbartok@novell.com>
12907         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
12908         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
12909         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
12910         * Control.cs: Added some MWFCategory and MWFDescription attributes
12911         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
12913 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
12915         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
12916         usage
12918 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
12920         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
12921         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
12922         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
12923         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
12924         * DataGrid.cs: default datagrid settings for Default Styles, fixes
12925         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
12927 2005-06-13  Jackson Harper  <jackson@ximian.com>
12929         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
12930         isn't printed when the user enables dropping. (X11 does accept
12931         drops).
12932         
12933 2005-06-13  Jackson Harper  <jackson@ximian.com>
12935         * TreeView.cs: Remove some TODOS.
12937 2005-06-13  Jackson Harper  <jackson@ximian.com>
12939         * Form.cs: Hook into the mdi framework.
12940         * MdiClient.cs: Use the base control collections add method so
12941         parents get setup correctly. Set the default back colour and dock
12942         style.
12943         * MdiChildContext.cs: New class, this bad actor handles an
12944         instance of an MDI window. Right now there is only basic
12945         support. You can drag, close, and resize windows. Minimize and
12946         Maximize are partially implemented.
12948 2005-06-13  Jackson Harper  <jackson@ximian.com>
12950         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
12951         freaky when both vals are negative. NOTE: There are probably other
12952         places in XplatUIX11 that this needs to be done.
12954 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
12956         * DataGrid.cs: implement missing methods, move KeyboardNavigation
12957         * DataGridColumnStyle.cs: fixes signature
12959 2005-06-12  Jackson Harper  <jackson@ximian.com>
12961         * XplatUIX11.cs: Use sizing cursors similar to the ones on
12962         windows.
12964 2005-06-11  Jackson Harper  <jackson@ximian.com>
12966         * StatusBarPanel.cs: Signature cleanups. Implement
12967         BeginInit/EndInit.
12969 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
12971         * DataGridTextBoxColumn.cs: Honors aligment
12972         * GridColumnStylesCollection.cs: Contains is case unsensitive
12973         * GridTableStylesCollection.cs: several fixes
12974         * DataGridTableStyle.cs: default column creation
12975         * DataGridDrawingLogic.cs: fixes
12976         * CurrencyManager.cs: ListName property
12977         * DataGrid.cs: multiple styles support
12978         * DataGridColumnStyle.cs: fixes
12979         
12981 2005-06-10  Peter Bartok  <pbartok@novell.com>
12983         * Control.cs(Select): Moved SetFocus call to avoid potential
12984           loops if controls change the active control when getting focus
12985         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
12986           the up/down buttons
12988 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
12990         * ImageListConverter.cs: Implemented
12992 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
12994         * MonthCalendar.cs: Wired in NumericUpDown control for year
12996 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
12998         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
12999           DoubleClick events, since they are not meant to be fired.
13001 2005-06-09  Peter Bartok  <pbartok@novell.com>
13003         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
13004           Jonathan's standalone controls into MWF, implemented missing
13005           events, attributes and methods; added xxxAccessible classes
13006         * AccessibleObject.cs: Made fields internal so other classes
13007           can change them if needed
13009 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
13011         * UpDownBase.cs: Complete implementation
13012         * NumericUpDown.cs: Complete implementation
13013         * DomainUpDown.cs: Complete implementation
13015 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
13017         * DataGridTextBoxColumn.cs: drawing fixes
13018         * DataGridCell.cs: fixes ToString method to match MSNet
13019         * DataGridTableStyle.cs: fixes
13020         * DataGridBoolColumn.cs: fixes, drawing
13021         * DataGridDrawingLogic.cs: fixes, new methods
13022         * DataGridTextBox.cs: Keyboard and fixes
13023         * DataGrid.cs:
13024                 - Keyboard navigation
13025                 - Scrolling fixes
13026                 - Row selection (single, multiple, deletion, etc)
13027                 - Lots of fixes
13028         
13029 2005-06-07  Jackson Harper  <jackson@ximian.com>
13031         * ThemeWin32Classic.cs: Clear the background area when drawing
13032         buttons.
13034 2005-06-06  Peter Bartok  <pbartok@novell.com>
13036         * ImageListStreamer.cs: Fixed signature for GetData
13037         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
13038         * ComboBox.cs:
13039           - Added missing ChildAccessibleObject class
13040           - Added missing OnXXXFocus overrides, switched to using those
13041             instead of the event handler
13042         * Control.cs:
13043           - Added Parent property for ControlAccessibleObject
13044           - Fixed signatures
13045           - Fixed attributes
13046           - Added ResetBindings()
13047         * ListBindingConverter.cs: Implemented some methods
13048         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
13049         * ImageList.cs: Implemented basic handle scheme, removed TODOs
13050         * ContainerControl.cs: Fixed signature, now subscribing to the
13051           ControlRemoved event instead of overriding the handler, LAMESPEC
13052         * CurrencyManager.cs: Added missing attribute
13053         * MonthCalendar.cs: Added missing properties
13055 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
13057         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
13058         
13059 2005-06-06  Gaurav Vaish and Ankit Jain
13061         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
13062         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
13063         
13064 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
13066         * Control.cs: fixes CreateParams Width / Height.
13068 2005-06-05  Peter Bartok  <pbartok@novell.com>
13070         * Win32DnD.cs: Removed compilation warnings
13072 2005-06-05  Peter Bartok  <pbartok@novell.com>
13074         * Control.cs (CreateParams): Since we don't know if one of the
13075           properties we use is overridden, lets make sure if we fail accessing
13076           we continue with a backup plan
13078 2005-06-05  Peter Bartok  <pbartok@novell.com>
13080         * Win32DnD.cs:
13081           - Removed debug output
13082           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
13083             struct
13084           - Plugged resource leak
13085         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
13086           MS size
13088 2005-06-05  Peter Bartok  <pbartok@novell.com>
13090         * XplatUIWin32.cs: Removed DnD code
13091         * Win32DnD.cs: Implemented drop source and drop target functionality
13093 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
13095         * UpDownBase.cs: remove duplicate addition of event, enable some code
13096         that was commented out.
13097         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
13098         Validate input when a key is pressed. It works fine now for every
13099         combination of Hexadecimal. Only missing some drawing love when sharing
13100         space with other controls.
13102 2005-06-04  Peter Bartok  <pbartok@novell.com>
13104         * Control.cs:
13105           - We need to pass a window for DragDrop, so enable callback events
13106           - Added DnD callback events when being a DragSource
13107         * XplatUI.cs (StartDrag): Added window handle argument
13108         * XplatUIDriver.cs (StartDrag): Added window handle argument
13109         * QueryContinueDragEventArgs: Made fields internally accessible so
13110           drivers can set them
13111         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
13112           can set them
13114 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
13116         * DataGridTextBoxColumn.cs: column text editing
13117         * DataGridTableStyle.cs: Respect columns styles created by the user
13118         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
13119         * DataGridBoolColumn.cs: bool column editing
13120         * DataGrid.cs: fixes to scrolling, properties, etc
13121         * DataGridTextBox.cs: handle keyboard
13122         * DataGridColumnStyle.cs: fixes
13124 2005-06-02  Jackson Harper  <jackson@ximian.com>
13126         * ImageListStreamer.cs: Somewhat broken implementation of
13127         GetObjectData. The RLE needs some work to match MS properly.
13129 2005-06-02  Jackson Harper  <jackson@ximian.com>
13131         * X11Dnd.cs: Attempting to keep at least one file in MWF
13132         monostyled.
13134 2005-06-02  Peter Bartok  <pbartok@novell.com>
13136         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
13137           that way
13139 2005-06-02  Peter Bartok  <pbartok@novell.com>
13141         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
13142         * XplatUI.cs: Added DoDragDrop() method
13143         * XplatUIDriver.cs: Added DoDragDrop() method
13145 2005-06-02  Jackson Harper  <jackson@ximian.com>
13147         * Splitter.cs: Implement BorderStyle.
13149 2005-06-02  Jackson Harper  <jackson@ximian.com>
13151         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
13152         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
13153         X11 using XDND.
13155 2005-06-02  Peter Bartok  <pbartok@novell.com>
13157         * DataObject.cs:
13158           - Added Data setter
13159           - Fixed broken insertion code for SetData, now also
13160             overwrites any existing entry of the same format name
13161         * Hwnd.cs: Added list of pointers that automatically gets
13162           freed when the window is disposed
13163         * XplatUI.cs: Call driver initialization method when loading
13164           a driver
13165         * Control.cs:
13166           - OnDragLeave takes EventArgs, not DragEventArgs
13167           - Added setting of WS_EX_ACCEPTFILES style when dropping is
13168             supported
13169           - Forces style update when drop state changes
13170         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
13171           not perfect since we cannot (yet) call the IDataObject.GetData()
13172           method, we keep getting 0x80004005 error, dunno why)
13174 2005-06-02  Peter Bartok  <pbartok@novell.com>
13176         * DragEventArgs.cs: Make fields internal so we can cache the
13177           object and re-set the fields from XplatUI
13179 2005-06-02  Jackson Harper  <jackson@ximian.com>
13181         * Control.cs: Add some internal methods so the DnD subsystem can
13182         raise DnD events. Also call into the driver when AllowDrop is set.
13183         * XplatUI.cs:
13184         * XplatUIDriver.cs: New method for setting whether or not a window
13185         is allowed to accept drag and drop messages.
13186                 
13187 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
13188         
13189         * ScrollBar.cs: Make sure that values sent in Scroll events
13190         are always between Maximum and Minimum.
13192 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
13194         * Menu.cs: Call MenuChanged when menuitem visibility has been
13195         changed.
13196         * MenuItem.cs: Rebuild menu when item is (not) visible.
13197         * MainMenu.cs: MainMenu has special MenuChanged.
13198         * Theme.cs: Caption and FrameBorderSize are not fixed.
13199         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
13200         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
13201         * XplatUIX11.cs,
13202         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
13203         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
13205 2005-05-30  Jackson Harper  <jackson@ximian.com>
13207         * DataFormat.cs: We can't statically initialize this stuff because
13208         it calls into the xplatui and could create a loop. So we lazy init
13209         it.
13211 2005-05-28  Jackson Harper  <jackson@ximian.com>
13213         * Control.cs: Proper implementation of Product(Name/Version).
13215 2005-05-27  Jackson Harper  <jackson@ximian.com>
13217         * DataObject.cs: Dont crash if no data is found.
13219 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
13220         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
13221                 as per status page, guessing it should be set to true
13223 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
13225         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
13226         * DataGridTableStyle.cs: set proper formatting text, def header text
13227         * ThemeWin32Classic.cs: new themable paramaters
13228         * DataGridBoolColumn.cs: paint check box, get data, fixes
13229         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
13230         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
13231         * DataGridColumnStyle.cs: fixes
13232         * Theme.cs: new themable paramaters
13233                 
13234 2005-05-26  Peter Bartok  <pbartok@novell.com>
13236         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
13238 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
13239         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
13241 2005-05-24  Peter Bartok  <pbartok@novell.com>
13243         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
13244           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
13245           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
13246           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
13247           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
13248           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
13249           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
13250           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
13251           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
13252           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
13253           missing attributes, etc
13254         * DataGridPreferredColumnWidthTypeConverter.cs: Added
13256 2005-05-24  Peter Bartok  <pbartok@novell.com>
13258         * Help.cs: Added, implemented trivial functions, throws up MessageBox
13259           when user tries to get help
13260         * DataObject.cs, DataFormats.cs, LinkArea.cs,
13261           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
13262           to suppress warnings
13263         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
13264           avoid unreachable code warning
13266 2005-05-20  Peter Bartok  <pbartok@novell.com>
13268         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
13270 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
13272         * DataGridTextBoxColumn.cs: Basic painting methods
13273         * DataGridTableStyle.cs: Set table style in the column
13274         * ThemeWin32Classic.cs: Use Theme for colors
13275         * DataGridDrawingLogic.cs: Implement more drawing
13276         * DataGrid.cs: drawing, theming, enhacements, fixes
13277         * DataGridColumnStyle.cs: fixes, drawing
13278         * Theme.cs: theming for Datagrid
13280 2005-05-20  Peter Bartok  <pbartok@novell.com>
13282         * Cursor.cs: Implemented GetObjectData() method
13284 2005-05-20  Peter Bartok  <pbartok@novell.com>
13286         * Cursors.cs: Added setting of cursor name
13287         * Cursor.cs:
13288           - Implemented constructors
13289           - Implemented Draw and DrawStretched
13290           - Implemented Current property
13291           - Implemented == and != operators
13292           - Implemented Dispose()
13293           - Implemented ToString
13294           - Added missing attributes
13295         * XplatUIX11.cs:
13296           - Added missing reset for OverrideCursor when DoEvents is called
13297           - Fixed creation of cursor, logic was wrong
13298         * XplatUIWin32.cs:
13299           - Added missing reset for OverrideCursor when DoEvents is called
13300           - Fixed creation of cursor, bit arrays were swapped
13301         * Clipboard.cs: Removed obsolete MonoTODO attribute
13303 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
13305         * ComboBox.cs: fixes OnSelectedItemChanged
13306         * ControlBindingsCollection.cs: fixes item range check
13308 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
13310         * UpDownBase.cs:
13311                 - Calc preferred height properly
13312                 - Implement missing properties
13313                 
13314         * NumericUpDown.cs: Implement missing events
13316 2005-05-19  Jackson Harper  <jackson@ximian.com>
13318         * TabControl.cs: New method that resizes the tab pages before
13319         redrawing them. This as needed as the control is double buffered
13320         and sizing will not be recalculated unless ResizeTabPages is
13321         called.
13322         * TabPage.cs: Set base.Text instead of Text in the constructor so
13323         that UpdateOwner does not get called. Use the new Redraw method of
13324         TabControl instead of Refresh so the sizing is recalculated.
13325         * ThemeWin32Classic.cs: Draw the text for button tabs.
13327 2005-05-19  Jackson Harper  <jackson@ximian.com>
13329         * Control.cs: Paint control background images. Fix typo where
13330         PaintControlBackground was not getting called correctly.
13332 2005-05-19  Peter Bartok  <pbartok@novell.com>
13334         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
13335           I can investigate, apparently I broke FileDialog
13337 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
13339         * AxHost.cs: Some simple properties.
13340         * Control.cs: window must be accessible after ctor.
13341         * Form.cs: Added TransparencyKey property.
13342         * TextBoxBase.cs: Implemented Clear. Text property can be null.
13343         * XplatUIWin32.cs: SetBorderStyle implemented.
13345 2005-05-18  Peter Bartok  <pbartok@novell.com>
13347         * DataObject.cs: Entries are not global but particular to the
13348           DataObject, now it behaves that way
13349         * XplatUIWin32.cs: Implemented Clipboard methods
13350         * Clipboard.cs: Implemented
13351         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
13352         * XplatUIOSX.cs: Updated to final clipboard prototypes
13353         * XplatUIX11.cs: Implemented Clipboard methods
13354         * XplatUIDriver.cs: Updated to final clipboard prototypes
13355         * XplatUIStructs.cs:
13356           - Added BITMAPINFOHEADER struct
13357           - Added ClipboardFormats enum
13358         * X11Structs.cs:
13359           - Added ClipboardStruct
13360           - Added Atom enum items for clipboard types
13361           - Fixed atom types for Selection event structures
13362         * DataFormats.cs:
13363           - Added internal properties and methods for drivers to enumerate
13364             all known formats
13365           - Switched initialization method to allow drivers to assign their
13366             own IDs even for the MS predefined clipboard IDs
13367         * XplatUI.cs: Updated to final clipboard interface
13369 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
13370         * PropertyGridView.cs: Fixed compiler warnings.
13372 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
13373         * PropertyGrid.cs: Added some event calls
13374         * PropertyGridView.cs: Change drawing code to use double buffering
13375         * PropertyGridTextBox.cs: Changed Text property name
13376         * GridItem.cs: Added Bounds property.
13377         * GridEntry.cs: Added Bounds property.
13379 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
13381         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
13382         since GetType() may not return the correct type if the object is
13383         a remoting proxy.
13385 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
13387         * TreeNodeCollection.cs: fixes get/set item ranges
13388         
13389 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
13391         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
13392                 
13393 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
13395         * ComboBox.cs: Fix item range comparation
13396         * ListView.cs: Fix item range comparation
13398 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
13400         * FontDialog.cs:
13401           - Clear example panel when OnPaint is called
13402           - Better solution for displaying the example panel text
13403           - Select default indexes in the ListBoxes
13405 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
13407         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
13409 2005-05-11  Peter Bartok  <pbartok@novell.com>
13411         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
13412         * SelectionRangeConverter.cs: Implemented
13413         * PropertyGrid.cs: Fixed attribute value
13414         * Control.cs:
13415           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
13416           - Added Sebastien Pouliot's CAS Stack Propagation fixes
13417         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
13418           that's common to all drivers. First methods to go there are
13419           Sebastien Pouliot's CAS Stack Propagation helper methods
13420         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
13421           Sebastien Pouliot for CAS Stack Propagation
13423 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
13425         * OSXStructs.cs:
13426           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
13428 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
13430         * DataGridTextBoxColumn.cs: fixed some members
13431         * GridColumnStylesCollection.cs: indexed column is case insensitive
13432         * DataGridTableStyle.cs: fixes
13433         * ThemeWin32Classic.cs: add new theme parameter
13434         * Theme.cs: add new theme parameter
13435         * DataGridDrawingLogic.cs: Datagrid's drawing logic
13436         * DataGrid.cs: fixes, new internal properties, etc.
13437         * DataGridColumnStyle.cs: allows to set grid value
13438         *
13440 2005-05-10  Peter Bartok  <pbartok@novell.com>
13442         * AccessibleObject.cs:
13443           - Removed MonoTODO attribute on help, method is correct
13444           - Fixed Bounds property
13445         * AxHost.cs: Moved MonoTODO
13446         * ButtonBase.cs: Now setting AccessibleObject properties
13447         * RadioButton.cs: Setting proper AccessibleObject role
13448         * CheckBox.cs: Setting proper AccessibleObject role
13449         * ControlBindingsCollection.cs: Added properties, methods and attributes
13450         * DataFormats.cs: Fixed awkward internal API, and changed to enable
13451           userdefined DataFormats.Format items as well
13452         * ListControl.cs: Removed data_member from the public eye
13453         * OpenFileDialog.cs:
13454           - Made class sealed
13455           - Added missing attributes
13456         * SaveFileDialog.cs: Added missing attributes
13457         * ImageListStreamer.cs: Fixed code that caused warnings
13458         * LinkLabel.cs: Removed unreachable code
13459         * TreeView.cs: Fixed code that caused warnings
13460         * PropertyGridView.cs: Fixed code that caused warnings
13461         * GridColumnStylesCollection.cs: Added missing attributes
13462         * GridTableStylesCollection: Added missing attribute
13463         * PropertyManager: Added .ctor
13464         * SecurityIDType: Added
13465         * DataObject.cs: Implemented class
13466         * LinkArea.cs: Added missing attribute
13468 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
13470         * RadioButton.cs: call base method to allow to fire OnClick event
13471         * UpDownBase.cs: OnMouseUp call base method
13472         * CheckedListBox.cs: call base method before returning
13473         * TrackBar.cs: call base method before returning
13474         
13476 2005-05-10  Peter Bartok  <pbartok@novell.com>
13478         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
13479           for messages
13481 2005-05-10  Peter Bartok  <pbartok@novell.com>
13483         * DataFormats.cs: Implemented
13484         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
13485           XplatUIX11.cs: Added Clipboard APIs
13486         * XplatUIWin32.cs: Implemented Clipboard APIs
13487         * FolderBrowserDialog.cs: Added missing event, attributes
13489 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
13491         * CheckBox.cs: call base method to allow to fire OnClick event
13493 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
13495         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
13497 2005-05-06  Peter Bartok  <pbartok@novell.com>
13499         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
13500         * Screen.cs: Implemented
13501         * HelpNavigator.cs: Added
13502         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
13503           property
13504         * HelpProvider.cs: Implemented all we can do until we have a CHM
13505           help library (which means that "What's This" does work now)
13507 2005-05-06  Jackson Harper  <jackson@ximian.com>
13509         * XplatUIX11.cs: Fix waking up the main loop.
13510                 
13511 2005-05-05  Peter Bartok  <pbartok@novell.com>
13513         * XplatUI.cs: Updated revision
13514         * Form.cs: Removed enless loop
13515         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
13516         * Label.cs (OnPaint): Added call to base.OnPaint()
13517         * ToolTip.cs: Made ToolTipWindow reusable for other controls
13518         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
13519         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
13520         * AxHost.cs: Added
13521         * ButtonBase.cs: Moved base.OnPaint() call to end of method
13522         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
13523           to ToolTip.ToolTipWindow for drawing and size methods; this allows
13524           reuse of ToolTipWindow by other controls
13525         * SizeGrip.cs: Moved base.OnPaint() call to end of method
13526         * XplatUIX11.cs: Now clipping drawing area (experimental)
13527         * PictureBox.cs: Moved base.OnPaint() call to end of method
13528         * Theme.cs: Fixed ToolTip abstracts to match new format
13529         * ErrorProvider.cs: Implemented
13531 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
13533         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
13534         * LinkLabel.cs:
13535                 - Adds cursors
13536                 - Handles focus
13537                 - Implements LinkBehavior
13538                 - Fixes many issues
13540 2005-05-03  Jackson Harper  <jackson@ximian.com>
13542         * ListView.cs: Calculate the scrollbar positioning on resize and
13543         paint, so they get put in the correct place.
13545 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
13547         * ColorDialogs.cs: The small color panels are now handled by
13548           SmallColorControl. This fixes drawing of the focus rectangle
13549           and adds a 3D border.
13551 2005-05-03  Peter Bartok  <pbartok@novell.com>
13553         * Control.cs: Modified version of Jonathan Chamber's fix for
13554           double-buffering
13556 2005-05-03  Jackson Harper  <jackson@ximian.com>
13558         * ListView.cs: Remove redraw variable. Control now handles whether
13559         or not a redraw needs to be done, and will only raise the paint
13560         event if redrawing is needed.
13562 2005-05-03  Jackson Harper  <jackson@ximian.com>
13564         * Splitter.cs: No decorations for the splitter form. Cache the
13565         hatch brush.
13567 2005-05-03  Jackson Harper  <jackson@ximian.com>
13569         * TreeView.cs: Use dashed lines to connect nodes. Use the
13570         ControlPaint method for drawing the focus rect instead of doing
13571         that in treeview.
13573 2005-05-02  Peter Bartok  <pbartok@novell.com>
13575         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
13577 2005-04-29  Jackson Harper  <jackson@ximian.com>
13579         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
13580         entire image buffer. Just clear the clipping rectangle.
13582 2005-04-29  Jackson Harper  <jackson@ximian.com>
13584         * ThemeWin32Classic.cs: Don't draw list view items that are
13585         outside the clipping rectangle.
13587 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
13589         * ListBox.cs: added horizontal item scroll
13591 2005-04-29  Jackson Harper  <jackson@ximian.com>
13593         * ThemeWin32Classic.cs: Remove some old debug code that was
13594         causing flicker with the new double buffering code.
13596 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
13598         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
13599         behave like combobox and comboboxlist (still not sure if this is
13600         correct though).
13602 2005-04-28  Jackson Harper  <jackson@ximian.com>
13604         * ThemeWin32Classic.cs: Don't fill the middle of progress
13605         bars. This fills areas outside of the clip bounds that don't need
13606         to be filled.
13608 2005-04-28  Jackson Harper  <jackson@ximian.com>
13610         * Control.cs: Don't expose functionality to touch the image buffers.
13611         * ProgressBar.cs:
13612         * ListView.cs: We do not need to (and no longer can) manipulate
13613         the image buffers directly. All of this is handled by Control.
13615 2005-04-28  Peter Bartok  <pbartok@novell.com>
13617         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
13618           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
13619           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
13621 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
13623         * Combobox:
13624                 - Adjust control's height for non-simple comboboxes (bug fix)
13625                 - Remove dead code
13626         * MenuAPI.cs: remove unused var
13627         * ScrollBar.cs: remove unsed var
13628                  
13629         * ListBox.cs: unselect items when clearing
13631 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
13633         * ListControl.cs: honors OnPositionChanged and default Selected Item
13634         * ListBox.cs: unselect items when clearing
13636 2005-04-27  Jackson Harper  <jackson@ximian.com>
13638         * X11Keyboard.cs: Initialize a default keyboard and give a warning
13639         if a "correct" keyboard is not found. This will make us not crash,
13640         but might give some users bad keyboard layouts...seems to be the
13641         same thing rewind does.
13643 2005-04-27  Jackson Harper  <jackson@ximian.com>
13645         * BindingManagerBase.cs: Attach the current/position changed
13646         handlers to their respective events.
13648 2005-04-27  Jackson Harper  <jackson@ximian.com>
13650         * Control.cs: Make sure that the first WM_PAINT does a full draw,
13651         not just a blit.
13652         * ThemeWin32Classic.cs: Don't fill the background for picture
13653         boxes. This could overright user drawing.
13654         * ComboBox.cs: Just fill the clipping rect not the entire client
13655         rect when drawing the background. This prevents pieces of the
13656         image buffer from getting overwritten and is theoretically faster.
13658 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
13660         * ComboBox.cs: Databinding support fixes, fire missing events
13661         * ListControl.cs: implement missing methods and properties, fixes
13662         * ThemeWin32Classic.cs: Databiding support on Drawing
13663         * CheckedListBox.cs: Databinding support fixes, fire missing events
13664         * ListBox.cs: Databinding support fixes, fire missing events
13665         
13666 2005-04-25  Peter Bartok  <pbartok@novell.com>
13668         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
13670 2005-04-25  Jackson Harper  <jackson@ximian.com>
13672         * TreeView.cs: Use the horizontal scrollbars height not width when
13673         determining how much of the client area is available.
13675 2005-04-25  Jackson Harper  <jackson@ximian.com>
13677         * Control.cs: Double buffering is handled differently now. As per
13678         the spec, the extra buffer is created in the WM_PAINT message and
13679         passed down to the control's drawing code.
13680         * GroupBox.cs:
13681         * Label.cs:
13682         * CheckBox.cs:
13683         * ProgressBar.cs:
13684         * RadioButton.cs:
13685         * ColorDialog.cs:
13686         * ComboBox.cs:
13687         * PropertyGridView.cs:
13688         * UpDownBase.cs:
13689         * MessageBox.cs:
13690         * MenuAPI.cs:
13691         * ListView.cs:
13692         * ButtonBase.cs:
13693         * SizeGrip.cs:
13694         * ScrollBar.cs:
13695         * ListBox.cs:
13696         * TrackBar.cs:
13697         * ToolBar.cs:
13698         * PictureBox.cs:
13699         * DateTimePicker.cs:
13700         * StatusBar.cs:
13701         * TreeView.cs: Update to new double buffering system.
13702         * MonthCalendar.cs: Uncomment block, as Capture is now
13703         working. Update to new double buffering
13704         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
13705         * PaintEventArgs.cs: New internal method allows us to set the
13706         graphics object. This is used for double buffering.
13707         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
13708         rectangle. The internal paint_area var has been removed from
13709         StatusBar. The clipping rect should be used instead.
13710         * Theme.cs: Give the PictureBox drawing method a clipping rect.
13711         * TabPage.cs: The RefreshTabs method was removed, so just call the
13712         tab controls Refresh method now.
13713         * TabControl.cs: Update to new double buffering. Make sure the
13714         handle is created before sizing the tab pages, otherwise we will
13715         get stuck in a loop.
13717 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
13719         * LinkLabel.cs: Fix typo, bug #74719; patch
13720           from Borja Sanchez Zamorano
13722 2005-04-22  Jackson Harper  <jackson@ximian.com>
13724         * TreeNode.cs: Implement Handle stuff.
13725         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
13727 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
13729         * DataGridTextBoxColumn.cs: call base constructors, fixes
13730         * GridColumnStylesCollection.cs: missing events, methods, and functionality
13731         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
13732         * DataGridTableStyle.cs: implements create default column styles
13733         * DataGridBoolColumn.cs: which types can handle
13734         * DataGrid.cs: missing methods, fixes, new functionality
13735         * DataGridColumnStyle.cs: fixes
13737 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
13738         * FolderBrowserDialog.cs:
13739         - Use a thread to fill the TreeView
13740         - Adjusted some sizes
13742 2005-04-19  Peter Bartok  <pbartok@novell.com>
13744         * LinkLabel.cs: (Re-)create the pieces when setting the Text
13745           property. Fixes #74360.
13747 2005-04-19  Jackson Harper  <jackson@ximian.com>
13749         * XEventQueue.cs: Lock when getting the lockqueue size.
13750         * PictureBox.cs: Call base OnPaint
13751         
13752 2005-04-19  Peter Bartok  <pbartok@novell.com>
13754         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
13755           messages were no longer being processed (this broke BeginInvoke)
13757           
13758 2005-04-18  Jackson Harper  <jackson@ximian.com>
13760         * TreeView.cs: buglet that caused node images to get drawn
13761         regardless of whether or not they were in the clipping rectangle.
13763 2005-04-18  Jackson Harper  <jackson@ximian.com>
13765         * CurrencyManager.cs: There are four rules for GetItemProperties:
13766         - If the type is an array use the element type of the array
13767         - If the type is a typed list, use the type
13768         - If the list contains an Item property that is not an object, use
13769         that property
13770         - use the first element of the list if there are any elements in
13771         the list.
13772         
13773 2005-04-17  Jackson Harper  <jackson@ximian.oom>
13775         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
13776         click. This handles offsets for scrolling properly and reduces
13777         memory. Also fixed GetNode to not offset now that TopNode works
13778         properly.
13779         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
13780         
13781 2005-04-17  Jackson Harper  <jackson@ximian.com>
13783         * CursorConverter.cs: Initial implementation.
13785 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
13787         * ListControl.cs: work towards complex data binding support on ListControl
13788         * CurrencyManager.cs: work towards complex data binding support on ListControl
13789         * ListBox.cs: work towards complex data binding support on ListControl
13792 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
13794         * GridTableStylesCollection.cs: fixes name and constructor
13795         * DataGridTableStyle.cs: fixes
13796         * DataGridBoolColumn.cs: fixes names and constructors
13797         * DataGrid.cs: define methods and properties. Some init implementations
13798         * DataGridCell.cs: define methods and properties. Some init implementations
13799         * GridTablesFactory.cs: Define methods and properties
13801 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
13803         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
13804         graphics port changes.  We still want the coordinates in global screen
13805         coordinates.
13807 2005-04-14  Jackson Harper  <jackson@ximian.com>
13809         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
13810         check plus minus or checkbox clicks unless those features are enabled.
13812 2005-04-14  Jackson Harper  <jackson@ximian.com>
13814         * TreeView.cs: Add methods for setting the top and bottom visible
13815         nodes. TreeNode::EnsureVisible uses these methods.
13816         * TreeNode.cs: Implement EnsureVisible
13818 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
13820         * Form.cs: Pospone menu assignation if the window has not been created yet
13821         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
13822         size and position
13824 2005-04-12  Jackson Harper  <jackson@ximian.com>
13826         * TreeView.cs: Set the TopNode properly when scrolling
13827         occurs. This has the added benifit of reducing the amount of
13828         walking that needs to be done when drawing. Also removed an old
13829         misleading TODO.
13830         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
13831         
13832 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
13834         * Timer.cs: fixes interval setting when the timer is already enabled
13835         
13836 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
13838         * FolderBrowserDialog.cs: First approach
13840 2005-04-09  Peter Bartok  <pbartok@novell.com>
13842         * FolderBrowserDialog: Added
13844 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
13846         * LinkLabel.cs: move drawing code into the theme
13847         * ThemeWin32Classic.cs: drawing code and painting background bugfix
13848         * Theme.cs: define DrawLinkLabel method
13850 2005-04-05  Jackson Harper  <jackson@ximian.com>
13852         * BindingContext.cs: Use weak references so these bad actors don't
13853         stay alive longer then they need to.
13855 2005-04-05  Jackson Harper  <jackson@ximian.com>
13857         * ListControl.cs: Basic implementation of complex databinding.
13858         * ComboBox.cs:
13859         * ListBox.cs: Add calls to ListControl databinding methods.
13861 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
13863         * FileDialog.cs:
13864           - Don't change PopupButtonState to Normal when the
13865             PopupButton gets pressed several times.
13866           - Renamed ButtonPanel to PopupButtonPanel
13868 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
13870         * ColorDialog.cs: Use cached objects instead of creating them
13871         * LinkLabel.cs: Use cached objects instead of creating them
13872         * Splitter.cs: Use cached objects instead of creating them
13873         * FontDialog.cs: Use cached objects instead of creating them
13874         * PropertyGridView.cs: Use cached objects instead of creating them
13875         * MessageBox.cs: Use cached objects instead of creating them
13876         * FileDialog.cs: Use cached objects instead of creating them
13877         * ThemeWin32Classic.cs: Use cached objects instead of creating them
13878         * TreeView.cs: Use cached objects instead of creating them
13879         
13880 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
13882         * Control.cs: use Equals to compare the font since no == op
13883         * ScrollBar.cs: use Equals to compare the font since no == op
13885 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
13887         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
13889 2005-04-01  Jackson Harper  <jackson@ximian.com>
13891         * Binding.cs: Implement IsBinding.
13892         * BindingManagerBase.cs:
13893         * PropertyManager.cs:
13894         * CurrencyManager.cs: Add IsSuspended property.
13896 2005-04-01  Jackson Harper  <jackson@ximian.com>
13898         * Binding.cs: Had some IsAssignableFrom calls backwards.
13900 2005-04-01  Jackson Harper  <jackson@ximian.com>
13902         * Binding.cs: Handle null data members when pulling data.
13903         * PropertyManager.cs: Handle the data member being a property that
13904         does not exist.
13906 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
13908         * DataGridTextBoxColumn.cs: fixes signature
13909         * DataGrid.cs: calls right constructor
13911 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
13913         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
13914         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
13915         * GridTableStylesCollection.cs: implements GridTableStylesCollection
13916         * DataGridTableStyle.cs: implements DataGridTableStyle
13917         * DataGridBoolColumn.cs: implements DataGridBoolColumn
13918         * DataGridTextBox.cs: implements DataGridTextBox
13919         * DataGridColumnStyle.cs: implements DataGridColumnStyle
13921 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
13923         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
13925 2005-03-29  Peter Bartok  <pbartok@novell.com>
13927         * Application.cs:
13928           - Properly implemented CompanyName property
13929           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
13930             returns a path that includes CompanyName, ProductName and
13931             Version (fixes bug #70330)
13933 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
13935         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
13936           fixes bug #72588.
13938 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
13940         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
13941         
13942           - Added ReadOnly CheckBox
13943           - Further refactoring: moved some code from Open-/SaveFileDialog
13944             to FileDialog
13946 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
13948         * OpenFileDialog.cs: Fixed CheckFileExists
13949         * FileDialog.cs:
13950           Moved FileView and DirComboBox outside FileDialog class.
13951           They can now be used outside FileDialog
13953 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
13955         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
13956         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
13958 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
13960         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
13961           - Added missing CreatePrompt property in SaveDialog
13962           - Overall SaveDialog handling should be better now
13963           - Added non standard ShowHiddenFiles property
13964           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
13965           - Added InitialDirectory and RestoreDirectory support
13967 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
13969         * FileDialog.cs: Made dirComboBox usable
13971 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
13973         * FileDialog.cs: Added Filter support (case sensitiv)
13975 2005-03-24  Jackson Harper  <jackson@ximian.com>
13977         * TabControl.cs: Need a couple more pixels for the lines.
13979 2005-03-23  Jackson Harper  <jackson@ximian.com>
13981         * TabControl.cs: Give the tab page focus when it is selected.
13983 2005-03-23  Jackson Harper  <jackson@ximian.com>
13985         * TabControl.cs: Account for the drawing of tabs borders when
13986         invalidating. If the slider was clicked dont do click detection on
13987         the tabs.
13989 2005-03-23  Jackson Harper  <jackson@ximian.com>
13991         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
13993 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
13995         * CategoryGridEntry.cs: Added
13996         * GridItem.cs: Added helper properties
13997         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
13998         * GridEntry.cs: Updated code for collection
13999         * PropertyGrid.cs: Cleaned up some formatting
14000         * PropertyGridView.cs: Added drop down functionality for enums.
14001         * GridItemCollection.cs: Added enumerator logic
14002         * PropertyGridEntry.cs: Added
14004 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
14006         * FileDialog.cs:
14007           - Removed unnecessary commented code
14008           - Fixed handling for entering the filename manually in the combobox
14010 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
14012         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
14014 2005-03-18  Peter Bartok  <pbartok@novell.com>
14016         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
14017           them being touching the border
14019 2005-03-18  Peter Bartok  <pbartok@novell.com>
14021         * TextControl.cs: Quick hack to center text better
14023 2005-03-18  Peter Bartok  <pbartok@novell.com>
14025         * ControlPaint.cs:
14026           - Don't throw NotImplemented exceptions, just print a notice once
14027             instead (requested by Miguel). This makes running existing SWF
14028             apps a bit easier
14029         * Control.cs:
14030           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
14031           - Added context menu trigger on right click
14032         * Panel.cs: Trigger invalidate on resize
14033         * StatusBar.cs:
14034           - Removed old double-buffer drawing
14035           - Added ResizeRedraw style to force proper update of statusbar
14036         * ListView.cs:
14037           - Removed debug output
14038         * ThemeWin32Classic.cs:
14039           - Fixed drawing of status bar, now draws Text property if there
14040             are no defined panels
14042 2005-03-18  Jackson Harper  <jackson@ximian.com>
14044         * ImageList.cs: When the image stream is set pull all the images
14045         from it.
14046         * ImageListStreamer.cs: Implement reading image list streams.
14048 2005-03-18  Peter Bartok  <pbartok@novell.com>
14050         * ThemeWin32Classic.cs (DrawPictureBox):
14051           - Fixed calculations for centered drawing
14052           - Fixed drawing for normal mode, not scaling the image on normal
14054 2005-03-18  Peter Bartok  <pbartok@novell.com>
14056         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
14057           textbox
14058         * FileDialog.cs:
14059           - Made Open/Save button the accept button for FileDialog
14060           - Tied the cancel button to the IButtonControl cancel button
14061           - Save/Open now properly builds the pathname
14062           - Now handles user-entered text
14063           - Preventing crash on right-click if no item is selected
14064           - Fixed Text property, now uses contents of textbox
14065           - Fixed SelectedText property, now just returns the text part that
14066             is selected in the text box
14068 2005-03-18  Jackson Harper  <jackson@ximian.com>
14070         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
14071         rect, make sure to de-adjust the interior rect after drawing the
14072         tab text.
14074 2005-03-18  Peter Bartok  <pbartok@novell.com>
14076         * MenuAPI.cs: Remove menu *before* executing selected action to
14077           prevent the menu from 'hanging around'
14078           
14079 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
14081         * XplatUIOSX.cs: Implemented WorkingArea property
14083 2005-03-17  Peter Bartok  <pbartok@novell.com>
14085         * XplatUIX11.cs: Fixed menu coord calculations
14086         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
14087           for calculating offsets
14089 2005-03-17  Peter Bartok  <pbartok@novell.com>
14091         * Hwnd.cs: Do not consider menu presence for default client
14092           rectangle location/size
14093         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
14094           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
14095           translation functions
14096         * FileDialog.cs: Fixed (what I presume is a) typo
14098 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
14100         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
14101           X access (avoids X-Async errors)
14103 2005-03-16  Jackson Harper  <jackson@ximian.com>
14105         * TabControl.cs: Raise the SelectedIndexChanged event.
14107 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
14109         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
14110           - Removed vertical ToolBar and replaced it with a custom panel
14111             (desktop and home button already work)
14112           - Added Help button (some controls get resized or relocated then)
14113           - Draw correct text depending on Open or Save.
14114           - Fixed some typos...
14116 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
14118         * ScrollBar.cs:
14119           - Only change Maximum and Minimum when need it (bug fix)
14121 2005-03-15  Peter Bartok  <pbartok@novell.com>
14123         * Form.cs: Use Handle for icon, to trigger creation if
14124           the window does not yet exist
14125         * Control.cs:
14126           - CanSelect: Slight performance improvement
14127           - Focus(): Preventing possible recursion
14128           - Invalidate(): Removed ControlStyle based clear flag setting
14129           - WM_PAINT: fixed logic for calling OnPaintBackground
14130           - WM_ERASEBKGND: Fixed logic, added call to new driver method
14131             EraseWindowBackground if the control doesn't paint background
14132         * XplatUIWin32.cs:
14133           - Moved EraseWindowBackground() method to internal methods
14134           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
14135             is sent via SendMessage on BeginPaint call on Win32
14136         * XplatUIX11.cs:
14137           - Added EraseWindowBackground() method
14138           - No longer sends WM_ERASEBKGND on .Expose, but on call to
14139             PaintEventStart, which more closely matches Win32 behaviour
14140           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
14141           - Fixed SetFocus() to properly deal with client and whole windows
14142         * Hwnd.cs: Added ErasePending property
14143         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
14144         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
14146 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
14148         * XplatUIOSX.cs:
14149           - Fix hard loop when timers exist.
14150           - Fix bugs with middle and right click for 3 button mice.
14152 2005-03-11  Peter Bartok  <pbartok@novell.com>
14154         * XplatUIX11.cs:
14155           - get_WorkingArea: Need to call X directly, GetWindowPos only
14156             returns cached data now
14157           - Added sanity check to GetWindowPos hwnd usage
14159 2005-03-11  Jackson Harper  <jackson@ximian.com>
14161         * BindingManagerBase.cs: This method isn't used anymore as
14162         PullData now updates the data in the control.
14164 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
14166         * Form.cs: fixes menu drawing on X11
14167         * MenuAPI.cs:  fixes menu drawing on X11
14169 2005-03-11  Peter Bartok  <pbartok@novell.com>
14171         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
14172           from Jonathan Gilbert; should fix bug #73606
14173         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
14174           in Screen coordinates. Thanks, Jordi.
14175         * Form.cs: Added missing attribute
14177 2005-03-11  Peter Bartok  <pbartok@novell.com>
14179         * Form.cs:
14180           - Rudimentary Mdi support
14181           - Removed outdated FormParent code
14182           - Implemented lots of missing properties and methods, still missing
14183             transparency support
14184           - Added missing attributes
14185           - Implemented support for MaximumBounds
14186           - Added firing of various events
14187         * XplatUI.cs: Added SetIcon() method
14188         * XplatUIDriver.cs: Added SetIcon() abstract
14189         * XplatUIOSX.cs: Stubbed out SetIcon() method
14190         * XplatUIX11.cs:
14191           - Implemented SetIcon() support
14192           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
14193           - Switched to unix line endings
14194         * XplatUIWin32.cs:
14195           - Made POINT internal so for can access it as part of MINMAX
14196           - Implemented SetIcon() support
14197           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
14198             native Mdi support again, might have to go managed)
14199         * Control.cs: Now fires the StyleChanged event
14200         * MdiClient.cs: Added; still mostly empty
14202 2005-03-10  Peter Bartok  <pbartok@novell.com>
14204         * SaveFileDialog.cs: Added emtpy file
14206 2005-03-08  Peter Bartok  <pbartok@novell.com>
14208         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
14209           in turn triggers OnCreateContro) when creating a handle for the
14210           first time.
14211         * TextControl.cs: Fixed endless loop in certain cases when
14212           replacing the current selection
14214 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
14216         * ScrollBar.cs:
14217           - Honors NewValue changes in Scroll events allowing apps to change it
14218           - Adds First and Last Scroll events
14219           - Fixes Thumb events
14221 2005-03-07  Peter Bartok  <pbartok@novell.com>
14223         * Hwnd.cs: Added DefaultClientRectangle property
14224         * XplatUI.cs: Now using the X11 driver Where() method, which provides
14225           more detailed debug information
14226         * XplatUIX11.cs:
14227           - Fixed size-change feedback loop, where we would pull an old size
14228             off the queue and mistakenly change our window's size to an
14229             earlier value
14230           - Now compressing ConfigureNotify events, to reduce looping and
14231             redraw issues
14232         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
14233           is called
14235 2005-03-07  Jackson Harper  <jackson@ximian.com>
14237         * Binding.cs: Push data pushes from data -> property. Check if the
14238         property is readonly when attempting to set it.
14240 2005-03-07  Jackson Harper  <jackson@ximian.com>
14242         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
14243         instead of IsSubclassOf. Pulling data now sets the value on the
14244         control.
14245         * PropertyManager.cs:
14246         * CurrencyManager.cs: Just need to pull data when updating now,
14247         because PullData will set the value on the control.
14249 2005-03-04  Jackson Harper  <jackson@ximian.com>
14251         * Binding.cs: Implement data type parsing and converting on pulled
14252         data. TODO: Are there more ways the data can be converted?
14254 2005-03-04  Jackson Harper  <jackson@ximian.com>
14256         * Binding.cs: Support <Property>IsNull checks. Also bind to the
14257         controls Validating method so we can repull the data when the
14258         control loses focus.
14260 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
14262         * ColumnHeader.cs:
14263           - Fixes null string format
14264           
14265         * ListView.cs:
14266           - Adds enum type checks
14267           - Fixes redrawing and recalc need after changing some properties
14268           - Fixes on focus_item set after the event
14269           - Fixes adding columns after the control has been created
14270           
14271         * ThemeWin32Classic.cs:
14272           - Fixes CheckBox focus rectangle
14273           - Fixes ColumnHeader drawing
14276 2005-03-03  Jackson Harper  <jackson@ximian.com>
14278         * Binding.cs: Bind to <Property>Changed events so we can detect
14279         when properties are changed and update the data.
14281 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
14283         * ImageList.cs:
14284           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
14285           - Fixes ImageList constructor with ImageList container
14286           - Fixes image scaling (wrong parameters at DrawImage)
14288 2005-02-02  Jackson Harper  <jackson@ximian.com>
14290         * Binding.cs: Make property searches case-insensitive. Eliminate
14291         some duplicated code.
14293 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
14295         * ComboBox.cs:
14296                 - Handle focus event
14297                 - Fix scrollbar events
14298                 - Discard highlighted item if remove it
14299                 - Fixes SelectedItem with strings
14301 2005-03-01  Peter Bartok  <pbartok@novell.com>
14303         * Control.cs:
14304           - Fixed Visible property, now follows (once again) parent chain
14305             to return false if any control in the chain is visible=false
14306           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
14307           - Fixed several places where is_visible instead of Visible was used
14308           - Implemented FIXME related to focus selection when setting focused
14309             control to be invisible
14311         * XplatUIWin32.cs: Now using proper method to find out if window is
14312           visible. Thanks to Jordi for pointing it out
14314 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
14316         * ComboBox.cs: show/hide scrollbar instead of creating it
14318 2005-02-27  Jackson Harper  <jackson@ximian.com>
14320         * CurrencyManager.cs: Add PositionChanged stuff.
14322 2005-02-27  Peter Bartok  <pbartok@novell.com>
14324         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
14325         * XplatUIOSX.cs: Added GetMenuOrigin() stub
14326         * XplatUIWin32.cs: Implemented GetMenuOrigin()
14327         * XplatUIX11.cs:
14328           - Implemented GetMenuDC()
14329           - Implemented GetMenuOrigin()
14330           - Implemented ReleaseMenuDC()
14331           - Implemented generation of WM_NCPAINT message
14332           - Implemented generation and handling of WM_NCCALCSIZE message
14333         * Form.cs: Added debug helper message for Jordi's menu work
14334         * Hwnd.cs:
14335           - Modified ClientRect property; added setter, fixed getter to handle
14336             setting of ClientRect
14337           - Added MenuOrigin property
14339 2005-02-26  Peter Bartok  <pbartok@novell.com>
14341         * XplatUIX11.cs:
14342           - Destroys the caret if a window that's being destroyed contains it
14343           - Ignores expose events coming from the X11 queue for windows that
14344             already are destroyed
14345           - Now uses the proper variable for handling DestroyNotify, before we
14346             marked the wrong window as destroyed
14347           - Improved/added some debug output
14349 2005-02-26  Peter Bartok  <pbartok@novell.com>
14351         * X11Keyboard.cs: Fixes to work on 64bit systems
14353 2005-02-26  Peter Bartok  <pbartok@novell.com>
14355         * Control.cs:
14356           - Now calling OnHandleDestroyed from DestroyHandle()
14357             instead of Dispose()
14358           - Removed bogus call to controls.Remove() from DestroyHandle()
14360 2005-02-26  Peter Bartok  <pbartok@novell.com>
14362         * Control.cs: Properly destroy child windows when our handle is
14363           destroyed
14365 2005-02-25  Peter Bartok  <pbartok@novell.com>
14367         * XplatUI.cs:
14368           - Added 'DriverDebug' define to allow tracing XplatUI API calls
14369           - Alphabetized Static Methods and Subclasses
14371         * XplatUIX11.cs:
14372           - Added XException class to allow custom handling of X11 exceptions
14373           - Created custom X11 error handler, tied into XException class
14374           - Added support for MONO_XEXCEPTIONS env var to allow the user
14375             to either throw an exception on X errors or continue running
14376             after displaying the error
14377           - Added handling of DestroyNotify message
14378           - Added handler for CreateNotify message (still disabled)
14379           - Improved (tried to at least) Where method to provide file and lineno
14380         * X11Structs.cs:
14381           - Added XErrorHandler delegate
14382           - Added XRequest enumeration (to suppor translation of errors)
14384 2005-02-25  Jackson Harper  <jackson@ximian.com>
14386         * PropertyManager.cs: Implement editing features
14387         * CurrencyManager.cs:
14388         * Binding.cs: First attempt at UpdateIsBinding
14389         * BindingManagerBase.cs: Call UpdateIsBinding before
14390         pushing/pulling data.
14392 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
14394         * MenuAPI.cs: Respect disabled items
14395         * ThemeWin32Classic.cs
14396                 - Caches ImageAttributes creation for DrawImageDisabled
14397                 - Fixes vertical menu line drawing
14398                 - Draws disabled arrows in disable menu items
14400 2005-02-24  Peter Bartok  <pbartok@novell.com>
14402         * Hwnd.cs:
14403           - Added UserData property to allow associating arbitrary objects
14404             with the handle
14405           - Fixed leak; now removing Hwnd references from static windows array
14406         * XplatUIWin32.cs:
14407           - Fixed Graphics leak in PaintEventEnd
14408           - Removed usage of HandleData, switched over to Hwnd class
14409         * HandleData.cs: Removed, obsoleted by Hwnd.cs
14411 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
14413         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
14414         * ScrollBar.cs: Fixes bug
14415         * TrackBar.cs: removes death code, clipping, mimize refreshes,
14416          keyboard navigation enhancements
14418 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
14420         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
14421         * GroupBox.cs: Add control styles
14422         * Label.cs: Add control styles
14423         * UpDownBase.cs: Add control styles
14424         * ListBox.cs: Add control styles
14425         * XplatUIWin32.cs: Fixes wrong parameter order
14428 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
14430         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
14432 2005-02-23  Jackson Harper  <jackson@ximian.com>
14434         * PropertyManager.cs: Implement property binding. This doesn't
14435         seem to work yet though as (I think) there are some bugs in
14436         System.ComponentModel.PropertyDescriptor.
14437         * BindingContext.cs: Use new PropertyManager constructor.
14439 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
14441         * ProgressBar.cs: use clip region in ProgressBar
14442         * ThemeWin32Classic.cs: use clip region in ProgressBar
14444 2004-02-22  Jackson Harper  <jackson@ximian.com>
14446         * BindingsCollection.cs: Remove some debug code.
14448 2005-02-22  Jackson Harper  <jackson@ximian.com>
14450         * BindingContext.cs:
14451         * ControlBindingsCollection.cs:
14452         * CurrencyManager.cs:
14453         * Binding.cs:
14454         * BindingManagerBase.cs: Initial implementation
14455         * BindingsCollection.cs: Add an internal contains method that the
14456         BindingManagerBase uses to ensure bindings aren't added twice to
14457         the collection.
14458         * PropertyManager.cs: Stubbed out.
14459         * Control.cs:
14460         * ContainerControl.cs: Hook up databinding
14461         
14462 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
14464         * XplatUIOSX.cs:
14465           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
14466           Fixed Invalidate/Update chain.
14467           Fixed tons of other minor bugs (this is almost a complete rewrite).
14469 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
14471         * ComboBox.cs: do subcontrol creation when the control is created
14473 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
14475         * Label.cs: fixes image drawing (image and imagelist)
14476         * ThemeWin32Classic.cs: cache brushes
14477         
14478 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
14480         * Form.cs: Move menu drawing code to Theme class
14481         * ComboBox.cs: Move ComboBox drawing code to Theme class
14482         * MenuItem.cs: Move menu drawing code to Theme class
14483         * MenuAPI.cs: Move menu drawing code to Theme class
14484         * ThemeWin32Classic.cs: New methods
14485         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
14486         * ListBox.cs: Move Listbox drawing code to Theme class
14487         * Theme.cs: New methods
14489 2005-02-20  Peter Bartok  <pbartok@novell.com>
14491         * Control.cs:
14492           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
14493             only process mnemonics on those)
14494           - Fixed event sequence for key handling; first calling
14495             ProcessKeyEventArgs now
14496         * TextBoxBase.cs:
14497           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
14498             for processing non-character keys
14499           - Fixed WM_CHAR to generate proper event sequence before processing
14500         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
14501           generation
14503 2005-02-19  Peter Bartok  <pbartok@novell.com>
14505         * UserControl.cs: Added TextChanged event; added attributes
14506         * SizeGrip.cs: Implemented resizing and optional display of grip
14507         * Form.cs: Fixed attribute
14508         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
14509           Changed meaning of ScrollWindow bool argument; instead of the
14510           clear attribute (which will be true usually anyway), it gives the
14511           option of moving child controls as well.
14512         * XplatUIX11.cs:
14513           - Changed to match new ScrollWindow argument
14514           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
14515             now handles the implicit parent window a WM puts around us
14516         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
14517           to work)
14518         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
14519         * TreeView.cs: Adjusted to new ScrollWindow arguments
14521 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
14523         * Form.cs: Menu integration with non-client area
14524         * MenuItem.cs: Menu integration with non-client area
14525         * MenuAPI.cs: Menu integration with non-client area
14527 2005-02-18  Peter Bartok  <pbartok@novell.com>
14529         * MethodInvoker.cs: Added
14530         * MdiLayout.cs: Added
14531         * SendKeys.cs: Started implementation
14532         * ErrorIconAlignment.cs: Added
14534 2005-02-18  Peter Bartok  <pbartok@novell.com>
14536         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
14537         * Form.cs: Added handling for Menu-related Non-client messages
14539 2005-02-17  Peter Bartok  <pbartok@novell.com>
14541         * UpDownBase.cs: Fixed typo, compilation errors
14542         * DomainUpDown.cs: Fixed attribute value
14544 2005-02-16  Miguel de Icaza  <miguel@novell.com>
14546         * UpDownBase.cs: Attach entry events.
14547         Propagate events.
14548         Add ForeColor property, Focused, InterceptArrowKeys (interception
14549         does not work yet).
14551 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
14553         * Form.cs:
14554                 - Redraw non client are on Setmenu
14555                 - Calc proper menu starting point
14557 2005-02-17  Peter Bartok  <pbartok@novell.com>
14559         * Application.cs: Fixed message_filter check
14561 2005-02-17  Peter Bartok  <pbartok@novell.com>
14563         * Application.cs: Now calls registered message filters
14564         * DockStyle.cs: Fixed attribute
14565         * Form.cs: Fixed attribute
14566         * Menu.cs: Fixed attribute
14567         * ToolTip.cs: Fixed attribute
14568         * TreeNode.cs: Added missing attributes and arranged in regions
14569         * PropertyGrid.cs: Fixed signatures
14570         * TreeNodeCollection.cs: Added attributes
14571         * Splitter.cs: Added missing attributes; arranged into regions
14572         * TabPage.cs: Added missing attributes; arranged into regions
14573         * TextBoxBase.cs: Added missing attributes
14574         * TextBox.cs: Added missing attributes
14575         * ArrangeDirection.cs: Added missing attributes
14576         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
14577         * ToolBarButton.cs: Fixed attributes
14578         * AnchorStyles.cs: Fixed attribute
14579         * TrackBar.cs: Fixed attributes
14580         * TabControl.cs: Added missing attributes and arranged into regions
14581         * ToolBar.cs: Fixed attribute
14582         * StatusBar.cs: Fixed signature, organized into regions and added
14583           attributes
14584         * StatusBarPanel.cs: Fixed attributes
14585         * ContentsResizedEventArgs.cs: Implemented
14586         * ContentsResizedEventHandler.cs: Implemented
14587         * DateBoldEventArgs.cs: Implemented
14588         * DateBoldEventHandler.cs: Implemented
14589         * UpDownEventArgs.cs: Implemented
14590         * UpDownEventHandler.cs: Implemented
14591         
14592 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
14594         * Form.cs: first Menu NC refactoring
14595         * MenuAPI.cs: first Menu NC refactoring
14596         
14597 2005-02-16  Peter Bartok  <pbartok@novell.com>
14599         * ImeMode.cs: Added missing attributes
14600         * Menu.cs: Fixed attribute
14601         * GroupBox.cs: Fixed attribute
14602         * Label.cs: Fixed attribute
14603         * ColorDialog.cs (RunDialog): Removed TODO attribute
14604         * ComboBox.cs: Fixed attributes
14605         * ListControl.cs: Added missing attributes
14606         * PropertyGrid.cs: Fixed attributes
14607         * Control.cs: Fixed attributes
14608         * ListViewItem.cs: Added TypeConverter attribute
14609         * NotifyIcon.cs: Fixed attributes
14610         * ListView.cs: Fixed attributes
14611         * ButtonBase.cs: Fixed attribute
14612         * ImageList.cs: Added missing attributes
14613         * ContainerControl.cs: Fixed signature
14614         * CheckedListBox.cs: Fixed attribute; added missing attributes
14615         * Panel.cs: Fixed attributes
14616         * PropertyTabChangedEventArgs.cs: Added missing attribute
14617         * PropertyValueChangedEventArgs.cs: Added missing attribute
14618         * Binding.cs: Fixed attribute
14619         * ListViewItemConverter: Implemented ListViewSubItemConverter class
14620         * ListBox.cs: Fixed attribute; added missing attributes;
14621         * ScrollableControl.cs: Added missing attributes
14622         * PictureBox.cs: Added missing attributes; implemented missing property
14623         * DateTimePicker.cs: Added missing attributes
14624         * Theme.cs (ToolWindowCaptionHeight): Fixed type
14625         * MonthCalendar.cs: Fixed attributes
14626         * StatusBarPanel.cs: Added missing attributes
14627         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
14629 2005-02-16  Peter Bartok  <pbartok@novell.com>
14631         * TextBoxBase.cs: The previous method to enforce height yet remember
14632           the requested high was less than ideal, this is an attempt to do
14633           it better.
14634         * Control.cs: Added comment about possible problem
14635         * Copyright: Updated format
14636         * GridItemType.cs: Fixed swapped values
14638 2005-02-15  Jackson Harper  <jackson@ximian.com>
14640         * BaseCollection.cs: Use property so we never access an
14641         uninitialized list. Also initialize the list in the property.
14643 2005-02-15  Peter Bartok  <pbartok@novell.com>
14645         * GroupBox.cs (ProcessMnemonic): Implemented
14646         * Label.cs (ProcessMnemonic): Implemented
14647         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
14648           hotkeys
14650 2005-02-15  Peter Bartok  <pbartok@novell.com>
14652         * RadioButton.cs (ProcessMnemonic): Implemented
14653         * CheckBox.cs (ProcessMnemonic): Implemented
14654         * Control.cs:
14655           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
14656             handling
14657           - Added internal method to allow calling ProcessMnemonic from other
14658             controls
14659         * ContainerControl.cs:
14660           - Started support for handling validation chain handling
14661           - Implemented ProcessMnemonic support
14662           - Added Select() call to Active, to make sure the active control
14663             receives focus
14664         * Form.cs: Setting toplevel flag for Forms (this was lost in the
14665           FormParent rewrite)
14666         * ThemeWin32Classic.cs:
14667           - DrawCheckBox(): Fixed stringformat to show hotkeys
14668           - DrawRadioButton(): Fixed stringformat to show hotkeys
14669         * CommonDialog.cs: Removed WndProc override, not needed
14671 2005-02-14  Peter Bartok  <pbartok@novell.com>
14673         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
14674           missed those in the rewrite
14676 2005-02-14  Miguel de Icaza  <miguel@novell.com>
14678         * NumericUpDown.cs (Increment, ToString): Add.
14679         (DecimalPlaces): implement.
14680         
14681         Add attributes.
14682         
14683         * UpDownBase.cs: Add the designer attributes.
14685 2005-02-13  Peter Bartok  <pbartok@novell.com>
14687         * Panel.cs: Removed border_style, now in Control
14688         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
14689           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
14691 2005-02-13  Peter Bartok  <pbartok@novell.com>
14693         * MouseButtons.cs: Added missing attributes
14694         * XplatUIStructs.cs: Added enumeration for title styles
14695         * LeftRightAlignment.cs: Added missing attributes
14696         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
14697           it compatible with Graphics.FromHwnd()
14698         * SelectedGridItemChangedEventArgs.cs: Fixed property type
14699         * Keys.cs: Added missing attributes
14700         * SelectionRange.cs: Added missing attributes
14701         * SelectionRangeConverter.cs: Added
14702         * XplatUI.cs:
14703           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
14704             ReleaseMenuDC methods
14705           - Renamed ReleaseWindow to UngrabWindow
14706           - Added proper startup notice to allow version identification
14707         * Form.cs:
14708           - Added missing attributes
14709           - Removed FormParent concept
14710         * Label.cs: Removed border_style field, now in Control
14711         * RadioButton.cs: Now properly selects RadioButton when focus is
14712           received
14713         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
14714         * Control.cs:
14715           - Added missing attributes
14716           - Added borderstyle handling
14717           - Removed FormParent concept support
14718           - Fixed calls to XplatUI to match changed APIs
14719           - Fixed bug that would case us to use disposed Graphics objects
14720           - Removed unneeded internal methods
14721           - PerformLayout(): Fixed to handle DockStyle.Fill properly
14722           - SelectNextControl(): Fixed to properly check common parents
14723         * TextBoxBase.cs: Removed border_style field (now in Control)
14724         * MessageBox.cs:
14725           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
14726             fixed calculations for form size
14727           - Added support for localized strings and icons
14728           - Improved form size calculations, added border
14729         * ListView.cs: Removed border_style field (now in Control)
14730         * X11Structs.cs: Moved several structs from X11 driver here
14731         * X11Keyboard.cs: Changed debug message
14732         * Application.cs: Removed FormParent concept support
14733         * CommonDialog.cs:
14734           - Resetting end_modal flag
14735           - Removed FormParent concept support
14736         * NativeWindow.cs: Removed FormParent concept support
14737         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
14738           Client area and Non-Client whole window to allow support for WM_NC
14739           messages
14740         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
14741           prevent using it until it supports Hwnd as per Geoff Norton's request
14742         * ToolBar.cs: Fixed drawing, was not doing proper drawing
14743         * PictureBox.cs: Removed border_style field, now in Control
14744         * XplatUIWin32.cs: Added new driver methods
14746 2005-02-12  Peter Bartok  <pbartok@novell.com>
14748         * OpacityConverter.cs: Implemented
14749         * Hwnd.cs: Internal class to support drivers that need to emulate
14750           client area/non-client area window behaviour
14752 2005-02-11  Peter Bartok  <pbartok@novell.com>
14754         * KeysConverter.cs: Implemented
14756 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
14758         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
14759         * LinkLabel: Added missing attributes
14760         * MainMenu.cs: fixes ToString
14761         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
14762         * ListBox.cs: fixes event position
14763         * TrackBar.cs: adds missing attributes and events
14764         
14765 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
14767         * MenuItem.cs: Use SystemInformation and bug fixes
14768         * MenuAPI.cs: Use SystemInformation and bug fixes
14770 2005-02-09  Jackson Harper  <jackson@ximian.com>
14772         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
14773         their keystate otherwise things like VK_MENU get stuck "on".
14775 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
14777         * ListBox.cs: Fixes AddRange bug
14778         
14779 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
14781         * ProgressBar.cs
14782                 - Add missing attributes
14783                 - Add missing method
14784                 
14785         * CheckedListBox.cs: Added missing attributes
14786                 - Add missing attributes
14787                 - Remove extra method
14788         
14789         * ComboBox.cs: Added missing attributes
14790         * VScrollBar.cs: Added missing attributes
14791         * ScrollBar.cs:  Added missing attributes
14792         * ListBox.cs: Fixes signature, add missing consts
14793         * LinkArea.cs:   Added missing attributes
14794         
14796 2005-02-08  Peter Bartok  <pbartok@novell.com>
14798         * Menu.cs: Added missing attributes
14799         * MainMenu.cs: Added missing attributes
14800         * GroupBox.cs: Added missing attributes
14801         * Label.cs: Added missing attributes
14802         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
14803         * ColorDialog.cs:
14804           - Added Instance and Options properties
14805           - Added missing attributes
14806         * Cursor.cs: Made Serializable
14807         * NotifyIcon: Added missing attributes
14808         * MenuItem.cs: Added missing attributes
14809         * TextBoxBase.cs: Implemented AppendText() and Select() methods
14810         * Panel.cs: Added Missing attributes
14811         * MonthCalendar.cs: Fixed CreateParams
14813 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
14814         
14815         * LinkLabel.cs:
14816                 - Fixes signature
14817                 - Fixes issues with links
14818                 - Adds the class attributes
14820 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
14821         
14822         * ComboBox.cs:
14823                 - Fixes button when no items available in dropdown
14824                 - Fixes repainting problems
14825                 - Adds the class attributes
14826                 
14827 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
14829         * XplatUIOSX.cs: Detect the menu bar and title bar height from
14830         the current theme.  Cache these on startup.
14832 2005-02-07  Jackson Harper  <jackson@ximian.com>
14834         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
14835         the scrollbar buttons when they are depressed.
14837 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
14839         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
14840         Get the display size from the main displayid.  We currently dont
14841         support multiple display configurations.
14843 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
14845         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
14847 2005-02-07  Miguel de Icaza  <miguel@novell.com>
14849         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
14851 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
14853         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
14855 2005-02-04  Jackson Harper  <jackson@ximian.com>
14857         * ThemeWin32Classic.cs: Respect the clipping rect when
14858         drawing. Only fill the intersection of clips and rects so there
14859         isn't a lot of large fills.
14860         * ScrollBar.cs: Pass the correct clipping rect to the theme
14861         engine. Remove some debug code.
14863 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
14864         
14865         * DateTimePicker.cs:
14866                 - Fixed crash on DateTime.Parse, use Constructor instead
14868 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
14869         
14870         * MenuItem.cs:
14871         * MenuAPI.cs:
14872                 - Owner draw support (MeasureItem and DrawItem)
14874 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
14875         
14876         *  Menu.cs:
14877                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
14878                 - Fixes MenuItems.Add range
14879         * MenuItem.cs:
14880                 - MergeMenu and Clone and CloneMenu functions
14882 2005-02-03  Jackson Harper  <jackson@ximian.com>
14884         * ScrollBar.cs: Make abstract
14885         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
14886         is abstract.
14888 2005-02-03  Jackson Harper  <jackson@ximian.com>
14890         * ScrollBar.cs: First part of my scrollbar fixups. This removes
14891         all the unneeded refreshes and uses invalidates with properly
14892         computed rects.
14894 2005-02-03  Peter Bartok  <pbartok@novell.com>
14896         * ComponentModel.cs: Added
14897         * IDataGridEditingService.cs: Added
14898         * Timer.cs: Added missing attributes
14899         * ToolTip.cs: Added missing attributes
14901 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
14903         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
14905 2005-02-03  Peter Bartok  <pbartok@novell.com>
14907         * ListBox.cs: Added missing attributes
14909 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
14910         
14911         * ListBox.cs:
14912                 - Fixes font height after font change
14913                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
14914                 
14915 2005-02-02  Peter Bartok  <pbartok@novell.com>
14917         * HandleData.cs: Introduced static methods to allow class
14918           to be more self-contained and track it's own HandleData objects
14919         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
14920           HandleData to use new static methods
14922 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
14924         * Combobox.cs:
14925                 - Fixes default size and PreferredHeight
14926                 - Missing events
14927                 - ObjectCollection.Insert implementation
14928                 
14929         * ListControl.cs
14930                 - Fixes signature
14931         * ListBox.cs:
14932                 - Several fixes
14933                 - ObjectCollection.Insert implementation
14934                 - No selection after clean
14935                 - Small fixes
14937 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
14939         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
14941 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
14943         * Combobox.cs:
14944                 - Caches ItemHeight calculation for OwnerDrawVariable
14945                 - Handles dropdown properly
14946                 - Fixes several minor bugs
14948 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
14950         * ListBox.cs:
14951                 - Fixes 71946 and 71950
14952                 - Fixes changing Multicolumn on the fly
14953                 - Fixes keyboard navigation on Multicolumn listboxes
14955 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
14956         
14957         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
14958         crash reporter log.
14960 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
14962         * XplatUIOSX.cs: Allow applications to actually exit.
14964 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
14966         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
14967         their parent at creation time rather than lazily later.  Fixes a major
14968         regression we were experiencing.
14970 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
14972         * ThemeWin32Classic.cs: more date time picker painting fixes
14973         * DateTimePicker.cs: more monthcalendar drop down fixes
14974         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
14976 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
14978         * ScrollBar.cs:
14979                 - When moving the thumb going outside the control should stop the moving
14980                 - Adds the firing of missing events
14981                 - Fixes no button show if Size is not specified
14982                 - End / Home keys for keyboard navigation
14984 2005-01-30  Peter Bartok  <pbartok@novell.com>
14986         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
14987           sanity check to prevent theoretical loop
14988         * XplatUIWin32.cs (SetVisible): Removed debug output
14989         * XplatUIX11.cs (SystrayChange): Added sanity check
14990         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
14991         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
14992           behaviour, valid until the X11 client window rewrite is done
14993         * TextBox.cs (ctor): Setting proper default foreground and background
14994           colors
14996 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
14998         * Theme: Added DrawDateTimePicker to interface
14999         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
15000         * DateTimePicker.cs: Created (still needs keys and painting code)
15001         * DateTimePickerFormat.cs: added
15002         * MonthCalendar.cs: fixed CreateParams for popup window mode
15003           
15004 2005-01-29  Peter Bartok  <pbartok@novell.com>
15006         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
15007           this should also the calculations for ligher/darker
15008         * Theme.cs: Fixed defaults for ScrollBar widths/heights
15010 2005-01-29  Peter Bartok  <pbartok@novell.com>
15012         * ArrangeDirection.cs: Added
15013         * ArrangeStartingPositon.cs: Added
15014         * SystemInformation.cs: Implemented
15015         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
15016           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
15017           used by SystemInformation class
15018         * X11Strucs.cs: Added XSizeHints structure
15019         * MenuAPI.cs:
15020           - Fixed CreateParams to make sure the menu window is always visible
15021           - TrackPopupMenu: Added check to make sure we don't draw the
15022             menu offscreen
15024 2005-01-29  Peter Bartok  <pbartok@novell.com>
15026         * HandleData.cs: Added method for altering invalid area
15027         * TextBoxBase.cs: Implemented TextLength
15029 2005-01-28  Peter Bartok  <pbartok@novell.com>
15031         * XplatUIX11.cs: Improvement over last patch, not sending
15032           the WM_PAINT directly anymore, instead we scroll any pending
15033           exposed areas and let the system pick out the WM_PAINT later
15035 2005-01-28  Peter Bartok  <pbartok@novell.com>
15037         * SWF.csproj: Deleted, no longer used. Instead,
15038           Managed.Windows.Forms/SWF.csproj should be used
15039         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
15040           directly, to avoid a potential race condition with the next
15041           scroll
15043 2005-01-28  Peter Bartok  <pbartok@novell.com>
15045         * XplatUI.cs: Made class internal
15047 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
15049         * CheckedListBox.cs:
15050                 - Draw focus
15051                 - Fixed Drawing
15052                 - Missing methods and events
15054 2005-01-27  Peter Bartok  <pbartok@novell.com>
15056         * Application.cs (Run): Don't use form if we don't have one
15058 2005-01-27  Peter Bartok  <pbartok@novell.com>
15060         * TextBoxBase.cs (get_Lines): Fixed index off by one error
15062 2005-01-27  Peter Bartok  <pbartok@novell.com>
15064         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
15065         * GridItem.cs: Added; Patch by Jonathan S. Chambers
15066         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
15067         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
15068         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
15069         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
15070         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
15071         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
15072         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
15073         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
15074         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
15075         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
15077 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
15079         * Combobox.cs:
15080                 - Draw focus on Simple Combobox
15081                 - Fixes drawing issues
15082                 - fixes 71834
15084 2005-01-27  Peter Bartok  <pbartok@novell.com>
15086         * Form.cs:
15087           - Place window in default location, instead of hardcoded 0/0
15088           - Send initial LocationChanged event
15089         * Control.cs:
15090           - UpdateBounds after creation to find out where the WM placed us
15091           - Make sure that if the ParentForm changes location the Form
15092             is notified
15093         * XplatUIX11.cs: XGetGeometry will not return the coords relative
15094             to the root, but to whatever the WM placed around us.
15095             Translate to root coordinates before returning toplevel
15096             coordinates
15097         * XplatUIWin32.cs: Removed debug output
15098         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
15099           flag to GetWindowPos, to allow translation of coordinates on X11
15101 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
15103         * ListBox.cs: connect LostFocus Event
15105 2005-01-27  Peter Bartok  <pbartok@novell.com>
15107         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
15108           XplatUIX11.cs: Extended the Systray API
15109         * Form.cs: Removed debug output
15110         * Application.cs: Fixed focus assignment, always need to call
15111           XplatUI.Activate() since Form.Activate() has rules that may
15112           prevent activation
15113         * NotifyIcon.cs: Should be complete now
15114         * ToolTip.cs: Worked around possible timer bug
15116 2005-01-27  Jackson Harper  <jackson@ximian.com>
15118         * TabControl.cs:
15119         - Only invalidate the effected tabs when the
15120         selected index changes. This reduces drawing and gets rid of some
15121         flicker.
15122         - Only refresh if the tabs need to be shifted, otherwise only
15123         invalidate the slider button.
15124         - On windows the tabs are not filled to right if the slider is
15125         visible.
15126         
15127 2005-01-27  Jackson Harper  <jackson@ximian.com>
15129         * TabControl.cs: Only refresh on mouseup if we are showing the
15130         slider. Also only invalidate the button whose state has changed.
15132 2005-01-26  Peter Bartok  <pbartok@novell.com>
15134         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
15135         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
15136           and SystrayRemove() methods
15137         * XplatUIOSX.cs: Stubbed Systray methods
15138         * XplatUIX11.cs:
15139           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
15140             methods
15141           - Fixed broken XChangeProperty calls (marshalling messed up things)
15142         * X11Structs.cs: Added enums and structs required for Size hinting
15143         * NotifyIcon.cs: Added & implemented
15145 2005-01-26  Jackson Harper  <jackson@ximian.com>
15147         * TabControl.cs: Space vertically layed out tabs properly.
15149 2005-01-26  Peter Bartok  <pbartok@novell.com>
15151         * Form.cs (CreateClientParams): Always set the location to 0,0
15152           since we're a child window.
15154         * Control.cs (SetVisibleCore): Always explicitly setting the location
15155           of a toplevel window, apparently X11 doesn't like to move windows
15156           while they're not mapped.
15158 2005-01-26  Jackson Harper  <jackson@ximian.com>
15160         * TabControl.cs: Implement FillToRight size mode with vertically
15161         rendered tabs.
15163 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
15165         * ControlPaint.cs, ThemeWin32Classic.cs
15166                 - Fixes DrawFocusRectangle
15168 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
15170         * MenuAPI.cs:
15171                 - MenuBar tracking only starts when item is first clicked
15172                 - Fixes menu hidding for multiple subitems
15173                 - Unselect item in MenuBar when item Executed
15174                 - Fixes bug 71495
15176 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
15178         * ListControl.cs:
15179                 - IsInputKey for ListBox
15180         * ListBox.cs:
15181                 - Focus item
15182                 - Shift and Control item selection
15183                 - Implement SelectionMode.MultiExtended
15184                 - Fixes RightToLeft
15185         * ComboBox.cs:
15186                 - IsInputKey implemented
15187                 - Do not generate OnTextChangedEdit on internal txt changes
15188                 
15189 2005-01-23  Peter Bartok  <pbartok@novell.com>
15191         * AccessibleObject.cs: Partially implemented Select()
15192         * MonthCalendar.cs: Added missing attributes and events
15193         * Form.cs: Fixed CreateParams behaviour, now controls derived from
15194           form can properly override CreateParams.
15195         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
15196           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
15197           Control performs Invalidate & Update
15198         * NativeWindow (CreateHandle): Added special handling for Form
15199           and Form.FormParent classes to allow overriding of From.CreateParams
15200         * Control.cs:
15201           - ControlNativeWindow: Renamed 'control' variable to more intuitive
15202             name 'owner'
15203           - ControlNativeWindow: Added Owner property
15204           - Removed usage of Refresh() on property changes, changed into
15205             Invalidate(), we need to wait until the queue is processed for
15206             updates, direct calls might cause problems if not all vars for
15207             Paint are initialized
15208           - Added call to UpdateStyles() when creating the window, to set any
15209             styles that CreateWindow might have ignored.
15210           - Added support for Form CreateParent overrides to UpdateStyles()
15211         * MessageBox.cs: Removed no longer needed FormParent override stuff,
15212           CreateParams are now properly overridable
15213         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
15214           CreateParams are now properly overridable
15216 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
15218         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
15219         OnTextBoxChanged.
15221         Capture LostFocus and OnTextBoxChanged.  The later introduces a
15222         recursive invocation that I have not figured out yet.
15224         Reset the timer when not using (it was accumulating).
15227         (OnTextBoxChanged): Set UserEdit to true here to track whether the
15228         user has made changes that require validation.
15230         Reset changing to avoid loops.
15232 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
15234         * NumericUpDown.cs: Display value at startup.
15236         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
15237         ValidateEditText.
15239         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
15240         filled in.  Added some basic parsing of text.
15242         Still missing the OnXXX method overrides, and figuring out the
15243         events that must be emitted.
15245         * UpDownBase.cs: Handle UserEdit on the Text property.
15246         
15247 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
15249         * ComboBox.cs:
15250           - Fixes IntegralHeight
15251           - ToString method
15253 2005-01-21  Jackson Harper  <jackson@ximian.com>
15255         * TabControl.cs: Set the SelectedIndex property when SelectedTab
15256         is set so that the page visibility is updated and the tabs are
15257         sized correctly.
15259 2005-01-21  Jackson Harper  <jackson@ximian.com>
15261         * TabControl.cs: Use cliping rectangle for blitting. Give the
15262         theme the clipping rect so we can do clipping while
15263         drawing. Remove some debug code.
15265 2005-01-21  Jackson Harper  <jackson@ximian.com>
15267         * TabPage.cs: Add a new method so tab pages can force the tab
15268         control to recalculate the tab page sizes.
15269         * TabControl.cs: UpdateOwner needs to make the tab control recalc
15270         sizes.
15272 2005-01-20  Jackson Harper  <jackson@ximian.com>
15274         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
15276 2005-01-20  Jackson Harper  <jackson@ximian.com>
15278         * TreeView.cs: Set the bounds for nodes properly. They were
15279         getting screwed up when checkboxes were not enabled, but images
15280         were.
15282 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
15284         * ListBox.cs:
15285                 - Owner draw support
15286                 - Fixes
15287                 
15288 2005-01-20  Jackson Harper  <jackson@ximian.com>
15290         * XplatUIStructs.cs: More misc keys
15291         * X11Keyboard.cs: Ignore some control keys.
15293 2005-01-20  Jackson Harper  <jackson@ximian.com>
15295         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
15296         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
15298 2005-01-19  Peter Bartok  <pbartok@novell.com>
15300         * Control.cs: Un-selecting the control when it is loosing focus
15302 2005-01-19  Jackson Harper  <jackson@ximian.com>
15304         * TreeView.cs: Hook up to the text controls leave event so we can
15305         end editing when the users clicks outside the text box.
15306         
15307 2005-01-19  Jackson Harper  <jackson@ximian.com>
15309         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
15310         get set in the conversion array.
15312 2005-01-19  Peter Bartok  <pbartok@novell.com>
15314         * Application.cs (ModalRun): Added a call to CreateControl to ensure
15315           focus is properly set
15316         * Button.cs:
15317           - Added missing attributes
15318           - removed styles, those are already set in the base class
15319         * ButtonBase.cs:
15320           - Added missing attributes
15321           - Added clip window styles
15322         * CheckBox.cs: Added missing attributes
15323         * CommonDialog.cs:
15324           - FormParentWindow.CreateParams: Added required clip styles
15325         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
15326           also filters modifier keys
15327         * MessageBox.cs:
15328           - Added assignment of Accept and Cancel button to enable Enter
15329             and Esc keys in MessageBox dialogs
15330           - FormParentWindow.CreateParams: Added required clip styles
15331         * RadioButton.cs: Added missing attributes
15332         * TextControl.cs: No longer draws selection if control does not
15333           have focus
15334         * TextBoxBase.cs:
15335           - Now draws simple rectangle around test area to make it obvious
15336             there's a control. This is a hack until we properly support borders
15337           - A few simple fixes to support selections better, now erases selected
15338             text when typing, and resets selection when using movement keys
15340 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
15342         * UpDownBase.cs: Added some new properties.
15344         * DomainUpDown.cs: Implement a lot to get my test working.
15346 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
15348         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
15350 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
15352         * OSXStructs (WindowAttributes): Fixed csc complaints
15354 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
15356         * XplayUIOSX.cs:
15357           OSXStructs.cs: Initial refactor to move enums and consts into
15358           OSXStructs and use them in the driver for greater readability.
15360 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
15362         * XplatUIOSX.cs: Initial support for Standard Cursors.
15363         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
15365 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
15367         * ComboBox.cs: ability to change style when the ctrl is already
15368         created, missing methods and events, bug fixes, signature fixes
15370 2005-01-19  Peter Bartok  <pbartok@novell.com>
15372         * Cursors.cs (ctor): Added ctor to fix signature
15374 2005-01-18  Peter Bartok  <pbartok@novell.com>
15376         * Button.cs: Implemented DoubleClick event
15377         * ButtonBase.cs:
15378           - Fixed keyboard handling to behave like MS, where the press of
15379             Spacebar is equivalent to a mousedown, and the key release is
15380             equivalent to mouseup. Now a spacebar push will give the same
15381             visual feedback like a mouse click.
15382           - Added missing attributes
15383           - Added ImeModeChanged event
15384           - Added support for generating DoubleClick event for derived classes
15385         * CheckBox.cs:
15386           - Implemented DoubleClick event
15387           - Added missing attributes
15388         * CommonDialog.cs: Added missing attribute
15389         * ContextMenu.cs: Added missing attributes
15390         * RadioButton.cs:
15391           - AutoChecked buttons do not allow to be unselected when clicked
15392             (otherwise we might end up with no selected buttons in a group)
15393           - Added missing attributes
15394           - Implemented DoubleClickEvent
15395         * ThreadExceptionDialog.cs: Enabled TextBox code
15397 2005-01-18  Peter Bartok  <pbartok@novell.com>
15399         * Form.cs: Removed debug output
15400         * Button.cs: Added support for DoubleClick method
15402 2005-01-18  Peter Bartok  <pbartok@novell.com>
15404         * Form.cs:
15405           - Added method to parent window that allows triggering size
15406             calculations when a menu is added/removed
15407           - set_Menu: Cleaned up mess from early days of Form and Control,
15408             now properly triggers a recalc when a menu is added/removed
15409           - Added case to select form itself as focused form if no child
15410             controls exist
15411           - Added PerformLayout call when showing dialog, to ensure properly
15412             placed controls
15413         * Control.cs:
15414           - Select(): Made internal so Form can access it
15415           - Focus(): Only call Xplat layer if required (avoids loop), and sets
15416             status
15417         * Application.cs (Run): Removed hack and calls PerformLayout instead
15418           to trigger calculation when Form becomes visible
15420 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
15422         * ComboBox.cs: fixes for ownerdraw
15424 2005-01-18  Peter Bartok  <pbartok@novell.com>
15426         * TextControl.cs:
15427           - Sentinel is no longer static, each Document gets it's own, this
15428             avoids locking or alternatively overwrite problems when more
15429             than one text control is used simultaneously.
15430           - Switched to use Hilight and HilightText brushes for text selection
15432         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
15434 2005-01-18  Peter Bartok  <pbartok@novell.com>
15436         * Control.cs:
15437           - Hooked up the following events:
15438                 o ControlAdded
15439                 o ControlRemoved
15440                 o HandleDestroyed
15441                 o ImeModeChanged
15442                 o ParentChanged
15443                 o TabStopChanged
15444                 o Invalidated
15445                 o SystemColorsChanged
15446                 o ParentFontChanged
15447                 o Move
15448           - Removed debug output
15449           - Added a call to the current theme's ResetDefaults when a color change
15450             is detected
15451         * Form.cs: Now setting the proper ImeMode
15452         * Theme.cs: Defined a method to force recreation of cached resources
15453           and rereading of system defaults (ResetDefaults())
15454         * ThemeWin32Classic.cs: Added ResetDefaults() stub
15456 2005-01-17  Peter Bartok  <pbartok@novell.com>
15458         * Control.cs: Added missing attributes
15460 2005-01-17  Jackson Harper  <jackson@ximian.com>
15462         * TreeNode.cs: Implement editing. Add missing properties selected
15463         and visible.
15464         * TreeView.cs: Implement node editing. Also some fixes to use
15465         Invalidate (invalid area) instead of Refresh when selecting.
15467 2005-01-17  Peter Bartok  <pbartok@novell.com>
15469         * Control.cs:
15470           - Implemented InvokeGotFocus() method
15471           - Implemented InvokeLostFocus() method
15472           - Implemented InvokePaint() method
15473           - Implemented InvokePaintBackground() method
15474           - Implemented InvokeClick() method
15475           - Implemented FindForm() method
15476           - Implemented RectangleToClient() method
15477           - Implemented ClientToRectangle() method
15478           - Implemented ResetBackColor() method
15479           - Implemented ResetCursor() method
15480           - Implemented ResetFont() method
15481           - Implemented ResteForeColor() method
15482           - Implemented ResetImeMode() method
15483           - Implemented ResetLeftToRight() method
15484           - Implemented ResetText() method
15485           - Implemented Scale() methods
15486           - Implemented ScaleCore() method
15487           - Implemented Update() method
15488           - Removed unused variables
15489           - Stubbed AccessibilityNotifyClients and
15490             ControlAccessibleObject.NotifyClients() methods (dunno what to do
15491             with those yet)
15492           - Now setting proper default for RightToLeft property
15493           - Fixed bug in SetClientSizeCore that would cause windows to get
15494             really big
15495           - Now sending Click/DoubleClick events
15496           - Now selecting controls when left mouse button is clicked on
15497             selectable control
15498         * AccessibleEvents.cs: Added
15499         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
15500         * XplatUIOSX.cs: Stubbed UpdateWindow() method
15501         * XplatUIWin32.cs: Implemented UpdateWindow() method
15502         * XplatUIX11.cs: Implemented UpdateWindow() method
15503         * Form.cs: Removed stray semicolon causing CS0162 warning
15504         * ThemeWin32Classic.cs: Fixed unused variable warnings
15505         * ScrollableControl.cs: Now calls base method for ScaleCore
15506         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
15507           style to avoid interference with internal click handler (which is
15508           different than standard Control click handling)
15509         * RadioButton.cs:
15510           - Now unchecks all sibling radio buttons when control is
15511             selected (Fixes #68756)
15512           - Removed internal tabstop variable, using the one inherited from
15513             Control
15515 2005-01-17  Jackson Harper  <jackson@ximian.com>
15517         * NavigateEventArgs.cs: Fix base type.
15518         * LinkLabel.cs: Sig fix
15519         
15520 2005-01-17  Jackson Harper  <jackson@ximian.com>
15522         * TreeView.cs: Only invalidate the effected nodes bounds when
15523         selecting nodes.
15525 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
15527         * XplatUIWin32.cs: fixes Win32 marshaling
15528         * XplatUIX11.cs: fixes method signature
15530 2005-01-17  Peter Bartok  <pbartok@novell.com>
15532         * XplatUIX11.cs: Clean up resources when we no longer need them
15534 2005-01-17  Peter Bartok  <pbartok@novell.com>
15536         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
15537           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
15538           and DestroyCursor() methods.
15539         * Cursor.cs: Partially implemented, now supports standard cursors;
15540           still contains some debug code
15541         * Cursors.cs: Implemented class
15542         * Control.cs:
15543           - WndProc(): Added handling of WM_SETCURSOR message, setting the
15544             appropriate cursor
15545           - Implemented Cursor property
15546           - Replaced break; with return; more straightforwar and possibly
15547             faster
15548           - Now properly setting the result for WM_HELP
15549         * X11Structs.cs: Added CursorFontShape enum
15550         * XplatUIStructs.cs:
15551           - Added StdCursor enum (to support DefineStdCursor() method)
15552           - Added HitTest enum (to support sending WM_SETCURSOR message)
15553         * XplatUIX11.cs:
15554           - Now sends the WM_SETCURSOR message
15555           - Implemented new cursor methods
15556         * XplatUIOSX.cs: Stubbed new cursor methods
15557         * XplatUIWin32.cs:
15558           - Implemented new cursor methods
15559           - Added GetSystemMetrics function and associated enumeration
15561 2005-01-15  Peter Bartok  <pbartok@novell.com>
15563         * Control.cs:
15564           - WndProc(): Now handles EnableNotifyMessage
15565           - SelectNextControl(): Fixed bug where if no child or sibling
15566             controls exist we looped endlessly
15568 2005-01-14  Jackson Harper  <jackson@ximian.com>
15570         * TreeView.cs: Recalculate the tab pages when a new one is added
15571         so that the proper bounding rects are created.
15573 2005-01-14  Jackson Harper  <jackson@ximian.com>
15575         * TreeView.cs: Draw a gray box instead of a grip in the lower
15576         right hand corner when there are both horizontal and vertical
15577         scroll bars.
15579 2005-01-14  Jackson Harper  <jackson@ximian.com>
15581         * Control.cs: When erasing backgrounds use FromHwnd instead of
15582         FromHdc when there is a NULL wparam. This occurs on the X driver.
15583         * XplatUIX11.cs: Set the wparam to NULL.
15585 2005-01-13  Jackson Harper  <jackson@ximian.com>
15587         * PictureBox.cs: Implement missing methods (except ToString, need
15588         to test that on windows) and events. When visibility is changed we
15589         need to redraw the image because the buffers are killed. When size
15590         is changed refresh if the sizemode needs it.
15592 2005-01-13  Peter Bartok  <pbartok@novell.com>
15594         * Control.cs (SelectNextControl): Was using wrong method to select
15595           a control
15597 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
15599         * ComboBox.cs: fixes dropstyle
15601 2005-01-13  Peter Bartok  <pbartok@novell.com>
15603         * Form.cs:
15604           - Implemented Select() override
15605           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
15606           - Now sets keyboard focus on startup
15607         * Control.cs (SelectNextControl): Now properly handles directed=true
15608         * TextBoxBase.cs:
15609           - WndProc: Now passes tab key on to base if AcceptTabChar=false
15610           - Added (really bad) focus rectangle (mostly for testing)
15611         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
15612           to enforce redraw on focus changes
15613         * ContainerControl.cs:
15614           - Fixed detection of Shift-Tab key presses
15615           - Fixed traversal with arrow keys
15616         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
15617           gonna keep this or if it's complete yet
15618         
15619 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
15621         * ComboBox.cs: missing properties, fixes
15623 2005-01-13  Peter Bartok  <pbartok@novell.com>
15625         * Panel.cs (ctor): Setting Selectable window style to off
15626         * Splitter.cs (ctor): Setting Selectable window style to off
15627         * GroupBox.cs (ctor): Setting Selectable window style to off
15628         * Label.cs (ctor): Setting Selectable window style to off
15630 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
15632         * UpDownBase.cs (InitTimer): If the timer has been already
15633         created, enable it.
15635         Use a TextBox instead of a Label.
15637 2005-01-12  Jackson Harper  <jackson@ximian.com>
15639         * TreeView.cs: Refresh the tree after sorting the nodes. Always
15640         draw the connecting node lines (when ShowLines is true).
15641         * TreeNode.cs: The nodes index can now be updated. This is used
15642         when a node collection is sorted.
15643         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
15644         insert or an existing unsorted node collection can be sorted.
15645         
15646 2005-01-12  Peter Bartok  <pbartok@novell.com>
15648         * ContainerControl.cs: Implemented ProcessDialogKeys()
15650 2005-01-12  Peter Bartok  <pbartok@novell.com>
15652         * Control.cs:
15653           - Implemented SelectNextControl() method
15654           - Several focus related bug fixes
15655           - Fixed Docking calculations to match MS documentation and
15656             behaviour
15658 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
15660         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
15661         bug fixes
15663 2005-01-12  Peter Bartok  <pbartok@novell.com>
15665         * Control.cs:
15666           - Fixed broken Contains() method
15667           - Implemented GetNextControl() method. Finally. This is the pre-
15668             requisite for focus handling.
15670 2005-01-12  Peter Bartok  <pbartok@novell.com>
15672         * OSXStrucs.cs: Added
15674 2005-01-12  Peter Bartok  <pbartok@novell.com>
15676         * XplatUIWin32.cs:
15677           - Removed PeekMessageFlags
15678           - Implemented SetWindowStyle() method
15679         * XplatUIStructs.cs: Added PeekMessageFlags
15680         * X11Structs: Added missing border_width field to XWindowChanges struct
15681         * XplatUIX11.cs:
15682           - PeekMessage: Now throws exception if flags which are not yet
15683             supported are passed
15684           - Implemented SetWindowStyle() method
15685           - Fixed SetZOrder to handle AfterHwnd properly
15686         * XplatUI.cs: Added SetWindowStyle() method
15687         * XplatUIDriver.cs: Added SetWindowStyle() abstract
15688         * Control.cs:
15689           - Implemented UpdateStyles() method
15690           - Implemented UpdateZOrder() method
15691         * XplatUIOSX.cs: Added SetWindowStyle() stub
15693 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
15695         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
15696         button mouse).
15699 2005-01-11  Jackson Harper  <jackson@ximian.com>
15701         * TreeView.cs: Still need to draw lines to siblings even if out of
15702         the current node is out of the clip.
15704 2005-01-11  Jackson Harper  <jackson@ximian.com>
15706         * TreeView.cs: When setting the hbar/vbar/grip position use
15707         SetBounds so that perform layout is only called once. Also suspend
15708         and resume layout so layout is only done once for all controls.
15709         - Removed some debug fluff
15710         * SizeGrip.cs: Call base implmentation in overriding methods.
15711         - When visibility is changed the drawing buffers are killed so we
15712         need to redraw.
15714 2005-01-11  Jackson Harper  <jackson@ximian.com>
15716         * TreeView.cs: Calculate the open node count while drawing. This
15717         saves us an entire tree traversal for every paint operation. Use
15718         a member var for the open node count so less vars are passed around.
15720 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
15722         * MonthCalendar.cs:
15723         - fixed selection to use mousemove, not mouse polling on timer
15724         * ThemeWin32Classic.cs
15725         - removed redundant unused variable "no_more_content"
15726         
15727 2005-01-11  Peter Bartok  <pbartok@novell.com>
15729         * XplatUIX11.cs (DoEvents): Needs to return when no more events
15730           are pending, so it now calls PeekMessage instead of GetMessage;
15731           implemented a incomplete version of PeekMessage
15732         
15733 2005-01-11  Peter Bartok  <pbartok@novell.com>
15735         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
15736           I18n issues
15737         * TextBoxBase.cs: Added sending of TextChanged event
15739 2005-01-10  Jackson Harper  <jackson@ximian.com>
15741         * TreeView.cs: Try not to draw outside the clipping rectangle on
15742         each node element.
15744 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
15746         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
15748 2005-01-10  Jackson Harper  <jackson@ximian.com>
15750         * TreeView.cs:
15751         - Implement fast scrolling. Now only the newly
15752         exposed nodes are drawn and the old image is moved using the
15753         XplatUI::ScrollWindow method.
15754         - Factor in height of nodes when calculating whether or not the
15755         node is in the clipping rect.
15757 2005-01-10  Jackson Harper  <jackson@ximian.com>
15759         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
15761 2005-01-10  Peter Bartok  <pbartok@novell.com>
15763         * Application.cs: Added temporary hack to resolve all our resize
15764           required issues on startup. This will get fixed properly at
15765           some point in the future
15767 2005-01-10  Jackson Harper  <jackson@ximian.com>
15769         * SizeGrip.cs: New internal class that is used as a sizing
15770         grip control...hence the name.
15772 2005-01-10  Peter Bartok  <pbartok@novell.com>
15774         * Control.cs: Implemented proper TabIndex handling, now assigning
15775           a tabindex when a control is added to a container
15776         * GroupBox.cs (ctor): Now sets the Container style bit, required
15777           for Control.GetNextControl()
15779 2005-01-09  Jackson Harper  <jackson@ximian.com>
15781         * TextBoxBase.cs: Clear window when scrolling (fixes build).
15783 2005-01-09  Peter Bartok <pbartok@novell.com>
15785         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
15786           XplatUIX11.cs: Added ability to control ScrollWindow expose and
15787           an overload for ScrollWindow to allow only scrolling a rectangle
15789 2005-01-09  Peter Bartok <pbartok@novell.com>
15791         * Form.cs:
15792           - Implemented SetDesktopBounds method
15793           - Implemented SetDesktopLocation method
15795 2005-01-08  Jackson Harper  <jackson@ximian.com>
15797         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
15798         the node count has changed, this removes to VScroll::Refresh calls
15799         when drawing.
15801 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
15803         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
15805 2005-01-07  Jackson Harper  <jackson@ximian.com>
15807         * TreeNode.cs: Just update the single node when it is
15808         checked. Don't refresh after toggling, the Expand/Collapse already
15809         handles this.
15810         * TreeView.cs: Respect clipping a little more when drawing. Try
15811         not to redraw things that don't need to be redrawn. Just hide the
15812         scrollbars when they are no longer needed instead of removing
15813         them, so they don't have to be created again and again.
15814         
15815 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
15817         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
15818         coordinates to window space to place the caret properly, FIXED.
15819         Implement GetWindowState & SetWindowState
15821 2005-01-06  Peter Bartok <pbartok@novell.com>
15823         * Form.cs:
15824           - Implemented ClientSize property
15825           - Implemented DesktopBounds property
15826           - Implemented DesktopLocation property
15827           - Implemented IsRestrictedWindow property
15828           - Implemented Size property
15829           - Implemented TopLevel property
15830           - Implemented FormWindowState property
15831         * Control.cs:
15832           - Implemented GetTopLevel() method
15833           - Implemented SetTopLevel() method
15834         * X11Structs.cs (Atom):
15835           - Added AnyPropertyType definition
15836           - Added MapState definiton and updated XWindowAttribute struct
15837         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
15838         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
15839         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
15840         * XplatUIWin32.cs:
15841           - Implemented GetWindowState() and SetWindowState() methods
15842           - Fixed Win32GetWindowLong return type
15843         * XplatUIX11.cs:
15844           - Introduced central function for sending NET_WM messages
15845           - Implemented GetWindowState() and SetWindowState() methods
15846         * TextBoxBase.cs (set_Lines):
15847           - Now uses Foreground color for text added via Text property (Duh!)
15848           - Added code to remember programmatically requested size (fixes
15849             behaviour when Multiline is set after Size)
15850           - Added AutoSize logic
15852 2005-01-06  Jackson Harper  <jackson@ximian.com>
15854         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
15856 2005-01-06  Jackson Harper  <jackson@ximian.com>
15858         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
15859         set to less then 0.
15861 2005-01-06  Jackson Harper  <jackson@ximian.com>
15863         * ScrollableControl.cs: Lazy init the scrollbars.
15864         
15865 2005-01-06  Jackson Harper  <jackson@ximian.com>
15867         * Theme.cs: Speed up getting pens and solid brushes, by using
15868         their ARGB as a hash instead of tostring and not calling Contains.
15870 2005-01-06  Peter Bartok <pbartok@novell.com>
15872         * Form.cs:
15873           - Implemented OnActivated and OnDeactivate event trigger
15874           - Implemented Activate() method
15875           - Fixed ShowDialog() to activate the form that was active before
15876             the dialog was shown
15877         * XplatUIX11.cs:
15878           - Added global active_window var that tracks the currently active
15879             X11 window
15880           - Now always grabs Property changes from the root window to always
15881             catch changes on the active window property
15882           - Added code to PropertyNotify handler to send Active/Inactive
15883             messages when state changes. This puts X11 and Win32 en par on
15884             WM_ACTIVATE notifications (except for double notifications when
15885             the user clicks away from our modal window to another one of our
15886             windows)
15888 2005-01-05  Jackson Harper  <jackson@ximian.com>
15890         * ImageList.cs: Implment ctor
15892 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
15894         * XplatUIOSX.cs: Implement Activate/SetTopmost
15896 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
15898         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
15900 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
15902         * XplatUIOSX.cs: Implement GetActive/SetFocus.
15904 2005-01-05  Peter Bartok <pbartok@novell.com>
15906         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
15907           XplatUIOSX.cs: Added GetActive method to return the currently
15908           active window for the application (or null, if none is active)
15909         * Form.cs:
15910           - Implemented ActiveForm
15911           - Commented out owner assignment for modal dialogs (causes problems
15912             on Win32, since the owner will be disabled)
15913           - Reworked some Active/Focus handling (still incomplete)
15914         * CommonDialog.cs: Commented out owner assignment for modal dialogs
15915           (causes problems on Win32, since the owner will be disabled)
15916         * IWin32Window: Added ComVisible attribute
15918 2005-01-05  Peter Bartok <pbartok@novell.com>
15920         * ToolTip.cs (WndProc): Enable setting focus now that we have the
15921           required XplatUI functions.
15923 2005-01-05  Peter Bartok <pbartok@novell.com>
15925         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
15926           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
15927           to implement focus and activation handling; still incomplete and
15928           with debug output
15930 2005-01-04  Peter Bartok <pbartok@novell.com>
15932         * TextBoxBase.cs: Changed access level for Document property to
15933           match switch to internal for TextControl
15935 2005-01-04  Peter Bartok <pbartok@novell.com>
15937         * AccessibleObject: Added ComVisible attribute
15939 2005-01-04  Jackson Harper  <jackson@ximian.com>
15941         * X11Keyboard.cs: Remove unneeded var.
15943 2005-01-04  Jackson Harper  <jackson@ximian.com>
15945         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
15946         but PAINT.
15947         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
15948         ClientMessage. This makes apps exit cleanly (more often).
15949         
15950 2005-01-04  Jackson Harper  <jackson@ximian.com>
15952         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
15953         handling focus, return correct colors and fonts,
15954         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
15955         handle selection, horizontal scrolling, and mouse interaction.
15957 2005-01-04  Peter Bartok <pbartok@novell.com>
15959         * ICommandExecutor.cs: Added
15960         * IDataGridColumnStyleEditingNotificationService.cs: Added
15961         * IFeatureSupport.cs: Added
15962         * IFileReaderService.cs: Added
15963         * IDataObject.cs: Added ComVisible attribute
15964         * AmbientProperties.cs: Added
15965         * BaseCollection.cs: Added missing attributes
15966         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
15967         * BaseCollection.cs: Added missing attributes
15968         * Binding.cs: Added TypeConverter attribute
15969         * BindingContext.cs: Added DefaultEvent attribute
15970         * BindingsCollection.cs: Added DefaultEvent attribute
15971         * Button.cs: Added DefaultValue attribute
15972         * DragEventArgs.cs: Added ComVisible attribute
15973         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
15974         * KeyEventArgs.cs: Added ComVisible attribute
15975         * KeyPressEventArgs.cs: Added ComVisible attribute
15976         * MouseEventArgs.cs: Added ComVisible attribute
15977         * NavigateEventArgs.cs: Added
15978         * NavigateEventHandler.cs: Added
15979         * FeatureSupport.cs: Added
15980         * OSFeature.cs: Added
15981         * Theme.cs: Added abstract Version property to support OSFeature
15982         * ThemeWin32Classic.cs: Added Version property to
15983           support OSFeature.Themes
15984         * ProgressBar.cs: Removed OnPaintBackground override, not required since
15985           the proper styles to avoid background drawing are set, also doesn't
15986           match MS signature
15987         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
15988         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
15989         * ScrollEventArgs.cs: Added ComVisible attribute
15990         * SplitterEventArgs.cs: Added ComVisible attribute
15991         * AccessibleSelection.cs: Added Flags attribute
15992         * Appearance.cs: Added ComVisible attribute
15993         * Border3DSide.cs: Added ComVisible attribute
15994         * Border3DStyle.cs: Added ComVisible attribute
15995         * BorderStyle.cs: Added ComVisible attribute
15996         * DragAction.cs: Added ComVisible attribute
15997         * ErrorBlinkStyle.cs: Added
15998         * ScrollEventType.cs: Added ComVisible attribute
15999         * AnchorStyles.cs: Added Editor attribute
16000         * DockStyle.cs: Added Editor attribute
16001         * HorizontalAlignment.cs: Added ComVisible attribute
16002         * HelpEventArgs.cs: Added ComVisible attribute
16003         * PaintEventArgs.cs: Added IDisposable
16005 2005-01-04  Peter Bartok <pbartok@novell.com>
16007         * TextControl.cs: Switched Line, LineTag and Document classes to
16008           internal
16010 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
16012         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
16013         Simple mode, fixes, IntegralHeight, etc.
16015 2005-01-04  Peter Bartok <pbartok@novell.com>
16017         * TextBoxBase.cs: Using proper font variable now
16019 2005-01-04  Peter Bartok <pbartok@novell.com>
16021         * Form.cs (ShowDialog): Set parent to owner, if provided
16022         * GroupBox.cs: Removed unused vars
16023         * TextControl.cs:
16024           - Added GetHashCode() for Document and LineTag classes
16025           - Removed unused variables
16026           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
16027             to allow translation between continuous char position and line/pos
16028         * CheckBox.cs: Removed vars that are provided by base class
16029         * RadioButton.cs: Removed vars that are provided by base class, added
16030           new keyword where required
16031         * LinkLabel.cs: Added new keyword where required
16032         * Control.cs (WndProc): Removed unused variable
16033         * TextBoxBase.cs:
16034           - Finished SelectionLength property
16035           - Implemented SelectionStart property
16036           - Implemented Text property
16037           - Removed unused vars
16038         * MessageBox.cs: Added new keyword where required
16039         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
16040           WndProc signature
16041         * MenuAPI.cs: Added new keyword where required
16042         * ButtonBase.cs: Removed vars that are provided by base class, added
16043           new keyword where required
16044         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
16045           argument to double, to allow compiling with csc 2.0 (Atsushi ran
16046           into this)
16047         * Application.cs (Run): Now triggers the ThreadExit event
16048         * CommonDialog.cs: Added new keyword where required; now properly sets
16049           parent (owner) for dialog
16050         * XplatUIX11.cs: Commented out unused vars
16051         * StatusBar.cs: Fixed signature for Text property
16052         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
16054 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
16056         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
16057         TrackBar.cs, MonthCalendar.cs: remove unused vars
16059 2005-01-03  Jackson Harper  <jackson@ximian.com>
16061         * ThemeWin32Classic.cs:
16062         * X11Keyboard.cs: Remove unused vars.
16064 2005-01-03  Peter Bartok  <pbartok@novell.com>
16066         * TextBox.cs:
16067           - set_Text: Tied into TextControl
16068           - set_TextAlignment: Tied into TextControl
16069         * TextControl.cs:
16070           - Added alignment properties and implemented alignment handling
16071             and drawing (still has a bug, not generating proper expose events)
16072           - Added new Line() constructor to allow passing the line alignment
16073           - Fixed selection setting, properly handling end<start now
16074           - Added aligment considerations to RecalculateDocument()
16075         * TextBoxBase.cs:
16076           - Now properly enforces control height for single line controls
16077           - Added support for CharacterCasing
16078           - Added IsInputKey override
16079           - Fixed Keys.Enter logic
16080           - Added SetBoundsCore override
16081           - Fixed mouse selection handling
16083 2005-01-03  Jackson Harper  <jackson@ximian.com>
16085         * TreeView.cs:
16086           - Collapse and uncheck all nodes when CheckBoxes is disabled.
16087           - Checkboxes are always aligned to the bottom of the node,
16088           regardless of item height.
16089           - Use the node bounds to draw the text so we can center it when
16090           the item height is greater then the font height.
16091           - Node::Bounds are only the text part of the node.
16092         * TreeNode.cs: New method to combine collapsing and unchecking all
16093           nodes recursively.
16095 2005-01-02  Jackson Harper  <jackson@ximian.com>
16097         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
16098         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
16099         tree when a check is changed. TODO: Only refresh the checked node.
16101 2004-12-30  Jackson Harper  <jackson@ximian.com>
16103         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
16104         * TreeNode.cs: When collapsing make sure to never collapse the
16105         root node.
16107 2004-12-29  Jackson Harper  <jackson@ximian.com>
16109         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
16110         
16111 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
16113         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
16115 2004-12-28  Peter Bartok  <pbartok@novell.com>
16117         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
16118           not yet assigned
16120 2004-12-28  Peter Bartok  <pbartok@novell.com>
16122         * Control.cs (WndProc): Added WM_HELP handler, now generates
16123           HelpRequested event
16124         * Form.cs: Added HelpButton property and required support code
16125         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
16127 2004-12-28  Peter Bartok  <pbartok@novell.com>
16129         * CommonDialog.cs:
16130           - Made DialogForm.owner variable internal
16131           - Added check to ensure owner form is set before setting
16132             owner properties in CreateParams
16134 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
16136         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
16137           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
16138           GetCursorPos.  Fix major visibility issues.  Rework the windowing
16139           system to support borderless/titleless windows (implements menus).
16140           Fix GetWindowPos.  Implement initial background color support for
16141           views.
16143 2004-12-28  Peter Bartok  <pbartok@novell.com>
16145         * Form.cs (get_CreateParams): Make sure we have an owner before using
16146           the owner variable. Implement proper default if no owner exists
16148 2004-12-28  Peter Bartok  <pbartok@novell.com>
16150         * In preparation for making Managed.Windows.Forms the default build target
16151           for System.Windows.Forms, the following stubbed files were added.
16152           Dialogs are currently being implemented by contributors and are only
16153           short-term place holders.
16154         * ColorDialog.cs: Initial check-in (minmal stub)
16155         * DataGrid.cs: Initial check-in (minimal stub)
16156         * DataGridLineStyle.cs: Initial check-in (minimal stub)
16157         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
16158         * DataGridTableStyle.cs: Initial check-in (minimal stub)
16159         * FontDialog.cs: Initial check-in (minimal stub)
16160         * FileDialog.cs: Initial check-in (minimal stub)
16161         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
16162         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
16163         * OpenFileDialog: Initial check-in (minimal stub)
16164         * IComponentEditorPageSite.cs: Initial check-in
16165         * Splitter.cs: Initial check-in (for Jackson)
16166         * SplitterEventArgs.cs: Initial check-in (for Jackson)
16167         * SplitterEventHandler.cs: Initial check-in (for Jackson)
16168         * TextBox.cs: Initial check-in; still needs some wiring to
16169           TextControl backend
16170         * Form.cs: Implemented ControlBox property
16171         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
16172         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
16173         * TextControl.cs: Added selection functionality; added todo header
16174         * TextBoxBase.cs:
16175           - Implemented Lines property
16176           - Implemented TextHeight property
16177           - Implemented SelectedText property
16178           - Implemented SelectionLength property
16179           - Implemented SelectAll method
16180           - Implemented ToString method
16181           - Removed and cleaned up some debug code
16182           - Implemented (still buggy) mouse text selection
16184 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
16186         * ComboBox.cs: Complete DropDownList implementation, fixes.
16188 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
16190         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
16191         * ComboBoxStyle.cs: ComboBoxStyle enum
16192         * ComboBox.cs: Initial work on ComboBox control
16194 2004-12-21  Peter Bartok  <pbartok@novell.com>
16196         * Control.cs (ctor, CreateParams): Moved setting of is_visible
16197           forward so that anything that creates a window gets the default,
16198           also no longer uses Visible property in CreateParams to avoid
16199           walking up the parent chain and possibly get the wrong visible
16200           status. Fixed IsVisible to no longer walk up to the parent.
16202 2004-12-21  Peter Bartok  <pbartok@novell.com>
16204         * Form.cs (ShowDialog): Unset modality for the proper window
16206 2004-12-20  Peter Bartok  <pbartok@novell.com>
16208         * CommonDialog.cs: Initial check-in
16210 2004-12-20  Peter Bartok  <pbartok@novell.com>
16212         * Control.cs (Visible): Now uses the parent window instead of the
16213           client area window for the property
16215         * Form.cs
16216           - ShowDialog(): Now uses the proper window for modality
16217           - The default visibility state for the form parent is now false. This
16218             will prevent the user from seeing all the changes to the form and
16219             its controls before the application hits Application.Run()
16220           - Removed some stale commented out code
16222         * NativeWindow.cs:
16223           - Added FindWindow() method to have a method to check for existence
16224             of a window handle
16225           - Added ability to override default exception handling (for example
16226             when debugging with VS.Net; to do this the ExternalExceptionHandler
16227             define must be set
16228           - Removed some useless debug output
16230         * XplatUIX11.cs:
16231           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
16232             not working as expected
16233           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
16234             property to allow switching back to the modal window if focus is
16235             given to another one of our windows (Application Modal)
16236           - Now only sets override_redirect if we create a window
16237             without WS_CAPTION
16238           - Moved EventMask selection before mapping of newly created window
16239             so we can catch the map event as well
16240           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
16241           - Added various Atom related DllImports
16242           - Implemented Exit() method
16243           - .ctor() : No longer shows window if WS_VISIBLE is not defined
16244             in the CreateParams
16246         * MessageBox.cs: Now properly deals with the FormParent window by
16247           providing an override the FormParent CreateParams property to
16248           set as POPUP instead of OVERLAPPED window.
16250 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
16252         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
16253         Minor code cleanup.
16255 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
16256         
16257         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
16259 2004-12-18  Peter Bartok  <pbartok@novell.com>
16261         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
16262           implementing SetModal() method
16264 2004-12-18  Peter Bartok  <pbartok@novell.com>
16266         * X11Structs.cs (XGCValues): Fixed type of function element
16267         * XplatUI.cs: Added ScrollWindow() method
16268         * XplatUIDriver.cs: Added ScrollWindow() abstract
16269         * XplatUIWin32.cs: Implemented ScrollWindow() method
16270         * XplatUIX11.cs: Implemented ScrollWindow() method
16271         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
16273 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
16275         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
16276         Some more keyboard support (INCOMPLETE)
16278 2004-12-17  Peter Bartok  <pbartok@novell.com>
16280         * TextControl.cs:
16281         - Added color attribute to line tags.
16282         - Added color argument to all functions dealing with tags
16283         - Added color argument support to various functions
16284         - Fixed miss-calculation of baseline/shift in certain circumstances
16286         * TextBoxBase.cs: Added new color option to test code
16288 2004-12-17  Jackson Harper  <jackson@ximian.com>
16290         * TreeNode.cs:
16291         * MonthCalendar.cs: Signature fixes
16293 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
16295         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
16296         keyboard event moved it.  Create a new graphics context for each paint resolves this
16298 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
16300         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
16301         Make caret exist and go blink blink.  Initial keyboard support.
16302         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
16303         works.
16305 2004-12-17  Jackson Harper  <jackson@ximian.com>
16307         * XplatUIStructs.cs: Updated set of virtual keycodes.
16308         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
16310 2004-12-17  Jackson Harper  <jackson@ximian.com>
16312         * XplatUIX11.cs: Prune old keyboard code.
16314 2004-12-17  Jackson Harper  <jackson@ximian.com>
16316         * XplatUIX11.cs: When generating mouse wparams get the modifier
16317         keys from the ModifierKeys property.
16319 2004-12-17  Jackson Harper  <jackson@ximian.com>
16321         * X11Keyboard.cs: Send up/down input when generating
16322         messages. Remove some unused vars.
16324 2004-12-17  Jackson Harper  <jackson@ximian.com>
16326         * TabControl.cs:
16327         * TreeView.cs: get rid of warnings.
16329 2004-12-17  Jackson Harper  <jackson@ximian.com>
16331         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
16333 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
16335         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
16336           CheckedListBox.cs: Implementation
16338 2004-12-17  Peter Bartok  <pbartok@novell.com>
16340         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
16342 2004-12-16  Peter Bartok  <pbartok@novell.com>
16344         * TextControl.cs:
16345           - InsertCharAtCaret(): Fixed start pos fixup
16346           - CaretLine_get: No longer derives the line from the tag, the tag
16347             could be stale if lines in the document have been added or deleted
16348           - RebalanceAfterDelete(): Fixed bug in balancing code
16349           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
16350           - Line.Streamline(): Now can also elminate leading empty tags
16351           - DumpTree(): Added a few more tests and prevented exception on
16352             uninitialized data
16353           - Added Debug section for Combining lines
16354           - Delete(): Now copies all remaining properties of a line
16355           
16356         * TextBoxBase.cs:
16357           - Left mousebutton now sets the caret (and middle button still acts
16358             as formatting tester, which must go away soon)
16359           - Added Debug section for Deleting/Combining lines
16360           - Fixed calculations for UpdateView after Combining lines
16362 2004-12-16  Peter Bartok  <pbartok@novell.com>
16364         * TextControl.cs: Now properly aligns text on a baseline, using the
16365           new XplatUI.GetFontMetrics() method. Simplified several calculations
16366         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
16367           defined
16369 2004-12-16  Peter Bartok  <pbartok@novell.com>
16371         * XplatUI.cs: Added GetFontMetrics() method
16372         * XplatUIDriver.cs: Added GetFontMetrics() abstract
16373         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
16374           into libgdiplus, our private GetFontMetrics function
16375         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
16376         * XplatUIWin32.cs: Implemented GetFontMetrics() method
16378 2004-12-16  Jackson Harper  <jackson@ximain.com>
16380         * XplatUIStruct.cs: Add enum for dead keys
16381         * X11Keyboard.cs: Map and unmap dead keys.
16383 2004-12-16  Jackson Harper  <jackson@ximian.com>
16385         * X11Keyboard.cs: Detect and use the num lock mask.
16387 2004-12-16  Peter Bartok  <pbartok@novell.com>
16389         * Control.cs (CreateGraphics): Added check to make sure the
16390           handle of the window exists before calling Graphics.FromHwnd()
16392 2004-12-16  Peter Bartok  <pbartok@novell.com>
16394         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
16395           contains a lot of code that's not supposed to be there for the
16396           real thing, but required for developing/testing the textbox
16397           backend.
16399 2004-12-16  Peter Bartok  <pbartok@novell.com>
16401         * TextControl.cs:
16402         - Fixed Streamline method
16403         - Added FindTag method to Line
16404         - Added DumpTree method for debugging
16405         - Added DecrementLines() method for deleting lines
16406         - Fixed UpdateView to update the cursor to end-of-line on single-line
16407           updates
16408         - Added PositionCaret() method
16409         - Fixed MoveCaret(LineDown) to move into the last line, too
16410         - Added InsertChar overload
16411         - Fixed InsertChar tag offset calculations
16412         - Added DeleteChar() method
16413         - Added Combine() method for folding lines
16414         - Fixed Delete() method, no longer allocates wasted Line object and
16415           now copies all properties when swapping nodes
16416         - Delete() method now updates document line counter
16418 2004-12-15  Jackson Harper  <jackson@ximian.com>
16420         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
16421         * X11Keyboard.cs: Expose the currently selected modifier keys
16422         through a property.
16424 2004-12-15  Peter Bartok  <pbartok@novell.com>
16426         * TextControl.cs: Initial check-in. Still incomplete
16428 2004-12-15  Jackson Harper  <jackson@ximian.com>
16430         * TreeNode.cs:
16431         * TreeView.cs: Fix build on csc (second time today ;-))
16433 2004-12-15  Jackson Harper  <jackson@ximian.com>
16435         * TreeView.cs: Store the treenodes plus/minus box bounds when it
16436         is calculated and use this for click testing.
16437         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
16439 2004-12-15  Jackson Harper  <jackson@ximian.com>
16441         * TreeView.cs: Pass the nodes image index to the image list when
16442         drawing that image.
16444 2004-12-15  Jackson Harper  <jackson@ximian.com>
16446         * X11Keyboard.cs: Set messages hwnd.
16447         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
16448         post_message calls.
16450 2004-12-15  Jackson Harper  <jackson@ximian.com>
16452         * X11Keyboard.cs: Fix to compile with csc.
16453         
16454 2004-12-15  Jackson Harper  <jackson@ximian.com>
16456         * X11Structs.cs: Add key mask values
16457         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
16458         * X11Keyboard.cs: New file - Extrapolates and interpolates key
16459         down/up foo into WM_CHAR foo
16460         * KeyboardLayouts.cs: Common keyboard layouts
16461         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
16462         post messages into the main queue.
16464 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
16466         * Button.cs: implement ProcessMnemonic
16467         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
16468           brushes everytime
16469         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
16470         * ButtonBase.cs: Show HotkeyPrefix (not the &)
16472 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
16473         
16474         * MonthCalendar.cs: Implemented click-hold for next/previous month
16475           and date selection
16476           
16477 2004-12-11  Peter Bartok  <pbartok@novell.com>
16479         * X11Structs.cs:
16480           - Added XKeyboardState (moved from XplatUIX11.cs)
16481           - Added XCreateGC related enums and structures
16482           - Added GXFunction for XSetFunction
16484         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
16486         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
16487           CaretVisible() calls
16489         * ToolTip.cs: Added code to prevent stealing focus from app windows
16491         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
16492           DestroyCaret, SetCaretPos and CaretVisible)
16494         * XplatUIX11.cs:
16495           - Added implementation for caret functions
16496           - Moved hover variables into a struct, to make it a bit easier
16497             on the eyes and to debug
16498           - Removed XKeyboardState (moved to XplatUIX11.cs)
16499           - Moved Keyboard properties into the properties region
16501         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
16502           call to get a graphics context for our control
16504         * XplatUIOSX.cs: Added empty overrides for the new caret functions
16506         * TreeView.cs: Fixed bug. No matter what color was set it would always
16507           return SystemColors.Window
16509         * XplatUIWin32.cs: Implemented caret overrides
16511 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
16513         * ListBox.cs: fire events, implement missing methods and properties,
16514         sorting.
16516 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
16518         * MonthCalendar.cs: invalidation bug fixing
16519         * ThemeWin32Classic.cs: paint fixing
16521 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
16523         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
16524         prepare the CGContextRef there now.
16526 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
16528         * MonthCalendar.cs:
16529           - optimisationL only invalidate areas that have changed
16530         * ThemeWin32Classic.cs:
16531           - only paint parts that intersect with clip_area
16533 2004-12-09  Peter Bartok  <pbartok@novell.com>
16535         * Application.cs: Undid changes from r37004 which cause problems
16536         on X11
16538 2004-12-09  Ravindra  <rkumar@novell.com>
16540         * ToolBar.cs: Added support for displaying ContextMenu
16541         attached to a button on ToolBar.
16542         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
16543         property.
16545 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
16547         * Label.cs: autosize works in text change and removes unnecessary
16548         invalidate
16550 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
16552         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
16553         remove warnings
16555 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
16557         * XplatUIOSX.cs: Added mouse move/click/grab support
16558         Remove some debugging WriteLines not needed anymore.
16559         Add window resizing/positioning.
16560         Fix visibility on reparenting.
16562 2004-12-08  Peter Bartok  <pbartok@novell.com>
16564         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
16566 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
16568         * XplatUIOSX.cs: Initial checkin
16569         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
16571 2004-12-03  Ravindra <rkumar@novell.com>
16573         * ListView.cs: Added some keybindings and fixed scrolling.
16574         ScrollBars listen to ValueChanged event instead of Scroll
16575         Event. This would let us take care of all changes being
16576         done in the scrollbars' values programmatically or manually.
16577         * ListView.cs (CanMultiselect): Added a check for shift key.
16578         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
16579         * ListViewItem.cs (Clone): Fixed. We need to make a copy
16580         of ListViewSubItemCollection as well.
16582 2004-12-06  Peter Bartok <pbartok@novell.com>
16584         * Control.cs (Parent): Added check and exception to prevent
16585         circular parenting
16587 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
16589         * ListBox.cs: implemented clipping, selection single and multiple,
16590         bug fixing
16592 2004-12-03  Ravindra <rkumar@novell.com>
16594         * ListView.cs (ListView_KeyDown):
16595         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
16596         when CTRL key is pressed.
16597         * ListViewItem.cs (Selected): Fixed setting the property.
16599 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
16601         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
16603         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
16604         MinimizeBox, ShowInTaskbar, TopMost properties.
16606         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
16607         will be implemented).
16609 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
16611         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
16613         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
16614         tests.
16615         
16616         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
16617         
16618         * TreeView.cs: BackColor is Colors.Window.
16620 2004-12-01  Jackson Harper  <jackson@ximian.com>
16622         * TreeView.cs: When resizing the tree if the user is making it
16623         smaller we don't get expose events, so we need to handle adding
16624         the horizontal scrollbar in the size changed handler as well as
16625         the expose handler.
16627 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
16629         * DrawItemState.cs: fixes wrong enum values
16631 2004-12-01  Jackson Harper  <jackson@ximian.com>
16633         * TreeView.cs: Resize the hbar as well as the vbar on resize.
16635 2004-12-01  Jackson Harper  <jackson@ximian.com>
16637         * NodeLabelEditEventArgs.cs:
16638         * NodeLabelEditEventHandler.cs:
16639         * OpenTreeNodeEnumerator.cs:
16640         * TreeNode.cs:
16641         * TreeNodeCollection.cs:
16642         * TreeView.cs:
16643         * TreeViewAction.cs:
16644         * TreeViewCancelEventArgs.cs:
16645         * TreeViewCancelEventHandler.cs:
16646         * TreeViewEventArgs.cs:
16647         * TreeViewEventHandler.cs: Initial implementation.
16649 2004-12-01  Ravindra <rkumar@novell.com>
16651         * ListView.cs (CalculateListView): Fixed scrolling related
16652         calculations. Also, removed some debug statements from other
16653         places.
16654         * ListViewItem.cs: Changed access to 'selected' instance variable
16655         from private to internal.
16656         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
16658 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
16660         * ThemeWin32Classic.cs: remove cache of brush and pens for
16661         specific controls and use the global system, fixes scrollbutton
16662         bugs (for small sizes, disabled, etc)
16663         
16664         * ScrollBar.cs: does not show the thumb for very small controls
16665         (as MS) and allow smaller buttons that the regular size
16667 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
16669         * UpDownBase.cs: Add abstract methods for the interface.
16670         Add new virtual methods (need to be hooked up to TextEntry when it
16671         exists).
16672         Add override methods for most features.
16673         Computes the size, forces the height of the text entry.
16675         * NumericUpDown.cs: Put here the current testing code.
16677         * Set eol-style property on all files that do not have mixed line
16678         endings, to minimize the future problems.  There are still a few
16679         files with mixed endings, and someone should choose whether they
16680         want to move it or not.
16682 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
16684         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
16685         System.Colors
16686         
16687 2004-11-30  Ravindra <rkumar@novell.com>
16689         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
16690         drawing and replaced use of SystemColors by theme colors.
16691         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
16692         * ListView.cs (ListViewItemCollection.Add): Throw exception when
16693         same ListViewItem is being added more than once.
16695 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
16697         * MonthCalendar.cs:
16698           - ControlStyles love to make the control not flicker
16699           
16700 2004-11-30  Peter Bartok  <pbartok@novell.com>
16702         * CharacterCasing.cs: Added
16704 2004-11-29  Peter Bartok  <pbartok@novell.com>
16706         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
16707           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
16708           I am removing these files as they conflict with already completed
16709           work. While it is fantastic to get contributions to MWF, I
16710           respectfully ask that everyone please coordinate their contributions
16711           through mono-winforms-list or #mono-winforms at this time. We're
16712           explicitly avoiding stubbing and don't want controls that don't have
16713           their basic functionality implemented in svn. Please also see
16714           http://www.mono-project.com/contributing/winforms.html
16717 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
16719         * Application.cs (ModalRun): Don't hang after exit.
16721         * Theme.cs: New TreeViewDefaultSize property.
16723         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
16724         with less hardcoded SystemColors constant.
16725         Implemented TreeViewDefaultSize.
16727         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
16728         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
16731 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
16733         * MonthCalendar.cs:
16734           - Fix NextMonthDate and PrevMonthDate click moving calendar
16736 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
16738         * MonthCalendar.cs:
16739           - Fix usage of ScrollChange Property when scrolling months
16741 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
16743         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
16744          - Fixes menu destroying
16745          - Support adding and removing items on already created menus
16747 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
16749         * MonthCalendar.cs:
16750           - Re-worked all bolded dates handling to match win32
16751         * ThemeWin32Classic.cs:
16752           - Fixed rendering with bolded dates
16754 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
16756         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
16757         - Horizontal scroolbar
16758         - Multicolumn
16759         - Fixes
16762 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
16764         * MonthCalendar.cs:
16765           - Fix Usage of MaxSelectionCount from SelectionRange
16766           - Fixed Shift + Cursor Selection
16767           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
16768           - Fixed normal cursor selection to be compat with win32
16769           - Fixed Shift + Mouse Click selection
16771 2004-11-24  Peter Bartok <pbartok@novell.com>
16773         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
16774         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
16775         * XplatUIX11.cs:
16776           - CreatedKeyBoardMsg now updates keystate with Alt key
16777           - Added workaround for timer crash to CheckTimers, Jackson will
16778             develop a proper fix and check in later
16779           - Implemented DispatchMessage
16780           - Removed calling the native window proc from GetMessage (call
16781             now moved to DispatchMessage)
16783         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
16784           the keydata (Fixes bug #69831)
16786         * XplatUIWin32.cs:
16787           - (DispatchMessage): Switched to return IntPtr
16788           - Added DllImport for SetFocus
16790 2004-11-24  Ravindra <rkumar@novell.com>
16792         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
16793         background drawing.
16794         * ListViewItem.cs: Fixed various properties, calculations
16795         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
16796         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
16797         and some internal properties. Fixed MouseDown handler and Paint
16798         method.
16800 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
16802         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
16804 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
16806         * ContainerControl.cs: correct accidental check in of local changes
16808 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
16810         * ThemeWin32Classic.cs:
16811                 - Fixed Drawing Last month in grid (sometimes not showing)
16812         * MonthCalendar.cs:
16813                 - Fixed title width calculation bug (makeing title small)
16815 2004-11-23  Peter Bartok <pbartok@novell.com>
16817         * XplatUIX11.cs:
16818           - Added generation of WM_MOUSEHOVER event
16819           - Added missing assignment of async_method atom
16820           - Fixed WM_ERASEBKGND; now only redraws the exposed area
16822 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
16824         * ThemeWin32Classic.cs:
16825                 - Fixed Drawing of today circle when showtodaycircle not set
16826                 - fixed drawing of first and last month in the grid (gay dates)
16827         * MonthCalendar.cs:
16828                 - Fixed Drawing of today circle
16829                 - Fixed drawing of grady dates
16830                 - Fixed HitTest for today link when ShowToday set to false
16831                 - Fixed DefaultSize to obey ShowToday
16833 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
16835         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
16836         * System.Windows.Forms/Theme.cs
16837         * MonthCalendar.cs: added for MonthCalendar
16838         * SelectionRange.cs: added for MonthCalendar
16839         * Day.cs: added for MonthCalendar: added for MonthCalendar
16840         * DateRangeEventArgs.cs: added for MonthCalendar
16841         * DateRangeEventHandler.cs: added for MonthCalendar
16843 2004-11-22  Ravindra <rkumar@novell.com>
16845         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
16846         property.
16848 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
16850         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
16851         event handler.
16852         
16853         * NumericUpDown.cs: Added new implementation.
16854         * UpDownBase.cs: Added new implementation.
16856         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
16857         implementations.
16858         
16859         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
16860         implementations.
16862         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
16863         methods.
16865 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
16867         * Timer.cs  (Dispose): Should call the base dispose when
16868         overriding.
16870 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
16872         * ScrollBar.cs: updates thumb position when max, min or increment
16873         is changed
16875 2004-11-21  Ravindra <rkumar@novell.com>
16877         * ListView.cs: Implemented item selection, activation and
16878         column header style. Fixed properties to do a redraw, if
16879         required. Added support for MouseHover, DoubleClick, KeyDown
16880         and KeyUp event handling and some minor fixes.
16881         * ListViewItem.cs: Fixed constructor.
16882         * ThemeWin32Classic.cs: Improved drawing for ListView.
16884 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
16886         * ThemeWin32Classic.cs: initial listbox drawing code
16887         * DrawMode.cs: new enumerator
16888         * ListControl.cs: stubbed class
16889         * ListBox.cs: initial implementation
16890         * Theme.cs: new methods definitions
16891         * SelectionMode.cs: new enumerator
16893 2004-11-17  Peter Bartok  <pbartok@novell.com>
16895         * XplatUIWin32.cs: Added double-click events to the class style
16896         * Control.cs (WndProc):
16897           - Added handling of click-count to MouseDown/ MouseUp events.
16898           - Added handling of middle and right mouse buttons
16899           - Removed old debug code
16901 2004-11-17  Jackson Harper  <jackson@ximian.com>
16903         * XplatUIX11.cs: Use the new Mono.Unix namespace.
16905 2004-11-17  Ravindra <rkumar@novell.com>
16907         * ListView.cs: Added event handling for MouseMove/Up/Down.
16908         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
16909         * ThemeWin32Classic.cs: We need to clear the graphics context and
16910         draw column header in a proper state.
16913 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
16915         *  Menu.cs: fixes signature
16917 2004-11-16  Peter Bartok  <pbartok@novell.com>
16919         * XplatUIX11.cs (GetMessage): Implemented generation of
16920           double click mouse messages
16922 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
16924         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
16925         not by menu
16927 2004-11-11  Peter Bartok  <pbartok@novell.com>
16929         * HandleData.cs: Added Visible property
16930         * XplatUIX11.cs (IsVisible): Now uses Visible property from
16931           HandleData
16932         * XplatUIX11.cs: Removed old debug leftovers
16933         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
16934         * Control.cs (WndProc): Removed old debug leftovers,
16935           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
16936           needed WM_SIZE handling
16938 2004-11-11  Jackson Harper  <jackson@ximian.com>
16940         * OwnerDrawPropertyBag.cs:
16941         * TreeViewImageIndexConverter.cs: Initial implementation
16943 2004-11-10  Jackson Harper  <jackson@ximian.com>
16945         * ThemeWin32Classic.cs:
16946         * TabControl.cs: instead of moving tabs by the slider pos just
16947         start drawing at the tab that is offset by the slider. This way
16948         scrolling always moves by exactly one tab.
16950 2004-11-10  Jackson Harper  <jackson@ximian.com>
16952         * TabControl.cs: You can only scroll left when the slider has
16953         already ben moved right.
16954         
16955 2004-11-10  Jackson Harper  <jackson@ximian.com>
16957         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
16958         the clip area.
16959         
16960 2004-11-10  Jackson Harper  <jackson@ximian.com>
16962         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
16963         clip area.
16964         
16965 2004-11-09  Jackson Harper  <jackson@ximian.com>
16967         * TabControl.cs (CalcXPos): New helper method so we can determine
16968         the proper place to start drawing vertical tabs.
16969         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
16970         
16971 2004-11-09  Jackson Harper  <jackson@ximian.com>
16973         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
16974         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
16975         and Bottom, left and right are illegal values for this and
16976         multiline is enabled when the alignment is set to left or right.
16977         (DrawTab): Each alignment block should draw the text itself now
16978         because Left requires special love. Also add rendering for Left
16979         aligned tabs.
16980         
16981 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
16983         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
16984         does not destroy the windows, removes debugging messages
16986 2004-11-09  jba  <jba-mono@optusnet.com.au>
16988         * ThemeWin32Classic.cs
16989         (DrawButtonBase): Fix verticle text rect clipping in windows
16990         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
16991         rendering and incorrect text rect clipping
16992         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
16993         rendering and incorrect text rect clipping
16994         
16995 2004-11-08  Jackson Harper  <jackson@ximian.com>
16997         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
16998         bottom when they are bottom aligned so the bottoms of the tabs get
16999         displayed.
17000         * TabControl.cs (DropRow): Move rows up instead of down when the
17001         tab control is bottom aligned.
17003 2004-11-08 13:59  pbartok
17005         * XplatUIX11.cs:
17006           - Added handling for various window styles
17007           - Added handling for popup windows
17008           - Added SetTopmost handling
17010 2004-11-08 13:55  pbartok
17012         * XplatUIWin32.cs:
17013           - Added argument to SetTopmost method
17014           - Fixed broken ClientToScreen function
17016 2004-11-08 13:53  pbartok
17018         * XplatUIStructs.cs:
17019           - Added missing WS_EX styles
17021 2004-11-08 13:53  pbartok
17023         * XplatUI.cs, XplatUIDriver.cs:
17024           - Added argument to SetTopmost
17026 2004-11-08 13:52  pbartok
17028         * X11Structs.cs:
17029           - Added XSetWindowAttributes structure
17030           - Improved XWindowAttributes structure
17031           - Added SetWindowValuemask enum
17032           - Added window creation arguments enum
17033           - Added gravity enum
17034           - Added Motif hints structure
17035           - Added various Motif flags and enums
17036           - Added PropertyMode enum for property functions
17038 2004-11-08 13:50  pbartok
17040         * Form.cs:
17041           - Fixed arguments for updated SetTopmost method
17043 2004-11-08 13:49  pbartok
17045         * ToolTip.cs:
17046           - Fixed arguments for updated SetTopmost function
17047           - Fixed usage of PointToClient
17049 2004-11-08 13:44  pbartok
17051         * MenuAPI.cs:
17052           - Added Clipping of children and siblings
17054 2004-11-08 13:41  pbartok
17056         * MainMenu.cs:
17057           - Removed SetMenuBarWindow call. We do this in Form.cs
17059 2004-11-08 13:40  jackson
17061         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
17062           scrolling jimmi in the correct location with bottom aligned tabs
17064 2004-11-08 13:36  pbartok
17066         * ContainerControl.cs:
17067           - Implemented BindingContext
17068           - Implemented ParentForm
17070 2004-11-08 12:46  jackson
17072         * TabControl.cs: Put bottom rendered tabs in the right location
17074 2004-11-08 07:15  jordi
17076         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
17077           removes dead code
17079 2004-11-05 17:30  jackson
17081         * TabControl.cs: When selected tabs are expanded make sure they
17082           don't go beyond the edges of the tab control
17084 2004-11-05 14:57  jackson
17086         * TabControl.cs: Reset show_slider so if the control is resized to
17087           a size where it is no longer needed it's not displayed anymore
17089 2004-11-05 13:16  jackson
17091         * TabControl.cs: Make tab pages non visible when added to the
17092           control
17094 2004-11-05 12:42  jackson
17096         * TabControl.cs: Implement SizeMode.FillToRight
17098 2004-11-05 12:16  jackson
17100         * Control.cs: Do not call CreateHandle if the handle is already
17101           created
17103 2004-11-05 11:46  jackson
17105         * TabControl.cs: Remove superflous call to CalcTabRows
17107 2004-11-05 09:07  jackson
17109         * XplatUIX11.cs: Update for Mono.Posix changes
17111 2004-11-05 07:00  ravindra
17113         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
17114           scrolling.
17116 2004-11-04 22:47  jba
17118         * ThemeWin32Classic.cs:
17119           - Fix Button rendering for FlatStyle = Flat or Popup
17120           - Fix RadioButton and CheckBox rendering when Appearance = Button
17121             (normal and flatstyle).
17122           - Correct outer rectangle color when drawing focus rectangle
17123           - Adjust button bounds to be 1 px smaller when focused
17124           - Make button not draw sunken 3d border when pushed (windows compat)
17125           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
17126           - Offset the text in RadioButton and Checkbox when being rendered as
17127           a button.
17128           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
17129           radiobuttons
17130           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
17131           - Fixed disabled text rendering for normally rendered radiobuttons
17133 2004-11-04 10:26  jackson
17135         * TabControl.cs: Recalculate tab rows when resizing
17137 2004-11-04 07:47  jordi
17139         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
17140           collection completion, drawing issues, missing features
17142 2004-11-04 05:03  ravindra
17144         * ScrollBar.cs:
17145                 - We need to recalculate the Thumb area when
17146                 LargeChange/maximum/minimum values are changed.
17147           - We set the 'pos' in UpdatePos() method to minimum, if it's less
17148                 than minimum. This is required to handle the case if large_change is
17149                 more than max, and use LargeChange property instead of large_change
17150                 variable.
17151           - We return max+1 when large_change is more than max, like MS does.
17153 2004-11-04 04:29  ravindra
17155         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
17156                 - Changed default value signatures (prefixed all with ListView).
17157                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
17158                 ListView.
17159           - Fixed calculations for ListViewItem and implemented Clone()
17160           method.
17162 2004-11-04 04:26  ravindra
17164         * Theme.cs, ThemeWin32Classic.cs:
17165                 - Changed default ListView values signatures (prefixed all with
17166                 ListView).
17167           - Fixed default size values for VScrollBar and HScrollBar.
17168                 - Fixed DrawListViewItem method.
17170 2004-11-04 04:05  ravindra
17172         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
17174 2004-11-04 04:04  ravindra
17176         * ImageList.cs: Implemented the missing overload for Draw method.
17178 2004-11-03 19:29  jackson
17180         * TabControl.cs: Handle dropping rows on selection properly
17182 2004-11-03 11:59  jackson
17184         * TabControl.cs: remove debug code
17186 2004-11-03 11:52  jackson
17188         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
17189           the scrolly widgerywoo
17191 2004-11-02 13:52  jackson
17193         * TabControl.cs: Resize the tab pages and tabs when the tab control
17194           is resized
17196 2004-11-02 13:40  jackson
17198         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
17199           selected tab to the bottom
17201 2004-11-02 13:39  jackson
17203         * TabPage.cs: Store the tab pages row
17205 2004-11-02 12:33  jordi
17207         * MenuItem.cs: fixes handle creation
17209 2004-11-02 11:42  jackson
17211         * TabControl.cs: signature fix
17213 2004-11-02 08:56  jackson
17215         * TabControl.cs: Calculate whether the tab is on an edge properly.
17216           Remove top secret debugging code
17218 2004-11-01 19:57  jackson
17220         * TabControl.cs: Add click handling, and proper sizing
17222 2004-11-01 19:47  jackson
17224         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
17225           tab controls
17227 2004-11-01 19:39  jackson
17229         * TabPage.cs: add internal property to store the bounds of a tab
17230           page
17232 2004-10-30 04:23  ravindra
17234         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
17235           values.
17237 2004-10-30 04:21  ravindra
17239         * ListView.cs, ListViewItem.cs: Added support for scrolling and
17240           fixed calculations.
17242 2004-10-30 03:06  pbartok
17244         * XplatUIX11.cs:
17245           - Removed extension of DllImported libs
17247 2004-10-29 09:55  jordi
17249         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
17250           navigation, itemcollection completion, menu fixes
17252 2004-10-27 22:58  pbartok
17254         * XplatUIX11.cs:
17255           - Now throws a nice error message when no X display could be opened
17257 2004-10-26 13:51  jordi
17259         * ListView.cs: removes warning
17261 2004-10-26 03:55  ravindra
17263         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
17264           ThemeWin32Classic.cs: Some formatting for my last checkins.
17266 2004-10-26 03:36  ravindra
17268         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
17269           control and default values.
17271 2004-10-26 03:35  ravindra
17273         * Theme.cs: Added some default values for ListView control.
17275 2004-10-26 03:33  ravindra
17277         * ToolBar.cs: ToolBar should use the user specified button size, if
17278           there is any. Added a size_specified flag for the same.
17280 2004-10-26 03:33  ravindra
17282         * ColumnHeader.cs: Added some internal members and calculations for
17283           ColumnHeader.
17285 2004-10-26 03:32  ravindra
17287         * ListViewItem.cs: Calculations for ListViewItem.
17289 2004-10-26 03:31  ravindra
17291         * ListView.cs: Added some internal members and calculations for
17292           ListView.
17294 2004-10-22 13:31  jordi
17296         * MenuAPI.cs: speedup menus drawing
17298 2004-10-22 13:16  jackson
17300         * XplatUIX11.cs: Make sure to update exposed regions when adding an
17301           expose event
17303 2004-10-22 11:49  jackson
17305         * Control.cs: oops
17307 2004-10-22 11:41  jackson
17309         * Control.cs: Check to see if the window should have its background
17310           repainted by X when drawing.
17312 2004-10-22 11:31  jackson
17314         * XplatUIX11.cs: When invalidating areas only use XClearArea if
17315           clear is true, this way we do not get flicker from X repainting the
17316           background
17318 2004-10-22 11:28  jackson
17320         * XEventQueue.cs: Queue properly
17322 2004-10-21 09:38  jackson
17324         * XEventQueue.cs: Fix access modifier
17326 2004-10-21 09:36  jackson
17328         * XEventQueue.cs: Don't loose messages
17330 2004-10-21 09:22  jackson
17332         * XEventQueue.cs: Don't loose messages
17334 2004-10-20 04:15  jordi
17336         * BootMode.cs: enum need it by SystemInfo
17338 2004-10-19 21:58  pbartok
17340         * XplatUIWin32.cs:
17341           - Small sanity check
17343 2004-10-19 21:56  pbartok
17345         * Form.cs:
17346           - Added private FormParentWindow class which acts as the container
17347             for our form and as the non-client area where menus are drawn
17348           - Added/Moved required tie-ins to Jordi's menus
17349           - Fixed/Implemented the FormStartPosition functionality
17351 2004-10-19 21:52  pbartok
17353         * Control.cs:
17354           - Removed unneeded locals
17355           - Added code to all size and location properties to understand and
17356             deal with the parent container of Form
17358 2004-10-19 21:33  pbartok
17360         * Application.cs:
17361           - Fixed to deal with new Form subclasses for menus
17363 2004-10-19 17:48  jackson
17365         * XEventQueue.cs: commit correct version of file
17367 2004-10-19 16:50  jackson
17369         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
17371 2004-10-19 16:15  jordi
17373         * MenuAPI.cs: MenuBarCalcSize returns the height
17375 2004-10-19 08:31  pbartok
17377         * Control.cs:
17378           - Added missing call to PreProcessMessage before calling OnXXXKey
17379           methods
17381 2004-10-19 00:04  ravindra
17383         * ToolTip.cs: Fixed constructor.
17385 2004-10-18 09:31  jordi
17387         * MenuAPI.cs: menuitems in menubars do not have shortcuts
17389 2004-10-18 09:26  jordi
17391         * MenuItem.cs: fixes MenuItem class signature
17393 2004-10-18 08:56  jordi
17395         * MenuAPI.cs: prevents windows from showing in the taskbar
17397 2004-10-18 00:28  ravindra
17399         * ToolTip.cs: Suppressed a warning message.
17401 2004-10-18 00:27  ravindra
17403         * Control.cs: Default value of visible property must be true.
17405 2004-10-17 23:19  pbartok
17407         * ToolTip.cs:
17408           - Complete implementation
17410 2004-10-17 23:19  pbartok
17412         * XplatUIX11.cs:
17413           - Added EnableWindow method
17414           - Added SetModal stub
17415           - Added generation of WM_ACTIVATE message (still needs testing)
17416           - Added SetTopMost stub
17417           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
17419 2004-10-17 23:17  pbartok
17421         * XplatUIWin32.cs:
17422           - Removed VirtualKeys to XplatUIStructs
17423           - Implemented SetTopMost method
17424           - Implemented EnableWindow method
17425           - Bugfix in ScreenToClient()
17426           - Bugfixes in ClientToScreen()
17428 2004-10-17 22:51  pbartok
17430         * XplatUIStructs.cs:
17431           - Added WS_EX styles to WindowStyles enumeration
17433 2004-10-17 22:50  pbartok
17435         * XplatUI.cs, XplatUIDriver.cs:
17436           - Added method for enabling/disabling windows
17437           - Added method for setting window modality
17438           - Added method for setting topmost window
17440 2004-10-17 22:49  pbartok
17442         * ThemeWin32Classic.cs:
17443           - Added ToolTip drawing code
17445 2004-10-17 22:49  pbartok
17447         * Theme.cs:
17448           - Added ToolTip abstracts
17450 2004-10-17 22:47  pbartok
17452         * Form.cs:
17453           - Fixed Form.ControlCollection to handle owner relations
17454           - Added Owner/OwnedForms handling
17455           - Implemented Z-Ordering for owned forms
17456           - Removed unneeded private overload of ShowDialog
17457           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
17458             so I hope)
17459           - Fixed Close(), had wrong default
17460           - Added firing of OnLoad event
17461           - Added some commented out debug code for Ownership handling
17463 2004-10-17 22:16  pbartok
17465         * Control.cs:
17466           - Fixed/implemented flat list of controls
17468 2004-10-17 22:14  pbartok
17470         * Application.cs:
17471           - Added code to simulate modal dialogs on Win32
17473 2004-10-17 16:11  jordi
17475         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
17476           mouse event
17478 2004-10-17 13:39  jordi
17480         * MenuAPI.cs: menu drawing fixes
17482 2004-10-15 09:10  ravindra
17484         * StructFormat.cs: General Enum.
17486 2004-10-15 09:09  ravindra
17488         * SizeGripStyle.cs: Enum for Form.
17490 2004-10-15 09:08  ravindra
17492         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
17493           in Theme for ListView.
17495 2004-10-15 09:06  ravindra
17497         * ColumnHeader.cs: Flushing some formatting changes.
17499 2004-10-15 09:05  ravindra
17501         * ListViewItem.cs: Implemented GetBounds method and fixed coding
17502           style.
17504 2004-10-15 09:03  ravindra
17506         * ListView.cs: Implemented Paint method and fixed coding style.
17508 2004-10-15 07:34  jordi
17510         * MenuAPI.cs: fix for X11
17512 2004-10-15 07:32  ravindra
17514         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
17515                 - Renamed Paint() method to Draw() for clarity. Also, moved
17516                 DrawImage() to OnPaint().
17518 2004-10-15 07:25  ravindra
17520         * CheckBox.cs, RadioButton.cs:
17521                 - Removed Redraw (), we get it from ButtonBase.
17522                 - Implemented Paint (), to do class specific painting.
17524 2004-10-15 07:16  ravindra
17526         * ButtonBase.cs:
17527                 - Redraw () is not virtual now.
17528                 - Added an internal virtual method Paint (), so that
17529                 derived classes can do their painting on their own.
17530                 - Modified OnPaint () to call Paint ().
17532 2004-10-15 06:43  jordi
17534         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
17535           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
17537 2004-10-15 00:30  ravindra
17539         * MessageBox.cs:
17540                 - MessageBox on windows does not have min/max buttons.
17541                 This change in CreateParams fixes this on Windows. We
17542                 still need to implement this windowstyle behavior in
17543                 our X11 driver.
17545 2004-10-14 05:14  ravindra
17547         * ToolBar.cs:
17548                 - Changed Redraw () to do a Refresh () always.
17549                 - Fixed the MouseMove event handling when mouse is pressed,
17550                 ie drag event handling.
17551                 - Replaced the usage of ToolBarButton.Pressed property to
17552                 ToolBarButton.pressed internal variable.
17554 2004-10-14 05:10  ravindra
17556         * ToolBarButton.cs:
17557                 - Added an internal member 'inside' to handle mouse move
17558                 with mouse pressed ie mouse drag event.
17559                 - Changed 'Pressed' property to return true only when
17560                 'inside' and 'pressed' are both true.
17561                 - Some coding style love.
17563 2004-10-14 00:17  ravindra
17565         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
17566           public method.
17568 2004-10-14 00:15  ravindra
17570         * ButtonBase.cs: Redraw () related improvements.
17572 2004-10-14 00:14  ravindra
17574         * MessageBox.cs: Moved InitFormSize () out of Paint method and
17575           removed unnecessary calls to Button.Show () method.
17577 2004-10-13 17:50  pbartok
17579         * XplatUIX11.cs:
17580           - Formatting fix
17581           - Removed destroying of window until we solve the problem of X
17582             destroying the window before us on shutdown
17584 2004-10-13 16:32  pbartok
17586         * ButtonBase.cs:
17587           - Now Redraws on MouseUp for FlatStyle Flat and Popup
17589 2004-10-13 14:18  pbartok
17591         * XplatUIX11.cs:
17592           - Added code to destroy the X window
17594 2004-10-13 14:18  pbartok
17596         * XplatUIWin32.cs:
17597           - Added code to destroy a window
17599 2004-10-13 14:12  pbartok
17601         * ButtonBase.cs:
17602           - Added the Redraw on Resize that got dropped in the last rev
17604 2004-10-13 09:06  pbartok
17606         * ThemeWin32Classic.cs:
17607           - Path from John BouAntoun:
17608             * Fix check rendering (centre correctly for normal style, offset
17609               correctly for FlatStyle).
17610             * Fix border color usage (use backcolor) for FlatStyle.Popup
17611             * Use checkbox.Capture instead of checkbox.is_pressed when
17612               rendering flatstyle states.
17614 2004-10-12 21:48  pbartok
17616         * ThemeWin32Classic.cs:
17617           - Removed all occurences of SystemColors and replaced them with the
17618             matching theme color
17620 2004-10-12 21:41  pbartok
17622         * ThemeWin32Classic.cs:
17623           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
17624             him using the function for flatstyle drawing
17625           - Changed functions to use the new version of CPDrawBorder3D
17627 2004-10-12 21:15  pbartok
17629         * ControlPaint.cs:
17630           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
17631             match MS documentation. They need to return defined colors if the
17632             passed color matches the configured control color. Thanks to John
17633             BouAntoun for pointing this out.
17635 2004-10-12 20:57  pbartok
17637         * Control.cs:
17638           - Fix from John BouAntoun: Raise ForeColorChanged event when text
17639             color is changed
17641 2004-10-12 20:46  pbartok
17643         * CheckBox.cs:
17644           - Fix from John BouAntoun: Now properly sets the Appearance property
17646 2004-10-12 20:45  pbartok
17648         * ThemeWin32Classic.cs:
17649           - Fixes from John BouAntoun: now handles forecolors and backcolors
17650             for flatstyle rendered controls much better; It also fixes normal
17651             checkbox rendering when pushed or disabled.
17653 2004-10-08 02:50  jordi
17655         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
17656           work
17658 2004-10-07 08:56  jordi
17660         * ThemeWin32Classic.cs: Removes deletion of cached brushes
17662 2004-10-06 03:59  jordi
17664         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
17665           XplatUIWin32.cs: removes warnings from compilation
17667 2004-10-05 12:23  jackson
17669         * RadioButton.cs: Fix ctor
17671 2004-10-05 11:10  pbartok
17673         * MessageBox.cs:
17674           - Partial implementation by Benjamin Dasnois
17676 2004-10-05 10:15  jackson
17678         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
17679           by John BouAntoun
17681 2004-10-05 03:07  ravindra
17683         * ToolBar.cs:
17684                 - Removed a private method, Draw ().
17685                 - Fixed the ButtonDropDown event handling.
17686                 - Fixed MouseMove event handling.
17688 2004-10-05 03:04  ravindra
17690         * ThemeWin32Classic.cs:
17691                 - Added DrawListView method and ListViewDefaultSize property.
17692                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
17693                 - Changed DOS style CRLF to Unix format (dos2unix).
17695 2004-10-05 03:03  ravindra
17697         * Theme.cs:
17698                 - Added DrawListView method and ListViewDefaultSize property.
17700 2004-10-05 02:42  ravindra
17702         * ToolBarButton.cs: Added an internal member dd_pressed to handle
17703           clicks on DropDown arrow.
17705 2004-10-04 22:56  jackson
17707         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
17708           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
17709           Control handle the buffers, derived classes should not have to
17710           CreateBuffers themselves.
17712 2004-10-04 21:20  jackson
17714         * StatusBar.cs: The control handles resizing the buffers now.
17716 2004-10-04 21:18  jackson
17718         * Control.cs: When resizing the buffers should be invalidated. This
17719           should be handled in Control not in derived classes.
17721 2004-10-04 14:45  jackson
17723         * TabPage.cs: oops
17725 2004-10-04 02:14  pbartok
17727         * LeftRightAlignment.cs:
17728           - Initial check-in
17730 2004-10-04 01:09  jordi
17732         * ThemeWin32Classic.cs: fixes right button position causing right
17733           button not showing on horizontal scrollbars
17735 2004-10-02 13:12  pbartok
17737         * XplatUIX11.cs:
17738           - Simplified the Invalidate method by using an X call instead of
17739             generating the expose ourselves
17740           - Added an expose when the window background is changed
17741           - Implemented ClientToScreen method
17743 2004-10-02 13:08  pbartok
17745         * XplatUIWin32.cs:
17746           - Added Win32EnableWindow method (test for implementing modal
17747           dialogs)
17748           - Added ClientToScreen method and imports
17750 2004-10-02 13:07  pbartok
17752         * XplatUI.cs, XplatUIDriver.cs:
17753           - Added ClientToScreen coordinate translation method
17755 2004-10-02 13:06  pbartok
17757         * KeyPressEventArgs.cs:
17758           - Fixed access level for constructor
17760 2004-10-02 13:06  pbartok
17762         * NativeWindow.cs:
17763           - Changed access level for the window_collection hash table
17765 2004-10-02 13:05  pbartok
17767         * Form.cs:
17768           - Added KeyPreview property
17769           - Added Menu property (still incomplete, pending Jordi's menu work)
17770           - Implemented ProcessCmdKey
17771           - Implemented ProcessDialogKey
17772           - Implemented ProcessKeyPreview
17774 2004-10-02 13:02  pbartok
17776         * Control.cs:
17777           - Added private method to get the Control object from the window
17778           handle
17779           - Implemented ContextMenu property
17780           - Implemented PointToScreen
17781           - Implemented PreProcessMessage
17782           - Implemented IsInputChar
17783           - Implemented IsInputKey
17784           - Implemented ProcessCmdKey
17785           - Completed ProcessKeyEventArgs
17786           - Fixed message loop to call the proper chain of functions on key
17787           events
17788           - Implemented ProcessDialogChar
17789           - Implemented ProcessDialogKey
17790           - Implemented ProcessKeyMessage
17791           - Implemented ProcessKeyPreview
17792           - Added RaiseDragEvent stub (MS internal method)
17793           - Added RaiseKeyEvent stub (MS internal method)
17794           - Added RaiseMouseEvent stub (MS Internal method)
17795           - Added RaisePaintEvent stub (MS Internal method)
17796           - Added ResetMouseEventArgs stub (MS Internal method)
17797           - Implemented RtlTranslateAlignment
17798           - Implemented RtlTranslateContent
17799           - Implemented RtlTranslateHorizontal
17800           - Implemented RtlTranslateLeftRight
17801           - Added generation of KeyPress event
17803 2004-10-02 05:57  ravindra
17805         * ListViewItem.cs: Added attributes.
17807 2004-10-02 05:32  ravindra
17809         * ListView.cs: Added attributes.
17811 2004-10-01 11:53  jackson
17813         * Form.cs: Implement the Close method so work on MessageBox can
17814           continue.
17816 2004-09-30 14:06  pbartok
17818         * XplatUIX11.cs:
17819           - Bug fixes
17821 2004-09-30 11:34  jackson
17823         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
17825 2004-09-30 07:26  ravindra
17827         * ListViewItemConverter.cs: Converter for ListViewItem.
17829 2004-09-30 07:26  ravindra
17831         * SortOrder.cs: Enum for ListView control.
17833 2004-09-30 07:25  ravindra
17835         * ColumnHeader.cs: Supporting class for ListView control.
17837 2004-09-30 07:24  ravindra
17839         * ListView.cs, ListViewItem.cs: Initial implementation.
17841 2004-09-30 07:20  ravindra
17843         * ItemActivation.cs: Enum for ListView Control.
17845 2004-09-29 20:29  pbartok
17847         * XplatUIX11.cs:
17848           - Added lookup of pixel value for background color; tries to get a
17849             color 'close' to the requested color, it avoids having to create a
17850             colormap.  Depending on the display this could mean the used color
17851             is slightly off the desired color. Might have to change it to a more
17852             resource intensive colormap approach, but it will work as a
17853           workaround to avoid red screens.
17855 2004-09-29 14:27  jackson
17857         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
17859 2004-09-28 12:44  pbartok
17861         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
17862           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
17863           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
17864           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
17865           TrackBar.cs, VScrollBar.cs:
17866           - Streamlined Theme interfaces:
17867             * Each DrawXXX method for a control now is passed the object for
17868               the control to be drawn in order to allow accessing any state the
17869               theme might require
17871             * ControlPaint methods for the theme now have a CP prefix to avoid
17872               name clashes with the Draw methods for controls
17874             * Every control now retrieves it's DefaultSize from the current
17875             theme
17877 2004-09-28 12:17  jackson
17879         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
17880           drawing
17882 2004-09-24 14:57  jackson
17884         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
17885           Gives us a nice little performance boost.
17887 2004-09-24 12:02  jackson
17889         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
17890           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
17891           Control and supporting classes. Initial checkin
17893 2004-09-23 13:08  jackson
17895         * Form.cs: Temp build fixage
17897 2004-09-23 01:39  ravindra
17899         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
17900           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
17901           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
17902           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
17903           EventHandlers needed by ListView Control.
17905 2004-09-22 14:12  pbartok
17907         * ScrollableControl.cs:
17908           - Implemented DockPadding property
17909           - Implemented AutoScroll property
17910           - Implemented AutoScrollMargin property
17911           - Implemented AutoScrollMinSize property
17912           - Implemented AutoScrollPosition property
17913           - Implemented DisplayRectangle property (still incomplete)
17914           - Implemented CreateParams property
17915           - Implemented HScroll property
17916           - Implemented VScroll property
17917           - Implemented OnVisibleChanged property
17919 2004-09-22 14:09  pbartok
17921         * Form.cs:
17922           - Added Form.ControllCollection class
17923           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
17924             RemoveOwnedForm (still incomplete, missing on-top and common
17925             minimize/maximize behaviour)
17926           - Added StartPosition property (still incomplete, does not use when
17927             creating the form)
17928           - Added ShowDialog() methods (still incomplete, missing forcing the
17929             dialog modal)
17931 2004-09-22 14:05  pbartok
17933         * Application.cs:
17934           - Added message loop for modal dialogs
17936 2004-09-22 14:02  pbartok
17938         * GroupBox.cs:
17939           - Fixed wrong types for events
17941 2004-09-22 14:00  pbartok
17943         * Shortcut.cs, FormWindowState.cs:
17944           - Fixed wrong values
17946 2004-09-22 12:01  jackson
17948         * Control.cs: Text is never null
17950 2004-09-20 22:14  pbartok
17952         * XplatUIWin32.cs:
17953           - Fixed accessibility level for Idle handler
17955 2004-09-20 18:54  jackson
17957         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
17958           XplatUIX11.cs: New message loop that uses poll so we don't get a
17959           busy loop
17961 2004-09-17 10:43  pbartok
17963         * ScrollBar.cs:
17964           - Fixed behaviour of arrow buttons. Now properly behaves like
17965             Buttons (and like Microsoft's scrollbar arrow buttons)
17967 2004-09-17 10:14  pbartok
17969         * ScrollBar.cs:
17970           - Added missing release of keyboard/mouse capture
17972 2004-09-17 06:18  jordi
17974         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
17975           Theme.cs: Very early menu support
17977 2004-09-16 17:45  pbartok
17979         * XplatUIWin32.cs:
17980           - Fixed sending a window to the front
17981           - Added overload for SetWindowPos to avoid casting
17983 2004-09-16 17:44  pbartok
17985         * Control.cs:
17986           - Added SendToBack and BringToFront methods
17988 2004-09-16 07:00  ravindra
17990         * Copyright: Added Novell URL.
17992 2004-09-16 07:00  ravindra
17994         * ToolBar.cs: Invalidate should be done before redrawing.
17996 2004-09-15 21:19  ravindra
17998         * ColumnHeaderStyle.cs: Enum for ListView Control.
18000 2004-09-15 21:18  ravindra
18002         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
18003           ListView Control.
18005 2004-09-13 18:26  jackson
18007         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
18008           properly
18010 2004-09-13 18:13  jackson
18012         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
18013           a second thread and post messages into the main threads message
18014           queue. This makes timing much more consistent. Both win2K and XP
18015           have a minimum timer value of 15 milliseconds, so we now do this
18016           too.
18018 2004-09-13 15:18  pbartok
18020         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
18021           XplatUIX11.cs:
18022           - Added Z-Ordering methods
18024 2004-09-13 10:56  pbartok
18026         * Form.cs:
18027           - Fixed #region names
18028           - Moved properties and methods into their proper #regions
18030 2004-09-13 10:51  pbartok
18032         * Form.cs:
18033           - Added Accept and CancelButton properties
18034           - Added ProcessDialogKey() method
18036 2004-09-13 08:18  pbartok
18038         * IWindowTarget.cs:
18039           - Initial check-in
18041 2004-09-10 21:50  pbartok
18043         * Control.cs:
18044           - Added DoDragDrop() [incomplete]
18045           - Properly implemented 'Visible' handling
18046           - Added SetVisibleCore()
18047           - Implemented FindChildAtPoint()
18048           - Implemented GetContainerControl()
18049           - Implemented Hide()
18051 2004-09-10 19:28  pbartok
18053         * Control.cs:
18054           - Moved methods into their appropriate #regions
18055           - Reordered methods within regions alphabetically
18057 2004-09-10 18:57  pbartok
18059         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
18060           - Added method to retrieve text from window
18062 2004-09-10 18:56  pbartok
18064         * Control.cs:
18065           - Moved some internal functions into the internal region
18066           - Implemented FontHeight
18067           - Implemented RenderRightToLeft
18068           - Implemented ResizeRedraw
18069           - Implemented ShowFocusCues
18070           - Implemented ShowKeyboardCues
18071           - Implemented FromChildHandle
18072           - Implemented FromHandle
18073           - Implemented IsMnemonic
18074           - Implemented ReflectMessage
18075           - All public and protected Static Methods are now complete
18077 2004-09-10 16:54  pbartok
18079         * Control.cs:
18080           - Implemented remaining missing public instance properties
18081           - Alphabetized some out of order properties
18083 2004-09-10 05:51  ravindra
18085         * PictureBox.cs: Added a check for null image.
18087 2004-09-10 00:59  jordi
18089         * GroupBox.cs: remove cvs tag
18091 2004-09-09 05:25  ravindra
18093         * ToolBar.cs: Make redraw accessible from ToolBarButton.
18095 2004-09-09 05:23  ravindra
18097         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
18098           parent redraw.
18100 2004-09-09 02:28  pbartok
18102         * ThemeWin32Classic.cs:
18103           - Improve disabled string look
18105 2004-09-09 01:15  jordi
18107         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
18108           args and handler
18110 2004-09-08 23:56  ravindra
18112         * ItemBoundsPortion.cs: It's enum, not a class!
18114 2004-09-08 23:47  ravindra
18116         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
18117           Enums for Form.
18119 2004-09-08 21:13  ravindra
18121         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
18122           ListView control.
18124 2004-09-08 21:03  ravindra
18126         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
18127           avoid crash.
18129 2004-09-08 21:01  ravindra
18131         * ScrollableControl.cs: Removed unreachable code.
18133 2004-09-08 06:45  jordi
18135         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
18137 2004-09-08 01:00  jackson
18139         * XplatUIX11.cs: Only run the timers when updating the message
18140           queue. This effectively gives X messages a higher priority then
18141           timer messages. Timers still need love though
18143 2004-09-07 14:01  jackson
18145         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
18146           this for us and the handle is no longer valid.
18148 2004-09-07 13:59  jackson
18150         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
18151           loop that manages to not crash. TODO: Add poll and cleanup timers
18153 2004-09-07 11:12  jordi
18155         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
18157 2004-09-07 03:40  jordi
18159         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
18160           fixes, methods, multiple links
18162 2004-09-06 06:55  jordi
18164         * Control.cs: Caches ClientRectangle rectangle value
18166 2004-09-05 02:03  jordi
18168         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
18169           certain situations
18171 2004-09-04 11:10  jordi
18173         * Label.cs: Refresh when font changed
18175 2004-09-02 16:24  pbartok
18177         * Control.cs:
18178           - Added sanity check to creation of double buffer bitmap
18180 2004-09-02 16:24  pbartok
18182         * ButtonBase.cs:
18183           - Fixed selection of text color
18184           - Fixed handling of resize event; now properly recreates double
18185             buffering bitmap
18186           - Added missing assignment of TextAlignment
18187           - Added proper default for TextAlignment
18189 2004-09-02 14:26  pbartok
18191         * RadioButton.cs:
18192           - Added missing RadioButton.RadioButtonAccessibleObject class
18194 2004-09-02 14:26  pbartok
18196         * Control.cs:
18197           - Added missing Control.ControlAccessibleObject class
18198           - Started to implement Select()ion mechanisms, still very incomplete
18200 2004-09-02 14:25  pbartok
18202         * AccessibleObject.cs:
18203           - Added missing methods
18205 2004-09-02 14:23  pbartok
18207         * AccessibleNavigation.cs, AccessibleSelection.cs:
18208           - Initial check-in
18210 2004-09-02 10:32  jordi
18212         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
18213           pool for pens, brushes, and hatchbruses
18215 2004-09-01 15:30  jackson
18217         * StatusBar.cs: Fix typo
18219 2004-09-01 14:44  pbartok
18221         * RadioButton.cs:
18222           - Fixed state
18224 2004-09-01 14:39  pbartok
18226         * Button.cs, RadioButton.cs:
18227           - Functional initial check-in
18229 2004-09-01 14:01  pbartok
18231         * CheckBox.cs:
18232           - Added missing default
18233           - Added missing region mark
18235 2004-09-01 09:10  jordi
18237         * Label.cs: fixes method signatures, new methods, events, fixes
18238           autosize
18240 2004-09-01 07:19  jordi
18242         * Control.cs: Init string variables with an empty object
18244 2004-09-01 04:20  jordi
18246         * Control.cs: fires OnFontChanged event
18248 2004-08-31 20:07  pbartok
18250         * ButtonBase.cs:
18251           - Enabled display of strings
18253 2004-08-31 20:05  pbartok
18255         * Form.cs:
18256           - Added (partial) implementation of DialogResult; rest needs to be
18257             implemented when the modal loop code is done
18259 2004-08-31 19:55  pbartok
18261         * CheckBox.cs:
18262           - Fixed to match the removal of the needs_redraw concept
18264 2004-08-31 19:55  pbartok
18266         * ButtonBase.cs:
18267           - Removed the rather odd split between 'needs redraw' and redrawing
18268           - Now handles the events that require regeneration (ambient
18269             properties and size)
18271 2004-08-31 19:41  pbartok
18273         * Control.cs:
18274           - Added firing of BackColorChanged event
18275           - Added TopLevelControl property
18276           - Fixed handling of WM_ERASEBKGRND message
18278 2004-08-31 12:49  pbartok
18280         * ButtonBase.cs:
18281           - Removed debug
18282           - Minor fixes
18284 2004-08-31 12:48  pbartok
18286         * CheckBox.cs:
18287           - Finished (famous last words)
18289 2004-08-31 04:35  jordi
18291         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
18292           scrolling bugs, adds new methods
18294 2004-08-30 14:42  pbartok
18296         * CheckBox.cs:
18297           - Implemented CheckBox drawing code
18299 2004-08-30 14:42  pbartok
18301         * ButtonBase.cs:
18302           - Made Redraw() and CheckRedraw() virtual
18303           - Improved mouse up/down/move logic to properly track buttons
18305 2004-08-30 09:44  pbartok
18307         * CheckBox.cs:
18308           - Updated to fix broken build. Not complete yet.
18310 2004-08-30 09:28  pbartok
18312         * CheckState.cs:
18313           - Initial checkin
18315 2004-08-30 09:17  pbartok
18317         * Appearance.cs:
18318           - Initial check-in
18320 2004-08-27 16:12  ravindra
18322         * ToolBarButton.cs: Added TypeConverter attribute.
18324 2004-08-27 16:07  ravindra
18326         * ImageIndexConverter.cs: Implemented.
18328 2004-08-27 14:17  pbartok
18330         * Control.cs:
18331           - Removed unneeded stack vars
18332           - First attempt to fix sizing issues when layout is suspended
18334 2004-08-25 15:35  jordi
18336         * ScrollBar.cs: more fixes to scrollbar
18338 2004-08-25 14:04  ravindra
18340         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
18341           Added the missing divider code and grip for ToolBar Control.
18343 2004-08-25 13:20  pbartok
18345         * Control.cs:
18346           - Control now properly passes the ambient background color to child
18347             controls
18349 2004-08-25 13:20  jordi
18351         * ScrollBar.cs: small bug fix regarding bar position
18353 2004-08-25 12:33  pbartok
18355         * Timer.cs:
18356           - Now only calls SetTimer or KillTimer if the enabled state has
18357           changed
18359 2004-08-25 12:33  pbartok
18361         * XplatUIWin32.cs:
18362           - Fixed timer handling, now seems to work
18363           - Improved error message for window creation
18365 2004-08-25 12:32  pbartok
18367         * Control.cs:
18368           - Fixed generation of MouseUp message
18370 2004-08-25 12:29  jordi
18372         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
18373           and fixes for progressbar
18375 2004-08-24 18:43  ravindra
18377         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
18378           in ToolBar control.
18380 2004-08-24 17:15  pbartok
18382         * Panel.cs:
18383           - Added #region
18384           - Added missing events
18385           - Alphabetized
18387 2004-08-24 17:14  pbartok
18389         * StatusBar.cs, PictureBox.cs:
18390           - Now uses Control's CreateParams
18392 2004-08-24 16:36  pbartok
18394         * XplatUIX11.cs:
18395           - Fixed background color handling
18396           - Fixed sending of enter/leave events on a grab
18398 2004-08-24 16:35  pbartok
18400         * X11Structs.cs:
18401           - Refined definitions for CrossingEvent
18403 2004-08-24 12:37  jordi
18405         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
18406           formmating, methods signature, and adds missing events
18408 2004-08-24 12:24  jordi
18410         * Control.cs: fire OnEnabledChanged event
18412 2004-08-24 11:17  pbartok
18414         * XplatUIWin32.cs:
18415           - Implemented SetTimer() and KillTimer()
18417 2004-08-24 11:16  pbartok
18419         * XplatUIX11.cs:
18420           - Now uses Remove instead of Add to kill the timer
18422 2004-08-24 10:16  jackson
18424         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
18425           picture boxes in the theme now. Draw picture box borders and obey
18426           sizing modes
18428 2004-08-24 05:49  jackson
18430         * Timer.cs: Remove top secret debugging code
18432 2004-08-24 05:34  jackson
18434         * PictureBox.cs: Temp hack to make picture boxes draw their full
18435           image
18437 2004-08-24 05:29  jackson
18439         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
18440           XplatUIX11.cs: Move timers to the driver level. On X they are
18441           queued by the driver and checked on idle.
18443 2004-08-24 01:07  jackson
18445         * XplatUIX11.cs: Use a queue for async messages instead of passing
18446           them as ClientMessages since that was totally broken. Also simply
18447           check for events and return an idle message if none are found. This
18448           gives us an idle handler, and prevents deadlocking when no messages
18449           are in the queue.
18451 2004-08-23 18:19  ravindra
18453         * XplatUIWin32.cs: Removed the unwanted destructor.
18455 2004-08-23 17:27  pbartok
18457         * ButtonBase.cs:
18458           - Finishing touches. Works now, just needs some optimizations.
18460 2004-08-23 16:53  jordi
18462         * ScrollBar.cs: small fix
18464 2004-08-23 16:45  pbartok
18466         * Application.cs:
18467           - Removed debug output
18468           - Simplifications
18470 2004-08-23 16:43  jordi
18472         * ScrollBar.cs: [no log message]
18474 2004-08-23 16:10  pbartok
18476         * Form.cs:
18477           - Fixed handling of WM_CLOSE message
18478           - Removed debug output
18480 2004-08-23 16:09  pbartok
18482         * Application.cs:
18483           - Added handling of Idle event
18484           - Added handling of form closing
18485           - Fixed reporting of MessageLoop property
18486           - Removed some unneeded code, should provide a bit of a speedup
18488 2004-08-23 15:22  pbartok
18490         * Control.cs:
18491           - Added InitLayout() method
18492           - Added code to properly perform layout when Anchor or Dock property
18493             is changed
18494           - Changed 'interpretation' of ResumeLayout. MS seems to have a
18495             LAMESPEC, tried to do it in a way that makes sense
18497 2004-08-23 14:10  jordi
18499         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
18500           properties and methods
18502 2004-08-23 13:55  pbartok
18504         * Control.cs:
18505           - Properly fixed Jordi's last fix
18506           - Now uses Cursor's Position property instead of calling XplatUI
18507           directly
18509 2004-08-23 13:44  jordi
18511         * PaintEventHandler.cs: Adding missing attribute
18513 2004-08-23 13:39  pbartok
18515         * Cursor.cs:
18516           - Implemented Position property
18518 2004-08-23 13:39  pbartok
18520         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
18521           - Added method to move mouse cursor
18523 2004-08-23 13:39  pbartok
18525         * XplatUIX11.cs:
18526           - Fixed setting of background color
18527           - Added method to move mouse cursor
18529 2004-08-23 13:16  jordi
18531         * Control.cs: avoids null exception
18533 2004-08-22 17:46  jackson
18535         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
18536           PictureBox
18538 2004-08-22 17:40  jackson
18540         * XplatUIX11.cs: Add some missing locks
18542 2004-08-22 15:10  pbartok
18544         * Control.cs, Form.cs:
18545           - Removed OverlappedWindow style from Control, instead it's default
18546             now is child
18547           - Made form windows OverlappedWindow by default
18549 2004-08-22 13:34  jackson
18551         * ScrollBar.cs: Update the position through the Value property so
18552           the OnValueChanged event is raised.
18554 2004-08-22 12:04  pbartok
18556         * SWF.csproj:
18557           - Added Cursor.cs and UserControl.cs
18559 2004-08-22 12:03  pbartok
18561         * Cursor.cs:
18562           - Started implementation, not usable yet
18564 2004-08-22 12:00  pbartok
18566         * UserControl.cs:
18567           - Implemented UserControl (complete)
18569 2004-08-21 19:20  ravindra
18571         * ToolBar.cs: Correcting the formatting mess of VS.NET.
18573 2004-08-21 18:49  ravindra
18575         * ToolBar.cs: Probably this completes the missing attributes in
18576           toolbar control.
18578 2004-08-21 18:03  ravindra
18580         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
18581           Fixed toolbar control signatures.
18583 2004-08-21 16:32  pbartok
18585         * LinkLabel.cs:
18586           - Signature Fixes
18588 2004-08-21 16:30  pbartok
18590         * Label.cs:
18591           - Signature fixes
18593 2004-08-21 16:19  pbartok
18595         * Control.cs, Label.cs:
18596           - Signature fixes
18598 2004-08-21 15:57  pbartok
18600         * ButtonBase.cs:
18601           - Added loads of debug output for development
18602           - Fixed typo in method name
18604 2004-08-21 15:52  pbartok
18606         * ToolBarButtonClickEventArgs.cs:
18607           - Added missing base class
18609 2004-08-21 14:53  pbartok
18611         * Control.cs:
18612           - Updated to match new GrabWindow signature
18614 2004-08-21 14:51  pbartok
18616         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
18617           - Added method to get default display size
18619 2004-08-21 14:23  pbartok
18621         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
18622           - Added method to query current grab state
18623           - Added argument to allow confining a grab to a window
18625 2004-08-21 14:22  pbartok
18627         * Keys.cs:
18628           - Added [Flags] attribute so that modifiers can be used in bitwise
18629           ops
18631 2004-08-21 14:21  pbartok
18633         * TrackBar.cs, ScrollBar.cs:
18634           - Replaced direct XplatUI calls with their Control counterpart
18636 2004-08-21 13:32  pbartok
18638         * Control.cs:
18639           - Implemented Created property
18641 2004-08-21 13:28  pbartok
18643         * Control.cs:
18644           - Implemented ContainsFocus
18646 2004-08-21 13:26  pbartok
18648         * Control.cs:
18649           - Implemented CausesValidation
18651 2004-08-21 13:21  pbartok
18653         * Control.cs:
18654           - Implemented CanFocus
18655           - Implemented CanSelect
18656           - Implemented Capture
18658 2004-08-21 12:35  pbartok
18660         * XplatUIWin32.cs:
18661           - Fixed bug with Async message handling
18662           - Implemented getting the ModifierKeys
18664 2004-08-21 12:32  jackson
18666         * AsyncMethodResult.cs: Make sure we have the mutex before we
18667           release it. Fixes BeginInvoke on windows
18669 2004-08-21 11:31  pbartok
18671         * XplatUIWin32.cs, XplatUIX11.cs:
18672           - Drivers now return proper mouse state
18674 2004-08-21 10:54  jackson
18676         * Control.cs: Implement EndInvoke
18678 2004-08-21 10:48  jackson
18680         * Timer.cs: Remove unneeded finalizer
18682 2004-08-20 19:52  ravindra
18684         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
18685           in mouse event handling in the ToolBar control.
18687 2004-08-20 19:50  ravindra
18689         * ImageList.cs: Changed draw method to use the arguments passed in
18690           to draw the image.
18692 2004-08-20 18:58  pbartok
18694         * XplatUIStructs.cs:
18695           - Added private message for async communication
18697 2004-08-20 17:38  ravindra
18699         * Control.cs: Made RightToLeft property virtual and removed a
18700           Console.WriteLine.
18702 2004-08-20 14:39  jordi
18704         * ThemeGtk.cs: use style_attach
18706 2004-08-20 14:39  pbartok
18708         * XplatUIWin32.cs:
18709           - Added jackson's Async code from X11 to Win32
18711 2004-08-20 14:09  pbartok
18713         * SWF.csproj:
18714           - Added all new files
18716 2004-08-20 14:09  pbartok
18718         * Control.cs:
18719           - Added call to set window background color
18721 2004-08-20 14:03  pbartok
18723         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
18724           - Added method for setting the window background
18726 2004-08-20 14:02  pbartok
18728         * XplatUIWin32.cs:
18729           - Added method for setting the background color
18730           - Added handling for erasing the window background
18732 2004-08-20 13:45  jordi
18734         * TrackBar.cs: fixes timer, new properties and methods
18736 2004-08-20 13:34  jackson
18738         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
18739           correct thread
18741 2004-08-20 13:22  jackson
18743         * Timer.cs: Timer Tick events are now handed through Controls Async
18744           mechanism so the callbacks are executed in the same thread as X
18746 2004-08-20 13:19  jackson
18748         * XplatUIDriver.cs: Expose functionality to send async messages
18749           through the driver
18751 2004-08-20 13:18  jackson
18753         * Control.cs: Implement Begininvoke
18755 2004-08-20 13:14  jackson
18757         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
18758           messages through the driver
18760 2004-08-20 13:12  jackson
18762         * XplatUIX11.cs: Lock before all X operations. Also added Async
18763           method functionality through XSendEvent
18765 2004-08-20 13:11  jackson
18767         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
18768           This will screw up on 64 bit systems)
18770 2004-08-20 13:10  jackson
18772         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
18773           Async messages through X/Win32
18775 2004-08-19 19:39  pbartok
18777         * XplatUIX11.cs:
18778           - Updated code to match new HandleData.DeviceContext type
18780 2004-08-19 19:38  pbartok
18782         * HandleData.cs:
18783           - Made DeviceContext a generic object to allow usage from various
18784           drivers
18785           - Added support for queueing Windows messages
18787 2004-08-19 19:37  pbartok
18789         * XplatUIWin32.cs:
18790           - Added generation of MouseEnter, MouseLeave and MouseHover events
18791           - Added cleanup on EndPaint
18793 2004-08-19 19:17  pbartok
18795         * Control.cs:
18796           - Added handling of WM_MOUSEHOVER
18797           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
18798           code
18800 2004-08-19 18:55  jordi
18802         * ThemeGtk.cs: fixes button order
18804 2004-08-19 18:12  jordi
18806         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
18808 2004-08-19 17:09  pbartok
18810         * Control.cs:
18811           - Added Right property
18812           - Added RightToLeft property
18814 2004-08-19 16:27  jordi
18816         * ThemeGtk.cs: experimental GTK theme support
18818 2004-08-19 16:26  jordi
18820         * ITheme.cs, Theme.cs: move themes from an interface to a class
18822 2004-08-19 16:25  jordi
18824         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
18825           theme enhancaments
18827 2004-08-19 16:04  pbartok
18829         * XplatUIX11.cs:
18830           - Added colormap basics
18831           - Added a way to re-initialize with a different display handle
18832           - Fixed setting of the window background color
18833           - Added various X11 imports related to colors and colormaps
18835 2004-08-19 15:51  pbartok
18837         * X11Structs.cs:
18838           - Removed packing hints (Paolo suggested this a while back)
18839           - fixed colormap type
18840           - Added default Atom types
18841           - Added Screen and color structs and enums
18843 2004-08-19 15:39  pbartok
18845         * ImageList.cs:
18846           - Added missing Draw() method
18847           - Added missing RecreateHandle event
18849 2004-08-19 15:30  pbartok
18851         * Form.cs:
18852           - Added handling of WM_CLOSE
18854 2004-08-18 13:16  jordi
18856         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
18857           a table
18859 2004-08-18 09:56  jordi
18861         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
18863 2004-08-17 15:31  ravindra
18865         * SWF.csproj: Updated project.
18867 2004-08-17 15:25  pbartok
18869         * Control.cs:
18870           - Drawing improvement; don't call UpdateBounds if we are not visible
18871             (or have been minimized)
18873 2004-08-17 15:24  pbartok
18875         * XplatUIWin32.cs:
18876           - Finished IsVisible
18877           - Added Win32GetWindowPlacement
18879 2004-08-17 15:08  jackson
18881         * Panel.cs: Initial checkin of the Panel
18883 2004-08-17 14:25  pbartok
18885         * Control.cs:
18886           - Fixed broken handling of default window sizes
18888 2004-08-17 13:29  jackson
18890         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
18891           has a large startup time.
18893 2004-08-17 10:25  jackson
18895         * HandleData.cs: union areas properly
18897 2004-08-17 10:12  jackson
18899         * HandleData.cs: union areas properly
18901 2004-08-16 20:00  ravindra
18903         * ToolBar.cs, ToolBarButton.cs: Added attributes.
18905 2004-08-16 18:48  ravindra
18907         * ToolBar.cs: Added attributes.
18909 2004-08-16 17:17  ravindra
18911         * SWF.csproj: Updated project.
18913 2004-08-16 17:16  jackson
18915         * XplatUIX11.cs: Check for more expose events before sending a
18916           WM_PAINT so they can all be grouped together. This makes dragging a
18917           window across another window redraw in a sane way.
18919 2004-08-16 15:47  pbartok
18921         * Control.cs:
18922           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
18923             support OnMouseEnter/Leave()
18924           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
18925             exposure handling
18927 2004-08-16 15:46  pbartok
18929         * XplatUIStructs.cs, XplatUIX11.cs:
18930           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
18931           OnMouseEnter/Leave()
18933 2004-08-16 15:34  jackson
18935         * XplatUIX11.cs: Group multiple expose events in HandleData, make
18936           sure messages get the message field set to WM_NULL if they are not
18937           handled.
18939 2004-08-16 15:24  jackson
18941         * HandleData.cs: HandleData is used for storing message information
18942           for window handles
18944 2004-08-15 17:23  ravindra
18946         * ColorDepth.cs: Added attribute.
18948 2004-08-15 17:23  ravindra
18950         * SWF.csproj: Updated project for ToolBar Control.
18952 2004-08-15 17:20  ravindra
18954         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
18955           control and also dos2unix format.
18957 2004-08-15 17:13  ravindra
18959         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
18960           ToolBarButtonClickEventArgs.cs,
18961           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
18962           ToolBarTextAlign.cs: First Implementation of ToolBar control.
18964 2004-08-15 15:31  pbartok
18966         * ButtonBase.cs:
18967           - First (mostly) working version
18969 2004-08-13 16:15  pbartok
18971         * Control.cs:
18972           - Fixed Anchor default
18974 2004-08-13 15:43  pbartok
18976         * Control.cs:
18977           - Changed GetCursorPos signature
18979 2004-08-13 15:42  pbartok
18981         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
18982           - Changed signature for GetCursorPos
18984 2004-08-13 15:25  pbartok
18986         * XplatUIX11.cs:
18987           - Cleanup
18988           - Fixed resizing/exposure handling
18990 2004-08-13 15:22  jordi
18992         * ThemeWin32Classic.cs: removes redundant code and fixes issues
18993           with tickposition
18995 2004-08-13 14:55  jordi
18997         * TrackBar.cs: change from wndproc to events
18999 2004-08-13 13:00  jordi
19001         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
19002           XplatUIX11.cs: implements PointToClient (ScreenToClient)
19004 2004-08-13 12:53  pbartok
19006         * XplatUIWin32.cs:
19007           - Changed GetWindowPos to also provide client area size
19008           - Fixed broken prototypes for several win32 functions
19010 2004-08-13 12:53  pbartok
19012         * XplatUI.cs, XplatUIDriver.cs:
19013           - Changed GetWindowPos to also provide client area size
19015 2004-08-13 12:52  pbartok
19017         * XplatUIX11.cs:
19018           - Added generation of WM_POSCHANGED
19019           - Changed GetWindowPos to also provide client area size
19021 2004-08-13 12:52  pbartok
19023         * Control.cs:
19024           - Added Dispose() and destructor
19025           - Fixed resizing and bounds calculation
19026           - Fixed Layout
19027           - Added memory savings for invisible windows
19029 2004-08-13 12:46  jordi
19031         * TrackBar.cs: adds timer and grap window
19033 2004-08-13 10:25  jackson
19035         * Timer.cs: SWF Timer
19037 2004-08-12 16:59  pbartok
19039         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
19040           - Implemented method to get current mouse position
19042 2004-08-12 14:29  jordi
19044         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
19045           enhancement, fix mouse problems, highli thumb, etc
19047 2004-08-12 13:31  pbartok
19049         * Control.cs:
19050           - Fixed Anchoring bugs
19052 2004-08-12 13:01  jackson
19054         * StatusBar.cs: Don't forget things
19056 2004-08-12 12:54  jackson
19058         * ThemeWin32Classic.cs: Handle owner draw status bars
19060 2004-08-12 12:54  jackson
19062         * StatusBar.cs: Implement missing properties, events, and methods.
19063           Handle mouse clicking
19065 2004-08-12 10:19  jackson
19067         * StatusBarPanelClickEventArgs.cs,
19068           StatusBarPanelClickEventHandler.cs: Classes for handling status
19069           bar panel click events
19071 2004-08-12 10:10  jackson
19073         * Control.cs: Add missing properties
19075 2004-08-12 09:46  pbartok
19077         * BindingsManagerBase.cs:
19078           - Name changed to BindingManagerBase.cs
19080 2004-08-12 09:25  jordi
19082         * ScrollableControl.cs: calls ctrlbase instead of exeception
19084 2004-08-11 16:28  pbartok
19086         * InputLanguageChangingEventArgs.cs:
19087           - Never check in before compiling. Fixes the last check-in
19089 2004-08-11 16:26  pbartok
19091         * InputLanguageChangingEventArgs.cs:
19092           - More signature fixes
19094 2004-08-11 16:20  pbartok
19096         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
19097           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
19098           ImageListStreamer.cs, InputLanguage.cs,
19099           InputLanguageChangedEventArgs.cs,
19100           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
19101           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
19102           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
19103           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
19104           - Signature fixes
19106 2004-08-11 16:16  pbartok
19108         * Application.cs:
19109           - Fixed Signature
19110           - Added .Net 1.1 method
19112 2004-08-11 15:25  pbartok
19114         * SWF.csproj:
19115           - Fixed BindingManagerBase.cs filename
19117 2004-08-11 15:22  pbartok
19119         * BindingManagerBase.cs:
19120           - Was checked in with wrong filename
19122 2004-08-11 14:50  pbartok
19124         * SWF.csproj:
19125           - Updated
19127 2004-08-11 13:41  jordi
19129         * XplatUIWin32.cs: Fixes ClientRect
19131 2004-08-11 13:19  pbartok
19133         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
19134           XplatUIX11.cs:
19135           - We had SetWindowPos and MoveWindow to set window positions and
19136             size, removed MoveWindow. We have GetWindowPos, so it made sense to
19137             keep SetWindowPos as matching counterpart
19138           - Added some X11 sanity checking
19140 2004-08-11 12:59  pbartok
19142         * Control.cs:
19143           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
19144             (It seems that SetBounds is just a front for SetBoundsCore and
19145              SetBoundsCore updates the underlying window system and
19146              UpdateBounds is responsible for updating the variables associated
19147              with the Control and sending the events)
19148           - Major cleanup of Size handling; we now have two sizes, client_size
19149             and bounds. Bounds defines the window with decorations, client_size
19150             without them.
19152 2004-08-11 12:55  pbartok
19154         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
19155           - Added method to calculate difference between decorated window and
19156             raw client area
19158 2004-08-11 12:54  pbartok
19160         * Label.cs:
19161           - Forcing redraw on resize
19163 2004-08-11 11:43  pbartok
19165         * ImageList.cs:
19166           - Removed disposing of the actual images when the list is disposed
19168 2004-08-11 09:13  pbartok
19170         * Control.cs:
19171           - Now properly reparents windows
19173 2004-08-11 08:37  pbartok
19175         * Control.cs:
19176           - Duh!
19178 2004-08-11 07:47  pbartok
19180         * Control.cs:
19181           - Rewrote the collection stuff. Might not be as fast now, not
19182             keeping the number of children around and accessible directly, but
19183             it's more straightforward
19185 2004-08-11 07:44  pbartok
19187         * AccessibleObject.cs:
19188           - Fixed to match ControlCollection rewrite
19190 2004-08-11 07:43  pbartok
19192         * ImageList.cs:
19193           - Added missing creation of the collection list
19195 2004-08-10 20:08  jackson
19197         * StatusBar.cs: Get the paint message from WndProc
19199 2004-08-10 19:31  jackson
19201         * ThemeWin32Classic.cs: Create Brushes as little as possible
19203 2004-08-10 19:20  jackson
19205         * UICues.cs: Add Flags attribute
19207 2004-08-10 19:19  jackson
19209         * StatusBarPanel.cs: Signature cleanup
19211 2004-08-10 19:10  jackson
19213         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
19214           Initial implementation of status bar item drawing
19216 2004-08-10 17:27  jordi
19218         * TrackBar.cs: add missing methods, properties, and restructure to
19219           hide extra ones
19221 2004-08-10 16:24  jackson
19223         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
19224           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
19225           attribute
19227 2004-08-10 13:21  jordi
19229         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
19230           enhancements and standarize on win colors defaults
19232 2004-08-10 12:52  jackson
19234         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
19235           ThemeWin32Classic.cs: Implement DrawItem functionality
19237 2004-08-10 12:47  jordi
19239         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
19241 2004-08-10 12:32  jordi
19243         * Control.cs: throw ontextchange event
19245 2004-08-10 11:43  pbartok
19247         * Control.cs:
19248           - Added more to the still unfinished Dock/Anchor layout code
19250 2004-08-10 11:39  pbartok
19252         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
19253           - Added GetWindowPos method
19255 2004-08-10 11:36  pbartok
19257         * XplatUIWin32.cs:
19258           - Implemented several methods
19260 2004-08-10 09:47  jackson
19262         * TrackBar.cs: Allow control to handle buffering
19264 2004-08-10 09:41  jackson
19266         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
19268 2004-08-10 09:24  jackson
19270         * Label.cs, LinkLabel.cs: Let Control handle buffering.
19272 2004-08-10 09:09  jackson
19274         * StatusBar.cs: Let Control handle all the buffering.
19276 2004-08-10 09:08  jackson
19278         * Control.cs: Control will now handle the buffering code, so each
19279           control does not have to implement this.
19281 2004-08-10 08:34  jackson
19283         * XplatUIDriver.cs: Use default colors from the theme
19285 2004-08-09 17:12  pbartok
19287         * ImageList.cs:
19288           - Fixed several bugs Ravindra pointed out
19290 2004-08-09 16:11  pbartok
19292         * Control.cs:
19293           - Added incomplete dock layout code
19294           - Added support for mouse wheel
19296 2004-08-09 16:09  pbartok
19298         * XplatUIX11.cs:
19299           - Added handling for middle and right mousebutton
19300           - Added handling for mouse wheel
19301           - Added handling for key state and mouse state and position
19302           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
19303           messages
19305 2004-08-09 15:40  jackson
19307         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
19308           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
19309           checkin
19311 2004-08-09 15:37  jackson
19313         * StatusBar.cs: Initial implementation of StatusBar
19315 2004-08-09 15:36  jackson
19317         * ITheme.cs: Add support for drawing status bar and getting status
19318           bar item sizes
19320 2004-08-09 15:35  pbartok
19322         * MouseButtons.cs:
19323           - Fixed values
19325 2004-08-09 15:34  jackson
19327         * ThemeWin32Classic.cs: Add support for drawing status bar and get
19328           status bar item sizes
19330 2004-08-09 15:21  jackson
19332         * ThemeWin32Classic.cs: Use known colors for default control
19333           colours
19335 2004-08-09 15:12  jackson
19337         * ThemeWin32Classic.cs: Make the default font static, it is static
19338           in control so this doesn't change functionality and creating fonts
19339           is sloooooow.
19341 2004-08-09 14:56  pbartok
19343         * X11Structs.cs:
19344           - Added GrabMode enum
19346 2004-08-09 14:55  pbartok
19348         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
19349           - Removed Run method, was only required for initial development
19351 2004-08-09 14:51  pbartok
19353         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
19354           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
19355           capture
19357 2004-08-09 13:48  pbartok
19359         * XplatUIX11.cs:
19360           - Fixed default sizing for child windows
19362 2004-08-09 12:56  pbartok
19364         * XplatUIX11.cs:
19365           - Added generation of WM_DESTROY message
19366           - Added handling of window manager induced shutdown
19368 2004-08-09 11:31  jackson
19370         * ThemeWin32Classic.cs: New names for control properties
19372 2004-08-09 11:25  jackson
19374         * Control.cs: Use new color names
19376 2004-08-09 11:02  jackson
19378         * XplatUI.cs: Get default window properties from the theme
19380 2004-08-09 11:01  jackson
19382         * ITheme.cs: The theme engine now controls default window
19383           properties
19385 2004-08-09 11:00  jackson
19387         * ThemeWin32Classic.cs: Add default window color properties
19389 2004-08-09 10:17  jackson
19391         * ThemeWin32Classic.cs: Use correct default back color
19393 2004-08-09 10:05  jackson
19395         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
19396           the theme now.
19398 2004-08-09 09:56  jackson
19400         * XplatUI.cs: Remove defaults, these are handled by the theme now.
19402 2004-08-09 09:54  jackson
19404         * Control.cs: Get default properties from the theme.
19406 2004-08-09 09:53  jackson
19408         * ITheme.cs: Themes now handle default control properties
19410 2004-08-09 09:53  jackson
19412         * ThemeWin32Classic.cs: Themes now handle default control
19413           properties so coloring will be consistent
19415 2004-08-08 16:54  jordi
19417         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
19419 2004-08-08 15:08  jordi
19421         * XplatUIX11.cs: fixes keyboard crash
19423 2004-08-08 13:47  jordi
19425         * Label.cs: add cvs header info
19427 2004-08-08 12:09  jackson
19429         * ThemeWin32Classic.cs: Add pen_buttonface
19431 2004-08-08 11:52  jordi
19433         * Label.cs, LinkLabel.cs: [no log message]
19435 2004-08-08 11:34  jordi
19437         * ThemeWin32Classic.cs: Use Windows Standard Colours
19439 2004-08-07 17:32  jordi
19441         * TrackBar.cs: throw exceptions of invalid enums values
19443 2004-08-07 17:31  jordi
19445         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
19446           draw method name
19448 2004-08-07 16:56  jackson
19450         * HorizontalAlignment.cs: Initial checkin
19452 2004-08-07 13:16  jordi
19454         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
19455           methods
19457 2004-08-07 13:05  jordi
19459         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
19460           GetSysColor defines
19462 2004-08-06 18:01  pbartok
19464         * ThemeWin32Classic.cs:
19465           - Fixed some rounding issues with float/int
19467 2004-08-06 18:00  jackson
19469         * DockStyle.cs, AnchorStyles.cs:
19471                   Add flags and serializable attributes.
19473 2004-08-06 17:46  pbartok
19475         * XplatUIX11.cs:
19476           - Implemented GetParent
19478 2004-08-06 17:18  pbartok
19480         * TrackBar.cs:
19481           - Fixed some rounding issues with float/int
19483 2004-08-06 17:17  pbartok
19485         * X11Structs.cs, XplatUIX11.cs:
19486           - Fixed Refresh and Invalidate
19488 2004-08-06 15:30  pbartok
19490         * Control.cs, X11Structs.cs, XplatUIX11.cs:
19491           - Fixed recursive loop when resizing
19492           - Improved/fixed redrawing on expose messages
19494 2004-08-06 09:53  jordi
19496         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
19497           keyboard navigation
19499 2004-08-06 08:02  pbartok
19501         * X11Structs.cs, XplatUIX11.cs:
19502           - Fixed reparenting
19503           - Fixed window border creation
19505 2004-08-05 15:38  pbartok
19507         * XplatUIX11.cs:
19508           - Attempted fix for reparenting problems
19510 2004-08-04 15:14  pbartok
19512         * Control.cs:
19513           - Fixed Invalidation bug (calculated wrong client area)
19514           - Added ClientSize setter
19516 2004-08-04 15:13  pbartok
19518         * Form.cs:
19519           - Added AutoScale properties
19521 2004-08-04 15:13  pbartok
19523         * SWF.csproj:
19524           - Added latest files
19526 2004-08-04 14:11  pbartok
19528         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
19529           XplatUIX11.cs:
19530           - Added Invalidate handling
19532 2004-08-03 17:09  jordi
19534         * XplatUIDriver.cs: fixes spelling mistake
19536 2004-07-27 09:53  jordi
19538         * TrackBar.cs: fixes trackbar events, def classname, methods
19539           signature
19541 2004-07-27 09:29  jordi
19543         * ScrollBar.cs: fixes scrollbar events
19545 2004-07-27 04:38  jordi
19547         * Control.cs: changes to be able to run winforms samples
19549 2004-07-26 11:42  jordi
19551         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
19552           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
19554 2004-07-26 05:41  jordi
19556         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
19557           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
19558           implementation
19560 2004-07-22 09:22  jordi
19562         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
19563           check link overlapping, implement events, and fixes
19565 2004-07-21 10:28  jordi
19567         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
19569 2004-07-21 10:19  jordi
19571         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
19572           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
19573           LinkLabelLinkClickedEventArgs.cs,
19574           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
19575           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
19576           implementation
19578 2004-07-19 13:09  jordi
19580         * Control.cs, Label.cs: label control re-written: added missing
19581           functionlity, events, and properties
19583 2004-07-19 10:49  jordi
19585         * Control.cs: fixes SetBounds logic
19587 2004-07-19 01:29  jordi
19589         * Control.cs: Call RefreshWindow only if the window has created
19591 2004-07-15 14:05  pbartok
19593         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
19594           - Implemented ImageList and ImageList.ImageCollection classes
19595           - Added ColorDepth enumeration
19596           - Updated SWF VS.Net project
19598 2004-07-15 11:06  jordi
19600         * XplatUIStructs.cs: added MsgButons enum
19602 2004-07-15 11:03  jordi
19604         * Control.cs: added basic mouse handeling events
19606 2004-07-15 03:38  jordi
19608         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
19609           Vertical TrackBar control implementation
19611 2004-07-13 09:33  jordi
19613         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
19615 2004-07-13 09:31  jordi
19617         * Control.cs, Form.cs: commit: new properties and fixes form size
19618           problems
19620 2004-07-09 14:13  miguel
19622         * ProgressBar.cs: Spelling
19624 2004-07-09 11:25  pbartok
19626         * ProgressBar.cs:
19627           - Removed usage of Rectangle for drawing. Miguel pointed out it's
19628           faster
19630 2004-07-09 11:17  miguel
19632         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
19634                 * ProgressBar.cs: Fixed spelling for `block'
19636                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
19637                 style guidelines.
19639                 Avoid using the += on rect.X, that exposed a bug in the compiler.
19641 2004-07-08 23:21  pbartok
19643         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
19644           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
19645           BaseCollection.cs, Binding.cs, BindingContext.cs,
19646           BindingMemberInfo.cs, BindingsCollection.cs,
19647           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
19648           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
19649           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
19650           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
19651           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
19652           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
19653           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
19654           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
19655           FrameStyle.cs, GiveFeedbackEventArgs.cs,
19656           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
19657           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
19658           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
19659           InputLanguageChangedEventArgs.cs,
19660           InputLanguageChangedEventHandler.cs,
19661           InputLanguageChangingEventArgs.cs,
19662           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
19663           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
19664           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
19665           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
19666           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
19667           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
19668           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
19669           QueryAccessibilityHelpEventArgs.cs,
19670           QueryAccessibilityHelpEventHandler.cs,
19671           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
19672           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
19673           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
19674           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
19675           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
19676           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
19677           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
19678           XplatUIX11.cs, lang.cs:
19679           - Initial check-in