* TextBoxBase.cs: Set the default max values to MaxValue since
[mono-project.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
blobd5e1c8f47282c40eb11bbd615837ffad924bbb00
1 2006-10-09  Jackson Harper  <jackson@ximian.com>
3         * TextBoxBase.cs: Set the default max values to MaxValue since
4         we use the scrollbar for autoscrolling and the default value is
5         100.  If we don't do this the caret won't keep up with typing
6         after about 18 characters.
8 2006-10-07  Andreia Gaita <shana.ufie@gmail.com>
9         * Form.cs: The active control should be selected after the 
10         OnLoad so that any child control initialization that affects
11         the selection is done. Fixes #79406
13 2006-10-06  Chris Toshok  <toshok@ximian.com>
15         * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
16         to have no evil effects.
18         - Stop selecting StructureNotifyMask on non-toplevel windows.
20           The only way children should be resized is by using the SWF api,
21           and we already send WM_WINDOWPOSCHANGED messages in those cases.
22           Toplevel windows can be interacted with via the window manager,
23           and so we keep the input mask there.
25           The other event StructureNotifyMask gives us (that we care
26           about) is DestroyNotify.  The code is already structured such
27           that it assumes we won't be getting a DestroyNotify event for
28           the window we pass to XDestroyWindow (which is what
29           StructureNotifyMask is supposed to guarantee.)  So, that code
30           shouldn't be affected by this either.
32         - Stop selecting VisibilityChangeMask altogether.
34           We weren't doing anything with the resulting events anyway.
35         
36         This vastly reduces the number of X requests and events we see
37         when resizing/laying out a large ui.
39 2006-10-06  Chris Toshok  <toshok@ximian.com>
41         * ScrollableControl.cs (DisplayRectangle): we need to take into
42         account the DockPadding regardless of whether or not auto_scroll
43         == true.  rework this slightly to this effect, and fix bug #79606,
44         and part of #72499 (you can now see the drag handles and drag
45         toolbars around).
47 2006-10-06  Gert Driesen  <drieseng@users.souceforge.net>
49         * ListViewItem.cs: Collections of selected and checked items are now
50         dynamically rebuilt. Whenever an item is (un)checked or (de)selected
51         we mark the collection "dirty".
52         * ListView.cs: Marked collections readonly. Modified UpdateSelection
53         to only clear SelectedItems when a new item is selected and MultiSelect
54         is enabled. CheckedItems and SelectedItems now subscribe to Changed
55         event of ListViewItemCollection, and mark its list dirty whenever
56         that event is fire. This allows us to return selected/checked items 
57         in the same order as they are in the Items collection. This matches
58         the MS behavior.
60 2006-10-06  Chris Toshok  <toshok@ximian.com>
62         * NotifyIcon.cs (HandleMouseUp): only show the context menu on
63         right mouse clicks.  Fixes bug #79593.
65 2006-10-06  Chris Toshok  <toshok@ximian.com>
67         * Splitter.cs: doh, fix splitters that don't want to cancel the
68         movement when you drag them.  Also, impose the limits on the
69         values we send to the SplitterMovingEvent.  Fixes #79598.
71 2006-10-06  Jackson Harper  <jackson@ximian.com>
73         * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
74         since we use this for auto scrolling also.
76 2006-10-05  Chris Toshok  <toshok@ximian.com>
78         * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus.  I'm
79         beginning to think that most datagrid column types don't need this
80         method.  Fixes bug #79392.
82 2006-10-05  Chris Toshok  <toshok@ximian.com>
84         * DataGrid.cs: move back to a more lazy scheme for creating the
85         CurrencyManager, so we aren't updating it every time you set
86         either DataSource or DataMember.  Also, don't call
87         RecreateDataGridRows if the currency manager hasn't changed.
89 2006-10-05  Chris Toshok  <toshok@ximian.com>
91         * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
92         emitted, SelectedIndex should already be updated.  Fixes bug
93         #78929.
95 2006-10-05  Jonathan Pobst  <monkey@jpobst.com>
97         * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
98           ToolStripTextBox.cs: Initial commit.
99         * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
101 2006-10-05  Jackson Harper  <jackson@ximian.com>
103         * TabControl.cs: We need to invalidate the tab control area when
104         new ones are added (duh).
106 2006-10-03  Chris Toshok  <toshok@ximian.com>
108         * Form.cs (ProcessDialogKey): if the focused control is in this
109         form and is a button, call its PerformClick method here.  Fixes
110         #79534.
112 2006-10-04  Jackson Harper  <jackson@ximian.com>
114         * TabPage.cs: Ignore setting of Visible, and add an internal
115         method for setting the controls visibility.  TabPage's Visible
116         property is a little strange on MS, this seems to make us
117         compatible, and fixes cases where people set all the tab pages to
118         visible.
119         * TabControl.cs: Use the new internal setting on tab pages
120         visibility.
122 2006-10-03  Mike Kestner  <mkestner@novell.com>
124         * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
126 2006-10-03  Mike Kestner  <mkestner@novell.com>
128         * ListView.cs : use is_visible instead of Visible to check if 
129         scrollbars should be placed/sized.  Also some max_wrap_width
130         love for LargeIcon view.  [Fixes #79533]
132 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
134         * TextControl.cs :
135           Make set_TextAlign() do actually update the align. Fixed #78403.
137 2006-10-03  Chris Toshok  <toshok@ximian.com>
139         * DataGrid.cs: fix a crash when switching datasources if the
140         vertical scrollbar is at someplace other than Value = 0.  Also,
141         reduce the number of recalculation passes we do in SetDataSource
142         from 2 to 1.
144 2006-10-03  Jackson Harper  <jackson@ximian.com>
146         * TextBoxBase.cs: Move the if value the same bail check up, we
147         don't want to empty the document if it is already empty, this
148         seems to severly mess up the caret.  TODO: I should probably fix
149         the empty statement to update teh caret somehow.
151 2006-10-03  Chris Toshok  <toshok@ximian.com>
153         * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
154         incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
155         reflection, an internal row type, properties on said type, etc.)
156         will work with our datagrid.  Fixes #79531.
158 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
160         * FileDialog.cs: Don't crash if a path is not accessible
161           (System.UnauthorizedAccessException). Fixes #79569.
162         * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
163           a ':' too. Return unknown icon for those paths/files.
165 2006-10-03  Sebastien Pouliot  <sebastien@ximian.com>
167         * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when 
168         GetContainerControl returns null.
170 2006-10-02  Chris Toshok  <toshok@ximian.com>
172         * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
173         call to XGetWindowAttributes instead of "handle".  fixes an X
174         error using notifyicon after the NotifyIconWindow to Form base
175         class switch.
177 2006-10-02  Chris Toshok  <toshok@ximian.com>
179         * XplatUIX11.cs (QueryPointer): new function, encapsulating the
180         server grab and looping we need to do to get down to the most
181         deeply nested child window.
182         (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
183         QueryPointer again after the WarpPointer so we can generate a
184         proper (fake) MotionNotify event to be enqueued in the destination
185         window's queue.
186         (GetCursorPos): call QueryPointer.
188         Fixes #79556.
190 2006-10-02  Jackson Harper  <jackson@ximian.com>
192         * NotifyIcon.cs: Derive the notify icon from a form, so things
193         like FindForm work on it.
194         - Swallow the WM_CONTEXTMENU message, since that is generated on
195         mouse down, and context menu is a mouse up kinda guy.  I believe
196         the correct fix here is probably to make the notify icon entirely
197         NC area, but this seems to work fine for anyone not manipulating
198         WndProc.
200 2006-10-02  Jonathan Pobst  <monkey@jpobst.com>
202         * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
203           ToolStripItemCollection.cs, ToolStripLabel.cs,
204           ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
205           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
206           Initial implementation.
207         * TextRenderer.cs: Provide padding to MeasureText.
209 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
211         * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
212         of ButtonBaseAccessibleObject. Fix bug #79552.
214 2006-10-02  Jackson Harper  <jackson@ximian.com>
216         * MdiWindowManager.cs: When maximizing use the containers client
217         rect, not it's bounds, so nc area is accounted correctly.
218         - Use the parent form's size for the menu position, since the
219         client isn't always the full form size.
221 2006-10-01  Chris Toshok  <toshok@ximian.com>
223         * ScrollableControl.cs: make sure neither right_edge or
224         bottom_edge are < 0, since they're used as LargeChange for the
225         horiz/vert scrollbars respectively.  Fixes #79539.
227 2006-10-01  Chris Toshok  <toshok@ximian.com>
229         * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
230         the xplatuix11 code can cause us to destroy/recreate our handle.
232         * XplatUIX11.cs
233         (SystrayAdd):
234         - this code can be invoked many times for the same Hwnd.  Make
235           sure we only destroy the client window once (the first time this
236           method is called).  This fixes bug #79544.
237         - Remove the call to the improperly bound XSync.  why we had two
238           bindings to this, I will never know, but this call resulted in
239           events being discarded from the queue(!).
240         - correct a misunderstanding of _XEMBED_INFO - the second atom is
241           not our current state but the state we wish to be in.  So, 0 if
242           we don't want to be mapped.  Change it to 1.
243         (SystrayRemove): The XEMBED spec makes mention of the fact that
244         gtk doesn't support the reparent of client windows away from the
245         embedder.  Looking at gtksocket-x11.c seems to agree with this.
246         The only avenue we have for removing systray icons is to destroy
247         them.  We don't want the handle to go away for good, though, so
248         call InternalRecreateHandle on the NotifyIconWindow.  Fixes
249         #79545.
250         
251 2006-10-01  Chris Toshok  <toshok@ximian.com>
253         * Form.cs (WndProc): inline the native_enabled variable usage into
254         the cases in which it's used.  Fixes #79536.
256 2006-09-29  Mike Kestner  <mkestner@novell.com>
258         * ListView.cs : toggle the selection state for ctrl clicks in 
259         multiselect mode. [Fixes #79417]
261 2006-09-29  Mike Kestner  <mkestner@novell.com>
263         * ListView.cs : kill CanMultiSelect and refactor the selection
264         code to support multiselection in the absence of mod keys. Steal
265         arrow/home/end keys by overriding InternalPreProcessMessage to
266         restore regressed keynav behavior.
267         [Fixes #79416]
269 2006-09-29  Jackson Harper  <jackson@ximian.com>
271         * MdiClient.cs: Repaint the titlebars when the active window is
272         changed.
274 2006-09-29  Chris Toshok  <toshok@ximian.com>
276         * Application.cs: when entering a runloop with a modal, make sure
277         the hwnd is enabled.  Fixes #79480.
279 2006-09-29  Chris Toshok  <toshok@ximian.com>
281         * DataGrid.cs (CurrentCell): if we try to navigate to the add row
282         when ListManager.CanAddRows == false, bump us back one.
284         * DataGridColumnStyle.cs (ParentReadOnly): remove the
285         listmanager.CanAddRows check.  This makes ArrayLists uneditable
286         using a datagrid, which is not right.
287         (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
288         is an IEditable, but call property_descriptor.SetValue regardless.
289         fixes #79435.
291 2006-09-29  Chris Toshok  <toshok@ximian.com>
293         * DataGridBoolColumn.cs: we need to test equality in the face of
294         possible null values (as is the case with the default NullValue).
295         This patch keeps us from crashing in that case.
297 2006-09-29  Jackson Harper  <jackson@ximian.com>
299         * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
300         here, since it will get called for every node collection in the
301         tree. This is now done in the treeview once the sorting is
302         finished.
303         * TreeView.cs: Recalculate the visible order, and update the
304         scrollbars after sorting, set the top nope to the root so that the
305         recalc actually works.
307 2006-09-29  Chris Toshok  <toshok@ximian.com>
309         * LinkLabel.cs: more handling of the default link collection in
310         the face of LinkArea manipulation.  The default link collection
311         contains 1 element (start=0,length=-1).  If the user sets LinkArea
312         to anything and the links collection is the default, clear it.
313         Then only add the link if its nonempty.  Fixes #79518.
315 2006-09-29  Chris Toshok  <toshok@ximian.com>
317         * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
318         piece correctly when we hit a '\n'.  Fixes #79517.
320 2006-09-29  Chris Toshok  <toshok@ximian.com>
322         * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
323         change the binding of gdk_init_check to take two IntPtr's, and
324         pass IntPtr.Zero for both of them.  Fixes #79520.
326 2006-09-29  Mike Kestner  <mkestner@novell.com>
328         * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
329         [Fixes #78779]
331 2006-09-28  Jackson Harper  <jackson@ximian.com>
333         * XplatUIX11.cs: When translating NC messages make sure we go from
334         whole window to screen, not client window to screen.
335         * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
336         method doesn't exist
337         - Skip over controls that aren't forms when arranging.
339 2006-09-28  Jackson Harper  <jackson@ximian.com>
341         * XplatUIWin32.cs: Clip the rect to the parent window.
342         * XplatUIStructs.cs: Add clipping modes struct.
343         * InternalWindowManager.cs: New private method that factors title
344         bar heights in when calculating the pos of an NC mouse message.
345         - Use SendMessage to force a paint when the form's size is changed
346         instead of painting the decorations immediately.
347         - Don't let the NC button click messages get to DefWndProc,
348         because they will attempt to handle windowing themself, and this
349         messes up z-order (it will put them in front of the scrollbars).
350         * XplatUIX11.cs: Make sure that we don't reset window managers if
351         we already have one (ie the window is an MDI window).
353 2006-09-28  Chris Toshok  <toshok@ximian.com>
355         * MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
356         menu code really needs going over.
358 2006-09-27  Chris Toshok  <toshok@ximian.com>
360         * XplatUIX11.cs (SetWMStyles): more metacity wonderment.  turns
361         out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
362         window is maximizable.  So, we need to make sure that even if we
363         clear the border/wm frame of those functions, they're still
364         available (basically, we remove the decoration without removing
365         the function).  Half the fix for #79338.
367 2006-09-27  Chris Toshok  <toshok@ximian.com>
369         * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
370         Fixes bug #79515.
372 2006-09-27  Chris Toshok  <toshok@ximian.com>
374         * Splitter.cs: reorder things a bit so that we don't actually
375         draw/move the splitter until after calling OnSplitterMoving.  This
376         lets users cancel/disallow the movement by explicitly setting
377         event.SplitX/SplitY.  Fixes #79372.
379 2006-09-27  Jackson Harper  <jackson@ximian.com>
381         * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
382         because it is most likely on a window being destroyed, and that
383         will give us an X11 error.
385 2006-09-27  Chris Toshok  <toshok@ximian.com>
387         * PropertyGridView.cs: half of the fix for #78190.  Clicking on
388         the dropdown button now toggles between showing and hiding the
389         dropdown.  Also, get rid of dropdown_form_showing and just use
390         dropdown_form.Visible.  We still don't do a grab, but I'll leave
391         that part to someone who has handled Capture-fu before.
393 2006-09-27  Chris Toshok  <toshok@ximian.com>
395         * DataGrid.cs: return false if alt isn't pressed when '0' is
396         pressed.  this keeps the '0' key from being swallowed, and fixes
397         bug #79350.
399 2006-09-27  Chris Toshok  <toshok@ximian.com>
401         * ComboBox.cs: use Invalidate when scrolling the dropdown list.
402         Calling Refresh (in response to a scrollbar event) screws up the
403         scrollbar painting.  Fixes bug #78923.
405 2006-09-27  Chris Toshok  <toshok@ximian.com>
407         * Theme.cs (SystemResPool): make the "if hashtable[key] == null
408         then insert into hashtable" blocks threadsafe.
410 2006-09-27  Chris Toshok  <toshok@ximian.com>
412         * MessageBox.cs (CreateParams): the styles should be |'ed with our
413         baseclass's, since otherwise the
414         ControlBox/MinimizeBox/MaximizeBox assignments above have no
415         effect.  This gets the close button back in messageboxes.
417 2006-09-27  Chris Toshok  <toshok@ximian.com>
419         * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
420         flag, not just != 0.  this makes flags that are actually multiple
421         bits (like WS_CAPTION) work.  fixes bug #79508.
423 2006-09-27  Jordi Mas i Hernandez <jordimash@gmail.com>
425         * PageSetupDialog.cs: add support for getting and settings the 
426         paper size, source and orientation.
428 2006-09-26  Chris Toshok  <toshok@ximian.com>
430         * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
431         and caption == "", we need to remove the resize handles as well as
432         the title bar.
434         * Control.cs (set_Text): turns out that setting Text on a form
435         should change the WM styles on the window, since if ControlBox ==
436         false, the only way to get a window border is to have a non-""
437         Text property.  check winforms/forms/text.cs for an example.  so,
438         call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
439         update both window styles and title.  This fixes a lot of dialogs
440         (including the preferences dialog in MonoCalendar.)
442 2006-09-26  Chris Toshok  <toshok@ximian.com>
444         * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
445         control isn't a Form), call Win32ShowWindow to hide the window,
446         but don't update the control Visible property.  When we reparent
447         back to a parent control, call SetVisible in order for the
448         window's visibility to be reinstated.
450         * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
451         the FosterParent.
453         * Control.cs (ControlCollection.Remove): remove that value.Hide()
454         call for good, since it breaks MonoCalendar (and other things I'm
455         sure.) Also, set all_controls to null *after* the owner calls,
456         which end up regenerating it.
457         (ChangeParent): allow new_parent to be == null, passing
458         IntPtr.Zero down to XplatUI.
460         this fixes #79294 the right way.
462 2006-09-26  Mike Kestner  <mkestner@novell.com>
464         * GridEntry.cs : internal SetParent method.
465         * PropertyGrid.cs : attach to property changed on the proper
466         target if we have a hierarchical grid with subobjects. Setup
467         GridItem.Parent for hierarchical items.
468         * PropertyGridView.cs : Set value on the correct target for
469         hierarchical grids. [Fixes #78903]
471 2006-09-26  Chris Toshok  <toshok@ximian.com>
473         * Control.cs (ChildNeedsRecreating): this should return true if
474         either we're being recreated and the child is in our list, or our
475         parent is waiting for our recreation.
477 2006-09-26  Chris Toshok  <toshok@ximian.com>
479         * Control.cs (ControlCollection.Remove): reinstate the
480         value.Hide() call as suggested in bug #79294.
482 2006-09-26  Sebastien Pouliot  <sebastien@ximian.com>
484         * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
485         coordinates (versus a relative move).
487 2006-09-26  Chris Toshok  <toshok@ximian.com>
489         * Control.cs: rework child recreation a little bit.  It turns out
490         that we race between the DestroyNotify the WM_DESTROY message.  If
491         the parent gets its DestroyNotify before the child gets the
492         WM_DESTROY message, the child ends up not recreating (since the
493         parent finishes its recreation on DestroyNotify, and the child
494         checks ParentIsRecreating.)
496         So, instead we store off a list of all the child controls which
497         need to be recreated when the parent control starts to recreate
498         itself.  Then, when child controls get their WM_DESTROY message we
499         check to see if they're in the parent's pending recreation list,
500         and if so, we recreate.  This removes all dependency on ordering
501         from the code and fixes the initial MonoCalendar upgrade dialog.
502         
503 2006-09-26  Jackson Harper  <jackson@ximian.com>
505         * TextControl.cs: Use the Line to get the length of the line,
506         since soft line breaks can change the end line.
508 2006-09-26  Chris Toshok  <toshok@ximian.com>
510         * Control.cs (ControlCollection.AddImplicit): don't add the
511         control again if it's already in one of our lists.  This keeps us
512         from adding controls over and over again for comboboxes when their
513         handle gets recreated (as the combobox adds implicit controls in
514         OnHandleCreated).  Fixes the X11 errors in bug #79480.
516 2006-09-26  Jackson Harper  <jackson@ximian.com>
518         * TextControl.cs: When deleting characters make sure that any
519         orphaned zero lengthed tags get deleted.
520         - Fix ToString for zero lengthed tags.
522 2006-09-25  Jackson Harper  <jackson@ximian.com>
524         * TextControl.cs: When getting a tag at the location there can be
525         multiple tags at the same spot, these are 0-lengthed tags that
526         appear when extra formatting has been stuck in a location.  We
527         need to pull out the last of these 0 lengthed tags.
529 2006-09-25  Jackson Harper  <jackson@ximian.com>
531         * TextControl.cs: Fix print out in debug method.
532         * TextBoxBase.cs: When text is set bail if we are setting to the
533         previous value.
534         
535 2006-09-24  Alexander Olk  <alex.olk@googlemail.com>
537         * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
538           It is now possible to change the selected index in a FontXXXListBox
539           with the up and down arrow keys from the FontXXXTextBoxes.
540           Also, send the FontXXXTextBox mouse wheel event to the corresponding
541           FontXXXListBoxes to match ms.
543 2006-09-22  Sebastien Pouliot  <sebastien@ximian.com>
545         * SystemInformation.cs: Return a clone of the theme's MenuFont because
546         anyone can dispose it, anytime. All other properties returns enums, 
547         structs or basic types so they don't need such tricks.
549 2006-09-22  Jackson Harper  <jackson@ximian.com>
551         * XplatUI.cs:
552         * XplatUIWin32.cs:
553         * Clipboard.cs:
554         * DataFormats.cs:
555         * XplatUIOSX.cs:
556         * XplatUIDriver.cs: Update interface to add a primary selection
557         flag, so the driver can use the primary selection buffer if
558         needed.
559         * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
561         * RichTextBox.cs: We need to supply the data object to paste now
562         (so we can choose to supply CLIPBOARD or PRIMARY).
563         * TextBoxBase.cs: Supply data object to paste (see above).
564         - Middle click uses the primary selection data object.
565         
566 2006-09-21  Chris Toshok  <toshok@ximian.com>
568         * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
569         of SetWMStyles.  It's still a rat's nest and is largely
570         order-dependent which I dislike immensely.  This also fixes the X
571         button disappearing from toplevel forms.
573 2006-09-21  Mike Kestner <mkestner@novell.com>
575         * ListBox.cs: move Jordi's click/dblclick raising code to the
576         mouse up handler.
578 2006-09-21  Jordi Mas i Hernandez <jordimash@gmail.com>
580         * ListBox.cs: Fixes 79450
582 2006-09-21  Mike Kestner <mkestner@novell.com>
584         * TreeView.cs: guard against disposed conditions in UpdateScrollbars
585         to deal with people updating the TreeNodeCollection after the tree
586         is disposed.  "Fixes" 79330.
588 2006-09-20  Jackson Harper <jackson@ximian.com>
590         * TextControl.cs: Push the cursor record onto the undo stack
591         before the delete action. This fixes 78651.
593 2006-09-20  Jonathan Chambers  <joncham@gmail.com>
595         * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
596         CreateParams. Fixes 79329.
598 2006-09-19  Chris Toshok  <toshok@ximian.com>
600         * XplatUIX11.cs: a couple of blanket code massage passes to clean
601         things up a bit.  First, get rid of the NetAtoms array (and the NA
602         enum), and just embed the atoms as static fields.  Also, add a
603         couple of functions (StyleSet and ExStyleSet) to clean up all the
604         bitmask testing of styles.
606         * X11Structs.cs: remove the NA enum, not needed anymore.
607         
608 2006-09-19  Chris Toshok  <toshok@ximian.com>
610         * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
611         (mapping them to _NET_WM_WINDOW_TYPE_UTILITY).  and add a little
612         added cleanup to get MessageBox titles appearing again, which were
613         broken by my earlier fix for caption-less/ControlBox-less windows.
615 2006-09-18  Jonathan Pobst <monkey@jpobst.com>
617         * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
618           ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
619           ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
620           ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
621           ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
622           ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
623           ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
624           ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
625           ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
626           ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
627           ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
628             Inital import.
629         * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
630           ToolStripButton.cs: Stubs needed for above.
631         * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
633 2006-09-15  Chris Toshok  <toshok@ximian.com>
635         * XplatUIX11.cs:
636         - make the MessageQueues hashtable Synchronized.
637         
638         - SendMessage: if the Hwnd is owned by a different thread, use the
639         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
640         thread.  Fixes bug #79201.
642 2006-09-15  Chris Toshok  <toshok@ximian.com>
644         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
645         ControlBox == false, we disallow maximize/minimize/close.  If the
646         form Caption is "" we also disallow move (and get rid of the Title
647         decoration).  Unfortunately, regardless of how things are set,
648         we're stuck with the Title and WM menu.
650 2006-09-15  Chris Toshok  <toshok@ximian.com>
652         * Application.cs: add locking around the static message_filters
653         ArrayList, part of #79196.
655 2006-09-15  Chris Toshok  <toshok@ximian.com>
657         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
658         Form.ControlBox == false, the window has no titlebar nor resize
659         handles.  fixes bug #79368.
661 2006-09-15  Chris Toshok  <toshok@ximian.com>
663         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
664         >= 0.  Fixes bug #79370.
666 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
667         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
668         * Control.cs:
669             Add properties: LayoutEngine, Margin, DefaultMargin.
670             Add method: GetPreferredSize.
671             Move layout logic from PerformLayout to layout engines. 
673 2006-09-13  Chris Toshok  <toshok@ximian.com>
675         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
676         fix for #79326 broke #78718, so this change addresses that.
678         - in SendWMDestroyMessages remove the call to
679         CleanupCachedWindows, since we might be recreating the control and
680         need to maintain the references to right Hwnd handles.  Also, set
681         the zombie flag to true for each of the children in the hierarchy
682         instead of calling hwnd.Dispose.  This will cause GetMessage to
683         ignore all events for the window except for DestroyNotify.
685         - In GetMessage, ignore messages except for DestroyNotify for
686         zombie hwnds.
687         
688         * Control.cs: revert the is_recreating fix from the last
689         ChangeLog.  It's definitely "right", but it breaks switching from
690         an MDI form to a non-MDI form.  Will need to revisit that.
692         * Hwnd.cs: add a zombie flag, which means "the
693         client_window/whole_window handles are invalid, but we're waiting
694         for the DestroyNotify event to come in for them".  Set the flag to
695         false explicitly if setting WholeWindow/ClientWindow, and also
696         when Disposing.
697         
698 2006-09-13  Chris Toshok  <toshok@ximian.com>
700         * XplatUIX11.cs: rework window destruction slightly.
702         - when destroying the windows associated with a control, we don't
703         need 2 separate XDestroyWindow calls.  Just the one for the
704         whole_window (or for client_window if whole_window is somehow
705         IntPtr.Zero -- can this happen?) is enough.
707         - reworked SendWMDestroyMessages slightly, so we always dispose
708         the child control hwnd's after sending the messages.
709         
710         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
711         the two places it was used (one was even using hwnd.Handle and the
712         other hwnd.client_window.  ugh), adding another call in
713         SendWMDestroyMessages.  We need this new call because now the
714         DestroyNotify events in the queue will be ignored for the child
715         controls (as their hwnd's were disposed, and the window id's
716         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
718         - this fixes bug #79326.
720 2006-09-13  Chris Toshok  <toshok@ximian.com>
722         * Control.cs: don't always set is_recreating to false at the end
723         of RecreateHandle, since sometimes we're not done (and won't be
724         until WndProc handles the WM_DESTROY message).  Also, set
725         is_recreating to false in the WM_DESTROY handling code.  Part of
726         the fix for bug #79326.
728 2006-09-13  Miguel de Icaza  <miguel@novell.com>
730         * X11DesktopColors.cs: Start the droppage of debugging messages.
732         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
734 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
736         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
738 2006-09-12  Chris Toshok  <toshok@ximian.com>
740         * DataGrid.cs (get_ListManager): if the list_manager is null, try
741         to create it using SetDataSource.  Fixes bug #79151.
743 2006-09-11  Chris Toshok  <toshok@ximian.com>
745         * XEventQueue.cs: add a DispatchIdle property.
747         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
748         either the queue is null, or the queue has DispatchIdle set to
749         true.
750         (DoEvents): set queue.DispatchIdle to false around the
751         peek/translate/dispatch message loop in this method.  This keeps
752         Application.Doevents from emitting idle events.  Part of the fix
753         for #78823.
755 2006-09-11  Chris Toshok  <toshok@ximian.com>
757         * DataGrid.cs (set_DataSource): make this work for both the
758         winforms/datagrid test and ReportBuilder.  It seems as though when
759         we've created a ListManager (or maybe it's if we have a
760         BindingContext?), when we set the DataSource it clears the
761         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
762         #79333.
764 2006-09-11  Chris Toshok  <toshok@ximian.com>
766         * XplatUIX11.cs: deal with queue being null, which happens in all
767         the Clipboard functions.  Fixes one of the two problems mentioned
768         in #78612.
770 2006-09-11  Chris Toshok  <toshok@ximian.com>
772         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
773         button on various spots (including outside the menu) works closer
774         to MS, and doesn't crash.  Fixes #79343.
776 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
778         * ListView.cs: Do not initialize item_sorter in init. To match MS,
779         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
780         and the internal comparer is set. When a new ListViewItemSorter is set,
781         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
782         was specified. No further processing is necessary if SortOrder is set
783         to it's current value. If Sorting is modified to None, and View is
784         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
785         (either custom or our internal ItemComparer) to null, on 1.0 profile
786         only set item_sorter to null if its our internal IComparer. If Sorting
787         is modified to Ascending or Descending, then use our internal IComparer
788         if none is set, and if the current IComparer is our internal one then:
789         on 2.0 profile always replace it with one for new Sorting, and on 1.0
790         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
791         Enum.IsDefined to verify whether a valid View value is specified in
792         its setter. Automatically sort listview items when listview is
793         created. In Sort, do nothing if ListView is not yet created, or if
794         no item_sorter is set (no Sorting was set, Sorting was explicitly set
795         to None or ListViewItemSorter was set to null). Added Sort overload
796         taking a bool to indicate whether the ListView should be redrawn when
797         items are sorted (we use this in ListViewItemCollection to avoid double
798         redraws). Modified our internal IComparer to take the sort order into
799         account. In Add and AddRange methods of ListViewItemCollection, also
800         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
801         view), but use overload with noredraw option to avoid double redraw.
802         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
803         true when View is Tile, and do the same when attempting to set View to
804         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
805         for selected/checked indices, as it involves overhead when sorting is
806         done while these collections are not used all that often. Instead
807         we'll build the indices on demand. Modified IList implementation of
808         CheckedIndexCollection to use public methods if object is int.
809         Modified CheckedListViewItemCollection to hide checked items if
810         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
811         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
812         IList implementation in SelectedIndexCollection to use public methods
813         if object is int. Modified SelectedListViewItemCollection to hide
814         selected items if listview is not yet created.
815         * ListViewItem.cs: CheckedIndices list no longer needs to be
816         maintained separately (see ListView changes). Also clone font, fixes
817         test failure.
819 2006-09-11  Mike Kestner  <mkestner@novell.com>
821         * ComboBox.cs: if we are updating the contents of the currently
822         selected index, refresh the control or the textbox selection.
823         [Fixes #79066]
825 2006-09-11  Mike Kestner  <mkestner@novell.com>
827         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
828         the 'specified' logic has been moved there.  This seems like a bug 
829         in Control.cs, since our current SetBoundsCore completely ignores 
830         the specified parameter.  Peter's commit seems to indicate that is 
831         the way the MS control implementation works.  [Fixes #79325]
833 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
835         * XplatUI.cs: Set default_class_name to be composed
836         of current domain id. This allows MWF to be loaded in multiple
837         domains on Win32.
839 2006-09-09  Miguel de Icaza  <miguel@novell.com>
841         * X11Keyboard.cs: If we are unable to obtain the input method, do
842         not call CreateXic to create the input context.   Should fix
843         #78944/79276.
845 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
847         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
848           Simplified gnome support by adding more pinvokes to get the
849           icon for a file or mime type.
851 2006-09-08  Jackson Harper  <jackson@ximian.com>
853         * MenuAPI.cs: Deslect popup context menu items before closing the
854         window, so that you don't see the previously selected item
855         selected when you reopen the menu.
856         * TextControl.cs: Update the cursor position even if we don't have
857         focus.  This fixes typing in things like the ComboBox.  I'm not
858         totally sure we should always set the visibility if we don't have
859         focus, but couldn't find any corner cases where the cursor showed
860         up when it shouldn't.
862 2006-09-08  Chris Toshok  <toshok@ximian.com>
864         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
865         our arrays are length 256.  & 0xff before indexing.  Fixes the
866         crash in bug #78077.
867         
868 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
870         * ThemeWin32Classic.cs: 
871         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
872         is true. Handle that check box too.
874 2006-09-07  Chris Toshok  <toshok@ximian.com>
876         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
877         79244.
879 2006-09-07  Chris Toshok  <toshok@ximian.com>
881         * Control.cs: in set_BackColor only do the work if
882         background_color != value.
884         * XplatUIX11.cs: move the clearing of invalid areas (both client
885         and nc) to the same block of code where we set (nc_)expose_pending
886         to false.  That is, move it from PaintEventEnd to PaintEventStart,
887         so things that cause invalidates from within OnPaint will trigger
888         another call to OnPaint.  Fixes bug #79262.
890 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
892         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
893         * FileDialog.cs: Fix typo
895 2006-09-07  Jackson Harper  <jackson@ximian.com>
897         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
898         for tab pages if they have any.
900 2006-09-06  Mike Kestner  <mkestner@novell.com>
902         * Splitter.cs: use the "current" rect when finishing drag handle
903         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
905 2006-09-06  Mike Kestner  <mkestner@novell.com>
907         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
908         support offset splitters. [Fixes #79298]
910 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
912         * Mime.cs: Fixed a bug that could override the global mime type
913           result.
915 2006-09-05  Jackson Harper  <jackson@ximian.com>
917         * TabControl.cs: Better calculation method for setting the slider
918         pos. Prevents crashes on really wide tabs.
919         - Draw Image on tab pages if an image list is used.
921 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
923         * MonthCalendar.cs: When Font changes, the Size should be
924         updated to fit the new font's space requirements.
926 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
928         * ListBox.cs: If the items are cleared with Items.Clear set
929           top_index to 0.
931 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
933         * MonthCalendar.cs: Handle arrow keys as input keys. Also
934         fire DateChanged event instead of DateSelected event when
935         the date was changed by keyboard interaction.
937 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
939         * DateTimePicker.cs: Handle DateChanged for the associated
940         month_calendar control, and set month_calendar.Font from 
941         OnFontChanged method, as well as resize the height of the
942         control when needed. Make PreferredHeight proportional.
944 2006-09-01  Chris Toshok  <toshok@ximian.com>
946         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
947         properties.
949         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
951 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
953         * FileDialog.cs: Set ClientSize instead of window size, to allow space
954           for decorations (Fixes #79219)
956 2006-09-01  Mike Kestner  <mkestner@novell.com>
958         * ComboBox.cs: first stab at sorting plus some selection handling
959         fixes to bring us more in line with MS behavior.  Also switches back
960         to index based selection.  Alternative patches for index-based 
961         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
962         and latency@gmx.de on bug 78848.  I assume they were similar to this
963         code I've had simmering in my tree forever.
964         [Fixes #78848]
966 2006-09-01  Chris Toshok  <toshok@ximian.com>
968         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
969         when setting list position guard against ending up with a -1 index
970         (the other part of the fix for #78812).  Should probably make sure
971         we don't need the analogous fix in the ItemDeleted case.
973         * DataGrid.cs:
974         - in SetDataSource, work around the fact that the way
975         OnBindingContextChanged is invoked will cause us to re-enter this
976         method.  I'll remove the hack once I investigate
977         OnBindingContextChanged.
979         - fix the logic in set_DataSource and set_DataMember (basically
980         what to do if the other of the two is null.)
981         
982         - in OnListManagerItemChanged, we need to take into account the
983         edit row when deciding whether or not to call RecreateDataGridRows
984         (part of the fix for #78812).
986 2006-09-01  Jackson Harper  <jackson@ximian.com>
988         * Splitter.cs: Don't do anything if there is no control to affect
989         (prevents us from crashing in weird tet cases).
990         * TreeView.cs: Bounding box for the mouse movement reverting
991         focus/selection back to previously selected node.  This matches
992         MS, and makes the tree a lot more useable.
993         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
994         use clipping so they are not drawn.  This fixes when the control
995         is set to have a transparent background, or if it was over an
996         image.
998 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
1000         * MimeIcon.cs: Improved handling for reading default icons when
1001           using gnome (2.16 made it necessary). Check and read svg icons
1002           first, then 48x48 and then 32x32 icons.
1004 2006-08-31  Chris Toshok  <toshok@ximian.com>
1006         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
1007         visible.
1009         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
1010         ProcessKeyPreview.  Fixes part of #77806.
1012         * DataGrid.cs: big patch.
1014         - revert the queueing up of DataSource/DataMember if inside
1015         BeginInit/EndInit calls.  That's not the way the datagrid achieves
1016         its delayed databinding.  Instead, call SetDataSource in
1017         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
1018         #78811.
1020         - Also, it wasn't mentioned in #78811, but the test case exhibits
1021         behavior that was lacking in our datagrid implementation - Columns
1022         that have mapping names that don't exist in the datasource's
1023         properties aren't shown.  Yuck.  To fix this I added the bound
1024         field to the column style, and basically any calculation to figure
1025         out anything about columns uses a loop to find the bound columns.
1026         still need to investigate if I can cache an array of the bound
1027         columns or if the indices must be the same.
1029         - When setting CurrentCell, we no longer abort if the cell being
1030         edited was in the add row.  This fixes the other part of #77806.
1032         - The new code also fixes #78807.
1033         
1034         * ThemeWin32Classic.cs: perpetrate the same disgusting
1035         column.bound field hack, and only render bound fields.
1037 2006-08-31  Chris Toshok  <toshok@ximian.com>
1039         * DataGridColumnStyle.cs: add bound field.  this field is true if
1040         the datasource has a property corresponding to the mapping name.
1042         * DataGridTableStyle.cs: set the bound field on the column styles
1043         depending on whether or not we have a column for that property.
1045 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
1047         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
1048           splitter control (fixes #79228)
1050 2006-08-31  Chris Toshok  <toshok@ximian.com>
1052         * DataGridColumnStyle.cs: we need to delay the assignment of
1053         property descriptor until the last possible moment due to the lazy
1054         databinding stuff in the datagrid.  Also, fix the exceptions
1055         thrown by CheckValidDataSource to match MS.
1057 2006-08-31  Jackson Harper  <jackson@ximian.com>
1059         * Form.cs: When activated select the active control, if there is
1060         no active control, we select the first control.
1061         * XplatUIX11.cs: If there is no focus control when we get a
1062         FocusIn event, find the toplevel form and activate it.  This
1063         occurs when you popup a window, it becomes the focus window, then
1064         you close that window, giving focus back to the main window.
1066 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1068         * MonthCalendar.cs: 
1069         * ThemeWin32Classic.cs: Cache Font in bold style, as well
1070         as StringFormat with Center alignments in MonthCalendar,
1071         instead of creating new ones when drawing the control. 
1072         Also, draw the month name in bold style.
1074 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
1076         * Control.cs:
1077           - PerformLayout(): It would seem MS performs the fill even if the 
1078             control is not visible (part of #79218 fix)
1079           - ResetBackColor(): Use the setter to reset the color, to allow
1080             overriders to catch the change.
1081         * Form.cs:
1082           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
1083           - CreateHandle(): dito (part of $79218 fix)
1084           - Don't set an icon if we have a dialog
1085         * ScrollableControl.cs:
1086           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
1087           - ScrollIntoView(): No need to scroll if control is already visible
1088             (resolves fixme and fixes #79218)
1090 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1092         * MonthCalendar.cs: Change proportions in SingleMonthSize
1093         to match the aspect of the original control.
1095 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
1097         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
1098           get updated when they get maximized.
1100 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
1102         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
1104 2006-08-29  Chris Toshok  <toshok@ximian.com>
1106         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
1108 2006-08-29  Jackson Harper  <jackson@ximian.com>
1110         * TreeView.cs: Need to track selected node and highlighted node,
1111         they aren't always the same thing, when the mouse is down on a
1112         node it is hilighted, but not selected yet.
1113         - Do the HideSelection stuff right
1114         - Need to focus on rbutton mouse down. And redraw selection when
1115         right click is mouse upped.
1117 2006-08-29  Mike Kestner  <mkestner@novell.com>
1119         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
1120         when SubItems.Count < Columns.Count.  [Fixes #79167]
1122 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
1124         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
1126 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
1128         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
1129           from X. Only send based on ConfigureNotify if we don't have the
1130           correct location in hwnd (if the window manager moved us)
1132 2006-08-28  Mike Kestner  <mkestner@novell.com>
1134         * ListView.cs: remove a TODO. 
1135         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
1136         [Fixes ListView part of #79166]
1138 2006-08-28  Mike Kestner  <mkestner@novell.com>
1140         * ListView.cs: move wheel handler to parent since it is focused
1141         instead of the item_control now.  [Fixes #79177]
1143 2006-08-28  Mike Kestner  <mkestner@novell.com>
1145         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
1146         when the control is focused. [Fixes #79171]
1148 2006-08-28  Mike Kestner  <mkestner@novell.com>
1150         * ListView.cs: size the item and header controls for empty and
1151         unscrollable views.
1152         * ThemeWin32Classic.cs: draw disabled backgrounds.
1153         [Fixes #79187]
1155 2006-08-28  Chris Toshok  <toshok@ximian.com>
1157         * Form.cs: remove unused "active_form" static field.
1159         * Hwnd.cs: lock around accesses to static windows collection.
1161         * Application.cs: lock threads in Exit ().
1163 2006-08-28  Chris Toshok  <toshok@ximian.com>
1165         * NativeWindow.cs: lock around accesses to window_collection.
1166         
1167 2006-08-28  Chris Toshok  <toshok@ximian.com>
1169         * Control.cs: err, fix this the right way, by locking on controls
1170         when using it.  not by making it synchronized.
1172 2006-08-28  Chris Toshok  <toshok@ximian.com>
1174         * Control.cs: make the static "controls" field synchronized, as it
1175         gets updated from multiple threads.
1177 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
1179         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
1180           Prevent other threads from exiting when calling thread sets quit state.
1181         * XEventQueue.cs: Added PostQuitState property
1183 2006-08-27  Chris Toshok  <toshok@ximian.com>
1185         * AsyncMethodData.cs: add a slot for the window handle.
1187         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
1188         window (the destination control's window, not the foster window).
1190         * Control.cs (BeginInvokeInternal): store the window's handle in
1191         the AsyncMethodData.
1192         
1194 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
1196         * XplatUIX11.cs:
1197           - PostQuitMessage: Removed resetting S.D display handle, we might have
1198             another loop started after calling PostQuitMessage (Fixes #79119)
1199           - Created destructor to reset S.D handle
1201 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
1203         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
1205 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
1207         * TextControl.cs (Insert): Update the caret position even if we don't
1208           have a handle yet, just don't call the driver in that case.
1209         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
1210           to the end of the new selection text (Fixes #79184)
1212 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
1214         * Form.cs (Activate): Only activate if the handle is created)
1215         * Control.c:
1216           - Mark window as invisible when it's disposed
1217           - Check if window handle is created when setting window visible, 
1218             instead of relying just on the is_created variable
1219           - Check if object is disposed when creating the control (Fixes #79155)
1221 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
1223         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
1224           when allowing layout again. Otherwise we re-generate the anchoring 
1225           distance to the border again and actually alter what the user wanted
1226           This is ugly, it'd be better if we used DisplayRectangle instead of
1227           ClientRectangle for Control.UpdateDistances, but that causes us to
1228           have other problems (initial anchoring positons would be wrong)
1229           (Fixes #78835)
1231 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
1233         * Control.cs:
1234           - The size and location setters shouldn't go directly to 
1235             SetBoundsCore, but to SetBounds, which triggers layout on the
1236             parent, then calls SetBoundsCore. (Related to fix for #78835)
1237           - SetBounds: Moved actual location update code into this function
1238             from SetBoundsCore, to match MS. Added call to PerformLayout if
1239             we have a parent (to trigger resizing of anchored parents if the 
1240             child size has changed (see testcase for #78835) 
1241         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
1242           new control code
1243         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
1245 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
1247         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
1248           System.Drawing when a toplevel window gets closed; there might
1249           be other toplevel windows belonging to the same app (Fixes #78052)
1251 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
1253         * FileDialog.cs: After reading FileDialog settings from mwf_config
1254           use Desktop prefix only if a real folder doesn't exist anymore.
1255         * FontDialog.cs: Added char sets.
1256           It is now possible to select the font, size or style with the
1257           textboxes.
1259 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
1261         * PrintPreviewDialog.cs: Use assembly name constants.
1263 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
1265         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
1266           scrollbar from whacking it's buttons)
1268 2006-08-24  Chris Toshok  <toshok@ximian.com>
1270         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
1271         in this patch (aggregating setting Left/Top/Width/Height to
1272         setting Bounds on the scrollbars), but the crux of the fix is in
1273         Recalculate, where we scroll by the remaining scroll_position if
1274         we're hiding a scrollbar.  The 2*$5 reward in the comment is
1275         serious.
1277 2006-08-24  Jackson Harper  <jackson@ximian.com>
1279         * MdiClient.cs:
1280         * MdiWindowManager.cs: If the form is made a non-mdi window we
1281         need to remove the form closed event so that closing forms works
1282         correctly.
1284 2006-08-24  Jackson Harper  <jackson@ximian.com>
1286         * Control.cs: Make IsRecreating internal so that the driver can
1287         check it
1288         - Temporarily remove the Hide when controls are removed, its
1289         making a whole bunch of things not work because visibility isn't
1290         getting reset elsewhere correctly
1291         * Form.cs: Need to do a full handle recreation when the mdi parent
1292         is set.
1293         * XplatUIX11.cs: If we are recreating handles don't dispose the
1294         HWNDs.  What was happening is the handles were being recreated in
1295         SendWMDestroyMessages, but then flow continued on in that method
1296         and destroyed the new handles.
1298 2006-08-23  Jackson Harper  <jackson@ximian.com>
1300         * Form.cs: MdiClient is always at the back of the bus
1301         * Control.cs: When the order of items in the collection is changed
1302         we need to reset the all_controls array
1303         - do the same sorta setup thats done when adding a control when a
1304         control is set on the collection.
1306 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
1308         * TextBoxBase.cs (get_Text): Return an empty array if our document
1309           is empty (fixes #79052)
1311 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
1313         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
1314           on WM_SYSCHAR messages (fixes #79053)
1316 2006-08-23  Chris Toshok  <toshok@ximian.com>
1318         * DataGrid.cs: fix flickering when scrolling vertically.
1320 2006-08-23  Chris Toshok  <toshok@ximian.com>
1322         * DataGrid.cs (EndEdit): only invalidate the row header when we
1323         need to.
1325 2006-08-23  Chris Toshok  <toshok@ximian.com>
1327         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
1328         methods.  fixes the flicker when scrolling around.
1330 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
1332         * FileDialog.cs: Making sure the control is created before we get a 
1333           chance to use it with BeginInvoke (Fixes #79096)
1335 2006-08-23  Chris Toshok  <toshok@ximian.com>
1337         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
1338         width to use when painting the rows.
1340 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
1342         * TextBoxBase.cs:
1343           - Throw ArgumentException if a negative value is passed to SelectionLength
1344           - Update the selection end if start is moved. end needs to be always
1345             after start. (Fixes #79095)
1346           - Track selection length; MS keeps the selection length even if start
1347             is changed; reset on all other operations affection selection
1349 2006-08-22  Jackson Harper  <jackson@ximian.com>
1351         * TreeView.cs: Make sure both scrollbars get displayed and sized
1352         correctly when the other bar is visible.
1353         - Use the original clip rectangle for checking if the area between
1354         the two scrollbars is visible, not the viewport adjusted clipping
1355         rectangle.
1357 2006-08-22  Jackson Harper  <jackson@ximian.com>
1359         * Binding.cs: We don't use IsBinding because it requires the
1360         control to be created, which really shouldn't be necessary just to
1361         set a property on the control.
1363 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1365         * ComboBox.cs: Some CB.ObjectCollection methods must throw
1366         ArgumentNullReferenceException when the argument is null.
1368 2006-08-21  Jackson Harper  <jackson@ximian.com>
1370         * Timer.cs: Track the thread that the timer is started in (NOT
1371         CREATED), this way messages for it will only be triggered on its
1372         queue.
1373         * XEventQueue.cs: Track the timers here, this makes timers per
1374         thread, like MS.
1375         * XplatUIX11.cs: The timers are moved to the XEventQueue.
1377 2006-08-19  Chris Toshok  <toshok@ximian.com>
1379         * XplatUIX11.cs: after further communication with pdb, we get the
1380         best of both worlds.  SetZOrder working for un-Mapped windows, and
1381         no X errors for un-mapped windows.
1383 2006-08-19  Chris Toshok  <toshok@ximian.com>
1385         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
1386         as it was causing pdn toolbars to not have the correct stacking.
1388 2006-08-18  Mike Kestner  <mkestner@novell.com> 
1390         * ListView.cs : guard against negative ClientArea.Width in scrollbar
1391         calculation.  Not sure why control should ever be setting a negative
1392         width though.  Fixes #78931.
1394 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1396         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
1397         null items in ObjectCollection class.
1398         * ListBox.cs.: Likewise.
1400 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
1402         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
1403           as the base method in ThemeWin32Classic should work fine.
1404           Fixed bug #78607.
1406 2006-08-18  Jackson Harper  <jackson@ximian.com>
1408         * Binding.cs: When validating if the value entered doesn't convert
1409         properly reset to the old value.
1410         * RadioButton.cs: Don't fire click when we get focus.
1412 2006-08-18  Jackson Harper  <jackson@ximian.com>
1414         * FileDialog.cs: Paint the selection on the directory combobox the
1415         same way as on MS. 
1417 2006-08-17  Jackson Harper  <jackson@ximian.com>
1419         * ErrorProvider.cs: Don't allow the error control to be selected.
1420         * Control.cs: Don't send the SetFocus messages, the control
1421         activation will do this, and if we do it blindly here validation
1422         does not work.
1424 2006-08-17  Jackson Harper  <jackson@ximian.com>
1426         * Control.cs:
1427         * ContainerControl.cs: Make validation events fire in the correct
1428         order.  TODO: For some reason the first validation event is not
1429         getting fired.
1431 2006-08-17  Mike Kestner  <mkestner@novell.com> 
1433         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
1435 2006-08-17  Mike Kestner  <mkestner@novell.com> 
1437         * ComboBox.cs : implement scroll wheel support for popped-down
1438         state. Fixes #78945. 
1440 2006-08-17  Jackson Harper  <jackson@ximian.com>
1442         * TreeView.cs: Specify treeview actions (old patch that didn't get
1443         committed for some reason).
1444         - Don't let the mouse wheel scroll us too far.  Just want to make
1445         the bottom node visible, not scroll it all the ways to the top.
1447 2006-08-17  Jackson Harper  <jackson@ximian.com>
1449         * XplatUIX11.cs: Mouse wheel events go to the focused window.
1451 2006-08-17  Mike Kestner  <mkestner@novell.com> 
1453         * ComboBox.cs : don't do mouseover selection in simple mode.
1455 2006-08-16  Jackson Harper  <jackson@ximian.com>
1457         * Form.cs: Fire the closing events for all the mdi child windows
1458         when a window is closed.  If the cancel args are set to true, the
1459         main window still gets the event fired, but it doesn't not close.
1460         * MdiWindowManager.cs: Do this closing cleanup in a Closed
1461         handler, instead of when the button is clicked, so cancelling the
1462         close works correctly.
1463         * ComboBox.cs: Send the mouse down to the scrollbar.
1465 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1467         * ListBox.cs: When passing 'null' to SelectedItem,
1468         set SelectedIndex to -1, to unselect items. This is the
1469         observed behaviour in .Net.
1471 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
1473         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
1474           MS flags saying there won't be any. (fixes #78800)
1475         * Control.cs (HandleClick): Made virtual
1477 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
1479         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
1480           cultures. Fixed bug #78399.
1482 2006-08-16  Jackson Harper  <jackson@ximian.com>
1484         * Form.cs: Use the MdiClients MdiChildren property to access
1485         MdiChildren instead of creating the array from the child controls.
1486         * MdiClient.cs: Maintain a separate array of the mdi children, so
1487         that insertion order is maintained when the Z-order is changed.
1489 2006-08-16  Mike Kestner  <mkestner@novell.com> 
1491         * ListView.cs : add an ItemComparer and default to it for sorting.
1492         Fixes #79076, but sorting needs a complete overhaul to be compat with
1493         MS.
1495 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
1497         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
1499 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
1501         * Hwnd.cs (Mapped): Properly traverse the tree
1503 2006-08-15  Chris Toshok  <toshok@ximian.com>
1505         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
1506         pass manager.Current.GetType() to ParseData.  It has to be the
1507         property type.  So, hold off doing the ParseData until we're in
1508         SetPropertyValue where we know the type.  This fixes the crash in
1509         #78821 but the textbox is still empty.
1511 2006-08-15  Chris Toshok  <toshok@ximian.com>
1513         * DataGrid.cs:
1514         - when we're scrolling, only call Edit() again if the
1515         current cell is still unobscured. Fixes bug #78927.
1516         - when handling mousedown on a cell, ensure the cell is visible
1517         before calling Edit.
1518         - remove the properties from DataGridRow, and remove the
1519         DataGridParentRow class altogether.
1520         
1522 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
1524         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
1525           fire OnTextChanged by ourselves. There's no point calling base,
1526           we don't set the base value anywhere else. Fixes #78773.
1528 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1530         * ListBox.cs: Call CollectionChanged when modifying
1531         an item from Items indexer, to update the actual items
1532         in the list box.
1534 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1536         * PrintDialog.cs: Small fixes for focus and a pair of checks,
1537         to match .Net behaviour.
1539 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
1541         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
1543 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
1545         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
1547 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
1549         * MessageBox.cs: Prevent potential NRE exception.
1550         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
1552 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
1554         * MessageBox.cs: Calculate the owner of a messagebox, also make
1555           it topmost. Fixes #78753
1557 2006-08-14  Chris Toshok  <toshok@ximian.com>
1559         * XplatUIX11.cs: A couple of fixes so that metacity will let us
1560         programmatically move windows.  first, set the PPosition hint as
1561         well as the USPosition hint.  Second include some code from pdb
1562         that sets the window type to NORMAL when we set the transient for
1563         hint.  This is because, in the absence of a window type, metacity
1564         thinks any window with TransientFor set is a dialog, and refuses
1565         to let us move it programmatically.  fascists.
1567 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
1569         * XplatUIX11.cs: When setting normal hints, take into consideration
1570           an different hints previously set so we don't delete them (fixes #78866)
1572 2006-08-12  Chris Toshok  <toshok@ximian.com>
1574         * ToolBarButton.cs: make Layout return a boolean, if something to
1575         do with the button's layout changed.
1577         * ToolBar.cs:
1578         - add another parameter to Redraw, @force, which all existing
1579           calls set to true.
1580         - make the Layout function return a boolean which is true if the
1581           layout has actually changed.  Redraw now uses this (and @force)
1582           to determine when to invalidate.  At present the only place
1583           where @force can be false is the call from OnResize, when
1584           background_image == null.  So, resizing a toolbar when the
1585           layout doesn't change results in no drawing.
1587 2006-08-12  Chris Toshok  <toshok@ximian.com>
1589         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
1590         the VScrollBar and HScrollbar reversed.  oops.
1592         * DataGrid.cs: fix the logic that assigns sizes to the implicit
1593         scrollbars.  we were assigning them twice (once in
1594         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
1595         therefore causing two scrollbar resizes (and redraws?) to happen
1596         per grid resize.
1598 2006-08-12  Chris Toshok  <toshok@ximian.com>
1600         * ToolBarButton.cs: redraw the entire button if the theme tells us
1601         to.
1603         * Theme.cs: add ToolBarInvalidateEntireButton.
1605         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
1606         buttons, just the border.
1608         * ThemeNice.cs: redraw the entire toolbar button since we need to
1609         draw the highlight image.
1611         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
1612         we need to redraw the entire button (not just the border).
1614 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
1616         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
1617           for vertical bars. Fixes the mismatches shown by #78513
1619 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
1621         * FileDialog.cs: If a saved/remembered path doesn't exist
1622           anymore, fall back to "Desktop".
1624 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
1626         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
1627           parent. It's apparently legal to not have one
1628         * XplatUIX11.cs:
1629           - SetZOrder: Don't try to set Z-Order on an unmapped window
1630           - CreateWindow: 0,0 are legal coordinates for a window. don't move
1631             it unless the coordinates are negative
1633 2006-08-10  Mike Kestner  <mkestner@novell.com>
1635         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
1636         when setting to null per msdn docs.  Fixes #78854.
1638 2006-08-10  Chris Toshok  <toshok@ximian.com>
1640         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
1641         flickering by setting a clip rectangle on the Graphics when we
1642         need to redraw just a particular menuitem.  Also, rename "OnClick"
1643         to "OnMouseDown" to reflect what it actually is.
1644         
1645         * Form.cs: track the OnMouseDown change.
1647 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
1649         * CommonDialog.cs: Properly inherit the CreateParams from the form
1650           and only change what we need. Fixes #78865
1652 2006-08-10  Chris Toshok  <toshok@ximian.com>
1654         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
1655         flickering in flat mode (and most of the flickering in general) by
1656         only invalidating the button border (and not the entire rectangle)
1657         when the state changes.  A couple of cases still flicker:
1658         ToggleButtons, and the dropdown arrow case when the user mouse
1659         ups.
1661 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
1663         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
1664           for german keyboards. Numlock state shouldn't affect the behaviour
1665           of the Del key. Fixes bug #78291.
1667 2006-08-10  Chris Toshok  <toshok@ximian.com>
1669         * ListControl.cs: remove the items.Clear line from BindDataItems,
1670         as this is the first thing done by both subclasses in their
1671         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
1672         passed -1, refresh the list.  This gets databinding working when
1673         the datasource is set on the list before the datasource is
1674         populated (as in wf-apps/ReportBuilder.)
1676         * ComboBox.cs: remove the argument to BindDataItems.  This call
1677         should really go away, and be initiated by the ListControl code.
1679         * ListBox.cs: same.
1681 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
1683         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
1684           if no data is in the document when the control is displayed
1686 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
1688         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
1689           yes (fixes #78806)
1690         * TextControl.cs: 
1691           - PositionCaret: Allow positioning of caret but don't call methods 
1692             requiring a handle if the window isn't created yet
1693           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
1694           - owner_HandleCreated: Don't position the caret, just update it's 
1695             location. User might have already set a different position
1697 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
1699         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
1700           windows. Screws up the returned coordinates for child windows. 
1701           Fixes #78825. I'm hoping this doesn't break something, since the
1702           code was explicitly put in 8 months ago, but no bug was attached.
1703           Menus still seem to work properly.
1705 2006-08-08  Chris Toshok  <toshok@ximian.com>
1707         * DataGrid.cs: make BeginInit/EndInit actually do what they're
1708         supposed to do - delay data binding until the EndInit call.  Also,
1709         make the table style collection's CollectionChangeAction.Refresh
1710         work properly.
1712         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
1713         (with action = Refresh) when a consituent table's MappingName is
1714         changed.
1716 2006-08-08  Chris Toshok  <toshok@ximian.com>
1718         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
1719         Invalidate, since changing the text can change the size of the all
1720         toolbar buttons.
1722 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
1724         * Form.cs (AddOwnedForm): Still need to add the form to our listif
1725           we don't have it yet
1727 2006-08-08  Chris Toshok  <toshok@ximian.com>
1729         * PrintControllerWithStatusDialog.cs: don't .Close() the status
1730         dialog, as this causes X errors later on, since we actually
1731         destroy the window.  Instead, .Hide() it.
1733 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
1735         * ComboBox.cs: Added focus reflection for popup window
1736         * XplatUIX11.cs: 
1737           - Removed transient setting for non-app windows for now, not sure it
1738             was needed
1739           - Fixed logic checking if we have captions when deciding 
1740             override_redirect, WS_CAPTION is two bits and a 0 check was not
1741             sufficient
1742           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
1743             complicated
1744         * Form.cs: 
1745           - AddOwnedForm: Don't just add the form to the list, call the property
1746             to ensure the driver is informed about the ownership as well
1747           - CreateHandle: Set the TopMost status in the driver if we have an owner
1748         * XplatUI.cs: Fixed debug statement
1750 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
1751         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
1752           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
1753           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
1754           TrackBarRenderer.cs: Make constructor private.
1755         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
1756         * ProfessionalColorTable.cs: Make properties virtual.
1758 2006-08-06  Duncan Mak  <duncan@novell.com>
1760         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
1761         is not changing.
1763 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
1764         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
1765           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
1766           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
1767           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
1768           Initial import of new 2.0 classes.
1770 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
1771         * Application.cs: Add 2.0 VisualStyles properties.
1773 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
1774         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
1775           XplatUIX11.cs: Create property to allow access to existing private
1776           variable "themes_enabled"
1778 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1780         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
1781         file size, as otherwise our class libraries fail using windows. Fixes
1782         bug #78759.
1784 2006-08-04  Jackson Harper  <jackson@ximian.com>
1786         * Form.cs:
1787         * XplatUIX11.cs: Move the toolwindow window manager creation into
1788         the X11 driver, this way on win32 we can let windows create/handle
1789         the toolwindows.
1791 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1793         * PrintDialog.cs: Remove some redundant checks, add some others,
1794         clean some code, and move the focus to the text boxes when the
1795         values are incorrect.
1797 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
1799         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
1801 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
1803         * NumericUpDown.cs: Setting the Minimum and Maximum is now
1804           handled correctly. Fixes bug #79001.
1806 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1808         * PrintDialog.cs: The "Copies" numeric up down must have
1809         set the Minimum property to 1; only if the value is bigger
1810         than 1, activate "Collate" check box. This is the behaviour of .Net.
1811         Also modify the Document elements only if it is not null.
1813 2006-08-03  Jackson Harper  <jackson@ximian.com>
1815         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
1816         length. (We have a larger array then actual node count).
1817                 
1818 2006-08-03  Jackson Harper  <jackson@ximian.com>
1820         * ComboBox.cs: Don't show selection by default.
1821         - The SelectAll isn't needed here, since the focus code should do
1822         that
1823         - DDL style lists to manual selection drawing, so when they
1824         get/lose focus they have to invalidate.
1826 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
1828         * TextBoxBase.cs: Don't always show all selections by default.
1830 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
1831         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
1832           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
1833           Fixed various typos.
1835 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
1837         * Control.cs: Removing the controls in a ControlCollection with
1838           Clear now hides the controls as expected. Fixes bug #78804. 
1840 2006-08-03  Jackson Harper  <jackson@ximian.com>
1842         * Control.cs: Revert previous focus patch, it breaks reflector.
1844 2006-08-03  Jackson Harper  <jackson@ximian.com>
1846         * ComboBox.cs: Cleanup selection and focus with the combobox.
1847         This also eliminates some duplicated keyboard code, since now
1848         everything is handled by the main class.
1849         - Make list selection work on mouse up instead of down, to match
1850         MS.
1852 2006-08-02  Jackson Harper  <jackson@ximian.com>
1854         * Control.cs: Setting focus needs to go through the whole
1855         selection mechanism.
1857 2006-08-02  Chris Toshok  <toshok@ximian.com>
1859         * PrintPreviewDialog.cs: change MinimumSize to use
1860         base.MinimumSize so it works.
1862 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
1864         * TextControl.cs:
1865           - UpdateCaret: Added sanity check in case caret isn't defined yet
1866           - Line.Delete: Now updating selection and caret markers if we're
1867             transfering a node (Properly fixes #78323)
1868           - SetSelectionEnd: Added sanity check
1869         * TextBoxBase.cs: Removed broken attempt to fix #78323
1871 2006-08-01  Chris Toshok  <toshok@ximian.com>
1873         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
1874         Close() call is handled in Form, not here.
1876 2006-08-01  Chris Toshok  <toshok@ximian.com>
1878         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
1879         layout/rendering.
1881         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
1882         for sizes < 100% zoom.  The code now aggressively attempts to keep
1883         from calling document.Print (), and tries not to use the scaling
1884         g.DrawImage whenever possible (it still does if you scale to >
1885         100%, since usually that involves huge images).
1887         * PrintPreviewControl.cs: hook up the close button.
1889 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
1890         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
1891           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
1892           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
1893           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
1894           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
1895           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
1896           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
1897           Removed [Serializable] for 2.0 Event Handlers.
1899 2006-07-31  Jackson Harper  <jackson@ximian.com>
1901         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
1902         * TextControl.cs: Uncomment out the body of this method.
1904 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
1906         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
1907           standard cursors.
1909 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
1911         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
1912           that embed TextBox and need selections visible even if textbox is not
1913           focused to enforce that behaviour.
1914         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
1915           selection drawing
1917 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
1919         * TextControl.cs:
1920           - Added new SetSelectionStart/SetSelectionEnd overloads
1921           - Fixed viewport width assignment to be accurate
1922           - Adjusted alignment line shift calculations to allow cursor on right
1923             aligned lines to be always visible at the right border (like MS)
1924         * TextBoxBase.cs:
1925           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
1926           - TextBoxBase_SizeChanged: recalculating canvas on size changes
1927           - CalculateScrollBars: Use ViewPort size instead of window size, to
1928             properly consider space occupied by the border and scrollbars 
1929             (Fixes #78661)
1930           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
1931             calculations; no longer leaves artifacts
1932           - CaretMoved: Adjusted window scrolling to match MS and fixed several
1933             calculation bugs (Still missing right/center align calculations)
1935 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
1937         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
1938           use of both scroll rect and clip rect, as they do the same.
1940 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
1942         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
1943           in the event handler (fixes #78912)
1945 2006-07-31  Chris Toshok  <toshok@ximian.com>
1947         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
1948         grid.ListManager.Count, since grid.ListManager might be null.
1949         This of course begs the question "why are we drawing rows for a
1950         grid with no list manager (and therefor no rows)?"  Fixes the
1951         crash in bug #78929.
1953 2006-07-31  Chris Toshok  <toshok@ximian.com>
1955         * RelatedPropertyManager.cs: Don't always chain up to the parent
1956         ctor.  instead, call SetDataSource if the parent's position is !=
1957         -1.  Fixes the crash in #78822.
1959 2006-07-31  Chris Toshok  <toshok@ximian.com>
1961         * DataGrid.cs (get_ListManager): use field instead of property
1962         accessors for datasource and datamember.
1963         (RowsCount): make internal again.
1964         (OnMouseDown): end edits before resizing columns/rows.
1965         (OnMouseUp): restart edits after resizing columns/rows.
1967 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
1969         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
1970           This fixes the situation where the last set cursor is displayed
1971           whenever the mouse is over scrollbars.
1973 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1975         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
1976         Document properties, as well as initial values.
1978 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
1980         * XplatUIWin32.cs (SetBorderStyle): Setting both border
1981           and ClientEdge results in a 3-pixel border, which is
1982           wrong.
1984 2006-07-28  Jackson Harper  <jackson@ximian.com>
1986         * TreeNodeCollection.cs: Fix the clear method.
1987         - Fix the Shrink also
1989 2006-07-27  Jackson Harper  <jackson@ximian.com>
1991         * TreeView.cs: Make sure the visible order is computed when we
1992         attempt to size the scrollbars (for trees that mess with the
1993         scrolling when they shouldn't.
1994         - Make sure to give the scrollbars valid values.
1996 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
1998         * XplatUIX11.cs: Move motion compression code to where it
1999           has less performance impact
2001 2006-07-26  Jackson Harper  <jackson@ximian.com>
2003         * UpDownBase.cs: When the control is selected make the child
2004         controls non selectable, so that a click on them won't do a
2005         focus/unfocus cycle.
2006         - Don't give focus to the text box when the spinner is selected.
2007         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
2009 2006-07-26  Chris Toshok  <toshok@ximian.com>
2011         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
2012         satisfied with this solution.  If the bitmaps are small, we should
2013         just cache them in the PrintPreviewDialog and draw them here.
2014         Also, the layout is broken for the 2-up and 3-up cases.
2016         * Theme.cs: add PrintPReviewControlPaint.
2018         * PrintPreviewDialog.cs: first pass implementation.
2020         * PrintPreviewControl.cs: first pass implementation.  No
2021         scrollbars yet.
2023         * PrintDialog.cs: only validate fields if that particular portion
2024         of the UI is enabled.  Also, set the document's controller to a
2025         PrintControllerWithStatusDialog wrapping the document's print
2026         controller.
2028         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
2029         bring up a SaveFileDialog (i hope we don't want to match the
2030         behavior of the crappy windows file entry) and set the
2031         PrinterSettings.PrintFileName accordingly.
2033 2006-07-26  Jackson Harper  <jackson@ximian.com>
2035         * ContainerControl.cs: Add a field that disables auto selecting
2036         the next control in a container when the container is activated.
2037         * UpDownBase.cs: Don't select the text box when the up down is
2038         selected.
2040 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
2042         * XEventQueue.cs: Added methods for peeking (used for compression
2043           of successive events)
2044         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
2045           mouse move events (fixes #78732)
2047 2006-07-25  Jackson Harper  <jackson@ximian.com>
2049         * UpDownBase.cs: Use an internal class for the textbox so that we
2050         can control focus.  the updown control should always have focus,
2051         if either the text area or the buttons are clicked.
2052         - Send the key messages to the textbox, since it never actually
2053         has focus
2054         - Activate and decativate the textbox caret.
2056 2006-07-24  Jackson Harper  <jackson@ximian.com>
2058         * Control.cs: Use the directed select when selecting a control,
2059         this way the container controls override will get called and the
2060         whole ActiveControl chain will get triggered.  TODO: probably need
2061         to make sure this gets done everywhere instead of the old
2062         Select(Control).
2063         * ContainerControl.cs: Implement the directed Select method to
2064         find and activate the correct child control.    
2065         
2066 2006-07-22  Mike Kestner  <mkestner@novell.com>
2068         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
2069         menu handling code so that clicks without a grab work too.
2070         [Fixes #78914]
2072 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
2074         * FileDialog.cs: Enable the BackButton when dirstack has one element.
2075           Added some small optimizations.
2077 2006-07-21  Matt Hargett  <matt@use.net>
2079         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
2081 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
2083         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
2084           tests pass and match MS in some strange border cases.
2086 2006-07-21  Chris Toshok  <toshok@ximian.com>
2088         * ThemeWin32Classic.cs: handle drawing of the relation links and
2089         parent row buttons.
2091         * Theme.cs: change args to DataGridPaintParentRow.
2093         * DataGrid.cs: Don't use controls for the relation links and
2094         parent buttons, so we have to handle all their interactions in
2095         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
2096         when we're navigating through child tables, so we can reinstate
2097         selection, expanded state, current cell, etc.
2099 2006-07-20  Chris Toshok  <toshok@ximian.com>
2101         * ToolBar.cs: When we redraw a button, for whatever reason,
2102         there's no reason to redraw the entire toolbar.  Also, don't call
2103         Control.Refresh from within Redraw, as it's much heavier than
2104         Invalidate (which is really what we want).
2106 2006-07-20  Chris Toshok  <toshok@ximian.com>
2108         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
2109         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
2110         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
2111         traces from within a debug IBindingList datasource
2112         (in mono/winforms/datagrid) for *days*, I've finally gotten things
2113         to work in a similar fashion.
2115 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2117         * ListBox.cs: Don't call Sort () when setting 
2118         the Sorted property to false (avoid an unnecessary sort).
2120 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2122         * ListControl.cs: DataSource should throw an ArgumentException
2123         instead of a normal exception when the argument is not of the 
2124         correct type.
2126 2006-07-20  Mike Kestner  <mkestner@novell.com>
2128         * Control.cs: add InternalPreProcessMessage to allow us to steal
2129         key events before MWF gets its paws on them.  Adapted from a
2130         suggestion by eno.
2131         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
2132         up/down/left/right navigation. Override the new internal control
2133         method to steal the events since they never make it to WndProc.
2134         * ToolBarButton.cs: don't worry about pushed when setting hilight
2135         since the drawing code prefers pushed to hilight. Invalidate on 
2136         Hilight changes. Fixes #78547 and #78525.
2138 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
2140         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
2141           the canvas size. Fixes #78868
2143 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
2145         * Splitter.cs: Track requested split position until first layout
2146           is performed. Fixes #78871
2148 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
2150         * Application.cs: Removed code that forces 1.x for the version
2151           number if the version started with 0. Not sure why that code was
2152           there and I couldn't find any bugs that indicated we needed it.
2153           Fixes #78869
2155 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
2157         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
2158           ResetDefaults(), just write some output to the console until it's
2159           implemented. Fixes bug #78907 for now. Eliminated two warnings.
2161 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
2163         * PropertyGridView.cs: set StartPosition of drop down forms
2164         so they appear in correct initial spot.  Fixes #78190.
2166 2006-07-19  Mike Kestner  <mkestner@novell.com>
2168         * ThemeWin32Classic.cs: use parent background color when drawing
2169         flat toolbars.  Restructure the conditionals to make sure non-flat
2170         non-Divider toolbars are filled too.  Fixes #78837.
2172 2006-07-19  Mike Kestner  <mkestner@novell.com>
2174         * ListBox.cs: Sort on collection changes even if the handle
2175         isn't created yet.  Fixes #78813.
2177 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2179         * ListControl.cs: DisplayMember should never be null,
2180         and now we assign String.Empty when null is passed to it (this
2181         is the .Net way).
2183 2006-07-17  Mike Kestner  <mkestner@novell.com>
2185         * ListViewItem.cs: restructure Font and subitem Font handling 
2186         to hold a specific font and refer back to owner on null.
2187         Fixes #78761.
2189 2006-07-17  Mike Kestner  <mkestner@novell.com>
2191         * ToolBar.cs: bandaid for side-effect of previous patch which was
2192         discarding explicit heights for non-AutoSize toolbars.  Need to
2193         extend my format tester to deal with AutoSize=false. Fixes #78864.
2195 2006-07-15  Jackson Harper  <jackson@ximian.com>
2197         * LabelEditTextBox.cs:
2198         * TreeView.cs: Use a new LabelEdit class for node editing, this
2199         class automatically 'closes' itself when it gets the enter key or
2200         loses focus.
2201         - Use the client rectangle when setting the trees scrollbars, so
2202         border style is taken into account.
2203         
2204 2006-07-14  Jackson Harper  <jackson@ximian.com>
2206         * TreeNode.cs:
2207         * TreeView.cs: Make the editing work similar to MSs, firing the
2208         events correctly and ending edits correctly.
2210 2006-07-14  Mike Kestner  <mkestner@novell.com>
2212         * ToolBarButton.cs:
2213         * ToolBar.cs: layout restructuring and redraw enhancements to support
2214         formatting changes gracefully, like setting TextAlign, ImageList, 
2215         ButtonSize, and Appearance.  Handles explicit button sizing quirks
2216         of the MS controls.  Things like flat toolbars ignoring button size
2217         but becoming constant sized at the largest button's size.  Normal
2218         toolbars with an image set cannot be shrunk smaller than the image,
2219         but text can be clipped/ignored.
2220         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
2221         is zero.  Seems like DrawString should be smart enough to not put
2222         anything on screen though. Also trim labels and ellipsize at the char
2223         boundary, not word.
2224         Fixes #78711 and #78483.
2226 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
2228         * FolderBrowserDialog.cs: Disable "New Folder" button and
2229           "New Folder" contextmenu menuitem if a folder like "My Computer"
2230           is selected.
2232 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
2234         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
2235         * FolderBrowserDialog.cs:
2236           - Use MWFConfig to store and read size and position settings
2237           - Added code to create a new folder (button or context menu).
2238             Use TreeView labeledit to change the name of the new folder.
2240 2006-07-14  Jackson Harper  <jackson@ximian.com>
2242         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
2243         when the tree is scrolled we end editing.
2245 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
2247         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
2248           Down arrows
2250 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
2252         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
2253         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
2254         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
2255         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
2256         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
2257         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
2258         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
2259         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
2260         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
2261         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
2262         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
2263         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
2264         ListViewItemSelectionChangedEventHandler.cs,
2265         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
2266         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
2267         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
2268         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
2269         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
2270         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
2271         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
2272         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
2273         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
2274         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
2275         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
2276         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
2277         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
2278         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
2279         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
2280         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
2281         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
2282         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
2283         WebBrowserNavigatingEventHandler.cs, 
2284         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
2286 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
2288         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
2289         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
2290         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
2291         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
2292         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
2293         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
2294         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
2295         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
2296         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
2297         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
2298         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
2299         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
2300         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
2301         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
2302         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
2303         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
2304         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
2305         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
2306         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
2307         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
2308         ListViewItemStates.cs, MaskFormat.cs: Added
2310 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
2312         * PropertyGridView.cs: Fix keyboard navigation of drop down.
2313         Patch from eno for bug 78558.
2314         
2315 2006-07-13  Jackson Harper  <jackson@ximian.com>
2317         * TreeView.cs: When an edit is finished make sure that the
2318         selected node is visible.
2319         - When setting the top/bottom use the scrollbars is_visible, so
2320         everything will be set correctly even if the tree isn't visible
2321         yet.
2323 2006-07-13  Jackson Harper  <jackson@ximian.com>
2325         * ComboBox.cs: Revert the item->index part of my previous patch.
2326         * TreeView.cs: Use LostFocus instead of Leave for detecting when
2327         the edit box has lost focus (duh).
2328         - Just make the edit box not visible when we get return, that will
2329         take the focus, which will call EndEdit
2330         * TreeNode.cs When we start editing, notify the treeview.
2332 2006-07-12  Jackson Harper  <jackson@ximian.com>
2334         * ComboBox.cs: Clear out old items before setting the item list.
2335         This prevents databound controls from having their items added
2336         twice.
2337         - Switch the combobox to use indices whereever possible instead of
2338         using Item's.  This allows usto navigate through lists that have
2339         more then one item with the same string value (ie a, b, b, a).
2340         - Scroll the listboxes scrollbar when a non visible item is
2341         highlighted
2342         - Allow keypress to cycle through all the possible values. For
2343         example if you have b1, b2, b3 and hold down the B key all the
2344         values will be cycled through.
2345         
2346 2006-07-12  Jackson Harper  <jackson@ximian.com>
2348         * TextBoxBase.cs:
2349         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
2350         this using the internal methods.
2351         * Control.cs: Add OnGotFocusInternal.  A new method that allows
2352         controls to "override" OnGotFocus and change focus behavior if
2353         needed.
2354         - Same thing for LostFocus
2355         * ComboBox.cs: Pass off focus to the text control properly.
2357 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
2359         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
2360         * FolderBrowserDialog.cs: Almost a complete rewrite.
2361           - Better support for Environment.Specialfolders
2362           - Added support for MWFVFS
2363           - Made setting SelectedPath work
2365 2006-07-12  Jackson Harper  <jackson@ximian.com>
2367         * Control.cs: Optimze getting all the controls.
2369 2006-07-11  Jackson Harper  <jackson@ximian.com>
2371         * ContainerControl.cs: Override SETFOCUS in the container control,
2372         so that it is not selected on mouse click.
2374 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
2376         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
2377           Hopefully we will have a better way once all of focus is complete.
2379 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
2381         * ThemeWin32Classic.cs: Commented out some debug code and fixed
2382           a compile error with csc.
2384 2006-07-11  Jackson Harper  <jackson@ximian.com>
2386         * Control.cs: When hiding a control only select the next control
2387         if the current control was focused.
2388         - Don't handle enter/leave when setting/killing focus, this is
2389         done by the container control.
2390         - Remove is_selected, it's not needed anymore.
2391         - Add utility methods for selecting a child control, and for
2392         firing the Enter/Leave events.
2393         * ContainerControl.cs: When a control is activated fire the
2394         enter/leave events.
2395         - Don't wrap when processing the tab key, so that focus can be
2396         moved outside of the container.
2397         - Use the correct active control
2399 2006-07-11  Jackson Harper  <jackson@ximian.com>
2401         * ComboBox.cs: Remove some debug code that was blinding me.
2402         * UpDownBase.cs: These controls actually aren't implicit, they are
2403         visible to the user.
2405 2006-07-10  Chris Toshok  <toshok@ximian.com>
2407         * DataGrid.cs: move back to the is_adding boolean field.  god i
2408         hate this is_editing/is_adding/is_changing stuff.
2410 2006-07-10  Chris Toshok  <toshok@ximian.com>
2412         * DataGridTableStyle.cs: just check if the property type is bool.
2413         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
2414         Don't use CanRenderType.
2416         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
2417         if our text == NullText.  Remove CanRenderType.
2419         * DataGridBoolColumn.cs: nuke CanRenderType.
2421         * DataGrid.cs: reenable some code to end the current edit inside
2422         of set_CurrentCell.  This fixes the other 1.1.16 regression.
2423         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
2424         Also, remove the visible_row_count arg from CalcRowHeaders, since
2425         we don't need to worry about the actual height of the area.
2427 2006-07-10  Chris Toshok  <toshok@ximian.com>
2429         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
2430         mode, just return.
2432         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
2433         the real sense of the IsInEditOrNavigateMode property (true =
2434         navigate, false = edit).  Also, update OnKeyPress to reflect this.
2436         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
2437         column style exists, we still need to set its property descriptor
2438         to match up with our list manager.
2440 2006-07-10  Chris Toshok  <toshok@ximian.com>
2442         * ThemeWin32Classic.cs: implement the new row/header painting
2443         approach.  The parent row painting will likely go away and
2444         replaced with label controls, but the rest seems to work ok (and
2445         efficiently).
2447         * Theme.cs: change the way we draw datagrid rows.  we don't draw
2448         the row headers as a block now.  Instead we draw them in the
2449         normal draw-row loop.  Add some calls for drawing parent rows and
2450         relation rows.
2452         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
2453         a default table style.  Set the defaults from ThemeEngine.Current,
2454         not SystemColors.  Fix lots of misc issues with property setters.
2456         * DataGrid.cs: move loads of style information out of this class
2457         as it's being duplicated with DataGridTableStyle.  keep track of a
2458         special DataGridTableStyle for the properties we used to mirror
2459         here.  Switch all the style properties to access this table style
2460         instead of instance fields of this class.  Also add a internal
2461         class to represent parent rows (more needs to be stored here, like
2462         the selection state from the parent table, as well as the
2463         expansion state.)  Also, for datasources with relations, do the
2464         right thing for collapse/expand, and add support for the
2465         navigation/parent row buttons.
2467         Lastly, fix the crash in the 1.1.16 build.
2469         * GridTableStylesCollection.cs: make the explicit interface
2470         implementations call the class's methods as opposed to duplicating
2471         them.
2473         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
2474         0 so the text doesn't jump around when we move the cursor.
2476 2006-07-10  Jackson Harper  <jackson@ximian.com>
2478         * TextBoxBase.cs:
2479         * ListBox.cs: Match MS's ToString (this makes debugging focus
2480         stuff infinitely easier).
2482 2006-07-10  Jackson Harper  <jackson@ximian.com>
2484         * Control.cs (SelectNextControl): When checking the control's
2485         parent use this instead of ctrl.parent so that null can be passed
2486         to SelectNextControl. (I have unit tests for this).
2487         - Remove unused var.
2489 2006-07-10  Chris Toshok  <toshok@ximian.com>
2491         * CurrencyManager.cs: correct one regression, the removal of the
2492         finalType field.  Also, add a MonoTODO on CanAddRows, implement
2493         Refresh() correctly, and fix some event emission in
2494         ListChangedHandler.
2496 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
2498         * FileDialog.cs: Don't use brackets for new folders if they exist
2499           under *nix. Instead use -(number of existing folders +1).
2501 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
2503         * FileDialog.cs:
2504           - Fixed really nasty bug #78771
2505           - Don't block the whole GUI when reading directories with a lot of
2506             entries. Use an other thread instead and call BeginInvoke to
2507             update the ListView in MWFFileView
2509 2006-07-07  Chris Toshok  <toshok@ximian.com>
2511         * Control.cs (Dispose): release any Capture when disposing.
2513 2006-07-07  Chris Toshok  <toshok@ximian.com>
2515         * LinkLabel.cs (Select): if we chain up to the parent, set
2516         focused_index to -1 so we'll search for the first available link
2517         the next time the user tabs into us.  Also, if the direction is
2518         backward and focused_index == -1, start the search from the last
2519         element.
2521 2006-07-07  Chris Toshok  <toshok@ximian.com>
2523         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
2524         is beyond the end of the text, don't do anything.
2525         (CreateLinkPieces): set our ControlStyles.Selectable based on
2526         whether or not we have any links.
2527         (Link.Invalidate): use a loop instead of foreach.
2528         (Link.set_Start): null out owner.sorted_links so it'll be
2529         recreated by CreateLinkPieces.
2531 2006-07-06  Chris Toshok  <toshok@ximian.com>
2533         * LinkLabel.cs: revert the SetStyle change.
2535 2006-07-06  Chris Toshok  <toshok@ximian.com>
2537         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
2538         (OnEnableChanged): s/Refresh/Invalidate
2539         (OnGotFocus): if we have a focused index already, refocus it (so
2540         if we mouse out/in to the window it'll focus the right link).
2541         (OnKeyDown): move the tab handling out of here.
2542         (OnLostFocus): don't set focused_index to -1, so we can refocus it
2543         when we lose focus.
2544         (OnMouseDown): don't Capture here - Control handles it.  Also,
2545         focus the active link.
2546         (OnMouseUp): don't deal with Capture.
2547         (OnPaintBackgroundInternal): remove.
2548         (OnTextAlignChanged): CreateLinkPieces before calling the
2549         superclass's method.
2550         (OnTextChanged): call CreateLinkPieces before calling superclass's
2551         method.
2552         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
2553         move around.
2554         (Select): implement this, moving the selection between different
2555         links, and call parent.SelectNextControl if we don't have another
2556         link to focus in the given direction.
2557         (CreateLinkPieces): call Invalidate instead of Refresh.
2558         
2559 2006-07-06  Chris Toshok  <toshok@ximian.com>
2561         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
2562         new LinkLabel internals.
2564         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
2565         over pieces looking for active/focused/etc links.  also, deal with
2566         runs of text (and links) with embedded \n's in them, and use
2567         MeasureCharacterRanges instead of MeasureString to figure out the
2568         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
2569         two-step.
2571 2006-07-04  Jackson Harper  <jackson@ximian.com>
2573         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
2574         XKB or key auto repeat, do it manually.  Without key auto repeat,
2575         when a key is held down we get key press, key release, key press,
2576         key release, ... with auto repeat we get key press, key press, key
2577         press ..., and then a release when the key is actually released.
2579 2006-07-03  Jackson Harper  <jackson@ximian.com>
2581         * TabControl.cs:
2582         * ThemeWin32Classic.cs: Tabs do not obey normal background color
2583         rules, they are always control color regardless of the background
2584         color.
2586 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
2588         * FileDialog.cs: Added internal class MWFConfig.
2589           Removed Registry support and replaced it with support for the new
2590           MWFConfig class. See MWFConfig comments for more information.
2592 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
2594         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
2595           rectangle. Added some patches from eno from bug #78490 and fixed
2596           the arrow position for small up and down CPDrawScrollButtons.
2598 2006-06-30  Jackson Harper  <jackson@ximian.com>
2600         * InternalWindowManager.cs: Remove some debug code.
2601         * Form.cs: When an MdiParent is set to null, the window is
2602         "detatched" and becomes a normal window.
2603         * MdiClient.cs: Don't bring the new child form to the front until
2604         it is activated (setting it as active does this), this makes the
2605         previously active forms titlebar get redrawn as inactive.
2607 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
2609         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
2610           with later controls
2612 2006-06-29  Mike Kestner  <mkestner@novell.com>
2614         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
2615         arrow in keynav state.  Fixes #78682.
2617 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
2619         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
2620           order (fixes #78393)
2622 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
2624         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
2625           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
2626           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
2627           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
2628           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
2629           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
2630           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
2631           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
2632           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
2633           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
2634           enumerations (FlagsAttribute, SerializableAttribute, added/removed
2635           values)
2637 2006-06-28  Mike Kestner  <mkestner@novell.com>
2639         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
2641 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
2643         * PropertyGrid.cs,
2644           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
2645           item lines from other area (It also makes BackColor consistent and
2646           compatible with .NET). Fixed bug #78564.
2648 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
2650         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
2651         Patch from Eno for #78555.
2653 2006-06-27  Chris Toshok  <toshok@ximian.com>
2655         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
2657         * DataGridColumnStyle.cs: same.
2659         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
2660         
2661         * DataGridDrawingLogic.cs: nuke.
2663 2006-06-27  Chris Toshok  <toshok@ximian.com>
2665         * DataGridTableStyle.cs: clean up the constructors, and build the
2666         list of child relations for this table.  I have no idea if this is
2667         where we should be doing it (it probably isn't), but since we're
2668         already iterating over the properties..
2670         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
2671         struct and array for keeping track of row information, similar to
2672         what's shown in a hack on
2673         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
2675         * Theme.cs: be consistent about the naming of DataGrid methods,
2676         prefering ColumnWidths and RowHeights over columnsWidths and
2677         RowsHeights.
2679         * ThemeWin32Classic.cs: same, and also add support for variable
2680         sized rows (and the +/- expansion icons for related rows).
2682 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
2684         * TextBoxBase.cs: Applied Eno's patch from #78660
2686 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
2688         * Form.cs (ScaleCore): We don't want to scale our form if it's
2689           state is minimized or maximized, but we still need to scale our
2690           child windows. Also, added try/finally block to ensure layout
2691           gets reset (Fixes #78697)
2693 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
2695         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
2697 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
2699         * Form.cs: Fixed c+p error and added check to resize form if minimum
2700           size is bigger than current size (Fixes #78709)
2702 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
2704         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
2706 2006-06-26  Mike Kestner  <mkestner@novell.com>
2708         * ComboBox.cs: only do Keypress handling in the combo when there  
2709         are items in the collection. Fixes #78710.
2711 2006-06-26  Chris Toshok  <toshok@ximian.com>
2713         * Binding.cs: make this work bi-directionally.  also, clear up
2714         other mixups between Push/Pull Data (e.g. we're supposed to pull
2715         data when validating).
2717         * BindingManagerBase.cs: trim some fully qualified collection
2718         types.
2720         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
2722 2006-06-23  Chris Toshok  <toshok@ximian.com>
2724         * PropertyManager.cs: It appears (according to the unit tests)
2725         that PropertyManager doesn't use
2726         PropertyDescriptor.AddValueChanged to track propery value changes
2727         in its datasource, but uses the same scheme as Binding, where it
2728         looks for a <Property>Changed event and binds to it.
2730         Also, according to the docs, IsSuspended always returns false for
2731         a property manager with a non-null datasource.
2733 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
2735         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
2736           need to update the actual DialogResult. (Fixes #78613)
2738 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
2740         * Form.cs (ShowDialog): Release any captures before running the
2741           new message pump (fixes #78680)
2743 2006-06-22  Mike Kestner  <mkestner@novell.com>
2745         * ListView.cs: Layout column widths properly in details mode even 
2746         if HeaderStyle.None is set.  Fixes #78691.
2748 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
2750         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
2752 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
2754         * Control.cs (ContainsFocus): Using new driver method to get focused
2755           window, instead of trying to use internal tracking var, which can
2756           recursion issues (Fixes #78685)
2757         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
2758           XplatUIWin32.cs: Added GetFocus method to return focused window
2760 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2762         * ColorDialog.cs: when the mouse button is pressed inside the color
2763         matrix, don't let the cursor move out of it until the button is
2764         released, which is the behavior on windows. Changed 'colours' by
2765         'colors' to use the same word consistently.
2767 2006-06-21  Chris Toshok  <toshok@ximian.com>
2769         * DataGrid.cs: add in some basic navigation stuff (navigating to a
2770         child relation and back, using a stack).  Also, remove
2771         GetDataSource and the code that calls it - it's not needed.  Also,
2772         track CurrencyManager.ListName's removal.
2774 2006-06-21  Chris Toshok  <toshok@ximian.com>
2776         * CurrencyManager.cs: push some of the original type checking from
2777         BindingContext.CreateBindingManager to here, and remove some of
2778         the finalType stuff.  Need more tests to make sure I've got the
2779         ListName part right, and we might need more in SetDataSource.
2781         * PropertyManager.cs: add a ctor that takes just the datasource,
2782         and no property name.  Make SetDataSource work with a null
2783         property_name, and make Current return the data_source if the
2784         property descriptor is null.  this makes 'string foo = "hi";
2785         BindingContext[foo].Current' return "hi" as it should.
2787         * RelatedCurrencyManager.cs: make this code more generic - there's
2788         no reason the parent manager has to be CurrencyManager, and
2789         there's no reason to pass the DataRelation.  It suffices to use a
2790         BindingManagerBase and PropetyDescriptor.
2792         * RelatedPropertyManager.cs: make a similar change here.
2793         
2794         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
2795         flower I knew it could be.
2797 2006-06-20  Chris Toshok  <toshok@ximian.com>
2799         * PropertyManager.cs: the PropertyChangedHandler is invoked when
2800         data in the source has changed and we need to update the control,
2801         so s/PullData/PushData.
2803         * CurrencyManager.cs: Refresh is meant to update the control from
2804         data in the datasource.  So, s/PullData/PushData.
2806         * BindingContext.cs: add more ugliness (we weren't handling the
2807         case where data_source = DataTable and data_member = column_name).
2809         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
2810         from the perspective of the datasource.  PullData pulls from the
2811         control, PushData pushes to the control.
2813 2006-06-20  Chris Toshok  <toshok@ximian.com>
2815         * BindingContext.cs: rewrite the CreateBindingManager code to
2816         handle navigation paths more or less properly.  This could
2817         definitely stand some more work, in particular to push the
2818         recursion up to the toplevel.  But that relies on fixes in other
2819         places (System.Data comes to mind).
2821         Also, move to a flat hashtable (and encode the twolevel nature of
2822         the dictionary into the hash key).  This lets us implement the
2823         IEnumerable.GetEnumerator method.
2825         * RelatedCurrencyManager.cs: new class.  Update our view based on
2826         our relation and our parent CurrencyManager's position.
2828         * CurrencyManager.cs: split out some logic from the ctor into
2829         SetView, so it can be called from the new RelatedCurrencyManager
2830         subclass.
2832         * RelatedPropertyManager.cs: new class.  Update our datasource
2833         based on the position of our parent CurrencyManager.
2835         * PropertyManager.cs: split out some logic from the ctor into
2836         SetDataSource, so it can be called from the new RelatedDataSource
2837         subclass.  Also, make the Current getter return the value
2838         of the PropertyDescriptor, not the data_source.
2840         * Binding.cs: no need to duplicate the string splitting code here.
2842 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
2844         * Control.cs:
2845           - set_Enabled: OnEnabledChanged is not called if the inherited state 
2846             of the control is not altered, even though  we might be changing the
2847             internal state of the control (#78458)
2848           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
2849             OnEnabledChanged, to allow easy altering of any child window state
2850           - OnEnabledChanged: Added code to enable/disable driver window state
2851           - OnParentEnabledChanged: Instead of firing the event, call 
2852             OnEnabledChanged, which will fire the event and also a) set driver
2853             window state and pass the enabled state to any grandchildren (#78458)
2855 2006-06-19  Jackson Harper  <jackson@ximian.com>
2857         * InternalWindowManager.cs: We don't set the cursor explicitly
2858         thats done via the response to NCHITTESTs.
2859         - Don't need to adjust for titlebar heights anymore, the
2860         coordinates are coming in the correct coordinates now (see peters
2861         last patch).
2864 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
2866         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
2867           being translated relative to whole window, instead of client window.
2868           That caused broken offsets on mouseclick (and caused gas for our
2869           InternalWindowManager)
2871 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
2873         * TextControl.cs:
2874           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
2875           - Undo(): Added replay of cursor move on DeleteChars action; added
2876             calling Undo() again if a recorded cursor move is invalid (to
2877             ensure that some action is performed on Undo)
2878         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
2880 2006-06-16  Jackson Harper  <jackson@ximian.com>
2882         * MdiClient.cs: Instead of just sizing maximized windows when
2883         there is a resize we also have to adjust the Y of minimized
2884         windows, so they stay pinned to the bottom of the mdi container.
2885         - Eliminate separate tracking of the active control, we can just
2886         get this from the controls collection.
2887         - Paint the decorations for the newly activated titlebar so we get
2888         a pretty blue bar.
2889         * InternalWindowManager.cs:
2890         * ThemeWin32Classic.cs: Minimized windows get all three buttons
2891         even if they are a tool window.
2892         
2893 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
2895         * TextControl.cs (Undo): Handle non-existent cursor locations in the
2896           undo buffer, these can happen when text was deleted and the cursor
2897           was recorded first. Since we will also have a recorded cursor
2898           after the delete this is not an issue. (Fixes #78651)
2900 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
2902         * AccessibleObject.cs: Remove dependence on Control.is_selected;
2903           instead properly track control states internally (allows us to
2904           remove is_selected from Control)
2906 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2908         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
2909         whose width is not a multiple of 8.
2911 2006-06-13  Jackson Harper  <jackson@ximian.com>
2913         * MdiClient.cs:  Only maximize the next child if the current one
2914         is maximized.
2916 2006-06-13  Chris Toshok  <toshok@ximian.com>
2918         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
2919         modified.  Also, guard against grid or grid_drawing being null in
2920         Invalidate.
2922         * DataGrid.cs: Reformat tons of getters/setters.  In the
2923         DataMember setter, just call SetNewDataSource instead of
2924         duplicating some of its functionality.  In SetNewDataSource, don't
2925         check ListManager for null, since the property getter creates the
2926         object if needed.
2928         * DataGridTableStyle.cs: don't set TableStyle or call
2929         SetDataGridInternal on the column here, it's done in
2930         GridColumnStylesCollection.Add.
2932         * GridColumnStylesCollection.cs: fix all the explicit interface
2933         implementations to just call our methods.  Nuke AddInternal() and
2934         move the body of it to Add().  Also, add a call to
2935         column.SetDataGridInternal to Add().
2937         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
2938         base()+duplicate code.  Also, use the Format property instead of
2939         format to generate an Invalidate ala MS.  Lastly, create the
2940         textbox here, unconditionally.
2941         (set_Format): call Invalidate.
2942         (get_TextBox): no need to call EnsureTextBox.
2943         (Commit): remove the message box.
2944         (Edit) remove the call to EnsureTextBox.
2945         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
2946         (EnterNullValue): no need to check textbox for null.
2947         (HideEditBox): no need to check textbox for null.
2948         (SetDataGridInColumn): add the textbox to the grid's controls.
2949         (EnsureTextBox): nuke.
2950         
2951 2006-06-13  Jackson Harper  <jackson@ximian.com>
2953         * MdiWindowManager.cs: Hook up to the maximized menus paint event
2954         and redraw the buttons when needed. Unhook when the window is
2955         unmaximized.
2956         * MainMenu.cs: Add an internal Paint event, the mdi window manager
2957         needs this so that it can redraw its buttons when the menu is
2958         repainted.
2959         * InternalWindowManager.cs:
2960         * Form.cs: The method order has changed for DrawMaximizedButtons,
2961         so that it can be a PaintEventHandler.
2962         
2963 2006-06-13  Jackson Harper  <jackson@ximian.com>
2965         * MdiClient.cs: When we close a maximized mdi window, the next mdi
2966         window is activated and maximized, even if it wasn't before.
2967         - When  a new window is activated repaint the decorations of the
2968         old one, so that it no longer has the Active "look" (the blue
2969         titlebar).
2970         * InternalWindowManager.cs: Open up CreateButtons to base classes
2971         so they can recreate the buttons on state changes.
2972         - If a window is maximized give it all three buttons
2973         * MdiWindowManager.cs: Create the titlebar buttons when the state
2974         is changed, this is needed because a toolwindow will not have all
2975         three buttons until it is maximized.
2977 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
2979         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
2980           Fixed bug #78609.
2982 2006-06-12  Jackson Harper  <jackson@ximian.com>
2984         * KeysConverter.cs: Make sure we handle the Ctrl special case
2985         if its the only key.
2986         
2987 2006-06-12  Jackson Harper  <jackson@ximian.com>
2989         * Theme.cs: Add a method to get the size of a managed window
2990         toolbar button.
2991         * InternalWindowManager.cs: Remove the ButtonSize property, this
2992         should be retrieved from the theme.
2993         * MdiWindowManager.cs: Get the button size from the theme
2994         * ThemeWin32Classic.cs: Make the method to get the managed window
2995         titlebar button size public.
2996         - Handle the different button sizes of maximized toolwindows
2997         (should match any maximized window).
2998         - Get the titlebar height from the theme, not the WM (which gets
2999         it from the theme).
3001 2006-06-12  Jackson Harper  <jackson@ximian.com>
3003         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
3004         event down to the mdi window manager.
3005         - Expose some extra stuff to base classes
3006         - Make sure to end the Capture on an NC Mouse up, so that we can
3007         get double clicks properly, and the sizing doens't stick.
3008         - When doing PointToClient contain it in the workable desktop
3009         area, this prevents windows from changing size when the cursor is
3010         pulled outside of the working area while sizing.
3011         * MdiWindowManager.cs: When we get a double click maximize the
3012         window.
3013         - Reset the cursor after handling mode changes.
3015 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
3017         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
3018           current desktop, instead of just assuming a 0, 0 origin. This
3019           is needed for our internal window manager, to know the top
3020           margin of the desktop
3022 2006-06-12  Chris Toshok  <toshok@ximian.com>
3024         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
3025         we need this to get rid of the selected background in the bool
3026         column.
3027         (CancelEditing): move the ConcedeFocus call to above the Abort
3028         call.  Also, set is_changing to false and invalidate the row
3029         header if we were changing before.
3030         (ProcessKeyPreviewInternal): remove, since noone outside this
3031         class calls it anymore.  Roll the code into ProcessKeyPreview.
3032         (EndEdit): remove the internal version.
3033         (InvalidateCurrentRowHeader): make private.
3035         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
3036         Keys.Escape handling (and with it the last call to
3037         DataGrid.EndEdit from outside the class.)
3040 2006-06-12  Chris Toshok  <toshok@ximian.com>
3042         * DataGridTextBox.cs (.ctor): isedit defaults to false.
3043         (OnKeyPress): set isedit to true.
3044         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
3045         already handled by the grid.
3047         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
3048         right.  ugh.
3049         (set_DataSource): SetDataSource always returns true, so stop
3050         putting it in an if statement.
3051         (EndEdit): get rid of some {}'s
3052         (ProcessGridKey): return true in case Keys.Escape.
3053         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
3054         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
3055         PositionChanged, stopped connecting to CurrentChanged.
3056         (GetDataSource): simplify this a bunch.
3057         (SetDataSource): change return type from bool to void.
3058         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
3059         to this, and make sure we don't set ListManager.Position inside
3060         set_CurrentCell.
3061         (OnListManagerItemChanged): if we're passed an actual index,
3062         redraw that row.
3064         * CurrencyManager.cs (set_Position): don't call PullData here.
3066 2006-06-09  Jackson Harper  <jackson@ximian.com>
3068         * TreeNode.cs:  Recalculate the visible order before doing the
3069         Expand/Collapse Below calls, because those calls generate an
3070         expose.
3071         - Reduce calls to the TreeView property, which is mildly expensive
3072         by using a local var.
3073         * Form.cs: Layout the MDI child windows when creating the parent
3074         form.
3075         - Don't use the internal constructor anymore
3076         * MdiClient.cs: use the parent form width/height (if available)
3077         when laying out the child windows, we do this because the
3078         mdiclient isn't docked yet when the initial layout is done.
3079         - Don't need an internal constructor anymore.
3081 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3083         * FileDialog.cs: handle access errors when trying to create a folder
3084         or changing to a directory. No need to initialize out parameters.
3086 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
3088         * FileDialog.cs: Append a number when creating a new folder if the
3089           folder already exists (use parenthesis instead of square brackets)
3091 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
3093         * FileDialog.cs:
3094           - Disabled registry support for windows and added better registry
3095             error checking for other systems (need to investigate why it
3096             works perfectly on my system)
3097           - If a folder already exist show an error MessageBox instead of
3098             trying to create an indexed name.
3099           - Fixed a non intentional typo.
3101 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3103         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
3105 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
3107         * FileDialog.cs: When creating a new folder don't crash if the
3108           folder already exists.
3110 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
3112         * FileDialog.cs: Allmost a complete rewrite.
3113           - added a "virtual" file system that handles the differences
3114             between unix and windows file systems (especially the directory
3115             structure). Moved most of the directory and file handling code
3116             into the vfs.
3117             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
3118             UnixFileSystem and FSEntry.
3119           - Recently used folder/directory, size, location and used file names
3120             (file name ComboBox) are now stored in the registry and get read
3121             before the dialog shows up (fixes part 6 of bug #78446).
3122           - Creation of new folders/directories is now possible (context menu
3123             or ToolBar). Added TextEntryDialog for this that fills in the gap
3124             until ListView.LabelEdit works.
3125           - Fixed cursor handling (bug #78527) and focus handling for
3126             PopupButtonPanel
3127           - Various "Search in" ComboBox enhancements. The content of the
3128             dropdown listbox now almost matches ms.
3129           - Changed the behaviour when the user switches to SpecialFolder
3130             Recent to show the ListView in View.Details.
3131           - Beside using the ToolBar to change the View property of the
3132             file ListView it is now possible to use the context menu too.
3134 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
3136         * ComboBox.cs: Don't create a new ObjectCollection when an item
3137           gets inserted. Just insert the item in the existing object_items
3138           ArrayList.
3140 2006-06-08  Jackson Harper  <jackson@ximian.com>
3142         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
3143         that the treeview and root node checks are done also, this fixes a
3144         regression i caused in the unit tests.
3146 2006-06-07  Wade Berrier <wberrier@novell.com> 
3148         * RichTextBox.cs: More ISO8859-1 -> unicode
3150 2006-06-07  Mike Kestner  <mkestner@novell.com>
3152         * ComboBox.cs : use items to hold highlight/selection so that
3153         collection insertions don't require synchronization.
3155 2006-06-07  Jackson Harper  <jackson@ximian.com>
3157         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
3158         routine.  We now always keep the sized edge at the cursor instead
3159         of computing movement and adjusting rects.  There is one buglet
3160         with this method though when the cursor is moved over area that
3161         the window can not expand too (such as the toolbars on the desktop).
3163 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3165         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
3166         here. Fixes crash on startup in AlbumSurfer.
3168 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
3170         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
3171           values
3173 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3175         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
3176         statement to avoid calling XNextEvent which will block if another thread
3177         took the event that we were expecting. Fixes bug #78605.
3179 2006-06-07  Mike Kestner  <mkestner@novell.com>
3181         * ListView.cs : isolated checkbox clicking from the selection logic.
3182         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
3184 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3186         * Form.cs: Check that the value passed to Form.DialogResult
3187         is a valid enum value.
3189 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3191         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
3192         Computer'. Clicking it in the network view goes to 'My Computer'.
3193         Added CIFS filesystem type. Display the mount point of filesystems.
3194         Avoid duplicate mount points (happens for me with CIFS);
3196 2006-06-06  Jackson Harper  <jackson@ximian.com>
3198         * InternalWindowManager.cs: Draw the maximized windows buttons
3199         when resizing.
3201 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3203         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
3204         all other dialogs. Fixes bug #78585.
3206 2006-06-06  Mike Kestner  <mkestner@novell.com>
3208         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
3209         Only invalidate checkbox on checkstate changes to avoid flicker.
3210         * ListBox.cs : avoid unselect/select when clicking selected item.
3211         avoid reselection flicker for already multiselected items.
3212         Fixes #78382.
3214 2006-06-06  Jackson Harper  <jackson@ximian.com>
3216         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
3217         the parent form so that the menu is removed if needed.
3219 2006-06-06  Mike Kestner  <mkestner@novell.com>
3221         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
3222         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
3224 2006-06-06  Mike Kestner  <mkestner@novell.com>
3226         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
3229 2006-06-06  Jackson Harper  <jackson@ximian.com>
3231         * Control.cs: Use the property (instead of the field) to get the
3232         default cursor so it is instantiated correctly.
3233         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
3234         resizes so we need to manually repaint the window decorations here.
3235         - Set the titlebar button locations as soon as they are created,
3236         otherwise they are not set correctly on win32.
3237         
3238 2006-06-06  Chris Toshok  <toshok@ximian.com>
3240         * CurrencyManager.cs (set_Position): call PullData before
3241         OnCurrentChanged.
3242         (AddNew): after calling IBindingList.AddNew, update our
3243         listposition, and call OnCurrentChanged/OnPositionChanged (without
3244         calling PullData).
3245         (OnCurrentChanged): remove the call to PullData from here.
3246         (OnItemChanged): remove the call to PushData from here.
3247         (OnPositionChanged): change the test from == null to != null to
3248         match the other methods.
3249         (ListChangedHandler): the grossest part of the patch.  Implement
3250         this such that it passes the unit tests in CurrencyManagerTest and
3251         the output more or less matches that of MS's implementation.
3253 2006-06-06  Mike Kestner  <mkestner@novell.com>
3255         * ListView.cs : only update check state on single click.
3256         * ThemeWin32Classic.cs : fix focus drawing for details view without
3257         fullrowselect.  Fixes #78454.
3258         * XplatUIX11.cs : fix for double click emission.
3260 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
3262         * PropertyGridView.cs : Applied Atsushi's patch to fix
3263         font dialog bug  (#78197).
3265 2006-06-05  Jackson Harper  <jackson@ximian.com>
3267         * TreeNode.cs: Compute the next node for expanding/collapsing
3268         correctly. We now factor in nodes without a NextNode
3269         correctly. (Fixes somes cases in nunit-gui).
3270         * InternalWindowManager.cs: Set the bounds when updating the
3271         virtual position of a tool window.
3272         
3273 2006-06-05  Chris Toshok  <toshok@ximian.com>
3275         * DataGrid.cs: rename cached_currencymgr to list_manager.
3276         (set_CurrentCell): move SetCurrentCell code here, and clean it up
3277         some.
3278         (CurrentRow, CurrentColumn): single accessors so we can make the
3279         cursor movement code a lot easier to understand.
3280         (CurrentRowIndex): implement this in terms of CurrentRow.
3281         (BeginEdit): clean this up a bit.
3282         (CancelEditing): sort out the is_editing/is_changing/is_adding
3283         stuff a little.
3284         (EndEdit): minor changes.
3285         (OnKeyDown): add a comment about a (most likely) unnecessary
3286         check.
3287         (OnMouseDown): cancel editing when we click on a row header.  And
3288         use the CurrentRow setter, not CurrentCell.
3289         (ProcessDialogKey): directly call ProcessGridKey.
3290         (UpdateSelectionAfterCursorMove): factor out this common block of
3291         code (it's used everywhere that we move the cursor by updating row
3292         or column).
3293         (ProcessGridKey): pretty substantial overhaul.  Use the
3294         CurrentRow/CurrentColumn properties to make the code a lot more
3295         readable.  Only use the CurrentCell property when we have to
3296         modify both row and column at once.  Tab behavior is still broken,
3297         and Delete is untested.
3298         (Select): if we have no selected rows, set selection_start to
3299         @row.
3300         (EditCurrentCell): rename EditCell this.  It was only ever invoked
3301         with CurrentCell as the arg, so drop the arg and rename it.
3303         * DataGridColumnStyle.cs: clean up the constructors a little, and
3304         drop CommonConstructor().
3306         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
3307         actually get notified when the user hits it.
3308         (ProcessKeyMessage): *substantially* simplify this method.
3309         There's no reason (that I can see) for the textbox to be making
3310         calls into the datagrid at all.  Remove all of them but the ones
3311         for Enter handling.  those will take some more work.
3313         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
3314         calling HideEditBox.
3315         (HideEditBox): if we have an active textbox, render it invisible
3316         without causing a re-layout of the datagrid.
3318 2006-06-05  Mike Kestner  <mkestner@novell.com>
3320         * ListView.cs : fix NRE crasher when focuseditem is cleared by
3321         collection changes by resetting it to Items[0].  Fixes #78587.
3323 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3325         * MessageBox.cs: if the height of the text is larger than the icon_size,
3326         use that. Fixes bug #78575.
3328 2006-06-05  Jackson Harper  <jackson@ximian.com>
3330         * TreeView.cs: Fix line drawing when scrolling.  To do this each
3331         node is basically responsible for drawing its entire horizontal
3332         area.  When drawing a node it draws its parent node lines if
3333         needed.
3334         - Adjust the clip area to the viewport rectangle
3335         - Fix Left/Right key handling to match MS. (It expand/collapses
3336         and moves to parents/first child but does not move selection to
3337         sibling nodes).
3338         - Fix SetTop to work with new bound calculation code
3339         - When scrollbars are no longer needed we need to reset scrolling
3340         vars and recalculate the visible order so the redraw is correct
3341         * TreeNode.cs: We can't expand/collapse nodes with no children.
3343 2006-06-03  John Luke  <john.luke@gmail.com> 
3345         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
3346         so the colors work without dev packages
3347         
3348 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
3350         * Control.cs 
3351           - Select: Implemented to just use activate. Seems to match MS 
3352             behaviour closest. Documented to only do actual control walking 
3353             based on it's parameters if in a container control so I moved 
3354             the code there.
3355           - Removed selection check logic from our internal Select() method
3356         * ContainerControl.cs:
3357           - Select: Moved selection logic from Control here, since MS documents
3358             that containers obey the bool arguments. No longer calling base
3360 2006-06-02  Jackson Harper  <jackson@ximian.com>
3362         * TreeView.cs: If the selected node isn't changed when we get
3363         focus update the previously selected node so that we see the
3364         selection box.
3366 2006-06-02  Mike Kestner  <mkestner@novell.com>
3368         * ComboBox.cs: restructure grab and general mouse event handling.
3369         Make the composite control raise mouse events like it was a single
3370         control for leaves/enters/motion/up/down events.  fix dropdown list
3371         coordinate mangling and refactor it into the scrollbar subclass to
3372         reduce code duplication.  Fixes #78282 #78361 and #78457.
3374 2006-06-02  Mike Kestner  <mkestner@novell.com>
3376         * ScrollBar.cs: remove Capture setting/clearing, as it happens
3377         automatically in the Control.WndProc.
3379 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3381         * FileDialog.cs: fix crash when running SharpChess, which sets the
3382         FilterIndex to 2 with only one Filter.
3384 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3386         * ToolBar.cs: add SizeSpecified property.
3387         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
3388         try to figure out our real size, otherwise fallback to what the
3389         container says.
3391 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
3393         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
3394         * Control.cs (WndProc): MS always calls the DefWndProc to pass
3395           up the event
3397 2006-06-01  Mike Kestner  <mkestner@novell.com>
3399         * ListView.cs: revamp the focus management in ListView.  It still
3400         causes churn of LostFocus/GotFocus emissions on clicks, but it's
3401         better than not handling focus at all.  Will revisit when pdb feels
3402         the general focus handling is solid.  Fixes #78526.
3404 2006-06-01  Jackson Harper  <jackson@ximian.com>
3406         * TreeView.cs: Set the default border style in the constructor.
3407         - Move painting to use OnPaintInternal instead of capturing
3408         WM_PAINT, this is the correct way of doing things
3409         - UpdateBelow shouldn't invalidate the scrollbar area
3410         - Cap the top on update below in case the node was above the top
3411         of the viewport rectangle.
3412         - ExpandBelow and Collapse below need to obey Begin/End Update.
3413         * TreeNode.cs: Make is_expanded internal so the treenode
3414         collection can change it without firing the whole event chain.
3415         * TreeNodeCollection.cs: When clearing all the child nodes make
3416         sure to recalc the visible order.
3417         - Improve algo for remove the top node
3419 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
3421         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
3422           SendMessage directly calling window procedures, which in turn might
3423           call SetFocus()
3425 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
3427         * Control.cs: Don't handle WM_SETFOCUS if the same window already
3428           has focus (works around X11 sending a FocusIn after our SetFocus)
3429         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
3431 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
3433         * Mime.cs: Fix for the NET_2_0 build.
3434           NameValueCollection needs StringComparer now.
3436 2006-05-31  Chris Toshok  <toshok@ximian.com>
3438         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
3439         return (via an out parameter) the starting X of the column.
3440         (UpdateVisibleColumn): track change to FromPixelToColumn.
3441         (HitTest): add a ColumnResize case here.
3442         (DrawResizeLine): new function, probably poorly named.
3444         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
3445         only need to keep one reference.
3446         (set_ListManager): same.
3447         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
3448         Also, add support for HitTestType.ColumnResize.
3449         (OnMouseMove): add column resize behavior here, and change the
3450         cursor to the correct one as we move around the datagrid.
3451         (OnMouseUp): terminate the column resize if we're resizing.
3452         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
3453         for the current cell.
3454         (ConnectListManagerEvents): use cached_currencymgr.
3455         (DisconnectListManagerEvents): fill this in, using
3456         cached_currencymgr.
3457         (SetCurrentCell): remove cached_currencymgr_events handling.
3458         (SetDataMember): only call DisconnectListManagerEvents if
3459         cached_currencymgr is != null.
3460         (SetDataSource): same.
3461         (OnListManagerCurrentChanged): cached_currencymgr_events ->
3462         cached_currencymgr.
3464 2006-05-31  Jackson Harper  <jackson@ximian.com>
3466         * BindingManagerBase.cs: Remove somedebug code that creeped into
3467         SVN.
3468         * TreeNode.cs: We get the indent level dynamically right now, so
3469         don't track it as a member.
3470         * TreeNodeCollection.cs: Make sure all nodes added to the list
3471         have parents, treeviews/topnodes setup properly.
3472         - Don't attempt to track indent level.
3474 2006-05-30  Jackson Harper  <jackson@ximian.com>
3476         * BindingContext.cs: Create the currency manager tables here.
3477         This allows us to more easily create null tables (when bad data
3478         members are used), and more easily create related currency
3479         managers.
3480         * CurrencyManager.cs: All the table creation stuff is done by the
3481         binding context now.
3482         - Current should throw an exception if listposition is -1.
3483         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
3484         been bound yet.
3486 2006-05-30  Mike Kestner  <mkestner@novell.com>
3488         * ListView.cs: allow reexpansion of zero-width column headers.
3489         Fixes #78528.
3491 2006-05-28  Chris Toshok  <toshok@ximian.com>
3493         * CurrencyManager.cs (get_Current): after the late binding
3494         listposition = -1 fix, we need to guard against it here and return
3495         null, otherwise we raise an exception (which is swallowed
3496         elsewhere, and breaks datagrid databinding.)
3498 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
3500         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
3501           than WM_SYSKEY, don't throw if get something unexpected (#78507)
3503 2006-05-26  Jackson Harper  <jackson@ximian.com>
3505         * ControlPaint.cs:
3506         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
3507         values, it's faster and it's all we care about (we don't care if
3508         the names aren't equal).
3509         * KeyboardLayouts.cs: Eliminate some dead code.
3510         - Lazy init things
3511         * X11Keyboard.cs: Lazy init keyboard detection.
3512         - Cleanup access modifiers a little.
3514 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
3516         * XplatUIX11.cs: Once again, attempting to get layout just right.
3518 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
3520         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
3521           the sizes of each link section, that will result in sizes that
3522           match DrawString's layout (Fixes #78391)
3524 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
3526         * FileDialog.cs: If AddExtension property is true autocomplete the
3527           extensions in SaveFileDialog correctly. Fixes bug #78453.
3528           Set MyNetwork and MyComputer to "C:\" for windows. This should
3529           fix part 8 of bug #78446 for now.
3531 2006-05-26  Chris Toshok  <toshok@ximian.com>
3533         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
3534         invalidate the current row header if we need to, but presumably
3535         we'll invalidate the row corrsponding to the bounds or
3536         editingControl.
3537         (GridHScrolled): switch back to this method, as it's part of the
3538         public api.  *sigh*.
3539         (GridVScrolled): same.
3540         (OnMouseWheel): hack up something that more or less works.  Call
3541         GridHScrolled/GridVScrolled directly, instead of duplicating much
3542         of their code here.
3543         (EnsureCellVisibility): reinstate a bunch of this code, since we
3544         can't just set the scrollbar Value and expect to do all the work
3545         in the ValueChanged handler.  Also, Call Update() after scrolling
3546         in one direction so the other XplatX11.ScrollWindow call has the
3547         proper stuff in the proper places.
3548         (EditCell): set is_editing to true before calling .Edit.
3550         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
3551         don't bother comparing first.
3552         (OnKeyPress): call grid.ColumnStartedEditing before calling
3553         base.OnKeyPress.  this will set is_changing and invalidate the row
3554         header if necessary.
3555         (ProcessKeyMessage): for WM_CHAR messages, call
3556         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
3557         and WM_KEYDOWN.
3558         
3559         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
3560         it's done in the DataGrid.
3561         (NextState): call grid.ColumnStartedEditing, which takes care of
3562         invalidating the row header (and setting is_changing).
3564         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
3565         here.  it's done in the DataGrid.
3567 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3569         * Control.cs: allow changing the cursor when the mouse position is
3570         out of bounds but Capture is set.
3571         * LinkLabel.cs: handle the case when the mouse button is pressed on the
3572         linklabel but released somewhere else.
3574 2006-05-25  Jackson Harper  <jackson@ximian.com>
3576         * TreeView.cs: When we get focus if there is no selected node make
3577         it the top node
3578         - Remove some uneeded setup code from Draw.
3579         * TreeNodeCollection.cs: If the tree doesn't have a top node when
3580         a new node is inserted make the new node the top.
3581         * XplatUIX11.cs:
3582         * Timer.cs: Use Utc time so that no local time zone stuff needs to
3583         be used (should be faster).
3584         
3585 2006-05-25  Chris Toshok  <toshok@ximian.com>
3587         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
3588         problem with the last commit.
3590 2006-05-25  Chris Toshok  <toshok@ximian.com>
3592         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
3593         need the invalidate call here, while scrolling right-to-left via
3594         the left arrow key (i.e. moving the editing cell while scrolling).
3596         * DataGrid.cs (.ctor): remove the initialization of
3597         ctrl_pressed/shift_pressed.  We no longer track them using key
3598         up/down handlers, but by using Control.ModifierKeys.  Also, switch
3599         to using ValueChanged handlers on the scrollbars instead of
3600         Scrolled event handlers.  This simplifies a bunch of the scrolling
3601         code.
3602         (GridHValueChanged): rename from GridHScrolled, and change it to
3603         work with the new event args.
3604         (GridVValueChanged): same.
3605         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
3606         (OnMouseWheel): actually scroll the datagrid.  Don't change the
3607         selected cell.
3608         (ProcessGridKey): correct all the keyboard navigation stuff I
3609         could find.  Ctrl up/down/left/right/home/end work now.
3610         (EnsureCellVisibility): correct method name spelling.  Also,
3611         simplify this a touch by not explicitly calling the
3612         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
3613         scrollbar value.
3614         (OnKeyUpDG): no need for this method now.
3615         
3616 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3618         * LinkLabel.cs: display the OverrideCursor when hovering the label.
3619         Fixes bug #78392.
3621 2006-05-25  Chris Toshok  <toshok@ximian.com>
3623         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
3624         r61019.
3626 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
3628         * Application.cs: Moved setting of is_modal and closing to before
3629           we create the control, to allow the event handlers called as a
3630           result of creation affect closing. Also removed Gonzalo's previous
3631           change to setting DialogResult, the behaviour has been moved to 
3632           Form.ShowDialog()
3633         * Form.cs: 
3634           - ShowDialog(): Removed explicit creation of the form, let RunLoop
3635             handle it instead
3636           - ShowDialog(): If no dialog result is set, we need to return Cancel
3637           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
3638             the close is cancelled
3640 2006-05-25  Jackson Harper  <jackson@ximian.com>
3642         * StatusBar.cs: We only need to update the sizes of the other
3643         panels when we have auto size contents.  Also we are only updating
3644         the contents of the panel, not the borders, so compensate for the
3645         border width (TODO: get this width from the theme somehow).
3646         * TreeView.cs: Scrollable is true by default
3647         - Use invalidate instead of refresh where needed
3648         - Factor the scrollable value into scrollbar updating
3649         - Update the scrollbars if the Scrollable property is altered
3650         - Update the selected node if its ImageIndex is changed
3651         - Handle null nodes in UpdateNode (mainly so we don't have to
3652         check if selected is null when updating it
3653         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
3654         are factored into the visible count
3655         - Use VisibleCount for clarity in the code
3656         - When the font is changed we need to recurse through all the
3657         nodes and invalidate their sizes
3658         
3659 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3661         * Application.cs: set the DialogResult to fixed when the main form is
3662         hidden or destroyed while being modal.
3664 2006-05-25  Miguel de Icaza  <miguel@novell.com>
3666         * Theme.cs: Use Tangoified messagebox icons. 
3668         (GetSizedResourceImage): Also cope with width = 0 and do not
3669         trigger a warning in that case (0 means "give me your icon from
3670         the resouce, no special size needed).
3672 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
3674         * Application.cs: Leave runloop if the the main modal form is 
3675           hidden (fixes #78484)
3677 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
3679         * BindingContext.cs : reject null datasource in Contains() and
3680           Item[].
3681         * CurrencyManager.cs : check data_member validity when data_source
3682           is dataset. When it is late binding, the initial position is -1.
3684 2006-05-24  Jackson Harper  <jackson@ximian.com>
3686         * TreeNodeCollection.cs: Dont't recalculate the visible order on
3687         inserted nodes that aren't visible.  This changes the
3688         max_visible_order which confuses scrollbar settings.
3689         - Use the enumerator to get the prev node instead of duplicating
3690         code.
3691         * TreeView.cs: Use new method for setting scrollbar values
3692         - Don't set the bounds every time the scrollbar is updated
3693         - When updating below the root node use an invalidate instead of a
3694         refresh to prevent the child controls (scrollbars) from being
3695         refreshed. (UpdateBelow still needs to be reworked anyways).
3696         - Reenable SetBottom now that visible orders are set correctly,
3697         added some debug code incase we ever get bad values there again.
3698         - Set the scrollbar max to 2 less then the max value, this
3699         compensates for the max value being one above the node count, and
3700         for scrollbars adding one extra "notch".
3701         - When drawing image nodes if there is an imagelist we draw the
3702         first image in the list if the supplied image index is out of the
3703         image list's bounds.
3704         
3705 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
3707         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
3708           we receive a size change from the WM (Fixes #78503)
3710 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
3712         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
3713           rectangle (Fixes #78501)
3715 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
3717         * ButtonBase.cs: 
3718           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
3719             as a bitfield.
3720           - Fixed MouseMove to no longer switch pressed state unless the left
3721             mouse button is pressed. Atsushi provided the original patch (#78485)
3722           
3723 2006-05-24  Jackson Harper  <jackson@ximian.com>
3725         * ScrollBar.cs: New internal methods that allow us to change a
3726         couple values on the scrollbar (the most common case is maximum
3727         and large change) without getting multiple invalidates.
3729 2006-05-24  Chris Toshok  <toshok@ximian.com>
3731         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
3732         (Edit): save off the original state in oldState, and set
3733         grid.is_editing to true.
3734         (OnKeyDown): abort editing if escape is pressed.  also, call
3735         NextState if space is pressed.
3736         (OnMouseDown): call NextState.
3737         (NextState): factor out shared code from OnKeyDown and OnMouseDown
3738         here.  Also, only invalidate the row header once (on the initial
3739         is_changing switch) to save on redraws.
3741 2006-05-24  Chris Toshok  <toshok@ximian.com>
3743         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
3744         if the value in the cell is different than it was before.  This
3745         keeps us from triggering a layout when we move around a datarid
3746         with a highlighted cell.
3747         (Edit): suspend layout when creating/positining the text box, and
3748         resume passing false so we don't ever actually re-layout.
3749         (ReleaseHostedControl): same.
3750         (EnsureTextBox): reformat slightly, and set WordWrap to false.
3752         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
3753         control-key sequences should go to the datagrid - remove that
3754         lock.  Also, modify the conditions under which we move between
3755         cells when moving the cursor within a cell, and remove the "this"
3756         and "base" from field accesses.  We weren't even consistent, given
3757         they all were in the base class.
3759 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
3761         * Binding.cs : (.ctor)
3762           An obvious NRE fix for BindingTest.CtorNullTest().
3764 2006-05-23  Chris Toshok  <toshok@ximian.com>
3766         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
3767         them between lines.  This fixes some quirks editing cells in the
3768         datagrid.
3770 2006-05-23  Jackson Harper  <jackson@ximian.com>
3772         * TreeView.cs: Use begin/end update when doing expand/collapse all
3773         so that we don't get flicker on the scrollbar.
3775 2006-05-23  Jackson Harper  <jackson@ximian.com>
3777         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
3778         treenode calculations to be independant of the painting code. To
3779         do this nodes track a visible order which is calculated by the
3780         treeview.
3781         - Call new methods for expanding/collapsing nodes.  These methods
3782         use scrollwindow so we don't have to update everything below the
3783         node.
3784         * TreeView.cs: Refactored drawing and scrolling code.  We don't
3785         need to update nodes when drawing anymore or calculate scrollbar
3786         stuff.
3787         - Added new methods for expanding/collapsing nodes. These methods
3788         use ScrollWindow so as to not have to redraw all the nodes below.
3789         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
3790         we add/remove nodes or sort.
3791         - Handle removing the selected and the top node properly.
3793 2006-05-23  Chris Toshok  <toshok@ximian.com>
3795         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
3796         maybe this should actually happen in the datagrid code?
3797         (EndEdit): no need to invalidate anything, given that
3798         ReleaseHostedControl causes the datagrid to relayout, which
3799         invalidates everything anyway.
3801         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
3802         in SetCurrentCell).
3803         (set_SelectionBackColor): call InvalidateSelection instead of
3804         Refresh.
3805         (set_SelectionForeColor): same.
3806         (BeginEdit): Flesh this out a bit.
3807         (CancelEditing): only do any of this if we're editing/adding.
3808         (EndEdit): same.
3809         (OnMouseDown): there's no need to cancel editing here, it's done
3810         in SetCurrentCell.
3811         (SetCurrentCell): only invalidate the current row header if it's a
3812         different row than the new one.
3813         (ShiftSelection): fix this to work like MS does.
3814         (ResetSelection): factor out the invalidation of selected_rows to
3815         InvalidateSelection.
3816         (SetDataSource): cancel any editing that's going on.
3818         * DataGridColumnStyle.cs
3819         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
3820         call the non-interface version.
3822         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
3823         header rectangle with the clip rectangle so we don't redraw the
3824         entire header for just a small area.  Gets rid of the last flicker
3825         when horizontally scrolling.
3826         (DataGridPaintRow): same.
3828 2006-05-23  Mike Kestner  <mkestner@novell.com>
3830         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
3831         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
3832         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
3833         Critical bug report.
3835 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
3837         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
3838           and this fixes #78493
3840 2006-05-23  Miguel de Icaza  <miguel@novell.com>
3842         * Theme.cs (GetSizedResourceImage): Scale images if the proper
3843         size is not found.  
3844         
3845         * FileDialog.cs: Do not change the background for the side bar as
3846         it wont work nicely with the theme, and also reduces the artifacts
3847         in rendering the icons (which I want to fix too).
3849         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
3850         resources, not resgen resources. 
3852         (PlatformDefaultHandler): Pull images using the new API.
3854 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
3856         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
3857           a reference to the hwnd and will not remove it unless there are
3858           no pending exposures (fixes #78341)
3859         * XplatUI.cs: Improved debug
3861 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
3863         * MenuAPI.cs : don't handle OnClick event when it was not the left
3864           button. Fixed bug #78487.
3866 2006-05-23  Mike Kestner  <mkestner@novell.com>
3868         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
3869         prefer submenus to the top menu for item lookup, to avoid popping down
3870         top-row items.
3872 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
3874         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
3875           Graphics.FillRectangle as the visual results are really bad (even
3876           on win). We now draw perfect arrows (and perfect shadows when the
3877           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
3878           Pen.DashPattern to draw the dots of each line.
3880 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
3882         * FileDialog.cs: Update the filename combobox when navigating through
3883           the ListView with the cursor keys. Fixes part 7 of bug #78446.
3885 2006-05-22  Mike Kestner  <mkestner@novell.com>
3887         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
3888         Fixes #78463.
3890 2006-05-22  Mike Kestner  <mkestner@novell.com>
3892         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
3893         requests. Fix a misspelled parameter and a copy paste exception error
3894         in Select.
3896 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
3898         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
3899           to get the same width/height (5/13) on X11 as the default font has on
3900           win32. This means that our DefaultFont emSize is smaller than the 
3901           the MS SWF equivalent (even thought the width/height stays the same)
3903 2006-05-20  Jackson Harper  <jackson@ximian.com>
3905         * MdiClient.cs:
3906         * MdiWindowManager.cs:
3907         * InternalWindowManager.cs: Make sure to use the border width from
3908         the theme.
3910 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
3912         * PrintDialog.cs: Implements printer details
3914 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
3916         * FileDialog.cs: Added focus handling for PopupButtonPanel.
3917           Fixes part 1 and 2 of bug #78446
3919 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
3921         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
3922           instead of sticking to the first ever calculated value
3924 2006-05-19  Mike Kestner  <mkestner@novell.com>
3926         * ComboBox.cs: fix mouse motion selection to use MousePosition and
3927         PointToClient, since Capture is set. Fixes #78344.
3929 2006-05-19  Mike Kestner  <mkestner@novell.com>
3931         * ListView.cs: match MS behavior in Details view where items are not
3932         drawn if Columns.Count == 0. 
3933         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
3934         Use a separate pen to draw the check, since changing the width affects
3935         the box as well.  Fixes #78454.
3937 2006-05-18  Miguel de Icaza  <miguel@novell.com>
3939         * ListView.cs: ArgumentOutOfRangeException, single versions of the
3940         exception should throw the name of the invalid argument.
3942         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
3943         there are no files listed. 
3945 2006-05-18  Jackson Harper  <jackson@ximian.com>
3947         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
3948         up.
3950 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
3952         * Control.cs: Brought back our old UpdateZOrder method as a private
3953           function and switched our calls from UpdateZOrder to the new one.
3954           This fixes the Paint.Net canvas disappearing bug.
3956 2006-05-18  Jackson Harper  <jackson@ximian.com>
3958         * Theme.cs:
3959         * ThemeWin32Classic.cs:
3960         * InternalWindowManager.cs: Move the drawing into the theme,
3961         expose everything the theme should need from the window manager.
3963 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
3965         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
3966           from the call to NativeWindow to avoid walking up the parent chain
3967           further than needed (speeds up setting cursors and avoids setting
3968           the wrong cursor if a parent has another cursor defined)
3969         * Cursor.cs: When loading an icon as cursor, MS uses the center of
3970           the icon as hotspot, not what's contained as hotspot in the icon
3971           file. This fixes the perceived drawing offset seen with Paint.Net
3972         
3973 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
3975         * XplatUIX11.cs: 
3976           - Store the calculated rectangle in Hwnd object and use it when 
3977             setting the client size
3978           - Force Toolwindows to always be type Dock, to ensure they're on top
3980 2006-05-18  Mike Kestner  <mkestner@novell.com>
3982         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
3983         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
3984         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
3985         Substantial refactoring to remove confusing nested classes. Coding
3986         standard and Get+Set->property refactorings.  Shift to index based
3987         highlighting in ComboListBox instead of constantly using IndexOf and
3988         Items[]. Add invalidations on resize for DropDownList to fix ugliness
3989         in FileDialog growth.  Draw borders manually since Simple mode needs
3990         to look like two independent controls.  Make listbox border
3991         conditional to DropDownStyle.  Improved OwnerDraw support.
3993 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
3995         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
3996         Don't set the disposed graphics to null, so we can throw the "right"
3997         exception if the graphics is reused later (added a flag to avoid 
3998         double disposing). Some behaviours are different under 2.0 and are
3999         filled under bug #78448.
4001 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
4003         * Control.cs: When double-buffering is enabled, we need to reset
4004           our graphics context between paint calls. Otherwise, any 
4005           transformations and other alterations on the context will 
4006           become cumulative (#77734)
4008 2006-05-18  Mike Kestner  <mkestner@novell.com>
4010         * ListView.cs: do focused item selection like MS on clicks. 
4011         Rework focus handling for ItemControl so LostFocus invalidates as
4012         well.
4013         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
4014         the ListView ItemControl has focus.
4016 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
4018         * XplatUIX11.cs: If client_window ends up being width or height zero
4019           due to border settings, move it off window inside whole_window (#78433)
4021 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
4023         * Mime.cs: Shrink the mime file cache correctly.
4025 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
4027         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
4029 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
4031         * XplatUIX11.cs (AddExpose): More sanity checks
4033 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
4035         * XplatUIX11.cs:
4036           - AddExpose: Don't add expose ranges outside the size of our
4037             window
4038           - Cast opacity values to Int32 to avoid crashes with certain
4039             values
4040           - Added disabled code paths that protect against illegal cross-
4041             thread painting (Developers.exe)
4043 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
4045         * ProgressBar.cs: Invalidate the control when it's resized
4046           since block size is based on control size. (#78388)
4048 2006-05-16  Miguel de Icaza  <miguel@novell.com>
4050         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
4051         of setting the incoming argument to the "reset" value, we set the
4052         this.datamember to string.empty (before we were invalidating the
4053         incoming data).   
4055         Fixes 78420
4057 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
4059         * Form.cs: Only apply transparency settings after the form
4060           is created. (Fixes #77800)
4062 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
4064         * ApplicationContext.cs: Grab the HandleDestroyed event so
4065           we know when to fire OnMainFormClosed 
4067 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
4069         * Application.cs: Introduced sub-class to allow tracking of
4070           threads and centralized triggering of the event mess for
4071           ThreadExit, AppExit, etc..  (#76156)
4073 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
4075         * MimeIcon.cs:
4076           - Do not return a null icon index value for a mime subclass.
4077             Instead try the main mime type class too.
4078           - Seems that some newer distributions don't have a link to some
4079             gnome default icons anymore. So check the default gnome dir too.
4080           
4082 2006-05-16  Jackson Harper  <jackson@ximian.com>
4084         * MdiClient.cs: Don't paint the parent background image if we have
4085         our own background image.
4087 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
4089         * Control.cs:
4090           - PerformLayout: Do not shrink space filled by DockStyle.Fill
4091             controls, all filled controls are supposed to overlap (#78080)
4092           - UpdateZOrder is supposed to update the control's z-order in the
4093             parent's z-order chain. Fixed to behave like that
4094           - BringToFront: Removed obsolete code
4095           - SendToBack: Simplyfied
4096           - SetChildIndex: Trigger layout calculations when Z-order changes
4097             since layout is done by z-order
4099 2006-05-16  Chris Toshok  <toshok@ximian.com>
4101         [ fixes bug #78410 ]
4102         * DataGrid.cs (set_AlternatingBackColor): use
4103         grid_drawing.InvalidateCells instead of Refresh().
4104         (set_BackColor): call grid_drawing.InvalidateCells.
4105         (set_BackgroundColor): use Invalidate instead of Refresh.
4107         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
4108         invalidate the cell area.
4110 2006-05-15  Chris Toshok  <toshok@ximian.com>
4112         [ fixes bug #78011 ]
4113         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
4114         on to DataGridPaintRow.
4115         (DataGridPaintRow): take a clip argument, and only draw the cells
4116         which intersect it.  same with the not_usedarea.
4118         * Theme.cs (DataGridPaintRow) add @clip parameter.
4120         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
4121         XplatUI.ScrollWindow.
4122         (ScrollToRow): same.
4124         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
4125         with last column which was causing a gray swath to appear with the
4126         XplatUI.ScrollWindow code.
4128 2006-05-15  Chris Toshok  <toshok@ximian.com>
4130         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
4131         use XplatUI.ScrollWindow.
4132         (VerticalScrollEvent): use XplatUI.ScrollWindow.
4134 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
4136         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
4138 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
4140         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
4141           file since there are no equivalent X11 cursors
4143 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
4145         * MonthCalendar.cs : DateTimePicker should reflect selected date
4146           on mouse*up*, not mouse*down*. Fixed originally reported part of
4147           bug #76474.
4149 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
4151         * TabControl.cs : When argument index is equal or more than tab
4152           count, just ignore. Fixed bug #78395.
4154 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
4156         * Control.cs: Dispose all child controls when control is diposed (#78394)
4158 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
4160         * ColorDialog.cs: Finally it is possible to select the color with
4161           the text boxes
4163 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
4165         * PrintDialog.cs: Fix typo
4167 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
4169         * PrintDialog.cs: PrintDialog is not resizable
4170         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
4171           color. Made some ToolBar drawing methods protected virtual.
4173 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
4175         * PrintDialog.cs: Implementation of the PrintDialog
4177 2006-05-12  Chris Toshok  <toshok@ximian.com>
4179         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
4180         thumb, instead use MoveThumb.  This has the side effect of making
4181         most of the other thumb moving machinery use MoveThumb as well.
4182         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
4183         need to actually invalidate the rectangle where the new thumb will
4184         go.
4185         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
4186         We force an Update() after, so it's not as fast as it could be,
4187         but at least there's zero flicker and no droppings.
4188         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
4189         (UpdateThumbPos): add another argument (dirty), which says whether
4190         or not to calculate/add dirty regions which we later invalidate.
4191         For cases where we know we're going to use MoveThumb, we pass
4192         false for this.  Otherwise, pass true.
4194 2006-05-12  Jackson Harper  <jackson@ximian.com>
4196         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
4197         the status bar.
4198         
4199 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
4201         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
4202           and GetClipRegion methods and UserClipWontExposeParent property.
4203         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
4204           overriding UserClipWontExposeParent property, setting to false, since
4205           Win32 handles the required expose messages to draw our clipped parent
4206           areas internally
4207         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
4208           PaintEventStart to set the user clip region if set.
4209         * Control.cs: 
4210           - Now internally tracking the Region for the control since we need to
4211             store it if the handle is not yet created and only set it when it
4212             becomes created. Before setting the region forced handle creation
4213           - Added code to draw the parents underneath a user-clipped region
4214         * Hwnd.cs: Added UserClip property
4216 2006-05-12  Chris Toshok  <toshok@ximian.com>
4218         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
4219         (set_Maximum): same.
4220         (set_Minimum): same.
4221         (set_SmallChange): same.
4222         (OnMouseUpSB): remove the call to refresh when releasing the
4223         thumb.  We shouldn't need it.
4224         
4225 2006-05-12  Miguel de Icaza  <miguel@novell.com>
4227         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
4228         AutoSize set to None, we do not need to relayout everything, we
4229         just need to invalidate the current region.
4231         (Draw): Do not draw the entire ClientArea, just redraw the
4232         clip area being passed.
4234         * MdiClient.cs: Make MdiClient constructor with the Form argument
4235         internal. 
4237 2006-05-12  Jackson Harper  <jackson@ximian.com>
4239         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
4240         parents background image,  but strangely not their own.
4241         - (DrawStatusBarPanel): Take into account horizontal alignment
4242         when drawing the strings and icons.
4244 2006-05-12  Mike Kestner  <mkestner@novell.com>
4246         * ListBox.cs: avoid invalidations for focus when the collection is
4247         empty. 
4249 2006-05-12  Chris Toshok  <toshok@ximian.com>
4251         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
4252         invalidate the entire thumb area.  Call InvalidateDirty which
4253         limits the redraw to the thumb itself and surrounding pixels.
4255         * XplatUIX11.cs (ScrollWindow): optimize copying.
4256         
4257 2006-05-12  Chris Toshok  <toshok@ximian.com>
4259         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
4260         Figure out the positioning/layout in a single pass instead of
4261         multiple recursive invocations.  Speeds up the initial display of
4262         the data grid.  Also, make many things private that were
4263         originally public but unused outside this class.
4265 2006-05-11  Jackson Harper  <jackson@ximian.com>
4267         * MdiClient.cs: Improved layout code.
4269 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
4271         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
4272           not SelectedObject.
4274 2006-05-11  Chris Toshok  <toshok@ximian.com>
4276         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
4277         union of that will always be {0,0,width,height}.
4279 2006-05-11  Jackson Harper  <jackson@ximian.com>
4281         * Form.cs: Match MS's DefaultSize for forms (they must have
4282         changed the size in sp2).
4284 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
4286         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
4288 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
4290         * TextControl.cs : Fixed bug #78109. This incorrect position
4291           comparison caused crash on automatic line split.
4292         * TextBoxBase.cs : reduce duplicate code.
4294 2006-05-10  Jackson Harper  <jackson@ximian.com>
4296         * MdiClient.cs: Active form is only sent to the back when using
4297         the Next form functionality, when a form is clicked the current
4298         active shouldn't be sent to the back.
4299         - Layout the mdi windows when the container is first made visible.
4300         * Form.cs: Give the MdiClient a ref to the containing form when we
4301         create it.
4302         
4303 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
4305         * LinkLabel.cs : link_font could be uninitialized, so populate one
4306           before actual use. Fixed bug #78340.
4308 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
4310         * XplatUIX11.cs : clipboard format native value is IntPtr.
4311           Fixed bug #78283.
4313 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
4315         * Control.cs: 
4316           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
4317             which is passed up the parent chain by DefWndProc
4318           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
4319             to DefWndProc (#77956)
4320         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
4322 2006-05-10  Jackson Harper  <jackson@ximian.com>
4324         * MdiClient.cs: We need to remove the controls from the mdi
4325         collection, when we close the window.
4326         * MdiWindowManager.cs: Special handling of closing mdi windows.
4327         * InternalWindowManager.cs: Make the close method virtual so the
4328         mdi window manager can handle it specially.
4330 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
4332         * DataGrid.cs:
4333           - Recalculate grid when the data source has changed
4334           - Matches styles provided by user from all data sources types
4335         * DataGridTableStyle.cs: For columns that provided by the user set the
4336         with the preferred value is there was unassigned.
4337         * CurrencyManager.cs: throw OnItemChanged event
4339 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
4341         * PictureBox.cs: Don't animate until handle is created. Start animation
4342           when handle is created.
4344 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
4346         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
4347           current codebase.
4348         * XEventQueue.cs: We don't need to provide the extra info
4350 2006-05-10  Jackson Harper  <jackson@ximian.com>
4352         * MdiClient.cs: If the mdi clients parent form has a background
4353         image set, we draw that background image for the mdi area's
4354         background.
4356 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
4358         * TextBoxBase.cs: Set IBeam cursor (#78347)
4360 2006-05-10  Mike Kestner  <mkestner@novell.com>
4362         * ToolBar.cs: fix some text padding issues with ButtonSize
4363         calculation. Update the default size to match MS documentation.
4364         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
4365         button size. Fixes #78296.
4367 2006-05-10  Mike Kestner  <mkestner@novell.com>
4369         * ListBox.cs: use is_visible for scrollbar positioning in case the
4370         control isn't on screen yet.  Fix off by one with Right vs Width
4371         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
4372         
4373 2006-05-10  Jackson Harper  <jackson@ximian.com>
4375         * X11Dnd.cs: Drop to a control with another control on top of it.
4376         * ToolBar.cs: Work on a copy of the buttons list, so that it can
4377         be modified in click handlers. TODO: Look for similar problems in
4378         other controls.
4380 2006-05-09  Jackson Harper  <jackson@ximian.com>
4382         * Form.cs: Window managers need the old window state when setting
4383         window state now.
4384         * InternalWindowManager.cs: Allow the base mdi window manager to
4385         handle more of the MDI only stuff (like maximize buttons).
4386         * MdiWindowManager.cs: Fix some snafus in changing the window
4387         state.  Add all the menu functionality, for both popup and
4388         maximized menus.
4389         * MdiClient.cs: When a new form is selected the currently
4390         activated form is sent to the back, this matches MS.
4391         - Implement a new method to activate the next mdi child window.
4393 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
4395         * Control.cs: 
4396           - Added new InternalCapture method to allow controls to prevent
4397             the capture behaviour on the click handlers
4398           - Switched to use InternalCapture
4399         * ComboBox.cs:
4400           - Using InternalCapture to prevent mouse captures from being released
4401             on mouse button release (Fixes #78100)
4402         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
4403           returns Form borders if a caption is present. (Fixes #78310)
4405 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
4407         * TreeNode.cs: Changed serialization .ctor to not require every field
4408           to be present. (#78265)
4409         * OwnerDrawPropertyBag.cs: Added serialization .ctor
4411 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
4413         * MimeIcon.cs: for is faster than foreach for strings.
4415 2006-05-05  Mike Kestner  <mkestner@novell.com>
4417         * CheckedListBox.cs: update check handling code to not use selected.
4418         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
4419         behavior for visual feedback, motion response, shift/ctrl handling,
4420         and properly deal with all 4 selection modes. Updates to bounds
4421         handling logic.  Add scroll wheel support. [Fixes #77842]
4423 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
4425         * ListView.cs:
4426           - Moved adding of Implicit controls into .ctor. That way, subsequent
4427             creation of the controls will not cause them to think they are 
4428             toplevel windows (fixes #78200 header problem)
4429           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
4430           - Switched visibility setting of header control to use internal field
4431             to avoid triggering handle creation
4432           - Now checking if handle is created before causing a refresh when items
4433             are added (This makes us now match handle creation time with MS)
4434         * Splitter.cs: Removed loading of private splitter cursor, switched to
4435           Cursors version now that that is loading the right ones
4436         * Cursors.cs: Load proper splitter cursors from resources
4437         * Cursor.cs: Added second method of loading resource cursors for the 
4438           VS.Net users amongst us
4440 2006-05-05  Mike Kestner  <mkestner@novell.com>
4442         * ListView.cs: give header_control a minimum size based on the
4443         ListView size.
4445 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
4447         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
4448           window seems to do that with metacity, so set that type. (#78120)
4450 2006-05-05  Mike Kestner  <mkestner@novell.com>
4452         * ListViewItem.cs: fix Details mode checkbox layout bug.
4453         * ThemeWin32Classic.cs: draw a ListView column header for unused space
4454         at the end of the header, if it exists. [Fixes for #78200]
4456 2006-05-04  Jackson Harper  <jackson@ximian.com>
4458         * MdiClient.cs: Add a helper property to get the container form.
4459         * MdiWindowManager.cs: We have to make sure to use the menu origin
4460         when drawing the icons and buttons, this fixes maximized window
4461         icons/buttons on win32.
4462         * InternalWindowManager.cs: Reset the restore captions when a
4463         window goes from Maximized to Minimized and vice versa. Move the
4464         DrawMaximizedButtons into the MdiWindowManager source, tool
4465         windows can't be maximized. NOTE: This could use a little
4466         refactoring if time ever permits.
4467         
4468 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
4470         * TextBox.cs: Add MWFCategoryAttributes
4471         * TextBoxBase.cs: Add MWFCategoryAttributes
4472         * Form.cs: Add MWFCategoryAttributes
4474 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
4476         * Control.cs: Add MWFCategoryAttributes
4477         * ScrollableControl.cs: Add MWFCategoryAttributes
4479 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
4481         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
4482           Divider is true. Fix a little glitch in PropertyToolBar
4483           drawing code
4485 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
4487         * Control.cs:
4488           - Dispose: Call base.Dispose, this causes the disposed event
4489             to be fired (and probably other, more important stuff)
4490           - SetVisibleCore: Set is_visible to true after creating the
4491             window so that the window still gets created invisible (if
4492             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
4493             to generate a WM_ACTIVE message
4494         * Form.cs: Call Dispose when we want to destroy the window, instead of
4495           just destroying the handle (Dispose will do that for us)
4496         * XplatUIX11.cs:
4497           - RootWindow also needs a queue, so we can properly process the
4498             property change events from RootWindow (like Activate)
4499           - Generatic synthetic WM_ACTIVE message when the active window is
4500             being destroyed
4502 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
4504         * LinkLabel.cs: Trigger a recalc of our label dimensions when
4505           bounds are changed
4507 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
4509         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
4510           for determining width and height (image might not be assigned if
4511           we're drawing an imagelist)
4513 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
4515         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
4516         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
4517           height from system
4518         * Theme.cs: No longer returns hardcoded menu height, instead calls
4519           new driver method
4520         * Form.cs (OnLoad): Scaling happens before triggering Load events 
4521           on MS (# 78257)
4523 2006-05-01  Mike Kestner  <mkestner@novell.com>
4525         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
4527 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
4529         * TextBoxBase.cs: Removed Fixme
4530         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
4532 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
4534         * XplatUIX11.cs:
4535           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
4536             the rectangle relative to the parent, considering borders. We
4537             don't really want that.
4538           - ScrollWindow: Fixed warning to be more understandable
4539         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
4540           scrollbars and scroll only the visible area
4541         * RichTextBox.cs: Removed debug output
4543 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
4545         * NumericUpDown.cs (Text): Just use base
4546         * UpDownBase.cs: Ensure txtView is created before using it
4548 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
4550         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
4551           casting to IntPtr to avoid 64bit overflow errors
4553 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
4555         * Control.cs:
4556           - AllowDrop: Don't force handle creation.
4557           - CreateHandle: Added call to tell driver if we're allowed to drop
4559 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
4561         * FileDialog.cs: Remember the last directory not only for the
4562           current instance but also for new FileDialog instances.
4564 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
4565         
4566         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
4567           broke sending async messages
4569 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
4571         * XplatUIX11.cs:
4572           - ScrollWindow: Fixed method. We finally generate expose events again
4573             for scrolled areas. This was causing 'garbage' when scrolling
4574             textbox and other controls that used ScrollWindow
4575           - Switched from using the regular queue for paint events to the MS 
4576             model of 'generating' paint events when the queue is empty.
4577             We use the new XQueueEvent.Paint subclass to store which windows
4578             need painting.
4579           - AddExpose now takes the x/y/width/height of the exposed area
4580             and inserts the window into the paint queue if not already there
4581           - InvalidateWholeWindow: Switched to use new AddExpose method
4582           - UpdateMessageQueue: Added which queue to monitor for paint events
4583           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
4584             the unlikely case nothing above handles it. We reset the expose
4585             pending states to get them off the queue.
4586           - GetMessage: Now pulls a paint event if no other events are in the
4587             queue
4588           - Invalidate: Switched to new AddExpose method
4589           - PeekMessage: Updated to understand pending paint events
4590           - UpdateWindow: Fixed logic bug. We were only updating if the window
4591             didn't need updating. Also switched to sending WM_PAINT directly,
4592             like MS does.
4593         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
4594           and random access Remove(). The random access is needed to handle
4595           UpdateWindow() where a WM_PAINT is sent directly without accessing
4596           the queue.
4597         * ScrollBar.cs: Added Update() calls to cause immediate updates to
4598           allow for better feedback when scrolling. Scrollbars are small and
4599           the immediate update should make it 'feel' more responsive without
4600           slowing things down. ScrollBar still needs it's invaliate logic
4601           updated to not always invalidate the whole bar on certain changes.
4603 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4605         * Control.cs:
4606         (BackColor): if the control does not support a transparent background,
4607         return the default backcolor when the parent backcolor is transparent.
4609 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
4611         * Application.cs: Updated to new StartLoop/GetMessage API
4612         * RichTextBox.cs: Provide some output on RTF parsing errors
4613         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
4614           new queue_id argument to GetMessage and PeekMessage to allow faster
4615           handling of per-thread queues in drivers.
4616         * Hwnd.cs: Added Queue tracking and property
4617         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
4618         * XEventQueue.cs: Added thread trackingA
4619         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
4620         * XplatUIX11.cs:
4621           - Implemented new per-thread queue
4622           - GetMessage: Fixed return/break behaviour on several cases. We were
4623             returning stale messages in some cases, instead of just processing
4624             the next message
4626 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
4628         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
4630 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
4632         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
4633           fixed off-by-one comparisons between Width/Height and Right/Bottom.
4635 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
4637         * PropertyGridView.cs: Fix drop down width.
4639 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
4641         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
4642           a mess in DrawToolBar, so I removed one of them.
4644 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
4646         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
4647           needed (clip). Otherwise we get artifacts.
4649 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
4651         * FixedSizeTextBox.cs: Added constructor to allow specifying which
4652           dimension is fixed
4653         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
4654           and switched FixedSizeTextBox to only be fixed vertical (#78116)
4655         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
4656           if it matches the scale base font (avoids unneeded scaling)
4658 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
4660         * X11DesktopColors.cs: One gtk_init_check should be enough
4662 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
4664         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
4665           match MS behaviour
4667 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
4669         * TextBoxBase.cs: 
4670           - Generate OnTextChanged for Backspace even if we're only deleting
4671             the current selection
4672           - When setting the Text property, only select all text if the
4673             control does not have focus when it is being set. Otherwise
4674             just place the cursor at the beginning of the control
4676 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
4678         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
4679           Added a little helper to draw PropertyGrid ToolBar with a different
4680           border and a different BackColor.
4681         * PropertyGrid.cs: Some background parts didn't get painted with the
4682           correct background color. Added a class that helps us to draw the
4683           correct border for PropertyGridView and a class that helps us to
4684           draw ToolBars with a different backcolor
4685         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
4687 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
4689         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
4690         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
4692 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
4694         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
4695           into the palette entries. Also, since we're working on a copy
4696           we needed to copy the palette back onto the bitmap.
4697         * Cursor.cs: Same fix as XplatUIWin32.cs.
4699 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
4701         * ImageListStreamer.cs: Need to read the var (or we're off)
4703 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
4705         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
4706           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
4707           TextBoxBase.cs: Unused var fixes
4708         * AxHost.cs: Small 2.0 fix
4709         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
4710           as it seems that is what at least Metacity expects. This will make
4711           icons show up on 64bit platforms. We still have some 64bit size
4712           issues, though, since the startup app window size still won't match.
4714 2006-04-25  Mike Kestner  <mkestner@novell.com>
4716         * *.cs: cleanup newly reported exception var unused warnings.
4718 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
4720         * ThemeWin32Classic.cs: Button image alignment now matches exactly
4721           ms
4723 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
4725         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
4726           image. The image position is always the same, no matter if the
4727           button is pressed or not.
4729 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
4731         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
4732           selection and set the correct filename for SaveFileDialog.
4733           Patch by Emery Conrad.
4735 2006-04-24  Mike Kestner  <mkestner@novell.com>
4737         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
4738         check for item.X outside the ClientRect instead of item.Y. Fixes
4739         #78151.
4741 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4743         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
4744         trust that value blindly and do some sanity check. Fixes bug #77814.
4746 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4748         * ImageListStreamer.cs: save the mask as a 1bpp image.
4750 2006-04-21  Mike Kestner  <mkestner@novell.com>
4752         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
4753         pass Checked and Indeterminate to the Theme Engine. Improve
4754         encapsulation with ListBox.
4755         * ListBox.cs: Keep a StringFormat instead of calculating it every item
4756         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
4757         nested types.  Move all CheckState functionality to CheckedListBox.
4758         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
4759         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
4760         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
4761         single base list. Fix scrollbar sizing and placement to mirror MS.
4762         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
4763         used.
4764         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
4765         for CheckedListBox by using new DrawItemState info.  Center the
4766         checkboxes on the items. Use new StringFormat property.
4768 2006-04-18  Jackson Harper  <jackson@ximian.com>
4770         * Form.cs: MdiChildren don't do default locations the same way as
4771         regular forms.  This prevents a crash when trying to position the
4772         mdi windows.
4774 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
4776         * PropertyGridTextBox.cs: Formatting, copyright
4777         * PropertiesTab.cs: Formatting
4778         * PropertyGrid.cs: Formatting
4779         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
4780           click toggling of values
4781           
4782 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
4784         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
4785         * Control.cs (.ctor): verify_thread_handle is static, don't reset
4786           every time a control is created
4787         * Application.cs: Removed obsolete EnableRTLMirroring method
4789 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
4791         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
4792         SelectedIndex to -1. Fixes bug #78121.
4794 2006-04-17  Jackson Harper  <jackson@ximian.com>
4796         * Binding.cs: Handle null values for Current and BindingContext.
4797         This occurs when binding is a little delayed.
4798         * CurrencyManager.cs: return null for Current when there are no
4799         items in the list.
4800         - Hookup to the listchanged event on the DataView and update
4801         bindings when the list is changed.  This fixes late binding of
4802         controls.
4804 2006-04-17  Jackson Harper  <jackson@ximian.com>
4806         * X11Dnd.cs:
4807         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
4808         Ringenbach.
4810 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
4812         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
4813           place
4814         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
4815           with the correct ButtonState
4817 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
4819         * XplatUIX11.cs: Improved distinguishing between window types to
4820           tell the WM a type closer to what the app wants (Fixes #78107)
4822 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
4824         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
4825           GrabHandle
4827 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
4829         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
4830           drawing code to reflect the size grip changes
4832 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4834         * ImageListStreamer.cs: fix handling of the mask that follows the main
4835         bitmap when deserializing and serialize it properly. The generated mask
4836         should better be a 1bpp image, but I'll do that later.
4838 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
4840         * FileDialog.cs: Show something in the DirComboBox on *nix if the
4841           path doesn't fit into some of our Current.Places
4843 2006-04-13  Jackson Harper  <jackson@ximian.com>
4845         * ComboBox.cs: Use borders instead of drawing our own decorations,
4846         try to obey correct rules for heights.
4847         * Theme.cs:
4848         * ThemeNice.cs:
4849         * ThemeClearLooks.cs:
4850         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
4851         this is now handled by borders.
4852         - Remove unused DrawListBoxDecorationSize method.
4853         
4854 2006-04-13  Mike Kestner  <mkestner@novell.com>
4856         * MenuAPI.cs: null guarding for the disbled click check fixes crash
4857         reported by Alex.
4859 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
4861         * ThemeWin32Classic.cs: 
4862           - Fixed CPDrawStringDisabled
4863           - Corrected drawing of disabled menu items
4864           - Fixed drawing of disabled radio buttons (bug #78095)
4865           - Draw check in a disabled CheckBox with color ControlDark 
4867 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
4869         * Form.cs: Use the provided width when calculating the menu size;
4870           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
4871           and ClientSize.Width won't be updated yet
4872         * Application.cs: Use Visible instead of Show() to make form visible,
4873           this way we create the handle later and menusize is considered
4875 2006-04-12  Mike Kestner  <mkestner@novell.com>
4877         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
4878         reporting.
4880 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
4882         * TextBox.cs: Implemented context menu
4884 2006-04-12  Mike Kestner  <mkestner@novell.com>
4886         * ListView.cs: implement box selection. fixes #77838.
4887         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
4889 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
4891         * XplatUIX11.cs: Added setting of window type when transient window
4892           is created (metacity would move it otherwise)
4893         * X11Structs.cs: Added WINDOW_TYPE atoms
4894         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
4895           background (the control is Opaque but still wants transparent
4896           backgrounds)
4898 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
4900         * Control.cs: Added OnPaintBackgroundInternal to allow controls
4901           that set Opaque but don't mean it (like all ButtonBase-derived
4902           controls) to still draw their background
4903         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
4904           the background
4906 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
4908         * Control.cs (PaintControlBackground): Set the graphics object
4909           on our PaintEvent to null to prevent it from being disposed
4910           when the PaintEvent gets disposed
4912 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
4914         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
4915         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
4917 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
4919         * Control.cs: 
4920           - Added transparency check to BackColor property. Transparent
4921             backgrounds are only allowed if the control styles permit it
4922           - Added recursive painting of parent control background and
4923             foreground if a control with a transparent backcolor is drawn
4924             (Thanks to Tim Ringenback for providing his 'hack' as a base
4925              for this patch) Fixes #77985 and #78026.
4926           - Added Opaque style check before calling OnPaintBackground, no
4927             need to draw the background if the control is opaque
4928           - Removed ControlAccessibleObject owner variable (inherited from
4929             base, no need to define again)
4930           - Added some documentation links explaining the drawing events
4931             and styles
4933 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
4935         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
4936           that the affected control is the located at the left border of our
4937           parent (Fixes #77936)
4939 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
4941         * TextBoxBase.cs: When rendering disabled or readonly controls,
4942           draw the background with 'Control' instead of 'Window' color as
4943           long as the user hasn't specifically set a color
4945 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
4947         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
4948           since that won't be updated if the user types text (only if it's
4949           programatically set)
4951 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
4953         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
4954           layout changes do to app-triggered resizes will have the proper
4955           display rectangle for layout
4957 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
4959         * ThemeWin32Classic.cs:
4960           - Make use of the SystemBrushes and SystemPens wherever possible
4961           - Corrected some highlight colors
4962           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
4963             drawing
4964         * Theme.cs: Added Empty field to CPColor struct
4966 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
4968         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
4969           is displayed when calculating the display rectangle. Thanks to Mike
4970           for teaching me the err of my ways.
4972 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
4974         * ScrollableControl.cs:
4975           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
4976             (instead of 0,0) and we now return the real width/height instead of
4977             just the clientrectangle, adjusted for padding. The rectangle is
4978             now cached and created by the new CalculateDisplayRectangle method.
4979           - Created new CalculateDisplayRectange method, which basically does
4980             what get_DisplayRectangle() did originally, but now using the 
4981             right edge instead of DisplayRectangle to determine the size of
4982             our scrollbars
4983           - get_Canvas(): Fixed it to properly calculate canvas for 
4984             right/bottom controls which seem to be placed to the right/bottom
4985             of any controls that have a fixed location
4986           - Removed TODO that's taken care of
4987           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
4988             and SetDisplayRectLocation according to new MSDN2 docs
4989           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
4990             event when that is called, this is added for compatibility
4991           - ScrollControlIntoView(): Implemented.
4992           - Switched scrollbars to be implicit, they shouldn't be selectable
4993         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
4994           call it when the active control is set/changed
4995         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
4996         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
4997           implicit_control variable (used for native Win32 message generation)
4998         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
4999           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
5000         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
5001         * XplatUIStructs.cs: Added ScrollBarCommands enum
5003 2006-04-10  Jackson Harper  <jackson@ximian.com>
5005         * ButtonBase.cs:
5006         * CheckedListBox.cs:
5007         * ComboBox.cs:
5008         * DataGrid.cs:
5009         * DataGridView.cs:
5010         * Form.cs:
5011         * GroupBox.cs:
5012         * ListBox.cs:
5013         * PrintPreviewControl.cs:
5014         * ProgressBar.cs:
5015         * PropertyGrid.cs:
5016         * Splitter.cs:
5017         * StatusBar.cs:
5018         * TrackBar.cs:
5019         * UpDownBase.cs: Fixup base event overrides.
5020         
5021 2006-04-06  Mike Kestner  <mkestner@novell.com>
5023         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
5024         all user-initiated value changes to min <= value <= max-thumbsz+1.
5025         (set_Value): check for vert/horiz when calculating new thumb position.
5026         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
5027         like MS does.
5028         (OnMouseMoveSB): refactor the thumb dragging code and refine
5029         invalidation logic to reduce flicker.
5030         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
5031         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
5032         (UpdateThumbPosition): small code readability cleanup
5034 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
5036         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
5037           different
5039 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
5041         * ThemeNice.cs: Use a better graphics effect when a button is pressed
5043 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
5045         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
5046         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
5047           This dramatically reduces the number of Pen.Dispose calls. 
5048           Where possible call ResPool methods only once instead of calling it
5049           over and over again (for example for the same color).
5051 2006-04-06  Mike Kestner  <mkestner@novell.com>
5053         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
5054         Also remove an unused private field on the collection. Fixes #77972.
5056 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
5058         * ThemeNice.cs: Added ToolBar drawing code
5060 2006-04-06  Mike Kestner  <mkestner@novell.com>
5062         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
5063         I'm assuming that means we need to look up the toplevel for the
5064         provided control. Fixes the crash trace in #77911 but exposes another
5065         crash in some strange reflection usage in NDocGui.
5067 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
5069         * ThemeNice.cs: Gave it a little silver touch and added Images
5070           method
5071         * FontDialog.cs: FontDialog is not resizable
5072         * FileDialg.cs: Added SizeGripStyle.Show
5074 2006-04-05  Jackson Harper  <jackson@ximian.com>
5076         * KeyboardLayouts.cs: Remove warning.
5078 2006-04-05  Jackson Harper  <jackson@ximian.com>
5080         * Control.cs: Enable OnPaintInternal so we can use it for drawing
5081         all of our controls instead of Paint +=.
5082         * ListBox.cs:
5083         * ListView.cs:
5084         * MenuAPI.cs:
5085         * MessageBox.cs:
5086         * NotifyIcon.cs:
5087         * ProgressBar.cs:
5088         * ScrollBar.cs:
5089         * Splitter.cs:
5090         * StatusBar.cs:
5091         * TabControl.cs:
5092         * TextBoxBase.cs:
5093         * ToolBar.cs:
5094         * TrackBar.cs:
5095         * UpDownBase.cs:
5096         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
5097         use OnPaintInternal. Remove Width/Height and Visible checks in
5098         paint handler, this is done at a higher level now.
5099         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
5100         * PaintEventArgs.cs: Add a handled flag so controls that don't
5101         want anymore painting after OnPaintInternal can make sure OnPaint
5102         isn't called.
5104 2006-04-05  Mike Kestner  <mkestner@novell.com>
5106         * Form.cs: fix the menu WndProc hacks to respect the native enabled
5107         state of the form, so that we don't process events when Modal dialogs
5108         are up. Fixes #77922.
5110 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
5112         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
5113           checking is done.
5115 2006-04-05  Mike Kestner  <mkestner@novell.com>
5117         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
5119 2006-04-05  Mike Kestner  <mkestner@novell.com>
5121         * ListView.cs (HeaderMouseMove): null guarding for the over column
5122         when setting up the drag_to_index.  Fixes #78015.
5124 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
5126         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
5127           in the taskbar. Transient windows seem to accomplish that.
5129 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
5131         * Form.cs:
5132           - Re-enabled CreateParams.X/Y code for FormStartPosition
5133           - Added code for manual placement when creating the Control
5134           - Incomplete patch to treat MDI forms differently when
5135             setting the ClientSizeCore. (Still need to figure out handling
5136             x/y coords there)
5137         * XplatUIX11.cs:
5138           - When we're explicitly setting the X/Y position of a non-Child
5139             window, let the WM know. Metacity really wants this.
5141 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
5143         * ThemeNice.cs: Added CPDrawButton
5145 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
5147         * ThemeNice.cs: Changed the color for focused buttons and activated
5148           the arrows for small scroll buttons.
5150 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
5152         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
5153           anymore. Changed some method modifiers to protected (virtual)
5154         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
5155           changes
5156         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
5157           Updated drawing of menus, buttons and progressbars; added
5158           CPDrawBorder3D 
5160 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5162         * ImageListStreamer.cs: implemented serialization/deserialization
5163         of the images.
5165 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
5167         * ThemeWin32Classic.cs:
5168           - Removed all the DrawFrameControl stuff; CPDrawButton,
5169             CPDrawCheckBox and CPDrawRadioButton are now handled directly
5170             inside the methods
5171           - Updated and corrected the drawing code of CPDrawButton,
5172             CPDrawCheckBox and CPDrawRadioButton to better match ms
5173           - Updated theme checkbox and radiobutton code to use the CP*
5174             methods
5176 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
5178         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
5179           bug is fixed
5181 2006-03-31  Jackson Harper  <jackson@ximian.com>
5183         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
5184         sometimes.
5185         * UpDownBase.cs: Don't CreateGraphics manually, use a
5186         Refresh. Ideally we would invalidate the correct areas here.
5188 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
5190         * XplatUIX11.cs: 
5191           - We now track the mapping state of windows. If a window (or 
5192             one of it's parents) is not mapped we no longer permit
5193             WM_PAINT messages to be generated since we'd otherwise get 
5194             lots of BadMatch X errors. Jackson did all the work figuring
5195             out the problem.
5196           - Destroying the caret if the window it's contained in is 
5197             destroyed. Can't use regular DestroyCaret method since it
5198             might fall into a drawing function (trying to remove the
5199             caret) and with that generate new BadMatch errors. Again,
5200             Jackson tracked this down.
5201           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
5202             make sure we send the messages to all windows. (The old code
5203             would send the WM_DESTROY to the window, and then all child
5204             windows would be 'gone' because the WM_DESTROY handle lookup
5205             would no longer find the destroyed window)
5206         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
5207         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
5209 2006-03-31  Jackson Harper  <jackson@ximian.com>
5211         * ScrollableControl.cs: Dont recalc if we are not visible.
5213 2006-03-31  Mike Kestner  <mkestner@novell.com>
5215         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
5216         the visibility branch.
5218 2006-03-31  Jackson Harper  <jackson@ximian.com>
5220         * ScrollBar.cs: Cap values when incrementing/decrementing.
5222 2006-03-31  Mike Kestner  <mkestner@novell.com>
5224         * MenuAPI.cs: setup menu.tracker for popup/context menus.
5225         * ToolTip.cs: guard against timer expirations with no active control.
5226         Not sure why it happened.
5228 2006-03-31  Mike Kestner  <mkestner@novell.com>
5230         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
5231         text.
5232         * ToolTip.cs: Position the tooltip based on where the cursor is at
5233         popup time, not at MouseEnter time.  Add a Down state so that we don't
5234         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
5235         positioning offset. Lookup DisplaySize at positioning time, since it
5236         can theoretically change during invocation.
5237         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
5238         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
5240 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
5242         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
5243           Fixes behaviour when the Text property of the box is String.Empty
5245 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
5247         * XplatUIX11.cs: Only send mouseleave for our client windows, not
5248           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
5249           a window)
5251 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
5253         * FileDialog.cs: Visual enhancement for the popup buttons in 
5254           PopupButtonPanel
5256 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
5258         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
5259           code
5261 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
5263         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
5264           highlighted menu items to match ms
5266 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
5268         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
5270 2006-03-30  Mike Kestner  <mkestner@novell.com>
5272         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
5273         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
5274         go active to account for HotLight to Selected transition.
5275         * MenuItem.cs: add internal Selected prop. Fill out the Status
5276         property by calculating it from item info. Add HotLight,
5277         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
5279 2006-03-30  Mike Kestner  <mkestner@novell.com>
5281         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
5283 2006-03-29  Jackson Harper  <jackson@ximian.com>
5285         * Form.cs: Implement TODO.
5287 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
5289         * PrintPreviewDialog.cs: Implemented missing methods and events; still
5290           missing proper dialog setup in the constructor
5292 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
5294         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
5295         * Control.cs:
5296           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
5297           - Fixed ResetBindings and removed TODO
5298           - Added check for cross-thread calls to get_Handle()
5299           - Added Marshaller attribute for set_Font to satisfy class status
5300         * FontDialog.cs: Removed TODOs that seemed implemented
5301         * UpDownBase.cs: Removed unneeded TODO and Fixme
5302         * MessageBox.cs: Implemented support for Default button and removed TODO
5303         * FileDialog.cs: Removed obsolete TODO
5304         * DomainUpDown.cs: Removed obsolete TODO
5305         * ButtonBase.cs: Removed obsolete TODO
5306         * XplatUIWin32.cs: Removed obsolete TODO
5307         * Form.cs:
5308           - Removed obsolete TODO
5309           - Calling CheckAcceptButton when the acceptbutton is changed to allow
5310             internal status updates
5311           - Making sure the active control is selected when the control is created
5312         * CurrencyManager.cs: Removed obsolete TODO
5314 2006-03-29  Mike Kestner  <mkestner@novell.com>
5316         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
5317         of PrintPreviewDialog and RichTextBox.
5319 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
5321         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
5322           DarkDark, Light and LightLight colors for a specific color
5323         * ThemeWin32Classic.cs:
5324           - Use Button drawing code to draw RadioButtons and CheckBoxes with
5325             Appearance = Button 
5326           - Make use of the new ResPool helper CPColor
5327           - Draw ProgressBar and StatusBar with correct 3D borders
5329 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
5331         * ColorDialog.cs: Return selected color. Fixes bug #77940.
5333 2006-03-28  Mike Kestner  <mkestner@novell.com>
5335         * ListView.cs: fix Icon layout to plan for scrollbar widths when
5336         calculating col/row counts.
5338 2006-03-28  Mike Kestner  <mkestner@novell.com>
5340         * ColumnHeader.cs:
5341         * ListView.cs:
5342         * ListViewItem.cs:
5343         * Menu.cs: 
5344         switch to explicit interface method implementation for some methods
5345         corcompare identifies as inconsistent with MS.
5347 2006-03-28  Mike Kestner  <mkestner@novell.com>
5349         * MainMenu.cs: 
5350         * Menu.cs:
5351         add a few missing methods from the class status output.
5353 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
5355         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
5356           correct.
5358 2006-03-28  Mike Kestner  <mkestner@novell.com>
5360         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
5362 2006-03-27  Mike Kestner  <mkestner@novell.com>
5364         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
5365         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
5367 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
5369         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
5371 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
5373         * ThemeWin32Classic.cs:
5374           - GroupBox: Inserted a little gap between the text and the lines
5375             on the right side
5376           - Made the code in CPDrawBorder3D more readable
5377           - Corrected the drawing location of the up and down arrows in 
5378             CPDrawScrollButton
5380 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
5382         * ControlPaint.cs: Corrected line widths in DrawBorder for
5383           ButtonBorderStyle Inset and Outset
5385 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
5387         * ThemeWin32Classic.cs:
5388           - Rewrote the totally broken CPDrawBorder3D method. That was
5389             one of the main problems for the terrific ThemeWin32Classic
5390             look
5391           - Updated and corrected Button drawing
5392           - Correct the dimensions of the SizeGrip to match ms ones
5393           - Removed a small drawing glitch in DrawComboBoxEditDecorations
5394         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
5395           Border3DStyle.Sunken to match ms.
5397 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
5399         * ThemeWin32Classic.cs: First small part of the "de-uglify
5400           ThemeWin32Classic" effort, SizeGrip
5402 2006-03-24  Jackson Harper  <jackson@ximian.com>
5404         * XplatUIX11.cs: Give a max idle time of one second, this matches
5405         MS and forces an Idle event every second when there are no other
5406         events in the queue.
5408 2006-03-24  Mike Kestner  <mkestner@novell.com>
5410         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
5411         * ListView.Item.cs: fix layout issues with null image lists and images
5412         smaller than checkbox size.
5413         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
5414         mode like MS does.  It's weird, but consistent.  ;-)
5415         Fixes #77890.
5417 2006-03-24  Mike Kestner  <mkestner@novell.com>
5419         * ListView.cs: Scroll wheel support for the item control.  Fixes
5420         #77839.
5422 2006-03-23  Jackson Harper  <jackson@ximian.com>
5424         * ScrollableControl.cs: Special case negative sized areas, not
5425         zero.
5426         * MonthCalendar.cs: Save the rect of the clicked date so we can
5427         use it for invalidation.
5428         - Try to cut down on the number of invalidates
5429         - Invalidate the rect the mouse is over and was over when moving
5430         the mouse, so we get the focus box following the cursor.
5432 2006-03-23  Mike Kestner  <mkestner@novell.com>
5434         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
5435         focus rectangle drawing. Fixes #77835.
5437 2006-03-23  Mike Kestner  <mkestner@novell.com>
5439         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
5440         the if and else if and reverting back to the original == check on the
5441         None conditional.
5443 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
5445         * FontDialog.cs: Update the example panel if the selected index of
5446           the fontListBox changes.
5448 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
5450         * FileDialog.cs: Make FileDialog remember which directory it was in
5451           last in the same execution.
5453 2006-03-22  Mike Kestner  <mkestner@novell.com>
5455         * FileDialog.cs: make the DropDownMenu on the toolbar display
5456         RadioChecks since they are mutually exclusive and that's what MS does.
5458 2006-03-22  Mike Kestner  <mkestner@novell.com>
5460         * Theme.cs: add Color param to CPDrawMenuGlyph.
5461         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
5462         checks and radio marks and arrows are visible on highlighted items.
5463         * ControlPaint.cs: update to use new Theme signature.
5465 2006-03-22  Mike Kestner  <mkestner@novell.com>
5467         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
5468         is active. Fixes #77870.
5470 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
5472         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
5473           to be focused/selected after startup
5475 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
5477         * ColorDialog.cs: 
5478           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
5479             CustomColors and ShowHelp properties
5480           - Some internal rewrites to get better results when using the
5481             ColorMatrix
5483 2006-03-22  Mike Kestner  <mkestner@novell.com>
5485         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
5486         HoverSelection.  Fixes #77836.
5488 2006-03-22  Mike Kestner  <mkestner@novell.com>
5490         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
5491         ToggleButtons.  (De)Sensitize the Back button around a stack count of
5492         1, not 0.  Update ButtonSize based on a pixel count of the win32
5493         control.  Adjust the toolbar size/location for new button size.
5495 2006-03-22  Jackson Harper  <jackson@ximian.com>
5497         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
5498         true.
5499         * ScrollBar.cs: When doing increments and decrements we need to
5500         set the Value property so that ValueChanged gets raised. A
5501         possible optimization here would be to make an internal SetValue
5502         that doesn't invalidate immediately.
5503         * ToolTip.cs: Tooltips get added to their container (when
5504         supplied) so they get disposed when the container is disposed.
5505         - Don't create tooltips for String.Empty. This prevents all these
5506         little 2-3 pixel windows from showing up when running nunit-gui
5507         and driving me mad.
5508         * Form.cs: Don't set topmost when setting the owner if the handles
5509         haven't been created yet.  The topmost set will happen when the
5510         handles are created.
5512 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
5514         * XplatUIX11.cs:
5515           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
5516           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
5517             visible (to allow them to recalculate their sizes)
5519 2006-03-21  Mike Kestner  <mkestner@novell.com>
5521         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
5522         methods. Removed a ton of redundant code.  Still not really happy with
5523         the border rendering, but I think that's mainly because of the
5524         ControlDarkDark being black instead of a dark grey. Depending on how 
5525         close we want to be, we might want to revisit those color choices.
5526         Among the new features added during the refactor were DropDownArrow
5527         pressed rendering, Disabled image rendering.  Proper flat appearance
5528         boundary rendering.  Removed the Divider and Wrapping dividers since I
5529         can't figure out any combination of themes and conditions to make the
5530         MS control draw a horizontal line on a toolbar despite what the
5531         Divider property docs indicate.
5532         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
5533         conditions and incorrect layout.  Updated to coding standard.
5534         * ToolBarButton.cs: refactored layout and positioning code from
5535         ToolBar to here.  Invalidate wherever possible instead of forcing
5536         redraws of the whole toolbar. 
5537         (Known remaining issues: explicit ButtonSize smaller than provided
5538         images.)
5540 2006-03-21  Mike Kestner  <mkestner@novell.com>
5542         * ContextMenu.cs (Show): use the position parameter instead of just
5543         showing at the MousePosition.
5545 2006-03-21  Jackson Harper  <jackson@ximian.com>
5547         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
5548         control handle this.
5549         * TreeNodeCollection.cs: If we are clearing the root node we need
5550         to reset top_node so calcs can still happen.
5551         * ThemeWin32Classic.cs: This is a Flags so we need to check
5552         properly.
5553         
5554 2006-03-21  Jackson Harper  <jackson@ximian.com>
5556         * DataGrid.cs: Create columns when the binding context has been
5557         changed.
5558         * X11Structs.cs: Keysyms are uints.
5559         - Add size to fix build.
5561 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
5563         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
5564           XplatUIOSX.cs: 
5565           - Added ResetMouseHover method to allow controls to retrigger
5566             hovering if they need it more than once
5567           - Implemented MouseHoverTime and MouseHoverSize properties
5568         * Timer.cs: Start() must reset the interval
5569         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
5570           properties
5572 2006-03-21  Jackson Harper  <jackson@ximian.com>
5574         * X11Keyboard.cs: improved layout detection. Move the nonchar
5575         tables into this file.
5576         * KeyboardLayouts.cs: Move the tables into resource files.
5578 2006-03-21  Mike Kestner  <mkestner@novell.com>
5580         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
5582 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
5584         * Mime.cs: Various speed optimizations. Looking up mime types
5585           is now 2 times faster than before
5587 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
5589         * CreateParams.cs: Added internal menu field
5590         * Control.cs: 
5591           - Switched call order for UpdateBounds; now we always call
5592             the one that also takes ClientSize, and we're calculating the 
5593             client size via driver method in the others. The previous
5594             method of tracking client size by difference wasn't working
5595             for forms where even the starting client size wouldn't match
5596             the overall form size (due to borders) (Part of fix for #77729)
5597           - CreateParams(): Do not use parent.Handle unless the handle is
5598             already created. Causes havoc with Nexxia and throws off our
5599             creation of controls
5600         * XplatUIX11.cs:
5601           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
5602           - Switched handling of ConfigureNotify over to new PerformNCCalc 
5603             method (consolidates code)
5604           - Changed RequestNCRecalc to use new PerformNCCalc method
5605           - Added calls to RequestNCRecalc when menus and borders are changed
5606             to allow app to set NC size. (Part of fix for #77729) This matches
5607             when MS send a WM_NCRECALC on Win32 windows.
5608           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
5609             (Part of fix for #77729). This matches what MS does, they also
5610             send that message when the form is made visible.
5611           - XException.GetMessage: Improved usability of X errors by including
5612             a translation of the window into Hwnd and Control class
5613           - Improved debug info for window creation, reparenting and destruction
5614           - Created helper method WindowIsMapped() [Currently not used]
5615         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
5616         * Form.cs:
5617           - CreateParams: Now setting our menu on the new internal menu field
5618           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
5619             avoid calculating the same property twice
5620         * Hwnd.cs:
5621           - Improved usability of ToString() for debugging purposes
5622           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
5623             determine the height of the menu, instead of just the font. This
5624             required to also create a graphics context and to keep a bmp 
5625             around (for performance reasons)
5627 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
5629         * MenuAPI.cs: Added OnMouseUp method
5630         * Form.cs:
5631           - Now remembering the requested client size, avoids size errors
5632           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
5633             instead of base if the menu is active. This is required due to
5634             control now capturing and releasing on down/up and it would
5635             prematurely release our menu capture
5637 2006-03-17  Jackson Harper  <jackson@ximian.com>
5639         * KeyboardLayouts.cs: Add the czech layouts.
5641 2006-03-16  Jackson Harper  <jackson@ximian.com>
5643         * Control.cs: Use the viewport space when sizing not the controls
5644         client size, so things like ScrollableControl that effect the
5645         viewport size (when scrollbars are added) are computed correctly.
5646         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
5647         of ManagerEntrys.
5648         - Handle creating BindingManagers for null data sources.
5649         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
5650         source, otherwise when rows are added they are added to the 'fake'
5651         datasource and we will crash when trying to set the position in
5652         those rows.
5653         - Use Implicit scrollbars on the datagrid so they arent
5654         selectable.
5655         
5656 2006-03-16  Jackson Harper  <jackson@ximian.com>
5658         * Binding.cs:
5659         * InternalWindowManager.cs:
5660         * MdiWindowManager.cs:
5661         * X11Keyboard.cs: I really want Mike to love me again (fix
5662         compiler warnings).
5664 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
5666         * DataGrid.cs:
5667           - OnMouseDown: Switch to editing mode when clicking on the cell
5668                          even if we're clicking on the cell that's currently 
5669                          selected
5670           - ProcessGridKey: Left/Right now wrap like MS.Net does
5671           - ProcessGridKey: Tab now knows to add a new row when tab is
5672                             pressed in the cell of the last column of the 
5673                             last row
5674           - ProcessGridKey: Enter now adds another row  if pressed in the last
5675                             row and selectes the new row, same column cell
5676           - ProcessGridKey: Home/End navigate columns, not rows, like 
5677                             originally implemented
5678           - Broke ProcessKeyPreview code out into an extra Internal method
5679             so it can be called from the edit code
5680         * DataGridTextBox.cs (ProcessKeyMessage):
5681           - Switched to accept Tab keypresses
5682           - Added F2 handling to allow jumping to the end of the edited cell
5683           - Added logic to allow moving caret left/right inside edited cell
5684             and making the edited cell jump when the caret hits cell borders
5685           - Tab and Enter are now passed to the datagrid after being handled
5686         * TextBoxBase.cs:
5687           - Removed capture code now that Control handles it
5688           - set_SelectionStart now ensures caret is visible
5690 2006-03-16  Jackson Harper  <jackson@ximian.com>
5692         * TrackBar.cs: Debackwards the increment/decrement for handling
5693         mouse clicks on the bar with vertical trackbars.
5694         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
5695         bottom to match MS.
5697 2006-03-16  Mike Kestner  <mkestner@novell.com>
5699         * ListView.cs: make shift/ctrl keyboard and mouse selection 
5700         consistent with the MS control. Fix a bug in
5701         SelectedListViewItemCollection.Clear that was pissing me off for the
5702         better part of a day because the collection was being altered
5703         underneath us as we walked the list.
5705 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
5707         * Control.cs: Not sure how we could miss this so long, but it seems
5708           that MS.Net has Capture set all the way from before calling 
5709           OnMouseDown through sending the mouse events until after
5710           OnMouseUp. This will fix DataGrid's selection being set to end
5711           at the location of the MouseUp.
5713 2006-03-15  Jackson Harper  <jackson@ximian.com>
5715         * BindingContext.cs: Check the binding after its added so that it
5716           can initialize the binding managers and hookup to events.
5717         * Binding.cs: Data members seem to sometimes include rows/cols in
5718           the format Row.Column we now take this into account.
5719           - Hookup to the position changed event so we can update the
5720           control when the position has changed in the data set.
5721         * CurrencyManager.cs: Take into account the row/col naming
5722           convention when creating dataset tables.
5723         * BindingContext.cs: Using a newer better way of storing
5724           datasource/datamember pairs.  Hopefully this better matches MS for
5725           looking up binding managers.
5728 2006-03-15  Jackson Harper  <jackson@ximian.com>
5730         * BindingContext.cs: The currency manager needs the data member
5731         name, if the member is a data set we use the name to find the
5732         correct table.
5733         * CurrencyManager.cs: When creating the list prefer an IList over
5734         an IListSource.
5735         - Attempt to create a DataTable from a DataSet (TODO: might need
5736         some better error checking here, although MS doesn't seem to have much)
5737         - If we have a DataTable create a view and use it as our list.
5739 2006-03-15  Mike Kestner  <mkestner@novell.com>
5741         * ListView.cs: keep a matrix of the icon mode layout to facilitate
5742         keyboard navigation. Support Up/Down/Left/Right selection correctly
5743         for all 4 View modes.
5744         * ListViewItem.cs: add internal row/col fields for icon layouts.
5746 2006-03-15  Jackson Harper  <jackson@ximian.com>
5748         * TabControl.cs: Redraw the tabs when we resize so their newly
5749         calculated sizes are drawn on screen.
5750         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
5751         composite characters.
5752         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
5753         - filter events so that composite characters can be created
5754         patches by peter
5755         * X11Structs.cs: Add XIMProperties enum.
5757 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
5759         * Control.cs (BringToFront, SendToBack): Don't use window or handle
5760           unless it's created
5762 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
5764         * Control.cs (PerformLayout): We don't need to consider visiblity
5765           for anchoring, only for docking. This fixes 'whacky' alignment
5766           in listbox and other controls that use implicit scrollbars after
5767           the previous PerformLayout patch
5768         * ListBox.cs: Switched to use implicit scrollbars
5769           
5770 2006-03-14  Mike Kestner  <mkestner@novell.com>
5772         * ToolBar.cs: 
5773         * VScrollBar.cs:
5774         - chain up the "new event" overrides to base and use
5775         OnEvent to raise them.  Part of fix for bug #76509.
5777 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
5779         * FileDialog.cs: Do not select an item in the parent directory
5780           on backspace
5782 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
5784         * Control.cs (PerformLayout): It would seem that we considered
5785           invisible windows for our layout. Not quite the right thing
5786           to do. Now we don't any longer, thereby fixing bug #76889.
5788 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
5790         * Control.cs (CanFocus): I goofed. A control can have focus 
5791           even though it's not selectable. Made it match MS docs.
5793 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
5795         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
5796           center by default (fixes #76895)
5797         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
5798           all uses of Border3DSides.All with the explicit ORd together
5799           Left|Right|Top|Bottom because I assume that nobody was aware 
5800           that All also implies a center fill. Most places I checked had
5801           a fill right above.
5802         * ProgressBarStyle.cs: Added
5804 2006-03-13  Mike Kestner  <mkestner@novell.com>
5806         * ListView.cs: fix breakage in drag shadow header positioning 
5807         from Peter's csc compilation fix.
5809 2006-03-13  Mike Kestner  <mkestner@novell.com>
5811         * ListView.cs: fix NRE produced by backspacing twice in a focused
5812         FileDialog.
5814 2006-03-13  Mike Kestner  <mkestner@novell.com>
5816         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
5818 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
5820         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
5821           be changed
5822         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
5823           the allowed size before making programmatic size changes
5825 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
5827         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
5828           set, metacity is broken and will still use the emty sizes in 
5829           the struct. (Fix for #77089)
5831 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
5833         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
5834           WindowExStyles and marked both enums as Flags
5835         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
5836           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
5837           to match WindowStyles split
5838         * XplatUIX11.cs:
5839           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
5840           - Updated to match WindowStyles split
5841         * XplatUIWin32.cs:
5842           - Fixed FosterParent creation, was using ExStyle on the Style field
5843             (This should help with Popup focus issues)
5844           - Updated to match WindowStyles split
5846 2006-03-13  Jackson Harper  <jackson@ximian.com>
5848         * MdiWindowManager.cs: Use the system menu height. Fixes some
5849         strange sizing issues.
5851 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
5853         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
5854         * TextBoxBase.cs:
5855           - Scroll to caret after inserting text (#77672)
5856           - Make scroll range one pixel higher, fixes off-by-one error (and
5857             makes underlines visible on the last line)
5859 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
5861         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
5862           the keyboard state from being stuck with keys in 'pressed' state when
5863           focus is switched away via keyboard
5864         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
5865           reset the keyboard if no X11 KeyUp events are expected to come
5866         * X11Structs.cs: Switched type of Visible to bool to match driver
5868 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
5870         * TextControl.cs:
5871           - Switched caret to be just 1 pixel wide, matches MS and looks less
5872             clunky
5873           - Moved caret display 1 pixel down from the top of the control
5874             to improve view
5875           - InsertCharAtCharet: Update the selection start if moving the caret
5876             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
5877           - No longer always creating the caret when the caret methods are
5878             called. Only the actual ShowCaret/HideCaret will do that now
5879           - Only setting caret visible if the owner control has focus
5880           - UpdateView: Added invalidation-shortcut logic for center and right 
5881             aligned text. Previously we'd update all according to the left
5882             logic which caused drawing errors. Also fixed height of invalidated
5883             areas, now properly invalidating the whole area (was off-by-one)
5884           - owner_HandleCreated: Always generate the document when the
5885             handle is created; this ensures that 
5886         * TextBoxBase.cs:
5887           - Fixed situation where caret would disappear under the right
5888             window border, also improved scrolling behaviour on left-
5889             aligned textboxes
5890           - Fixed right-aligned textboxes to have a border to the
5891             right instead of the caret being under the right border
5892         * XplatUIX11.cs:
5893           - Switched from 'nested' to simple visible/not visible tracking 
5894             for caret (part of fix for #77671)
5895           - No longer passing through translated FocusIn/FocusOut messages
5896             since we were notifying too often and the wrong windows. Instead
5897             we just notify our focussed window of receiving or loosing focus
5898         * XplatUIWin32.cs: Switched from 'nested' show/hide 
5899           counting for caret to simple visible yes/no behaviour (part of 
5900           fix for #77671)
5902 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
5904         * Mime.cs: Remove debug code...
5906 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
5908         * MimeGenerated.cs: Removed
5909         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
5910           and subclasses) from /usr/(local/)share/mime and
5911           $HOME/.local/share/mime.
5913 2006-03-10  Jackson Harper  <jackson@ximian.com>
5915         * MdiWindowManager.cs: Recalc the NC area when a window is
5916         maximized/restored so that the menu area is drawn on forms that
5917         don't have a menu.
5919 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
5921         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
5922           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
5923           us to force a WM_NCCALCRESIZE message being sent. This is needed
5924           for MDI maximizing.
5926 2006-03-10  Jackson Harper  <jackson@ximian.com>
5928         * Form.cs: We need to use the ActiveMenu when calculating menu
5929         height.
5930         - Fix nullref when the window manager hasn't been created yet.
5931         * Control.cs: Fix nullref when we try to bring a control to the
5932         front that has no parent.
5933         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
5934         height.
5935         - Add a dummy item to the maximized menu so it always has the
5936         correct height. Otherwise when there are no menus we don't get our
5937         icon and buttons.
5938         
5940 2006-03-10  Jackson Harper  <jackson@ximian.com>
5942         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
5943         stuff.
5944         * Form.cs: Make the window_state internal so the window managers
5945         can track it.
5946         - When an MDI child is maximized let its window manager create the
5947         main menu (so it can add its icon).
5948         - Notify the window managers of state changes
5949         - Let the window manager paint its buttons and handle button
5950         clicks on the menu when it is maximized.
5951         * InternalWindowManager.cs: Move the prev_bounds into the mdi
5952         window manager, since tool windows don't use it, only mdi windows.
5953         - Tell the main form that we don't want it to handle NCPAINT
5954         itself to avoid extra painting.
5955         - Handle clicks on a maximized windows menu.
5956         - Handle window state changes
5957         - Handle minimize/maximize clicks correctly by setting the window state.
5958         * MdiWindowManager.cs: Add an icon menu that (the menu you get
5959         when clicking on the forms icon).
5960         - New method to create a forms maximized menu. This is its normal
5961         menu + an icon.
5962         - Handle window state changes.
5963         - Handle sizing of maximized windows.  Maximized windows are just
5964         drawn bigger then the parent visible area. All controls are still
5965         there, they are just outside the visible area (this matches windows).
5966         * MdiClient.cs: No scrollbars when a child window is maximized.
5967         - Let the children windows figure out how big they should be when
5968         sizing maximized windows.
5969         - Implement a version of ArrangeIconicWindows somewhat similar to
5970         Windows version.  There are some little differences, but I don't
5971         think any app will rely on the layout of minimized mdi windows.
5973 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
5975         * Padding.cs: Several fixes to allow compiling with csc 2.0
5977 2006-03-09  Jackson Harper  <jackson@ximian.com>
5979         * Menu.cs:
5980         * MenuItem.cs: Cheap hack so we can add items to the list without
5981         the events being raised.  This allows adding mdi items during
5982         drawing. TODO: Should probably find a better time to add the items.
5984 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
5986         * ThemeWin32Classic.cs:
5987           - CheckBox_DrawText: Added logic to not wrap if not enough space
5988             is available (Fix for bug #77727)
5989           - RadioButton_DrawText: Added logic not to wrap if not enough
5990             space is available (Fix for bug #77727). Also removed some
5991             duplicate code, DrawString always drawing the regular text
5992             before hitting the if statement.
5994 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
5996         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
5998 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
6000         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
6001         * ContainerControl.cs: Partial implementation of some 2.0 scaling
6002           methods. Moved the new 2.0 properties into alphabetical order with
6003           other properties and added MonoTODO tags
6005 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
6007         * AutoScaleMode.cs: Added. Fix build.
6009 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
6011         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
6012           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
6013           and was requiring premature handle creation for calls from above
6014         * Form.cs, Control.cs: Removed handle arguments from calls to
6015           CalculateClientRect()
6017 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
6019         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
6020           drag_column.column_rect is MarshalByRef and can't be used that way
6022 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
6024         * AxHost.cs: Added deserialization constructor for 
6025           AxHost+State (fixes 77743)
6027 2006-03-09  Mike Kestner  <mkestner@novell.com>
6029         * ListView.cs: 
6030         - Added column drag reordering for details view.
6031         - fixed behavior when mouse is dragged off column and
6032         AllowColumnReorder is false.
6033         * ColumnHeader.cs: clone the format too in Clone.
6034         * Theme.cs: add DrawListViewHeaderDragDetails method.
6035         * ThemeWin32Classic.cs:
6036         - impl new method for drawing drag column shadows and targets.
6037         - support column offset for details mode in DrawListViewItem.
6039 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
6041         * TextControl.cs: Reset the char_count when the document is cleared
6042           (Fixes bug reported on mono-winforms mailing list)
6044 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
6046         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
6047           of calling base we simply process the key ourselves, since both
6048           DefWindowProc and the handled method would set m.Result. 
6049           (Fixes #77732)
6051 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
6053         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
6054           method also moves the window; instead implemented a copy of
6055           Control.ScaleCore (Part of fix for #77456)
6056         * TextBoxBase.cs: 
6057           - Created new CreateGraphicsInternal method to allow providing
6058             a graphics context when no handle is created without triggering
6059             handle creation. (Part of fix for #77456)
6060           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
6061         * TextControl.cs: 
6062           - Switched Constructor to require TextBoxBase instead of Control (to
6063             allow uncast access to CreateGraphicsInternal)
6064           - Safeguarded use of owner.Handle property. No longer accessing it
6065             unless the handle is already created.
6066           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
6067           - Now triggering a recalc when owning control becomes visible
6068         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
6069           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
6070           premature handle creation (Part of fix for #77456)
6071         * Control.cs:
6072           - We now only destroy our double-buffering buffers when the
6073             control is resized or disposed, but not when visibility
6074             changes. (The code even re-created them twice every time)
6075           - Now requiring a redraw of the buffer on visibility changes
6076             (fixes bug 77654 part 2)
6077           - Not passing OnParentVisibleChanged up unless the control
6078             is visible
6079           - CanFocus: Fixed to match MS documentation
6080           - Focus: Fixed to return actual focus state and to check if
6081             setting focus is legal before setting it
6083 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
6085         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
6086           when to draw focus rectangle by looking at parent focus and
6087           selected state instead. This fixes TabPages on Linux sometimes
6088           having none or multiple focus rectangles.
6089         * XplatUIX11.cs (SetFocus): 
6090           - Don't set the focus if the same window already has focus
6091           - Use SendMessage instead of PostMessage (like it's Win32
6092             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
6093             to match MS behaviour
6094         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
6095           are not selectable.
6097 2006-03-07  Jackson Harper  <jackson@ximian.com>
6099         * PictureBox.cs: Revert line I accidently committed last week.
6101 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
6103         * Control.cs: 
6104           - Added new IsRecreating and ParentIsRecreating properties to
6105             allow testing if RecreateHandle has been called on ourselves
6106             or one of our parents
6107           - WndProc(WM_DESTROY): If our control handle is being recreated
6108             we immediately need to create the handle when receiving the
6109             destroy, that way our child windows find a valid parent handle
6110             when they themselves are being recreated upon WM_DESTROY receipt
6111             (fix for bug #77654 part 1)
6112         * XplatUIX11.cs:
6113           - DestroyWindow: WM_DESTROY must be sent to our own window before
6114             notifying any child windows. MS documents that child windows
6115             are still valid when WM_DESTROY is received. (Control now relies on
6116             this behaviour)
6117           - Added some fine-grain debug options
6119 2006-03-06  Jackson Harper  <jackson@ximian.com>
6121         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
6122         box and base calculations off this.
6123         * MdiChildContext.cs:
6124         * MdiWindowManager.cs: Don't need to ensure scrollbars here
6125         anymore.
6126         
6127 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
6129         * Splitter.cs: In situations where the affected control is added
6130           to the parent's control list after the splitter, we would not
6131           populate affected. Now we try populating it on mousedown, if
6132           it's not already set, and force it to be re-set whenever our
6133           parent changes.
6135 2006-03-03  Matt Hargett  <matt@use.net>
6137         * Control.cs: implement Control.Padding
6138         * Padding.cs: -Padding.All returns -1 when constructing with the
6139         implicit default ctor
6140         -Padding.ToString() matches MS.NET
6141         * ContainerControl.cs: implement
6142         ContainerControl.AutoScaleDimensions
6143         * ListControl.cs: implement ListControl.FormattingEnabled
6144         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
6145         * ButtonBase.cs:
6146         * TabPage.cs: Implement UseVisualStyleBackColor.
6147         * PictureBox.cs: Implement PictureBox.InitialImage.
6149 2006-03-03  Mike Kestner  <mkestner@novell.com>
6151         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
6152         event declarations to proxy to base event.
6153         * ListViewItem.cs: update to use ItemControl.
6154         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
6155         * ThemeWin32Classic.cs: update to new ListView theme API and fix
6156         column header label rendering for 0 width columns.
6158 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
6160         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
6161           that causes the control to be created. Fixes #77476.
6163 2006-03-02  Jackson Harper  <jackson@ximian.com>
6165         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
6166         expose_pending.
6168 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
6170         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
6171           passed in for the EventArgs (fixes #77690)
6173 2006-03-01  Jackson Harper  <jackson@ximian.com>
6175         * ScrollBar.cs: Refresh afterbeing resized.
6177 2006-02-28  Mike Kestner  <mkestner@novell.com>
6179         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
6180         Clean up a tracker compile warning.
6181         * MenuItem.cs: add internal PerformPopup method.
6182         [Fixes #77457]
6184 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
6186         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
6187           implicit expose) when the text is set to null
6189 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
6191         * RichTextBox.cs (FlushText): When newline is true, we always
6192           need to split the line, even if no text is on it and we may
6193           never eat newlines. (Fixes #77669)
6195 2006-02-28  Mike Kestner  <mkestner@novell.com>
6197         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
6198         and set Selected instead.
6199         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
6200         collections.
6202 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
6204         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
6206 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
6208         * FontDialog.cs:
6209           - Got rid of the panel. All controls are now directly added to
6210             the dialog form
6211           - It is now possible to set a font with the Font property
6212           - MinSize and MaxSize property do now what they should
6213           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
6214           - Searching and selecting a font with the font textbox works now,
6215             the same applies to the style and size textbox
6216           - Draw the correct 3D border in the example panel
6217           - Fixed a little mem leak (unused fonts didn't get disposed)
6218           - Many other internal updates/rewrites...
6219           - Fix typo
6221 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
6223         * TextControl.cs: 
6224           - InsertRTFFromStream: Added 'number of characters inserted' argument
6225           - set_SelectedRTF: Now using the number of characters to calculate
6226             the new location for the selection and cursor (x/y cannot be used
6227             due to potentially already wrapped text)
6229 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
6231         * TextControl.cs: Added property and implemented means to allow 
6232           disabling recalculation of a document (can be used to speed up
6233           multiple inserts and is needed to make RTF inserts predictable, see
6234           bug #77659)
6235         * RichTextBox.cs: Using the new NoRecalc property of Document to
6236           keep x/y insert locations predictable. Also makes it faster inserting
6237           large chunks of RTF
6239 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
6241         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
6242           it's easier for a child control to handle the other messages without
6243           having to duplicate the special functionality
6244         * TextBoxBase.cs
6245           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
6246             code to handle processing the key ourselves, in order to get 
6247             access to the result of KeyEventArgs.Handled. We now only call 
6248             ProcessKey if they key hasn't been handled already. Fixes #77526.
6249           - set_Text: If null or empty string is given, just clear the 
6250             document. Fixes part of #77526
6252 2006-02-27  Jackson Harper  <jackson@ximian.com>
6254         * SizeGrip.cs: Paint the background color before painting the grip
6255         so things look right.
6256         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
6258 2006-02-27  Mike Kestner  <mkestner@novell.com>
6260         * ListView.cs:
6261           - Restructure layout and invalidation model to remove a ton of
6262           flicker from the control and speed up performance in general.
6263           - Add manual column resize, flickers like crazy, but I already have
6264           some ideas on how I'll fix that. (#76822)
6265           - Merge the three Icon-based views into a single layout method.
6266           - Move item selection interaction logic from the item since 
6267           interaction with the collections is more appropriate to the view.
6268           - Deselection on non-item clicks.
6269         * ListViewItem.cs:
6270           - Encapsulate most of the layout. Add some internal props to trigger
6271           layout.  Move to a model where Items invalidate themselves instead
6272           of just invalidating the whole control every time something changes.
6273           - Invalidate on Text/Caption changes.
6274           - switch to an offset based layout model to avoid having to absolute
6275           position every element on item moves.
6276           - correct checkbox layout to conform to MS layout.
6277         * ThemeWin32Classic.cs:
6278           - refactor some column header drawing code.
6279           - fix string justification for column headers (#76821)
6280           - make SmallIcon labels top justified for compat with MS impl.
6281         * ThemeClearlooks.cs:
6282           - adjust to new ListViewItem internal checkbox bounds api.
6284 2006-02-27  Jackson Harper  <jackson@ximian.com>
6286         * Control.cs:  Change where implicit controls fall in the zorder.
6287         They are now on top of all children.
6288         - Synced AddImplicit code with Add
6289         - Removed unused enumerator.
6290         * SizeGrip.cs: Remove the TODO as its been TODONE.
6292 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
6294         * TextControl.cs(Insert): Combine the last lines unless the insertion
6295           string ends with \n\n, otherwise we leave one line too many (Fixes
6296           something I noticed with the testapp for #77526; the bug itself was
6297           already fixed in the previous checkin)
6299 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
6301         * RichTextBox.cs:
6302           - SelectionColor and SelectionFont methods no longer set absolute
6303             styles. Instead, the keep font or color respectively (This 
6304             resolves a long-standing FIXME in the code)
6305           - When flushing RTF text, the insert code now considers text trailing
6306             behind the insertion point (Fixes the bug where when replacing
6307             the selected text via SelectedRTF the remainder of the line behind 
6308             the selection would stay on the first insertion line)
6309         * TextBoxBase.cs:
6310           - AppendText now updates the selection points after inserting text
6311           - AppendText now ensures that the last tag (sometimes 0-length) of
6312             the document is used for the style information (Fixes part of 
6313             bug #77220)
6314         * TextControl.cs:
6315           - Created new FontDefiniton class to allow describing partial style
6316             changes
6317           - StreamLine() now takes a lines argument, to allow it to decide
6318             whether an encountered zero-length tag is the last in the document
6319             (which must be kept to not loose the font/color contained in it,
6320             for later appends)
6321           - Created Combine() and Split() methods for Marker structs, to 
6322             support marker updates due to reformatted documents (soft line
6323             wraps)
6324           - Implemented Document.CaretTag setter
6325           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
6326             of the last line (Not the cause, but also exposed by bug #77220)
6327           - Added LineTag argument to InsertString method, to allow callers
6328             to force a certain tag to be used (required to force use of the
6329             trailing zero-length tag of a document)
6330           - Now updating markers in Combine(), to avoid stale tag markers
6331           - Added some method descriptions to aid maintenance
6332           - Implemented new FormatText concept, allowing additive/subtractive
6333             formatting by only specifying the components that are to be 
6334             changed. This was needed for resolving the RTB.SelectedColor/
6335             RTB.SelectedFont fixmes
6336           - Added Break() support method to allow breaking up linetags (used
6337             for partial formatting)
6338           - Added GenerateTextFormat() method. It is used for partial 
6339             formatting and allows to generate a full font/color from given
6340             attributes and an existing tag.
6342 2006-02-26  Jackson Harper  <jackson@ximian.com>
6344         * XplatUIX11.cs:  Use the correct caption height.
6345         - Translate hittest coordinates to screen coords to match MS.
6346         * XplatUIWin32.cs: When we create MDI windows we need to reset
6347         some of the style flags, so we get a nice blank window, and can
6348         draw all the decorations ourselves.
6349         - Set a clipping rectangle on the non client paint event, the
6350         window manager drawing code needs one.
6351         * Form.cs: The window manager needs to know when the window state
6352         has been updated.
6353         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
6354         don't need to factor in border and title sizes in these
6355         methods. TODO: Remove the args and fix the call points.
6356         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
6357         properly.
6358         - Let the driver set the cursors.
6359         - Improve active window handling
6360         - Correct sizes for title bars and buttons.
6361         - Match MS drawing better
6362         * MdiWindowManager.cs: We don't need to handle border style
6363         updates specially anymore.
6364         - Check for scrollbars when windows are done moving
6365         - Handle Active properly.
6366         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
6367         correctly. I am spewing the exception though, so we don't hide the
6368         bugs.
6369         
6370 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
6372         * DataGridViewRowPostPaintEventArgs.cs,
6373           DataGridViewCellPaintingEventArgs.cs,
6374           DataGridViewRowCollection.cs,
6375           DataGridViewRowPrePaintEventArgs.cs,
6376           DataGridViewCell.cs: Clear a few warnings and implement a few
6377           exceptions that should be thrown.
6379 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
6381         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
6382           'inheriting' our parent's (non-default) cursor. (Part of
6383            the fix for #77479)
6385 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
6387         * XplatUIX11.cs: Fixed cast to make csc happy
6389 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
6391         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
6392           it's for the client area (part of fix for #77479 and needed
6393           for MDI window cursor handling)
6394         * XplatUIX11.cs
6395           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
6396             the appropriate default cursors and also passing the message
6397             up the parent chain 
6398           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
6399             for non-client areas
6401 2006-02-15  Jackson Harper  <jackson@ximian.com>
6403         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
6404         is a real MDI window
6406 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
6408         * X11DesktopColors.cs: Instead of checking the desktop session
6409           string for "KDE" check if it starts with "KDE"
6411 2006-02-10  Jackson Harper  <jackson@ximian.com>
6413         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
6414         systems).
6416 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
6418         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
6419           errors
6420         * ColorDialog.cs:
6421           - Got rid of the panel. All controls are now directly added to
6422             the dialog form
6423           - Changed to mono coding style
6425 2006-02-10  Jackson Harper  <jackson@ximian.com>
6427         * InternalWindowManager.cs: We don't need the set visibility to
6428         false hack anymore now that peter has written beautiful shutdown
6429         code.
6431 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
6433         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
6434           where already explicitly destroyed
6436 2006-02-10  Jackson Harper  <jackson@ximian.com>
6438         * MdiClient.cs: Handle the case where windows are too high or to
6439         the left and we need scrollbars.
6441 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
6443         * MimeIcon.cs: Added some icons
6444         * FileDialog.cs:
6445           - Fixed bug #77477
6446           - Got rid of the panel. All controls are now directly added to
6447             the dialog form
6448           - Changed to mono coding style
6449           - On Linux "My Computer" and "My Network" will now show some
6450             more usefull information. A new class, MasterMount, gathers
6451             this information from /proc/mount. Updated MWFFileView to make
6452             use of this information
6453           - Fixed a bug that caused FileDialog to crash when
6454             ".recently_used" file had a zero size
6455           - FilterIndex does now what it should
6456           - Some Refactoring
6457         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
6458             FileDialog changes
6460 2006-02-09  Jackson Harper  <jackson@ximian.com>
6462         * ComboBox.cs: Don't touch if null.
6464 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
6466         * Cursor.cs: 64bit safeness fix
6467         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
6469 2006-02-09  Jackson Harper  <jackson@ximian.com>
6471         * Form.cs: If a form is made into an MDI form update the styles so
6472         all the props can get set correctly.
6473         - Kill the mdi_container when we dont need it anymore.
6474         * InternalWindowManager.cs: Add missing NOT
6476 2006-02-08  Jackson Harper  <jackson@ximian.com>
6478         * InternalWindowManager.cs: Respek clipping when drawing MDi
6479         decorations.
6481 2006-02-08  Jackson Harper  <jackson@ximian.com>
6483         * Hwnd.cs: Add bits to track non client expose events.
6484         * XplatUIX11.cs: Track non client expose events on the hwnd. This
6485         gives us a proper invalid rect and will allow for some nice
6486         optimizations with NC client drawing
6487         - MDI windows are children windows, so move their style handling
6488         into the child window block.
6489         * InternalWindowManager.cs: Remove a state reset that was
6490         getting invoked at the wrong time. Fixes managed windows getting
6491         into a 'stuck' captured state.
6493 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
6495         * TextControl.cs (Document.ctor): Now initializing 
6496           selection_anchor. Fixes #77493
6498 2006-02-07  Jackson Harper  <jackson@ximian.com>
6500         * TrackBar.cs: The increment/decrements were backwards.
6502 2006-02-07  Mike Kestner  <mkestner@novell.com>
6504         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
6505         to the instance itself.
6507 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
6509         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
6510           on ulongs and pointers, the size differs between 32bit and 64bit
6511           systems. 
6513 2006-02-07  Mike Kestner  <mkestner@novell.com>
6515         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
6516         for 64 bit platforms to work around a metacity bug. 
6518 2006-02-07  Jackson Harper  <jackson@ximian.com>
6520         * TrackBar.cs: Process the input keys we need, and hookup to
6521         KeyDown instead of using WndProc, so we get key messages.
6523 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
6525         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
6526           machine we're on. 
6527         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
6528           we need to translate the XdndVersion atoms array before sending it
6530 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
6532         * XplatUIX11.cs: 
6533           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
6534             number of bits for the property, not the number of bytes. The
6535             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
6536             but would not crash since it specified 8 bits instead of 4 bits)
6537           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
6538             defined as XID -> long in the C headers)
6539           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
6540             references since those are now IntPtr to begin with
6541           - Switched all Atom.XXX 'int' casts to IntPtr casts
6542           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
6543           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
6544           - Added XChangeActivePointerGrab DllImport (for X11DnD)
6545         * X11Structs.cs:
6546           - Changed 'int' type for Atoms in XEvent structures to IntPtr
6547           - Changed atom in HoverStruct to be IntPtr
6548         * X11DnD.cs:
6549           - Removed local DllImports, switched code to use those from XplatUIX11
6550           - Removed/fixed casts related to the switch of Atom to be a IntPtr
6552 2006-02-06  Mike Kestner  <mkestner@novell.com>
6554         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
6555         method signatures in the import region.  There may still be some
6556         lingering struct marshaling issues, as I didn't drill down into those.
6557         Yet.
6559 2006-02-06  Jackson Harper  <jackson@ximian.com>
6561         * ComboBox.cs: Dont manually set the top_item, this is computed
6562         when the scrollbar position is set.
6564 2006-02-06  Mike Kestner  <mkestner@novell.com>
6566         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
6567         startup crashes on amd64.  There's other fixes needed.  All pinvoke
6568         usage of Atom needs to be mapped to IntPtr for example.  And there are
6569         likely other int/long issues to be addressed.
6571 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
6573         * FileDialog.cs: One more...
6575 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
6577         * FileDialog.cs: Next try
6579 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
6581         * FileDialog.cs: First part of fix for #77464
6583 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
6585         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
6586           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
6587           AcceptButton border drawing.
6589 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
6591         * Form.cs: Moved positioning of form after auto scaling is applied,
6592           otherwise it would possibly use wrong form size.
6594 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
6596         * Control.cs (RecreateHandle): No need to re-create any child
6597           controls, the child windows will get destroyed automatically by
6598           the windowing system or driver, and re-created when the handle
6599           is being accessed the first time. Fixes #77456
6600         * Form.cs: No longer setting the form to closing if the handle is 
6601           being recreated. This seems like the right thing to do, don't
6602           have a bug or testcase for this, though.
6604 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
6606         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
6607           controls to avoid unwanted side effects
6609 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
6611         * Control.cs: 
6612           - ScaleCore needs to scale the bounds, not the ClientSize of the 
6613             control. Fixes #77416.
6614           - DefaultSize is 0,0 for control
6615         * TextBoxBase.cs: 
6616           - DefaultSize is 100, 20
6617           - SetBoundsCore: Now enforcing the height, no matter if the provided
6618             height is more or less than the preferred one, as long as AutoSize
6619             is on
6620         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
6622 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
6624         * Control.cs:
6625           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
6626             call unless both performLayout is true *and* we have a pending
6627             layout change
6628           - ResumeLayout: MS does not completely nest Suspend and Resume,
6629             they bottom out at 0, fixed our code to match that.
6630           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
6631             SetBoundsCore, we were updating even when we shouldn't. This fixes
6632             swf-anchors mis-anchoring when resizing the app fast and lots.
6633           - UpdateDistances: Now only setting the left and top distance if 
6634             we have a parent and are not suspended, this is based on
6635             a suggestion by Don Edvaldson in bug #77355.
6636           - OnVisibleChanged: Fixed logic when to create the control. We may
6637             not create the control if we have no parent or if it's not visible;
6638             switched to using Visible property instead of is_visible field 
6639             since the property also considers parent states. This fixes a bug
6640             when starting Paint.Net
6642 2006-02-02  Jackson Harper  <jackson@ximian.com>
6644         * Form.cs: If the forms handle hasn't been created yet don't call
6645         into xplatui to make it top most, just set the topmost flag on the
6646         form in CreateParams
6647         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
6649 2006-02-01  Jackson Harper  <jackson@ximian.com>
6651         * ScrollableControl.cs: Refactored the Recalculate method a
6652         little, this wasn't handling all the variants of bottom and right
6653         bars needed to be added and added/removed based on their
6654         counterparts being added/removed (which changes the drawable
6655         size). Also we special case client widths and heights of 0 and
6656         don't add the scrollbar for those.
6658 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
6660         * XplatUIX11.cs: 
6661           - Added method to get AbsoluteGeometry(); currently unused, but might
6662             be used in the future, if we try again to figure out toplevel
6663             coordinates with some more crappy window managers
6664           - Added FrameExtents() method to retrieve the WM set decoration size
6665           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
6666             to deal with at least KDE, FVWM and metacity (Fixes #77092)
6667         * Hwnd.cs: 
6668           - Added whacky_wm tracking var for metacity
6669           - Added logic to have default menu height if the actual menu height
6670             has not yet been calculated (part of fix for #77426)
6671         * Form.cs: Keep track whether client size has been set and re-set 
6672           it if a menu is added/removed afterwards (Fixes #77426)
6674 2006-01-31  Jackson Harper  <jackson@ximian.com>
6676         * Control.cs: When a new Site is set on the component attempt to
6677         pull the AmbientProperties from it.
6679 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
6681         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
6682           in the background of the owning form. Fixes #77332
6684 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
6686         * MimeIcon.cs: Fix for #77409
6688 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
6690         * XplatUIX11GTK.cs: Initial import
6692 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
6694         * FixedSizeTextBox: fixes class signature
6696 2006-01-30  Jackson Harper  <jackson@ximian.com>
6698         * FixedSizeTextBox.cs: New internal class that represents a
6699         textBox that will not be scaled.
6700         * TreeView.cs:
6701         * ComboBox.cs:
6702         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
6703         standard TextBox.
6704                 
6705 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
6707         * XplatUIX11.cs: Retrieve default screen number instead of
6708           assuming 0. Attempted fix for #77318
6710 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
6712         * XplatUIWin32.cs: 
6713           - GetWindowPos: When a window is parented by FosterParent, use 
6714             the desktop instead of FosterParent as the base to get coordinates
6715           - CreateWindow: Don't make FosterParent the parent window for Popups
6716             if we don't want a taskbar entry, Popups automatically don't get one
6717         * Hwnd.cs: Need to call remove to actually remove the key from the
6718           hash table
6720 2006-01-30  Mike Kestner  <mkestner@novell.com>
6722         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
6724 2006-01-30  Jackson Harper  <jackson@ximian.com>
6726         * TreeView.cs:
6727         * TreeNode.cs: Raise events no matter how the treenode is
6728         checked. Patch by Don Edvalson.
6730 2006-01-30  Jackson Harper  <jackson@ximian.com>
6732         * TreeNode.cs: Signature fix.
6734 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
6736         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
6738 2006-01-20  Mike Kestner  <mkestner@novell.com>
6740         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
6741         event forwarding when menus are active.
6742         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
6743         Most of the patch is pdb's with a little rework.
6745 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
6747         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
6748           Removed GetMenuDC and ReleaseMenuDC methods; replaced
6749           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
6750         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
6751         * InternalWindowManager.cs: Added use of PaintEventStart/End to
6752           handling of WM_NCPAINT message, now passing the PaintEventArgs to
6753           the PaintWindowDecorations method
6754         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
6755         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
6756         * MenuAPI.cs: Made tracker window invisible
6757         * XplatUIWin32.cs:
6758           - Removed GetMenuDC and ReleaseMenuDC methods
6759           - Implemented the client=false path for PaintEventStart and
6760             PaintEventEnd
6762 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
6764         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
6765         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
6766           styles
6767         * Form.cs: 
6768           - MaximizeBox, MinimizeBox: Recreate the handle when setting
6769             the style
6770           - CreateParams: Reworked the styles to match MS look'n'feel,
6771             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
6772             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
6774 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
6776         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
6777           window is not mapped, since otherwise every form that's being 
6778           created is considered minimized, which is wrong.
6779         * Form.cs: Catching the exception and returning our internal value
6780           instead
6782 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
6784         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
6785           SetWindowMinMax() to have means to tell the driver about the minimum,
6786           maximum and maximized state window sizes. (Part of the fix for #76485)
6787         * Form.cs:
6788           - Implemented tracking of minimum and maximum window size, now calling
6789             new SetWindowMinMax() driver method to tell the driver (Part of the
6790             fix for #76485)
6791           - Finished handling of WM_GETMINMAXINFO method, now setting all values
6792             (Completes fix for #76485)
6793           - Calling new SetWindowMinMax driver method when the handle for a 
6794             form is created, to make sure the driver knows about it even if
6795             the values have been set before the window was created
6796           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
6797             to avoid messing up our anchoring calculations (partial fix
6798             for #77355)
6799         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
6800         * XplatUIX11.cs:
6801           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
6802           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
6803             (and presumably other freedesktop.org compliant WMs). Left the
6804             assumption unmapped=minimized, needed for SetVisible to work.
6805           - Now setting the window state when creating windows
6806           - Fixed SetVisible to consider/set the window state when mapping
6807             a Form. We cannot set the state before it's mapped, and we cannot
6808             use Form.WindowState once it's mapped (since it would ask the
6809             driver and get 'normal'. Therefore, we grab the state before
6810             mapping, map, and then set state.
6811           - Implmemented SetWindowMinMax method; Metacity does not seem to
6812             honor the ZoomHints, though.
6813         * XplatUIWin32.cs:
6814           - Removed MINMAXINFO (moved to XplatUIStructs)
6815           - Added SetWindowMinMax stub (on Win32 the only way to set that
6816             information is in response to the WM_GETMINMAXINFO message, which
6817             is handled in Form.cs)
6818           - Added logic to SetVisible to set the proper window state when a 
6819             form is made visible (fixes #75720)
6821 2006-01-26  Jackson Harper  <jackson@ximian.com>
6823         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
6824         same way we handle them with Invoke.
6826 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
6828         * Form.cs:
6829           - Added tracking of window state so CreateParams can return
6830             the appropriate style
6831           - Moved setting of WS_CAPTION style in CreateParams to allow
6832             styles without caption
6833         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
6834           control if the TextBox property is accessed. Fixes #77345
6835         * Control.cs:
6836           - get_Created: now uses is_disposed and is_created to determine
6837             return value (suggested by Jackson)
6838           - CreateHandle: No longer exits if the handle is being recreated
6839           - RecreateHandle: If the handle is not yet created call the 
6840             appropriate method to create either control or handle. If the
6841             control is already created CreateHandle will simply exit instead
6842             of just creating the handle
6843         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
6844           now SendMessage WM_DESTROY directly to the control when DestroyWindow
6845           is called.
6846         * XplatUIX11.cs: 
6847           - When DestroyWindow is called, instead of waiting for the 
6848             DestroyNotification from X11, we directly post it to the WndProc
6849             and immediately dispose the hwnd object.
6850             Same applies to DestroyChildWindows, and this obsoletes the
6851             expose_pending tracking. Contrary to Win32 behaviour we destroy our
6852             child windows before our own, to avoid X11 errors.
6853           - Removed the direct sending of WM_PAINT on UpdateWindow
6854         * XplatUIWin32.cs:
6855           - Reworked DoEvents and GetMessage to allow access to internal queue
6856             even when trying non-blocking access to the queue.  Fixes #77335. 
6857             Based on a patch suggestion by Don Edvalson. The new private
6858             GetMessage can now also be used as a backend for a PeekMessage
6859             frontend version.
6860         * XplatUI.cs: Improved debug output for CreateWindow
6862 2006-01-25  Jackson Harper  <jackson@ximian.com>
6864         * Help.cs: Allow param to be null. Patch by Don Edvalson.
6866 2006-01-24  Jackson Harper  <jackson@ximian.com>
6868         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
6869         when we have a MaxDropItems lower then the selected index.
6871 2006-01-24  Jackson Harper  <jackson@ximian.com>
6873         * Control.cs: Don't allow selection of non visible controls, allow
6874         selection of controls without parents.
6876 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
6878         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
6879         * DataGridDrawingLogic.cs: Add editing row only when is necessary
6881 2006-01-23  Jackson Harper  <jackson@ximian.com>
6883         * UpDownBase.cs: Make the textbox handle all the selection and
6884         tabbing. This fixes tabing to updown controls.
6886 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
6888         * TextBoxBase.cs: fixes exception thown the object was null
6890 2006-01-23  Jackson Harper  <jackson@ximian.com>
6892         * ButtonBase.cs: Just use the base CreateParams. They set
6893         visibility and enabled correctly.
6894         * ComboBox.cs:
6895         * TrackBar.cs:
6896         * MonthCalendar.cs: Lets let the base set as much of the
6897         createparams as possible so we don't have duplicate code all over
6898         the place.
6900 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
6902         * ThemeGtk.cs: Added TrackBar and some experimental code to
6903           get double buffering back
6905 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
6907         * DataGrid.cs: Allows row number set internally higher than the last
6908         when creating a new row. Restores the editing functionality.
6910 2006-01-20  Mike Kestner  <mkestner@novell.com>
6912         * MimeIcon.cs: delay Image creation until the icons are accessed
6913         instead of creating 190 scaled images on GnomeHandler startup.
6915 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
6917         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
6918           first call base before processing the event. Fixes #77279
6920 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
6922         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
6923           that the stride for the GDI bitmap would match the stride of
6924           a DIB or a Cursor.
6926 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
6928         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
6930 2006-01-19  Jackson Harper  <jackson@ximian.com>
6932         * ComboBox.cs: Hookup the text controls keydown event so we get
6933         those when the text control has the focus.
6935 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
6937         * Label.cs: Now using the base events instead of defining new ones;
6938           this allows us to just call the base properties without having to
6939           duplicate all base property logic 
6941 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
6943         * Label.cs: A label by default is not a tabstop (Fixes one of our
6944           failing nunit tests)
6946 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
6948         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
6949         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
6951 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
6953         * Cursor.cs: Reimplemented creating cursor bitmaps without using
6954           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
6955           This fixes #77218
6956         * XplatUIWin32.cs: 
6957           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
6958             constructor creates images that can't be saved. Part of the fix
6959             for #76103
6960           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
6961           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
6962             bug fix for handling window state in forms properly)
6964 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
6966         * ThemeGtk.cs: Simplify ScrollBar drawing
6968 2006-01-18  Jackson Harper  <jackson@ximian.com>
6970         * Splitter.cs: Set the default dock style for the splitter control
6971         in the constructor.
6973 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
6975         * ThemeGtk.cs: Corrected StateType and ShadowType for
6976           gtk_paint_box
6978 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
6980         * Control.cs: Make use of Theme.DoubleBufferingSupported
6981         * ThemeGtk.cs:
6982           - Added drawing for flat style buttons
6983           - Added ScrollBar drawing
6985 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
6987         * ThemeClearlooks.cs: Removed some unneeded code.
6988         * ThemeGtk.cs: First part of ThemeGtk enhancements.
6990 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
6992         * LinkLabel.cs: We need to update the hover drawing when
6993           leaving the control as well.
6995 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
6997         * DataGrid.cs: Clicking on non empty areas in the columns
6998            area was giving an exception
7000 2006-01-17  Jackson Harper  <jackson@ximian.com>
7002         * ThemeWin32Classic.cs:
7003         * ListView.cs: Do not draw/clip the headers when the header style
7004         is None.
7006 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
7008         * DataGrid.cs: Fixes 77260
7009         
7010 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
7012         * DataGrid.cs: Clicking on a column on a empty grid was giving
7013           an exception
7015 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
7017         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
7018           or any keypress will crash the grid.
7020 2006-01-17  Mike Kestner  <mkestner@novell.com>
7022         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
7023         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
7024         invisible/previously-visible items.
7025         [Fixes #76909]
7027 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
7029         * ThemeClearlooks.cs:
7030         - Added CL_Draw_Button method; now other theme controls that are 
7031           not derived from button or do not have a button can draw buttons
7032           too
7033         - Updated ComboBox drawing
7034         - Beautified RadioButton drawing
7035         - Corrected drawing of bottom and left tabs
7036         - Beautified DateTimePicker and MonthCalendar
7037         - Added CPDrawButton and CPDrawRadioButton
7039 2006-01-16  Jackson Harper  <jackson@ximian.com>
7041         * ComboBox.cs: Set the initial value of the scrollbar to the
7042         current index. Reduce the numbers of refreshs and IndexOfs called.
7044 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
7046         * FileDialog.cs: When the file listview is focused hitting the
7047           backspace key moves the fileview to the parent directory
7049 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
7051         * Form.cs: 
7052           - Added RecreateHandle call when changing taskbar visibility to 
7053             trigger reparenting in Win32 driver (Fixes #75719)
7054           - If a window has minimize or maximize buttons, it cannot have
7055             a help button
7056         * XplatUIWin32.cs:
7057           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
7058             the toplevel form with FosterParent (A toolwindow not on the
7059             taskbar) (Fixes #75719)
7060           - Made FosterParent a toolwindow
7062 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
7064         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
7066 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
7068         * ToolTip.cs: If SetToolTip is called from a control and the mouse
7069           is currently over that control, make sure that tooltip_window.Text
7070           gets updated
7072 2006-01-13  Mike Kestner  <mkestner@novell.com>
7074         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
7076 2006-01-13  Jackson Harper  <jackson@ximian.com>
7078         * TreeView.cs: On MS GetNodeAt never actually factors in the X
7079         value passed.  Also redraw the selected node when we recieve
7080         focus, so tabbing between trees works correctly.
7082 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
7084         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
7085           ~/.gconf/%gconf-tree.xml, so use
7086           .gconf/desktop/gnome/interface/%gconf.xml
7088 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
7090         * TextControl.cs: Draw text in gray if control is disabled
7092 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
7094         * TreeView.cs: Draw the focus rectangle outside the highlight, to
7095           make sure it's always visible. Fixes #76680.
7097 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
7099         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
7101 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
7103         * PageSetupDialog.cs: Added.
7104         * PrintDialog.cs: Attributes.
7105         * PrintPreviewControl.cs: Updates.
7106         * PrintPreviewDialog.cs: Updates.
7107         
7108 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
7110         * Control.cs: Undid my selection check fix, since it's not needed
7111         * TextBoxBase.cs:
7112           - Now considering the presence of hscroll/vscroll when sizing
7113             vscroll/hscroll respectively. Fixed bug #77077
7114           - Added Left/Up/Down/Right to IsInputKey list to prevent
7115             ContainerControl from stealing them. This fixes what I broke
7116             with my last checkin.
7118 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
7120         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
7121           I finally understand how the property can be set without a setter :-)
7123 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
7125         * Application.cs:
7126           - Switched RunLoop to use static Message.Create to create a 
7127             Message object
7128           - Added PreProcessMessage call in runloop for keyboard events; this
7129             is part of the fix for #77219, I overlooked this originally in the
7130             MSDN doc for PreProcessMessage
7131         * Control.cs:
7132           - Removed call to PreProcessMessage from handling of keyboard 
7133             messages; it's supposed to be done in the message pump
7134           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
7135             per MSDN documentation.
7136           - IsInputChar: All chars are input chars by default; removed the 
7137             parent calling chain, MS does not document that
7138           - PreProcessMessage: If IsInputChar is true, we want to return false
7139             to allow dispatching of the message
7140           - When selecting the next control, now also check that we're not
7141             selecting ourselves again and therefore return a false positive.
7142         * TextBoxBase.cs:
7143           - Tried to match return values for IsInputKey and ProcessDialogKey
7144             to what MS returns; moved processing of our special keys outside
7145             ProcessDialogKey since MS does not seem to return true on those.
7146           - Moved code that previously was in ProcessDialogKey into new private
7147             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
7148           - Reworked handling of WM_CHAR to not have to duplicate code from
7149             Control.cs anymore, instead we simply call down to base.
7150            
7151 2006-01-12  Jackson Harper  <jackson@ximian.com>
7153         * ComboBox.cs: We always need to refresh the text area when
7154         EndUpdate is called. Fixes the combobox in the file dialog.
7155         * Control.cs: Don't create the creator_thread until the controls
7156         handle is created.  Also in InvokeRequired we check if the
7157         creator_thread is null. This gives the effect of InvokeRequired
7158         returning true if the controls handle is not created yet, and
7159         matches MS.
7161 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
7163         * XplatUI.cs:
7164           - Added StartLoop() driver method. This is used to allow drivers to
7165             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
7166             loop for a particular thread
7167           - Added EndLoop() driver method. This is called once the message
7168             pump for the thread is shut down
7169           - Added SupportsTransparency method to allow the driver to indicate
7170             opacity support for windows
7171         * Form.cs:
7172           - Removed TODO attribute, completed AllowTransparency property
7173           - Added documented logic to Opacity
7174         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
7175           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
7176           versions of CompatibleTextRendering
7177         * X11Structs.cs: Added opacity atom to our atom enumeration
7178         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
7179           of a form might be set before it's reparented by the WM, and we need
7180           the opacity value without calling up to Form)
7181         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
7182           SupportsTransparency() driver methods
7183         * Application.cs: Now calling StartLoop and EndLoop driver methods
7184         * XplatUIX11.cs:
7185           - Added opacity atom registration
7186           - Added StartLoop()/EndLoop() methods. They're empty right now but
7187             will need to get implemented when we switch to a per-thread queue
7188           - Implemented SupportsTransparency() method
7189           - Implemented SetWindowTransparency() method
7190           - Added support for setting the opacity value when a window is
7191             reparented (since the opacity needs to be set on the WM frame)
7192         * XplatUIOSX.cs, XplatUIWin32.cs:
7193           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
7195 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
7197         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
7199 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
7201         * FileDialog.cs: Added ToolTip for MWFFileView
7202         * MimeIcon.cs: Rewrote GnomeHandler.
7203           - Get currently used gnome icon theme from
7204             ($HOME)/.gconf/%gconf-tree.xml
7205           - Make use of inherited icon themes
7206           - Support SVG icon themes like Tango via librsvg
7208 2006-01-12  Miguel de Icaza  <miguel@novell.com>
7210         Revert's Jackson's revert which broke 2.0 builds.   Fix both
7211         builds. 
7212         
7213         * Application.cs: Move the use_compatible_text_rendering outside
7214         the NET_2_0 define.  If we ever need to use the
7215         use_compatible_text_rendering on the individual controls they will
7216         access the variable from the common shared code paths.
7218 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
7220         * XplatUI.cs:
7221           - Added more granular debug options
7222           - Added method to print both window text and id
7223           - Switched debug output to use new Window() debug method
7224           - Added IsEnabled() driver method
7225           - Added EnableWindow() driver method
7226         * Form.cs:
7227           - Removed end_modal; no longer needed, new loop handles termination
7228             via 'closing' variable
7229           - If form is modal, setting DialogResult will now initiate loop
7230             termination via 'closing' variable
7231           - Added support for is_enabled/WS_DISABLED to CreateParams
7232           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
7233             does all the work
7234           - Removed code that's now in RunLoop from ShowDialog()
7235           - Added various documented sanity checks to ShowDialog()
7236           - Added handling of WM_DESTROY message; we set 'closing' on getting
7237             the message to indicate the message pump to terminate
7238           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
7239             send by the Application.ExitThread method. (We send the message
7240             to destroy the window after all other events have been
7241             processed through the queue, instead of destroying the handle 
7242             directly)
7243           - Moved code from Close() method to WM_CLOSE handler; added logic
7244             to only send close-related events if the form is not displayed
7245             modal
7246         * Splitter.cs (..ctor): Fixed typo in resource name
7247         * Control.cs:
7248           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
7249             brush now
7250           - set_Cursor: Now only setting calling into XplatUI if the handle for
7251             the control is already created; this avoids implict handle creation
7252             or crashes if it's not created
7253           - set_Enabled: Now setting the enabled state via the new driver method
7254             instead of just tracking it
7255           - CreateParams: Added logic to set WS_DISABLED based on enabled state
7256           - CreateControl: Reordered event firing and method calls to more
7257             closely fire events in the order MS does. Now setting the
7258             enabled state in the driver when creating the control.
7259           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
7260             match MS order
7261         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
7262           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
7263         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
7264         * Hwnd.cs:
7265           - Added tracking of window enabled state (get_Enabled/set_Enabled)
7266           - Added EnabledHwnd property to easily allow a driver to find the
7267             handle of the first enabled window in the parent chain (this is
7268             used by drivers to pass up input events of disabled windows)
7269         * XplatUIDriver.cs: Added IsEnabled() method
7270         * Application.cs:
7271           - Removed crude and obsolete exiting tracking variable
7272           - Removed internal ModalRun(); replaced by RunLoop()
7273           - Implemented private CloseForms() method to allow closing all 
7274             windows owned by a particular (or all) threads
7275           - Exit() now properly closes all windows without forcing the message
7276             pump to quit
7277           - Removed obsolete InternalExit() method
7278           - Changed Run() methods to use new RunLoop() message pump
7279           - Implemented new RunLoop() method for both modal and non-modal forms
7280         * CommonDialog.cs:
7281           - get_CreateParams: Added setting of WS_DISABLED
7282           - Simplified ShowDialog(); now all the work is done in RunLoop(),
7283             invoked via Form.ShowDialog()
7284         * NativeWindow.cs: We don't remove the window from the collection when
7285           the handle is destroyed; there might still be messages for it in the
7286           queue (mainly the resulting WM_DESTROY); instead it will be removed
7287           when Control calls InvalidateHandle in the WM_DESTROY handler
7288         * XplatUIX11.cs:
7289           - CreateWindow: Added logic to handle the WS_DISABLED window style
7290           - EnableWindow: Implemented based on Hwnd.Enabled
7291           - GetMessage: Reset PostQuitState so the method can be called again
7292           - Implemented support for disabled windows (passing messages to the
7293             first enabled parent) in handling all input messages
7294           - Added optimizations for handling Expose events
7295           - Implemeted new driver method IsEnabled()
7296           - Now always resetting paint pending tracking vars when we start paint
7297           - Re-implemented UpdateWindow via just sending a WM_PAINT message
7298         * XplatUIOSX.cs: Added IsEnabled method stub
7299         * XplatUIWin32.cs: Implemented new IsEnabled() method
7301 2006-01-11  Jackson Harper  <jackson@ximian.com>
7303         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
7304         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
7305         variables a little.
7306         * ColorDialog.cs: Clear out the old form before adding the new
7307         panel.  
7309 2006-01-11  Jackson Harper  <jackson@ximian.com>
7311         * X11Dnd.cs: Make sure to add all the text formats when adding
7312         strings to the data object.
7313         * TreeNodeCollection.cs: When adding to a sorted tree we need to
7314         do some redrawing too.  Also change the UpdateNode to an
7315         UpdateBelow so the newly added node gets painted.
7316         
7317 2006-01-11  Miguel de Icaza  <miguel@novell.com>
7319         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
7320         LinkLabel.cs, PropertyGrid.cs: Implement the
7321         UseCompatibleTextRendering property for 2.x
7323         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
7325 2006-01-11  Jackson Harper  <jackson@ximian.com>
7327         * TreeView.cs: Use the property for setting the selected node so
7328         the correct events get raised.
7329         * TreeNode.cs: Update the tree when the fore/back colours of a
7330         node are set.
7332 2006-01-10  Jackson Harper  <jackson@ximian.com>
7334         * TreeView.cs: Allow setting SelectedNode to null.
7336 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
7338         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
7340 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
7342         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
7344 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
7346         * PrintDialog.cs: Added attributes and set default property values.
7348 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
7350         * PrintControllerWithStatusDialog.cs: 
7351         Added PrintControllerWithStatusDialog.
7353 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
7355         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
7356         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
7358 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
7360         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
7362 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
7364         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
7365         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
7367 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
7369         * MimeIcon.cs: Added internal class SVGUtil.
7371 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
7373         * FileDialog.cs: Don't crash if there are two files with the
7374           same name but different locations.
7376 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
7378         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
7379         dates across multiple month grids. Used to not highlight entire 
7380         month, but does now.
7381         
7382 2006-01-06  Jackson Harper  <jackson@ximian.com>
7384         * MonthCalendar.cs: Removed DoEvents call to prevent a running
7385         message loop. Change timer intervals to numbers that seem more
7386         natural.
7388 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
7390         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
7391           object for location info since screen object is now implemented.
7393 2006-01-05  Jackson Harper  <jackson@ximian.com>
7395         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
7396         * AsyncMethodResult.cs: We no longer use a WeakReference for the
7397         AsyncMethodResult, this is because we ALWAYS want the
7398         ManualResetEvent to get set.
7399         * Control.cs: When disposing use an async invoke to call shutdown
7400         code, so that thigns don't block on the finalizer thread.  Also
7401         check if we even have a message loop before trying to send
7402         messages, if we don't then don't bother sending messages.
7403         - No more weak references for async methods
7404         * XplatUIDriver.cs: No more weak references for async methods.
7406 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
7408         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
7409           returns two FontFamily with the same name
7411 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
7413         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
7414           drawing disabled text. Instead using the ColorGrayText color
7416 2006-01-04  Jackson Harper  <jackson@ximian.com>
7418         * TreeNode.cs: redraw the node when its image index is changed.
7420 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
7422         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
7423           time I checked there are no others like it.
7425 2006-01-04  Jackson Harper  <jackson@ximian.com>
7427         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
7428         this gives the behavoir I was looking for.
7429         * Control.cs: Special case Invoking EventHandlers, this matches MS
7430         and fixes part of bug #76326.
7432 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
7434         * ThemeClearlooks.cs, FileDialog.cs:
7435           - Reflect the latest Theme class changes
7436           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
7437             with DateTime
7438             
7439 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
7441         * Theme.cs: Cache UI resource images and resize them if needed
7443 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
7445         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
7446           is called. This fixes the crash in Nexxia when setting the font
7447           attributes in the chat. [However, RTF needs a look-over to make sure
7448           that all SelectionXXX methods handle the special case that selection
7449           is empty and therefore the change must be applied to all text starting
7450           at the cursor/selection start]
7452 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
7454         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
7455           XplatUIOSX.cs: Added SendMessage and PostMessage methods
7456         * X11Keyboard.cs: Switched to new way of calling PostMessage
7458 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
7460         * Theme.cs: Added theme interface for images to allow the theme to
7461           control what images are used for things like FileDialog, MessageBox
7462           icons, etc.
7463         * MessageBox.cs: Now uses the new Theme icon/image interfaces
7465 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
7467         * FileDialog.cs:
7468           - Removed some dead code
7469           - Opening a recently used file does work now
7470           - Small UI enhancements
7471           - Refactoring
7473 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
7475         * FileDialog.cs: Forgot too add __MonoCS__
7477 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
7479         * FileDialog.cs: We are able to read recently used files now let's
7480           go on and write them.
7482 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
7484         * FileDialog.cs: Breathe some life into "last open"/"recently used"
7485           button
7486         * MimeIcon.cs: Do a check for the top level media type also
7488 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
7490         * ThemeClearlooks.cs:
7491           - Added CPDrawStringDisabled
7492           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
7493             some chars if the text doesn't fit into text_rect
7494           - DrawListViewItem: If View = View.LargeIcon center the image;
7495             rewrote the drawing of ListViewItem.Text if View = 
7496             View.LargeIcon
7498 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
7500         * MimeIcon.cs: Use default KDE icon theme if there is no
7501           "48x48" directory for the current icon theme, fixes #77114
7502         * Mime.cs: Disable not working and actually not used code. 
7503         * ThemeWin32Classic.cs:
7504           - Replace "new SolidBrush" in GetControlBackBrush and
7505             GetControlForeBrush with ResPool.GetSolidBrush
7506           - Changed DrawListViewItem from private to protected virtual
7507         * FileDialog.cs:
7508           - Added form.MaximizeBox = true
7509           - Don't throw an exception if there is a broken symbolic link
7511 2005-12-23  Jackson Harper  <jackson@ximian.com>
7513         * TabControl.cs: Give the panels focus, keyboard navigation is
7514         fixed so this works correctly now.
7515         - We need these key events also.
7516         * ToolBar.cs: Remove some of the poor mans double buffering.
7517         
7518 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
7520         * ComboBox.cs: The internal TextBox now returns the focus.
7522 2005-12-23  Jackson Harper  <jackson@ximian.com>
7524         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
7526 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
7528         * Control.cs: Removed debug code
7529         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
7530           implicit children
7532 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
7534         * Control.cs: When creating the control, update the Z-order after
7535           all it's children are created, too. (Fixes nexxia not showing
7536           picturebox bug)
7538 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
7540         * Control.cs: Do not update the anchoring distances if layout is
7541           suspended, instead do it once layout is resumed
7543 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
7545         * Control.cs: 
7546           - After many hours of debugging, for both Jackson and
7547             myself, it turns out that it helps to set the parent of a control
7548             if you want to actually see it onscreen. In the spirit of that
7549             discovery, we're now setting the parent of the control and
7550             it's children when the control's handle is created. This fix
7551             will make Lutz Roeder's Reflector run happily. 
7552           - now just creating the handle instead of the whole control when
7553             getting a graphics context for the control.
7555 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
7557         * ScrollableControl.cs: When calculating the canvas, don't consider
7558           the scrollbar widths. Instead, predict if horizontal scrollbar
7559           will affect canvas when deciding on vertical display and vice versa.
7561 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
7563         * RichTextBox.cs: Set default RTF font for documents that don't
7564           have a font table (Fixes #77076)
7566 2005-12-22  Jackson Harper  <jackson@ximian.com>
7568         * TextBoxBase.cs: It's difficult to do, but you can have an empty
7569         clipboard. This prevents a NullRef in that case.
7570         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
7571         clipboard. PRIMARY is for the currently selected text only. (We
7572         should implement PRIMARY at some point.
7574 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
7576         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
7577           a Unicode function with a structure that was defined in Ansi way.
7578           This fixes #76942.
7580 2005-12-21  Jackson Harper  <jackson@ximian.com>
7582         * StatusBar.cs: Statusbar handles its fore/back colours on it's
7583         on. Because thats how it rolls. (and this avoids it using ambient
7584         colours).
7585         * ThemeWin32Classic.cs: Use the proper back color for filling.
7586         * Menu.cs: Use the system menu bar color for drawing menu
7587         bars. Using the window back color will bring ambient colours into
7588         the picture.
7590 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
7592         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
7593           Bitmaps were created and not disposed.
7595 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
7597         * Control.cs (CreateControl): Don't do anything if the control is
7598           already created, otherwise we'd fire the OnCreated event more than
7599           once
7601 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
7603         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
7604           will always match. Instead return -1. Fixes #76464.
7606 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
7608         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
7609           neither the beginning nor the end of the line (Fixes bug #76479)
7611 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
7613         * Control.cs:
7614           - ControlNativeWindow.ControlFromHandle(): Now handling situation
7615             where handle is invalid
7616           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
7617             instead of slower linear search
7618         * NativeWindow.cs: Don't remove the window from the hashtable until
7619           after the driver has destroyed it (since the driver might use
7620           Control.FromHandle to lookup the control object
7621         * Hwnd.cs: Added DestroyPending property to track if a window is 
7622           already destroyed as far as the driver is concerned and only hasn't
7623           yet notified the control
7624         * XplatUIX11.cs:
7625           - Activate(): Check if the window is still valid before using the 
7626             handle
7627           - Implemented DestroyChildWindow() method to mark child windows as
7628             destroyed when a window is destroyed. This prevents situations 
7629             where we might call an X method based on queued events for a
7630             window that already has been destroyed but we haven't yet pulled
7631             the destroy method from the queue.
7632           - Added a call to the new DestroyChildWindow() method to the drivers
7633             DestroyWindow code. Also now marking the destroyed window itself
7634             as pending
7636 2005-12-20  Jackson Harper  <jackson@ximian.com>
7638         * StatusBar.cs:
7639         * StatusBarPanel.cs: Don't calculate panel sizes on draw
7640         anymore. Just do them when needed, also track the rects of panels
7641         so that we can optimize refreshing more in the future.
7643 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
7645         * ColorDialog.cs: Fixed focus drawing in small color controls
7647 2005-12-19  Jackson Harper  <jackson@ximian.com>
7649         * InternalWindowManager.cs:
7650         * MdiWindowManager.cs: Cleanup some coordinate system changes so
7651         moving windows works properly.
7653 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
7655         * Control.cs: 
7656           - Removed call to InitLayout() from SetBoundsCore(); doc says
7657             it's only called when a control is added to a container
7658           - Split InitLayout logic, moved to separate UpdateDistances() method
7659             since we need to perform those calculations more often than just
7660             when adding the control to a container. (Needed to fix #77022)
7661           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
7662           - Reduced the OnBindingContextChanged events count, don't send them
7663             unless the control is created, we still aren't totally matching
7664             MS, but I can't quite figure out some of their rules
7666 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
7668         * ThemeClearlooks.cs: Corrected distance between ProgressBar
7669           stripes
7671 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
7673         * ThemeClearlooks.cs:
7674           - Updated ProgressBar drawing
7675           - Corrected drawing of ScrollBars and scroll buttons
7676           - Some temporary fixes for minor pixel artefacts
7678 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
7680         * Control.cs:
7681           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
7682             cause events to be sent in the same order as MS does.
7683           - Added ChangeParent() method to trigger various OnXXXChanged events
7684             that need to be fired when a parent changes (This is a reworking
7685             of the patch from r54254, with the X11 errors fixed)
7686           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
7687             since on MS we get OnLayoutChanged events when calling Clear()
7688           - Changed Enabled property to consider parent state as well, if a
7689             parent is not enabled, the control will not be either
7690           - Changed Parent property to simply call Controls.Add() since that
7691             now does all the work required, this way we avoid code duplication
7692           - Threw in a few OnBindingsContextChanged calls to try and match
7693             when MS sends them. We seem to send a few too many, though.
7694           - Added call to CreateControl when adding the control to a parent.
7695             We were never calling CreateControl. Still needs some work, in
7696             some places we treat HandleCreated and ControlCreated as equal, 
7697             which is wrong
7698           - Removed obsolete commented out code from UpdateZOrder()
7700 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
7702         * ThemeClearlooks.cs: Updated TrackBar drawing.
7704 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
7706         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
7708 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
7710         * FileDialog.cs: Add the Help button and the open readonly
7711           checkbox only if needed
7713 2005-12-16  Jackson Harper  <jackson@ximian.com>
7715         * Control.cs: Make sure we have an active menu before trying to
7716         process commands on it. Prevents menu-less forms from crashing
7717         when Alt is pressed.
7718         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
7719         Dieter Bremes.
7720         * RichTextBox.cs: Expand statement to help out gmcs and fix the
7721         2.0 build.
7723 2005-12-16  Jackson Harper  <jackson@ximian.com>
7725         * InternalWindowManager.cs: Don't translate tool windows screen
7726         coordinates. This fixes windows 'bouncing' around when being moved.
7728 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
7730         * TextBoxBase.cs:
7731           - MaxLength now treats 2^31-1 equal to unlimited length (this is
7732             not quite MS compatible, MS uses that number only for single line
7733             and 2^32-1 for multi-line, but I figure it won't hurt keeping
7734             the limit at 2GB)
7735           - Now enforcing the MaxLength limit when entering characters
7736           - Added argument to internal Paste() method to track if it's called
7737             from programatically or via keyboard, since keyboard driven pastes
7738             need to enforce max-length
7739           - Added logic to Paste to only paste as many chars as MaxLength 
7740             allows
7741         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
7742         * TextControl.cs:
7743           - Added Length property to return number of characters in document
7744           - Added private CharCount property which only tracks actual chars
7745             in the document (no linefeeds) and fires event when CharCount
7746             changes
7747           - Added tracking of character count to all methods that alter it
7748           - Added LengthChanged event to allow applications to subscribe
7749             to any changes to the document
7751 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
7753         * TextBox.cs: 
7754           - Removed local password_char field (moved to TextBoxBase)
7755           - Now setting the document's password var when password is
7756             set
7757         * TextBoxBase.cs:
7758           - Added password_char field (needed here so MultiLine can
7759             access it)
7760           - Added logic to MultiLine property setter to set the document's
7761             variable when password display is allowed
7762           - Removed debug code and made some debug code conditional
7763         * TextControl.cs:
7764           - Added RecalculatePasswordLine() method to handle special password
7765             char only lines
7766           - Added PasswordChar property, also added related tracking vars
7767           - Draw() method now uses local text var for grabbing text to draw,
7768             this var is set to line.text unless we're doing password display,
7769             then it is set to the pre-generated all-password-chars line
7770           - Added calling RecalculatePasswordLine() method for password lines
7772 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
7774         * Hwnd.cs: 
7775           - Added Reparented property to allow tracking of Window Manager
7776             reparenting actions (which affect X/Y calculations of toplevel 
7777             windows)
7778           - Made ToString() print window handles in hex
7779         * XplatUIX11.cs:
7780           - AddConfigureNotify(): Now uses reparented state off Hwnd to
7781             determine if X/Y needs offsetting
7782           - AddConfigureNotify(): Fixed offset calculations
7783           - Now adds ReparentNotify messages into the queue
7784           - Now processes ReparentNotify messages and causes a 
7785             WM_WINDOWPOSCHANGED message to be sent upstream if a window
7786             is reparented (as most likely it's X/Y coordinates are changed
7787             due to that)
7789 2005-12-14  Jackson Harper  <jackson@ximian.com>
7791         * XplatUIX11.cs: Tool windows still need to respek focus.
7793 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
7795         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
7796           have a working release
7798 2005-12-13  Jackson Harper  <jackson@ximian.com>
7800         * Form.cs: Update styles after setting the border style regardless
7801         of whether or not the window is using a window manager.
7803 2005-12-13  Jackson Harper  <jackson@ximian.com>
7805         * Form.cs: We now hook into an internal window manager instead of just an
7806         MDI subsystem, this is so we can have properly behaving tool windows.
7807         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
7808         * InternalWindowManager.cs: New internal class that acts as a
7809         window manager for tool windows and as a base for mdi windows.
7810         * MdiWindowManager.cs: New class that acts as a window manager for
7811         mdi windows.
7813 2005-12-12  Jackson Harper  <jackson@ximian.com>
7815         * Control.cs: Updates so we match behavoir for for implicit
7816         controls. Fixes explosions in MDI.
7818 2005-12-12  Jackson Harper  <jackson@ximian.com>
7820         * Control.cs: Implement Invalidate (Region).
7822 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
7824         * Control.cs: 
7825           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
7826             the same events as MS does. MS fires events for each property 
7827             except, for unknown reasons, Cursor, when the control is reparented. 
7828             I can't seem to totally match add/remove since MS also fires some 
7829             VisibleChanged events, which makes no sense. Consolidated the
7830             parenting code into a separate method so it can be called from
7831             both Add and Remove. set_Parent no longer needs any special logic
7832             as it calls the parent's add method which implicitly fires
7833             all events
7834           - Removed some obsolete code and debug output
7835           - Enabled state is inherited from parents, if this is enabled
7837 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
7839         * Form.cs: Removed commented out code
7841 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
7843         * Control.cs:
7844           - Added internal version of Invoke, with additional argument 
7845             indicating if we're calling it from a Dispose() handler. That
7846             way we can avoid BeginInvoke throwing an exception if we're
7847             calling for an already destroyed window.
7848           - Added a dispose argument to BeginInvokeInternal, and made the
7849             check if a valid window handle chain exists conditional on
7850             it not being a dispose call
7851           - Removed code in DestroyHandle to destroy our children. Since we
7852             now handle the WM_DESTROY message we will catch all our children
7853             being destroyed.
7854           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
7855         * Form.cs:
7856           - Added a field to track the application context of the form.
7857           - No need to set closing variable as response to WM_CLOSE, instead
7858             we destroy the window. We also call PostQuitMessage if the form
7859             has an application context (which makes it the main app form,
7860             which, when closed terminates the app)
7861         * XplatUI.cs:
7862           - Dropped Exit() method, it's naming was confusing
7863           - Added PostQuitMessage() which causes GetMessage to return false
7864             once the message queue is empty
7865         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
7866           PostQuitMessage()
7867         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
7868           no longer a valid XplatUI method, but left it in since it's used
7869           internally. Added empty PostQuitMessage() method.
7870         * MenuAPI.cs: Replaced call to Exit() with call to
7871           PostQuitMessage, even though this is probably no longer needed.
7872         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
7873         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
7874         * Application.cs:
7875           - Replaced call to XplatUI.Exit() with PostQuitMessage()
7876           - Removed old debug code that would call XplatUI for exception
7877             display, enabled standard exception handling (Still not enabled
7878             though, until NativeWindow's ExternalExceptionHandler define
7879             is removed
7880         * NativeWindow.cs:
7881           - Added internal method to allow control to update NativeWindow
7882             after a window has been destroyed
7883           - Added handling of already destroyed windows when calling i
7884             DestroyWindow
7885           - Added removal of handle from list on ReleaseHandle
7886         * XplatUIX11.cs:
7887           - Dropped GetMessageResult var and related code
7888           - Added PostQuitState to field to track if PostQuitMessage has been
7889             called
7890           - Dropped Exit() method
7891           - Added PostQuitMessage() method
7892           - GetMessage now will return false if PostQuitState is set and no
7893             more messages are in the queue.
7894           - Expose handler will no longer generate WM_PAINT messages if we are
7895             in PostQuitState since it's very likely any windows have already
7896             been destroyed, and since Hwnd won't get updated until we have
7897             processed the DestroyNotify we'd be causing X errors.
7898         
7899 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
7901         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
7902           Thanks to Mike for pointing out the err of my ways.
7904 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
7906         * Control.cs(PreProcessMessage): Moved menu handling back, but
7907           after all other key handling, to match MS (who handles Menu in
7908           DefWndProc)
7909         * Menu.cs (WndProc): Removed my brainfart
7911 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
7913         * Control.cs(PreProcessMessage): Removed special menu handling 
7914         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
7916 2005-12-07  Mike Kestner  <mkestner@novell.com>
7918         * Control.cs : special case SYSKEYUP so that we can adjust keynav
7919         state according in tracker.
7920         * Menu.cs : promote tracker field to base class and provide a tracker
7921         lookup capability.  Add/Remove shortcuts dynamically if the top menu
7922         has a tracker. Unparent items that are removed from the collection.
7923         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
7924         * Theme*.cs: add always_show_hotkeys field to support configurability
7925         of mnemonic display.  win32 doesn't show mnemonics until Alt is
7926         pressed.
7928 2005-12-07  Jackson Harper  <jackson@ximian.com>
7930         * MdiChildContext.cs: Use Control.ResetCursor.
7931         * Control.cs: ResetCursor needs to set the property so that the
7932         correct XplatUI call gets made.
7934 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
7936         * Control.cs: More fixes to make our key events match MS. We
7937           were not setting the modifier state on KeyData, and we were
7938           not generating any events when Alt was pressed with a key
7939           since handling of WM_SYSxxx was missing for the OnKey methods.
7941 2005-12-07  Jackson Harper  <jackson@ximian.com>
7943         * MdiChildContext.cs: reenable the sizing code.
7944         - When the mouse leaves a window reset its cursor.
7946 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
7948         * ThemeClearlooks.cs: Reflect latest Hwnd changes
7950 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
7952         * Hwnd.cs: Now using the theme 3d bordersize to calculate
7953           widths of Fixed3D borders
7955 2005-12-07  Jackson Harper  <jackson@ximian.com>
7957         * MdiClient.cs: Fix warnings. Earn Mike's love.
7959 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
7961         * ThemeClearlooks.cs:
7962           - Adjusted mouse over button color
7963           - Added first parts of CheckBox drawing
7964           - Added correct color for selected text background
7965           - Fixed ComboBox drawing
7966           - Added CPDrawBorder3D and CPDrawBorder
7968 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
7970         * XplatUIX11.cs: Added call to XBell for AudibleAlert
7972 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
7974         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
7975           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
7976           alert users via sound. We could add an enum arg with different
7977           types of alerts in the future
7979 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
7981         * Control.cs: Fix behaviour problems pointed out by Mike
7983 2005-12-05  Mike Kestner  <mkestner@novell.com>
7985         * StatusBarPanel.cs: add Invalidate method and hook it into all the
7986         prop setters.  Calls parent.Refresh for now, but could be maybe be
7987         optimized with an internal method on StatusBar at some point.
7988         [Fixes #76513]
7990 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
7992         * RichTextBox.cs: Implemented get_SelectionColor
7994 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
7996         * ThemeClearlooks.cs:
7997           - Removed dead code
7998           - Draw black button border only if button is Form.AcceptButton
7999           - Draw correct button color for pressed RadioButton if the mouse 
8000             has entered the button
8001           - Updated ProgressBar drawing!
8002           - Updated CPDrawSizeGrip drawing
8003           - Updated StatusBarPanel drawing
8005 2005-12-05  Mike Kestner  <mkestner@novell.com>
8007         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
8008         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
8010 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
8012         * ThemeClearlooks.cs: Initial check-in, activate with
8013           export MONO_THEME=clearlooks
8014         * ThemeEngine.cs: Added ThemeClearlooks
8016 2005-12-03  Mike Kestner  <mkestner@novell.com>
8018         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
8019         [Fixes #76897]
8021 2005-12-02  Jackson Harper  <jackson@ximian.com>
8023         * Form.cs: If the child form has no menu the default main menu is
8024         used as the active menu.
8026 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
8028         * ListBox.cs: Check if any items exist before trying to resolve 
8029           coordinates into items
8031 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
8033         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
8034           as the second color for the background hatch
8036 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
8038         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
8039         * RichTextBox.cs: FormatText position arguments are 1-based, now making
8040           sure that what we pass to FormatText is always 1-based. Fixes #76885
8042 2005-11-29  Miguel de Icaza  <miguel@novell.com>
8044         * NumericUpDown.cs (EndInit): When we are done initializing,
8045         reflect any updates on the UI.
8047 2005-12-02  Jackson Harper  <jackson@ximian.com>
8049         * ImplicitHScrollBar.cs:
8050         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
8051         their container controls.
8052         * TreeView.cs: Use the new implicit scrollbars.
8054 2005-12-02  Jackson Harper  <jackson@ximian.com>
8056         * TreeView.cs: Make top_node internal so the TreeNodeCollections
8057         can play with it.
8058         * TreeNodeCollection.cs: If we remove the topnode we need to
8059         update topnode to the next node in line.
8060         - When clearing nodes go through the same process as removing
8061         them, so they get depareneted and checked if they are top node.
8063 2005-12-01  Jackson Harper  <jackson@ximian.com>
8065         * TreeView.cs: When imagelists are used the image area is
8066         selectable as well as the text.
8067         - If there are no selected nodes select the first one.
8068         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
8069         so don't do it more then we need to.
8071 2005-12-01  Jackson Harper  <jackson@ximian.com>
8073         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
8074         that arrows can be scaled.
8076 2005-12-01  Jackson Harper  <jackson@ximian.com>
8078         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
8079         fail. Patch by Dieter Bremes
8081 2005-11-30  Jackson Harper  <jackson@ximian.com>
8083         * Form.cs: Property is 2.0 only
8084         * PrintDialog.cs: Signature fix.
8086 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
8088         * TextControl.cs: 
8089           - No longer artificially moves text 2 pixels down (now that we have
8090             borders this is no longer needed)
8091           - Added calcs for left, hanging and right indent
8093 2005-11-23  Mike Kestner  <mkestner@novell.com>
8095         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
8097 2005-11-30  Jackson Harper  <jackson@ximian.com>
8099         * MdiChildContext.cs: Set the cloned menus forms, as these don't
8100         get cloned as part of CloneMenu ().
8101         * Menu.cs: Make sure the parent of the items get set correctly
8102         when they are added.  And the owners are notified of the changes.
8103         * Form.cs: Create an ActiveMenu property, so that when MDI is used
8104         we can change the menu being displayed/handled by the form without
8105         changing the menu assosciated with the form.
8106         - Don't let Mdi children draw/handle menus.
8107         
8108 2005-11-30  Jackson Harper  <jackson@ximian.com>
8110         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
8111         a MenuChanged event. Just to make the API a little more
8112         consistent.
8113         * MainMenu.cs:
8114         * MenuItem.cs: Use the new OnMenuChanged
8115         * MdiChildContext.cs: Handle menu merging.
8116         * Form.cs: Implement MergedMenu.
8117         
8118 2005-11-30  Jackson Harper  <jackson@ximian.com>
8120         * Menu.cs: We were misusing Add. Add goes behind the specified
8121         index according to the docs, and does not replace the specified
8122         index. So I added an Insert method.
8124 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
8126         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
8127           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
8128           is for Jackson
8129         * RichTextBox.cs: Added calls to base for DnD events
8131 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
8133         * TextControl.cs:
8134           - Fixed drag-selection related crash; style fixes
8135           - Implemented undo class
8136             o Implemented method to capture document state for specified
8137               range in document tree
8138             o Implemented method to restore captured document state
8139             o Implemented cursor tracking
8140             o Implemented basic undo stack
8141           - Added undo cursor tracking to methods altering cursor location
8142           - Added undo tracking to selection deletion (still missing
8143             other text-altering hookups)
8144         * RichTextBox.cs:
8145           - Added SelectionLength property
8146           - Implemented CanPaste()
8147           - Implemented Paste()
8148           - Added missing protected methods
8149           - Fixed RTF->Document conversion; now uses font index 0 and color 
8150             index 0 as the default font for the parsed text
8151           - Fixed RTF<->Document font size translation
8152           - Fixed RTF generation, now properly handles cross-tag boundaries
8153             for single line selection
8154           - No longer always appends blank line to generated RTF
8155           - Removed TODOs
8156           - Added missing attributes
8157           - Hooked up undo-related methods
8158         * TextBoxBase.cs:
8159           - Implemented Copy()
8160           - Implemented Paste()
8161           - Implemented Cut()
8162           - Fixed caret mis-behaviour on backspace across line-boundaries
8164 2005-11-29  Jackson Harper  <jackson@ximian.com>
8166         * MdiClient.cs: Add a method for activating mdi children. Very
8167         basic right now. I imagine someday it might need more girth.
8168         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
8169         children windows names are added to the menu item.
8170         * ThemeWin32Classic.cs: Draw the arrow if the item is an
8171         mdilist. This happens regardless of whether or not there are any
8172         mdi windows to see in the list, and according to my tests happens
8173         before the items are even added. Also happens if there isn't even
8174         an mdi client to get windows from.
8176 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
8178         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
8179         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
8181 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
8183         * DataGridTableStyle.cs:
8184           - Create always the styles for the missing columns even if they are
8185             provided by the user (not default table style)
8186         * DataGrid.cs:
8187           - Fixes bug 76770
8188           - Fixes SetDataBinding (always re-attach source)
8189           - Fixes SetNewDataSource (only clear styles if they are not for 
8190             this source)
8191          -  Expands OnTableStylesCollectionChanged to handle style refresh 
8192             and remove properly
8194 2005-11-29  Jackson Harper  <jackson@ximian.com>
8196         * FileDialog.cs: Implement missing bits, remove some dead
8197         code.
8198         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
8199         creation of the panel so that the options set on the dialog are
8200         seen when the panel is created.
8201         * TreeView.cs: raise a click when items are clicked.
8202         
8203 2005-11-29  Jackson Harper  <jackson@ximian.com>
8205         * MdiClient.cs: Pass some signature methods through to base.
8207 2005-11-28  Jackson Harper  <jackson@ximian.com>
8209         * ListView.cs: Raise the click event when items are clicked.
8211 2005-11-28  Jackson Harper  <jackson@ximian.com>
8213         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
8214         a nullref.
8216 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
8218         * ThemeNice.cs: - Removed 1 pixel bitmaps
8219           - Use SmoothingMode.AntiAlias where it makes sense
8220             (ScrollButton arrow for example)
8221           - Enhanced Button focus drawing
8222           - Fixed ComboBox drawing (no artefacts anymore, focus
8223             rectangle is back again, reduced size of ComboButton, etc.)
8224           - Fixed RadioButton focus drawing for Appearence.Button
8225           - Slight ScrollButton redesign
8226           - Some LinearGradientBrush size fixes
8227           - GroupBoxes have now rounded edges
8228           - Fixed StatusBar drawing
8230 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
8232         * ThemeNice.cs: - Remove dead code
8233           - use correct background colors for menus, etc.
8234           - Fake pixel drawing with 1 pixel bitmaps
8236 2005-11-24  Jackson Harper  <jackson@ximian.com>
8238         * MdiClient.cs: Size the scrollbars when resizing the window.
8239         - Resize the maximized windows when the client is resized
8240         * Form.cs: Make the child context available
8241         
8242 2005-11-23  Jackson Harper  <jackson@ximian.com>
8244         * MdiChildContext.cs: Don't size windows if they are maximized.
8246 2005-11-23  Mike Kestner  <mkestner@novell.com>
8248         * ContextMenu.cs: use MenuTracker.
8249         * Control.cs: remove menu handle usage.
8250         * Form.cs: remove menu handle usage.
8251         * Hwnd.cs: remove menu handle usage.
8252         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
8253         motion and clicks to the new Tracker handlers.
8254         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
8255         and handle usage.
8256         * MenuAPI.cs: refactored to combine popup and menubar event handling.
8257         Killed the MENU and MENUITEM data types and associated collections
8258         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
8259         MenuTracker class that exposes the leftovers from the old MenuAPI
8260         static methods. Restructured Capture handling so that only one grab is
8261         done for the entire menu hierarchy instead of handing off grabs to
8262         submenus. Tracker now has an invisible control to Capture when active.
8263         * MenuItem.cs: add sizing accessors, kill Create
8264         and handle usage.
8265         * Theme.cs: remove menu handle and MENU(ITEM) usage.
8266         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
8267         MENU(ITEM). remove menu handle usage, use Menu directly.
8268         * XplatUIDriver.cs: remove menu handle usage.
8269         * XplatUIOSX.cs: remove menu handle usage.
8270         * XplatUIWin32.cs: remove menu handle usage.
8271         * XplatUIX11.cs: remove menu handle usage.
8273 2005-11-22  Jackson Harper  <jackson@ximian.com>
8275         * Hwnd.cs: Don't compute the menu size for
8276         DefaultClientRectangle.
8277         - Reenable menu sizes being computed for GetClienRectangle.
8278         * Form.cs: Remove comment of trechery
8279         
8280 2005-11-22  Jackson Harper  <jackson@ximian.com>
8282         * Hwnd.cs: The adjustments for the menu bar are made when it is
8283         attached to the form.
8285 2005-11-19  Jackson Harper  <jackson@ximian.com>
8287         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
8288         (just like on windows).
8290 2005-11-19  Jackson Harper  <jackson@ximian.com>
8292         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
8293         use real buttons anymore because they are in non client area. The
8294         one TODO here is that I need to somehow invalidate a section of
8295         the non client area.
8297 2005-11-18  Jackson Harper  <jackson@ximian.com>
8299         * Control.cs: Put the enum check back in now that MDI doesnt have
8300         to use this to set border styles.
8301         * Form.cs: Only set mdi child windows borders if the handle has
8302         been created.
8303         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
8304         this directly on to the driver.
8305         - Get the move start position before adjusting for the titlebar
8306         height, this fixes the windows "skipping" when they are first
8307         moved.
8309 2005-11-18  Jackson Harper  <jackson@ximian.com>
8311         * XplatUIX11.cs: Just compute the mdi borders separately as they
8312         don't totally match up with normal form borders.
8314 2005-11-18  Jackson Harper  <jackson@ximian.com>
8316         * Control.cs: Set WS_ styles for borders, so that the driver does
8317         not have to retrieve the control instance to figure out what kind
8318         of borders it should have.
8319         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
8320         driver can know its an mdi child easily.
8321         * XplatUIX11.cs: Get the border styles and whether the window is
8322         MDI from the Styles and ExStyles params instead of having to get a
8323         control. This prevents a chicken and egg problem.       
8325 2005-11-18  Jackson Harper  <jackson@ximian.com>
8327         * MdiClient.cs: Fix typo so scrollbars show up correctly.
8329 2005-11-18  Jackson Harper  <jackson@ximian.com>
8331         * MdiClient.cs: Calculate when to add and remove scrollbars
8332         correctly.
8333         * MdiChildContext.cs: Adjust the y position to take the titlebar
8334         into account.
8335         - No height for FormBorderStyle.None
8337 2005-11-18  Jackson Harper  <jackson@ximian.com>
8339         * Control.cs: Allow non enum values to be used for
8340         InternalBorderStyle.  MDI does this to set a special border style.
8341         - New utility methods for converting points to/from client coords
8342         - Add the newly created control to the Controls collection before
8343         updating its style. This way UpdateStyle can walk the control
8344         heirarchy to find the control if needed.
8345         so I don't need to create a new Point object all the time.
8346         * Form.cs: Let MDI windows handle their border styles.
8347         - Set styles on MDI windows so the correct title style is derived.
8348         * MdiChildContext.cs: Move all the painting and window handling
8349         into the non client area.
8350         - Use correct sizing and put correct buttons on frames based on
8351         the FormBorderStyle.
8352         - Notify the mdi client about scrolling
8353         - Need to handle the buttons ourselves now, because they are all
8354         in non client areas and we can't add controls there.
8355         * MdiClient.cs: Halfway to scrolling, this implementation is
8356         somewhat broken though, we need to check to make sure other
8357         windows aren't causing scrolling before removing the bars. Also
8358         the bars need to be drawn on top, maybe I can switch implicit
8359         controls to be on top.
8360         * Hwnd.cs: caption_height and tool_caption_height are now
8361         properties of an hwnd, this way they can be set by the driver
8362         based on the type of window they are.  In X11 the window manager
8363         handles the decorations so caption_height is zero unless its an
8364         MDI window.
8365         - Add 3 pixel borders for MDI windows (0xFFFF).
8366         - Get rid of some code duplication, have DefaultClientRectanle
8367         just call GetClientRectangle.
8368         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
8369         Hwnd now.
8370         - Set border styles differently for mdi windows.
8371         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
8372         Hwnd now.
8373         
8374 2005-11-15  Mike Kestner  <mkestner@novell.com>
8376         * Menu.cs: when adding an item to the collection, if item is already 
8377         parented, remove it from the parent.
8379 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
8381         * X11DesktopColors.cs: Added KDE support
8383 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
8385         * XplatUIWin32.cs: 
8386           - Clipboard methods now can translate Rtf format
8387           - No longer removes clipboard contents whenever a new format is added
8388             to allow placing multiple formats on the clipboard
8389         * Clipboard.cs: Clipboard now supports getting a IDataObject and
8390           will place all formats contained in it onto the clipboard. Also
8391           now cleans the clipboard before placing a new object onto it
8392         * RichTextBox.cs:
8393           - Implemented set_Rtf
8394           - Implemented set_SelectedRtf
8395           - Created InsertRTFFromStream() method to allow single code base
8396             for all properties and methods that insert RTF into document
8397           - Removed debug output
8398         * TextControl.cs:
8399           - Fixed Delete(int) to fix up line numbers
8400           - Fixed ReplaceSelection to combine start and end line
8401           - Fixed serious DeleteChars bug that would leave the document tree
8402             broken
8403           - Improved DumpTree with several logic checks to detect broken
8404             document trees
8405           - Removed debug lines
8406           - Fixed Caret.WordForward/WordBack moving code, now always also 
8407             updates caret.tag (fixes crash when word-selecting across tag
8408             boundaries via keyboard)
8409           - Added Insert() method for inserting multiline text into documents
8410           - Fixed DeleteChars() calculation errors that would cause a broken
8411             tag chain with multiple tag lines
8412           - DeleteChars() no longer crashes on multi-tag lines if not all tags
8413           - Split() no longer moves caret if split is at caret location
8414           - ReplaceSelection() now updates the cursor and re-displays it
8415           - ReplaceSelection() now uses new Insert() method to avoid code
8416             duplication
8417           - FormatText() can now handle formatting partial lines
8418         * TextBoxBase.cs:
8419           - Append now uses new TextControl.Insert() method (this avoids 
8420             duplicate code)
8421           - Implemented Ctrl-X (Cut) (
8422           - Implemented Ctrl-C (Copy)
8423           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
8424             regeneration when pasting text; roundtripping Copy&Paste within
8425             edit control still fails due to some calculation bugs in GenerateRTF)
8426           - The Delete key will now remove the current selection if it is visible
8427         * TextBox.cs: Removed debug lines
8428         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
8429           driver to be initialized and can't therefore be done via a static ctor)
8431 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
8433         * TextControl.cs: Added backend code for finding char arrays and strings
8434         * TextBoxBase.cs:
8435           - Added mouse wheel scroll support
8436           - Added support for VScroll and HScroll events
8437         * RichTextBox.cs:
8438           - Implemented all seven Find() variants
8439           - Implemented GetCharFromPosition()
8440           - Implemented GetCharIndexFromPosition()
8441           - Implemented GetLineFromIndex()
8442           - Implemented GetPositionFromCharIndex();
8443           - Implemented SaveFile for PlainText and UnicodeText
8444           - Fixed set_Font, now setting a new font applies that font to
8445             the whole document
8446           - Implemented generic Document to RTF converter
8447           - Implemented SaveFile for RichText format (still missing unicode
8448             conversion for non-ansi chars)
8449           - Implemented get_Rtf
8450           - Implemented get_SelectedRtf
8452 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
8454         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
8455           to allow any captures to be released before triggering OnClick. This
8456           way a click handler may capture the mouse without interference.
8457         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
8458           This way we send them even though X may not allow a grab (if the window
8459           isn't visible, for example)
8461 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
8463         * DataGridViewRowEventArgs.cs: DataGridView implementation
8464         * DataGridViewElement.cs: DataGridView implementation
8465         * DataGridViewComboBoxCell.cs: DataGridView implementation
8466         * DataGridViewDataErrorContexts.cs: DataGridView implementation
8467         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
8468         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
8469         * ImageLayout.cs: DataGridView implementation
8470         * DataGridViewComboBoxColumn.cs: DataGridView implementation
8471         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
8472         * DataGridViewSelectionMode.cs: DataGridView implementation
8473         * IDataGridViewEditingControl.cs: DataGridView implementation
8474         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
8475         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
8476         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
8477         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
8478         * DataGridViewColumnSortMode.cs: DataGridView implementation
8479         * DataGridView.cs: DataGridView implementation
8480         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
8481         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
8482         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
8483         * Padding.cs: DataGridView implementation
8484         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
8485         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
8486         * DataGridViewRowEventHandler.cs: DataGridView implementation
8487         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
8488         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
8489         * DataGridViewButtonCell.cs: DataGridView implementation
8490         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
8491         * DataGridViewEditMode.cs: DataGridView implementation
8492         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
8493         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
8494         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
8495         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
8496         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
8497         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
8498         * DataGridViewCellEventHandler.cs: DataGridView implementation
8499         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
8500         * DataGridViewCellStyleConverter.cs: DataGridView implementation
8501         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
8502         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
8503         * DataGridViewColumnEventArgs.cs: DataGridView implementation
8504         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
8505         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
8506         * QuestionEventArgs.cs: DataGridView implementation
8507         * IDataGridViewEditingCell.cs: DataGridView implementation
8508         * DataGridViewTriState.cs: DataGridView implementation
8509         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
8510         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
8511         * DataGridViewColumnCollection.cs: DataGridView implementation
8512         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
8513         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
8514         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
8515         * DataGridViewColumn.cs: DataGridView implementation
8516         * DataGridViewCellBorderStyle.cs: DataGridView implementation
8517         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
8518         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
8519         * DataGridViewRow.cs: DataGridView implementation
8520         * DataGridViewImageCellLayout.cs: DataGridView implementation
8521         * DataGridViewImageCell.cs: DataGridView implementation
8522         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
8523         * DataGridViewCheckBoxCell.cs: DataGridView implementation
8524         * DataGridViewHeaderCell.cs: DataGridView implementation
8525         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
8526         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
8527         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
8528         * DataGridViewTextBoxColumn.cs: DataGridView implementation
8529         * QuestionEventHandler.cs: DataGridView implementation
8530         * DataGridViewCellStyleScopes.cs: DataGridView implementation
8531         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
8532         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
8533         * DataGridViewCell.cs: DataGridView implementation
8534         * DataGridViewCellEventArgs.cs: DataGridView implementation
8535         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
8536         * DataGridViewCellStyle.cs: DataGridView implementation
8537         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
8538         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
8539         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
8540         * TextFormatFlags.cs: DataGridView implementation
8541         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
8542         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
8543         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
8544         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
8545         * DataGridViewButtonColumn.cs: DataGridView implementation
8546         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
8547         * HandledMouseEventArgs.cs: DataGridView implementation
8548         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
8549         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
8550         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
8551         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
8552         * DataGridViewRowCollection.cs: DataGridView implementation
8553         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
8554         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
8555         * DataGridViewHitTestType.cs: DataGridView implementation
8556         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
8557         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
8558         * DataGridViewColumnEventHandler.cs: DataGridView implementation
8559         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
8560         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
8561         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
8562         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
8563         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
8564         * DataGridViewContentAlignment.cs: DataGridView implementation
8565         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
8566         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
8567         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
8568         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
8569         * DataGridViewPaintParts.cs: DataGridView implementation
8570         * DataGridViewCellCollection.cs: DataGridView implementation
8571         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
8572         * DataGridViewImageColumn.cs: DataGridView implementation
8573         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
8574         * DataGridViewElementStates.cs: DataGridView implementation
8575         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
8576         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
8577         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
8578         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
8579         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
8580         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
8581         * DataGridViewRowHeaderCell.cs: DataGridView implementation
8582         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
8583         * DataGridViewTextBoxCell.cs: DataGridView implementation
8584         * DataGridViewBand.cs: DataGridView implementation
8585         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
8586         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
8587         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
8588         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
8589         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
8590         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
8591         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
8592         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
8593         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
8594         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
8595         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
8597 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
8599         * ThemeWin32Classic.cs: 
8600           - Draw the outside focus rectangle around buttons
8601           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
8602             doesn't use end caps for every dash of a line anymore. This
8603             workaround ignores the forecolor.
8605 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
8607         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
8608           endian safe.
8610 2005-11-07  Jackson Harper  <jackson@ximian.com>
8612         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
8614 2005-11-07  Jackson Harper  <jackson@ximian.com>
8616         * ScrollableControl.cs: Calculate the maximum and change vars
8617         (more) correctly so that scrollbars appear as a sensible size.
8619 2005-11-04  Jackson Harper  <jackson@ximian.com>
8621         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
8622         collection.
8623         * TreeView.cs: When the tree is sorted null out the top_node so
8624         that it is recalculated.
8625         - Use dotted lines instead of dashed lines to match MS better.
8627 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
8629         * ListView.cs: 
8630           - Implements key search for items. Useful when browsing files with FileDialog
8631           - When changing view mode or when clear the items reset scrollbar positions
8633 2005-11-04  Jackson Harper  <jackson@ximian.com>
8635         * CurrencyManager.cs: Implement the MetaDataChanged event, the
8636         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
8637         as to what the method may do as there is no real way of creating a
8638         derived CurrencyManager and calling the method. 
8640 2005-11-03  Jackson Harper  <jackson@ximian.com>
8642         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
8643         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
8644         method which seems to just be used internally to refresh the tabs.
8646 2005-11-03  Jackson Harper  <jackson@ximian.com>
8648         * TabControl.cs: Implement the remove method. Fix some broken
8649         comments.
8651 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
8653         * DateTimePicker.cs:
8654           - Added missing DateTimePickerAccessibleObject class
8655           - Added missing events
8656           - Added OnFontChanged method
8657         * Form.cs: Added missing attributes
8658         * TreeView.cs: Added missing attributes
8660 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
8662         * GridItemCollection.cs: Fix signatures
8664 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
8666         * XplatUI.cs: Updated build rev/date
8667         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
8668           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
8669         * Application.cs: Trigger context-specific ExitThread events
8671 2005-11-03  Jackson Harper  <jackson@ximian.com>
8673         * Menu.cs:
8674         * MainMenu.cs:
8675         * GridTableStylesCollection.cs:
8676         * Timer.cs:
8677         * TabPage.cs:
8678         * HelpProvider.cs:
8679         * StatusBar.cs:
8680         * MonthCalendar.cs: Signature fixes
8682 2005-11-03  Jackson Harper  <jackson@ximian.com>
8684         * TreeNodeCollection.cs: Remove should not be virtual.
8685         * TreeView.cs: Implement the last of the missing methods.
8687 2005-11-03  Jackson Harper  <jackson@ximian.com>
8689         * TreeNodeConverter.cs: Implement to get off my class-status back.
8691 2005-11-03  Jackson Harper  <jackson@ximian.com>
8693         * TreeView.cs: Hookup the bits for drag and drop.
8694         * TreeNode.cs: Don't cache the tree_view or index anymore, now
8695         that nodes can be moved from tree to tree easily this just causes
8696         all sorts of problems.
8697         * TreeNodeCollection: Don't need to give treenodes an index and
8698         treeview anymore when they are added, these are computed on the
8699         fly. Also make sure to remove a node before its added.
8701 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
8703         * TextControl.cs:
8704           - Added CaretSelection enum
8705           - Added comparison methods to Marker struct, makes selection code
8706             more readable
8707           - Added SelectionStart and SelectionEnd as 'moveable' location for
8708             the CaretDirection enum and handler
8709           - Added selection_prev variable to track optimized invalidation for
8710             word and line selection
8711           - Added SelectionVisible property (returns true if there is a valid 
8712             selection)
8713           - Switched CaretHasFocus to only display the caret if there is no
8714             visible selection
8715           - Avoiding StringBuilder.ToString to retrieve a single char, instead
8716             using the direct character index; should be much faster
8717           - Added various conditional debug statements
8718           - Fixed invalidation calculation for selection ranges
8719           - Added ExpandSelection() method to support word and line selection
8720           - Switched SetSelectionToCaret to use new Marker compare overloads
8721           - Added central IsWordSeparator() method to determine word 
8722             separators/whitespace and FindWordSeparator() to streamline common
8723             usage of IsWordSeparator()
8724         * TextBoxBase.cs:
8725           - Removed unneeded grabbed variable, it was just mirroring
8726             Control.Capture
8727           - No longer firing OnTextChanged event when Text setter is called,
8728             since the base will fire the event for us
8729           - Added handling of Ctrl-Up/Down selection
8730           - Added handling of Shift-Cursorkey selection
8731           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
8732             words
8733           - Added handling of Shift and Ctrl-Shift-Home/End selection
8734           - Removed some debug output
8735           - Added handling for single/double/tripple-click to place caret/
8736             select word/select line respectively (Fixes bug #76031)
8737           - Added support for drag expansion of word/line selection
8738         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
8739           current selection
8741 2005-11-02  Jackson Harper  <jackson@ximian.com>
8743         * X11Dnd.cs: If the drag is going to and from a MWF window just
8744         copy the data instead of sending it out through the X Selection
8745         mechanism.
8747 2005-11-02  Jackson Harper  <jackson@ximian.com>
8749         * X11Dnd.cs:
8750         * XplatUIX11.cs: When in a drag we don't want motion notify
8751         messages to get passed on to the other controls. This prevents
8752         mouse move messages from showing up in the drag source.
8754 2005-11-02  Jackson Harper  <jackson@ximian.com>
8756         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
8757         the correct button is release to end a drag.
8758         * XplatUIX11.cs: Make the button state internal so the drag system
8759         can access it.  Dragging needs to know about all button releases,
8760         not just left button.
8762 2005-11-02  Miguel de Icaza  <miguel@novell.com>
8764         * Form.cs (Icon): If the icon is null, reset the icon to the
8765         default value. 
8767         * Cursor.cs: When writing the AND-mask bitmap do not include the
8768         number of colors, but hardcode those to two (black and white),
8769         fixes the loading of color cursors (Paint Dot Net).
8771         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
8772         turn off autoscaling.
8774         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
8776 2005-11-02  Jackson Harper  <jackson@ximian.com>
8778         * X11Dnd.cs: Make sure to send a status message if the pointer
8779         enters a control that can not accept a drop, otherwise the cursor
8780         isn't updated correctly. Also tried to compress the lines of code
8781         a bit.
8783 2005-11-02  Jackson Harper  <jackson@ximian.com>
8785         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
8786         set actions correctly.  This isn't perfect as XDND and win32 have
8787         some differences on how you allow actions. I'll clear this up by
8788         adding a path for drag from MWF to MWF windows.
8789         * XplatUIX11.cs: Hook into the dnd system.
8791 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
8793         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
8794         previously shown but they are no longer need it. Very obvious when 
8795         browsing files with FileDialog.
8797 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
8799         * Control.cs: We always need to call OnPaintBackground. We pretty much
8800           ignore AllPaintingInWmPaint and always do the painting there, whether 
8801           it's set or not, since we always ignore the WM_ERASEBKGND message 
8802           (which we don't generate on X11). This fixes #76616.
8803         * Panel.cs: Removed unneeded background painting. This happens properly
8804           in Control.cs already
8806 2005-10-31  Mike Kestner  <mkestner@novell.com>
8808         * Menu.cs: Add items to collection before setting their index.
8809         * MenuItem.cs : add range checking with ArgumentException like MS.
8810         [Fixes #76510]
8812 2005-10-31  Jackson Harper  <jackson@ximian.com>
8814         * ListBox.cs: Invalidate if the area is visible at all not just
8815         contained in the visible rect. Fixes unselection of semi visible
8816         items.
8818 2005-10-31  Jackson Harper  <jackson@ximian.com>
8820         * Control.cs: Consistently name the dnd methods. Make them
8821         internal so we can override them to match some MS behavoir
8822         internally.
8823         * Win32DnD.cs: Use the new consistent names.
8825 2005-10-31  Jackson Harper  <jackson@ximian.com>
8827         * TreeView.cs: Don't draw the selected node when we lose focus.
8829 2005-10-31  Jackson Harper  <jackson@ximian.com>
8831         * X11Dnd.cs: We still need to reset the state even though a full
8832         reset isn't being done, otherwise status's still get sent all over
8833         the place.
8835 2005-10-31  Jackson Harper  <jackson@ximian.com>
8837         * Control.cs: Make the dnd_aware flag internal so the dnd
8838         subsystem can check it. Catch exceptions thrown in dnd handlers to
8839         match MS behavoir.
8840         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
8841         * X11Dnd.cs: Handle null data in the converters. Set the XDND
8842         version when sending a XdndEnter. Use the control/hwnd dnd_aware
8843         flags to reduce the number of dnd enters/status's sent.
8845 2005-10-31  Jackson Harper  <jackson@ximian.com>
8847         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
8849 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
8851         * PictureBox.cs: Fixes 76512
8853 2005-10-28  Jackson Harper  <jackson@ximian.com>
8855         * X11Dnd.cs: Early implementation to support winforms being a drag
8856         source for data on X11. Also restructured the converters so they
8857         can go both ways now.
8858         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
8859         
8860 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
8862         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
8863           clipboard requests
8865 2005-10-27  Jackson Harper  <jackson@ximian.com>
8867         * TreeNode.cs: Implement serialization so my DnD examples will work.
8869 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
8871         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
8872           TreeView.cs: Don't dispose objects that are not owned.
8873           
8874 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
8876         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
8877           should retrieve the current cursor and report that, but XplatUI
8878           doesn't (yet) have an interface for that (and I'm not sure I even
8879           can, on X11)
8880         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
8881           until any message loop processing is done (and the WM_SETCURSOR
8882           replaces the cursor to the proper one)
8883         * XplatUIX11.cs: 
8884           - Fixed override behaviour, we can't set the cursor globally on X11, 
8885             just for our windows.
8886           - Invalidating the System.Drawing X11 display handle when we are
8887             shutting down
8888         * Control.cs: Fix to make csc happy
8890 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
8892         * TextBoxBase.cs: 
8893           - get_Text: Add last line (without trailing newline) to returned
8894             value (Fixes 76212)
8895           - get_TextLength: Count last line in returned length
8896           - ToString: Call Text property instead of duplicating code
8898 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
8900         * ImageList.cs: Dispose ImageAttributes objects.
8902 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
8904         * ImageList.cs: Use attribute constructors with less arguments where
8905           possible.
8907 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
8909         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
8910           Use typeof instead of strings when assembly is referenced. Added
8911           some more comments.
8913 2005-10-21  Jackson Harper  <jackson@ximian.com>
8915         * ListView.cs: Raise a double click event. Also tried to somewhat
8916         fix when the selectedindexchanged event is raised. Its still
8917         broken though.
8919 2005-10-21  Jackson Harper  <jackson@ximian.com>
8921         * TreeView.cs: New method to invalidate the plus minus area of a
8922         node without invalidating the whole node (maybe this can be used
8923         in some more places).
8924         * TreeNodeCollection.cs: When adding to an empty node we need to
8925         invalidate its plus minus area so the little block shows up.
8926         
8927 2005-10-21  Jackson Harper  <jackson@ximian.com>
8929         * TreeView.cs: Make sure that when we invalidate a node the bounds
8930         are big enough to cover the selected box and the focus
8931         rectangle. Use a different colour for the lines connecting nodes
8932         so they show up with all themes.
8934 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
8936         * NativeWindow.cs: Don't call anything that could call into the driver,
8937           we might be on a different thread.
8939 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
8941         * Control.cs(Dispose): Since Dispose might run on a different thread,
8942           make sure that we call methods that could call into the driver via
8943           invoke, to avoid thread issues
8945 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
8947         * XplatUI.cs: Removed finalizer
8948         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
8949           not allowing to be called on the finalizer thread.
8951 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
8953         * ImageList.cs:
8954           - Reverted r51889 and r51891.
8955           - Added ImageListItem class that stores unmodified image items and image
8956             properties required to create list images until handle is created.
8957           - Added AddItem and moved image creation logic to AddItemInternal.
8958           - Added CreateHandle method that creates images based on unmodified items.
8959           - Added DestroyHandle that changes state to store unmodified items.
8960           - Add and AddStrip methods no more create handle.
8961           - ReduceColorDepth has no return value.
8962           - Dispose destroys handle.
8963           - Modified other methods to reflect the above changes.
8964           - Implemented key support.
8965           - Added profile 2.0 members and attributes.
8966           - Added private Reset and ShouldSerialize methods that provide the same
8967             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
8968             them as they are private.
8969           - Added some more comments about implementation details.
8971 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
8973         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
8975 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
8977         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
8979 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
8981         * DataGridDrawingLogic.cs: Fixes column hit calcultation
8982         * DataGridColumnStyle.cs: Remove debug message
8984 2005-10-20  Jackson Harper  <jackson@ximian.com>
8986         * TreeView.cs: We can always get input keys regardless of whether
8987         or not editing is enabled. They are used for navigation.
8989 2005-10-20  Jackson Harper  <jackson@ximian.com>
8991         * TreeNode.cs: Use the viewport rect for determining if a node
8992         needs to be moved for visibility. Don't use Begin/End edit. This
8993         calls a full refresh when its done.
8994         * TreeView.cs: New SetBottom works correctly.  Make the viewport
8995         rect property internal so the treenodes can see it. When clicking
8996         on a node we need to ensure that its visible because it might just
8997         be partly visible when clicked.
8999 2005-10-20  Jackson Harper  <jackson@ximian.com>
9001         * TreeNodeCollection.cs: Remove debug code.
9003 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
9005         * Datagrid.cs: Implements column sorting in Datagrid
9006         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
9008 2005-10-20  Jackson Harper  <jackson@ximian.com>
9010         * TreeNodeCollection.cs: Remove items properly. Update the correct
9011         area after removing them.
9013 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
9015         * Datagrid.cs: Should not call base.OnPaintBackground
9017 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
9019         * XplatUIX11.cs (GetMessage):
9020           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
9021             window instead of client window
9022           - Now properly calculates NC_xBUTTONUP message coordinates
9023           - ScreenToMenu now properly calculates it's coordinates of whole 
9024             window, since menus are in the whole window, not in the client
9025             window
9026           - Added WholeToScreen coordinate translation method
9028 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
9030         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
9031           want to return a message, loop back to the beginning of the function
9032           and grab the next real message to process instead.
9034 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
9036         * Splitter.cs: Properly set limits if no filler control is used
9038 2005-10-19  Jackson Harper  <jackson@ximian.com>
9040         * ColorDialog.cs: Don't show the help button if it is not enabled
9041         instead of disabling it (this is what MS does). Don't create the
9042         panel until the dialog is run, otherwise the vars (such as
9043         ShowHelp) are not set yet.
9045 2005-10-19  Jackson Harper  <jackson@ximian.com>
9047         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
9048         are reduced when adding nodes.
9049         * TreeNode.cs:
9050         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
9051         tree.
9052         
9053 2005-10-19  Jackson Harper  <jackson@ximian.com>
9055         * FolderBrowserDialog.cs: End editing our treeview so the window
9056         actually gets refreshed.
9058 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
9060         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
9061           Obsoleted handling of WM_ERASEBKGND, now always draws our background
9062           inside of WM_PAINT
9064 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
9066         * MenuAPI.cs: Returns after Hidding window
9067         * XplatUIX11.cs: Added TODO found while debugging menu issues
9069 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
9071         * XplatUIX11.cs: Do not re-map the whole window when it's size
9072           becomes non-zero unless it's supposed to be actually visible
9074 2005-10-18  Jackson Harper  <jackson@ximian.com>
9076         * TreeView.cs: We don't need to keep a count anymore.
9077         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
9078         use the Grow method.
9080 2005-10-18  Jackson Harper  <jackson@ximian.com>
9082         * TreeNodeCollection.cs: Insert is not supported on arrays, so
9083         implement it manually here.
9085 2005-10-18  Jackson Harper  <jackson@ximian.com>
9087         * ImageList.cs: Dont kill the list when the colour depth is
9088         changed, just change the colour depth of all the images.
9089         - Same goes for setting the image size. Just resize them all
9090         instead of killing the list softly.
9092 2005-10-18  Jackson Harper  <jackson@ximian.com>
9094         * Control.cs: Don't invalidate empty rectangles.
9096 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
9098         * ListViewItem.cs:
9099           - Adds checked item to the Checked/Item lists (where empty before)
9100           - Do not add items to the Selected lists if they are already present
9101         * ListView.cs:
9102           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
9103           - When deleting items make sure that we delete them for the Selected
9104           and Checked list also.
9106 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
9108         * Label.cs: Dispose objects no longer used
9109         * ThemeWin32Classic.cs: Dispose objects no longer used
9111 2005-10-18  Jackson Harper  <jackson@ximian.com>
9113         * TabControl.cs: Don't refresh the whole control when the tabs are
9114         scrolled, we just need to refresh the tab area.
9116 2005-10-17  Jackson Harper  <jackson@ximian.com>
9118         * XplatUIX11.cs: Compress code a little bit. Only calculate the
9119         after handle when we need it.
9121 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
9123         * Control.cs: When the parent size changes, recalculate anchor 
9124           positions. Partial fix for #76462
9126 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
9128         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
9129           drawn. Fixes #76462
9131 2005-10-17  Jackson Harper  <jackson@ximian.com>
9133         * MonthCalendar.cs: Don't create the numeric up down until our
9134         handle is created. Otherwise our handle is created in the
9135         constructor and we don't know if we are a WS_CHILD or WS_POPUP
9136         yet.
9138 2005-10-17  Jackson Harper  <jackson@ximian.com>
9140         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
9141         correctly.
9143 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
9144         * TreeNode.cs : small logical fix (was using local var instead of field)
9145         
9146 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
9148         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
9150 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
9152         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
9154 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
9156         * Control.cs: 
9157           - Re-implemented anchoring code. My first version was really broken.
9158             This fixes bug #76033. Unlike the previous implementation we will
9159             no longer have round errors since all numbers are calculated from
9160             scratch every time. Removed various anchor-related obsolete vars.
9161           - InitLayout no longer causes layout event firing and layout to be 
9162             performed
9164 2005-10-16  Jackson Harper  <jackson@ximian.com>
9166         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
9167         which was broken).
9169 2005-10-16  Jackson Harper  <jackson@ximian.com>
9171         * TabControl.cs: Remove debug code.
9173 2005-10-16  Jackson Harper  <jackson@ximian.com>
9175         * XEventQueue.cs: Increase the default queue size (very simple
9176         apps needed to grow the queue).
9177         * Hwnd.cs: No finalizer so we don't need to suppress
9178         finalization. Compute the invalid area manually so a new rectangle
9179         does not newto be created.
9180         * ScrollableControl.cs: Don't set any params (otherwise visibility
9181         isn't set correctly).
9182         * MdiChildContext.cs: New constructor takes the mdi parent so it
9183         doesn't have to be computed and avoids a crash on windows. Draw
9184         the window icon properly, and allow the text to be seen.
9185         * Form.cs: Use new MdiChildContext constructor. Make sure the
9186         child context isn't null in wndproc.
9187         * TabControl.cs: Don't set focus, this is muddling keyboard
9188         behavoir. Expand the tab rows when a window size increase will
9189         allow extra tabs to be seen. Don't allow tabs smaller than the
9190         width of a window to be scrolled out of view.
9191         * TreeNode.cs:
9192         * TreeView.cs: Use measure string to calculate a nodes width, the
9193         width is cached and only updated when the text or the font is
9194         changed. Don't check for expand/collapse clicks on the first level
9195         nodes if root lines are disabled.
9196         
9197 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
9199         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
9201 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
9203         * DataGridBoolColumn.cs: fixes warning
9205 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
9207         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
9208         to match more to match more precisely the MS Net behavior
9210 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
9212         * Hwnd.cs: Added field to track if window is mapped
9213         * XplatUIX11.cs: 
9214           - Unmap windows if they become 0-size, re-map when 
9215             they are >0 again; fixes #76035
9216           - Re-set our error handler after initializing X11Desktop
9217             to override any error handlers Gtk or whatever was called
9218             may have set.
9220 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
9222         * CheckedListBox.cs: Removed unused vars
9223         * ListView.cs: Fixed signatures
9224         * RichTextBox.cs: Removed unused vars
9225         * TextBoxBase.cs: Removed unused vars
9226         * XplatUIWin32.cs: Removed unused vars
9227         * XplatUIX11.cs: Removed unused vars
9228         * XplatUI.cs: Updated version and date to latest published
9230 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
9232         * Cursor.cs: Added private .ctor to work around a bug in
9233           resourceset (Thanks to Geoff Norton for the help on this)
9234         * SplitterEventArgs.cs: Made fields accessible so we don't
9235           waste boatloads of objects and can reuse the same one
9236           in Splitter
9237         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
9238           any captions and borders when generating screen coordinates
9239         * Splitter.cs: Reimplemented control, now fully complete, uses
9240           rubberband drawing, supports and obeys all properties, has
9241           proper cursors
9243 2005-10-13  Miguel de Icaza  <miguel@novell.com>
9245         * Form.cs (Form): Setup default values for autoscale and
9246         autoscale_base_size;  Make these instance variables, not static
9247         variables. 
9249         (OnLoad): on the first load, adjust the size of the form.
9251 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
9253         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
9254           width argument to DrawReversibleRectangle()
9255         * XplatUIWin32.cs, XplatUIX11.cs: 
9256           - Implemented width for DrawReversibleRectangle()
9257           - Added logic to DrawReversibleRectangle that recognizes a zero
9258             width or height and only draws a line in that situation
9259         
9260 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
9262         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
9263         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
9264         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
9265           method (it uses our FosterParent window to get a graphics context)
9267 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
9269         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
9270           and SetWindowBackground methods
9271         * Control.cs:
9272           - Setting proper ControlStyles
9273           - We no longer call XplatUI.SetWindowBackground and XplatUI.
9274             EraseWindowBackground, instead we draw the window background
9275             ourselves in PaintControlBackground. This behaviour is
9276             required to match MS, where, when OnPaintBackground is not
9277             called, the background is not drawn.
9278           - Removed unneeded Refresh() in set_Text
9279         * Hwnd.cs: Dropped the ErasePending support. No longer needed
9280         * XplatUIX11.cs:
9281           - Created DeriveStyles method to translate from CreateParams to
9282             FormBorderStyle and TitleStyle, also handles BorderStyle (which
9283             matches FormBorderStyle enum values)
9284           - Consolidated SetHwndStyles and CalculateWindowRect border/title
9285             style calculations into single DeriveStyles method
9286           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
9287             from redrawing the whole window on any resize or expose.
9288           - Fixed CreateWindow usage of SetWindowValuemask. Before not
9289             all styles were applied to our whole/client window appropriately
9290           - Removed EraseWindowBackground() and SetWindowBackground() methods
9291           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
9292             no longer clear/redraw the background through X
9293           - Removed handling of erase_pending bit, we have no use for it (or
9294             so it seems)
9295         * XplatUIOSX.cs:
9296           - Removed generation and handling of WM_ERASEBKGND message
9297           - Removed EraseWindowBackground() and SetWindowBackground() methods
9298           - Removed handling of hwnd.ErasePending flag
9299         * XplatUIWin32.cs:
9300           - Removed EraseWindowBackground() and SetWindowBackground() methods
9301           - We no longer call EraseWindowBackground on PaintEventStart, we 
9302             ignore the fErase flag, erasing is handled in Control in the
9303             background handler
9304         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
9305           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
9306           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
9307           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
9308           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
9309           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
9310           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
9312 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
9314         * PropertyGrids.cs: Get sub properties
9315         * PropertyGridView.cs: Fix drawing code
9317 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
9319         * ListBox.cs: Fixes 76383
9321 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
9323         * DataGridTextBoxColumn.cs: Sets location and size before attachment
9324         * ThemeWin32Classic.cs: Fixes border drawing and calculations
9325         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
9328 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
9330         * ComboBox.cs: Fixes border drawing
9332 2005-10-10  Miguel de Icaza  <miguel@novell.com>
9334         * MimeIcon.cs: Ignore errors if the file can not be read.
9336 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
9338         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
9339          - Fixed border calculations
9340          - Fixed horizontal scrolling in single column listboxes
9341          - Fixed drawing issues
9343 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
9345         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
9346           FormBorderStyle enum
9347         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
9348           code to determine FormBorderStyles from CreateParams
9349         * Form.cs:
9350           - Fixed bug where we'd set the wrong window styles if we were
9351             not creating an MDI window
9352           - Added call to XplatUI.SetBorderStyle when form borders are set
9353         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
9354         * Hwnd.cs:
9355           - Removed obsolete edge style
9356           - Switched from BorderStyle to FormBorderStyle
9357         
9358 2005-10-10  Jackson Harper  <jackson@ximian.com>
9360         * Form.cs: Use the property to get the window handle instead of
9361         accessing it directly. Prevents a null reference exception.
9363 2005-10-10  Jackson Harper  <jackson@ximian.com>
9365         * TreeView.cs: Don't adjust the rect given to DrawString now that
9366         our libgdiplus draws correctly.
9368 2005-10-08  Jackson Harper  <jackson@ximian.com>
9370         * TreeView.cs: Don't try to find the clicked on node if there are
9371         no nodes in the tree.
9373 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
9375         * RichTextBox.cs:
9377           restore
9379 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
9381         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
9382           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
9383           ErrorProvider.cs:
9384           Use ResPool for brushes and dispose System.Drawing objects that
9385           are not used anymore.
9387 2005-10-07  Jackson Harper  <jackson@ximian.com>
9389         * MdiChildContext.cs: Use the new borders instead of drawing them
9390         ourselves.
9392 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
9394         * Calling UpdateBounds after changing the window's BorderStyle 
9395         since the style can change the ClientSize
9397 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
9399         * Control.cs: Made PaintControlBackground virtual
9400         * Panel.cs: Overriding PaintControlBackground instead of using paint
9401           event; paint event method was interfering with 'real' users of the
9402           event.
9404 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
9406         * ThemeWin32Classic.cs: remove border drawing since it is handled
9407         by the base control class now and was causing double border drawing.
9409 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
9411         * Panel.cs: Redraw our background on paint. Not a pretty solution,
9412           but it does seem to match MS behaviour. This fixes bug #75324
9414 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
9416         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
9417           somewhat hackish looking
9419 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
9421         * TextBoxBase.cs:
9422           - We now accept Enter even if AcceptEnter is false, if the containing
9423             form does not have an AcceptButton configured (fixes bug #76355)
9424           - Calculations are now fixed to no longer use Width/Height, but
9425             ClientSize.Width/Height, since we now support borders (this was
9426             a result of fixing borders and therefore bug #76166)
9427           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
9428             true (fixes bug #76354)
9429         
9430 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
9432         * Control.cs: 
9433           - Defaulting BorderStyle and setting it in XplatUI when our window 
9434             is created
9435           - Added enum check to InternalBorderStyle setter
9436         * XplatUIX11.cs: 
9437           - Added drawing of window borders
9438           - Now properly calculates WM decorations offset for toplevel 
9439             windows (fixes bug #74763)
9440         * XplatUIWin32.cs: 
9441           - Implemented BorderStyles for windows (we're letting win32 draw 
9442             the border for us)
9443           - Fixed the signature for SetWindowLong
9444         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
9445           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
9446           setting borders
9447         * UpDownBase.cs: Remove drawing of borders, this is handled by
9448           the driver, outside the client area
9449         * ListView.cs: Removed bogus border calculations. The control should
9450           be oblivious to borders, since those are not part of the client
9451           area. 
9452         * X11DesktopColors.cs: Commented out (currently) unneeded variables
9453         * ThemeWin32Classic.cs: Removed border calculations from ListView 
9454           drawing code
9456 2005-10-06  Jackson Harper  <jackson@ximian.com>
9458         * MdiChildContext.cs: Clear out the old virtual position remove
9459         all the unneeded calls to CreateGraphics.
9461 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
9463         * TextControl.cs: Use proper color for highlighted text; fixes #76350
9465 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
9467         * Form.cs: 
9468           - Added loading and setting of our new default icon
9469           - Only set icon if window is already created
9471 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
9473         * Label.cs:
9474           - Do not explicitly set the foreground and background colors, to
9475             allow inheriting from parents (fixes #76302)
9476           - Use Control's InternalBorderStyle property to deal with borders
9478 2005-10-06  Jackson Harper  <jackson@ximian.com>
9480         * MdiChildContext.cs: Use the new xplatui function to draw a
9481         reversible rect.
9483 2005-10-06  Jackson Harper  <jackson@ximian.com>
9485         * Form.cs: Add the parent before creating the child context cause
9486         we need the parent when setting up the child.
9488 2005-10-06  Jackson Harper  <jackson@ximian.com>
9490         * FolderBrowserDialog.cs: redo the tree population code so a
9491         second thread isn't used. Should be a lot faster and more stable
9492         now.
9494 2005-10-05  Jackson Harper  <jackson@ximian.com>
9496         * TreeView.cs: There are no expand/collapse boxes if the node has
9497         no children.
9499 2005-10-05  Jackson Harper  <jackson@ximian.com>
9501         * X11DesktopColors.cs: Get menu colours for the gtk theme.
9503 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
9505         * FileDialog.cs: Fix InitialDirectory
9507 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
9509         * ComboBox.cs:
9510                 - Fixes changing between styles
9511                 - Fixes simple mode
9512                 - Fixes last item crashing when navigating with keyboard
9514 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
9516         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
9518 2005-10-05  Jackson Harper  <jackson@ximian.com>
9520         * TreeView.cs: If updating the root node do a full refresh.
9521         * TreeNode.cs: The root node should be expanded by default. Also
9522         added a utility prop to tell if we are the root node.
9523         * TreeNodeCollection.cs: Only refresh if the node we are being
9524         added to is expanded. Also added a comment on a potential
9525         optimization.
9526         
9527 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
9529         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
9530           in dispose method. Fixes #76330
9532 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
9534         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
9536                 - Implements vertical and horizontal scrolling using XplatUI
9537                 - Fixes keyboard navagation
9538                 - Fixes EnsureVisible
9539                 - Drawing fixes
9540                 - Handles and draws focus properly
9543 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
9545         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
9546           Create handle. NET_2_0: Destroy handle when value is null.
9548 2005-10-03  Jackson Harper  <jackson@ximian.com>
9550         * ScrollBar.cs: My last scrollbar patch was broken. This is a
9551         revert and a new patch to prevent the thumb from refreshing so
9552         much.
9554 2005-10-02  Jackson Harper  <jackson@ximian.com>
9556         * ScrollBar.cs: Don't update position if it hasn't actually
9557         changed. This occurs when you hold down the increment/decrement
9558         buttons and the thumb gets to the max/min.
9560 2005-10-01  Jackson Harper  <jackson@ximian.com>
9562         * Form.cs:
9563         * MdiChildContext.cs:
9564         * MdiClient.cs: Implement ActiveMdiChild in Form.
9566 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
9568         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
9570 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
9572         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
9573           be found
9575 2005-09-30  Jackson Harper  <jackson@ximian.com>
9577         * ListBox.cs: Don't do a full refresh unless some data has
9578         actually changed.
9580 2005-09-30  Jackson Harper  <jackson@ximian.com>
9582         * TreeView.cs: Make sure that the checkboxes size is factored in
9583         even when not visible.
9585 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
9587         * FileDialog.cs: Fix Jordi's build break
9589 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
9591         * FileDialog.cs: 
9592                 - Use standard the Windows colours for the combobox as espected
9593                 - Dispose objects that use resouces when no longer need them
9595 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
9597         * X11DesktopColors.cs: Initial incomplete implementation
9598         * XplatUIX11.cs: Added call to initialize X11DesktopColors
9600 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
9602         * Theme.cs: 
9603           - Switched Theme color names to match the names defined in 
9604             System.Drawing.KnownColors. Life's hard enough, no need to make 
9605             it harder.
9606           - Added setters to all theme color properties so themes can set
9607             their color schemes. The setters also propagate the color changes
9608             to System.Drawing.KnownColors via reflection
9609         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
9610           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
9611           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
9612           use the new, more logical theme color names
9613         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
9614           post-NT colors
9615         * ThemeWin32Classic.cs:
9616           - Removed code to set the old classic Windows colors. Instead it
9617             now relies on the colors returned by System.Drawing.KnownColors
9618             which will be either modern static colors (Unix) or colors
9619             read from the user's configuration (Win32)
9620           - Updated to use the new, more logical theme color names
9621           - Switched DataGrid drawing code to use only Theme colors instead of
9622             a mix of System.Drawing.KnownColors and Theme colors
9623           - DrawFrameControl(): Removed code that fills the button area, the
9624             fill would overwrite any previous fill done by a control. This
9625             fixes bug #75338 
9626           - Added DrawReversibleRectangle() stub
9627         * ScrollableControl.cs: Set visible state to false when scrollbars
9628           are removed (pdn fix)
9629         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
9630           DrawReversibleRectangle() method to allow drawing primitive 
9631           'rubber bands'
9632         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
9634 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
9636         * ImageList.cs: Add(Icon): Create handle.
9638 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
9640         * ListView.cs:
9641         * ThemeWin32Classic.cs:
9642                 - Fixes detail mode
9643                 - Sets clippings
9644                 - Issues with drawing
9646 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
9648         * ImageList.cs: Moved RecreateHandle back to ImageList as event
9649           source has to be the ImageList.
9651 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
9653         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
9655 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
9657         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
9659 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
9661         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
9663 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
9664         * GridItem.cs: Fixed TODOs
9665         * GridItemCollection.cs: Added ICollection interface
9667 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
9669         * ImageList.cs: Resize icons when needed.
9671 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
9673         * ListViewItem.cs
9674                 - Fixes GetBounds and returns on screen rects
9675         * ListView.cs:
9676                 - Fixes vertical and horzintal scrolling of items
9677         * ThemeWin32Classic.cs:
9678                 - Fixes drawing
9679                 
9680 2005-09-29  Raja R Harinath  <harinath@gmail.com>
9682         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
9684 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
9686         * ImageList.cs: Added comments about handle creation. Moved Handle,
9687           HandleCreated and OnRecreateHandle implementations to ImageCollection.
9688           Handle is created in Add methods.
9690 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
9691          
9692         * DataGridDrawingLogic.cs: 
9693                 - Takes rows into account on Colum calculations
9694                 - Returns the column when clickig
9695         * DataGrid.cs:
9696                 - Fixes default HitTestInfo values
9697                 - Fixes HitTestInfo.ToString
9698                 - Fixes ResetBackColor          
9699         
9700 2005-09-28  Jackson Harper  <jackson@ximian.com>
9702         * MdiChildContext.cs: Obey rules for fixed sized windows (no
9703         sizing or cursor changes). Also added some temp code to draw the
9704         titlebars text (Makes dev a little easier).
9706 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
9708         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
9710 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
9711          
9712         * ListBox.cs: Fixes bug 76253
9714 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
9716         * ImageList.cs: Added comments about the current implementation. Added
9717           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
9718           Format32bppArgb to preserve transparency and can use Graphics.FromImage
9719           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
9720           with Bitmap.LockBits for better performance. Revised the whole file to
9721           match MS.NET behaviour and provide better performance. Non-public
9722           interface members are calling public members even when they throw
9723           NotSupportedException for better maintainability. Moved ColorDepth,
9724           ImageSize, ImageStream and TransparentColor implementations to
9725           ImageCollection for better performance as these properties are not used
9726           by ImageList.
9727         * ImageListStreamer.cs: Added a new internal constructor that takes an
9728           ImageList.ImageCollection and serializes Images based on
9729           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
9730           match ImageList property name.
9732 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
9734         * ListBox.cs: Fixes IndexFromPoint for last item
9736 2005-09-27  Jackson Harper  <jackson@ximian.com>
9738         * Form.cs: Set the position of new mdi children correctly.
9740 2005-09-27  Jackson Harper  <jackson@ximian.com>
9742         * MdiClient.cs: New mdi children need to be added to the back of
9743         the controls collection so the zorder is set correctly. Also add a
9744         count of all the child windows that have been created.
9746 2005-09-27  Jackson Harper  <jackson@ximian.com>
9748         * Form.cs (CreateParams): Setup MDI forms correctly.
9750 2005-09-27  Jackson Harper  <jackson@ximian.com>
9752         * MdiChildContext.cs:
9753         * MonthCalendar.cs:
9754         * UpDownBase.cs:
9755         * ListBox.cs:
9756         * ListView.cs:
9757         * TextBoxBase.cs:
9758         * TreeView.cs:
9759         * ScrollableControl.cs:
9760         * ComboBox.cs: Add implicit controls using the new implict control
9761         functionality in ControlCollection. Also try to block multiple
9762         control add in a suspend/resume layout to save some cycles.
9763         
9764 2005-09-27  Jackson Harper  <jackson@ximian.com>
9766         * Control.cs: Add functionality to the controls collection to add
9767         'implicit controls' these are controls that are created by the
9768         containing control but should not be exposed to the user. Such as
9769         scrollbars in the treeview.
9770         * Form.cs: The list var of the ControlsCollection is no longer
9771         available because of the potential of implicit controls getting
9772         ignored by someone accessing the list directly.
9774 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
9776         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
9777           loose it's parent. (Fixed bug introduced in r49103 when we added
9778           setting the child parent to null on Remove)
9780 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
9782         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
9783         * Splitter.cs: Added missing attributes for BorderStyle property.
9784         * TextBoxBase.cs: Marked Calculate* methods internal.
9785         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
9786         MS.NET.
9788 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
9789          
9790         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
9792 2005-09-25  Jackson Harper  <jackson@ximian.com>
9794         * TreeView.cs: Update the node bounds correctly regardless of
9795         whether the node is visible.
9797 2005-09-25  Jackson Harper  <jackson@ximian.com>
9799         * ImageList.cs: Don't dispose the image after it is added to the
9800         image list. Only reformat images that need to be resized.
9802 2005-09-25  Jackson Harper  <jackson@ximian.com>
9804         * ImageList.cs: Don't set the format when changing the image.
9806 2005-09-25  Jackson Harper  <jackson@ximian.com>
9808         * TreeView.cs: We can't just assume the node has a font. Use the
9809         treeviews font if no node font is available.
9811 2005-09-25  Jackson Harper  <jackson@ximian.com>
9813         * TreeView.cs: Allow the scrollbars to be reset with negative
9814         values.
9815         - Don't add scrollbars to negative sized windows.
9817 2005-09-23  Jackson Harper  <jackson@ximian.com>
9819         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
9820         old Mono.Posix. Also remove some stray code that shouldn't have
9821         been committed.
9823 2005-09-23  Jackson Harper  <jackson@ximian.com>
9825         * TreeView.cs: Attempt at proper sizing of the horizontal
9826         scrollbar. Also don't resize the scrollbars unless they are
9827         visible.
9829 2005-09-23  Jackson Harper  <jackson@ximian.com>
9831         * TreeView.cs: We don't need to expand the invalid area when the
9832         selection changes, as this is all drawn in the node's bounding
9833         box. The area needs to be expanded (previous typo was contracting
9834         it) when the focus rect moves.
9836 2005-09-23  Jackson Harper  <jackson@ximian.com>
9838         * TreeView.cs: Display the selection box under the correct
9839         circumstances. We were rendering white text with no selection box
9840         before.
9842 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
9844         * TextControl.cs(Split): Now updates selection start/end if it points 
9845           into a line that's being split. Fixes a FIXME and bug #75258
9847 2005-09-23  Jackson Harper  <jackson@ximian.com>
9849         * Binding.cs:
9850         * ListControl.cs: Don't use the path when retrieving binding
9851         managers from the binding context. My bat sense tells me that the
9852         path is only used on insertion.
9854 2005-09-22  Jackson Harper  <jackson@ximian.com>
9856         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
9858 2005-09-22  Jackson Harper  <jackson@ximian.com>
9860         * Splitter.cs: There are special cursors used for splitting.
9861         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
9863 2005-09-22  Jackson Harper  <jackson@ximian.com>
9865         * Splitter.cs: Change the cursor appropriately when the splitter
9866         is moused over, so the user actually knows there is a splitter
9867         there.
9869 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
9871        * Label.cs : Fix ToString method to give same output as MS.NET
9873 2005-09-22  Jackson Harper  <jackson@ximian.com>
9875         * TreeView.cs: Create the scrollbars when the handle is created
9876         and add them right away, just make them invisble. Also account for
9877         the window being shrunk vertically to the point that the vert
9878         scrollbar needs to be added.
9879         - Remove some 0.5 adjustments to get around anti aliasing issues.
9880         
9881 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
9882          
9883         * MainMenu.cs: Fixes default value
9884         * MenuItem.cs: Fixes default value
9886 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
9888         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
9890 2005-09-21  Jackson Harper  <jackson@ximian.com>
9892         * Control.cs: Don't try to set the border style on the window if
9893         it hasn't been created. When the window is created the border
9894         style will be used.
9896 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
9898         * Control.cs (Update): Don't call XplatUI if we don't have a
9899           window handle yet
9901 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
9903         * ContainerControl.cs: Instead of throwing an exception, print
9904           a one-time warning about Validate not being implemented
9905         * XplatUIWin32.cs: Removed debug output
9907 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
9909         * Control.cs: Only set XplatUI background if we expect the windowing
9910           system to handle the background. This stops controls that draw their
9911           own background from flickering
9913         * XplatUIX11.cs: Support custom visuals and colormaps for window 
9914           creation. This allows, amongst other things, using MWF X11 windows 
9915           with OpenGL.
9917 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
9919         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
9920           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
9921           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
9922           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
9923           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
9924           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
9925           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
9926           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
9927           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
9928           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
9929           GridColumnStylesCollection.cs, 
9930           IDataGridColumnStyleEditingNotificationService.cs,
9931           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
9932           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
9933           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
9934           TreeNodeCollection.cs, AmbientProperties.cs, 
9935           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
9936           DataObject.cs, ErrorProvider.cs, Splitter.cs,
9937           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
9938           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
9939           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
9940           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
9941           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
9942           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
9943           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
9944           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
9945           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
9946           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
9947           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
9948           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
9949           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
9950           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
9951           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
9952           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
9953           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
9954           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
9955           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
9956           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
9957           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
9958           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
9959           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
9960           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
9961           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
9962           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
9963           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
9964           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
9965           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
9966           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
9967           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
9968           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
9969           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
9970           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
9971           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
9973 2005-09-21  Jackson Harper  <jackson@ximian.com>
9975         * TreeNode.cs: Call Before/After Expand not Collapse when
9976         expanding.
9978 2005-09-20  Jackson Harper  <jackson@ximian.com>
9979         
9980         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
9982 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
9983          
9984         * ListViewItem.cs:
9985                 - Fixes bug 76120
9986                 - Fixes proper storing of subitems
9987                 - Fixes not updated items
9989 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
9991         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
9992           things if our window handle isn't created yet. Also disabled 
9993           debug for TextBoxBase
9995 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
9997         * MenuAPI.cs: Remove filtering of events to allow menu usage
9999 2005-09-20  Miguel de Icaza  <miguel@novell.com>
10001         * Cursor.cs: Allow null to be passed to Cursor.Current.
10003 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
10005         * ThemeWin32Classic.cs:
10006           - Change some private methods/fields to protected virtual so that 
10007             they can be accessed and overriden in derived classes
10008           - First refactoring of some methods. Derived themes now don't 
10009             need to duplicate the complete code from ThemeWin32Classic
10010         * ThemeNice.cs:
10011           - Added nice StatusBar
10012           - Derive from ThemeWin32Classic and not Theme
10013           - Removed duplicate ThemeWin32Classic code
10015 2005-09-20  Miguel de Icaza  <miguel@novell.com>
10017         * Control.cs (ControlCollection.Add): If the value null is passed
10018         the control is ignored. 
10020         Optimize this loop.
10022 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
10024         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
10025           PostQuitMessage state.
10026         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
10028 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
10030         * Application.cs: Our constructor will never get called, move 
10031           initialization to fields; fixes bug #75933
10033 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
10035         * FileDialog.cs :
10036                 - Allow files to be selected properly using file name
10037                 combo box.
10038                 - Add ability to change diretory (absolute / relative)
10039                 using file name combo box.
10041 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
10042          
10043         * ListBox.cs: 
10044                 - Fixes Multicolumn listboxes item wrong calculations
10045                 - Allows to click when only one item is in the listbox
10046                 - Fixes crash when no items using keyboard navigation
10048 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
10050         * ComboBox.cs: Reverted almost everything from the latest patch which
10051           broke ComboBox
10053 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
10054         
10055         * ToolTip.cs:
10056                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
10057         * ComboBox.cs:
10058                 - When DropDownStyle is Simple, it does not show scrollbar 
10059                 to the last item of the list.
10060                 - When DropDownStyle is Simple, it crashed when the list was 
10061                 scrolled down with the down cursor key.
10062                 - Fixed a bug that when DropDownStyle is DropDownList, the 
10063                 selected item was not shown.
10064                 - The position of the selected item was not preserved when 
10065                 the next dropdown happened.
10066         * ThemeWin32Classic.cs:
10067                 - Items were wrapped at the right end.
10068         * CheckedListBox.cs:
10069                 - Fixed Add method
10070         * ListBox.cs:
10071                 - Items should be fully shown.
10072                 - When resizing and vertical scrollbar disappeared, the item 
10073                 of index 0 should be on the top of the list.
10074                 - GetItemRectangle should consider the size of ver. scrollbar
10075         * StatusBar.cs:
10076                 - SizingGrip area should not be allocated when it is not 
10077                 displayed.
10078                 - Now it reflects MinWidth of the containing panel and 
10079                 fixed a crash that happens when its width becomes so small.
10081 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
10083         * CheckedListBox.cs: Fixes bug 76028
10084         * ListBox.cs: Fixes bug 76028
10086 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
10088         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
10089         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
10091 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
10093         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
10095 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
10097         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
10099 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
10101         * IRootGridEntry.cs: Added
10102         * PropertyGridCommands.cs: Added
10103         * PropertiesTab.cs: Added missing methods and property
10104         * PropertyGridView.cs: Made class internal
10105         * PropertyGridTextBox.cs: Made class internal
10107 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
10109         * MimeIcon.cs: Try to check some other environment variables
10110           if "DESKTOP_SESSION" returns "default"
10112 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
10114         * ThemeNice.cs: Corrected background colors (e.g. menus)
10115         * ColorDialog.cs: Use correct background colors for controls
10117 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
10119         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
10121 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
10123         * RichTextBox.cs: Added initial implementation
10124         * lang.cs: Removed. Was accidentally checked in long time ago
10125         * TODO: Removed. Contents were obsolete
10127 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
10128                                                                                 
10129         * PropertiesTab.cs : Added
10131 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
10132                                                                                 
10133         * PropertyGrid.cs : Update
10134         * PropertyGridView.cs : Update
10135         * System.Windows.Forms.resx : Added images and strings
10137 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
10139         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
10141 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
10143         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
10144           a busy loop right after the Ungrab the X11 display is otherwise 
10145           blocked
10147 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
10149         * ThemeWin32Classic.cs: Optimise the use of clipping
10151 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
10153         * DataGrid.cs: fixes recursion bug
10155 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
10157         * ThemeNice.cs: 
10158           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
10159           - Cleanup
10161 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
10163         * ThemeNice.cs: Draw nice ProgressBars
10165 2005-09-01  Miguel de Icaza  <miguel@novell.com>
10167         * VScrollBar.cs: Another buglet found by Aaron's tool. 
10169         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
10170         bug finder.
10172 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
10174         * ThemeNice.cs:
10175           - Added nicer menu drawing
10176           - Updated DrawTab
10177           - some refactoring
10179 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
10181         * CreateParams.cs (ToString): Made output match MS
10182         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
10183             handle is already created (to avoid forcing window creation)
10184         * XplatUIX11.cs: Set window text to caption after creating window,
10185           in case Text was set before window was created
10186         * Form.cs: Use this.Text instead of a static string as caption
10188 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
10190         * NotifyIcon.cs: Don't set the window to visible; this screws
10191           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
10192           OnPaint without a bitmap)
10193         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
10194           happen very often anyway; we could add the check to the WM_PAINT 
10195           event generation code
10197 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
10199         * NotifyIcon.cs: Fill the icon area with a background color, to 
10200           avoid 'residue' when transparent icons are drawn
10201         * XplatUIX11.cs:
10202           - Handle whole_window == client_window when destroying windows
10203           - SystrayAdd(): Set client_window to whole_window value to
10204             get mouse and other events passed to NotifyIcon
10206 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
10208         * Form.cs: Set proper default for Opacity property
10209         * NotifyIcon.cs:
10210           - ShowSystray(): Don't bother creating telling the OS
10211             about the systray item if no icon is provided
10212           - Now handles WM_NCPAINT message to deal with whole/client window
10213             split
10214           - Create window as visible to not get caught by Expose optimization
10215         * Hwnd.cs: Removed debug message
10216         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
10217           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
10218             PaintEventStart/End to use new client argument
10219         * TextBoxBase.cs:
10220           - Commented out debug messages
10221           - Switched PaintEventStart/End to use new client argument
10222         * XplatUI.cs: Added client window bool to PaintEventStart()/
10223           PaintEventEnd() calls, to support drawing in non-client areas
10224         * XplatUIDriver.cs: 
10225           - Added client window bool to PaintEventStart()/PaintEventEnd() 
10226             calls, to support drawing in non-client areas
10227           - Added conditional compile to allow using MWF BeginInvoke 
10228             on MS runtime
10229         * XplatUIX11.cs:
10230           - Added some conditional debug output
10231           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
10232             whole/client window split
10233           - Implemented handling of client argument to PaintEventStart()/End()
10234         * Control.cs:
10235           - Throw exception if BeginInvoke() is called and the window handle
10236             or one of the window's parent handles is not created
10237           - Added conditional compile to allow using MWF BeginInvoke on
10238             MS runtime
10239           - get_Parent(): Only sets parent if handle is created. This avoids
10240             forcing window handle creation when parent is set.
10241           - Now fires Layout and Parent changed events in proper order
10242           - Switched to use Handle instead of window.Handle for Z-Order setting,
10243             the get_Parent() patch above causes us to possibly get null for 'window'
10244           - Implemented handling of client argument to PaintEventStart()/End()
10245           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
10246             default handling)
10247           - Now sends a Refresh() to all child windows when Refresh() is called
10249 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
10251         * Form.cs: Added (non-functional) Opacity property
10252         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
10254 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
10255         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
10256           use export MONO_THEME=nice to activate it.
10257           Currently supported controls:
10258           - Button
10259           - ComboBox
10260           - ScrollBar
10261           - TabControl (TabAlignment.Top only, other will follow)
10262         * ThemeEngine.cs: Add theme nice
10263         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
10264           if enabled
10266 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
10268         * Splitter.cs: Resize docked control and its neighbor.
10270 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
10271         -- Making Windows with Menus layout correctly --
10272         * Form.cs : The first leg of the fix
10273                 Menu setter - adjust Client Size as needed to make space for the menu
10274                 SetClientSizeCore - doesn't call base version to be able to pass the 
10275                         menu handle to XplatUI.CalculateWindowRect
10276         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
10277         * XplatUIX11.cs: The critical second leg of the fix
10278                 GetWindowPos needs to use a recalculated client_rect
10279                 so that resizing the window doesn't break layout of child controls. 
10280                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
10281                 Lots of \t\n killed
10283 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
10285         * Label.cs: Now properly recalculates width and height on Font and Text
10286           changes if AutoSize is set
10288 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
10289         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
10291 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
10293         * ImageList.cs: Makes ToString method compatible with MS
10295 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
10297         * MenuAPI.cs: fixes bug 75716
10299 2005-08-11 Umadevi S <sumadevi@novell.com>
10300         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
10302 2005-08-11 Umadevi S <sumadevi@novell.com>
10303         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
10305 2005-08-10  Umadevi S <sumadevi@novell.com>
10306         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
10308 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
10310         * Menu.cs: fixes bug 75700
10311         * MenuAPI.cs: fixes navigation issues
10313 2005-08-09  Umadevi S <sumadevi@novell.com>
10314         * CheckedListBox.cs - simple fix for GetItemChecked.
10316 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
10318         * ComboBox.cs: Serveral fixes
10319         * ListBox.cs: Serveral fixes
10321 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
10323         * ComboBox.cs: Fixes FindString methods and GetItemHeight
10324         * ListBox.cs: Fixes FindString methods
10326 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
10328         * DataGrid.cs: fixes bugs exposed by new tests
10330 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
10332         * Mime.cs: Compile Mono assembly references only if compiling
10333           with Mono (Allows to build with VS.Net again)
10335 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
10337         * Control.cs (PaintControlBackground): Draw background image
10338         corrrectly.
10339         (CheckForIllegalCrossThreadCalls): Stubbed.
10340         
10341         * Form.cs (OnCreateControl): Center when should be centered.
10342         
10343         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
10345 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
10347         * Binding.cs: Binding to properties should be case unsensitive
10349 2005-07-18 vlindos@nucleusys.com
10351         * DataGrid.cs: fixes setmember order
10353 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
10355         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
10356         * FileDialog.cs: FileDialog is now resizable and uses the new
10357           MimeIconEngine
10359 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
10361         * DataGridTextBoxColumn.cs: default value
10362         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
10363         * GridTableStylesCollection.cs: fixes checking MappingName
10364         * DataGridDrawingLogic.cs: fixes drawing logic issues
10365         * DataSourceHelper.cs: rewritten to make compatible with more data sources
10366         * DataGrid.cs: fixes    
10368 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
10370         * MimeGenerated.cs: Use case sensitive comparer for
10371           NameValueCollections
10373 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
10375         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
10376         * ThemeWin32Classic.cs: bug fixes, code refactoring
10377         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
10378         * DataGrid.cs: bug fixes, code refactoring
10379         * DataGridTextBox.cs: bug fixes, code refactoring
10380         * DataGridColumnStyle.cs:  bug fixes, code refactoring
10381         * Theme.cs:  bug fixes, code refactoring
10383 2005-07-01  Peter Bartok  <pbartok@novell.com> 
10385         * TextControl.cs: Quick fix for the reported crash on ColorDialog
10386           and other text box usage
10388 2005-07-01  Jackson Harper  <jackson@ximian.com>
10390         * TabControl.cs: Make sure the bottom of the tab covers the pages
10391         border.
10393 2005-06-30  Peter Bartok  <pbartok@novell.com> 
10395         * Form.cs (ShowDialog): Assign owner of the dialog
10396         * TextBoxBase.cs: Always refresh caret size when deleting, caret
10397           might have been moved to a tag with different height
10399 2005-06-30  Jackson Harper  <jackson@ximian.com>
10401         * Form.cs: Don't create an infinite loop when setting focus
10402         * MenuItem.cs: Don't dirty the parents if we don't have any
10404 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
10406         * LibSupport.cs: Rename
10408 2005-06-29  Peter Bartok  <pbartok@novell.com>
10410         * TextBoxBase.cs: Re-align caret after deleting a character
10411         * TextControl.cs:
10412           - DeleteChars(): Ensure that tag covers the provided position
10413           - StreamLine(): Drop reference for dropped tag
10415 2005-06-29  Peter Bartok  <pbartok@novell.com> 
10417         * TextControl.cs: 
10418           - Selections now work properly, anchoring at the initial location
10419             and properly extending in either direction (SetSelectionToCaret(),
10420             SetSelectionStart() and SetSelectionEnd())
10421           - No longer redraws the whole control on selection change, now
10422             calculates delta between previous and new selection and only
10423             invalidates/redraws that area
10424           - Fixed FindPos() math off-by-one errors
10425           - Changed DeleteChars() to verify the provided tag covers the
10426             provided position, selections may have a tag that doesn't cover
10427             the position if the selection is at a tag border
10428           - Fixed off-by-one errors in DeleteChars()
10429           - Added missing streamlining check in DeleteChars() to remove
10430             zero-length tags
10431           - Implemented Invalidate() method, now properly calculates exposures
10432             between two given lines/positions
10433           - Implemented SetSelection()
10434           - Obsoleted and removed FixupSelection()
10435           - Improved RecalculateDocument() logic, removing code duplication
10437 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10439         * LibSupport.cs: changes to match different input/output arguments.
10441 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10443         * LibSupport.cs: added libsupport.so init routine.
10445 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
10446         
10447         * ControlBindingsCollection.cs
10448                 - Throws an exception on null datasource when adding
10449                 - Checks for duplicated bindings when adding
10451 2005-06-28  Jackson Harper  <jackson@ximian.com>
10453         * TreeView.cs (OnKeyDown): Support left and right properly
10454         (navigates as well as expanding and collapsing.
10455         - Add support for Multiply, this expands all the selected nodes
10456         children.
10457         - Fix some tabbing.
10459 2005-06-28  Jackson Harper  <jackson@ximian.com>
10461         * TreeView.cs: Implement keyboard navigation, currently supports,
10462         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
10463         support for toggling checkboxes with the space bar.
10465 2005-06-28  Jackson Harper  <jackson@ximian.com>
10467         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
10468         tree.
10470 2005-06-28  Jackson Harper  <jackson@ximian.com>
10472         * TreeView.cs: Add missing event.
10474 2005-06-27  Peter Bartok  <pbartok@novell.com> 
10476         * TextControl.cs:
10477           - Made line ending size configurable (now allows for counting 
10478             lineendings as \n or \r\n)
10479           - Added margin to viewport to keep caret visible on right side
10480           - Fixed translation routines for line/pos to documentpos to consider
10481             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
10482           - Fixed some line-endings to be unix style
10483           - Fixed Document.FormatText to perform it's calculations 1-based
10484           - Added descriptions for a few methods that might otherwise get 
10485             used wrong
10486           - Added NOTE section with some basic conventions to remember at 
10487             the top of the file
10488           - Major fixup for RichTextBox selection drawing:
10489             * Fixed crashes when multiple tags on a single line were selected
10490             * fixed selection box drawing not overlaying text
10491             * fixed bogus offset calculation for tags not starting at index 1
10492             * Switched behaviour from using multiple Substrings of a 
10493               StringBuilder.ToString() to using multiple 
10494               StringBuilder.ToString(start, length) statements, hoping this is
10495               faster (kept original version commented out in the code, in case
10496               original version was faster)
10497         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
10498           alignment != Left
10499         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
10500           call it as well
10502 2005-06-27  Jackson Harper  <jackson@ximian.com>
10504         * TabControl.cs: Move to the left and right with the arrow
10505         keys. These keys don't cycle beyond first and last like
10506         tab. Refresh all the tabs when scrolling them to the left or
10507         right.
10509 2005-06-27  Jackson Harper  <jackson@ximian.com>
10511         * TabControl.cs:
10512           - ToString: Added method
10513           - CreateParams: Remove TODO and comment
10514           - OnKeyDown: Cycle through bounds properly.
10515           - SelectedIndex: Scroll to the right or left if we need to
10516           display the newly selected tab.
10518 2005-06-23  Jackson Harper  <jackson@ximian.com>
10520         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
10521         set.
10523 2005-06-23  Jackson Harper  <jackson@ximian.com>
10525         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
10526         CTRL-SHIFT-TAB, and HOME, END are there any others?
10528 2005-06-23  Jackson Harper  <jackson@ximian.com>
10530         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
10532 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
10533         
10534         * DataGridTextBoxColumn.cs: fixes and enhancements
10535         * ThemeWin32Classic.cs: fixes and enhancements
10536         * DataGridBoolColumn.cs:  fixes and enhancements
10537         * DataGridDrawingLogic.cs:  fixes and enhancements
10538         * CurrencyManager.cs: fixes and enhancements
10539         * DataGrid.cs: fixes and enhancements
10540         * DataGridColumnStyle.cs:  fixes and enhancements
10542 2005-06-22  Jackson Harper  <jackson@ximian.com>
10544         * TabControl.cs: Add some missing methods that just call into the
10545         base. Make the TabPageCollection's IList interface behave in the
10546         same manner as the MS implementation.
10548 2005-06-22  Peter Bartok  <pbartok@novell.com> 
10550         * TextControl.cs: Added sanity check
10551         * TextBoxBase.cs: 
10552           - Fixed wrapping behaviour, don't set wrap on single line controls
10553             (this fixes the breakage of colordialog introduced in an earlier
10554              checkin)
10555           - Added rudimentary support for autoscrolling right-aligned controls
10556             (still needs fixing, also, center alignment scroll is missing)
10558 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
10559         
10560         * ScrollBar.cs: Fixes thumbpos on Maximum values
10562 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
10563         
10564         * PropertyGridView.cs: Pass context information to UITypeEditors 
10566 2005-06-21  Peter Bartok  <pbartok@novell.com> 
10568         * TextBoxBase.cs:
10569           - Now calling PositionCaret with absolute space coordinates
10570           - Enabled vertical scrolling
10571           - Better tracking of scrollbar changes, tied into WidthChange
10572             event
10573           - Improved cursor tracking
10574           - Removed debug output
10575         * TextControl.cs:
10576           - PositionCaret coordinates are now works in absolute space, not 
10577             the canvas
10578           - Improved tracking of document size
10579           - Added events for width and height changes
10581 2005-06-21  Peter Bartok  <pbartok@novell.com>
10583         * Form.cs: Set focus to active control when form is activated
10584         * TextControl.cs: 
10585           - Added word-wrap functionality to RecalculateLine() 
10586           - Added some short function descriptions for VS.Net to aid in
10587             writing dependent controls
10588           - Added Caret property, returning the current coords of the caret
10589           - Added ViewPortWidth and ViewPortHeight properties
10590           - Added Wrap property
10591           - Added CaretMoved event
10592           - Removed some old debug code
10593           - Split() can now create soft splits
10594           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
10595           - Added method to format existing text
10596           - Fixed size/alignment calculations to use viewport
10597           - RecalculateDocument now can handle changing line-numbers while
10598             calculating lines
10600         * TextBox.cs:
10601           - Added some wrap logic, we don't wrap if alignment is not left
10602           - Added casts for scrollbar var, base class switched types to
10603             also support RichTextBoxA
10604           - Implemented handling of scrollbar visibility flags
10606         * TextBoxBase.cs:
10607           - Switched scrollbars type to RichTextBoxScrollBars to support
10608             RichTextBox
10609           - Added tracking of canvas width/height
10610           - Switched scrollbars to be not selectable (to keep focus on text)
10611           - Added central CalculateDocument() method to handle all redraw
10612             requirements
10613           - Added ReadOnly support
10614           - Added WordWrap support
10615           - Fixed handling of Enter key (we now treat it as a DialogKey)
10616           - Fixed caret positioning when h or v scroll is not zero
10617           - Fixed placing/generation of vertical scrollbar
10618           - Added CalculateScrollBars() method to allow updating scrollbar
10619             limits and visibility
10620           - Fixed handling of horizontal scroll
10621           - Added handling of vertical scroll
10622           - Implemented auto-'jump' when caret moves to close to a left or
10623             right border and there is text to be scrolled into view (currently
10624             there's the potential for a stack overflow, until a bug in
10625             scrollbar is fixed)
10627 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
10628         
10629         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
10631 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
10633         * Mime.cs:
10634         - added inodes.
10635         - return application/x-zerosize for files with size zero
10636           (if no extension pattern matches).
10637         - check matches collection for strings too.
10638         - return only the first mime type if the name value
10639           collection has more than one mime type.
10641 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
10642         
10643         * PropertyGrid.cs: Cleaned up some TODOs
10644         * PropertyGridView.cs: Added support for UITypeEditors
10646 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
10647         
10648         * DataGrid.cs: clears cached value
10650 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
10652         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
10653         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
10654         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
10655         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
10656         
10657 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
10659         * ThemeWin32Classic.cs: fixes colour
10661 2005-06-15  Peter Bartok  <pbartok@novell.com>
10663         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
10664         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
10665         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
10666         * Control.cs: Added some MWFCategory and MWFDescription attributes
10667         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
10669 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
10671         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
10672         usage
10674 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
10676         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
10677         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
10678         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
10679         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
10680         * DataGrid.cs: default datagrid settings for Default Styles, fixes
10681         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
10683 2005-06-13  Jackson Harper  <jackson@ximian.com>
10685         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
10686         isn't printed when the user enables dropping. (X11 does accept
10687         drops).
10688         
10689 2005-06-13  Jackson Harper  <jackson@ximian.com>
10691         * TreeView.cs: Remove some TODOS.
10693 2005-06-13  Jackson Harper  <jackson@ximian.com>
10695         * Form.cs: Hook into the mdi framework.
10696         * MdiClient.cs: Use the base control collections add method so
10697         parents get setup correctly. Set the default back colour and dock
10698         style.
10699         * MdiChildContext.cs: New class, this bad actor handles an
10700         instance of an MDI window. Right now there is only basic
10701         support. You can drag, close, and resize windows. Minimize and
10702         Maximize are partially implemented.
10704 2005-06-13  Jackson Harper  <jackson@ximian.com>
10706         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
10707         freaky when both vals are negative. NOTE: There are probably other
10708         places in XplatUIX11 that this needs to be done.
10710 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
10712         * DataGrid.cs: implement missing methods, move KeyboardNavigation
10713         * DataGridColumnStyle.cs: fixes signature
10715 2005-06-12  Jackson Harper  <jackson@ximian.com>
10717         * XplatUIX11.cs: Use sizing cursors similar to the ones on
10718         windows.
10720 2005-06-11  Jackson Harper  <jackson@ximian.com>
10722         * StatusBarPanel.cs: Signature cleanups. Implement
10723         BeginInit/EndInit.
10725 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
10727         * DataGridTextBoxColumn.cs: Honors aligment
10728         * GridColumnStylesCollection.cs: Contains is case unsensitive
10729         * GridTableStylesCollection.cs: several fixes
10730         * DataGridTableStyle.cs: default column creation
10731         * DataGridDrawingLogic.cs: fixes
10732         * CurrencyManager.cs: ListName property
10733         * DataGrid.cs: multiple styles support
10734         * DataGridColumnStyle.cs: fixes
10735         
10737 2005-06-10  Peter Bartok  <pbartok@novell.com>
10739         * Control.cs(Select): Moved SetFocus call to avoid potential
10740           loops if controls change the active control when getting focus
10741         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
10742           the up/down buttons
10744 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
10746         * ImageListConverter.cs: Implemented
10748 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
10750         * MonthCalendar.cs: Wired in NumericUpDown control for year
10752 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
10754         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
10755           DoubleClick events, since they are not meant to be fired.
10757 2005-06-09  Peter Bartok  <pbartok@novell.com>
10759         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
10760           Jonathan's standalone controls into MWF, implemented missing
10761           events, attributes and methods; added xxxAccessible classes
10762         * AccessibleObject.cs: Made fields internal so other classes
10763           can change them if needed
10765 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
10767         * UpDownBase.cs: Complete implementation
10768         * NumericUpDown.cs: Complete implementation
10769         * DomainUpDown.cs: Complete implementation
10771 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
10773         * DataGridTextBoxColumn.cs: drawing fixes
10774         * DataGridCell.cs: fixes ToString method to match MSNet
10775         * DataGridTableStyle.cs: fixes
10776         * DataGridBoolColumn.cs: fixes, drawing
10777         * DataGridDrawingLogic.cs: fixes, new methods
10778         * DataGridTextBox.cs: Keyboard and fixes
10779         * DataGrid.cs:
10780                 - Keyboard navigation
10781                 - Scrolling fixes
10782                 - Row selection (single, multiple, deletion, etc)
10783                 - Lots of fixes
10784         
10785 2005-06-07  Jackson Harper  <jackson@ximian.com>
10787         * ThemeWin32Classic.cs: Clear the background area when drawing
10788         buttons.
10790 2005-06-06  Peter Bartok  <pbartok@novell.com>
10792         * ImageListStreamer.cs: Fixed signature for GetData
10793         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
10794         * ComboBox.cs:
10795           - Added missing ChildAccessibleObject class
10796           - Added missing OnXXXFocus overrides, switched to using those
10797             instead of the event handler
10798         * Control.cs:
10799           - Added Parent property for ControlAccessibleObject
10800           - Fixed signatures
10801           - Fixed attributes
10802           - Added ResetBindings()
10803         * ListBindingConverter.cs: Implemented some methods
10804         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
10805         * ImageList.cs: Implemented basic handle scheme, removed TODOs
10806         * ContainerControl.cs: Fixed signature, now subscribing to the
10807           ControlRemoved event instead of overriding the handler, LAMESPEC
10808         * CurrencyManager.cs: Added missing attribute
10809         * MonthCalendar.cs: Added missing properties
10811 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
10813         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
10814         
10815 2005-06-06  Gaurav Vaish and Ankit Jain
10817         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
10818         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
10819         
10820 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
10822         * Control.cs: fixes CreateParams Width / Height.
10824 2005-06-05  Peter Bartok  <pbartok@novell.com>
10826         * Win32DnD.cs: Removed compilation warnings
10828 2005-06-05  Peter Bartok  <pbartok@novell.com>
10830         * Control.cs (CreateParams): Since we don't know if one of the
10831           properties we use is overridden, lets make sure if we fail accessing
10832           we continue with a backup plan
10834 2005-06-05  Peter Bartok  <pbartok@novell.com>
10836         * Win32DnD.cs:
10837           - Removed debug output
10838           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
10839             struct
10840           - Plugged resource leak
10841         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
10842           MS size
10844 2005-06-05  Peter Bartok  <pbartok@novell.com>
10846         * XplatUIWin32.cs: Removed DnD code
10847         * Win32DnD.cs: Implemented drop source and drop target functionality
10849 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10851         * UpDownBase.cs: remove duplicate addition of event, enable some code
10852         that was commented out.
10853         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
10854         Validate input when a key is pressed. It works fine now for every
10855         combination of Hexadecimal. Only missing some drawing love when sharing
10856         space with other controls.
10858 2005-06-04  Peter Bartok  <pbartok@novell.com>
10860         * Control.cs:
10861           - We need to pass a window for DragDrop, so enable callback events
10862           - Added DnD callback events when being a DragSource
10863         * XplatUI.cs (StartDrag): Added window handle argument
10864         * XplatUIDriver.cs (StartDrag): Added window handle argument
10865         * QueryContinueDragEventArgs: Made fields internally accessible so
10866           drivers can set them
10867         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
10868           can set them
10870 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
10872         * DataGridTextBoxColumn.cs: column text editing
10873         * DataGridTableStyle.cs: Respect columns styles created by the user
10874         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
10875         * DataGridBoolColumn.cs: bool column editing
10876         * DataGrid.cs: fixes to scrolling, properties, etc
10877         * DataGridTextBox.cs: handle keyboard
10878         * DataGridColumnStyle.cs: fixes
10880 2005-06-02  Jackson Harper  <jackson@ximian.com>
10882         * ImageListStreamer.cs: Somewhat broken implementation of
10883         GetObjectData. The RLE needs some work to match MS properly.
10885 2005-06-02  Jackson Harper  <jackson@ximian.com>
10887         * X11Dnd.cs: Attempting to keep at least one file in MWF
10888         monostyled.
10890 2005-06-02  Peter Bartok  <pbartok@novell.com>
10892         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
10893           that way
10895 2005-06-02  Peter Bartok  <pbartok@novell.com>
10897         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
10898         * XplatUI.cs: Added DoDragDrop() method
10899         * XplatUIDriver.cs: Added DoDragDrop() method
10901 2005-06-02  Jackson Harper  <jackson@ximian.com>
10903         * Splitter.cs: Implement BorderStyle.
10905 2005-06-02  Jackson Harper  <jackson@ximian.com>
10907         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
10908         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
10909         X11 using XDND.
10911 2005-06-02  Peter Bartok  <pbartok@novell.com>
10913         * DataObject.cs:
10914           - Added Data setter
10915           - Fixed broken insertion code for SetData, now also
10916             overwrites any existing entry of the same format name
10917         * Hwnd.cs: Added list of pointers that automatically gets
10918           freed when the window is disposed
10919         * XplatUI.cs: Call driver initialization method when loading
10920           a driver
10921         * Control.cs:
10922           - OnDragLeave takes EventArgs, not DragEventArgs
10923           - Added setting of WS_EX_ACCEPTFILES style when dropping is
10924             supported
10925           - Forces style update when drop state changes
10926         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
10927           not perfect since we cannot (yet) call the IDataObject.GetData()
10928           method, we keep getting 0x80004005 error, dunno why)
10930 2005-06-02  Peter Bartok  <pbartok@novell.com>
10932         * DragEventArgs.cs: Make fields internal so we can cache the
10933           object and re-set the fields from XplatUI
10935 2005-06-02  Jackson Harper  <jackson@ximian.com>
10937         * Control.cs: Add some internal methods so the DnD subsystem can
10938         raise DnD events. Also call into the driver when AllowDrop is set.
10939         * XplatUI.cs:
10940         * XplatUIDriver.cs: New method for setting whether or not a window
10941         is allowed to accept drag and drop messages.
10942                 
10943 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
10944         
10945         * ScrollBar.cs: Make sure that values sent in Scroll events
10946         are always between Maximum and Minimum.
10948 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
10950         * Menu.cs: Call MenuChanged when menuitem visibility has been
10951         changed.
10952         * MenuItem.cs: Rebuild menu when item is (not) visible.
10953         * MainMenu.cs: MainMenu has special MenuChanged.
10954         * Theme.cs: Caption and FrameBorderSize are not fixed.
10955         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
10956         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
10957         * XplatUIX11.cs,
10958         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
10959         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
10961 2005-05-30  Jackson Harper  <jackson@ximian.com>
10963         * DataFormat.cs: We can't statically initialize this stuff because
10964         it calls into the xplatui and could create a loop. So we lazy init
10965         it.
10967 2005-05-28  Jackson Harper  <jackson@ximian.com>
10969         * Control.cs: Proper implementation of Product(Name/Version).
10971 2005-05-27  Jackson Harper  <jackson@ximian.com>
10973         * DataObject.cs: Dont crash if no data is found.
10975 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
10976         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
10977                 as per status page, guessing it should be set to true
10979 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
10981         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
10982         * DataGridTableStyle.cs: set proper formatting text, def header text
10983         * ThemeWin32Classic.cs: new themable paramaters
10984         * DataGridBoolColumn.cs: paint check box, get data, fixes
10985         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
10986         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
10987         * DataGridColumnStyle.cs: fixes
10988         * Theme.cs: new themable paramaters
10989                 
10990 2005-05-26  Peter Bartok  <pbartok@novell.com>
10992         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
10994 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
10995         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
10997 2005-05-24  Peter Bartok  <pbartok@novell.com>
10999         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
11000           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
11001           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
11002           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
11003           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
11004           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
11005           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
11006           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
11007           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
11008           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
11009           missing attributes, etc
11010         * DataGridPreferredColumnWidthTypeConverter.cs: Added
11012 2005-05-24  Peter Bartok  <pbartok@novell.com>
11014         * Help.cs: Added, implemented trivial functions, throws up MessageBox
11015           when user tries to get help
11016         * DataObject.cs, DataFormats.cs, LinkArea.cs,
11017           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
11018           to suppress warnings
11019         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
11020           avoid unreachable code warning
11022 2005-05-20  Peter Bartok  <pbartok@novell.com>
11024         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
11026 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
11028         * DataGridTextBoxColumn.cs: Basic painting methods
11029         * DataGridTableStyle.cs: Set table style in the column
11030         * ThemeWin32Classic.cs: Use Theme for colors
11031         * DataGridDrawingLogic.cs: Implement more drawing
11032         * DataGrid.cs: drawing, theming, enhacements, fixes
11033         * DataGridColumnStyle.cs: fixes, drawing
11034         * Theme.cs: theming for Datagrid
11036 2005-05-20  Peter Bartok  <pbartok@novell.com>
11038         * Cursor.cs: Implemented GetObjectData() method
11040 2005-05-20  Peter Bartok  <pbartok@novell.com>
11042         * Cursors.cs: Added setting of cursor name
11043         * Cursor.cs:
11044           - Implemented constructors
11045           - Implemented Draw and DrawStretched
11046           - Implemented Current property
11047           - Implemented == and != operators
11048           - Implemented Dispose()
11049           - Implemented ToString
11050           - Added missing attributes
11051         * XplatUIX11.cs:
11052           - Added missing reset for OverrideCursor when DoEvents is called
11053           - Fixed creation of cursor, logic was wrong
11054         * XplatUIWin32.cs:
11055           - Added missing reset for OverrideCursor when DoEvents is called
11056           - Fixed creation of cursor, bit arrays were swapped
11057         * Clipboard.cs: Removed obsolete MonoTODO attribute
11059 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
11061         * ComboBox.cs: fixes OnSelectedItemChanged
11062         * ControlBindingsCollection.cs: fixes item range check
11064 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
11066         * UpDownBase.cs:
11067                 - Calc preferred height properly
11068                 - Implement missing properties
11069                 
11070         * NumericUpDown.cs: Implement missing events
11072 2005-05-19  Jackson Harper  <jackson@ximian.com>
11074         * TabControl.cs: New method that resizes the tab pages before
11075         redrawing them. This as needed as the control is double buffered
11076         and sizing will not be recalculated unless ResizeTabPages is
11077         called.
11078         * TabPage.cs: Set base.Text instead of Text in the constructor so
11079         that UpdateOwner does not get called. Use the new Redraw method of
11080         TabControl instead of Refresh so the sizing is recalculated.
11081         * ThemeWin32Classic.cs: Draw the text for button tabs.
11083 2005-05-19  Jackson Harper  <jackson@ximian.com>
11085         * Control.cs: Paint control background images. Fix typo where
11086         PaintControlBackground was not getting called correctly.
11088 2005-05-19  Peter Bartok  <pbartok@novell.com>
11090         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
11091           I can investigate, apparently I broke FileDialog
11093 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
11095         * AxHost.cs: Some simple properties.
11096         * Control.cs: window must be accessible after ctor.
11097         * Form.cs: Added TransparencyKey property.
11098         * TextBoxBase.cs: Implemented Clear. Text property can be null.
11099         * XplatUIWin32.cs: SetBorderStyle implemented.
11101 2005-05-18  Peter Bartok  <pbartok@novell.com>
11103         * DataObject.cs: Entries are not global but particular to the
11104           DataObject, now it behaves that way
11105         * XplatUIWin32.cs: Implemented Clipboard methods
11106         * Clipboard.cs: Implemented
11107         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
11108         * XplatUIOSX.cs: Updated to final clipboard prototypes
11109         * XplatUIX11.cs: Implemented Clipboard methods
11110         * XplatUIDriver.cs: Updated to final clipboard prototypes
11111         * XplatUIStructs.cs:
11112           - Added BITMAPINFOHEADER struct
11113           - Added ClipboardFormats enum
11114         * X11Structs.cs:
11115           - Added ClipboardStruct
11116           - Added Atom enum items for clipboard types
11117           - Fixed atom types for Selection event structures
11118         * DataFormats.cs:
11119           - Added internal properties and methods for drivers to enumerate
11120             all known formats
11121           - Switched initialization method to allow drivers to assign their
11122             own IDs even for the MS predefined clipboard IDs
11123         * XplatUI.cs: Updated to final clipboard interface
11125 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
11126         * PropertyGridView.cs: Fixed compiler warnings.
11128 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
11129         * PropertyGrid.cs: Added some event calls
11130         * PropertyGridView.cs: Change drawing code to use double buffering
11131         * PropertyGridTextBox.cs: Changed Text property name
11132         * GridItem.cs: Added Bounds property.
11133         * GridEntry.cs: Added Bounds property.
11135 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
11137         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
11138         since GetType() may not return the correct type if the object is
11139         a remoting proxy.
11141 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
11143         * TreeNodeCollection.cs: fixes get/set item ranges
11144         
11145 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
11147         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
11148                 
11149 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
11151         * ComboBox.cs: Fix item range comparation
11152         * ListView.cs: Fix item range comparation
11154 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
11156         * FontDialog.cs:
11157           - Clear example panel when OnPaint is called
11158           - Better solution for displaying the example panel text
11159           - Select default indexes in the ListBoxes
11161 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
11163         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
11165 2005-05-11  Peter Bartok  <pbartok@novell.com>
11167         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
11168         * SelectionRangeConverter.cs: Implemented
11169         * PropertyGrid.cs: Fixed attribute value
11170         * Control.cs:
11171           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
11172           - Added Sebastien Pouliot's CAS Stack Propagation fixes
11173         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
11174           that's common to all drivers. First methods to go there are
11175           Sebastien Pouliot's CAS Stack Propagation helper methods
11176         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
11177           Sebastien Pouliot for CAS Stack Propagation
11179 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
11181         * OSXStructs.cs:
11182           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
11184 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
11186         * DataGridTextBoxColumn.cs: fixed some members
11187         * GridColumnStylesCollection.cs: indexed column is case insensitive
11188         * DataGridTableStyle.cs: fixes
11189         * ThemeWin32Classic.cs: add new theme parameter
11190         * Theme.cs: add new theme parameter
11191         * DataGridDrawingLogic.cs: Datagrid's drawing logic
11192         * DataGrid.cs: fixes, new internal properties, etc.
11193         * DataGridColumnStyle.cs: allows to set grid value
11194         *
11196 2005-05-10  Peter Bartok  <pbartok@novell.com>
11198         * AccessibleObject.cs:
11199           - Removed MonoTODO attribute on help, method is correct
11200           - Fixed Bounds property
11201         * AxHost.cs: Moved MonoTODO
11202         * ButtonBase.cs: Now setting AccessibleObject properties
11203         * RadioButton.cs: Setting proper AccessibleObject role
11204         * CheckBox.cs: Setting proper AccessibleObject role
11205         * ControlBindingsCollection.cs: Added properties, methods and attributes
11206         * DataFormats.cs: Fixed awkward internal API, and changed to enable
11207           userdefined DataFormats.Format items as well
11208         * ListControl.cs: Removed data_member from the public eye
11209         * OpenFileDialog.cs:
11210           - Made class sealed
11211           - Added missing attributes
11212         * SaveFileDialog.cs: Added missing attributes
11213         * ImageListStreamer.cs: Fixed code that caused warnings
11214         * LinkLabel.cs: Removed unreachable code
11215         * TreeView.cs: Fixed code that caused warnings
11216         * PropertyGridView.cs: Fixed code that caused warnings
11217         * GridColumnStylesCollection.cs: Added missing attributes
11218         * GridTableStylesCollection: Added missing attribute
11219         * PropertyManager: Added .ctor
11220         * SecurityIDType: Added
11221         * DataObject.cs: Implemented class
11222         * LinkArea.cs: Added missing attribute
11224 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
11226         * RadioButton.cs: call base method to allow to fire OnClick event
11227         * UpDownBase.cs: OnMouseUp call base method
11228         * CheckedListBox.cs: call base method before returning
11229         * TrackBar.cs: call base method before returning
11230         
11232 2005-05-10  Peter Bartok  <pbartok@novell.com>
11234         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
11235           for messages
11237 2005-05-10  Peter Bartok  <pbartok@novell.com>
11239         * DataFormats.cs: Implemented
11240         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
11241           XplatUIX11.cs: Added Clipboard APIs
11242         * XplatUIWin32.cs: Implemented Clipboard APIs
11243         * FolderBrowserDialog.cs: Added missing event, attributes
11245 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
11247         * CheckBox.cs: call base method to allow to fire OnClick event
11249 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
11251         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
11253 2005-05-06  Peter Bartok  <pbartok@novell.com>
11255         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
11256         * Screen.cs: Implemented
11257         * HelpNavigator.cs: Added
11258         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
11259           property
11260         * HelpProvider.cs: Implemented all we can do until we have a CHM
11261           help library (which means that "What's This" does work now)
11263 2005-05-06  Jackson Harper  <jackson@ximian.com>
11265         * XplatUIX11.cs: Fix waking up the main loop.
11266                 
11267 2005-05-05  Peter Bartok  <pbartok@novell.com>
11269         * XplatUI.cs: Updated revision
11270         * Form.cs: Removed enless loop
11271         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
11272         * Label.cs (OnPaint): Added call to base.OnPaint()
11273         * ToolTip.cs: Made ToolTipWindow reusable for other controls
11274         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
11275         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
11276         * AxHost.cs: Added
11277         * ButtonBase.cs: Moved base.OnPaint() call to end of method
11278         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
11279           to ToolTip.ToolTipWindow for drawing and size methods; this allows
11280           reuse of ToolTipWindow by other controls
11281         * SizeGrip.cs: Moved base.OnPaint() call to end of method
11282         * XplatUIX11.cs: Now clipping drawing area (experimental)
11283         * PictureBox.cs: Moved base.OnPaint() call to end of method
11284         * Theme.cs: Fixed ToolTip abstracts to match new format
11285         * ErrorProvider.cs: Implemented
11287 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
11289         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
11290         * LinkLabel.cs:
11291                 - Adds cursors
11292                 - Handles focus
11293                 - Implements LinkBehavior
11294                 - Fixes many issues
11296 2005-05-03  Jackson Harper  <jackson@ximian.com>
11298         * ListView.cs: Calculate the scrollbar positioning on resize and
11299         paint, so they get put in the correct place.
11301 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
11303         * ColorDialogs.cs: The small color panels are now handled by
11304           SmallColorControl. This fixes drawing of the focus rectangle
11305           and adds a 3D border.
11307 2005-05-03  Peter Bartok  <pbartok@novell.com>
11309         * Control.cs: Modified version of Jonathan Chamber's fix for
11310           double-buffering
11312 2005-05-03  Jackson Harper  <jackson@ximian.com>
11314         * ListView.cs: Remove redraw variable. Control now handles whether
11315         or not a redraw needs to be done, and will only raise the paint
11316         event if redrawing is needed.
11318 2005-05-03  Jackson Harper  <jackson@ximian.com>
11320         * Splitter.cs: No decorations for the splitter form. Cache the
11321         hatch brush.
11323 2005-05-03  Jackson Harper  <jackson@ximian.com>
11325         * TreeView.cs: Use dashed lines to connect nodes. Use the
11326         ControlPaint method for drawing the focus rect instead of doing
11327         that in treeview.
11329 2005-05-02  Peter Bartok  <pbartok@novell.com>
11331         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
11333 2005-04-29  Jackson Harper  <jackson@ximian.com>
11335         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
11336         entire image buffer. Just clear the clipping rectangle.
11338 2005-04-29  Jackson Harper  <jackson@ximian.com>
11340         * ThemeWin32Classic.cs: Don't draw list view items that are
11341         outside the clipping rectangle.
11343 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
11345         * ListBox.cs: added horizontal item scroll
11347 2005-04-29  Jackson Harper  <jackson@ximian.com>
11349         * ThemeWin32Classic.cs: Remove some old debug code that was
11350         causing flicker with the new double buffering code.
11352 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
11354         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
11355         behave like combobox and comboboxlist (still not sure if this is
11356         correct though).
11358 2005-04-28  Jackson Harper  <jackson@ximian.com>
11360         * ThemeWin32Classic.cs: Don't fill the middle of progress
11361         bars. This fills areas outside of the clip bounds that don't need
11362         to be filled.
11364 2005-04-28  Jackson Harper  <jackson@ximian.com>
11366         * Control.cs: Don't expose functionality to touch the image buffers.
11367         * ProgressBar.cs:
11368         * ListView.cs: We do not need to (and no longer can) manipulate
11369         the image buffers directly. All of this is handled by Control.
11371 2005-04-28  Peter Bartok  <pbartok@novell.com>
11373         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
11374           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
11375           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
11377 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
11379         * Combobox:
11380                 - Adjust control's height for non-simple comboboxes (bug fix)
11381                 - Remove dead code
11382         * MenuAPI.cs: remove unused var
11383         * ScrollBar.cs: remove unsed var
11384                  
11385         * ListBox.cs: unselect items when clearing
11387 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
11389         * ListControl.cs: honors OnPositionChanged and default Selected Item
11390         * ListBox.cs: unselect items when clearing
11392 2005-04-27  Jackson Harper  <jackson@ximian.com>
11394         * X11Keyboard.cs: Initialize a default keyboard and give a warning
11395         if a "correct" keyboard is not found. This will make us not crash,
11396         but might give some users bad keyboard layouts...seems to be the
11397         same thing rewind does.
11399 2005-04-27  Jackson Harper  <jackson@ximian.com>
11401         * BindingManagerBase.cs: Attach the current/position changed
11402         handlers to their respective events.
11404 2005-04-27  Jackson Harper  <jackson@ximian.com>
11406         * Control.cs: Make sure that the first WM_PAINT does a full draw,
11407         not just a blit.
11408         * ThemeWin32Classic.cs: Don't fill the background for picture
11409         boxes. This could overright user drawing.
11410         * ComboBox.cs: Just fill the clipping rect not the entire client
11411         rect when drawing the background. This prevents pieces of the
11412         image buffer from getting overwritten and is theoretically faster.
11414 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
11416         * ComboBox.cs: Databinding support fixes, fire missing events
11417         * ListControl.cs: implement missing methods and properties, fixes
11418         * ThemeWin32Classic.cs: Databiding support on Drawing
11419         * CheckedListBox.cs: Databinding support fixes, fire missing events
11420         * ListBox.cs: Databinding support fixes, fire missing events
11421         
11422 2005-04-25  Peter Bartok  <pbartok@novell.com>
11424         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
11426 2005-04-25  Jackson Harper  <jackson@ximian.com>
11428         * TreeView.cs: Use the horizontal scrollbars height not width when
11429         determining how much of the client area is available.
11431 2005-04-25  Jackson Harper  <jackson@ximian.com>
11433         * Control.cs: Double buffering is handled differently now. As per
11434         the spec, the extra buffer is created in the WM_PAINT message and
11435         passed down to the control's drawing code.
11436         * GroupBox.cs:
11437         * Label.cs:
11438         * CheckBox.cs:
11439         * ProgressBar.cs:
11440         * RadioButton.cs:
11441         * ColorDialog.cs:
11442         * ComboBox.cs:
11443         * PropertyGridView.cs:
11444         * UpDownBase.cs:
11445         * MessageBox.cs:
11446         * MenuAPI.cs:
11447         * ListView.cs:
11448         * ButtonBase.cs:
11449         * SizeGrip.cs:
11450         * ScrollBar.cs:
11451         * ListBox.cs:
11452         * TrackBar.cs:
11453         * ToolBar.cs:
11454         * PictureBox.cs:
11455         * DateTimePicker.cs:
11456         * StatusBar.cs:
11457         * TreeView.cs: Update to new double buffering system.
11458         * MonthCalendar.cs: Uncomment block, as Capture is now
11459         working. Update to new double buffering
11460         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
11461         * PaintEventArgs.cs: New internal method allows us to set the
11462         graphics object. This is used for double buffering.
11463         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
11464         rectangle. The internal paint_area var has been removed from
11465         StatusBar. The clipping rect should be used instead.
11466         * Theme.cs: Give the PictureBox drawing method a clipping rect.
11467         * TabPage.cs: The RefreshTabs method was removed, so just call the
11468         tab controls Refresh method now.
11469         * TabControl.cs: Update to new double buffering. Make sure the
11470         handle is created before sizing the tab pages, otherwise we will
11471         get stuck in a loop.
11473 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
11475         * LinkLabel.cs: Fix typo, bug #74719; patch
11476           from Borja Sanchez Zamorano
11478 2005-04-22  Jackson Harper  <jackson@ximian.com>
11480         * TreeNode.cs: Implement Handle stuff.
11481         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
11483 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
11485         * DataGridTextBoxColumn.cs: call base constructors, fixes
11486         * GridColumnStylesCollection.cs: missing events, methods, and functionality
11487         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
11488         * DataGridTableStyle.cs: implements create default column styles
11489         * DataGridBoolColumn.cs: which types can handle
11490         * DataGrid.cs: missing methods, fixes, new functionality
11491         * DataGridColumnStyle.cs: fixes
11493 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
11494         * FolderBrowserDialog.cs:
11495         - Use a thread to fill the TreeView
11496         - Adjusted some sizes
11498 2005-04-19  Peter Bartok  <pbartok@novell.com>
11500         * LinkLabel.cs: (Re-)create the pieces when setting the Text
11501           property. Fixes #74360.
11503 2005-04-19  Jackson Harper  <jackson@ximian.com>
11505         * XEventQueue.cs: Lock when getting the lockqueue size.
11506         * PictureBox.cs: Call base OnPaint
11507         
11508 2005-04-19  Peter Bartok  <pbartok@novell.com>
11510         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
11511           messages were no longer being processed (this broke BeginInvoke)
11513           
11514 2005-04-18  Jackson Harper  <jackson@ximian.com>
11516         * TreeView.cs: buglet that caused node images to get drawn
11517         regardless of whether or not they were in the clipping rectangle.
11519 2005-04-18  Jackson Harper  <jackson@ximian.com>
11521         * CurrencyManager.cs: There are four rules for GetItemProperties:
11522         - If the type is an array use the element type of the array
11523         - If the type is a typed list, use the type
11524         - If the list contains an Item property that is not an object, use
11525         that property
11526         - use the first element of the list if there are any elements in
11527         the list.
11528         
11529 2005-04-17  Jackson Harper  <jackson@ximian.oom>
11531         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
11532         click. This handles offsets for scrolling properly and reduces
11533         memory. Also fixed GetNode to not offset now that TopNode works
11534         properly.
11535         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
11536         
11537 2005-04-17  Jackson Harper  <jackson@ximian.com>
11539         * CursorConverter.cs: Initial implementation.
11541 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
11543         * ListControl.cs: work towards complex data binding support on ListControl
11544         * CurrencyManager.cs: work towards complex data binding support on ListControl
11545         * ListBox.cs: work towards complex data binding support on ListControl
11548 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
11550         * GridTableStylesCollection.cs: fixes name and constructor
11551         * DataGridTableStyle.cs: fixes
11552         * DataGridBoolColumn.cs: fixes names and constructors
11553         * DataGrid.cs: define methods and properties. Some init implementations
11554         * DataGridCell.cs: define methods and properties. Some init implementations
11555         * GridTablesFactory.cs: Define methods and properties
11557 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
11559         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
11560         graphics port changes.  We still want the coordinates in global screen
11561         coordinates.
11563 2005-04-14  Jackson Harper  <jackson@ximian.com>
11565         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
11566         check plus minus or checkbox clicks unless those features are enabled.
11568 2005-04-14  Jackson Harper  <jackson@ximian.com>
11570         * TreeView.cs: Add methods for setting the top and bottom visible
11571         nodes. TreeNode::EnsureVisible uses these methods.
11572         * TreeNode.cs: Implement EnsureVisible
11574 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
11576         * Form.cs: Pospone menu assignation if the window has not been created yet
11577         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
11578         size and position
11580 2005-04-12  Jackson Harper  <jackson@ximian.com>
11582         * TreeView.cs: Set the TopNode properly when scrolling
11583         occurs. This has the added benifit of reducing the amount of
11584         walking that needs to be done when drawing. Also removed an old
11585         misleading TODO.
11586         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
11587         
11588 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
11590         * Timer.cs: fixes interval setting when the timer is already enabled
11591         
11592 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
11594         * FolderBrowserDialog.cs: First approach
11596 2005-04-09  Peter Bartok  <pbartok@novell.com>
11598         * FolderBrowserDialog: Added
11600 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
11602         * LinkLabel.cs: move drawing code into the theme
11603         * ThemeWin32Classic.cs: drawing code and painting background bugfix
11604         * Theme.cs: define DrawLinkLabel method
11606 2005-04-05  Jackson Harper  <jackson@ximian.com>
11608         * BindingContext.cs: Use weak references so these bad actors don't
11609         stay alive longer then they need to.
11611 2005-04-05  Jackson Harper  <jackson@ximian.com>
11613         * ListControl.cs: Basic implementation of complex databinding.
11614         * ComboBox.cs:
11615         * ListBox.cs: Add calls to ListControl databinding methods.
11617 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
11619         * FileDialog.cs:
11620           - Don't change PopupButtonState to Normal when the
11621             PopupButton gets pressed several times.
11622           - Renamed ButtonPanel to PopupButtonPanel
11624 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
11626         * ColorDialog.cs: Use cached objects instead of creating them
11627         * LinkLabel.cs: Use cached objects instead of creating them
11628         * Splitter.cs: Use cached objects instead of creating them
11629         * FontDialog.cs: Use cached objects instead of creating them
11630         * PropertyGridView.cs: Use cached objects instead of creating them
11631         * MessageBox.cs: Use cached objects instead of creating them
11632         * FileDialog.cs: Use cached objects instead of creating them
11633         * ThemeWin32Classic.cs: Use cached objects instead of creating them
11634         * TreeView.cs: Use cached objects instead of creating them
11635         
11636 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
11638         * Control.cs: use Equals to compare the font since no == op
11639         * ScrollBar.cs: use Equals to compare the font since no == op
11641 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
11643         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
11645 2005-04-01  Jackson Harper  <jackson@ximian.com>
11647         * Binding.cs: Implement IsBinding.
11648         * BindingManagerBase.cs:
11649         * PropertyManager.cs:
11650         * CurrencyManager.cs: Add IsSuspended property.
11652 2005-04-01  Jackson Harper  <jackson@ximian.com>
11654         * Binding.cs: Had some IsAssignableFrom calls backwards.
11656 2005-04-01  Jackson Harper  <jackson@ximian.com>
11658         * Binding.cs: Handle null data members when pulling data.
11659         * PropertyManager.cs: Handle the data member being a property that
11660         does not exist.
11662 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
11664         * DataGridTextBoxColumn.cs: fixes signature
11665         * DataGrid.cs: calls right constructor
11667 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
11669         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
11670         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
11671         * GridTableStylesCollection.cs: implements GridTableStylesCollection
11672         * DataGridTableStyle.cs: implements DataGridTableStyle
11673         * DataGridBoolColumn.cs: implements DataGridBoolColumn
11674         * DataGridTextBox.cs: implements DataGridTextBox
11675         * DataGridColumnStyle.cs: implements DataGridColumnStyle
11677 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
11679         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
11681 2005-03-29  Peter Bartok  <pbartok@novell.com>
11683         * Application.cs:
11684           - Properly implemented CompanyName property
11685           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
11686             returns a path that includes CompanyName, ProductName and
11687             Version (fixes bug #70330)
11689 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
11691         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
11692           fixes bug #72588.
11694 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
11696         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
11697         
11698           - Added ReadOnly CheckBox
11699           - Further refactoring: moved some code from Open-/SaveFileDialog
11700             to FileDialog
11702 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
11704         * OpenFileDialog.cs: Fixed CheckFileExists
11705         * FileDialog.cs:
11706           Moved FileView and DirComboBox outside FileDialog class.
11707           They can now be used outside FileDialog
11709 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
11711         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
11712         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
11714 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
11716         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
11717           - Added missing CreatePrompt property in SaveDialog
11718           - Overall SaveDialog handling should be better now
11719           - Added non standard ShowHiddenFiles property
11720           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
11721           - Added InitialDirectory and RestoreDirectory support
11723 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
11725         * FileDialog.cs: Made dirComboBox usable
11727 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
11729         * FileDialog.cs: Added Filter support (case sensitiv)
11731 2005-03-24  Jackson Harper  <jackson@ximian.com>
11733         * TabControl.cs: Need a couple more pixels for the lines.
11735 2005-03-23  Jackson Harper  <jackson@ximian.com>
11737         * TabControl.cs: Give the tab page focus when it is selected.
11739 2005-03-23  Jackson Harper  <jackson@ximian.com>
11741         * TabControl.cs: Account for the drawing of tabs borders when
11742         invalidating. If the slider was clicked dont do click detection on
11743         the tabs.
11745 2005-03-23  Jackson Harper  <jackson@ximian.com>
11747         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
11749 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
11751         * CategoryGridEntry.cs: Added
11752         * GridItem.cs: Added helper properties
11753         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
11754         * GridEntry.cs: Updated code for collection
11755         * PropertyGrid.cs: Cleaned up some formatting
11756         * PropertyGridView.cs: Added drop down functionality for enums.
11757         * GridItemCollection.cs: Added enumerator logic
11758         * PropertyGridEntry.cs: Added
11760 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
11762         * FileDialog.cs:
11763           - Removed unnecessary commented code
11764           - Fixed handling for entering the filename manually in the combobox
11766 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
11768         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
11770 2005-03-18  Peter Bartok  <pbartok@novell.com>
11772         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
11773           them being touching the border
11775 2005-03-18  Peter Bartok  <pbartok@novell.com>
11777         * TextControl.cs: Quick hack to center text better
11779 2005-03-18  Peter Bartok  <pbartok@novell.com>
11781         * ControlPaint.cs:
11782           - Don't throw NotImplemented exceptions, just print a notice once
11783             instead (requested by Miguel). This makes running existing SWF
11784             apps a bit easier
11785         * Control.cs:
11786           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
11787           - Added context menu trigger on right click
11788         * Panel.cs: Trigger invalidate on resize
11789         * StatusBar.cs:
11790           - Removed old double-buffer drawing
11791           - Added ResizeRedraw style to force proper update of statusbar
11792         * ListView.cs:
11793           - Removed debug output
11794         * ThemeWin32Classic.cs:
11795           - Fixed drawing of status bar, now draws Text property if there
11796             are no defined panels
11798 2005-03-18  Jackson Harper  <jackson@ximian.com>
11800         * ImageList.cs: When the image stream is set pull all the images
11801         from it.
11802         * ImageListStreamer.cs: Implement reading image list streams.
11804 2005-03-18  Peter Bartok  <pbartok@novell.com>
11806         * ThemeWin32Classic.cs (DrawPictureBox):
11807           - Fixed calculations for centered drawing
11808           - Fixed drawing for normal mode, not scaling the image on normal
11810 2005-03-18  Peter Bartok  <pbartok@novell.com>
11812         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
11813           textbox
11814         * FileDialog.cs:
11815           - Made Open/Save button the accept button for FileDialog
11816           - Tied the cancel button to the IButtonControl cancel button
11817           - Save/Open now properly builds the pathname
11818           - Now handles user-entered text
11819           - Preventing crash on right-click if no item is selected
11820           - Fixed Text property, now uses contents of textbox
11821           - Fixed SelectedText property, now just returns the text part that
11822             is selected in the text box
11824 2005-03-18  Jackson Harper  <jackson@ximian.com>
11826         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
11827         rect, make sure to de-adjust the interior rect after drawing the
11828         tab text.
11830 2005-03-18  Peter Bartok  <pbartok@novell.com>
11832         * MenuAPI.cs: Remove menu *before* executing selected action to
11833           prevent the menu from 'hanging around'
11834           
11835 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
11837         * XplatUIOSX.cs: Implemented WorkingArea property
11839 2005-03-17  Peter Bartok  <pbartok@novell.com>
11841         * XplatUIX11.cs: Fixed menu coord calculations
11842         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
11843           for calculating offsets
11845 2005-03-17  Peter Bartok  <pbartok@novell.com>
11847         * Hwnd.cs: Do not consider menu presence for default client
11848           rectangle location/size
11849         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
11850           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
11851           translation functions
11852         * FileDialog.cs: Fixed (what I presume is a) typo
11854 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
11856         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
11857           X access (avoids X-Async errors)
11859 2005-03-16  Jackson Harper  <jackson@ximian.com>
11861         * TabControl.cs: Raise the SelectedIndexChanged event.
11863 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
11865         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
11866           - Removed vertical ToolBar and replaced it with a custom panel
11867             (desktop and home button already work)
11868           - Added Help button (some controls get resized or relocated then)
11869           - Draw correct text depending on Open or Save.
11870           - Fixed some typos...
11872 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
11874         * ScrollBar.cs:
11875           - Only change Maximum and Minimum when need it (bug fix)
11877 2005-03-15  Peter Bartok  <pbartok@novell.com>
11879         * Form.cs: Use Handle for icon, to trigger creation if
11880           the window does not yet exist
11881         * Control.cs:
11882           - CanSelect: Slight performance improvement
11883           - Focus(): Preventing possible recursion
11884           - Invalidate(): Removed ControlStyle based clear flag setting
11885           - WM_PAINT: fixed logic for calling OnPaintBackground
11886           - WM_ERASEBKGND: Fixed logic, added call to new driver method
11887             EraseWindowBackground if the control doesn't paint background
11888         * XplatUIWin32.cs:
11889           - Moved EraseWindowBackground() method to internal methods
11890           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
11891             is sent via SendMessage on BeginPaint call on Win32
11892         * XplatUIX11.cs:
11893           - Added EraseWindowBackground() method
11894           - No longer sends WM_ERASEBKGND on .Expose, but on call to
11895             PaintEventStart, which more closely matches Win32 behaviour
11896           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
11897           - Fixed SetFocus() to properly deal with client and whole windows
11898         * Hwnd.cs: Added ErasePending property
11899         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
11900         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
11902 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
11904         * XplatUIOSX.cs:
11905           - Fix hard loop when timers exist.
11906           - Fix bugs with middle and right click for 3 button mice.
11908 2005-03-11  Peter Bartok  <pbartok@novell.com>
11910         * XplatUIX11.cs:
11911           - get_WorkingArea: Need to call X directly, GetWindowPos only
11912             returns cached data now
11913           - Added sanity check to GetWindowPos hwnd usage
11915 2005-03-11  Jackson Harper  <jackson@ximian.com>
11917         * BindingManagerBase.cs: This method isn't used anymore as
11918         PullData now updates the data in the control.
11920 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
11922         * Form.cs: fixes menu drawing on X11
11923         * MenuAPI.cs:  fixes menu drawing on X11
11925 2005-03-11  Peter Bartok  <pbartok@novell.com>
11927         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
11928           from Jonathan Gilbert; should fix bug #73606
11929         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
11930           in Screen coordinates. Thanks, Jordi.
11931         * Form.cs: Added missing attribute
11933 2005-03-11  Peter Bartok  <pbartok@novell.com>
11935         * Form.cs:
11936           - Rudimentary Mdi support
11937           - Removed outdated FormParent code
11938           - Implemented lots of missing properties and methods, still missing
11939             transparency support
11940           - Added missing attributes
11941           - Implemented support for MaximumBounds
11942           - Added firing of various events
11943         * XplatUI.cs: Added SetIcon() method
11944         * XplatUIDriver.cs: Added SetIcon() abstract
11945         * XplatUIOSX.cs: Stubbed out SetIcon() method
11946         * XplatUIX11.cs:
11947           - Implemented SetIcon() support
11948           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
11949           - Switched to unix line endings
11950         * XplatUIWin32.cs:
11951           - Made POINT internal so for can access it as part of MINMAX
11952           - Implemented SetIcon() support
11953           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
11954             native Mdi support again, might have to go managed)
11955         * Control.cs: Now fires the StyleChanged event
11956         * MdiClient.cs: Added; still mostly empty
11958 2005-03-10  Peter Bartok  <pbartok@novell.com>
11960         * SaveFileDialog.cs: Added emtpy file
11962 2005-03-08  Peter Bartok  <pbartok@novell.com>
11964         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
11965           in turn triggers OnCreateContro) when creating a handle for the
11966           first time.
11967         * TextControl.cs: Fixed endless loop in certain cases when
11968           replacing the current selection
11970 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
11972         * ScrollBar.cs:
11973           - Honors NewValue changes in Scroll events allowing apps to change it
11974           - Adds First and Last Scroll events
11975           - Fixes Thumb events
11977 2005-03-07  Peter Bartok  <pbartok@novell.com>
11979         * Hwnd.cs: Added DefaultClientRectangle property
11980         * XplatUI.cs: Now using the X11 driver Where() method, which provides
11981           more detailed debug information
11982         * XplatUIX11.cs:
11983           - Fixed size-change feedback loop, where we would pull an old size
11984             off the queue and mistakenly change our window's size to an
11985             earlier value
11986           - Now compressing ConfigureNotify events, to reduce looping and
11987             redraw issues
11988         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
11989           is called
11991 2005-03-07  Jackson Harper  <jackson@ximian.com>
11993         * Binding.cs: Push data pushes from data -> property. Check if the
11994         property is readonly when attempting to set it.
11996 2005-03-07  Jackson Harper  <jackson@ximian.com>
11998         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
11999         instead of IsSubclassOf. Pulling data now sets the value on the
12000         control.
12001         * PropertyManager.cs:
12002         * CurrencyManager.cs: Just need to pull data when updating now,
12003         because PullData will set the value on the control.
12005 2005-03-04  Jackson Harper  <jackson@ximian.com>
12007         * Binding.cs: Implement data type parsing and converting on pulled
12008         data. TODO: Are there more ways the data can be converted?
12010 2005-03-04  Jackson Harper  <jackson@ximian.com>
12012         * Binding.cs: Support <Property>IsNull checks. Also bind to the
12013         controls Validating method so we can repull the data when the
12014         control loses focus.
12016 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
12018         * ColumnHeader.cs:
12019           - Fixes null string format
12020           
12021         * ListView.cs:
12022           - Adds enum type checks
12023           - Fixes redrawing and recalc need after changing some properties
12024           - Fixes on focus_item set after the event
12025           - Fixes adding columns after the control has been created
12026           
12027         * ThemeWin32Classic.cs:
12028           - Fixes CheckBox focus rectangle
12029           - Fixes ColumnHeader drawing
12032 2005-03-03  Jackson Harper  <jackson@ximian.com>
12034         * Binding.cs: Bind to <Property>Changed events so we can detect
12035         when properties are changed and update the data.
12037 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
12039         * ImageList.cs:
12040           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
12041           - Fixes ImageList constructor with ImageList container
12042           - Fixes image scaling (wrong parameters at DrawImage)
12044 2005-02-02  Jackson Harper  <jackson@ximian.com>
12046         * Binding.cs: Make property searches case-insensitive. Eliminate
12047         some duplicated code.
12049 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
12051         * ComboBox.cs:
12052                 - Handle focus event
12053                 - Fix scrollbar events
12054                 - Discard highlighted item if remove it
12055                 - Fixes SelectedItem with strings
12057 2005-03-01  Peter Bartok  <pbartok@novell.com>
12059         * Control.cs:
12060           - Fixed Visible property, now follows (once again) parent chain
12061             to return false if any control in the chain is visible=false
12062           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
12063           - Fixed several places where is_visible instead of Visible was used
12064           - Implemented FIXME related to focus selection when setting focused
12065             control to be invisible
12067         * XplatUIWin32.cs: Now using proper method to find out if window is
12068           visible. Thanks to Jordi for pointing it out
12070 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
12072         * ComboBox.cs: show/hide scrollbar instead of creating it
12074 2005-02-27  Jackson Harper  <jackson@ximian.com>
12076         * CurrencyManager.cs: Add PositionChanged stuff.
12078 2005-02-27  Peter Bartok  <pbartok@novell.com>
12080         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
12081         * XplatUIOSX.cs: Added GetMenuOrigin() stub
12082         * XplatUIWin32.cs: Implemented GetMenuOrigin()
12083         * XplatUIX11.cs:
12084           - Implemented GetMenuDC()
12085           - Implemented GetMenuOrigin()
12086           - Implemented ReleaseMenuDC()
12087           - Implemented generation of WM_NCPAINT message
12088           - Implemented generation and handling of WM_NCCALCSIZE message
12089         * Form.cs: Added debug helper message for Jordi's menu work
12090         * Hwnd.cs:
12091           - Modified ClientRect property; added setter, fixed getter to handle
12092             setting of ClientRect
12093           - Added MenuOrigin property
12095 2005-02-26  Peter Bartok  <pbartok@novell.com>
12097         * XplatUIX11.cs:
12098           - Destroys the caret if a window that's being destroyed contains it
12099           - Ignores expose events coming from the X11 queue for windows that
12100             already are destroyed
12101           - Now uses the proper variable for handling DestroyNotify, before we
12102             marked the wrong window as destroyed
12103           - Improved/added some debug output
12105 2005-02-26  Peter Bartok  <pbartok@novell.com>
12107         * X11Keyboard.cs: Fixes to work on 64bit systems
12109 2005-02-26  Peter Bartok  <pbartok@novell.com>
12111         * Control.cs:
12112           - Now calling OnHandleDestroyed from DestroyHandle()
12113             instead of Dispose()
12114           - Removed bogus call to controls.Remove() from DestroyHandle()
12116 2005-02-26  Peter Bartok  <pbartok@novell.com>
12118         * Control.cs: Properly destroy child windows when our handle is
12119           destroyed
12121 2005-02-25  Peter Bartok  <pbartok@novell.com>
12123         * XplatUI.cs:
12124           - Added 'DriverDebug' define to allow tracing XplatUI API calls
12125           - Alphabetized Static Methods and Subclasses
12127         * XplatUIX11.cs:
12128           - Added XException class to allow custom handling of X11 exceptions
12129           - Created custom X11 error handler, tied into XException class
12130           - Added support for MONO_XEXCEPTIONS env var to allow the user
12131             to either throw an exception on X errors or continue running
12132             after displaying the error
12133           - Added handling of DestroyNotify message
12134           - Added handler for CreateNotify message (still disabled)
12135           - Improved (tried to at least) Where method to provide file and lineno
12136         * X11Structs.cs:
12137           - Added XErrorHandler delegate
12138           - Added XRequest enumeration (to suppor translation of errors)
12140 2005-02-25  Jackson Harper  <jackson@ximian.com>
12142         * PropertyManager.cs: Implement editing features
12143         * CurrencyManager.cs:
12144         * Binding.cs: First attempt at UpdateIsBinding
12145         * BindingManagerBase.cs: Call UpdateIsBinding before
12146         pushing/pulling data.
12148 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
12150         * MenuAPI.cs: Respect disabled items
12151         * ThemeWin32Classic.cs
12152                 - Caches ImageAttributes creation for DrawImageDisabled
12153                 - Fixes vertical menu line drawing
12154                 - Draws disabled arrows in disable menu items
12156 2005-02-24  Peter Bartok  <pbartok@novell.com>
12158         * Hwnd.cs:
12159           - Added UserData property to allow associating arbitrary objects
12160             with the handle
12161           - Fixed leak; now removing Hwnd references from static windows array
12162         * XplatUIWin32.cs:
12163           - Fixed Graphics leak in PaintEventEnd
12164           - Removed usage of HandleData, switched over to Hwnd class
12165         * HandleData.cs: Removed, obsoleted by Hwnd.cs
12167 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
12169         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
12170         * ScrollBar.cs: Fixes bug
12171         * TrackBar.cs: removes death code, clipping, mimize refreshes,
12172          keyboard navigation enhancements
12174 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
12176         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
12177         * GroupBox.cs: Add control styles
12178         * Label.cs: Add control styles
12179         * UpDownBase.cs: Add control styles
12180         * ListBox.cs: Add control styles
12181         * XplatUIWin32.cs: Fixes wrong parameter order
12184 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
12186         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
12188 2005-02-23  Jackson Harper  <jackson@ximian.com>
12190         * PropertyManager.cs: Implement property binding. This doesn't
12191         seem to work yet though as (I think) there are some bugs in
12192         System.ComponentModel.PropertyDescriptor.
12193         * BindingContext.cs: Use new PropertyManager constructor.
12195 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
12197         * ProgressBar.cs: use clip region in ProgressBar
12198         * ThemeWin32Classic.cs: use clip region in ProgressBar
12200 2004-02-22  Jackson Harper  <jackson@ximian.com>
12202         * BindingsCollection.cs: Remove some debug code.
12204 2005-02-22  Jackson Harper  <jackson@ximian.com>
12206         * BindingContext.cs:
12207         * ControlBindingsCollection.cs:
12208         * CurrencyManager.cs:
12209         * Binding.cs:
12210         * BindingManagerBase.cs: Initial implementation
12211         * BindingsCollection.cs: Add an internal contains method that the
12212         BindingManagerBase uses to ensure bindings aren't added twice to
12213         the collection.
12214         * PropertyManager.cs: Stubbed out.
12215         * Control.cs:
12216         * ContainerControl.cs: Hook up databinding
12217         
12218 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
12220         * XplatUIOSX.cs:
12221           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
12222           Fixed Invalidate/Update chain.
12223           Fixed tons of other minor bugs (this is almost a complete rewrite).
12225 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
12227         * ComboBox.cs: do subcontrol creation when the control is created
12229 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
12231         * Label.cs: fixes image drawing (image and imagelist)
12232         * ThemeWin32Classic.cs: cache brushes
12233         
12234 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
12236         * Form.cs: Move menu drawing code to Theme class
12237         * ComboBox.cs: Move ComboBox drawing code to Theme class
12238         * MenuItem.cs: Move menu drawing code to Theme class
12239         * MenuAPI.cs: Move menu drawing code to Theme class
12240         * ThemeWin32Classic.cs: New methods
12241         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
12242         * ListBox.cs: Move Listbox drawing code to Theme class
12243         * Theme.cs: New methods
12245 2005-02-20  Peter Bartok  <pbartok@novell.com>
12247         * Control.cs:
12248           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
12249             only process mnemonics on those)
12250           - Fixed event sequence for key handling; first calling
12251             ProcessKeyEventArgs now
12252         * TextBoxBase.cs:
12253           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
12254             for processing non-character keys
12255           - Fixed WM_CHAR to generate proper event sequence before processing
12256         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
12257           generation
12259 2005-02-19  Peter Bartok  <pbartok@novell.com>
12261         * UserControl.cs: Added TextChanged event; added attributes
12262         * SizeGrip.cs: Implemented resizing and optional display of grip
12263         * Form.cs: Fixed attribute
12264         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
12265           Changed meaning of ScrollWindow bool argument; instead of the
12266           clear attribute (which will be true usually anyway), it gives the
12267           option of moving child controls as well.
12268         * XplatUIX11.cs:
12269           - Changed to match new ScrollWindow argument
12270           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
12271             now handles the implicit parent window a WM puts around us
12272         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
12273           to work)
12274         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
12275         * TreeView.cs: Adjusted to new ScrollWindow arguments
12277 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
12279         * Form.cs: Menu integration with non-client area
12280         * MenuItem.cs: Menu integration with non-client area
12281         * MenuAPI.cs: Menu integration with non-client area
12283 2005-02-18  Peter Bartok  <pbartok@novell.com>
12285         * MethodInvoker.cs: Added
12286         * MdiLayout.cs: Added
12287         * SendKeys.cs: Started implementation
12288         * ErrorIconAlignment.cs: Added
12290 2005-02-18  Peter Bartok  <pbartok@novell.com>
12292         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
12293         * Form.cs: Added handling for Menu-related Non-client messages
12295 2005-02-17  Peter Bartok  <pbartok@novell.com>
12297         * UpDownBase.cs: Fixed typo, compilation errors
12298         * DomainUpDown.cs: Fixed attribute value
12300 2005-02-16  Miguel de Icaza  <miguel@novell.com>
12302         * UpDownBase.cs: Attach entry events.
12303         Propagate events.
12304         Add ForeColor property, Focused, InterceptArrowKeys (interception
12305         does not work yet).
12307 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
12309         * Form.cs:
12310                 - Redraw non client are on Setmenu
12311                 - Calc proper menu starting point
12313 2005-02-17  Peter Bartok  <pbartok@novell.com>
12315         * Application.cs: Fixed message_filter check
12317 2005-02-17  Peter Bartok  <pbartok@novell.com>
12319         * Application.cs: Now calls registered message filters
12320         * DockStyle.cs: Fixed attribute
12321         * Form.cs: Fixed attribute
12322         * Menu.cs: Fixed attribute
12323         * ToolTip.cs: Fixed attribute
12324         * TreeNode.cs: Added missing attributes and arranged in regions
12325         * PropertyGrid.cs: Fixed signatures
12326         * TreeNodeCollection.cs: Added attributes
12327         * Splitter.cs: Added missing attributes; arranged into regions
12328         * TabPage.cs: Added missing attributes; arranged into regions
12329         * TextBoxBase.cs: Added missing attributes
12330         * TextBox.cs: Added missing attributes
12331         * ArrangeDirection.cs: Added missing attributes
12332         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
12333         * ToolBarButton.cs: Fixed attributes
12334         * AnchorStyles.cs: Fixed attribute
12335         * TrackBar.cs: Fixed attributes
12336         * TabControl.cs: Added missing attributes and arranged into regions
12337         * ToolBar.cs: Fixed attribute
12338         * StatusBar.cs: Fixed signature, organized into regions and added
12339           attributes
12340         * StatusBarPanel.cs: Fixed attributes
12341         * ContentsResizedEventArgs.cs: Implemented
12342         * ContentsResizedEventHandler.cs: Implemented
12343         * DateBoldEventArgs.cs: Implemented
12344         * DateBoldEventHandler.cs: Implemented
12345         * UpDownEventArgs.cs: Implemented
12346         * UpDownEventHandler.cs: Implemented
12347         
12348 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
12350         * Form.cs: first Menu NC refactoring
12351         * MenuAPI.cs: first Menu NC refactoring
12352         
12353 2005-02-16  Peter Bartok  <pbartok@novell.com>
12355         * ImeMode.cs: Added missing attributes
12356         * Menu.cs: Fixed attribute
12357         * GroupBox.cs: Fixed attribute
12358         * Label.cs: Fixed attribute
12359         * ColorDialog.cs (RunDialog): Removed TODO attribute
12360         * ComboBox.cs: Fixed attributes
12361         * ListControl.cs: Added missing attributes
12362         * PropertyGrid.cs: Fixed attributes
12363         * Control.cs: Fixed attributes
12364         * ListViewItem.cs: Added TypeConverter attribute
12365         * NotifyIcon.cs: Fixed attributes
12366         * ListView.cs: Fixed attributes
12367         * ButtonBase.cs: Fixed attribute
12368         * ImageList.cs: Added missing attributes
12369         * ContainerControl.cs: Fixed signature
12370         * CheckedListBox.cs: Fixed attribute; added missing attributes
12371         * Panel.cs: Fixed attributes
12372         * PropertyTabChangedEventArgs.cs: Added missing attribute
12373         * PropertyValueChangedEventArgs.cs: Added missing attribute
12374         * Binding.cs: Fixed attribute
12375         * ListViewItemConverter: Implemented ListViewSubItemConverter class
12376         * ListBox.cs: Fixed attribute; added missing attributes;
12377         * ScrollableControl.cs: Added missing attributes
12378         * PictureBox.cs: Added missing attributes; implemented missing property
12379         * DateTimePicker.cs: Added missing attributes
12380         * Theme.cs (ToolWindowCaptionHeight): Fixed type
12381         * MonthCalendar.cs: Fixed attributes
12382         * StatusBarPanel.cs: Added missing attributes
12383         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
12385 2005-02-16  Peter Bartok  <pbartok@novell.com>
12387         * TextBoxBase.cs: The previous method to enforce height yet remember
12388           the requested high was less than ideal, this is an attempt to do
12389           it better.
12390         * Control.cs: Added comment about possible problem
12391         * Copyright: Updated format
12392         * GridItemType.cs: Fixed swapped values
12394 2005-02-15  Jackson Harper  <jackson@ximian.com>
12396         * BaseCollection.cs: Use property so we never access an
12397         uninitialized list. Also initialize the list in the property.
12399 2005-02-15  Peter Bartok  <pbartok@novell.com>
12401         * GroupBox.cs (ProcessMnemonic): Implemented
12402         * Label.cs (ProcessMnemonic): Implemented
12403         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
12404           hotkeys
12406 2005-02-15  Peter Bartok  <pbartok@novell.com>
12408         * RadioButton.cs (ProcessMnemonic): Implemented
12409         * CheckBox.cs (ProcessMnemonic): Implemented
12410         * Control.cs:
12411           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
12412             handling
12413           - Added internal method to allow calling ProcessMnemonic from other
12414             controls
12415         * ContainerControl.cs:
12416           - Started support for handling validation chain handling
12417           - Implemented ProcessMnemonic support
12418           - Added Select() call to Active, to make sure the active control
12419             receives focus
12420         * Form.cs: Setting toplevel flag for Forms (this was lost in the
12421           FormParent rewrite)
12422         * ThemeWin32Classic.cs:
12423           - DrawCheckBox(): Fixed stringformat to show hotkeys
12424           - DrawRadioButton(): Fixed stringformat to show hotkeys
12425         * CommonDialog.cs: Removed WndProc override, not needed
12427 2005-02-14  Peter Bartok  <pbartok@novell.com>
12429         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
12430           missed those in the rewrite
12432 2005-02-14  Miguel de Icaza  <miguel@novell.com>
12434         * NumericUpDown.cs (Increment, ToString): Add.
12435         (DecimalPlaces): implement.
12436         
12437         Add attributes.
12438         
12439         * UpDownBase.cs: Add the designer attributes.
12441 2005-02-13  Peter Bartok  <pbartok@novell.com>
12443         * Panel.cs: Removed border_style, now in Control
12444         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
12445           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
12447 2005-02-13  Peter Bartok  <pbartok@novell.com>
12449         * MouseButtons.cs: Added missing attributes
12450         * XplatUIStructs.cs: Added enumeration for title styles
12451         * LeftRightAlignment.cs: Added missing attributes
12452         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
12453           it compatible with Graphics.FromHwnd()
12454         * SelectedGridItemChangedEventArgs.cs: Fixed property type
12455         * Keys.cs: Added missing attributes
12456         * SelectionRange.cs: Added missing attributes
12457         * SelectionRangeConverter.cs: Added
12458         * XplatUI.cs:
12459           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
12460             ReleaseMenuDC methods
12461           - Renamed ReleaseWindow to UngrabWindow
12462           - Added proper startup notice to allow version identification
12463         * Form.cs:
12464           - Added missing attributes
12465           - Removed FormParent concept
12466         * Label.cs: Removed border_style field, now in Control
12467         * RadioButton.cs: Now properly selects RadioButton when focus is
12468           received
12469         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
12470         * Control.cs:
12471           - Added missing attributes
12472           - Added borderstyle handling
12473           - Removed FormParent concept support
12474           - Fixed calls to XplatUI to match changed APIs
12475           - Fixed bug that would case us to use disposed Graphics objects
12476           - Removed unneeded internal methods
12477           - PerformLayout(): Fixed to handle DockStyle.Fill properly
12478           - SelectNextControl(): Fixed to properly check common parents
12479         * TextBoxBase.cs: Removed border_style field (now in Control)
12480         * MessageBox.cs:
12481           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
12482             fixed calculations for form size
12483           - Added support for localized strings and icons
12484           - Improved form size calculations, added border
12485         * ListView.cs: Removed border_style field (now in Control)
12486         * X11Structs.cs: Moved several structs from X11 driver here
12487         * X11Keyboard.cs: Changed debug message
12488         * Application.cs: Removed FormParent concept support
12489         * CommonDialog.cs:
12490           - Resetting end_modal flag
12491           - Removed FormParent concept support
12492         * NativeWindow.cs: Removed FormParent concept support
12493         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
12494           Client area and Non-Client whole window to allow support for WM_NC
12495           messages
12496         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
12497           prevent using it until it supports Hwnd as per Geoff Norton's request
12498         * ToolBar.cs: Fixed drawing, was not doing proper drawing
12499         * PictureBox.cs: Removed border_style field, now in Control
12500         * XplatUIWin32.cs: Added new driver methods
12502 2005-02-12  Peter Bartok  <pbartok@novell.com>
12504         * OpacityConverter.cs: Implemented
12505         * Hwnd.cs: Internal class to support drivers that need to emulate
12506           client area/non-client area window behaviour
12508 2005-02-11  Peter Bartok  <pbartok@novell.com>
12510         * KeysConverter.cs: Implemented
12512 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
12514         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
12515         * LinkLabel: Added missing attributes
12516         * MainMenu.cs: fixes ToString
12517         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
12518         * ListBox.cs: fixes event position
12519         * TrackBar.cs: adds missing attributes and events
12520         
12521 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
12523         * MenuItem.cs: Use SystemInformation and bug fixes
12524         * MenuAPI.cs: Use SystemInformation and bug fixes
12526 2005-02-09  Jackson Harper  <jackson@ximian.com>
12528         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
12529         their keystate otherwise things like VK_MENU get stuck "on".
12531 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
12533         * ListBox.cs: Fixes AddRange bug
12534         
12535 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
12537         * ProgressBar.cs
12538                 - Add missing attributes
12539                 - Add missing method
12540                 
12541         * CheckedListBox.cs: Added missing attributes
12542                 - Add missing attributes
12543                 - Remove extra method
12544         
12545         * ComboBox.cs: Added missing attributes
12546         * VScrollBar.cs: Added missing attributes
12547         * ScrollBar.cs:  Added missing attributes
12548         * ListBox.cs: Fixes signature, add missing consts
12549         * LinkArea.cs:   Added missing attributes
12550         
12552 2005-02-08  Peter Bartok  <pbartok@novell.com>
12554         * Menu.cs: Added missing attributes
12555         * MainMenu.cs: Added missing attributes
12556         * GroupBox.cs: Added missing attributes
12557         * Label.cs: Added missing attributes
12558         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
12559         * ColorDialog.cs:
12560           - Added Instance and Options properties
12561           - Added missing attributes
12562         * Cursor.cs: Made Serializable
12563         * NotifyIcon: Added missing attributes
12564         * MenuItem.cs: Added missing attributes
12565         * TextBoxBase.cs: Implemented AppendText() and Select() methods
12566         * Panel.cs: Added Missing attributes
12567         * MonthCalendar.cs: Fixed CreateParams
12569 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
12570         
12571         * LinkLabel.cs:
12572                 - Fixes signature
12573                 - Fixes issues with links
12574                 - Adds the class attributes
12576 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
12577         
12578         * ComboBox.cs:
12579                 - Fixes button when no items available in dropdown
12580                 - Fixes repainting problems
12581                 - Adds the class attributes
12582                 
12583 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
12585         * XplatUIOSX.cs: Detect the menu bar and title bar height from
12586         the current theme.  Cache these on startup.
12588 2005-02-07  Jackson Harper  <jackson@ximian.com>
12590         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
12591         the scrollbar buttons when they are depressed.
12593 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
12595         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
12596         Get the display size from the main displayid.  We currently dont
12597         support multiple display configurations.
12599 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
12601         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
12603 2005-02-07  Miguel de Icaza  <miguel@novell.com>
12605         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
12607 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
12609         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
12611 2005-02-04  Jackson Harper  <jackson@ximian.com>
12613         * ThemeWin32Classic.cs: Respect the clipping rect when
12614         drawing. Only fill the intersection of clips and rects so there
12615         isn't a lot of large fills.
12616         * ScrollBar.cs: Pass the correct clipping rect to the theme
12617         engine. Remove some debug code.
12619 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
12620         
12621         * DateTimePicker.cs:
12622                 - Fixed crash on DateTime.Parse, use Constructor instead
12624 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
12625         
12626         * MenuItem.cs:
12627         * MenuAPI.cs:
12628                 - Owner draw support (MeasureItem and DrawItem)
12630 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
12631         
12632         *  Menu.cs:
12633                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
12634                 - Fixes MenuItems.Add range
12635         * MenuItem.cs:
12636                 - MergeMenu and Clone and CloneMenu functions
12638 2005-02-03  Jackson Harper  <jackson@ximian.com>
12640         * ScrollBar.cs: Make abstract
12641         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
12642         is abstract.
12644 2005-02-03  Jackson Harper  <jackson@ximian.com>
12646         * ScrollBar.cs: First part of my scrollbar fixups. This removes
12647         all the unneeded refreshes and uses invalidates with properly
12648         computed rects.
12650 2005-02-03  Peter Bartok  <pbartok@novell.com>
12652         * ComponentModel.cs: Added
12653         * IDataGridEditingService.cs: Added
12654         * Timer.cs: Added missing attributes
12655         * ToolTip.cs: Added missing attributes
12657 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
12659         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
12661 2005-02-03  Peter Bartok  <pbartok@novell.com>
12663         * ListBox.cs: Added missing attributes
12665 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
12666         
12667         * ListBox.cs:
12668                 - Fixes font height after font change
12669                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
12670                 
12671 2005-02-02  Peter Bartok  <pbartok@novell.com>
12673         * HandleData.cs: Introduced static methods to allow class
12674           to be more self-contained and track it's own HandleData objects
12675         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
12676           HandleData to use new static methods
12678 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
12680         * Combobox.cs:
12681                 - Fixes default size and PreferredHeight
12682                 - Missing events
12683                 - ObjectCollection.Insert implementation
12684                 
12685         * ListControl.cs
12686                 - Fixes signature
12687         * ListBox.cs:
12688                 - Several fixes
12689                 - ObjectCollection.Insert implementation
12690                 - No selection after clean
12691                 - Small fixes
12693 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
12695         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
12697 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
12699         * Combobox.cs:
12700                 - Caches ItemHeight calculation for OwnerDrawVariable
12701                 - Handles dropdown properly
12702                 - Fixes several minor bugs
12704 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
12706         * ListBox.cs:
12707                 - Fixes 71946 and 71950
12708                 - Fixes changing Multicolumn on the fly
12709                 - Fixes keyboard navigation on Multicolumn listboxes
12711 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
12712         
12713         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
12714         crash reporter log.
12716 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
12718         * XplatUIOSX.cs: Allow applications to actually exit.
12720 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
12722         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
12723         their parent at creation time rather than lazily later.  Fixes a major
12724         regression we were experiencing.
12726 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
12728         * ThemeWin32Classic.cs: more date time picker painting fixes
12729         * DateTimePicker.cs: more monthcalendar drop down fixes
12730         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
12732 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
12734         * ScrollBar.cs:
12735                 - When moving the thumb going outside the control should stop the moving
12736                 - Adds the firing of missing events
12737                 - Fixes no button show if Size is not specified
12738                 - End / Home keys for keyboard navigation
12740 2005-01-30  Peter Bartok  <pbartok@novell.com>
12742         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
12743           sanity check to prevent theoretical loop
12744         * XplatUIWin32.cs (SetVisible): Removed debug output
12745         * XplatUIX11.cs (SystrayChange): Added sanity check
12746         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
12747         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
12748           behaviour, valid until the X11 client window rewrite is done
12749         * TextBox.cs (ctor): Setting proper default foreground and background
12750           colors
12752 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
12754         * Theme: Added DrawDateTimePicker to interface
12755         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
12756         * DateTimePicker.cs: Created (still needs keys and painting code)
12757         * DateTimePickerFormat.cs: added
12758         * MonthCalendar.cs: fixed CreateParams for popup window mode
12759           
12760 2005-01-29  Peter Bartok  <pbartok@novell.com>
12762         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
12763           this should also the calculations for ligher/darker
12764         * Theme.cs: Fixed defaults for ScrollBar widths/heights
12766 2005-01-29  Peter Bartok  <pbartok@novell.com>
12768         * ArrangeDirection.cs: Added
12769         * ArrangeStartingPositon.cs: Added
12770         * SystemInformation.cs: Implemented
12771         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
12772           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
12773           used by SystemInformation class
12774         * X11Strucs.cs: Added XSizeHints structure
12775         * MenuAPI.cs:
12776           - Fixed CreateParams to make sure the menu window is always visible
12777           - TrackPopupMenu: Added check to make sure we don't draw the
12778             menu offscreen
12780 2005-01-29  Peter Bartok  <pbartok@novell.com>
12782         * HandleData.cs: Added method for altering invalid area
12783         * TextBoxBase.cs: Implemented TextLength
12785 2005-01-28  Peter Bartok  <pbartok@novell.com>
12787         * XplatUIX11.cs: Improvement over last patch, not sending
12788           the WM_PAINT directly anymore, instead we scroll any pending
12789           exposed areas and let the system pick out the WM_PAINT later
12791 2005-01-28  Peter Bartok  <pbartok@novell.com>
12793         * SWF.csproj: Deleted, no longer used. Instead,
12794           Managed.Windows.Forms/SWF.csproj should be used
12795         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
12796           directly, to avoid a potential race condition with the next
12797           scroll
12799 2005-01-28  Peter Bartok  <pbartok@novell.com>
12801         * XplatUI.cs: Made class internal
12803 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
12805         * CheckedListBox.cs:
12806                 - Draw focus
12807                 - Fixed Drawing
12808                 - Missing methods and events
12810 2005-01-27  Peter Bartok  <pbartok@novell.com>
12812         * Application.cs (Run): Don't use form if we don't have one
12814 2005-01-27  Peter Bartok  <pbartok@novell.com>
12816         * TextBoxBase.cs (get_Lines): Fixed index off by one error
12818 2005-01-27  Peter Bartok  <pbartok@novell.com>
12820         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
12821         * GridItem.cs: Added; Patch by Jonathan S. Chambers
12822         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
12823         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
12824         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
12825         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
12826         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
12827         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
12828         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
12829         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
12830         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
12831         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
12833 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
12835         * Combobox.cs:
12836                 - Draw focus on Simple Combobox
12837                 - Fixes drawing issues
12838                 - fixes 71834
12840 2005-01-27  Peter Bartok  <pbartok@novell.com>
12842         * Form.cs:
12843           - Place window in default location, instead of hardcoded 0/0
12844           - Send initial LocationChanged event
12845         * Control.cs:
12846           - UpdateBounds after creation to find out where the WM placed us
12847           - Make sure that if the ParentForm changes location the Form
12848             is notified
12849         * XplatUIX11.cs: XGetGeometry will not return the coords relative
12850             to the root, but to whatever the WM placed around us.
12851             Translate to root coordinates before returning toplevel
12852             coordinates
12853         * XplatUIWin32.cs: Removed debug output
12854         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
12855           flag to GetWindowPos, to allow translation of coordinates on X11
12857 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
12859         * ListBox.cs: connect LostFocus Event
12861 2005-01-27  Peter Bartok  <pbartok@novell.com>
12863         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
12864           XplatUIX11.cs: Extended the Systray API
12865         * Form.cs: Removed debug output
12866         * Application.cs: Fixed focus assignment, always need to call
12867           XplatUI.Activate() since Form.Activate() has rules that may
12868           prevent activation
12869         * NotifyIcon.cs: Should be complete now
12870         * ToolTip.cs: Worked around possible timer bug
12872 2005-01-27  Jackson Harper  <jackson@ximian.com>
12874         * TabControl.cs:
12875         - Only invalidate the effected tabs when the
12876         selected index changes. This reduces drawing and gets rid of some
12877         flicker.
12878         - Only refresh if the tabs need to be shifted, otherwise only
12879         invalidate the slider button.
12880         - On windows the tabs are not filled to right if the slider is
12881         visible.
12882         
12883 2005-01-27  Jackson Harper  <jackson@ximian.com>
12885         * TabControl.cs: Only refresh on mouseup if we are showing the
12886         slider. Also only invalidate the button whose state has changed.
12888 2005-01-26  Peter Bartok  <pbartok@novell.com>
12890         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
12891         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
12892           and SystrayRemove() methods
12893         * XplatUIOSX.cs: Stubbed Systray methods
12894         * XplatUIX11.cs:
12895           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
12896             methods
12897           - Fixed broken XChangeProperty calls (marshalling messed up things)
12898         * X11Structs.cs: Added enums and structs required for Size hinting
12899         * NotifyIcon.cs: Added & implemented
12901 2005-01-26  Jackson Harper  <jackson@ximian.com>
12903         * TabControl.cs: Space vertically layed out tabs properly.
12905 2005-01-26  Peter Bartok  <pbartok@novell.com>
12907         * Form.cs (CreateClientParams): Always set the location to 0,0
12908           since we're a child window.
12910         * Control.cs (SetVisibleCore): Always explicitly setting the location
12911           of a toplevel window, apparently X11 doesn't like to move windows
12912           while they're not mapped.
12914 2005-01-26  Jackson Harper  <jackson@ximian.com>
12916         * TabControl.cs: Implement FillToRight size mode with vertically
12917         rendered tabs.
12919 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
12921         * ControlPaint.cs, ThemeWin32Classic.cs
12922                 - Fixes DrawFocusRectangle
12924 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
12926         * MenuAPI.cs:
12927                 - MenuBar tracking only starts when item is first clicked
12928                 - Fixes menu hidding for multiple subitems
12929                 - Unselect item in MenuBar when item Executed
12930                 - Fixes bug 71495
12932 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
12934         * ListControl.cs:
12935                 - IsInputKey for ListBox
12936         * ListBox.cs:
12937                 - Focus item
12938                 - Shift and Control item selection
12939                 - Implement SelectionMode.MultiExtended
12940                 - Fixes RightToLeft
12941         * ComboBox.cs:
12942                 - IsInputKey implemented
12943                 - Do not generate OnTextChangedEdit on internal txt changes
12944                 
12945 2005-01-23  Peter Bartok  <pbartok@novell.com>
12947         * AccessibleObject.cs: Partially implemented Select()
12948         * MonthCalendar.cs: Added missing attributes and events
12949         * Form.cs: Fixed CreateParams behaviour, now controls derived from
12950           form can properly override CreateParams.
12951         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
12952           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
12953           Control performs Invalidate & Update
12954         * NativeWindow (CreateHandle): Added special handling for Form
12955           and Form.FormParent classes to allow overriding of From.CreateParams
12956         * Control.cs:
12957           - ControlNativeWindow: Renamed 'control' variable to more intuitive
12958             name 'owner'
12959           - ControlNativeWindow: Added Owner property
12960           - Removed usage of Refresh() on property changes, changed into
12961             Invalidate(), we need to wait until the queue is processed for
12962             updates, direct calls might cause problems if not all vars for
12963             Paint are initialized
12964           - Added call to UpdateStyles() when creating the window, to set any
12965             styles that CreateWindow might have ignored.
12966           - Added support for Form CreateParent overrides to UpdateStyles()
12967         * MessageBox.cs: Removed no longer needed FormParent override stuff,
12968           CreateParams are now properly overridable
12969         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
12970           CreateParams are now properly overridable
12972 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
12974         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
12975         OnTextBoxChanged.
12977         Capture LostFocus and OnTextBoxChanged.  The later introduces a
12978         recursive invocation that I have not figured out yet.
12980         Reset the timer when not using (it was accumulating).
12983         (OnTextBoxChanged): Set UserEdit to true here to track whether the
12984         user has made changes that require validation.
12986         Reset changing to avoid loops.
12988 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
12990         * NumericUpDown.cs: Display value at startup.
12992         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
12993         ValidateEditText.
12995         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
12996         filled in.  Added some basic parsing of text.
12998         Still missing the OnXXX method overrides, and figuring out the
12999         events that must be emitted.
13001         * UpDownBase.cs: Handle UserEdit on the Text property.
13002         
13003 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
13005         * ComboBox.cs:
13006           - Fixes IntegralHeight
13007           - ToString method
13009 2005-01-21  Jackson Harper  <jackson@ximian.com>
13011         * TabControl.cs: Set the SelectedIndex property when SelectedTab
13012         is set so that the page visibility is updated and the tabs are
13013         sized correctly.
13015 2005-01-21  Jackson Harper  <jackson@ximian.com>
13017         * TabControl.cs: Use cliping rectangle for blitting. Give the
13018         theme the clipping rect so we can do clipping while
13019         drawing. Remove some debug code.
13021 2005-01-21  Jackson Harper  <jackson@ximian.com>
13023         * TabPage.cs: Add a new method so tab pages can force the tab
13024         control to recalculate the tab page sizes.
13025         * TabControl.cs: UpdateOwner needs to make the tab control recalc
13026         sizes.
13028 2005-01-20  Jackson Harper  <jackson@ximian.com>
13030         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
13032 2005-01-20  Jackson Harper  <jackson@ximian.com>
13034         * TreeView.cs: Set the bounds for nodes properly. They were
13035         getting screwed up when checkboxes were not enabled, but images
13036         were.
13038 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
13040         * ListBox.cs:
13041                 - Owner draw support
13042                 - Fixes
13043                 
13044 2005-01-20  Jackson Harper  <jackson@ximian.com>
13046         * XplatUIStructs.cs: More misc keys
13047         * X11Keyboard.cs: Ignore some control keys.
13049 2005-01-20  Jackson Harper  <jackson@ximian.com>
13051         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
13052         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
13054 2005-01-19  Peter Bartok  <pbartok@novell.com>
13056         * Control.cs: Un-selecting the control when it is loosing focus
13058 2005-01-19  Jackson Harper  <jackson@ximian.com>
13060         * TreeView.cs: Hook up to the text controls leave event so we can
13061         end editing when the users clicks outside the text box.
13062         
13063 2005-01-19  Jackson Harper  <jackson@ximian.com>
13065         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
13066         get set in the conversion array.
13068 2005-01-19  Peter Bartok  <pbartok@novell.com>
13070         * Application.cs (ModalRun): Added a call to CreateControl to ensure
13071           focus is properly set
13072         * Button.cs:
13073           - Added missing attributes
13074           - removed styles, those are already set in the base class
13075         * ButtonBase.cs:
13076           - Added missing attributes
13077           - Added clip window styles
13078         * CheckBox.cs: Added missing attributes
13079         * CommonDialog.cs:
13080           - FormParentWindow.CreateParams: Added required clip styles
13081         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
13082           also filters modifier keys
13083         * MessageBox.cs:
13084           - Added assignment of Accept and Cancel button to enable Enter
13085             and Esc keys in MessageBox dialogs
13086           - FormParentWindow.CreateParams: Added required clip styles
13087         * RadioButton.cs: Added missing attributes
13088         * TextControl.cs: No longer draws selection if control does not
13089           have focus
13090         * TextBoxBase.cs:
13091           - Now draws simple rectangle around test area to make it obvious
13092             there's a control. This is a hack until we properly support borders
13093           - A few simple fixes to support selections better, now erases selected
13094             text when typing, and resets selection when using movement keys
13096 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
13098         * UpDownBase.cs: Added some new properties.
13100         * DomainUpDown.cs: Implement a lot to get my test working.
13102 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
13104         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
13106 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
13108         * OSXStructs (WindowAttributes): Fixed csc complaints
13110 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
13112         * XplayUIOSX.cs:
13113           OSXStructs.cs: Initial refactor to move enums and consts into
13114           OSXStructs and use them in the driver for greater readability.
13116 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
13118         * XplatUIOSX.cs: Initial support for Standard Cursors.
13119         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
13121 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
13123         * ComboBox.cs: ability to change style when the ctrl is already
13124         created, missing methods and events, bug fixes, signature fixes
13126 2005-01-19  Peter Bartok  <pbartok@novell.com>
13128         * Cursors.cs (ctor): Added ctor to fix signature
13130 2005-01-18  Peter Bartok  <pbartok@novell.com>
13132         * Button.cs: Implemented DoubleClick event
13133         * ButtonBase.cs:
13134           - Fixed keyboard handling to behave like MS, where the press of
13135             Spacebar is equivalent to a mousedown, and the key release is
13136             equivalent to mouseup. Now a spacebar push will give the same
13137             visual feedback like a mouse click.
13138           - Added missing attributes
13139           - Added ImeModeChanged event
13140           - Added support for generating DoubleClick event for derived classes
13141         * CheckBox.cs:
13142           - Implemented DoubleClick event
13143           - Added missing attributes
13144         * CommonDialog.cs: Added missing attribute
13145         * ContextMenu.cs: Added missing attributes
13146         * RadioButton.cs:
13147           - AutoChecked buttons do not allow to be unselected when clicked
13148             (otherwise we might end up with no selected buttons in a group)
13149           - Added missing attributes
13150           - Implemented DoubleClickEvent
13151         * ThreadExceptionDialog.cs: Enabled TextBox code
13153 2005-01-18  Peter Bartok  <pbartok@novell.com>
13155         * Form.cs: Removed debug output
13156         * Button.cs: Added support for DoubleClick method
13158 2005-01-18  Peter Bartok  <pbartok@novell.com>
13160         * Form.cs:
13161           - Added method to parent window that allows triggering size
13162             calculations when a menu is added/removed
13163           - set_Menu: Cleaned up mess from early days of Form and Control,
13164             now properly triggers a recalc when a menu is added/removed
13165           - Added case to select form itself as focused form if no child
13166             controls exist
13167           - Added PerformLayout call when showing dialog, to ensure properly
13168             placed controls
13169         * Control.cs:
13170           - Select(): Made internal so Form can access it
13171           - Focus(): Only call Xplat layer if required (avoids loop), and sets
13172             status
13173         * Application.cs (Run): Removed hack and calls PerformLayout instead
13174           to trigger calculation when Form becomes visible
13176 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
13178         * ComboBox.cs: fixes for ownerdraw
13180 2005-01-18  Peter Bartok  <pbartok@novell.com>
13182         * TextControl.cs:
13183           - Sentinel is no longer static, each Document gets it's own, this
13184             avoids locking or alternatively overwrite problems when more
13185             than one text control is used simultaneously.
13186           - Switched to use Hilight and HilightText brushes for text selection
13188         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
13190 2005-01-18  Peter Bartok  <pbartok@novell.com>
13192         * Control.cs:
13193           - Hooked up the following events:
13194                 o ControlAdded
13195                 o ControlRemoved
13196                 o HandleDestroyed
13197                 o ImeModeChanged
13198                 o ParentChanged
13199                 o TabStopChanged
13200                 o Invalidated
13201                 o SystemColorsChanged
13202                 o ParentFontChanged
13203                 o Move
13204           - Removed debug output
13205           - Added a call to the current theme's ResetDefaults when a color change
13206             is detected
13207         * Form.cs: Now setting the proper ImeMode
13208         * Theme.cs: Defined a method to force recreation of cached resources
13209           and rereading of system defaults (ResetDefaults())
13210         * ThemeWin32Classic.cs: Added ResetDefaults() stub
13212 2005-01-17  Peter Bartok  <pbartok@novell.com>
13214         * Control.cs: Added missing attributes
13216 2005-01-17  Jackson Harper  <jackson@ximian.com>
13218         * TreeNode.cs: Implement editing. Add missing properties selected
13219         and visible.
13220         * TreeView.cs: Implement node editing. Also some fixes to use
13221         Invalidate (invalid area) instead of Refresh when selecting.
13223 2005-01-17  Peter Bartok  <pbartok@novell.com>
13225         * Control.cs:
13226           - Implemented InvokeGotFocus() method
13227           - Implemented InvokeLostFocus() method
13228           - Implemented InvokePaint() method
13229           - Implemented InvokePaintBackground() method
13230           - Implemented InvokeClick() method
13231           - Implemented FindForm() method
13232           - Implemented RectangleToClient() method
13233           - Implemented ClientToRectangle() method
13234           - Implemented ResetBackColor() method
13235           - Implemented ResetCursor() method
13236           - Implemented ResetFont() method
13237           - Implemented ResteForeColor() method
13238           - Implemented ResetImeMode() method
13239           - Implemented ResetLeftToRight() method
13240           - Implemented ResetText() method
13241           - Implemented Scale() methods
13242           - Implemented ScaleCore() method
13243           - Implemented Update() method
13244           - Removed unused variables
13245           - Stubbed AccessibilityNotifyClients and
13246             ControlAccessibleObject.NotifyClients() methods (dunno what to do
13247             with those yet)
13248           - Now setting proper default for RightToLeft property
13249           - Fixed bug in SetClientSizeCore that would cause windows to get
13250             really big
13251           - Now sending Click/DoubleClick events
13252           - Now selecting controls when left mouse button is clicked on
13253             selectable control
13254         * AccessibleEvents.cs: Added
13255         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
13256         * XplatUIOSX.cs: Stubbed UpdateWindow() method
13257         * XplatUIWin32.cs: Implemented UpdateWindow() method
13258         * XplatUIX11.cs: Implemented UpdateWindow() method
13259         * Form.cs: Removed stray semicolon causing CS0162 warning
13260         * ThemeWin32Classic.cs: Fixed unused variable warnings
13261         * ScrollableControl.cs: Now calls base method for ScaleCore
13262         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
13263           style to avoid interference with internal click handler (which is
13264           different than standard Control click handling)
13265         * RadioButton.cs:
13266           - Now unchecks all sibling radio buttons when control is
13267             selected (Fixes #68756)
13268           - Removed internal tabstop variable, using the one inherited from
13269             Control
13271 2005-01-17  Jackson Harper  <jackson@ximian.com>
13273         * NavigateEventArgs.cs: Fix base type.
13274         * LinkLabel.cs: Sig fix
13275         
13276 2005-01-17  Jackson Harper  <jackson@ximian.com>
13278         * TreeView.cs: Only invalidate the effected nodes bounds when
13279         selecting nodes.
13281 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
13283         * XplatUIWin32.cs: fixes Win32 marshaling
13284         * XplatUIX11.cs: fixes method signature
13286 2005-01-17  Peter Bartok  <pbartok@novell.com>
13288         * XplatUIX11.cs: Clean up resources when we no longer need them
13290 2005-01-17  Peter Bartok  <pbartok@novell.com>
13292         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
13293           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
13294           and DestroyCursor() methods.
13295         * Cursor.cs: Partially implemented, now supports standard cursors;
13296           still contains some debug code
13297         * Cursors.cs: Implemented class
13298         * Control.cs:
13299           - WndProc(): Added handling of WM_SETCURSOR message, setting the
13300             appropriate cursor
13301           - Implemented Cursor property
13302           - Replaced break; with return; more straightforwar and possibly
13303             faster
13304           - Now properly setting the result for WM_HELP
13305         * X11Structs.cs: Added CursorFontShape enum
13306         * XplatUIStructs.cs:
13307           - Added StdCursor enum (to support DefineStdCursor() method)
13308           - Added HitTest enum (to support sending WM_SETCURSOR message)
13309         * XplatUIX11.cs:
13310           - Now sends the WM_SETCURSOR message
13311           - Implemented new cursor methods
13312         * XplatUIOSX.cs: Stubbed new cursor methods
13313         * XplatUIWin32.cs:
13314           - Implemented new cursor methods
13315           - Added GetSystemMetrics function and associated enumeration
13317 2005-01-15  Peter Bartok  <pbartok@novell.com>
13319         * Control.cs:
13320           - WndProc(): Now handles EnableNotifyMessage
13321           - SelectNextControl(): Fixed bug where if no child or sibling
13322             controls exist we looped endlessly
13324 2005-01-14  Jackson Harper  <jackson@ximian.com>
13326         * TreeView.cs: Recalculate the tab pages when a new one is added
13327         so that the proper bounding rects are created.
13329 2005-01-14  Jackson Harper  <jackson@ximian.com>
13331         * TreeView.cs: Draw a gray box instead of a grip in the lower
13332         right hand corner when there are both horizontal and vertical
13333         scroll bars.
13335 2005-01-14  Jackson Harper  <jackson@ximian.com>
13337         * Control.cs: When erasing backgrounds use FromHwnd instead of
13338         FromHdc when there is a NULL wparam. This occurs on the X driver.
13339         * XplatUIX11.cs: Set the wparam to NULL.
13341 2005-01-13  Jackson Harper  <jackson@ximian.com>
13343         * PictureBox.cs: Implement missing methods (except ToString, need
13344         to test that on windows) and events. When visibility is changed we
13345         need to redraw the image because the buffers are killed. When size
13346         is changed refresh if the sizemode needs it.
13348 2005-01-13  Peter Bartok  <pbartok@novell.com>
13350         * Control.cs (SelectNextControl): Was using wrong method to select
13351           a control
13353 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
13355         * ComboBox.cs: fixes dropstyle
13357 2005-01-13  Peter Bartok  <pbartok@novell.com>
13359         * Form.cs:
13360           - Implemented Select() override
13361           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
13362           - Now sets keyboard focus on startup
13363         * Control.cs (SelectNextControl): Now properly handles directed=true
13364         * TextBoxBase.cs:
13365           - WndProc: Now passes tab key on to base if AcceptTabChar=false
13366           - Added (really bad) focus rectangle (mostly for testing)
13367         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
13368           to enforce redraw on focus changes
13369         * ContainerControl.cs:
13370           - Fixed detection of Shift-Tab key presses
13371           - Fixed traversal with arrow keys
13372         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
13373           gonna keep this or if it's complete yet
13374         
13375 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
13377         * ComboBox.cs: missing properties, fixes
13379 2005-01-13  Peter Bartok  <pbartok@novell.com>
13381         * Panel.cs (ctor): Setting Selectable window style to off
13382         * Splitter.cs (ctor): Setting Selectable window style to off
13383         * GroupBox.cs (ctor): Setting Selectable window style to off
13384         * Label.cs (ctor): Setting Selectable window style to off
13386 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
13388         * UpDownBase.cs (InitTimer): If the timer has been already
13389         created, enable it.
13391         Use a TextBox instead of a Label.
13393 2005-01-12  Jackson Harper  <jackson@ximian.com>
13395         * TreeView.cs: Refresh the tree after sorting the nodes. Always
13396         draw the connecting node lines (when ShowLines is true).
13397         * TreeNode.cs: The nodes index can now be updated. This is used
13398         when a node collection is sorted.
13399         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
13400         insert or an existing unsorted node collection can be sorted.
13401         
13402 2005-01-12  Peter Bartok  <pbartok@novell.com>
13404         * ContainerControl.cs: Implemented ProcessDialogKeys()
13406 2005-01-12  Peter Bartok  <pbartok@novell.com>
13408         * Control.cs:
13409           - Implemented SelectNextControl() method
13410           - Several focus related bug fixes
13411           - Fixed Docking calculations to match MS documentation and
13412             behaviour
13414 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
13416         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
13417         bug fixes
13419 2005-01-12  Peter Bartok  <pbartok@novell.com>
13421         * Control.cs:
13422           - Fixed broken Contains() method
13423           - Implemented GetNextControl() method. Finally. This is the pre-
13424             requisite for focus handling.
13426 2005-01-12  Peter Bartok  <pbartok@novell.com>
13428         * OSXStrucs.cs: Added
13430 2005-01-12  Peter Bartok  <pbartok@novell.com>
13432         * XplatUIWin32.cs:
13433           - Removed PeekMessageFlags
13434           - Implemented SetWindowStyle() method
13435         * XplatUIStructs.cs: Added PeekMessageFlags
13436         * X11Structs: Added missing border_width field to XWindowChanges struct
13437         * XplatUIX11.cs:
13438           - PeekMessage: Now throws exception if flags which are not yet
13439             supported are passed
13440           - Implemented SetWindowStyle() method
13441           - Fixed SetZOrder to handle AfterHwnd properly
13442         * XplatUI.cs: Added SetWindowStyle() method
13443         * XplatUIDriver.cs: Added SetWindowStyle() abstract
13444         * Control.cs:
13445           - Implemented UpdateStyles() method
13446           - Implemented UpdateZOrder() method
13447         * XplatUIOSX.cs: Added SetWindowStyle() stub
13449 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
13451         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
13452         button mouse).
13455 2005-01-11  Jackson Harper  <jackson@ximian.com>
13457         * TreeView.cs: Still need to draw lines to siblings even if out of
13458         the current node is out of the clip.
13460 2005-01-11  Jackson Harper  <jackson@ximian.com>
13462         * TreeView.cs: When setting the hbar/vbar/grip position use
13463         SetBounds so that perform layout is only called once. Also suspend
13464         and resume layout so layout is only done once for all controls.
13465         - Removed some debug fluff
13466         * SizeGrip.cs: Call base implmentation in overriding methods.
13467         - When visibility is changed the drawing buffers are killed so we
13468         need to redraw.
13470 2005-01-11  Jackson Harper  <jackson@ximian.com>
13472         * TreeView.cs: Calculate the open node count while drawing. This
13473         saves us an entire tree traversal for every paint operation. Use
13474         a member var for the open node count so less vars are passed around.
13476 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
13478         * MonthCalendar.cs:
13479         - fixed selection to use mousemove, not mouse polling on timer
13480         * ThemeWin32Classic.cs
13481         - removed redundant unused variable "no_more_content"
13482         
13483 2005-01-11  Peter Bartok  <pbartok@novell.com>
13485         * XplatUIX11.cs (DoEvents): Needs to return when no more events
13486           are pending, so it now calls PeekMessage instead of GetMessage;
13487           implemented a incomplete version of PeekMessage
13488         
13489 2005-01-11  Peter Bartok  <pbartok@novell.com>
13491         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
13492           I18n issues
13493         * TextBoxBase.cs: Added sending of TextChanged event
13495 2005-01-10  Jackson Harper  <jackson@ximian.com>
13497         * TreeView.cs: Try not to draw outside the clipping rectangle on
13498         each node element.
13500 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
13502         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
13504 2005-01-10  Jackson Harper  <jackson@ximian.com>
13506         * TreeView.cs:
13507         - Implement fast scrolling. Now only the newly
13508         exposed nodes are drawn and the old image is moved using the
13509         XplatUI::ScrollWindow method.
13510         - Factor in height of nodes when calculating whether or not the
13511         node is in the clipping rect.
13513 2005-01-10  Jackson Harper  <jackson@ximian.com>
13515         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
13517 2005-01-10  Peter Bartok  <pbartok@novell.com>
13519         * Application.cs: Added temporary hack to resolve all our resize
13520           required issues on startup. This will get fixed properly at
13521           some point in the future
13523 2005-01-10  Jackson Harper  <jackson@ximian.com>
13525         * SizeGrip.cs: New internal class that is used as a sizing
13526         grip control...hence the name.
13528 2005-01-10  Peter Bartok  <pbartok@novell.com>
13530         * Control.cs: Implemented proper TabIndex handling, now assigning
13531           a tabindex when a control is added to a container
13532         * GroupBox.cs (ctor): Now sets the Container style bit, required
13533           for Control.GetNextControl()
13535 2005-01-09  Jackson Harper  <jackson@ximian.com>
13537         * TextBoxBase.cs: Clear window when scrolling (fixes build).
13539 2005-01-09  Peter Bartok <pbartok@novell.com>
13541         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
13542           XplatUIX11.cs: Added ability to control ScrollWindow expose and
13543           an overload for ScrollWindow to allow only scrolling a rectangle
13545 2005-01-09  Peter Bartok <pbartok@novell.com>
13547         * Form.cs:
13548           - Implemented SetDesktopBounds method
13549           - Implemented SetDesktopLocation method
13551 2005-01-08  Jackson Harper  <jackson@ximian.com>
13553         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
13554         the node count has changed, this removes to VScroll::Refresh calls
13555         when drawing.
13557 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
13559         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
13561 2005-01-07  Jackson Harper  <jackson@ximian.com>
13563         * TreeNode.cs: Just update the single node when it is
13564         checked. Don't refresh after toggling, the Expand/Collapse already
13565         handles this.
13566         * TreeView.cs: Respect clipping a little more when drawing. Try
13567         not to redraw things that don't need to be redrawn. Just hide the
13568         scrollbars when they are no longer needed instead of removing
13569         them, so they don't have to be created again and again.
13570         
13571 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
13573         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
13574         coordinates to window space to place the caret properly, FIXED.
13575         Implement GetWindowState & SetWindowState
13577 2005-01-06  Peter Bartok <pbartok@novell.com>
13579         * Form.cs:
13580           - Implemented ClientSize property
13581           - Implemented DesktopBounds property
13582           - Implemented DesktopLocation property
13583           - Implemented IsRestrictedWindow property
13584           - Implemented Size property
13585           - Implemented TopLevel property
13586           - Implemented FormWindowState property
13587         * Control.cs:
13588           - Implemented GetTopLevel() method
13589           - Implemented SetTopLevel() method
13590         * X11Structs.cs (Atom):
13591           - Added AnyPropertyType definition
13592           - Added MapState definiton and updated XWindowAttribute struct
13593         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
13594         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
13595         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
13596         * XplatUIWin32.cs:
13597           - Implemented GetWindowState() and SetWindowState() methods
13598           - Fixed Win32GetWindowLong return type
13599         * XplatUIX11.cs:
13600           - Introduced central function for sending NET_WM messages
13601           - Implemented GetWindowState() and SetWindowState() methods
13602         * TextBoxBase.cs (set_Lines):
13603           - Now uses Foreground color for text added via Text property (Duh!)
13604           - Added code to remember programmatically requested size (fixes
13605             behaviour when Multiline is set after Size)
13606           - Added AutoSize logic
13608 2005-01-06  Jackson Harper  <jackson@ximian.com>
13610         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
13612 2005-01-06  Jackson Harper  <jackson@ximian.com>
13614         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
13615         set to less then 0.
13617 2005-01-06  Jackson Harper  <jackson@ximian.com>
13619         * ScrollableControl.cs: Lazy init the scrollbars.
13620         
13621 2005-01-06  Jackson Harper  <jackson@ximian.com>
13623         * Theme.cs: Speed up getting pens and solid brushes, by using
13624         their ARGB as a hash instead of tostring and not calling Contains.
13626 2005-01-06  Peter Bartok <pbartok@novell.com>
13628         * Form.cs:
13629           - Implemented OnActivated and OnDeactivate event trigger
13630           - Implemented Activate() method
13631           - Fixed ShowDialog() to activate the form that was active before
13632             the dialog was shown
13633         * XplatUIX11.cs:
13634           - Added global active_window var that tracks the currently active
13635             X11 window
13636           - Now always grabs Property changes from the root window to always
13637             catch changes on the active window property
13638           - Added code to PropertyNotify handler to send Active/Inactive
13639             messages when state changes. This puts X11 and Win32 en par on
13640             WM_ACTIVATE notifications (except for double notifications when
13641             the user clicks away from our modal window to another one of our
13642             windows)
13644 2005-01-05  Jackson Harper  <jackson@ximian.com>
13646         * ImageList.cs: Implment ctor
13648 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
13650         * XplatUIOSX.cs: Implement Activate/SetTopmost
13652 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
13654         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
13656 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
13658         * XplatUIOSX.cs: Implement GetActive/SetFocus.
13660 2005-01-05  Peter Bartok <pbartok@novell.com>
13662         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
13663           XplatUIOSX.cs: Added GetActive method to return the currently
13664           active window for the application (or null, if none is active)
13665         * Form.cs:
13666           - Implemented ActiveForm
13667           - Commented out owner assignment for modal dialogs (causes problems
13668             on Win32, since the owner will be disabled)
13669           - Reworked some Active/Focus handling (still incomplete)
13670         * CommonDialog.cs: Commented out owner assignment for modal dialogs
13671           (causes problems on Win32, since the owner will be disabled)
13672         * IWin32Window: Added ComVisible attribute
13674 2005-01-05  Peter Bartok <pbartok@novell.com>
13676         * ToolTip.cs (WndProc): Enable setting focus now that we have the
13677           required XplatUI functions.
13679 2005-01-05  Peter Bartok <pbartok@novell.com>
13681         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
13682           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
13683           to implement focus and activation handling; still incomplete and
13684           with debug output
13686 2005-01-04  Peter Bartok <pbartok@novell.com>
13688         * TextBoxBase.cs: Changed access level for Document property to
13689           match switch to internal for TextControl
13691 2005-01-04  Peter Bartok <pbartok@novell.com>
13693         * AccessibleObject: Added ComVisible attribute
13695 2005-01-04  Jackson Harper  <jackson@ximian.com>
13697         * X11Keyboard.cs: Remove unneeded var.
13699 2005-01-04  Jackson Harper  <jackson@ximian.com>
13701         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
13702         but PAINT.
13703         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
13704         ClientMessage. This makes apps exit cleanly (more often).
13705         
13706 2005-01-04  Jackson Harper  <jackson@ximian.com>
13708         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
13709         handling focus, return correct colors and fonts,
13710         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
13711         handle selection, horizontal scrolling, and mouse interaction.
13713 2005-01-04  Peter Bartok <pbartok@novell.com>
13715         * ICommandExecutor.cs: Added
13716         * IDataGridColumnStyleEditingNotificationService.cs: Added
13717         * IFeatureSupport.cs: Added
13718         * IFileReaderService.cs: Added
13719         * IDataObject.cs: Added ComVisible attribute
13720         * AmbientProperties.cs: Added
13721         * BaseCollection.cs: Added missing attributes
13722         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
13723         * BaseCollection.cs: Added missing attributes
13724         * Binding.cs: Added TypeConverter attribute
13725         * BindingContext.cs: Added DefaultEvent attribute
13726         * BindingsCollection.cs: Added DefaultEvent attribute
13727         * Button.cs: Added DefaultValue attribute
13728         * DragEventArgs.cs: Added ComVisible attribute
13729         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
13730         * KeyEventArgs.cs: Added ComVisible attribute
13731         * KeyPressEventArgs.cs: Added ComVisible attribute
13732         * MouseEventArgs.cs: Added ComVisible attribute
13733         * NavigateEventArgs.cs: Added
13734         * NavigateEventHandler.cs: Added
13735         * FeatureSupport.cs: Added
13736         * OSFeature.cs: Added
13737         * Theme.cs: Added abstract Version property to support OSFeature
13738         * ThemeWin32Classic.cs: Added Version property to
13739           support OSFeature.Themes
13740         * ProgressBar.cs: Removed OnPaintBackground override, not required since
13741           the proper styles to avoid background drawing are set, also doesn't
13742           match MS signature
13743         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
13744         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
13745         * ScrollEventArgs.cs: Added ComVisible attribute
13746         * SplitterEventArgs.cs: Added ComVisible attribute
13747         * AccessibleSelection.cs: Added Flags attribute
13748         * Appearance.cs: Added ComVisible attribute
13749         * Border3DSide.cs: Added ComVisible attribute
13750         * Border3DStyle.cs: Added ComVisible attribute
13751         * BorderStyle.cs: Added ComVisible attribute
13752         * DragAction.cs: Added ComVisible attribute
13753         * ErrorBlinkStyle.cs: Added
13754         * ScrollEventType.cs: Added ComVisible attribute
13755         * AnchorStyles.cs: Added Editor attribute
13756         * DockStyle.cs: Added Editor attribute
13757         * HorizontalAlignment.cs: Added ComVisible attribute
13758         * HelpEventArgs.cs: Added ComVisible attribute
13759         * PaintEventArgs.cs: Added IDisposable
13761 2005-01-04  Peter Bartok <pbartok@novell.com>
13763         * TextControl.cs: Switched Line, LineTag and Document classes to
13764           internal
13766 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
13768         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
13769         Simple mode, fixes, IntegralHeight, etc.
13771 2005-01-04  Peter Bartok <pbartok@novell.com>
13773         * TextBoxBase.cs: Using proper font variable now
13775 2005-01-04  Peter Bartok <pbartok@novell.com>
13777         * Form.cs (ShowDialog): Set parent to owner, if provided
13778         * GroupBox.cs: Removed unused vars
13779         * TextControl.cs:
13780           - Added GetHashCode() for Document and LineTag classes
13781           - Removed unused variables
13782           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
13783             to allow translation between continuous char position and line/pos
13784         * CheckBox.cs: Removed vars that are provided by base class
13785         * RadioButton.cs: Removed vars that are provided by base class, added
13786           new keyword where required
13787         * LinkLabel.cs: Added new keyword where required
13788         * Control.cs (WndProc): Removed unused variable
13789         * TextBoxBase.cs:
13790           - Finished SelectionLength property
13791           - Implemented SelectionStart property
13792           - Implemented Text property
13793           - Removed unused vars
13794         * MessageBox.cs: Added new keyword where required
13795         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
13796           WndProc signature
13797         * MenuAPI.cs: Added new keyword where required
13798         * ButtonBase.cs: Removed vars that are provided by base class, added
13799           new keyword where required
13800         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
13801           argument to double, to allow compiling with csc 2.0 (Atsushi ran
13802           into this)
13803         * Application.cs (Run): Now triggers the ThreadExit event
13804         * CommonDialog.cs: Added new keyword where required; now properly sets
13805           parent (owner) for dialog
13806         * XplatUIX11.cs: Commented out unused vars
13807         * StatusBar.cs: Fixed signature for Text property
13808         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
13810 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
13812         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
13813         TrackBar.cs, MonthCalendar.cs: remove unused vars
13815 2005-01-03  Jackson Harper  <jackson@ximian.com>
13817         * ThemeWin32Classic.cs:
13818         * X11Keyboard.cs: Remove unused vars.
13820 2005-01-03  Peter Bartok  <pbartok@novell.com>
13822         * TextBox.cs:
13823           - set_Text: Tied into TextControl
13824           - set_TextAlignment: Tied into TextControl
13825         * TextControl.cs:
13826           - Added alignment properties and implemented alignment handling
13827             and drawing (still has a bug, not generating proper expose events)
13828           - Added new Line() constructor to allow passing the line alignment
13829           - Fixed selection setting, properly handling end<start now
13830           - Added aligment considerations to RecalculateDocument()
13831         * TextBoxBase.cs:
13832           - Now properly enforces control height for single line controls
13833           - Added support for CharacterCasing
13834           - Added IsInputKey override
13835           - Fixed Keys.Enter logic
13836           - Added SetBoundsCore override
13837           - Fixed mouse selection handling
13839 2005-01-03  Jackson Harper  <jackson@ximian.com>
13841         * TreeView.cs:
13842           - Collapse and uncheck all nodes when CheckBoxes is disabled.
13843           - Checkboxes are always aligned to the bottom of the node,
13844           regardless of item height.
13845           - Use the node bounds to draw the text so we can center it when
13846           the item height is greater then the font height.
13847           - Node::Bounds are only the text part of the node.
13848         * TreeNode.cs: New method to combine collapsing and unchecking all
13849           nodes recursively.
13851 2005-01-02  Jackson Harper  <jackson@ximian.com>
13853         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
13854         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
13855         tree when a check is changed. TODO: Only refresh the checked node.
13857 2004-12-30  Jackson Harper  <jackson@ximian.com>
13859         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
13860         * TreeNode.cs: When collapsing make sure to never collapse the
13861         root node.
13863 2004-12-29  Jackson Harper  <jackson@ximian.com>
13865         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
13866         
13867 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
13869         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
13871 2004-12-28  Peter Bartok  <pbartok@novell.com>
13873         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
13874           not yet assigned
13876 2004-12-28  Peter Bartok  <pbartok@novell.com>
13878         * Control.cs (WndProc): Added WM_HELP handler, now generates
13879           HelpRequested event
13880         * Form.cs: Added HelpButton property and required support code
13881         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
13883 2004-12-28  Peter Bartok  <pbartok@novell.com>
13885         * CommonDialog.cs:
13886           - Made DialogForm.owner variable internal
13887           - Added check to ensure owner form is set before setting
13888             owner properties in CreateParams
13890 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
13892         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
13893           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
13894           GetCursorPos.  Fix major visibility issues.  Rework the windowing
13895           system to support borderless/titleless windows (implements menus).
13896           Fix GetWindowPos.  Implement initial background color support for
13897           views.
13899 2004-12-28  Peter Bartok  <pbartok@novell.com>
13901         * Form.cs (get_CreateParams): Make sure we have an owner before using
13902           the owner variable. Implement proper default if no owner exists
13904 2004-12-28  Peter Bartok  <pbartok@novell.com>
13906         * In preparation for making Managed.Windows.Forms the default build target
13907           for System.Windows.Forms, the following stubbed files were added.
13908           Dialogs are currently being implemented by contributors and are only
13909           short-term place holders.
13910         * ColorDialog.cs: Initial check-in (minmal stub)
13911         * DataGrid.cs: Initial check-in (minimal stub)
13912         * DataGridLineStyle.cs: Initial check-in (minimal stub)
13913         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
13914         * DataGridTableStyle.cs: Initial check-in (minimal stub)
13915         * FontDialog.cs: Initial check-in (minimal stub)
13916         * FileDialog.cs: Initial check-in (minimal stub)
13917         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
13918         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
13919         * OpenFileDialog: Initial check-in (minimal stub)
13920         * IComponentEditorPageSite.cs: Initial check-in
13921         * Splitter.cs: Initial check-in (for Jackson)
13922         * SplitterEventArgs.cs: Initial check-in (for Jackson)
13923         * SplitterEventHandler.cs: Initial check-in (for Jackson)
13924         * TextBox.cs: Initial check-in; still needs some wiring to
13925           TextControl backend
13926         * Form.cs: Implemented ControlBox property
13927         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
13928         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
13929         * TextControl.cs: Added selection functionality; added todo header
13930         * TextBoxBase.cs:
13931           - Implemented Lines property
13932           - Implemented TextHeight property
13933           - Implemented SelectedText property
13934           - Implemented SelectionLength property
13935           - Implemented SelectAll method
13936           - Implemented ToString method
13937           - Removed and cleaned up some debug code
13938           - Implemented (still buggy) mouse text selection
13940 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
13942         * ComboBox.cs: Complete DropDownList implementation, fixes.
13944 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
13946         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
13947         * ComboBoxStyle.cs: ComboBoxStyle enum
13948         * ComboBox.cs: Initial work on ComboBox control
13950 2004-12-21  Peter Bartok  <pbartok@novell.com>
13952         * Control.cs (ctor, CreateParams): Moved setting of is_visible
13953           forward so that anything that creates a window gets the default,
13954           also no longer uses Visible property in CreateParams to avoid
13955           walking up the parent chain and possibly get the wrong visible
13956           status. Fixed IsVisible to no longer walk up to the parent.
13958 2004-12-21  Peter Bartok  <pbartok@novell.com>
13960         * Form.cs (ShowDialog): Unset modality for the proper window
13962 2004-12-20  Peter Bartok  <pbartok@novell.com>
13964         * CommonDialog.cs: Initial check-in
13966 2004-12-20  Peter Bartok  <pbartok@novell.com>
13968         * Control.cs (Visible): Now uses the parent window instead of the
13969           client area window for the property
13971         * Form.cs
13972           - ShowDialog(): Now uses the proper window for modality
13973           - The default visibility state for the form parent is now false. This
13974             will prevent the user from seeing all the changes to the form and
13975             its controls before the application hits Application.Run()
13976           - Removed some stale commented out code
13978         * NativeWindow.cs:
13979           - Added FindWindow() method to have a method to check for existence
13980             of a window handle
13981           - Added ability to override default exception handling (for example
13982             when debugging with VS.Net; to do this the ExternalExceptionHandler
13983             define must be set
13984           - Removed some useless debug output
13986         * XplatUIX11.cs:
13987           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
13988             not working as expected
13989           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
13990             property to allow switching back to the modal window if focus is
13991             given to another one of our windows (Application Modal)
13992           - Now only sets override_redirect if we create a window
13993             without WS_CAPTION
13994           - Moved EventMask selection before mapping of newly created window
13995             so we can catch the map event as well
13996           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
13997           - Added various Atom related DllImports
13998           - Implemented Exit() method
13999           - .ctor() : No longer shows window if WS_VISIBLE is not defined
14000             in the CreateParams
14002         * MessageBox.cs: Now properly deals with the FormParent window by
14003           providing an override the FormParent CreateParams property to
14004           set as POPUP instead of OVERLAPPED window.
14006 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
14008         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
14009         Minor code cleanup.
14011 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
14012         
14013         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
14015 2004-12-18  Peter Bartok  <pbartok@novell.com>
14017         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
14018           implementing SetModal() method
14020 2004-12-18  Peter Bartok  <pbartok@novell.com>
14022         * X11Structs.cs (XGCValues): Fixed type of function element
14023         * XplatUI.cs: Added ScrollWindow() method
14024         * XplatUIDriver.cs: Added ScrollWindow() abstract
14025         * XplatUIWin32.cs: Implemented ScrollWindow() method
14026         * XplatUIX11.cs: Implemented ScrollWindow() method
14027         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
14029 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
14031         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
14032         Some more keyboard support (INCOMPLETE)
14034 2004-12-17  Peter Bartok  <pbartok@novell.com>
14036         * TextControl.cs:
14037         - Added color attribute to line tags.
14038         - Added color argument to all functions dealing with tags
14039         - Added color argument support to various functions
14040         - Fixed miss-calculation of baseline/shift in certain circumstances
14042         * TextBoxBase.cs: Added new color option to test code
14044 2004-12-17  Jackson Harper  <jackson@ximian.com>
14046         * TreeNode.cs:
14047         * MonthCalendar.cs: Signature fixes
14049 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
14051         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
14052         keyboard event moved it.  Create a new graphics context for each paint resolves this
14054 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
14056         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
14057         Make caret exist and go blink blink.  Initial keyboard support.
14058         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
14059         works.
14061 2004-12-17  Jackson Harper  <jackson@ximian.com>
14063         * XplatUIStructs.cs: Updated set of virtual keycodes.
14064         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
14066 2004-12-17  Jackson Harper  <jackson@ximian.com>
14068         * XplatUIX11.cs: Prune old keyboard code.
14070 2004-12-17  Jackson Harper  <jackson@ximian.com>
14072         * XplatUIX11.cs: When generating mouse wparams get the modifier
14073         keys from the ModifierKeys property.
14075 2004-12-17  Jackson Harper  <jackson@ximian.com>
14077         * X11Keyboard.cs: Send up/down input when generating
14078         messages. Remove some unused vars.
14080 2004-12-17  Jackson Harper  <jackson@ximian.com>
14082         * TabControl.cs:
14083         * TreeView.cs: get rid of warnings.
14085 2004-12-17  Jackson Harper  <jackson@ximian.com>
14087         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
14089 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
14091         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
14092           CheckedListBox.cs: Implementation
14094 2004-12-17  Peter Bartok  <pbartok@novell.com>
14096         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
14098 2004-12-16  Peter Bartok  <pbartok@novell.com>
14100         * TextControl.cs:
14101           - InsertCharAtCaret(): Fixed start pos fixup
14102           - CaretLine_get: No longer derives the line from the tag, the tag
14103             could be stale if lines in the document have been added or deleted
14104           - RebalanceAfterDelete(): Fixed bug in balancing code
14105           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
14106           - Line.Streamline(): Now can also elminate leading empty tags
14107           - DumpTree(): Added a few more tests and prevented exception on
14108             uninitialized data
14109           - Added Debug section for Combining lines
14110           - Delete(): Now copies all remaining properties of a line
14111           
14112         * TextBoxBase.cs:
14113           - Left mousebutton now sets the caret (and middle button still acts
14114             as formatting tester, which must go away soon)
14115           - Added Debug section for Deleting/Combining lines
14116           - Fixed calculations for UpdateView after Combining lines
14118 2004-12-16  Peter Bartok  <pbartok@novell.com>
14120         * TextControl.cs: Now properly aligns text on a baseline, using the
14121           new XplatUI.GetFontMetrics() method. Simplified several calculations
14122         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
14123           defined
14125 2004-12-16  Peter Bartok  <pbartok@novell.com>
14127         * XplatUI.cs: Added GetFontMetrics() method
14128         * XplatUIDriver.cs: Added GetFontMetrics() abstract
14129         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
14130           into libgdiplus, our private GetFontMetrics function
14131         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
14132         * XplatUIWin32.cs: Implemented GetFontMetrics() method
14134 2004-12-16  Jackson Harper  <jackson@ximain.com>
14136         * XplatUIStruct.cs: Add enum for dead keys
14137         * X11Keyboard.cs: Map and unmap dead keys.
14139 2004-12-16  Jackson Harper  <jackson@ximian.com>
14141         * X11Keyboard.cs: Detect and use the num lock mask.
14143 2004-12-16  Peter Bartok  <pbartok@novell.com>
14145         * Control.cs (CreateGraphics): Added check to make sure the
14146           handle of the window exists before calling Graphics.FromHwnd()
14148 2004-12-16  Peter Bartok  <pbartok@novell.com>
14150         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
14151           contains a lot of code that's not supposed to be there for the
14152           real thing, but required for developing/testing the textbox
14153           backend.
14155 2004-12-16  Peter Bartok  <pbartok@novell.com>
14157         * TextControl.cs:
14158         - Fixed Streamline method
14159         - Added FindTag method to Line
14160         - Added DumpTree method for debugging
14161         - Added DecrementLines() method for deleting lines
14162         - Fixed UpdateView to update the cursor to end-of-line on single-line
14163           updates
14164         - Added PositionCaret() method
14165         - Fixed MoveCaret(LineDown) to move into the last line, too
14166         - Added InsertChar overload
14167         - Fixed InsertChar tag offset calculations
14168         - Added DeleteChar() method
14169         - Added Combine() method for folding lines
14170         - Fixed Delete() method, no longer allocates wasted Line object and
14171           now copies all properties when swapping nodes
14172         - Delete() method now updates document line counter
14174 2004-12-15  Jackson Harper  <jackson@ximian.com>
14176         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
14177         * X11Keyboard.cs: Expose the currently selected modifier keys
14178         through a property.
14180 2004-12-15  Peter Bartok  <pbartok@novell.com>
14182         * TextControl.cs: Initial check-in. Still incomplete
14184 2004-12-15  Jackson Harper  <jackson@ximian.com>
14186         * TreeNode.cs:
14187         * TreeView.cs: Fix build on csc (second time today ;-))
14189 2004-12-15  Jackson Harper  <jackson@ximian.com>
14191         * TreeView.cs: Store the treenodes plus/minus box bounds when it
14192         is calculated and use this for click testing.
14193         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
14195 2004-12-15  Jackson Harper  <jackson@ximian.com>
14197         * TreeView.cs: Pass the nodes image index to the image list when
14198         drawing that image.
14200 2004-12-15  Jackson Harper  <jackson@ximian.com>
14202         * X11Keyboard.cs: Set messages hwnd.
14203         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
14204         post_message calls.
14206 2004-12-15  Jackson Harper  <jackson@ximian.com>
14208         * X11Keyboard.cs: Fix to compile with csc.
14209         
14210 2004-12-15  Jackson Harper  <jackson@ximian.com>
14212         * X11Structs.cs: Add key mask values
14213         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
14214         * X11Keyboard.cs: New file - Extrapolates and interpolates key
14215         down/up foo into WM_CHAR foo
14216         * KeyboardLayouts.cs: Common keyboard layouts
14217         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
14218         post messages into the main queue.
14220 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
14222         * Button.cs: implement ProcessMnemonic
14223         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
14224           brushes everytime
14225         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
14226         * ButtonBase.cs: Show HotkeyPrefix (not the &)
14228 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
14229         
14230         * MonthCalendar.cs: Implemented click-hold for next/previous month
14231           and date selection
14232           
14233 2004-12-11  Peter Bartok  <pbartok@novell.com>
14235         * X11Structs.cs:
14236           - Added XKeyboardState (moved from XplatUIX11.cs)
14237           - Added XCreateGC related enums and structures
14238           - Added GXFunction for XSetFunction
14240         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
14242         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
14243           CaretVisible() calls
14245         * ToolTip.cs: Added code to prevent stealing focus from app windows
14247         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
14248           DestroyCaret, SetCaretPos and CaretVisible)
14250         * XplatUIX11.cs:
14251           - Added implementation for caret functions
14252           - Moved hover variables into a struct, to make it a bit easier
14253             on the eyes and to debug
14254           - Removed XKeyboardState (moved to XplatUIX11.cs)
14255           - Moved Keyboard properties into the properties region
14257         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
14258           call to get a graphics context for our control
14260         * XplatUIOSX.cs: Added empty overrides for the new caret functions
14262         * TreeView.cs: Fixed bug. No matter what color was set it would always
14263           return SystemColors.Window
14265         * XplatUIWin32.cs: Implemented caret overrides
14267 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
14269         * ListBox.cs: fire events, implement missing methods and properties,
14270         sorting.
14272 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
14274         * MonthCalendar.cs: invalidation bug fixing
14275         * ThemeWin32Classic.cs: paint fixing
14277 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
14279         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
14280         prepare the CGContextRef there now.
14282 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
14284         * MonthCalendar.cs:
14285           - optimisationL only invalidate areas that have changed
14286         * ThemeWin32Classic.cs:
14287           - only paint parts that intersect with clip_area
14289 2004-12-09  Peter Bartok  <pbartok@novell.com>
14291         * Application.cs: Undid changes from r37004 which cause problems
14292         on X11
14294 2004-12-09  Ravindra  <rkumar@novell.com>
14296         * ToolBar.cs: Added support for displaying ContextMenu
14297         attached to a button on ToolBar.
14298         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
14299         property.
14301 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
14303         * Label.cs: autosize works in text change and removes unnecessary
14304         invalidate
14306 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
14308         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
14309         remove warnings
14311 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
14313         * XplatUIOSX.cs: Added mouse move/click/grab support
14314         Remove some debugging WriteLines not needed anymore.
14315         Add window resizing/positioning.
14316         Fix visibility on reparenting.
14318 2004-12-08  Peter Bartok  <pbartok@novell.com>
14320         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
14322 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
14324         * XplatUIOSX.cs: Initial checkin
14325         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
14327 2004-12-03  Ravindra <rkumar@novell.com>
14329         * ListView.cs: Added some keybindings and fixed scrolling.
14330         ScrollBars listen to ValueChanged event instead of Scroll
14331         Event. This would let us take care of all changes being
14332         done in the scrollbars' values programmatically or manually.
14333         * ListView.cs (CanMultiselect): Added a check for shift key.
14334         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
14335         * ListViewItem.cs (Clone): Fixed. We need to make a copy
14336         of ListViewSubItemCollection as well.
14338 2004-12-06  Peter Bartok <pbartok@novell.com>
14340         * Control.cs (Parent): Added check and exception to prevent
14341         circular parenting
14343 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
14345         * ListBox.cs: implemented clipping, selection single and multiple,
14346         bug fixing
14348 2004-12-03  Ravindra <rkumar@novell.com>
14350         * ListView.cs (ListView_KeyDown):
14351         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
14352         when CTRL key is pressed.
14353         * ListViewItem.cs (Selected): Fixed setting the property.
14355 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
14357         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
14359         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
14360         MinimizeBox, ShowInTaskbar, TopMost properties.
14362         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
14363         will be implemented).
14365 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
14367         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
14369         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
14370         tests.
14371         
14372         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
14373         
14374         * TreeView.cs: BackColor is Colors.Window.
14376 2004-12-01  Jackson Harper  <jackson@ximian.com>
14378         * TreeView.cs: When resizing the tree if the user is making it
14379         smaller we don't get expose events, so we need to handle adding
14380         the horizontal scrollbar in the size changed handler as well as
14381         the expose handler.
14383 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
14385         * DrawItemState.cs: fixes wrong enum values
14387 2004-12-01  Jackson Harper  <jackson@ximian.com>
14389         * TreeView.cs: Resize the hbar as well as the vbar on resize.
14391 2004-12-01  Jackson Harper  <jackson@ximian.com>
14393         * NodeLabelEditEventArgs.cs:
14394         * NodeLabelEditEventHandler.cs:
14395         * OpenTreeNodeEnumerator.cs:
14396         * TreeNode.cs:
14397         * TreeNodeCollection.cs:
14398         * TreeView.cs:
14399         * TreeViewAction.cs:
14400         * TreeViewCancelEventArgs.cs:
14401         * TreeViewCancelEventHandler.cs:
14402         * TreeViewEventArgs.cs:
14403         * TreeViewEventHandler.cs: Initial implementation.
14405 2004-12-01  Ravindra <rkumar@novell.com>
14407         * ListView.cs (CalculateListView): Fixed scrolling related
14408         calculations. Also, removed some debug statements from other
14409         places.
14410         * ListViewItem.cs: Changed access to 'selected' instance variable
14411         from private to internal.
14412         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
14414 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
14416         * ThemeWin32Classic.cs: remove cache of brush and pens for
14417         specific controls and use the global system, fixes scrollbutton
14418         bugs (for small sizes, disabled, etc)
14419         
14420         * ScrollBar.cs: does not show the thumb for very small controls
14421         (as MS) and allow smaller buttons that the regular size
14423 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
14425         * UpDownBase.cs: Add abstract methods for the interface.
14426         Add new virtual methods (need to be hooked up to TextEntry when it
14427         exists).
14428         Add override methods for most features.
14429         Computes the size, forces the height of the text entry.
14431         * NumericUpDown.cs: Put here the current testing code.
14433         * Set eol-style property on all files that do not have mixed line
14434         endings, to minimize the future problems.  There are still a few
14435         files with mixed endings, and someone should choose whether they
14436         want to move it or not.
14438 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
14440         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
14441         System.Colors
14442         
14443 2004-11-30  Ravindra <rkumar@novell.com>
14445         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
14446         drawing and replaced use of SystemColors by theme colors.
14447         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
14448         * ListView.cs (ListViewItemCollection.Add): Throw exception when
14449         same ListViewItem is being added more than once.
14451 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
14453         * MonthCalendar.cs:
14454           - ControlStyles love to make the control not flicker
14455           
14456 2004-11-30  Peter Bartok  <pbartok@novell.com>
14458         * CharacterCasing.cs: Added
14460 2004-11-29  Peter Bartok  <pbartok@novell.com>
14462         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
14463           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
14464           I am removing these files as they conflict with already completed
14465           work. While it is fantastic to get contributions to MWF, I
14466           respectfully ask that everyone please coordinate their contributions
14467           through mono-winforms-list or #mono-winforms at this time. We're
14468           explicitly avoiding stubbing and don't want controls that don't have
14469           their basic functionality implemented in svn. Please also see
14470           http://www.mono-project.com/contributing/winforms.html
14473 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
14475         * Application.cs (ModalRun): Don't hang after exit.
14477         * Theme.cs: New TreeViewDefaultSize property.
14479         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
14480         with less hardcoded SystemColors constant.
14481         Implemented TreeViewDefaultSize.
14483         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
14484         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
14487 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
14489         * MonthCalendar.cs:
14490           - Fix NextMonthDate and PrevMonthDate click moving calendar
14492 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
14494         * MonthCalendar.cs:
14495           - Fix usage of ScrollChange Property when scrolling months
14497 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
14499         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
14500          - Fixes menu destroying
14501          - Support adding and removing items on already created menus
14503 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
14505         * MonthCalendar.cs:
14506           - Re-worked all bolded dates handling to match win32
14507         * ThemeWin32Classic.cs:
14508           - Fixed rendering with bolded dates
14510 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
14512         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
14513         - Horizontal scroolbar
14514         - Multicolumn
14515         - Fixes
14518 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
14520         * MonthCalendar.cs:
14521           - Fix Usage of MaxSelectionCount from SelectionRange
14522           - Fixed Shift + Cursor Selection
14523           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
14524           - Fixed normal cursor selection to be compat with win32
14525           - Fixed Shift + Mouse Click selection
14527 2004-11-24  Peter Bartok <pbartok@novell.com>
14529         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
14530         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
14531         * XplatUIX11.cs:
14532           - CreatedKeyBoardMsg now updates keystate with Alt key
14533           - Added workaround for timer crash to CheckTimers, Jackson will
14534             develop a proper fix and check in later
14535           - Implemented DispatchMessage
14536           - Removed calling the native window proc from GetMessage (call
14537             now moved to DispatchMessage)
14539         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
14540           the keydata (Fixes bug #69831)
14542         * XplatUIWin32.cs:
14543           - (DispatchMessage): Switched to return IntPtr
14544           - Added DllImport for SetFocus
14546 2004-11-24  Ravindra <rkumar@novell.com>
14548         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
14549         background drawing.
14550         * ListViewItem.cs: Fixed various properties, calculations
14551         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
14552         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
14553         and some internal properties. Fixed MouseDown handler and Paint
14554         method.
14556 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
14558         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
14560 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
14562         * ContainerControl.cs: correct accidental check in of local changes
14564 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
14566         * ThemeWin32Classic.cs:
14567                 - Fixed Drawing Last month in grid (sometimes not showing)
14568         * MonthCalendar.cs:
14569                 - Fixed title width calculation bug (makeing title small)
14571 2004-11-23  Peter Bartok <pbartok@novell.com>
14573         * XplatUIX11.cs:
14574           - Added generation of WM_MOUSEHOVER event
14575           - Added missing assignment of async_method atom
14576           - Fixed WM_ERASEBKGND; now only redraws the exposed area
14578 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
14580         * ThemeWin32Classic.cs:
14581                 - Fixed Drawing of today circle when showtodaycircle not set
14582                 - fixed drawing of first and last month in the grid (gay dates)
14583         * MonthCalendar.cs:
14584                 - Fixed Drawing of today circle
14585                 - Fixed drawing of grady dates
14586                 - Fixed HitTest for today link when ShowToday set to false
14587                 - Fixed DefaultSize to obey ShowToday
14589 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
14591         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
14592         * System.Windows.Forms/Theme.cs
14593         * MonthCalendar.cs: added for MonthCalendar
14594         * SelectionRange.cs: added for MonthCalendar
14595         * Day.cs: added for MonthCalendar: added for MonthCalendar
14596         * DateRangeEventArgs.cs: added for MonthCalendar
14597         * DateRangeEventHandler.cs: added for MonthCalendar
14599 2004-11-22  Ravindra <rkumar@novell.com>
14601         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
14602         property.
14604 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
14606         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
14607         event handler.
14608         
14609         * NumericUpDown.cs: Added new implementation.
14610         * UpDownBase.cs: Added new implementation.
14612         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
14613         implementations.
14614         
14615         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
14616         implementations.
14618         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
14619         methods.
14621 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
14623         * Timer.cs  (Dispose): Should call the base dispose when
14624         overriding.
14626 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
14628         * ScrollBar.cs: updates thumb position when max, min or increment
14629         is changed
14631 2004-11-21  Ravindra <rkumar@novell.com>
14633         * ListView.cs: Implemented item selection, activation and
14634         column header style. Fixed properties to do a redraw, if
14635         required. Added support for MouseHover, DoubleClick, KeyDown
14636         and KeyUp event handling and some minor fixes.
14637         * ListViewItem.cs: Fixed constructor.
14638         * ThemeWin32Classic.cs: Improved drawing for ListView.
14640 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
14642         * ThemeWin32Classic.cs: initial listbox drawing code
14643         * DrawMode.cs: new enumerator
14644         * ListControl.cs: stubbed class
14645         * ListBox.cs: initial implementation
14646         * Theme.cs: new methods definitions
14647         * SelectionMode.cs: new enumerator
14649 2004-11-17  Peter Bartok  <pbartok@novell.com>
14651         * XplatUIWin32.cs: Added double-click events to the class style
14652         * Control.cs (WndProc):
14653           - Added handling of click-count to MouseDown/ MouseUp events.
14654           - Added handling of middle and right mouse buttons
14655           - Removed old debug code
14657 2004-11-17  Jackson Harper  <jackson@ximian.com>
14659         * XplatUIX11.cs: Use the new Mono.Unix namespace.
14661 2004-11-17  Ravindra <rkumar@novell.com>
14663         * ListView.cs: Added event handling for MouseMove/Up/Down.
14664         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
14665         * ThemeWin32Classic.cs: We need to clear the graphics context and
14666         draw column header in a proper state.
14669 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
14671         *  Menu.cs: fixes signature
14673 2004-11-16  Peter Bartok  <pbartok@novell.com>
14675         * XplatUIX11.cs (GetMessage): Implemented generation of
14676           double click mouse messages
14678 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
14680         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
14681         not by menu
14683 2004-11-11  Peter Bartok  <pbartok@novell.com>
14685         * HandleData.cs: Added Visible property
14686         * XplatUIX11.cs (IsVisible): Now uses Visible property from
14687           HandleData
14688         * XplatUIX11.cs: Removed old debug leftovers
14689         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
14690         * Control.cs (WndProc): Removed old debug leftovers,
14691           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
14692           needed WM_SIZE handling
14694 2004-11-11  Jackson Harper  <jackson@ximian.com>
14696         * OwnerDrawPropertyBag.cs:
14697         * TreeViewImageIndexConverter.cs: Initial implementation
14699 2004-11-10  Jackson Harper  <jackson@ximian.com>
14701         * ThemeWin32Classic.cs:
14702         * TabControl.cs: instead of moving tabs by the slider pos just
14703         start drawing at the tab that is offset by the slider. This way
14704         scrolling always moves by exactly one tab.
14706 2004-11-10  Jackson Harper  <jackson@ximian.com>
14708         * TabControl.cs: You can only scroll left when the slider has
14709         already ben moved right.
14710         
14711 2004-11-10  Jackson Harper  <jackson@ximian.com>
14713         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
14714         the clip area.
14715         
14716 2004-11-10  Jackson Harper  <jackson@ximian.com>
14718         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
14719         clip area.
14720         
14721 2004-11-09  Jackson Harper  <jackson@ximian.com>
14723         * TabControl.cs (CalcXPos): New helper method so we can determine
14724         the proper place to start drawing vertical tabs.
14725         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
14726         
14727 2004-11-09  Jackson Harper  <jackson@ximian.com>
14729         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
14730         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
14731         and Bottom, left and right are illegal values for this and
14732         multiline is enabled when the alignment is set to left or right.
14733         (DrawTab): Each alignment block should draw the text itself now
14734         because Left requires special love. Also add rendering for Left
14735         aligned tabs.
14736         
14737 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
14739         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
14740         does not destroy the windows, removes debugging messages
14742 2004-11-09  jba  <jba-mono@optusnet.com.au>
14744         * ThemeWin32Classic.cs
14745         (DrawButtonBase): Fix verticle text rect clipping in windows
14746         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
14747         rendering and incorrect text rect clipping
14748         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
14749         rendering and incorrect text rect clipping
14750         
14751 2004-11-08  Jackson Harper  <jackson@ximian.com>
14753         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
14754         bottom when they are bottom aligned so the bottoms of the tabs get
14755         displayed.
14756         * TabControl.cs (DropRow): Move rows up instead of down when the
14757         tab control is bottom aligned.
14759 2004-11-08 13:59  pbartok
14761         * XplatUIX11.cs:
14762           - Added handling for various window styles
14763           - Added handling for popup windows
14764           - Added SetTopmost handling
14766 2004-11-08 13:55  pbartok
14768         * XplatUIWin32.cs:
14769           - Added argument to SetTopmost method
14770           - Fixed broken ClientToScreen function
14772 2004-11-08 13:53  pbartok
14774         * XplatUIStructs.cs:
14775           - Added missing WS_EX styles
14777 2004-11-08 13:53  pbartok
14779         * XplatUI.cs, XplatUIDriver.cs:
14780           - Added argument to SetTopmost
14782 2004-11-08 13:52  pbartok
14784         * X11Structs.cs:
14785           - Added XSetWindowAttributes structure
14786           - Improved XWindowAttributes structure
14787           - Added SetWindowValuemask enum
14788           - Added window creation arguments enum
14789           - Added gravity enum
14790           - Added Motif hints structure
14791           - Added various Motif flags and enums
14792           - Added PropertyMode enum for property functions
14794 2004-11-08 13:50  pbartok
14796         * Form.cs:
14797           - Fixed arguments for updated SetTopmost method
14799 2004-11-08 13:49  pbartok
14801         * ToolTip.cs:
14802           - Fixed arguments for updated SetTopmost function
14803           - Fixed usage of PointToClient
14805 2004-11-08 13:44  pbartok
14807         * MenuAPI.cs:
14808           - Added Clipping of children and siblings
14810 2004-11-08 13:41  pbartok
14812         * MainMenu.cs:
14813           - Removed SetMenuBarWindow call. We do this in Form.cs
14815 2004-11-08 13:40  jackson
14817         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
14818           scrolling jimmi in the correct location with bottom aligned tabs
14820 2004-11-08 13:36  pbartok
14822         * ContainerControl.cs:
14823           - Implemented BindingContext
14824           - Implemented ParentForm
14826 2004-11-08 12:46  jackson
14828         * TabControl.cs: Put bottom rendered tabs in the right location
14830 2004-11-08 07:15  jordi
14832         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
14833           removes dead code
14835 2004-11-05 17:30  jackson
14837         * TabControl.cs: When selected tabs are expanded make sure they
14838           don't go beyond the edges of the tab control
14840 2004-11-05 14:57  jackson
14842         * TabControl.cs: Reset show_slider so if the control is resized to
14843           a size where it is no longer needed it's not displayed anymore
14845 2004-11-05 13:16  jackson
14847         * TabControl.cs: Make tab pages non visible when added to the
14848           control
14850 2004-11-05 12:42  jackson
14852         * TabControl.cs: Implement SizeMode.FillToRight
14854 2004-11-05 12:16  jackson
14856         * Control.cs: Do not call CreateHandle if the handle is already
14857           created
14859 2004-11-05 11:46  jackson
14861         * TabControl.cs: Remove superflous call to CalcTabRows
14863 2004-11-05 09:07  jackson
14865         * XplatUIX11.cs: Update for Mono.Posix changes
14867 2004-11-05 07:00  ravindra
14869         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
14870           scrolling.
14872 2004-11-04 22:47  jba
14874         * ThemeWin32Classic.cs:
14875           - Fix Button rendering for FlatStyle = Flat or Popup
14876           - Fix RadioButton and CheckBox rendering when Appearance = Button
14877             (normal and flatstyle).
14878           - Correct outer rectangle color when drawing focus rectangle
14879           - Adjust button bounds to be 1 px smaller when focused
14880           - Make button not draw sunken 3d border when pushed (windows compat)
14881           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
14882           - Offset the text in RadioButton and Checkbox when being rendered as
14883           a button.
14884           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
14885           radiobuttons
14886           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
14887           - Fixed disabled text rendering for normally rendered radiobuttons
14889 2004-11-04 10:26  jackson
14891         * TabControl.cs: Recalculate tab rows when resizing
14893 2004-11-04 07:47  jordi
14895         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
14896           collection completion, drawing issues, missing features
14898 2004-11-04 05:03  ravindra
14900         * ScrollBar.cs:
14901                 - We need to recalculate the Thumb area when
14902                 LargeChange/maximum/minimum values are changed.
14903           - We set the 'pos' in UpdatePos() method to minimum, if it's less
14904                 than minimum. This is required to handle the case if large_change is
14905                 more than max, and use LargeChange property instead of large_change
14906                 variable.
14907           - We return max+1 when large_change is more than max, like MS does.
14909 2004-11-04 04:29  ravindra
14911         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
14912                 - Changed default value signatures (prefixed all with ListView).
14913                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
14914                 ListView.
14915           - Fixed calculations for ListViewItem and implemented Clone()
14916           method.
14918 2004-11-04 04:26  ravindra
14920         * Theme.cs, ThemeWin32Classic.cs:
14921                 - Changed default ListView values signatures (prefixed all with
14922                 ListView).
14923           - Fixed default size values for VScrollBar and HScrollBar.
14924                 - Fixed DrawListViewItem method.
14926 2004-11-04 04:05  ravindra
14928         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
14930 2004-11-04 04:04  ravindra
14932         * ImageList.cs: Implemented the missing overload for Draw method.
14934 2004-11-03 19:29  jackson
14936         * TabControl.cs: Handle dropping rows on selection properly
14938 2004-11-03 11:59  jackson
14940         * TabControl.cs: remove debug code
14942 2004-11-03 11:52  jackson
14944         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
14945           the scrolly widgerywoo
14947 2004-11-02 13:52  jackson
14949         * TabControl.cs: Resize the tab pages and tabs when the tab control
14950           is resized
14952 2004-11-02 13:40  jackson
14954         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
14955           selected tab to the bottom
14957 2004-11-02 13:39  jackson
14959         * TabPage.cs: Store the tab pages row
14961 2004-11-02 12:33  jordi
14963         * MenuItem.cs: fixes handle creation
14965 2004-11-02 11:42  jackson
14967         * TabControl.cs: signature fix
14969 2004-11-02 08:56  jackson
14971         * TabControl.cs: Calculate whether the tab is on an edge properly.
14972           Remove top secret debugging code
14974 2004-11-01 19:57  jackson
14976         * TabControl.cs: Add click handling, and proper sizing
14978 2004-11-01 19:47  jackson
14980         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
14981           tab controls
14983 2004-11-01 19:39  jackson
14985         * TabPage.cs: add internal property to store the bounds of a tab
14986           page
14988 2004-10-30 04:23  ravindra
14990         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
14991           values.
14993 2004-10-30 04:21  ravindra
14995         * ListView.cs, ListViewItem.cs: Added support for scrolling and
14996           fixed calculations.
14998 2004-10-30 03:06  pbartok
15000         * XplatUIX11.cs:
15001           - Removed extension of DllImported libs
15003 2004-10-29 09:55  jordi
15005         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
15006           navigation, itemcollection completion, menu fixes
15008 2004-10-27 22:58  pbartok
15010         * XplatUIX11.cs:
15011           - Now throws a nice error message when no X display could be opened
15013 2004-10-26 13:51  jordi
15015         * ListView.cs: removes warning
15017 2004-10-26 03:55  ravindra
15019         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
15020           ThemeWin32Classic.cs: Some formatting for my last checkins.
15022 2004-10-26 03:36  ravindra
15024         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
15025           control and default values.
15027 2004-10-26 03:35  ravindra
15029         * Theme.cs: Added some default values for ListView control.
15031 2004-10-26 03:33  ravindra
15033         * ToolBar.cs: ToolBar should use the user specified button size, if
15034           there is any. Added a size_specified flag for the same.
15036 2004-10-26 03:33  ravindra
15038         * ColumnHeader.cs: Added some internal members and calculations for
15039           ColumnHeader.
15041 2004-10-26 03:32  ravindra
15043         * ListViewItem.cs: Calculations for ListViewItem.
15045 2004-10-26 03:31  ravindra
15047         * ListView.cs: Added some internal members and calculations for
15048           ListView.
15050 2004-10-22 13:31  jordi
15052         * MenuAPI.cs: speedup menus drawing
15054 2004-10-22 13:16  jackson
15056         * XplatUIX11.cs: Make sure to update exposed regions when adding an
15057           expose event
15059 2004-10-22 11:49  jackson
15061         * Control.cs: oops
15063 2004-10-22 11:41  jackson
15065         * Control.cs: Check to see if the window should have its background
15066           repainted by X when drawing.
15068 2004-10-22 11:31  jackson
15070         * XplatUIX11.cs: When invalidating areas only use XClearArea if
15071           clear is true, this way we do not get flicker from X repainting the
15072           background
15074 2004-10-22 11:28  jackson
15076         * XEventQueue.cs: Queue properly
15078 2004-10-21 09:38  jackson
15080         * XEventQueue.cs: Fix access modifier
15082 2004-10-21 09:36  jackson
15084         * XEventQueue.cs: Don't loose messages
15086 2004-10-21 09:22  jackson
15088         * XEventQueue.cs: Don't loose messages
15090 2004-10-20 04:15  jordi
15092         * BootMode.cs: enum need it by SystemInfo
15094 2004-10-19 21:58  pbartok
15096         * XplatUIWin32.cs:
15097           - Small sanity check
15099 2004-10-19 21:56  pbartok
15101         * Form.cs:
15102           - Added private FormParentWindow class which acts as the container
15103             for our form and as the non-client area where menus are drawn
15104           - Added/Moved required tie-ins to Jordi's menus
15105           - Fixed/Implemented the FormStartPosition functionality
15107 2004-10-19 21:52  pbartok
15109         * Control.cs:
15110           - Removed unneeded locals
15111           - Added code to all size and location properties to understand and
15112             deal with the parent container of Form
15114 2004-10-19 21:33  pbartok
15116         * Application.cs:
15117           - Fixed to deal with new Form subclasses for menus
15119 2004-10-19 17:48  jackson
15121         * XEventQueue.cs: commit correct version of file
15123 2004-10-19 16:50  jackson
15125         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
15127 2004-10-19 16:15  jordi
15129         * MenuAPI.cs: MenuBarCalcSize returns the height
15131 2004-10-19 08:31  pbartok
15133         * Control.cs:
15134           - Added missing call to PreProcessMessage before calling OnXXXKey
15135           methods
15137 2004-10-19 00:04  ravindra
15139         * ToolTip.cs: Fixed constructor.
15141 2004-10-18 09:31  jordi
15143         * MenuAPI.cs: menuitems in menubars do not have shortcuts
15145 2004-10-18 09:26  jordi
15147         * MenuItem.cs: fixes MenuItem class signature
15149 2004-10-18 08:56  jordi
15151         * MenuAPI.cs: prevents windows from showing in the taskbar
15153 2004-10-18 00:28  ravindra
15155         * ToolTip.cs: Suppressed a warning message.
15157 2004-10-18 00:27  ravindra
15159         * Control.cs: Default value of visible property must be true.
15161 2004-10-17 23:19  pbartok
15163         * ToolTip.cs:
15164           - Complete implementation
15166 2004-10-17 23:19  pbartok
15168         * XplatUIX11.cs:
15169           - Added EnableWindow method
15170           - Added SetModal stub
15171           - Added generation of WM_ACTIVATE message (still needs testing)
15172           - Added SetTopMost stub
15173           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
15175 2004-10-17 23:17  pbartok
15177         * XplatUIWin32.cs:
15178           - Removed VirtualKeys to XplatUIStructs
15179           - Implemented SetTopMost method
15180           - Implemented EnableWindow method
15181           - Bugfix in ScreenToClient()
15182           - Bugfixes in ClientToScreen()
15184 2004-10-17 22:51  pbartok
15186         * XplatUIStructs.cs:
15187           - Added WS_EX styles to WindowStyles enumeration
15189 2004-10-17 22:50  pbartok
15191         * XplatUI.cs, XplatUIDriver.cs:
15192           - Added method for enabling/disabling windows
15193           - Added method for setting window modality
15194           - Added method for setting topmost window
15196 2004-10-17 22:49  pbartok
15198         * ThemeWin32Classic.cs:
15199           - Added ToolTip drawing code
15201 2004-10-17 22:49  pbartok
15203         * Theme.cs:
15204           - Added ToolTip abstracts
15206 2004-10-17 22:47  pbartok
15208         * Form.cs:
15209           - Fixed Form.ControlCollection to handle owner relations
15210           - Added Owner/OwnedForms handling
15211           - Implemented Z-Ordering for owned forms
15212           - Removed unneeded private overload of ShowDialog
15213           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
15214             so I hope)
15215           - Fixed Close(), had wrong default
15216           - Added firing of OnLoad event
15217           - Added some commented out debug code for Ownership handling
15219 2004-10-17 22:16  pbartok
15221         * Control.cs:
15222           - Fixed/implemented flat list of controls
15224 2004-10-17 22:14  pbartok
15226         * Application.cs:
15227           - Added code to simulate modal dialogs on Win32
15229 2004-10-17 16:11  jordi
15231         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
15232           mouse event
15234 2004-10-17 13:39  jordi
15236         * MenuAPI.cs: menu drawing fixes
15238 2004-10-15 09:10  ravindra
15240         * StructFormat.cs: General Enum.
15242 2004-10-15 09:09  ravindra
15244         * SizeGripStyle.cs: Enum for Form.
15246 2004-10-15 09:08  ravindra
15248         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
15249           in Theme for ListView.
15251 2004-10-15 09:06  ravindra
15253         * ColumnHeader.cs: Flushing some formatting changes.
15255 2004-10-15 09:05  ravindra
15257         * ListViewItem.cs: Implemented GetBounds method and fixed coding
15258           style.
15260 2004-10-15 09:03  ravindra
15262         * ListView.cs: Implemented Paint method and fixed coding style.
15264 2004-10-15 07:34  jordi
15266         * MenuAPI.cs: fix for X11
15268 2004-10-15 07:32  ravindra
15270         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
15271                 - Renamed Paint() method to Draw() for clarity. Also, moved
15272                 DrawImage() to OnPaint().
15274 2004-10-15 07:25  ravindra
15276         * CheckBox.cs, RadioButton.cs:
15277                 - Removed Redraw (), we get it from ButtonBase.
15278                 - Implemented Paint (), to do class specific painting.
15280 2004-10-15 07:16  ravindra
15282         * ButtonBase.cs:
15283                 - Redraw () is not virtual now.
15284                 - Added an internal virtual method Paint (), so that
15285                 derived classes can do their painting on their own.
15286                 - Modified OnPaint () to call Paint ().
15288 2004-10-15 06:43  jordi
15290         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
15291           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
15293 2004-10-15 00:30  ravindra
15295         * MessageBox.cs:
15296                 - MessageBox on windows does not have min/max buttons.
15297                 This change in CreateParams fixes this on Windows. We
15298                 still need to implement this windowstyle behavior in
15299                 our X11 driver.
15301 2004-10-14 05:14  ravindra
15303         * ToolBar.cs:
15304                 - Changed Redraw () to do a Refresh () always.
15305                 - Fixed the MouseMove event handling when mouse is pressed,
15306                 ie drag event handling.
15307                 - Replaced the usage of ToolBarButton.Pressed property to
15308                 ToolBarButton.pressed internal variable.
15310 2004-10-14 05:10  ravindra
15312         * ToolBarButton.cs:
15313                 - Added an internal member 'inside' to handle mouse move
15314                 with mouse pressed ie mouse drag event.
15315                 - Changed 'Pressed' property to return true only when
15316                 'inside' and 'pressed' are both true.
15317                 - Some coding style love.
15319 2004-10-14 00:17  ravindra
15321         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
15322           public method.
15324 2004-10-14 00:15  ravindra
15326         * ButtonBase.cs: Redraw () related improvements.
15328 2004-10-14 00:14  ravindra
15330         * MessageBox.cs: Moved InitFormSize () out of Paint method and
15331           removed unnecessary calls to Button.Show () method.
15333 2004-10-13 17:50  pbartok
15335         * XplatUIX11.cs:
15336           - Formatting fix
15337           - Removed destroying of window until we solve the problem of X
15338             destroying the window before us on shutdown
15340 2004-10-13 16:32  pbartok
15342         * ButtonBase.cs:
15343           - Now Redraws on MouseUp for FlatStyle Flat and Popup
15345 2004-10-13 14:18  pbartok
15347         * XplatUIX11.cs:
15348           - Added code to destroy the X window
15350 2004-10-13 14:18  pbartok
15352         * XplatUIWin32.cs:
15353           - Added code to destroy a window
15355 2004-10-13 14:12  pbartok
15357         * ButtonBase.cs:
15358           - Added the Redraw on Resize that got dropped in the last rev
15360 2004-10-13 09:06  pbartok
15362         * ThemeWin32Classic.cs:
15363           - Path from John BouAntoun:
15364             * Fix check rendering (centre correctly for normal style, offset
15365               correctly for FlatStyle).
15366             * Fix border color usage (use backcolor) for FlatStyle.Popup
15367             * Use checkbox.Capture instead of checkbox.is_pressed when
15368               rendering flatstyle states.
15370 2004-10-12 21:48  pbartok
15372         * ThemeWin32Classic.cs:
15373           - Removed all occurences of SystemColors and replaced them with the
15374             matching theme color
15376 2004-10-12 21:41  pbartok
15378         * ThemeWin32Classic.cs:
15379           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
15380             him using the function for flatstyle drawing
15381           - Changed functions to use the new version of CPDrawBorder3D
15383 2004-10-12 21:15  pbartok
15385         * ControlPaint.cs:
15386           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
15387             match MS documentation. They need to return defined colors if the
15388             passed color matches the configured control color. Thanks to John
15389             BouAntoun for pointing this out.
15391 2004-10-12 20:57  pbartok
15393         * Control.cs:
15394           - Fix from John BouAntoun: Raise ForeColorChanged event when text
15395             color is changed
15397 2004-10-12 20:46  pbartok
15399         * CheckBox.cs:
15400           - Fix from John BouAntoun: Now properly sets the Appearance property
15402 2004-10-12 20:45  pbartok
15404         * ThemeWin32Classic.cs:
15405           - Fixes from John BouAntoun: now handles forecolors and backcolors
15406             for flatstyle rendered controls much better; It also fixes normal
15407             checkbox rendering when pushed or disabled.
15409 2004-10-08 02:50  jordi
15411         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
15412           work
15414 2004-10-07 08:56  jordi
15416         * ThemeWin32Classic.cs: Removes deletion of cached brushes
15418 2004-10-06 03:59  jordi
15420         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
15421           XplatUIWin32.cs: removes warnings from compilation
15423 2004-10-05 12:23  jackson
15425         * RadioButton.cs: Fix ctor
15427 2004-10-05 11:10  pbartok
15429         * MessageBox.cs:
15430           - Partial implementation by Benjamin Dasnois
15432 2004-10-05 10:15  jackson
15434         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
15435           by John BouAntoun
15437 2004-10-05 03:07  ravindra
15439         * ToolBar.cs:
15440                 - Removed a private method, Draw ().
15441                 - Fixed the ButtonDropDown event handling.
15442                 - Fixed MouseMove event handling.
15444 2004-10-05 03:04  ravindra
15446         * ThemeWin32Classic.cs:
15447                 - Added DrawListView method and ListViewDefaultSize property.
15448                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
15449                 - Changed DOS style CRLF to Unix format (dos2unix).
15451 2004-10-05 03:03  ravindra
15453         * Theme.cs:
15454                 - Added DrawListView method and ListViewDefaultSize property.
15456 2004-10-05 02:42  ravindra
15458         * ToolBarButton.cs: Added an internal member dd_pressed to handle
15459           clicks on DropDown arrow.
15461 2004-10-04 22:56  jackson
15463         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
15464           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
15465           Control handle the buffers, derived classes should not have to
15466           CreateBuffers themselves.
15468 2004-10-04 21:20  jackson
15470         * StatusBar.cs: The control handles resizing the buffers now.
15472 2004-10-04 21:18  jackson
15474         * Control.cs: When resizing the buffers should be invalidated. This
15475           should be handled in Control not in derived classes.
15477 2004-10-04 14:45  jackson
15479         * TabPage.cs: oops
15481 2004-10-04 02:14  pbartok
15483         * LeftRightAlignment.cs:
15484           - Initial check-in
15486 2004-10-04 01:09  jordi
15488         * ThemeWin32Classic.cs: fixes right button position causing right
15489           button not showing on horizontal scrollbars
15491 2004-10-02 13:12  pbartok
15493         * XplatUIX11.cs:
15494           - Simplified the Invalidate method by using an X call instead of
15495             generating the expose ourselves
15496           - Added an expose when the window background is changed
15497           - Implemented ClientToScreen method
15499 2004-10-02 13:08  pbartok
15501         * XplatUIWin32.cs:
15502           - Added Win32EnableWindow method (test for implementing modal
15503           dialogs)
15504           - Added ClientToScreen method and imports
15506 2004-10-02 13:07  pbartok
15508         * XplatUI.cs, XplatUIDriver.cs:
15509           - Added ClientToScreen coordinate translation method
15511 2004-10-02 13:06  pbartok
15513         * KeyPressEventArgs.cs:
15514           - Fixed access level for constructor
15516 2004-10-02 13:06  pbartok
15518         * NativeWindow.cs:
15519           - Changed access level for the window_collection hash table
15521 2004-10-02 13:05  pbartok
15523         * Form.cs:
15524           - Added KeyPreview property
15525           - Added Menu property (still incomplete, pending Jordi's menu work)
15526           - Implemented ProcessCmdKey
15527           - Implemented ProcessDialogKey
15528           - Implemented ProcessKeyPreview
15530 2004-10-02 13:02  pbartok
15532         * Control.cs:
15533           - Added private method to get the Control object from the window
15534           handle
15535           - Implemented ContextMenu property
15536           - Implemented PointToScreen
15537           - Implemented PreProcessMessage
15538           - Implemented IsInputChar
15539           - Implemented IsInputKey
15540           - Implemented ProcessCmdKey
15541           - Completed ProcessKeyEventArgs
15542           - Fixed message loop to call the proper chain of functions on key
15543           events
15544           - Implemented ProcessDialogChar
15545           - Implemented ProcessDialogKey
15546           - Implemented ProcessKeyMessage
15547           - Implemented ProcessKeyPreview
15548           - Added RaiseDragEvent stub (MS internal method)
15549           - Added RaiseKeyEvent stub (MS internal method)
15550           - Added RaiseMouseEvent stub (MS Internal method)
15551           - Added RaisePaintEvent stub (MS Internal method)
15552           - Added ResetMouseEventArgs stub (MS Internal method)
15553           - Implemented RtlTranslateAlignment
15554           - Implemented RtlTranslateContent
15555           - Implemented RtlTranslateHorizontal
15556           - Implemented RtlTranslateLeftRight
15557           - Added generation of KeyPress event
15559 2004-10-02 05:57  ravindra
15561         * ListViewItem.cs: Added attributes.
15563 2004-10-02 05:32  ravindra
15565         * ListView.cs: Added attributes.
15567 2004-10-01 11:53  jackson
15569         * Form.cs: Implement the Close method so work on MessageBox can
15570           continue.
15572 2004-09-30 14:06  pbartok
15574         * XplatUIX11.cs:
15575           - Bug fixes
15577 2004-09-30 11:34  jackson
15579         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
15581 2004-09-30 07:26  ravindra
15583         * ListViewItemConverter.cs: Converter for ListViewItem.
15585 2004-09-30 07:26  ravindra
15587         * SortOrder.cs: Enum for ListView control.
15589 2004-09-30 07:25  ravindra
15591         * ColumnHeader.cs: Supporting class for ListView control.
15593 2004-09-30 07:24  ravindra
15595         * ListView.cs, ListViewItem.cs: Initial implementation.
15597 2004-09-30 07:20  ravindra
15599         * ItemActivation.cs: Enum for ListView Control.
15601 2004-09-29 20:29  pbartok
15603         * XplatUIX11.cs:
15604           - Added lookup of pixel value for background color; tries to get a
15605             color 'close' to the requested color, it avoids having to create a
15606             colormap.  Depending on the display this could mean the used color
15607             is slightly off the desired color. Might have to change it to a more
15608             resource intensive colormap approach, but it will work as a
15609           workaround to avoid red screens.
15611 2004-09-29 14:27  jackson
15613         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
15615 2004-09-28 12:44  pbartok
15617         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
15618           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
15619           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
15620           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
15621           TrackBar.cs, VScrollBar.cs:
15622           - Streamlined Theme interfaces:
15623             * Each DrawXXX method for a control now is passed the object for
15624               the control to be drawn in order to allow accessing any state the
15625               theme might require
15627             * ControlPaint methods for the theme now have a CP prefix to avoid
15628               name clashes with the Draw methods for controls
15630             * Every control now retrieves it's DefaultSize from the current
15631             theme
15633 2004-09-28 12:17  jackson
15635         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
15636           drawing
15638 2004-09-24 14:57  jackson
15640         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
15641           Gives us a nice little performance boost.
15643 2004-09-24 12:02  jackson
15645         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
15646           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
15647           Control and supporting classes. Initial checkin
15649 2004-09-23 13:08  jackson
15651         * Form.cs: Temp build fixage
15653 2004-09-23 01:39  ravindra
15655         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
15656           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
15657           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
15658           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
15659           EventHandlers needed by ListView Control.
15661 2004-09-22 14:12  pbartok
15663         * ScrollableControl.cs:
15664           - Implemented DockPadding property
15665           - Implemented AutoScroll property
15666           - Implemented AutoScrollMargin property
15667           - Implemented AutoScrollMinSize property
15668           - Implemented AutoScrollPosition property
15669           - Implemented DisplayRectangle property (still incomplete)
15670           - Implemented CreateParams property
15671           - Implemented HScroll property
15672           - Implemented VScroll property
15673           - Implemented OnVisibleChanged property
15675 2004-09-22 14:09  pbartok
15677         * Form.cs:
15678           - Added Form.ControllCollection class
15679           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
15680             RemoveOwnedForm (still incomplete, missing on-top and common
15681             minimize/maximize behaviour)
15682           - Added StartPosition property (still incomplete, does not use when
15683             creating the form)
15684           - Added ShowDialog() methods (still incomplete, missing forcing the
15685             dialog modal)
15687 2004-09-22 14:05  pbartok
15689         * Application.cs:
15690           - Added message loop for modal dialogs
15692 2004-09-22 14:02  pbartok
15694         * GroupBox.cs:
15695           - Fixed wrong types for events
15697 2004-09-22 14:00  pbartok
15699         * Shortcut.cs, FormWindowState.cs:
15700           - Fixed wrong values
15702 2004-09-22 12:01  jackson
15704         * Control.cs: Text is never null
15706 2004-09-20 22:14  pbartok
15708         * XplatUIWin32.cs:
15709           - Fixed accessibility level for Idle handler
15711 2004-09-20 18:54  jackson
15713         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
15714           XplatUIX11.cs: New message loop that uses poll so we don't get a
15715           busy loop
15717 2004-09-17 10:43  pbartok
15719         * ScrollBar.cs:
15720           - Fixed behaviour of arrow buttons. Now properly behaves like
15721             Buttons (and like Microsoft's scrollbar arrow buttons)
15723 2004-09-17 10:14  pbartok
15725         * ScrollBar.cs:
15726           - Added missing release of keyboard/mouse capture
15728 2004-09-17 06:18  jordi
15730         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
15731           Theme.cs: Very early menu support
15733 2004-09-16 17:45  pbartok
15735         * XplatUIWin32.cs:
15736           - Fixed sending a window to the front
15737           - Added overload for SetWindowPos to avoid casting
15739 2004-09-16 17:44  pbartok
15741         * Control.cs:
15742           - Added SendToBack and BringToFront methods
15744 2004-09-16 07:00  ravindra
15746         * Copyright: Added Novell URL.
15748 2004-09-16 07:00  ravindra
15750         * ToolBar.cs: Invalidate should be done before redrawing.
15752 2004-09-15 21:19  ravindra
15754         * ColumnHeaderStyle.cs: Enum for ListView Control.
15756 2004-09-15 21:18  ravindra
15758         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
15759           ListView Control.
15761 2004-09-13 18:26  jackson
15763         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
15764           properly
15766 2004-09-13 18:13  jackson
15768         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
15769           a second thread and post messages into the main threads message
15770           queue. This makes timing much more consistent. Both win2K and XP
15771           have a minimum timer value of 15 milliseconds, so we now do this
15772           too.
15774 2004-09-13 15:18  pbartok
15776         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
15777           XplatUIX11.cs:
15778           - Added Z-Ordering methods
15780 2004-09-13 10:56  pbartok
15782         * Form.cs:
15783           - Fixed #region names
15784           - Moved properties and methods into their proper #regions
15786 2004-09-13 10:51  pbartok
15788         * Form.cs:
15789           - Added Accept and CancelButton properties
15790           - Added ProcessDialogKey() method
15792 2004-09-13 08:18  pbartok
15794         * IWindowTarget.cs:
15795           - Initial check-in
15797 2004-09-10 21:50  pbartok
15799         * Control.cs:
15800           - Added DoDragDrop() [incomplete]
15801           - Properly implemented 'Visible' handling
15802           - Added SetVisibleCore()
15803           - Implemented FindChildAtPoint()
15804           - Implemented GetContainerControl()
15805           - Implemented Hide()
15807 2004-09-10 19:28  pbartok
15809         * Control.cs:
15810           - Moved methods into their appropriate #regions
15811           - Reordered methods within regions alphabetically
15813 2004-09-10 18:57  pbartok
15815         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
15816           - Added method to retrieve text from window
15818 2004-09-10 18:56  pbartok
15820         * Control.cs:
15821           - Moved some internal functions into the internal region
15822           - Implemented FontHeight
15823           - Implemented RenderRightToLeft
15824           - Implemented ResizeRedraw
15825           - Implemented ShowFocusCues
15826           - Implemented ShowKeyboardCues
15827           - Implemented FromChildHandle
15828           - Implemented FromHandle
15829           - Implemented IsMnemonic
15830           - Implemented ReflectMessage
15831           - All public and protected Static Methods are now complete
15833 2004-09-10 16:54  pbartok
15835         * Control.cs:
15836           - Implemented remaining missing public instance properties
15837           - Alphabetized some out of order properties
15839 2004-09-10 05:51  ravindra
15841         * PictureBox.cs: Added a check for null image.
15843 2004-09-10 00:59  jordi
15845         * GroupBox.cs: remove cvs tag
15847 2004-09-09 05:25  ravindra
15849         * ToolBar.cs: Make redraw accessible from ToolBarButton.
15851 2004-09-09 05:23  ravindra
15853         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
15854           parent redraw.
15856 2004-09-09 02:28  pbartok
15858         * ThemeWin32Classic.cs:
15859           - Improve disabled string look
15861 2004-09-09 01:15  jordi
15863         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
15864           args and handler
15866 2004-09-08 23:56  ravindra
15868         * ItemBoundsPortion.cs: It's enum, not a class!
15870 2004-09-08 23:47  ravindra
15872         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
15873           Enums for Form.
15875 2004-09-08 21:13  ravindra
15877         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
15878           ListView control.
15880 2004-09-08 21:03  ravindra
15882         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
15883           avoid crash.
15885 2004-09-08 21:01  ravindra
15887         * ScrollableControl.cs: Removed unreachable code.
15889 2004-09-08 06:45  jordi
15891         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
15893 2004-09-08 01:00  jackson
15895         * XplatUIX11.cs: Only run the timers when updating the message
15896           queue. This effectively gives X messages a higher priority then
15897           timer messages. Timers still need love though
15899 2004-09-07 14:01  jackson
15901         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
15902           this for us and the handle is no longer valid.
15904 2004-09-07 13:59  jackson
15906         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
15907           loop that manages to not crash. TODO: Add poll and cleanup timers
15909 2004-09-07 11:12  jordi
15911         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
15913 2004-09-07 03:40  jordi
15915         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
15916           fixes, methods, multiple links
15918 2004-09-06 06:55  jordi
15920         * Control.cs: Caches ClientRectangle rectangle value
15922 2004-09-05 02:03  jordi
15924         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
15925           certain situations
15927 2004-09-04 11:10  jordi
15929         * Label.cs: Refresh when font changed
15931 2004-09-02 16:24  pbartok
15933         * Control.cs:
15934           - Added sanity check to creation of double buffer bitmap
15936 2004-09-02 16:24  pbartok
15938         * ButtonBase.cs:
15939           - Fixed selection of text color
15940           - Fixed handling of resize event; now properly recreates double
15941             buffering bitmap
15942           - Added missing assignment of TextAlignment
15943           - Added proper default for TextAlignment
15945 2004-09-02 14:26  pbartok
15947         * RadioButton.cs:
15948           - Added missing RadioButton.RadioButtonAccessibleObject class
15950 2004-09-02 14:26  pbartok
15952         * Control.cs:
15953           - Added missing Control.ControlAccessibleObject class
15954           - Started to implement Select()ion mechanisms, still very incomplete
15956 2004-09-02 14:25  pbartok
15958         * AccessibleObject.cs:
15959           - Added missing methods
15961 2004-09-02 14:23  pbartok
15963         * AccessibleNavigation.cs, AccessibleSelection.cs:
15964           - Initial check-in
15966 2004-09-02 10:32  jordi
15968         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
15969           pool for pens, brushes, and hatchbruses
15971 2004-09-01 15:30  jackson
15973         * StatusBar.cs: Fix typo
15975 2004-09-01 14:44  pbartok
15977         * RadioButton.cs:
15978           - Fixed state
15980 2004-09-01 14:39  pbartok
15982         * Button.cs, RadioButton.cs:
15983           - Functional initial check-in
15985 2004-09-01 14:01  pbartok
15987         * CheckBox.cs:
15988           - Added missing default
15989           - Added missing region mark
15991 2004-09-01 09:10  jordi
15993         * Label.cs: fixes method signatures, new methods, events, fixes
15994           autosize
15996 2004-09-01 07:19  jordi
15998         * Control.cs: Init string variables with an empty object
16000 2004-09-01 04:20  jordi
16002         * Control.cs: fires OnFontChanged event
16004 2004-08-31 20:07  pbartok
16006         * ButtonBase.cs:
16007           - Enabled display of strings
16009 2004-08-31 20:05  pbartok
16011         * Form.cs:
16012           - Added (partial) implementation of DialogResult; rest needs to be
16013             implemented when the modal loop code is done
16015 2004-08-31 19:55  pbartok
16017         * CheckBox.cs:
16018           - Fixed to match the removal of the needs_redraw concept
16020 2004-08-31 19:55  pbartok
16022         * ButtonBase.cs:
16023           - Removed the rather odd split between 'needs redraw' and redrawing
16024           - Now handles the events that require regeneration (ambient
16025             properties and size)
16027 2004-08-31 19:41  pbartok
16029         * Control.cs:
16030           - Added firing of BackColorChanged event
16031           - Added TopLevelControl property
16032           - Fixed handling of WM_ERASEBKGRND message
16034 2004-08-31 12:49  pbartok
16036         * ButtonBase.cs:
16037           - Removed debug
16038           - Minor fixes
16040 2004-08-31 12:48  pbartok
16042         * CheckBox.cs:
16043           - Finished (famous last words)
16045 2004-08-31 04:35  jordi
16047         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
16048           scrolling bugs, adds new methods
16050 2004-08-30 14:42  pbartok
16052         * CheckBox.cs:
16053           - Implemented CheckBox drawing code
16055 2004-08-30 14:42  pbartok
16057         * ButtonBase.cs:
16058           - Made Redraw() and CheckRedraw() virtual
16059           - Improved mouse up/down/move logic to properly track buttons
16061 2004-08-30 09:44  pbartok
16063         * CheckBox.cs:
16064           - Updated to fix broken build. Not complete yet.
16066 2004-08-30 09:28  pbartok
16068         * CheckState.cs:
16069           - Initial checkin
16071 2004-08-30 09:17  pbartok
16073         * Appearance.cs:
16074           - Initial check-in
16076 2004-08-27 16:12  ravindra
16078         * ToolBarButton.cs: Added TypeConverter attribute.
16080 2004-08-27 16:07  ravindra
16082         * ImageIndexConverter.cs: Implemented.
16084 2004-08-27 14:17  pbartok
16086         * Control.cs:
16087           - Removed unneeded stack vars
16088           - First attempt to fix sizing issues when layout is suspended
16090 2004-08-25 15:35  jordi
16092         * ScrollBar.cs: more fixes to scrollbar
16094 2004-08-25 14:04  ravindra
16096         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
16097           Added the missing divider code and grip for ToolBar Control.
16099 2004-08-25 13:20  pbartok
16101         * Control.cs:
16102           - Control now properly passes the ambient background color to child
16103             controls
16105 2004-08-25 13:20  jordi
16107         * ScrollBar.cs: small bug fix regarding bar position
16109 2004-08-25 12:33  pbartok
16111         * Timer.cs:
16112           - Now only calls SetTimer or KillTimer if the enabled state has
16113           changed
16115 2004-08-25 12:33  pbartok
16117         * XplatUIWin32.cs:
16118           - Fixed timer handling, now seems to work
16119           - Improved error message for window creation
16121 2004-08-25 12:32  pbartok
16123         * Control.cs:
16124           - Fixed generation of MouseUp message
16126 2004-08-25 12:29  jordi
16128         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
16129           and fixes for progressbar
16131 2004-08-24 18:43  ravindra
16133         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
16134           in ToolBar control.
16136 2004-08-24 17:15  pbartok
16138         * Panel.cs:
16139           - Added #region
16140           - Added missing events
16141           - Alphabetized
16143 2004-08-24 17:14  pbartok
16145         * StatusBar.cs, PictureBox.cs:
16146           - Now uses Control's CreateParams
16148 2004-08-24 16:36  pbartok
16150         * XplatUIX11.cs:
16151           - Fixed background color handling
16152           - Fixed sending of enter/leave events on a grab
16154 2004-08-24 16:35  pbartok
16156         * X11Structs.cs:
16157           - Refined definitions for CrossingEvent
16159 2004-08-24 12:37  jordi
16161         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
16162           formmating, methods signature, and adds missing events
16164 2004-08-24 12:24  jordi
16166         * Control.cs: fire OnEnabledChanged event
16168 2004-08-24 11:17  pbartok
16170         * XplatUIWin32.cs:
16171           - Implemented SetTimer() and KillTimer()
16173 2004-08-24 11:16  pbartok
16175         * XplatUIX11.cs:
16176           - Now uses Remove instead of Add to kill the timer
16178 2004-08-24 10:16  jackson
16180         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
16181           picture boxes in the theme now. Draw picture box borders and obey
16182           sizing modes
16184 2004-08-24 05:49  jackson
16186         * Timer.cs: Remove top secret debugging code
16188 2004-08-24 05:34  jackson
16190         * PictureBox.cs: Temp hack to make picture boxes draw their full
16191           image
16193 2004-08-24 05:29  jackson
16195         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
16196           XplatUIX11.cs: Move timers to the driver level. On X they are
16197           queued by the driver and checked on idle.
16199 2004-08-24 01:07  jackson
16201         * XplatUIX11.cs: Use a queue for async messages instead of passing
16202           them as ClientMessages since that was totally broken. Also simply
16203           check for events and return an idle message if none are found. This
16204           gives us an idle handler, and prevents deadlocking when no messages
16205           are in the queue.
16207 2004-08-23 18:19  ravindra
16209         * XplatUIWin32.cs: Removed the unwanted destructor.
16211 2004-08-23 17:27  pbartok
16213         * ButtonBase.cs:
16214           - Finishing touches. Works now, just needs some optimizations.
16216 2004-08-23 16:53  jordi
16218         * ScrollBar.cs: small fix
16220 2004-08-23 16:45  pbartok
16222         * Application.cs:
16223           - Removed debug output
16224           - Simplifications
16226 2004-08-23 16:43  jordi
16228         * ScrollBar.cs: [no log message]
16230 2004-08-23 16:10  pbartok
16232         * Form.cs:
16233           - Fixed handling of WM_CLOSE message
16234           - Removed debug output
16236 2004-08-23 16:09  pbartok
16238         * Application.cs:
16239           - Added handling of Idle event
16240           - Added handling of form closing
16241           - Fixed reporting of MessageLoop property
16242           - Removed some unneeded code, should provide a bit of a speedup
16244 2004-08-23 15:22  pbartok
16246         * Control.cs:
16247           - Added InitLayout() method
16248           - Added code to properly perform layout when Anchor or Dock property
16249             is changed
16250           - Changed 'interpretation' of ResumeLayout. MS seems to have a
16251             LAMESPEC, tried to do it in a way that makes sense
16253 2004-08-23 14:10  jordi
16255         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
16256           properties and methods
16258 2004-08-23 13:55  pbartok
16260         * Control.cs:
16261           - Properly fixed Jordi's last fix
16262           - Now uses Cursor's Position property instead of calling XplatUI
16263           directly
16265 2004-08-23 13:44  jordi
16267         * PaintEventHandler.cs: Adding missing attribute
16269 2004-08-23 13:39  pbartok
16271         * Cursor.cs:
16272           - Implemented Position property
16274 2004-08-23 13:39  pbartok
16276         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
16277           - Added method to move mouse cursor
16279 2004-08-23 13:39  pbartok
16281         * XplatUIX11.cs:
16282           - Fixed setting of background color
16283           - Added method to move mouse cursor
16285 2004-08-23 13:16  jordi
16287         * Control.cs: avoids null exception
16289 2004-08-22 17:46  jackson
16291         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
16292           PictureBox
16294 2004-08-22 17:40  jackson
16296         * XplatUIX11.cs: Add some missing locks
16298 2004-08-22 15:10  pbartok
16300         * Control.cs, Form.cs:
16301           - Removed OverlappedWindow style from Control, instead it's default
16302             now is child
16303           - Made form windows OverlappedWindow by default
16305 2004-08-22 13:34  jackson
16307         * ScrollBar.cs: Update the position through the Value property so
16308           the OnValueChanged event is raised.
16310 2004-08-22 12:04  pbartok
16312         * SWF.csproj:
16313           - Added Cursor.cs and UserControl.cs
16315 2004-08-22 12:03  pbartok
16317         * Cursor.cs:
16318           - Started implementation, not usable yet
16320 2004-08-22 12:00  pbartok
16322         * UserControl.cs:
16323           - Implemented UserControl (complete)
16325 2004-08-21 19:20  ravindra
16327         * ToolBar.cs: Correcting the formatting mess of VS.NET.
16329 2004-08-21 18:49  ravindra
16331         * ToolBar.cs: Probably this completes the missing attributes in
16332           toolbar control.
16334 2004-08-21 18:03  ravindra
16336         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
16337           Fixed toolbar control signatures.
16339 2004-08-21 16:32  pbartok
16341         * LinkLabel.cs:
16342           - Signature Fixes
16344 2004-08-21 16:30  pbartok
16346         * Label.cs:
16347           - Signature fixes
16349 2004-08-21 16:19  pbartok
16351         * Control.cs, Label.cs:
16352           - Signature fixes
16354 2004-08-21 15:57  pbartok
16356         * ButtonBase.cs:
16357           - Added loads of debug output for development
16358           - Fixed typo in method name
16360 2004-08-21 15:52  pbartok
16362         * ToolBarButtonClickEventArgs.cs:
16363           - Added missing base class
16365 2004-08-21 14:53  pbartok
16367         * Control.cs:
16368           - Updated to match new GrabWindow signature
16370 2004-08-21 14:51  pbartok
16372         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
16373           - Added method to get default display size
16375 2004-08-21 14:23  pbartok
16377         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
16378           - Added method to query current grab state
16379           - Added argument to allow confining a grab to a window
16381 2004-08-21 14:22  pbartok
16383         * Keys.cs:
16384           - Added [Flags] attribute so that modifiers can be used in bitwise
16385           ops
16387 2004-08-21 14:21  pbartok
16389         * TrackBar.cs, ScrollBar.cs:
16390           - Replaced direct XplatUI calls with their Control counterpart
16392 2004-08-21 13:32  pbartok
16394         * Control.cs:
16395           - Implemented Created property
16397 2004-08-21 13:28  pbartok
16399         * Control.cs:
16400           - Implemented ContainsFocus
16402 2004-08-21 13:26  pbartok
16404         * Control.cs:
16405           - Implemented CausesValidation
16407 2004-08-21 13:21  pbartok
16409         * Control.cs:
16410           - Implemented CanFocus
16411           - Implemented CanSelect
16412           - Implemented Capture
16414 2004-08-21 12:35  pbartok
16416         * XplatUIWin32.cs:
16417           - Fixed bug with Async message handling
16418           - Implemented getting the ModifierKeys
16420 2004-08-21 12:32  jackson
16422         * AsyncMethodResult.cs: Make sure we have the mutex before we
16423           release it. Fixes BeginInvoke on windows
16425 2004-08-21 11:31  pbartok
16427         * XplatUIWin32.cs, XplatUIX11.cs:
16428           - Drivers now return proper mouse state
16430 2004-08-21 10:54  jackson
16432         * Control.cs: Implement EndInvoke
16434 2004-08-21 10:48  jackson
16436         * Timer.cs: Remove unneeded finalizer
16438 2004-08-20 19:52  ravindra
16440         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
16441           in mouse event handling in the ToolBar control.
16443 2004-08-20 19:50  ravindra
16445         * ImageList.cs: Changed draw method to use the arguments passed in
16446           to draw the image.
16448 2004-08-20 18:58  pbartok
16450         * XplatUIStructs.cs:
16451           - Added private message for async communication
16453 2004-08-20 17:38  ravindra
16455         * Control.cs: Made RightToLeft property virtual and removed a
16456           Console.WriteLine.
16458 2004-08-20 14:39  jordi
16460         * ThemeGtk.cs: use style_attach
16462 2004-08-20 14:39  pbartok
16464         * XplatUIWin32.cs:
16465           - Added jackson's Async code from X11 to Win32
16467 2004-08-20 14:09  pbartok
16469         * SWF.csproj:
16470           - Added all new files
16472 2004-08-20 14:09  pbartok
16474         * Control.cs:
16475           - Added call to set window background color
16477 2004-08-20 14:03  pbartok
16479         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
16480           - Added method for setting the window background
16482 2004-08-20 14:02  pbartok
16484         * XplatUIWin32.cs:
16485           - Added method for setting the background color
16486           - Added handling for erasing the window background
16488 2004-08-20 13:45  jordi
16490         * TrackBar.cs: fixes timer, new properties and methods
16492 2004-08-20 13:34  jackson
16494         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
16495           correct thread
16497 2004-08-20 13:22  jackson
16499         * Timer.cs: Timer Tick events are now handed through Controls Async
16500           mechanism so the callbacks are executed in the same thread as X
16502 2004-08-20 13:19  jackson
16504         * XplatUIDriver.cs: Expose functionality to send async messages
16505           through the driver
16507 2004-08-20 13:18  jackson
16509         * Control.cs: Implement Begininvoke
16511 2004-08-20 13:14  jackson
16513         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
16514           messages through the driver
16516 2004-08-20 13:12  jackson
16518         * XplatUIX11.cs: Lock before all X operations. Also added Async
16519           method functionality through XSendEvent
16521 2004-08-20 13:11  jackson
16523         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
16524           This will screw up on 64 bit systems)
16526 2004-08-20 13:10  jackson
16528         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
16529           Async messages through X/Win32
16531 2004-08-19 19:39  pbartok
16533         * XplatUIX11.cs:
16534           - Updated code to match new HandleData.DeviceContext type
16536 2004-08-19 19:38  pbartok
16538         * HandleData.cs:
16539           - Made DeviceContext a generic object to allow usage from various
16540           drivers
16541           - Added support for queueing Windows messages
16543 2004-08-19 19:37  pbartok
16545         * XplatUIWin32.cs:
16546           - Added generation of MouseEnter, MouseLeave and MouseHover events
16547           - Added cleanup on EndPaint
16549 2004-08-19 19:17  pbartok
16551         * Control.cs:
16552           - Added handling of WM_MOUSEHOVER
16553           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
16554           code
16556 2004-08-19 18:55  jordi
16558         * ThemeGtk.cs: fixes button order
16560 2004-08-19 18:12  jordi
16562         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
16564 2004-08-19 17:09  pbartok
16566         * Control.cs:
16567           - Added Right property
16568           - Added RightToLeft property
16570 2004-08-19 16:27  jordi
16572         * ThemeGtk.cs: experimental GTK theme support
16574 2004-08-19 16:26  jordi
16576         * ITheme.cs, Theme.cs: move themes from an interface to a class
16578 2004-08-19 16:25  jordi
16580         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
16581           theme enhancaments
16583 2004-08-19 16:04  pbartok
16585         * XplatUIX11.cs:
16586           - Added colormap basics
16587           - Added a way to re-initialize with a different display handle
16588           - Fixed setting of the window background color
16589           - Added various X11 imports related to colors and colormaps
16591 2004-08-19 15:51  pbartok
16593         * X11Structs.cs:
16594           - Removed packing hints (Paolo suggested this a while back)
16595           - fixed colormap type
16596           - Added default Atom types
16597           - Added Screen and color structs and enums
16599 2004-08-19 15:39  pbartok
16601         * ImageList.cs:
16602           - Added missing Draw() method
16603           - Added missing RecreateHandle event
16605 2004-08-19 15:30  pbartok
16607         * Form.cs:
16608           - Added handling of WM_CLOSE
16610 2004-08-18 13:16  jordi
16612         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
16613           a table
16615 2004-08-18 09:56  jordi
16617         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
16619 2004-08-17 15:31  ravindra
16621         * SWF.csproj: Updated project.
16623 2004-08-17 15:25  pbartok
16625         * Control.cs:
16626           - Drawing improvement; don't call UpdateBounds if we are not visible
16627             (or have been minimized)
16629 2004-08-17 15:24  pbartok
16631         * XplatUIWin32.cs:
16632           - Finished IsVisible
16633           - Added Win32GetWindowPlacement
16635 2004-08-17 15:08  jackson
16637         * Panel.cs: Initial checkin of the Panel
16639 2004-08-17 14:25  pbartok
16641         * Control.cs:
16642           - Fixed broken handling of default window sizes
16644 2004-08-17 13:29  jackson
16646         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
16647           has a large startup time.
16649 2004-08-17 10:25  jackson
16651         * HandleData.cs: union areas properly
16653 2004-08-17 10:12  jackson
16655         * HandleData.cs: union areas properly
16657 2004-08-16 20:00  ravindra
16659         * ToolBar.cs, ToolBarButton.cs: Added attributes.
16661 2004-08-16 18:48  ravindra
16663         * ToolBar.cs: Added attributes.
16665 2004-08-16 17:17  ravindra
16667         * SWF.csproj: Updated project.
16669 2004-08-16 17:16  jackson
16671         * XplatUIX11.cs: Check for more expose events before sending a
16672           WM_PAINT so they can all be grouped together. This makes dragging a
16673           window across another window redraw in a sane way.
16675 2004-08-16 15:47  pbartok
16677         * Control.cs:
16678           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
16679             support OnMouseEnter/Leave()
16680           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
16681             exposure handling
16683 2004-08-16 15:46  pbartok
16685         * XplatUIStructs.cs, XplatUIX11.cs:
16686           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
16687           OnMouseEnter/Leave()
16689 2004-08-16 15:34  jackson
16691         * XplatUIX11.cs: Group multiple expose events in HandleData, make
16692           sure messages get the message field set to WM_NULL if they are not
16693           handled.
16695 2004-08-16 15:24  jackson
16697         * HandleData.cs: HandleData is used for storing message information
16698           for window handles
16700 2004-08-15 17:23  ravindra
16702         * ColorDepth.cs: Added attribute.
16704 2004-08-15 17:23  ravindra
16706         * SWF.csproj: Updated project for ToolBar Control.
16708 2004-08-15 17:20  ravindra
16710         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
16711           control and also dos2unix format.
16713 2004-08-15 17:13  ravindra
16715         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
16716           ToolBarButtonClickEventArgs.cs,
16717           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
16718           ToolBarTextAlign.cs: First Implementation of ToolBar control.
16720 2004-08-15 15:31  pbartok
16722         * ButtonBase.cs:
16723           - First (mostly) working version
16725 2004-08-13 16:15  pbartok
16727         * Control.cs:
16728           - Fixed Anchor default
16730 2004-08-13 15:43  pbartok
16732         * Control.cs:
16733           - Changed GetCursorPos signature
16735 2004-08-13 15:42  pbartok
16737         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
16738           - Changed signature for GetCursorPos
16740 2004-08-13 15:25  pbartok
16742         * XplatUIX11.cs:
16743           - Cleanup
16744           - Fixed resizing/exposure handling
16746 2004-08-13 15:22  jordi
16748         * ThemeWin32Classic.cs: removes redundant code and fixes issues
16749           with tickposition
16751 2004-08-13 14:55  jordi
16753         * TrackBar.cs: change from wndproc to events
16755 2004-08-13 13:00  jordi
16757         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
16758           XplatUIX11.cs: implements PointToClient (ScreenToClient)
16760 2004-08-13 12:53  pbartok
16762         * XplatUIWin32.cs:
16763           - Changed GetWindowPos to also provide client area size
16764           - Fixed broken prototypes for several win32 functions
16766 2004-08-13 12:53  pbartok
16768         * XplatUI.cs, XplatUIDriver.cs:
16769           - Changed GetWindowPos to also provide client area size
16771 2004-08-13 12:52  pbartok
16773         * XplatUIX11.cs:
16774           - Added generation of WM_POSCHANGED
16775           - Changed GetWindowPos to also provide client area size
16777 2004-08-13 12:52  pbartok
16779         * Control.cs:
16780           - Added Dispose() and destructor
16781           - Fixed resizing and bounds calculation
16782           - Fixed Layout
16783           - Added memory savings for invisible windows
16785 2004-08-13 12:46  jordi
16787         * TrackBar.cs: adds timer and grap window
16789 2004-08-13 10:25  jackson
16791         * Timer.cs: SWF Timer
16793 2004-08-12 16:59  pbartok
16795         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
16796           - Implemented method to get current mouse position
16798 2004-08-12 14:29  jordi
16800         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
16801           enhancement, fix mouse problems, highli thumb, etc
16803 2004-08-12 13:31  pbartok
16805         * Control.cs:
16806           - Fixed Anchoring bugs
16808 2004-08-12 13:01  jackson
16810         * StatusBar.cs: Don't forget things
16812 2004-08-12 12:54  jackson
16814         * ThemeWin32Classic.cs: Handle owner draw status bars
16816 2004-08-12 12:54  jackson
16818         * StatusBar.cs: Implement missing properties, events, and methods.
16819           Handle mouse clicking
16821 2004-08-12 10:19  jackson
16823         * StatusBarPanelClickEventArgs.cs,
16824           StatusBarPanelClickEventHandler.cs: Classes for handling status
16825           bar panel click events
16827 2004-08-12 10:10  jackson
16829         * Control.cs: Add missing properties
16831 2004-08-12 09:46  pbartok
16833         * BindingsManagerBase.cs:
16834           - Name changed to BindingManagerBase.cs
16836 2004-08-12 09:25  jordi
16838         * ScrollableControl.cs: calls ctrlbase instead of exeception
16840 2004-08-11 16:28  pbartok
16842         * InputLanguageChangingEventArgs.cs:
16843           - Never check in before compiling. Fixes the last check-in
16845 2004-08-11 16:26  pbartok
16847         * InputLanguageChangingEventArgs.cs:
16848           - More signature fixes
16850 2004-08-11 16:20  pbartok
16852         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
16853           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
16854           ImageListStreamer.cs, InputLanguage.cs,
16855           InputLanguageChangedEventArgs.cs,
16856           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
16857           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
16858           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
16859           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
16860           - Signature fixes
16862 2004-08-11 16:16  pbartok
16864         * Application.cs:
16865           - Fixed Signature
16866           - Added .Net 1.1 method
16868 2004-08-11 15:25  pbartok
16870         * SWF.csproj:
16871           - Fixed BindingManagerBase.cs filename
16873 2004-08-11 15:22  pbartok
16875         * BindingManagerBase.cs:
16876           - Was checked in with wrong filename
16878 2004-08-11 14:50  pbartok
16880         * SWF.csproj:
16881           - Updated
16883 2004-08-11 13:41  jordi
16885         * XplatUIWin32.cs: Fixes ClientRect
16887 2004-08-11 13:19  pbartok
16889         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
16890           XplatUIX11.cs:
16891           - We had SetWindowPos and MoveWindow to set window positions and
16892             size, removed MoveWindow. We have GetWindowPos, so it made sense to
16893             keep SetWindowPos as matching counterpart
16894           - Added some X11 sanity checking
16896 2004-08-11 12:59  pbartok
16898         * Control.cs:
16899           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
16900             (It seems that SetBounds is just a front for SetBoundsCore and
16901              SetBoundsCore updates the underlying window system and
16902              UpdateBounds is responsible for updating the variables associated
16903              with the Control and sending the events)
16904           - Major cleanup of Size handling; we now have two sizes, client_size
16905             and bounds. Bounds defines the window with decorations, client_size
16906             without them.
16908 2004-08-11 12:55  pbartok
16910         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
16911           - Added method to calculate difference between decorated window and
16912             raw client area
16914 2004-08-11 12:54  pbartok
16916         * Label.cs:
16917           - Forcing redraw on resize
16919 2004-08-11 11:43  pbartok
16921         * ImageList.cs:
16922           - Removed disposing of the actual images when the list is disposed
16924 2004-08-11 09:13  pbartok
16926         * Control.cs:
16927           - Now properly reparents windows
16929 2004-08-11 08:37  pbartok
16931         * Control.cs:
16932           - Duh!
16934 2004-08-11 07:47  pbartok
16936         * Control.cs:
16937           - Rewrote the collection stuff. Might not be as fast now, not
16938             keeping the number of children around and accessible directly, but
16939             it's more straightforward
16941 2004-08-11 07:44  pbartok
16943         * AccessibleObject.cs:
16944           - Fixed to match ControlCollection rewrite
16946 2004-08-11 07:43  pbartok
16948         * ImageList.cs:
16949           - Added missing creation of the collection list
16951 2004-08-10 20:08  jackson
16953         * StatusBar.cs: Get the paint message from WndProc
16955 2004-08-10 19:31  jackson
16957         * ThemeWin32Classic.cs: Create Brushes as little as possible
16959 2004-08-10 19:20  jackson
16961         * UICues.cs: Add Flags attribute
16963 2004-08-10 19:19  jackson
16965         * StatusBarPanel.cs: Signature cleanup
16967 2004-08-10 19:10  jackson
16969         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
16970           Initial implementation of status bar item drawing
16972 2004-08-10 17:27  jordi
16974         * TrackBar.cs: add missing methods, properties, and restructure to
16975           hide extra ones
16977 2004-08-10 16:24  jackson
16979         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
16980           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
16981           attribute
16983 2004-08-10 13:21  jordi
16985         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
16986           enhancements and standarize on win colors defaults
16988 2004-08-10 12:52  jackson
16990         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
16991           ThemeWin32Classic.cs: Implement DrawItem functionality
16993 2004-08-10 12:47  jordi
16995         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
16997 2004-08-10 12:32  jordi
16999         * Control.cs: throw ontextchange event
17001 2004-08-10 11:43  pbartok
17003         * Control.cs:
17004           - Added more to the still unfinished Dock/Anchor layout code
17006 2004-08-10 11:39  pbartok
17008         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
17009           - Added GetWindowPos method
17011 2004-08-10 11:36  pbartok
17013         * XplatUIWin32.cs:
17014           - Implemented several methods
17016 2004-08-10 09:47  jackson
17018         * TrackBar.cs: Allow control to handle buffering
17020 2004-08-10 09:41  jackson
17022         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
17024 2004-08-10 09:24  jackson
17026         * Label.cs, LinkLabel.cs: Let Control handle buffering.
17028 2004-08-10 09:09  jackson
17030         * StatusBar.cs: Let Control handle all the buffering.
17032 2004-08-10 09:08  jackson
17034         * Control.cs: Control will now handle the buffering code, so each
17035           control does not have to implement this.
17037 2004-08-10 08:34  jackson
17039         * XplatUIDriver.cs: Use default colors from the theme
17041 2004-08-09 17:12  pbartok
17043         * ImageList.cs:
17044           - Fixed several bugs Ravindra pointed out
17046 2004-08-09 16:11  pbartok
17048         * Control.cs:
17049           - Added incomplete dock layout code
17050           - Added support for mouse wheel
17052 2004-08-09 16:09  pbartok
17054         * XplatUIX11.cs:
17055           - Added handling for middle and right mousebutton
17056           - Added handling for mouse wheel
17057           - Added handling for key state and mouse state and position
17058           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
17059           messages
17061 2004-08-09 15:40  jackson
17063         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
17064           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
17065           checkin
17067 2004-08-09 15:37  jackson
17069         * StatusBar.cs: Initial implementation of StatusBar
17071 2004-08-09 15:36  jackson
17073         * ITheme.cs: Add support for drawing status bar and getting status
17074           bar item sizes
17076 2004-08-09 15:35  pbartok
17078         * MouseButtons.cs:
17079           - Fixed values
17081 2004-08-09 15:34  jackson
17083         * ThemeWin32Classic.cs: Add support for drawing status bar and get
17084           status bar item sizes
17086 2004-08-09 15:21  jackson
17088         * ThemeWin32Classic.cs: Use known colors for default control
17089           colours
17091 2004-08-09 15:12  jackson
17093         * ThemeWin32Classic.cs: Make the default font static, it is static
17094           in control so this doesn't change functionality and creating fonts
17095           is sloooooow.
17097 2004-08-09 14:56  pbartok
17099         * X11Structs.cs:
17100           - Added GrabMode enum
17102 2004-08-09 14:55  pbartok
17104         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
17105           - Removed Run method, was only required for initial development
17107 2004-08-09 14:51  pbartok
17109         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
17110           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
17111           capture
17113 2004-08-09 13:48  pbartok
17115         * XplatUIX11.cs:
17116           - Fixed default sizing for child windows
17118 2004-08-09 12:56  pbartok
17120         * XplatUIX11.cs:
17121           - Added generation of WM_DESTROY message
17122           - Added handling of window manager induced shutdown
17124 2004-08-09 11:31  jackson
17126         * ThemeWin32Classic.cs: New names for control properties
17128 2004-08-09 11:25  jackson
17130         * Control.cs: Use new color names
17132 2004-08-09 11:02  jackson
17134         * XplatUI.cs: Get default window properties from the theme
17136 2004-08-09 11:01  jackson
17138         * ITheme.cs: The theme engine now controls default window
17139           properties
17141 2004-08-09 11:00  jackson
17143         * ThemeWin32Classic.cs: Add default window color properties
17145 2004-08-09 10:17  jackson
17147         * ThemeWin32Classic.cs: Use correct default back color
17149 2004-08-09 10:05  jackson
17151         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
17152           the theme now.
17154 2004-08-09 09:56  jackson
17156         * XplatUI.cs: Remove defaults, these are handled by the theme now.
17158 2004-08-09 09:54  jackson
17160         * Control.cs: Get default properties from the theme.
17162 2004-08-09 09:53  jackson
17164         * ITheme.cs: Themes now handle default control properties
17166 2004-08-09 09:53  jackson
17168         * ThemeWin32Classic.cs: Themes now handle default control
17169           properties so coloring will be consistent
17171 2004-08-08 16:54  jordi
17173         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
17175 2004-08-08 15:08  jordi
17177         * XplatUIX11.cs: fixes keyboard crash
17179 2004-08-08 13:47  jordi
17181         * Label.cs: add cvs header info
17183 2004-08-08 12:09  jackson
17185         * ThemeWin32Classic.cs: Add pen_buttonface
17187 2004-08-08 11:52  jordi
17189         * Label.cs, LinkLabel.cs: [no log message]
17191 2004-08-08 11:34  jordi
17193         * ThemeWin32Classic.cs: Use Windows Standard Colours
17195 2004-08-07 17:32  jordi
17197         * TrackBar.cs: throw exceptions of invalid enums values
17199 2004-08-07 17:31  jordi
17201         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
17202           draw method name
17204 2004-08-07 16:56  jackson
17206         * HorizontalAlignment.cs: Initial checkin
17208 2004-08-07 13:16  jordi
17210         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
17211           methods
17213 2004-08-07 13:05  jordi
17215         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
17216           GetSysColor defines
17218 2004-08-06 18:01  pbartok
17220         * ThemeWin32Classic.cs:
17221           - Fixed some rounding issues with float/int
17223 2004-08-06 18:00  jackson
17225         * DockStyle.cs, AnchorStyles.cs:
17227                   Add flags and serializable attributes.
17229 2004-08-06 17:46  pbartok
17231         * XplatUIX11.cs:
17232           - Implemented GetParent
17234 2004-08-06 17:18  pbartok
17236         * TrackBar.cs:
17237           - Fixed some rounding issues with float/int
17239 2004-08-06 17:17  pbartok
17241         * X11Structs.cs, XplatUIX11.cs:
17242           - Fixed Refresh and Invalidate
17244 2004-08-06 15:30  pbartok
17246         * Control.cs, X11Structs.cs, XplatUIX11.cs:
17247           - Fixed recursive loop when resizing
17248           - Improved/fixed redrawing on expose messages
17250 2004-08-06 09:53  jordi
17252         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
17253           keyboard navigation
17255 2004-08-06 08:02  pbartok
17257         * X11Structs.cs, XplatUIX11.cs:
17258           - Fixed reparenting
17259           - Fixed window border creation
17261 2004-08-05 15:38  pbartok
17263         * XplatUIX11.cs:
17264           - Attempted fix for reparenting problems
17266 2004-08-04 15:14  pbartok
17268         * Control.cs:
17269           - Fixed Invalidation bug (calculated wrong client area)
17270           - Added ClientSize setter
17272 2004-08-04 15:13  pbartok
17274         * Form.cs:
17275           - Added AutoScale properties
17277 2004-08-04 15:13  pbartok
17279         * SWF.csproj:
17280           - Added latest files
17282 2004-08-04 14:11  pbartok
17284         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
17285           XplatUIX11.cs:
17286           - Added Invalidate handling
17288 2004-08-03 17:09  jordi
17290         * XplatUIDriver.cs: fixes spelling mistake
17292 2004-07-27 09:53  jordi
17294         * TrackBar.cs: fixes trackbar events, def classname, methods
17295           signature
17297 2004-07-27 09:29  jordi
17299         * ScrollBar.cs: fixes scrollbar events
17301 2004-07-27 04:38  jordi
17303         * Control.cs: changes to be able to run winforms samples
17305 2004-07-26 11:42  jordi
17307         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
17308           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
17310 2004-07-26 05:41  jordi
17312         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
17313           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
17314           implementation
17316 2004-07-22 09:22  jordi
17318         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
17319           check link overlapping, implement events, and fixes
17321 2004-07-21 10:28  jordi
17323         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
17325 2004-07-21 10:19  jordi
17327         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
17328           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
17329           LinkLabelLinkClickedEventArgs.cs,
17330           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
17331           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
17332           implementation
17334 2004-07-19 13:09  jordi
17336         * Control.cs, Label.cs: label control re-written: added missing
17337           functionlity, events, and properties
17339 2004-07-19 10:49  jordi
17341         * Control.cs: fixes SetBounds logic
17343 2004-07-19 01:29  jordi
17345         * Control.cs: Call RefreshWindow only if the window has created
17347 2004-07-15 14:05  pbartok
17349         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
17350           - Implemented ImageList and ImageList.ImageCollection classes
17351           - Added ColorDepth enumeration
17352           - Updated SWF VS.Net project
17354 2004-07-15 11:06  jordi
17356         * XplatUIStructs.cs: added MsgButons enum
17358 2004-07-15 11:03  jordi
17360         * Control.cs: added basic mouse handeling events
17362 2004-07-15 03:38  jordi
17364         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
17365           Vertical TrackBar control implementation
17367 2004-07-13 09:33  jordi
17369         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
17371 2004-07-13 09:31  jordi
17373         * Control.cs, Form.cs: commit: new properties and fixes form size
17374           problems
17376 2004-07-09 14:13  miguel
17378         * ProgressBar.cs: Spelling
17380 2004-07-09 11:25  pbartok
17382         * ProgressBar.cs:
17383           - Removed usage of Rectangle for drawing. Miguel pointed out it's
17384           faster
17386 2004-07-09 11:17  miguel
17388         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
17390                 * ProgressBar.cs: Fixed spelling for `block'
17392                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
17393                 style guidelines.
17395                 Avoid using the += on rect.X, that exposed a bug in the compiler.
17397 2004-07-08 23:21  pbartok
17399         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
17400           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
17401           BaseCollection.cs, Binding.cs, BindingContext.cs,
17402           BindingMemberInfo.cs, BindingsCollection.cs,
17403           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
17404           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
17405           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
17406           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
17407           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
17408           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
17409           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
17410           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
17411           FrameStyle.cs, GiveFeedbackEventArgs.cs,
17412           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
17413           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
17414           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
17415           InputLanguageChangedEventArgs.cs,
17416           InputLanguageChangedEventHandler.cs,
17417           InputLanguageChangingEventArgs.cs,
17418           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
17419           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
17420           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
17421           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
17422           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
17423           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
17424           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
17425           QueryAccessibilityHelpEventArgs.cs,
17426           QueryAccessibilityHelpEventHandler.cs,
17427           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
17428           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
17429           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
17430           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
17431           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
17432           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
17433           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
17434           XplatUIX11.cs, lang.cs:
17435           - Initial check-in