2007-03-19 Chris Toshok <toshok@ximian.com>
[mono-project.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
blob1cf8b7e8f7f51af1f319d64955ecce631e12ac40
1 2007-03-19  Chris Toshok  <toshok@ximian.com>
3         * ScrollableControl.cs: clean this up a bit.  create the
4         scrollbars in the ctor and just show/hide them as needed.  Also,
5         make hscroll_visible/vscroll_visible internal to Recalculate, and
6         just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
7         everywhere else.  This seems to fix the scrollbars appearing
8         beneath the content for me (i have *no* idea why that is,
9         however.)
11 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
13         * ToolStrip.cs: Don't call DoAutoSize when we change Dock.  Also, remove
14         some redundacy for stuff in Anchor and Dock that base will take care of.
15         [Fixes #80762]
17 2007-03-19  Mike Kestner  <mkestner@novell.com>
19         * ListView.cs : make box selection for Details views without 
20         FullRowSelect dependent on the text bounds, not item bounds.
21         * ListViewItem.cs : add an internal property to obtain the TextBounds
22         in Details view.  [Fixes case 1-4 of #80374]
24 2007-03-19  Andreia Gaita  <avidigal@novell.com>
26         * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
27         we're < 2.0. #78448 && #80316
29 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
31         * FontDialog.cs: Don't crash when we switch to a new font that doesn't
32         have the same style available as the previously selected one.  Also,
33         support FixedPitchOnly property.  [Fixes bugs #80918, #80947]
35 2007-03-19  Jackson Harper  <jackson@ximian.com>
37         * TextControl.cs: Add an alignment property that all new lines
38         will be given.
39         - Make sure to use the align shift when calculating the line's X
40         position.
41         * TextBox.cs: Set the alignment on the document as well as on all
42         the document lines.
44 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
46         * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
47           throw if setting the parent of an mdichild that already has an
48           mdiparent. Update signature for 2.0 profile. ProductName: If there's no
49           AssemblyProductAttribute in the assembly, use the type's namespace (as
50           MS seems to do). CreateControl: don't create the handle if the control
51           is not visible (according to MS behaviour and spec).  SetTopLevel: Only
52           create handle if the control is not a form. Change FocusInternal to
53           virtual so that it can be overriden by Form.
54         * TextBox.cs: Update call to FocusInternal.
55         * Form.cs: Always create the handle when calling Focus on a MdiChild. The
56           form is not a toplevel form when it's a mdi child, so update is_toplevel
57           accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
58           hasn't been created. Show (IWin32Window): Don't allow this overload for
59           toplevel windows. CenterToParent/CenterToScreen/Select: create the
60           handle as MS does. SetVisibleCore: if called on a MdiChild and the
61           parent isn't visible yet, save the visibility and restore it when the
62           parent is made visible.
63         * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
64           methods, since the visibility of the scrollbars can be changed from
65           several places, not only from AutoScroll.
66           [Fixes #81179]
68 2007-03-19  Jackson Harper  <jackson@ximian.com>
70         * RichTextBox.cs: Enable shortcuts by default.
71         * TextBoxBase.cs: Add conditional shortcuts.  
73 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
75         * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).  
77 2007-03-19  Chris Toshok  <toshok@ximian.com>
79         [ Fixes bug #80604]
80         
81         * XplatUIX11.cs (WaitForHwndMessage): change this to actually
82         swallow the message we're waiting on, instead of delivering it, as
83         this is only used for the WM_SHOWWINDOW raised from
84         MapWindow/UnmapWindow, and the message needs to be generated
85         (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
86         before doing the Map/Unmap.  Also make sure that the Hwnd is still
87         alive after the message has been handled.
89         *before* the window is shown.
91         * Control.cs (CreateControl): guard a few more things inside the
92         if (!is_created) block, as we might end up being called again -
93         yay .net.
94         (WmShowWindow): call CreateControl if we're showing the control.
96 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
98         * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
99           controls without a handle if they have any parent with a handle. In
100           Dispose add a check whether the handle is created or not before
101           calling BeginInvoke, this removes the need of the extra disposing
102           parameter (which was bogus anyway since it didn't prevent the
103           invoke from happening, it only skipped the check for an existing
104           handle, meaning that the invoke would call on an inexistent
105           handle).
107 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
109         * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
110         appears in taskbar.
112 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
114         * MessageBox.cs:
115         - Fixed a problem that dont show help button for messages with 3 buttons.
116         - Refactory button size and position calculations, now dont use fixed 
117         values, also fixed button sizes (#80043) and form's border space.
118         - AddButton method created, now all other AddButton methods call this one.
119         - Some other source code cosmetic changes.
121 2007-03-18  Jackson Harper  <jackson@ximian.com>
123         * RichTextBox.cs: Don't do this all fonts must match check if
124         there is only one char selected.
126 2007-03-18  Jackson Harper  <jackson@ximian.com>
128         * TreeView.cs: ScrollWindow works properly now, so we don't need
129         to screw around with the scroll area.  This fixes some artifacts
130         when expanding and collapsing.
132 2007-03-18  Jackson Harper  <jackson@ximian.com>
134         * TextBoxBase.cs: Allow updating the selection position when the
135         cursor is outside the textarea, but we have a capture.
136         * TextControl.cs: A special case for when the cursor is outside
137         the bounds of the TB.
138         
139 2007-03-18  Jackson Harper  <jackson@ximian.com>
141         * TextBoxBase.cs: Remove image pasting code for now.  There is no
142         way to get an image on the clipboard right now anyways.
143         * TextControl.cs:
144         * RichTextBox.cs: Use the new RTF Picture class for pictures.
146 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
148         * MessageBox.cs:
149         - Set window properties in constructor intead of on CreateParams.
150         - Remove topmost from Window ExStyle.
151         - Set ShowInTaskbar to false.
152         - Set form border to FixedDialog.
153         - Some cosmetic changes and remove unneeded comments.
154         - It fixes itens 2,3 and 4 of bug #80043.
156 2007-03-18  Gert Driesen  <drieseng@users.sourceforge.net>
158         * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
159         none was explicitly set. Fixes part of bug #79949.
161 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
163         * ToolStripComboBox.cs: Add AutoComplete*.
165 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
167         * ToolStripComboBox.cs: Add FlatStyle.
169 2007-03-16  Jonathan Pobst  <monkey@jpobst.com>
171         * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
172         ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
174 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
176         * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
177           CheckBox.cs, RadioButton.cs, BindingSource.cs,
178           DataGridColumnStyle.cs: Remove warnings.
180 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
182         * Menu.cs: MergeMenu: Check menu argument for null before looping over
183           it.
184         * MdiWindowManager.cs: Add IsVisiblePending to track the pending
185           visibility of mdi child forms. FormSizeChangedHandler: update the
186           maximized size if size has changed while maximized.
187         * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
188           creating the handle.
189         * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
190           avoid creating the handle if not created.
191         * XplatUI.cs: Update debug output.
192         * XplatUIStructs.cs: Added ToString's for a couple of structs.
194 2007-03-16  Jonathan Pobst <monkey@jpobst.com>
196         * ContainerControl.cs: Give ToolStripManager the opportunity to handle
197         ProcessCmdKey().
198         * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs, 
199         ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
200         Implement keyboard shortcuts.
202 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
204         * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
205         Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog, 
206         ColorDialog and all derived classes.
208 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
210         [ Fixes bug #79828 ]
212         * ToolBar.cs:
213         - Rename ToolBarButtonInfor to ToolBarItem.
214         - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
215         - Maintain an array of ToolBarItem, used instead of ToolBarButton
216         collection to be able add same button more than one time on a toolbar.
217         - Refactory all properties and methods to use ToolBarItem. 
219         * ToolBarButton.cs: 
220         - Remove all propeties and methods that is now in ToolBarItem.
221         - Rectangle propery now gets the rectangle from first ToolBarItem to
222         mimic win32 behavior.
223         - Size calculation and layout methods also removed.
225         * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
226         ToolBarItem instead of ToolBarButton to right drawing buttons when
227         same button/separator was added more than one time to ToolBar.
229         * ThemeNice.cs: Same as above. 
231 2007-03-15  Andreia Gaita  <avidigal@novell.com>
233         * XplatUIX11.cs: Fire extra MouseMove events right after
234         MouseDown and MouseUp, emulating win32's <censored> behaviour
235         for apps that rely on it.
237 2007-03-15  Jackson Harper  <jackson@ximian.com>
239         * TextControl.cs:
240         * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
241         it is drawn on the controls client window and there is no NC
242         area.
243         - Set the background color to gray on 2.0 when we are readonly.
245 2007-03-15  Chris Toshok  <toshok@ximian.com>
247         [ Fixes bug #81144 ]
248         
249         * XplatUIX11.cs: implement VirtualScreen independently of
250         WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
251         property.
253 2007-03-15  Chris Toshok  <toshok@ximian.com>
255         * Hwnd.cs: add an internal field for the cached_window_state.
257         * XplatUIX11.cs: cache the window state, invalidating the cache
258         (and thus re-querying the X server) only when we see an update to
259         the _NET_WM_STATE property.
261 2007-03-15  Chris Toshok  <toshok@ximian.com>
263         * BindingSource.cs: get a lot of the unit tests working.
265 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
267         * Control.cs: Modify UpdateStyles to store distances when bounds >=
268         0 instead of just bounds > 0.  [Fixes bug #80912]
270 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
272         * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
273         and methods.
275 2007-03-15  Ivan N. Zlatev <contact@i-nz.net>
276         
277         * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
278         XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
279         XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
280         WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
282 2007-03-15  Chris Toshok  <toshok@ximian.com>
284         [ Fixes #81101 ]
285         
286         * Control.cs: add Ivan's fix for 81101, with a slight modification
287         - you can set control.Target to null.
289 2007-03-14  Jonathan Pobst  <monkey@jpobst.com>
291         * ToolStripItem.cs: If our OwnerItem is null, we can't use 
292         HideDropDown, use Hide instead to prevent an NRE.
293         [Fixes bug #81147]
295 2007-03-14  Jackson Harper  <jackson@ximian.com>
297         * TextBoxBase.cs: Mess with the creation stuff a little. We need
298         to calculate the document before the handle is created, in some
299         cases. (Actually just one case).
301 2007-03-14  Jackson Harper  <jackson@ximian.com>
303         * TextBoxBase.cs: Need to display the caret after letting the base
304         wndproc handle the focus methods, because the caret display
305         methods check the focus state.
306         - Try to display the caret after updating it's position with SelectWord.
307         - Don't need to do an immediate update on this recalc, since there
308         will be an invalidate anyways.
310 2007-03-14  Jackson Harper  <jackson@ximian.com>
312         * TreeView.cs: Some workarounds so that we can match event order a
313         little better.
315 2007-03-14  Gert Driesen  <drieseng@users.sourceforge.net>
317         * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
318         #80803. Avoid NullReferenceException when Control does not have
319         parent. Fixed different blinkstyle issues. Only subscribe to Tick
320         event a single time. Only draw error icon when control is created and
321         visible. Fixes failing unit tests.
323 2007-03-14  Andreia Gaita  <avidigal@novell.com>
325         * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
326         Selecting events. Fire Leave and Enter events when changing tabs.
328 2007-03-14  George Giolfan  <georgegiolfan@yahoo.com>
330         * TreeView.cs: Add TreeViewNodeSorter.
331         * TreeNodeCollection.cs: Add sorter parameter to Sort method.
333 2007-03-14  Chris Toshok  <toshok@ximian.com>
335         * Form.cs: go ahead and remove the RecreateHandles that jpobst
336         removed earlier and I had him add back it.  It turns out metacity
337         *does* in fact handle the MOTIF_WM_HINTS property changing, it
338         just doesn't redraw the window titlebar until you resize the
339         window.  This also means we aren't recreating the entire window
340         hierarchy on X when you change this property.  And it looks better
341         on windows, too.
343 2007-03-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
345         * ListViewItem.cs:
346         * ListView.cs: Collecting selection information
347         is now done in SelectedIndexCollection rather than in
348         SelectedListViewItemCollection. This is done so we can
349         have the selection information code in one single place
350         (virtual mode selection information entirely depends on
351         SelectedIndexCollection).
353 2007-03-13  Miguel de Icaza  <miguel@novell.com>
355         * ErrorProvider.cs: Add stubs for ISupportInitialize
357 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
359         * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
360         in the right order with the right values, from the Checked property, 
361         just as MS does (instead of triggering them from ListView).
363         * ListView.cs: Make OnItemCheck and OnItemChecked internal.
365 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
367         * ListView.cs: Implement ItemChecked 2.0 event. Also cast to 
368         the correct handler in OnItemCheck method (ItemCheckEventHandler 
369         instead of EventHandler). This used to throw an InvalidCastException.
371 2007-03-13  Jackson Harper  <jackson@ximian.com>
373         * TextBoxBase.cs: Calculate the document before the handle is
374         created, so there isn't an extra invalidate called.
376 2007-03-13  Jonathan Pobst  <monkey@jpobst.com>
378         * Form.cs: Don't set owner in ShowDialog until we are sure
379         that we aren't going to throw an exception.  [Fixes bug #80773]
381 2007-03-12  George Giolfan  <georgegiolfan@yahoo.com>
383         * TreeView.cs: Make it compile.
385 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
387         * Control.cs: Another place we don't call SizeFromClientSize.
388         * Form.cs: Another place we don't call SizeFromClientSize.
389         [Fixes bug #81125]
391 2007-03-12  Jackson Harper  <jackson@ximian.com>
393         * TreeView.cs: Basically emulating some strangness here with
394         exanding nodes and setting node positions when windows aren't
395         created.
396         - Also attempting to walk the node tree less than previously, and
397         just use visible order calculations for determining offsets.
398         - oops made scrolling backwards.
399         * TreeNode.cs: We need to start nodes with a zero visible order,
400         because the order calcs are based on the first nodes order.
402 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
404         * Form.cs: Don't exit the program if RecreateHandle is called on
405         the main form.
407 2007-03-12  Chris Toshok  <toshok@ximian.com>
409         * XEventQueue.cs: remove the use of PostQuitState.
411         * XplatUIX11.cs: remove the use of PostQuitState.  If we get a
412         WM_QUIT message in GetMessage, return false (and if we're in the
413         nested WaitForHwndMessage, repost the WM_QUIT message).
415 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
417         * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
418         or the MaximizeBox properties.  [Part of bug #80640]
420 2007-03-12  Everaldo Canuto  <everaldo@simios.org>
422         * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
423         no links.
425 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
427         * ToolStripItem.cs: Fix some tests I broke by checking Visible
428         instead of visible.
430 2007-03-12  Gert Driesen  <drieseng@users.sourceforge.net>
432         * FileDialog.cs: Use text of File name combobox to determine what
433         files the user selected. Added tokenizer to parse the file names.
434         Fixes bug #81123.
436 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
438         * Control.cs: We can't call SizeFromClientSize in the constructor,
439         but we still need to do the same work, so make an internal version.
440         [Fixes bug #80621]
442 2007-03-12  Jackson Harper  <jackson@ximian.com>
444         * TreeView.cs:
445         * TreeNode.cs:
446         * OpenTreeNodeEnumerator: Match MS better for IsVisible and
447         IsExpanded.
449 2007-03-12  Jackson Harper  <jackson@ximian.com>
451         * TextBoxBase.cs: Now that the handles are being created a little
452         later, we need to make sure that the document is recalculated when
453         the handle is created.
455 2007-03-11  Everaldo Canuto  <everaldo@simios.org>
457         * Theme.cs: GetLinkFont abstract method added.
458         
459         * LinkLabel.cs: 
460         - Remove CalcTrimRectangle, no longer needed.
461         - Factor also remove, position issues must be fixed in libgdiplus.
462         - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
463         - GetPieceFont, CreateLinkFont and link_font removed, theme must be 
464         care about font used to draw links.
465         - Set TabStop to true when control is "Selectable", control is selectable
466         when have one or more links. Fixes #80501 (test case is also added).
467         - Set the LinkArea values after links change, LinkArea values must be
468         based in first link position and size, a test case was created.
469         - Fix ControlStyles.Selectable value, now is based on LinkArea value, 
470         the attribute must be true LinkArea.Length > 0. The same was applied to
471         TabStop.
472         
473         * ThemeWin32Classic.cs: 
474         - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used 
475         in draw method.
476         - Use CPDrawStringDisabled to draw disabled text instead of hard code 
477         color change.
478         - Draw focus rectangle for every parts focused, including parts that 
479         is on another line, its because regions returns various rectangles
480         and not only one. Needed to mimic W32 look.
481         - Uses Graphics.Clip to delimite region painted, it mean that now 
482         complete text is passed to DrawString, with this we solve layout
483         issues without create another text renderer.
484         - Uses Region.Intersect to fix some flickers problems, now only needed
485         parts will redrawed.
486         - This changes fixes #79614 and some other unreported issues, on Linux 
487         some layout problems still remain, the problem is under 
488         MeasureCharacterRanges but it is an libgdiplus bug.
490 2007-03-10  Gert Driesen  <drieseng@users.sourceforge.net>
492         * TextBox.cs: Set for foreground color.
493         * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
494         this is already done in Control.
496 2007-03-10  Jackson Harper  <jackson@ximian.com>
498         * TextBox.cs: Set the background color, but reset the
499         backcolor_set flag which is just for the user setting the
500         background color.
502 2007-03-09  Chris Toshok  <toshok@ximian.com>
504         * Control.cs: really remove the call to XplatUI.SetVisible from
505         CreateHandle(), like I said I did when I merged the branch.
507         * BindingSource.cs: implement some more of this stuff.
509 2007-03-09  Jackson Harper  <jackson@ximian.com>
511         * TextBox.cs: Don't explicitly set our background colors.
512         * TextControl.cs:
513         * TextBoxBase.cs: Draw readonly text.
514         - Need to invalidate when backcolor or readonly are changed.
515         
516 2007-03-09  Jackson Harper  <jackson@ximian.com>
518         * TextBoxBase.cs: Don't set the forecolor until the handle is
519         created.
520         - Do not raise OnPaint, and removed some old debug code.
522 2007-03-09  George Giolfan  <georgegiolfan@yahoo.com>
524         * ScrollableControl.cs: Fix mouse wheel scrolling.
526 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
528         * Control.cs: Wire up MouseDoubleClick event.
530 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
532         * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
533         top or bottom.
534         * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
535         * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
536         item is added.  This logic was moved to ToolStrip.OnItemAdded.
537         [Fixes bug #81090]
539 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
541         * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
543 2007-03-08  Jackson Harper  <jackson@ximian.com>
545         * TreeView.cs: Show the correct image for selected node (this used
546         to work, not sure how the code got deleted). Also implemented 2.0 feature
547         SelectedImageKey.
549 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
551         * ListView.cs:
552         * ListViewItem.cs: Cache index in items when retrieving them
553         in VirtualMode.
555 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
557         * ToolStripItem.cs: Don't return the explicit_size if we are using 
558         AutoSize.  Fixes invalidation issue when user has explicitly set a
559         size and has AutoSize = true.
561 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
563         * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
565 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
567         * DataGridView.cs: Remove event handler from DataView when a
568         DataTable is used as DataSource.
570 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
572         * Control.cs: Create internal setter for client_size to allow it to be
573         set without triggering resizing code.
574         * Form.cs: Calculate client_size in constructor, only change client_size
575         in FormBorderStyle property if Handle has been created.
576         [Fixes #80574, #80791]
578 2007-03-08  George Giolfan  <georgegiolfan@yahoo.com>
580         * SystemInformation.cs: Add TerminalServerSession.
582 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
584         * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
585         TreeView code.
587 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
589         * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
590         Handle before we were supposed to.  Now checks ActivateOnShow property
591         in Control.
592         * Control.cs: Add internal ActivateOnShow property.
593         * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
594         for ActivateOnShow.
595         * Hwnd.cs Remove no longer needed no_activate field.
597 2007-03-07  Jackson Harper  <jackson@ximian.com>
599         * TreeView.cs: Implement owner draw tree nodes.  And a couple more
600         2.0 properties
601         * DrawTreeNodeEventHandler.cs: Add
602         * DrawTreeNodeEventArgs.cs: Correct default value.
603         
604 2007-03-07  Chris Toshok  <toshok@ximian.com>
606         * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
607         to be called before NativeWindow.WndProc.  Put the HwndCreating
608         magic there to hook up our Hwnd's to handles.
610 2007-03-07  Gert Driesen  <drieseng@users.sourceforge.net>
612         * DataGridView.cs: Comment out debug code.
614 2007-03-07  Chris Toshok  <toshok@ximian.com>
616         [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
617         to make the rest of the world happy]
619         * Control.cs (CreateHandle): there's no need to call
620         XplatUI.SetVisible here, it's effectively done by
621         XplatUI.CreateWindow on X now, and always was on windows.
623         * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
624         shortcircuit out of the loop if we have a message loop running on
625         this thread.
627         [Changelog from merge]
629         2007-03-05  Chris Toshok  <toshok@ximian.com>
631                 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
632                 causes handle creation.
634         2007-02-28  Chris Toshok  <toshok@ximian.com>
636                 * ApplicationContext.cs: Add a flag to make sure we only raise the
637                 ThreadExit event once (ExitThreadCore can be indirectly called
638                 from a few places.)  I don't like the additional flag, but it
639                 makes the event ordering/count correct.
641                 * Application.cs (MWFThread.LoopCount): don't use an enumerator
642                 without locking the collection.  An enumerator doesn't give us any
643                 protection from modification anyway.  Lock the thread hash and
644                 replace the complicated enumerator loop with a foreach.
645                 (Application.CloseForms): make internal so it can be called from
646                 ApplicationContext.  This should probably be moved to MWFThread.
647                 (Application.ExitThread): don't call MWFThread.Current.Exit()
648                 here.  just call XplatUI.PostQuitMessage.  We'll exit the thread
649                 when the runloop exits (in response to WM_QUIT.)
650                 (Application.RunLoop): add a comment (and check) for
651                 context.MainForm being null after setting context.MainForm.Visible
652                 = true.  This is because you're perfectly free to dispose of a
653                 form in VisibilityChanged.  Chalk this up to another case where we
654                 need to synchronously generate WM_ACTIVATE from Control.Show.
655                 Also, add handling for WM_QUIT here so we'll exit the loop.
656                 
657                 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit.  The
658                 fact that we don't wait if we're only unmapping the whole_window
659                 makes me a bit nervous, but it doesn't seem to cause any problems
660                 yet.
662                 also, add a comment about the stupid, broken and wrong resetting
663                 of PostQuitState to false in GetMessage().
665                 In PostQuitMessage, we need to add a WM_QUIT message to the
666                 thread's queue.  We use the FosterParent to get the right
667                 handle/hwnd/queue.
669                 Lastly, in SetVisible, we need to unmap both windows, since the
670                 waiting only happens when we're unmapping the client window.  So
671                 now, the *only* time we unmap just the whole_window is in the hack
672                 for resizing a control to 0,0.
673                 
674         2007-02-21  Chris Toshok  <toshok@ximian.com>
676                 * Application.cs (CloseForms): rewrite this so that we don't
677                 modify the list while we're traversing it.
679         2007-02-20  Chris Toshok  <toshok@ximian.com>
681                 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
682                 of OnHandleCreated.
683                 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
684                 handle is created.  otherwise we'll create it here.
685                 (VerticalScrollEvent): same here.
687                 * Application.cs (CloseForms): call Form.Dispose, don't post
688                 WM_CLOSE_INTERNAL.
690                 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
691                 here. Application should Dispose() of the Form's.
693                 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
694                 WM_DESTROY as well.
695                 (MapWindow,UnmapWindow): only actually do the waiting for
696                 SHOWWINDOW if the control we're dealing with is a Form.
697                 (CreateWindow): if the control isn't a form, SendMessage
698                 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
700                 * Control.cs (SetVisibleCore): always use is_visible here, not
701                 value.  If we use value, we can end up re-setting something
702                 visible if, for instance, you do Control.Hide() in a delegate
703                 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
705         2007-02-20  Chris Toshok  <toshok@ximian.com>
707                 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
708                 the message we need.  PeekMessage returning false should not be a
709                 condition under which we exit the loop.
711         2007-02-15  Chris Toshok  <toshok@ximian.com>
713                 * Control.cs (Refresh): only refresh if we've got a handle and are
714                 visible.
715                 (CreateAccessibilityInstance): CreateControl() here.
716                 (UpdateChildrenZOrder): complicate the code loop even more by
717                 taking into account controls that haven't had their handle
718                 created, and those that aren't visible.  But on the flip side,
719                 simplify the code by splitting it into two loops.  one which
720                 builds up the list of child controls we're interested in, and the
721                 other that sets the z order of those children.
723         2007-02-14  Chris Toshok  <toshok@ximian.com>
725                 * Control.cs: Control.AccessibilityObject causes the control to be
726                 created, not just the handle.
728         2007-02-14  Chris Toshok  <toshok@ximian.com>
730                 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
731                 problem on X where a window might have its handle created (and be
732                 visible) while the window is unmapped.  calling XConfigureWindow
733                 on an unmapped window is bad, and generates X errors.
735         2007-02-13  Chris Toshok  <toshok@ximian.com>
737                 * Control.cs (CreateHandle): don't loop over our children setting
738                 their parent here.  do it when in WndProc when we're shown.
739                 (UpdateChildrenZOrder): make this internal so we can call it from
740                 ScrollableControl.
741                 (WndProc): for WM_SHOWWINDOW, reparent the child control after
742                 creating its handle.  Also, remove the calls to PerformLayout from
743                 here.  they're done in ScrollableControl.OnVisibleChanged.  Also,
744                 OnVisibleChanged only seems to be called directly here for the
745                 toplevel control.  It's propagated down the window hierarchy by
746                 calls to child.OnParentVisibleChanged.
747                 (OnVisibleChanged): don't do layout here - it's done (oddly
748                 enough, according to a glance at stack traces on ms.net..) in
749                 ScrollableControl.
750                 
751                 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
752                 z order of our children before calling PerformLayout.
754         2007-02-12  Chris Toshok  <toshok@ximian.com>
756                 [big change, fixes #80020]
757                 
758                 * AccessibleObject.cs: we need to make owner internal again to fix
759                 some of ControlAccessibleObject.
761                 * Control.cs: lots of changes here.  add support for WM_CREATE,
762                 for which we generate OnHandleCreated.  Remove the OnHandleCreated
763                 call from CreateHandle.  Also add support for WM_SHOWWINDOW where
764                 we create child controls.  leave the MonoTODO's for the
765                 accessibility calls, but fix the exceptions so the tests pass.
767                 Add the InvalidOperationExceptions to Invoke methods, and remove a
768                 couple of InvokeInternal methods we aren't using.
769                 
770                 Also, add a couple of CreateHandle calls in places where we know
771                 the handles are being created but our code doesn't reference
772                 .Handle.
774                 Make SetVisibleCore call OnVisibleChange if the handle isn't
775                 created.  If the handle is created, we rely on XplatUI.SetVisible
776                 generating the event synchronously.
777                 
778                 Lastly, make sure we don't use this.Handle inside CreateHandle,
779                 because we can call back into client (and that code can dispose of
780                 the control).
782                 * XplatUIStructs.cs: misc/cleanup.
784                 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
785                 although we don't populate the wParam properly.
786                 (CreateWindow): generate WM_CREATE.
787                 (MapWindow,UnmapWindow): make these calls synchronous, at great
788                 performance expense (particularly in the unmap case), to match
789                 win32 behavior.
791                 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
792                 to call it.
793                 (set_MdiParent): don't recreate the handle unless it's been
794                 created already.
795                 
796                 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
797                 it's created.
799                 * NativeWindow.cs: this is probably the weirdest part of the
800                 patch.  We need a way to link up the window being created to the
801                 WM_CREATE message.  Since we can only be creating one window at a
802                 time on a given thread, we keep track of a per-thread reference so
803                 we can dispatch it properly.  We also need to keep track of the
804                 Hwnd currently being created so that the win32 backend doesn't
805                 have problems.
806                 
807                 * XplatUIWin32.cs: a similar change to the one we made in
808                 NativeWindow.cs.
810 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
812         * ToolStripItem.cs: Make CalculatePreferredSize virtual.
813         * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
814         to draw the menu shortcut string.
816 2007-03-07  Jackson Harper  <jackson@ximian.com>
818         * TreeNode.cs: Add the 2.0 collapse method.
820 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
822         * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
824 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
826         * DataGridView.cs: Change DataSource will clear column and row
827         lists. Call Invalidate() to reflect DataSource change.
829 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
831         * DataGridView.cs: Add rows when DataSource is System.Data.DataView
832         and a new row is added to it.
834 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
836         * DataGridView.cs: Add columns when DataSource is en empty list but
837         is a System.Data.DataView (from a System.Data.DataTable).
839 2007-03-06  Andreia Gaita  <avidigal@novell.com>
841         * Label.cs: Implement AutoEllipsis (2.0)
843 2007-03-06  Jackson Harper  <jackson@ximian.com>
845         * TreeView.cs: Implement 2.0 TopNode setter property.
846         - Use a local var instead of the skipped_nodes field for computing
847         how many nodes to skip.  Otherwise we won't scroll because the
848         valuechanged handler checks if skipped_nodes is equal to the new
849         value.
850         - Implement 2.0 Sort method.
851         - Add useless 2.0 DoubleBuffer property
852         - Implement 2.0 LineColors property.  Lets you change the color of
853         the lines in the tree. Terribly useful for creating non cohesive
854         desktops.
855         - Implement 2.0 image key feature.
857 2007-03-06  Jackson Harper  <jackson@ximian.com>
859         * TreeView.cs: We can't get the bounds of the nodes before raising
860         the AfterSelect event, because that event could change the node's
861         bounds (scrolling, font change, etc).
863 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
865         * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
866         * Form.cs: Don't recreate handle when creating FormWindowManager, just
867           update window styles. In CreateParams us VisibleInternal instead of
868           VIsible to get the actual visible flag set for this form.
869         * FormWindowManager.cs: Activate the form whenever the mouse clicks on
870           the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
871           handle the case when the form is already maximized, in which case
872           it should be restored. Fixes #81043.
874 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
876         * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
878 2007-03-05  Jackson Harper  <jackson@ximian.com>
880         * TreeViewHitTestInfo.cs: implement.
882 2007-03-05  Jackson Harper  <jackson@ximian.com>
884         * InternalWindowManager.cs: class status fix.
886 2007-03-05  Rolf Bjarne Kvinge <RKvinge@novell.com> 
888         * InternalWindowManager.cs: All windows that have a parent
889         are confined to their parent when they're being moved.
890         Fixes #80822.
892 2007-03-04  Gert Driesen  <drieseng@users.sourceforge.net>
894         * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
895         on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
897 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
899         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
900           buttons invisible before deciding which ones should be visible
901           (fixes minimize/maximize buttons showing up in toolwindows). Remove
902           an unused variable.
903         * InternalWindowManager.cs: Remove warning.
905 2007-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
907         * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
908         to throw an InvalidOperationException is virtual mode is being used.
910 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
912         * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
913         ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
914         ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
915         ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
916         ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
917         ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
919 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
921         * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
922           driver.KeyboardDelay from XplatUI.KeyboardDelay 
923         * XplatUIW      in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
924           (patch by Sergey Volk)
926 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
928         * ToolWindowManager.cs: Added, contains logic for
929           tool windows.
930         * CreateParams.cs: Add a few helper methods and an
931           internal variable to know which control the CreateParams belongs
932           to.
933         * Control.cs: Call Form.ChangingParent when the
934           parent is about to be changed.
935         * XplatUIX11.cs: DeriveStyles (): Set
936           caption_height for all windows that have captions and are children.
937           Update to use ToolWindowManager instead of InternalWindowManager
938           for ToolWindows.
939         * XplatUIWin32.cs: Set fake window styles for all
940           windows that have window managers.
941         * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
942           now duplicated for mdi windows when they are
943           maximized, first for the buttons the window itself has, then for
944           the buttons that appear in the menu bar. Makes things a little
945           easier). Updated UpdateWindowDecorations, SetWindowState and the
946           mouse eventhandlers accordingly.
947         * Form.cs: Add ChangingParent (), contains the
948           logic of what should happen when the parent changes. In MdiParent
949           don't set things that ChangingParent () is doing. When handling
950           WM_CLOSE, we can close the form if there are any other modal forms
951           and the current form is a descendent of the modal form.
952         * InternalWindowManager.cs: A lot of refactoring,
953           the title buttons are now extracted to a separate container class
954           that takes care of all button code (clicks, tooltips, etc). Moved
955           Iconic|Maximized|Normal Bounds properties to this class from
956           MdiWindowManager, so that the window state logic can succeed for
957           other than mdi wm's. Implemented general window state change logic.
958           Moved CreateButtons to ThemeWin32Classic, since the theme might
959           override which buttons are available when as well as the exact
960           location.
961         * FormWindowManager.cs: Added, contains logic for
962           normal forms.
963         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
964           which buttons go where (and if they are at all visible). 
965           Removed special handling of maximized windows, since they aren't special. 
966           In DrawManagedWindowDecorations don't try to draw the text if it is
967           empty.
968         * MdiClient.cs: ArrangeIconicWindows: Don't  calculate any sizes, 
969           use whatever the wm gives us.
971 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
973         * ButtonBase.cs: Add 2.0 properties.
974         * Button.cs: Override Draw for 2.0.
975         * Control.cs: Add Entered and Selected properties.
976         * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
977         TextRenderer.cs: Make internal for 1.1 to unify drawing code.
978         * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
979         buttons.
980         * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
982 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
984         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code.  :/
986 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
988         * XplatUIWin32.cs: Register a new class with Windows each time we get
989         a new ClassStyle.  [Fixes bugs #79432, #80817]
990         * Controls.cs: Set the correct ClassStyle in CreateParams.
991         * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
993 2007-03-01  Gert Driesen  <drieseng@users.sourceforge.net>
995         * ListView.cs: Add fireEvent argument to ReorderColumn since the
996         ColumnReordered event must not be signaled when modifying DisplayIndex
997         of a ColumnHeader. Added internal ReorderColumns method which takes
998         care of drawing, and updating the internal DisplayIndex of the
999         ColumnHeader. Added AddColumn method which is invoked from
1000         ColumnHeaderCollection when adding or inserting columns, and which
1001         ensures that reorder_columns_indices is kept in sync. Avoid redrawing
1002         after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
1003         Recalculated dispay indices after removing a ColumnHeader.
1004         * ColumnHeader.cs: Save DisplayIndex separately from ListView to
1005         match MS. Allows last display index to be returned after ListView
1006         is disposed. Update actual location of ColumnHeader when DisplayIndex
1007         is modified.
1009 2007-03-01  Everaldo Canuto  <everaldo@simios.org>
1011         * LinkLabel.cs: Improve CalcTrimRectangle.
1012         
1013         * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
1015 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
1017         * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
1018         get rectangle as a result value.
1020 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
1022         * LinkLabel.cs: Theres some diferences between rectangle return from 
1023         MeasureCharacterRanges and the area used for DrawString to fix this 
1024         CalcMeasurementFactor method was created, it calcules the diferences
1025         to be use later to adjust rectangle in draw operations. Fixes #80473.
1026         
1027         * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
1028         to adjust draw rectangle.
1030 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
1032         * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
1033         text and some other changes to reduce and optimize source code.
1035 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
1037         * RadioButton.cs: Implement 2.0 event.
1038         * RelatedImageListAttribute.cs: Implement new class.
1040 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
1042         * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
1044 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
1046         * CheckBox.cs: Implement 2.0 functionality.
1048 2007-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1050         * ListView.cs: Refactor Add and AddRange methods of
1051         ListViewItemCollection, to not update the ListView
1052         everytime an item is added in AddRange. Also move the update
1053         code to a new CollectionChanged method, and call it
1054         from other methods that need it as well (this should also fix some
1055         bugs when Sorting is used).
1057 2007-02-27  Jackson Harper  <jackson@ximian.com>
1059         * TextControl.cs: Try to never let the caret stay in a non-text
1060         tag.
1061         * TextBoxBase.cs: Update the caret.
1063 2007-02-26  Jonathan Pobst  <monkey@jpobst.com>
1065         * XplatUIStructs.cs: Add some convenience methods for POINT structure.
1066         * XplatUIWin32.cs: Add some convenience methods for RECT structure,
1067         delete POINT structure, duplicate of one in XplatUIStructs.
1068         * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
1070 2007-02-26  Gert Driesen  <drieseng@users.sourceforge.net>
1072         * ListView.cs: Initialize LabelEditEventArgs after setting Text of
1073         edit box since otherwise the Label would immediately be set (even if
1074         the user did not modify the label). In OnKeyDown set Handled to true
1075         if Return or Escape was pressed. In ColumnHeaderCollection unlink
1076         columns that are to be removed. In ListViewItemCollection unlink items
1077         that are to be removed.
1079 2007-02-24  Jonathan Pobst  <monkey@jpobst.com>
1081         * TextRenderer.cs: If we set a GDI clip region, we need to clear
1082         it when we are done.  [Fixes bug #80949]
1084 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
1086         * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
1088 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1090         * ListView.cs: I forgot to commit the changes for ListView 
1091         in my previous patch.
1093 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
1095         * Clipboard.cs: Partially implement an overload of SetDataObject.
1096         * Form.cs: Implement ShowWithoutActivation.
1097         * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
1099 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1101         This is a first set of changes to make the Virtual mode works,
1102         by avoiding the retrieval of ListViewItem instances until
1103         draw time.
1105         * ListView.cs: Store item position in the ListView instead of the
1106         ListViewItem, this way we don't request the Bounds property of
1107         ListViewItem inside the ListView calculations, as well as cache the item
1108         size in item_size field. Store indexes instead of ListViewItem
1109         instances in the matrix used by icon view. Add a ItemMatrixLocation
1110         struct to hold the row and col info of the matrix info.
1112         * ListViewItem.cs: Don't store the location anymore, and only cache
1113         the rectangles for GetBounds. Use the ListView.GetItemLocation
1114         method to retrieve the actual location.
1116 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
1118         * TextRenderer.cs: Add clipping support, thanks to George.
1119         [Fixes bug #80949]
1121 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
1123         * ListViewItem.cs: Cancel label edit when item is removed from 
1124         ListView.
1125         * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
1126         event before the edit textbox is displayed.  Added CancelEdit method
1127         which is used end to editing while ignoring the value set by the
1128         user. In EndEdit, set focus to ListView to avoid losing focus to
1129         other controls. In ListViewItemCollection.Clear, cancel editing of
1130         any of the items.  In Remove, cancel editing of item being removed.
1131         Avoid udplicate code by modifing RemoveAt to invoke Remove.
1133 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
1135         * FileDialog.cs: Update FSEntry when move is successful. Fixes
1136         bug #80948.  
1138 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
1140         * MainMenu.cs: Change Draw method to take care about MenuOrigin to be 
1141         compatible with non X11 systems. Fixes #80901.
1143 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
1145         * ListView.cs: Added bool argument to UpdateMultiSelection to specify
1146         whether the item should be unselected and reselect. We do no want this
1147         when we're starting to edit the label. Do not fire the 
1148         SelectedIndexChanged event from ListView when its already been fired
1149         by modifying ListViewItem.Selected. Fixes bug #80943.
1151 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
1153         * TextRenderer.cs: Previos commit logic was backwards.
1155 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
1157         * TextRenderer.cs: Don't add padding on MeasureText if we were
1158         sent the NoPadding flag.
1160 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
1162         * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
1163         after DrawButton. To prevent image overlaps button borders SetClip and 
1164         ResetClip added before and after draw image. Fixes #79129.
1166 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
1168         * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify 
1169         window size, it fix problem when you run under win32 that theres
1170         Size diferent than ClientSize. Also fix controls size and positions
1171         to mimic Win32. Fixes #80837.
1173 2007-02-22  Everaldo Canuto  <everaldo@simios.org>
1175         * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on 
1176         menu area to fix some problems for non X11 systems. Fixes #80613.
1178 2007-02-22  Jackson Harper  <jackson@ximian.com>
1180         * TreeNode.cs: When a node is expanded, set its is_expanded flag
1181         even if it doesn't have any children.
1183 2007-02-22  Jackson Harper  <jackson@ximian.com>
1185         * TreeView.cs: Calculate the top node 'on the fly', this
1186         eliminates issues where you need to click on the tree before
1187         scrolling it to get the top node computed correctly.
1188         * TreeNodeCollection.cs: We don't need to mess with the top node
1189         anymore.
1191 2007-02-22  Jackson Harper  <jackson@ximian.com>
1193         * DataGridViewRow.cs: Fix typo so height can actually be set.
1194         Patch by Peter Grimm.
1196 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
1198         * FileDialog.cs: Fixed support for renaming files and directories.
1199         * ListView.cs: Do not lose focus when edit is canceled. Process
1200         Escape as regular key (to prevent closing of dialogs).
1202 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
1204         * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
1205         spaces. Changed spaces to tabs. Removed unnecessary init of bools.
1207 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
1209         * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
1210         did not modify label.
1211         * ListView.cs: Only set LabelEditEventArgs.Label if user actually
1212         modified the text. Reset Label when user presses Escape in edit mode.
1213         Move focus to ListView after having cancelled or finished editing the
1214         label.
1216 2007-02-21  Gert Driesen  <drieseng@users.sourceforge.net>
1218         * ComboBox.cs: Removed unnecessary initializations. Marked items field
1219         private. Clear textbox when Text is set to null and SelectedIndex is
1220         already -1.
1221         * FileDialog.cs: Removed unnecessary initializations. Removed 
1222         workarounds for ComboBox bugs that are now fixed. Modified
1223         DefaultExt, InitialDirectory and Title property to change null to
1224         zero-length string in getters. Avoid directly accessing fields.
1226 2007-02-20  Jackson Harper  <jackson@ximian.com>
1228         * TextControl.cs: Remove RecalAlignments call, that was some
1229         debugging leftovers.
1230         - Don't use the line indent when we shouldn't.
1231         * RichTextBox.cs: Add support for paragraph left indents.
1233 2007-02-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
1235         * Control.cs: Fix BeginInvoke signature for 2.0 profile.
1236         Seems like the class status pages doesn't catch params differences.
1238 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
1240         * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
1242 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
1244         * ComboBox.cs: Setting Text should have no effect if item text of
1245         selected item exactly matches value. First lookup text using
1246         case-sensitive comparison, and fallback to case-insensitive comparison.
1247         FindString(Exact) returns -1 if search string is null. On 2.0 profile, 
1248         allow startIndex to be last index. Changed ArgumentOutOfRangeException
1249         paramname to match MS. Restart from first item if string is not found
1250         after startIndex. Fixed paramname of ArgumentNullException that is
1251         thrown for null value in ObjectCollection.Contains.
1253 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
1255         * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
1257 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1259         * ListControl.cs: In SelectedValue use value.Equals to compare for
1260         equality instead of ==, otherwise it will fail for strings.
1261         Fixes #80794.
1263 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1264         
1265         * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
1266         since the caret won't show up unless ShowSelection is true. 
1267         Fixes #80795.
1269 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1271         * Application.cs: When disabling all forms but the main form, do not
1272           disable any descendants of the main form (such as mdi children or
1273           other parented forms). Fixes #80822 on Windows.
1274         * Form.cs: If we have a parent, set the WS_CHILD style.
1275         * Control.cs: Update the window styles if the control whose parent has
1276           changed is a form (the WS_CHILD style has to be switched).
1278 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
1280         * XplatUIStructs.cs: MsgUIState structure added.
1282 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
1284         * FileDialog.cs: Removed need for separate fileName field. On 2.0
1285         profile, do not check filename(s) for illegal character if filename(s)
1286         were set non-interactively but always check on 1.0 profile. Fixed NRE
1287          in DefaultExt and only strip off first leading dot. Improve exception
1288         message when invalid Filter is set. Do not ignore InitialDirectory if
1289         it does no exist. Store specified Title, and if empty use default
1290         title (depending on type of dialog). Added an internal DialogTitle 
1291         property for retrieving dialog title. Fixed logic of displayed dir to
1292         more closely match MS. Avoid setting ComboBox.Text to a zero-length 
1293         string as its buggy.
1294         * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
1295         FileName is a zero-length string (it can never be null). Override 
1296         DialogTitle property to set default title of dialog box.
1297         * SaveFileDialog.cs: Override DialogTitle property to set default
1298         title of dialog box.
1300 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
1302         * FileDialog.cs: Modify default text of filename and filetype labels
1303         to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
1304         after we've updated the SelectedIndex. Fixes part of bug #80887.
1305         * SaveFileDialog.cs: Set text of filetype label.
1307 2007-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1309         * LabelEditEventArgs.cs: New internal SetLabel method, to set the
1310         label field. Needed by latest Jackson's fixes for ListView.
1312 2007-02-16  Andreia Gaita  <avidigal@novell.com>
1314         * PrintPreviewControl/PrintPreviewDialog: Properly dispose of 
1315         print preview images.
1317 2007-02-16  Jackson Harper  <jackson@ximian.com>
1319         * ListView.cs: Make AfterLabelEdit work correctly.
1320         * FileDialog.cs: After changing the name of the folder, we have to
1321         make sure that it is created, or that we pop up an error because
1322         it already exists.
1324 2007-02-16  Jackson Harper  <jackson@ximian.com>
1326         * X11Dnd.cs: Implement aliases on mime handlers, so things like
1327         System.String are mapped to text.
1328         - Handle dataobjects, getting all the possible formats out of them
1329         - We dont need the drag event args before we give feedback. This
1330         allows feedback cursors to be immediate before selections have
1331         been converted.
1333 2007-02-16  Jackson Harper  <jackson@ximian.com>
1335         * TextBoxBase.cs: Modified the method for inserting images to
1336         taking a line and position instead of tag and position.
1337         * RichTextBox.cs: Handle PngBlip data by inserting the png image
1338         into the RTF file.
1339         * TextControl.cs: Allow images to be inserted as the first tag of
1340         a line.
1341         - Fix some off by one issues when we assume the first tag is a
1342         text tag, not an image tag.
1344 2007-02-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1346         * ListView.cs: Set focus to ListView when ItemControl gets a
1347         WM_RBUTTONDOWN message, to mimic .Net behaviour. 
1348         Fixes part of #80467.
1350 2007-02-15  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1352         * DateTimePicker.cs: Call RecreateHandle if the Format changes and
1353           validate Text input (if null or empty string reset Value to default
1354           value). Fixes #80830.
1356 2007-02-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1358         * ListView.cs: Set owner as null for columns and items when
1359         Dispose is invoked. Fixes #80607.
1361 2007-02-14  Jonathan Pobst  <monkey@jpobst.com>
1363         * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
1364         showing DropDowns, don't show a Grip when doing Flow layout.
1365         [This fixes the toolbox in PDN 2.72.]
1366         * ToolStripItem.cs: Add Anchor property and some internal properties to
1367         reduces needed changes to FlowLayout.
1368         * ToolStripOverflow.cs: Remove unused variable.
1369         * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
1370         use it in the layout calculations.
1372 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
1374         * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
1375         reported in #79640.
1376         
1377         * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
1378         size calculation.
1380 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
1382         * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from 
1383         MeasureString format, it can make button very large in some cases, it is
1384         strange but is what win32 do.
1386 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
1388         * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string 
1389         size calculation.
1391         * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
1392         rendering, the value is based on MenuAccessKeysUnderlined.
1394 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
1396         * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
1397         for most themes.
1398         
1399         * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
1400         
1401         * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
1402         and use MenuAccessKeysUnderlined instead.
1404 2007-02-13  Andreia Gaita  <avidigal@novell.com>
1406         * ContainerControl.cs: Focus fix for nunit treeview selection bug.
1407         A selected control would not get a Focus call if:
1408                 - the default active control of the container is the same as
1409                   the one that was selected
1410                 - we are switching from one container to another
1411         Under these conditions, the container being selected already has
1412         an active_control, which is the same as the one being activated, 
1413         so set_ActiveControl would always return and not send the Focus
1414         call. Fix to check if the currently active control of the container
1415         is actually focused.
1417 2007-02-13  Jonathan Pobst  <monkey@jpobst.com>
1419         * StatusStrip.cs: Implement the spring layout.
1420         * ToolStripControlHost.cs: Make sure the hosted control's visibility
1421         always matches the host.
1422         * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
1423         and TextAfterImage.
1425 2007-02-13  Andreia Gaita  <avidigal@novell.com>
1427         * Control.cs: Code reorganization only.
1428           - Reorganize the WndProc cases so that each case has it's own handling method, 
1429           to help with the no-line-numbering stack traces.
1430           - Formatting changes (it's vstudio's fault, really :p)
1432 2007-02-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1434         * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
1435           Thread.CurrentUICulture to match DateTimePicker's (and MS)
1436           behaviour.
1438 2007-02-12  Jackson Harper  <jackson@ximian.com>
1440         * RichTextBox.cs:
1441         * TextBox.cs: By default we have a non multiline document
1442         - use the multiline property instead of the internal variable
1443         * TextBoxBase.cs: Treat multiline and non multiline the same in
1444         most places.
1445         - Use the documents multiline flag instead of tracking it ourself
1446         * TextControl.cs: Attempt at getting multiline to match MS
1447         behavior.  Lines now track an offset, which is either their X or Y
1448         offset depending on whether or not we are in multiline mode.
1449         - Update all the methods to understand that lines have an X value.
1450         - Fix crash in Undo::Duplicate when empty lines are deleted.
1452 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
1454         * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and 
1455         code moved to properties PreferredHeight and PreferredWidth. It solve the
1456         all problems when preferred sizes must be recalculated. Fixes #80801.
1458 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
1460         * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
1461         font height when compatible_text_rendering is false. Partially fix #80801.
1463 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
1465         * Form.cs: Fixed typo in exception message. Fixes bug #80779.
1467 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
1469         * Form.cs: Improved exception messages in ShowDialog.
1471 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
1473         * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
1474         PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
1475         if not set. Fixes bug #80764. Avoid accessing current_settings field
1476         directly.
1478 2007-02-08  Everaldo Canuto  <everaldo@simios.org>
1480         * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
1481         false.
1483         * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
1484         public in 2.0 and for easy maintenance and dont break compatibility it is 
1485         internal in 1.1.
1486         
1487 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
1489         * ToolStripItem.cs: Implement using images from ImageList.
1491 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1493         * DateTimePicker.cs: Change default date-formatting culture from
1494           CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
1495           seems to be the way MS does it.
1497 2007-02-08  Andreia Gaita  <avidigal@novell.com>
1499         * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image 
1500         (the 6 was cut off on the right side)
1502 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
1504         * Form.cs: Tell MenuStrips to close when the form is clicked.
1505         * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs, 
1506         ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
1507         ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
1508         ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add 
1509         support for Overflow, where items that do not fit are automatically
1510         reparented to a drop down menu.
1511         * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
1512         Also: fixes bug #80747.
1514 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1516         * ComboBox.cs: Remove warning (unused code).
1517         * ScrollableControl.cs: Remove warning for 1.1 profile.
1519 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1521         * Form.cs: Remove a warning.
1523 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1525         * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
1526           'g' specifier, not documented anywhere, but seems to always show up
1527           as a single space (might have something to do with the DateTime 'g'
1528           specifier, which is the era format, but since DateTimePicker can't
1529           go earlier than 1753 it wouldn't matter) . Fixed quote handling,
1530           won't crash if the format has an unmatched quote. Now shows
1531           single-character formats correctly. Fixes #80744.
1533 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
1535         * StatusStrip.cs: Stretch property needs to call base.Stretch,
1536         not this.Stretch to fix stack overflow. [Fixes bug #80760]
1538 2007-02-07  Chris Toshok  <toshok@ximian.com>
1540         * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
1541         background color.  it overwrites the background image we've
1542         already painted.  Fixes #80599.
1544 2007-02-07  Chris Toshok  <toshok@ximian.com>
1546         * DataGrid.cs: return immediately from Edit() when there are no
1547         columns.  Fixes #80662.
1549 2007-02-07  Chris Toshok  <toshok@ximian.com>
1551         * MessageBox.cs: fix #80625.  don't always show the Help button in
1552         2.0.  use the displayHelpButton parameter to determine if we
1553         should show it. Also, make the internal show_help field private.
1555 2007-02-07  Chris Toshok  <toshok@ximian.com>
1557         * Control.cs (SetVisibleCore): check in the proposed patch for
1558         80604, and set is_visible before calling CreateControl.
1560 2007-02-07  Jonathan Pobst  <monkey@jpobst.com>
1562         * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to 
1563         MonoInternalNote.  This is added automagically by VS2005, so let's not crash
1564         on it.
1566 2007-02-06  Everaldo Canuto  <everaldo@simios.org>
1568         * MenuAPI.cs: hotkey_active internal field added, it is required because
1569         we need to know when hotkeys must be draw, before this change a keystate
1570         Navigating was used but we can have menu in navigating state without
1571         hotkeys. Fixes #80694.
1572         
1573         * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
1575 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1577         * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
1578           corresponding events and methods to be internal for 1.1 profile and
1579           public for 2.0 profile (required by SizeGrip).
1580         * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
1581           implicit control list). Don't set the size nor the location of the
1582           SizeGrip anymore as it's not needed.
1583         * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
1584           draw directly on the captured control (fixes #80656). Removed
1585           ShowGrip (it wasn't used anywhere), redraw (always true), added
1586           GetDefaultSize and GetDefaultRectangle to calculate defaults.
1587         * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
1588           be called from SizeGrip.
1590 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1592         * Timer.cs: Throw ArgumentException if Interval <= 0.
1594 2007-02-05  Jackson Harper  <jackson@ximian.com>
1596         * TreeView.cs: We need to check scrollbar visibility when window
1597         visibility is updated, because non visible trees don't ever add
1598         scrollbars.
1599         * Cursor.cs: We want the override cursor to be reset to NULL when
1600         we set current cursor to the default cursor.
1602 2007-02-05  Jackson Harper  <jackson@ximian.com>
1604         * TextControl.cs: Don't have crlfs when we are non multiline.
1605         - Consolidate the line position.
1607 2007-02-05  Jackson Harper  <jackson@ximian.com>
1609         * X11Keyboard.cs: BACK+CTRL gets a special char code.
1611 2007-02-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1613         * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
1614           handling LeaveNotify->NotifyUngrab in order to send
1615           WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
1616           after calling XUngrabPointer, so we call WindowUngrabbed directly
1617           from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
1618         * Control.cs: Handle WM_CAPTURECHANGED in order to raise
1619           MouseCaptureChanged correctly. Also create handles if changing
1620           Capture (matches MS behaviour).
1622 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1624         * SizeGrip.cs: Make the last change 2.0 only.
1626 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1628         * SizeGrip.cs: If resizing and the capture is lost, revert any size
1629           changes to initial size (fixes #80597).
1631 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1633         * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
1635 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1637         * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
1638           background) and only allow dragging if enabled. This way the
1639           sizegrip can be used to fill the open square that otherwise would
1640           have been shown in the bottom right corner of ScrollableControl
1641           when ScrollableControl is not suppose to support sizing.
1642         * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
1643           sizegrip is shown and enabled, and hook up with necessary events.
1645 2007-02-01  Chris Toshok  <toshok@ximian.com>
1647         * DataGridTextBoxColumn.cs: clean up the
1648         GetFormattedString/GetColumnValueAtRow combination of functions.
1649         Also fix UpdateUI, and the initial state of
1650         IsInEditOrNavigateMode.
1652         * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
1653         aren't supposed to scroll the textbox here, we're supposed to
1654         scroll the datagrid.
1656 2007-02-01  Chris Toshok  <toshok@ximian.com>
1658         * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
1659         setting the position.
1661 2007-02-01  Chris Toshok  <toshok@ximian.com>
1663         * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
1664         here, since the most recent focus fixes keep us from generating
1665         the Leave event when our textbox gets focus.
1666         (Edit): we should be passing null for the column style's
1667         instantText parameter.
1668         
1669 2007-02-01  Jonathan Pobst  <monkey@jpobst.com>
1671         * ToolStripDropDownItem.cs: Make sure DropDownOpening event is 
1672         raised.  Fixes menu text/icons not showing up in PDN.
1674 2007-02-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
1676         * Control.cs: Remove code in constructor that makes every
1677         control with WS_CHILD set have initial location -1, -1.
1679 2007-01-31  Jackson Harper  <jackson@ximian.com>
1681         * X11Dnd.cs: Take the keyboard on init to reduce coupling with
1682         XplatUIX11.
1683         * XplatUIX11.cs: Give teh keyboard to teh dnd.
1685 2007-01-31  Jackson Harper  <jackson@ximian.com>
1687         * X11Dnd.cs: Use IDataObject instead of the DataObject class.
1688         - Remove some debug code.
1690 2007-01-31  Jackson Harper  <jackson@ximian.com>
1692         * XplatUIX11.cs: If you set the override cursor during a grab, it
1693         should actually override the grab cursor.  This comes into play
1694         when you are setting custom cursors in a DND feedback method.
1696 2007-01-31  Jackson Harper  <jackson@ximian.com>
1698         * X11Dnd.cs: Add support for handling the QueryContinue and
1699         GiveFeedback events.
1700         - Cancel drag and drop actions when the escape key is clicked.
1701         * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
1702         can handle the ESCAPE key.
1703         - Allow dnd to swallow BUTTONUP messages if it needs to.  This is
1704         done when dnd events are continued after the button is released.
1705         - Add a new helper method so that dnd can translate key events.
1707 2007-01-31  Alexander Olk  <alex.olk@googlemail.com>
1709         * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
1710         make it more obvious what is happening.
1712 2007-01-30  Jackson Harper  <jackson@ximian.com>
1714         * XplatUIX11.cs: Don't break when handling button release in drag
1715         and drop operations. We need that BUTTONUP message to get through
1716         so capture is released.
1717         * X11Dnd.cs: We don't need to manually grab the pointer anymore,
1718         this is handled automatically when the mouse is down.
1720 2007-01-30  Jackson Harper  <jackson@ximian.com>
1722         * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
1723         is closed, so we need to make sure that we aren't changing the
1724         dialog result when the OK (Open or Save) button has been clicked
1725         and we are closing the window ourselves.  Note we don't need to
1726         worry about the cache being written in this case, because it was
1727         already done in the previous FilOk call.
1729 2007-01-30  Rolf Bjarne Kvinge  <RKvinge@novell.com>
1730         
1731         * DateTimePicker.cs: Remove a warning.
1732         * ComboBox.cs: Remove a couple of warnings.
1734 2007-01-29  Chris Toshok  <toshok@ximian.com>
1736         * XplatUIX11.cs: don't crash, and remove the icon if the user has
1737         set one, if SetIcon is passed a null icon.
1739 2007-01-29  Andreia Gaita  <avidigal@novell.com>
1741         * TextBox.cs: Redraw when the password characters changes
1742         * TextControl.cs: Check if textbox has a password char and draw 
1743         a line of password chars instead of the text in the line. LineTag gets 
1744         an extra Draw() method which allows document.Draw to override the text 
1745         that will be drawn. Removes 1024 char limitation on length of passworded 
1746         lines.
1748 2007-01-29  Jackson Harper  <jackson@ximian.com>
1750         * TextBoxBase.cs: Deleting sections of text is undoable.  Deleting
1751         single chars is not.
1753 2007-01-28  Jonathan Pobst  <monkey@jpobst.com>
1755         * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
1756         one pixel.  Fix a StackOverflowException caused by an overload wrongly
1757         calling itself.
1759 2007-01-26  Everaldo Canuto  <everaldo@simios.org>
1761         * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
1762         also remove ProcessArrowKey and put the code inside ProcessKeys.
1764 2007-01-26  Jonathan Pobst  <monkey@jpobst.com>
1766         * PaddingConverter.cs: Added.
1768 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
1769         
1770         * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
1771         ShowPanels is false (fixes #80600). Only draw up to 127 characters
1772         of text (fixes #80601). For panels clip the text to draw to the
1773         panel (fixes #80603).
1775 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
1777         * ComboBox.cs: Fixed implementation of ResetText.
1779 2007-01-25  Jackson Harper  <jackson@ximian.com>
1781         * TextControl.cs: For the last char of a line we need to use the
1782         line size, not that chars width, since it won't actually be
1783         computed since the right side of a char is based on the start of
1784         the left side of the next char, and the next char does not exist.
1786 2007-01-25  Chris Toshok  <toshok@ximian.com>
1788         * Splitter.cs: fix the new unit tests, and reindent some switch
1789         statements.
1791 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
1793         * ComboBox.cs: Implemented 2.0 methods and events.
1794         * TextBoxBase.cs: Added OnTextUpdate, so that
1795         ComboBox.ComboTextBox can inform ComboBox of it.
1797 2007-01-25  Jackson Harper  <jackson@ximian.com>
1799         * TextControl.cs: Respect ShowSelection when deciding whether or
1800         not to display the caret, this allows comboboxes to have carets
1801         when the combotextbox does not have focus.
1803 2007-01-25  Jackson Harper  <jackson@ximian.com>
1805         * TextControl.cs: Add a Suspend/Resume for updating, basically the
1806         same as the Suspend/Resume for recalc, except this will do actual
1807         Invalidates.
1808         - New Undo manager, works much like the MS version.
1809         - Implemented Redo
1810         * TextBoxBase.cs: The Cut operation is undoable.
1812 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
1813         
1814         * TextBoxBase.cs: Don't antialias text. Makes it look way better
1815         on Windows (no difference on Linux).    
1817 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
1819         * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
1820         we don't want to activate any windows. Fixes #79433.
1822 2007-01-25  Jonathan Pobst  <monkey@jpobst.com>
1824         - ButtonBase.cs: Fix capitalization of parameter: disposing.
1825         [Fixes bug #80609]
1827 2007-01-25  Alexander Olk  <alex.olk@googlemail.com>
1829         * FileDialog.cs:
1830         - Move to using System.ComponentModel.EventHandlerList
1831         - Replace Refresh with Invalidate
1832         - Clear the mime filecache on closing
1833         - Some other memory reducing work. After beeing closed FD now uses
1834           only about 300 KB for the fdo mime stuff plus the memory of the
1835           cached icons.
1836         * Mime.cs: Changed coding style and removed unnecessary commented
1837         code. Some more memory memory reducing work.
1839 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
1841         * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
1842         a few other missing 2.0 properties.
1843         * Theme.cs: Added DrawFlatStyleComboBox.
1844         * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
1846 2007-01-24  Chris Toshok  <toshok@ximian.com>
1848         * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
1849         wake_waiting flag, not just when there's data to be read.  if we
1850         don't, then future wakeup's won't reach us and we'll be doomed to
1851         wait for the entire 1 second timeout forever (unless there are X
1852         events to be had).
1854 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
1856         * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
1857         until you pass Items.Count, not Items.Count - 1 like 1.1.
1859 2007-01-24  Gert Driesen  <drieseng@users.sourceforge.net>
1861         * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
1863 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
1865         * ToolStripContainer.cs: The recent Dock fix exposed that I was
1866         adding the panels in the wrong order.
1868 2007-01-24  Jackson Harper  <jackson@ximian.com>
1870         * TextBoxBase.cs: When we move the caret we also need to move the
1871         selection, this fixes some random crashing after doing select
1872         text, unselect, delete a char, paste.
1874 2007-01-24  Rolf Bjarne Kvinge  <RKvinge@novell.com>
1876         * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
1878 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
1880         * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
1881         OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553. 
1882         * ToolBar.cs: Force redraw in BackgroundImageChanged.
1884 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
1886         * ToolBar.cs:
1887         - Implement support for vertical toolbars. Fixes #80539;
1888         - Call LayoutToolBar when resize, it fix some other problems in layout.
1889         - Rename requested_height to requested_size, as we can have width on it
1890         when toolbar is vertical.
1891         - Create a private property "Vertical" that uses Dock to verify when 
1892         toolbar is vertical or not.
1893         - Set ControlStyles when change Dock property.
1894         - Refactory in LayoutToolBar to have better variables names and to support
1895         vertical toolbars.
1896         - Fixes default value for ButtonSize when button count is equal zero, size
1897         must be (39, 36) test case writed.
1899 2007-01-23  Chris Toshok  <toshok@ximian.com>
1901         * Control.cs: fix the checks so that they work correctly for mdi
1902         parents/children.
1904 2007-01-23  Chris Toshok  <toshok@ximian.com>
1906         * Control.cs: ControlCollection seems to have super-secret
1907         abstraction breaking knowledge of Mdi containers.  allow MdiClient
1908         to add toplevel controls.
1910 2007-01-23  Chris Toshok  <toshok@ximian.com>
1912         * Control.cs: throw an ArgumentException if a toplevel control is
1913         added to our control collection from ControlCollection.Add, as
1914         well as from ControlCollection.IList.Add.  This fixes the
1915         ControlSetTopLevelTest.TestTopLevelAdd unit test.
1917         Also, in ControlCollection.IList.Add, don't through an
1918         ArgumentNullException, throw an ArgumentException, when value ==
1919         null.  This matches MS.
1921 2007-01-23  Chris Toshok  <toshok@ximian.com>
1923         * BindingSource.cs: initial, incomplete, implementation of
1924         BindingSource.
1926 2007-01-23  Jackson Harper  <jackson@ximian.com>
1928         * TextControl.cs:
1929         * TextBoxBase.cs: Checking in some pieces of the undo stuff so
1930         that I can fix a broken unit test (TextBoxTest::ClearUndo)
1931         
1932 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
1934         * ToolBar.cs: Add status fields to ToolBarButtonInfo.
1936 2007-01-23  Andreia Gaita  <avidigal@novell.com>
1938         * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
1939         * TreeNodeCollection.cs: New Add() methods, ContainsKey and
1940         IndexOfKey() for 2.0
1942 2007-01-23  Rolf Bjarne Kvinge  <RKvinge@novell.com>
1944         * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
1945         to prevent it from changing z-order.
1946         * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
1947         leave UI updates in MdiWindowManager.
1948         * InternalWindowManager.cs: Check for 0 sized nc areas and make them
1949         1 sized (NC handling goes weird on Linux otherwise).
1950         * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
1951         necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
1952         remove a few NCRequestRecalcs. Changed calculations in IconicBounds
1953         to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
1954         and SetWindowState(s) to allow for changing the size of an activated child
1955         before activating it (reduces a lot of flicker).
1957 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
1959         * Form.cs: Changing FormBorderStyle has different semantics based
1960         on whether the Form is visible or not.  If not visible, don't change
1961         the Size.  But InvalidateNC needs to be called to force the window
1962         to pick up the changes and redraw itself.  [Fixes bug #80574]
1964 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
1966         [Moma work]
1967         * ContainerControl.cs: ProcessCmdKey.
1968         * ErrorProvider.cs: new constructor.
1969         * Form.cs: fix AutoValidateEvent compiler warning.
1970         * Label.cs: fix OnAutoSizeChanged compiler warning.
1971         * MenuStrip.cs: fix CanOverflow compiler warning.
1972         * TabControl.cs: SelectTab, OnSelected methods, Selected event.
1973         * TextBox.cs: Dispose.
1974         * ToolStrip.cs: CanOverflow, re-enable double buffering.
1975         * ToolStripControlHost.cs: fix CausesValidation compiler warning.
1976         * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
1977         * ToolStripItem.cs: Overflow, RightToLeft properties.
1979 2007-01-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
1981         * Form.cs: Move the layout of the main form to MdiWindowManager.
1982         * MdiWindowManager.cs: If WindowState changes from or to Maximized,
1983         do a layout of the main window to update MdiClient's client area to
1984         the right area. Fixes #80533. Remove the calculation of nc size, 
1985         it was just wrong and the correct one is the same as for 
1986         InternalWindowManager. 
1988 2007-01-20  Jonathan Pobst  <monkey@jpobst.com>
1990         * Control.cs: Setting Anchor or Dock needs to reset the other
1991         to its default.  [Fixes bug #80556]
1993 2007-01-20  Chris Toshok  <toshok@ximian.com>
1995         * CheckedListBox.cs: class status changes.
1997         * ScrollableControl.cs: same.
1999         * RichTextBox.cs: same.
2001         * ContainerControl.cs: same.
2003         * ListView.cs: same.
2005         * NotifyIcon.cs: same.
2007         * MenuStrip.cs: same.
2009         * RadioButton.cs: same.
2011         * CheckBox.cs: same.
2013         * PrintPreviewDialog.cs: same.
2015         * Form.cs: same.
2017 2007-01-19  Jonathan Pobst  <monkey@jpobst.com>
2019         * TreeNode.cs: Apply Alan's patch for Name property.
2021 2007-01-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2022         
2023         * Form.cs: Implemented SizeGripStyle.
2024         * SizeGrip.cs: Check for minimum and maximum size for the
2025         control being resized and only resize if size has actually
2026         changed.
2028 2007-01-19  Chris Toshok  <toshok@ximian.com>
2030         * DataGridColumnStyle.cs: stop setting _readonly in the
2031         PropertyDescriptor setter.  fixes a unit test failure.
2033         also, rename ParentReadOnly to TableStyleReadOnly, and have it
2034         just consult our table style (if we have one).  We don't need to
2035         consult the datagrid readonly attribute because that's passed in
2036         as the _ro arg to Edit.  this simplifies things a little.
2037         
2038         * DataGrid.cs: use CurrentColumn instead of
2039         current_cell.ColumnNumber just to simplify some of the code.
2041         switch the order of some things in the CurrentCell setter to keep
2042         the previous cell from getting a textbox again -
2043         EnsureCellVisibility causes scrolling to happen, which calls Edit.
2044         So we need to set the new cell before calling it.
2045         
2046         call Edit in OnEnter, as does Microsoft.
2047         
2048         also, make sure the current table style isn't the one we create
2049         initially when checking to see if it's different than the one
2050         we're setting it to in BindColumns (this fixes #80421).
2052         * GridTableStylesCollection.cs: table styles can have "" for a
2053         mapping name.  part of the fix for #80421.
2055         * DataGridTextBoxColumn.cs: simplify the readonly calculation in
2056         Edit significantly.
2058 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
2060         * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
2061         and less GDI object leaky-er.
2063 2007-01-18  Andreia Gaita  <avidigal@novell.com>
2065         * LinkLabel.cs: Add opaque control style
2067 2007-01-18  Jackson Harper  <jackson@ximian.com>
2069         * TextControl.cs: Calculate width properly.
2070         - Don't store the tag's X offset, this can be figured out very
2071         easily.
2072         - When getting the caret tag make sure to get the last empty tag.
2074 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
2076         * Form.cs: Recalculate our size after setting a new FormBorderStyle.
2077         [Fixes bug #79959]
2079         * Control.cs: Color.Empty shouldn't count for previous transparent
2080         redraw changes.
2082 2007-01-18  Jackson Harper  <jackson@ximian.com>
2084         * TextBox.cs:
2085         * RichTextBox.cs:
2086         * TextControl.cs: Starting to merge in some pieces of my older
2087         undo work.  Basically just some slight cleanup of the undo API.
2089 2007-01-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2091         * TrackBar.cs: Fix signature of RightToLeftLayout.
2092         * StatusBar.cs: Implemented missing 2.0 methods and attributes.
2093         * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
2094         * Application.cs: Implemented UseWaitCursor.
2096 2007-01-18  Jackson Harper  <jackson@ximian.com>
2098         * TextControl.cs: We can't skip tags if any part of the tag is
2099         visible.
2101 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
2103         * ContainerControl.cs: Override OnLayout.
2105 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
2107         * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
2109         * ContextMenuStrip.cs: Make sure context menu is shown on top of 
2110         everything else.
2112 2007-01-18  Chris Toshok  <toshok@ximian.com>
2114         * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
2115         (leftover from the container_selected days, I'd wager).  fixes bug
2116         #80546.
2118 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
2120         * Control.cs: Apply patch from George to fix the new testcase on
2121         bug #80451.  We can't just check for Color.Transparent, we need 
2122         to check if the back color's alpha channel is < 255.
2124 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
2126         * Form.cs: Move setting show_icon = true to before the constructor
2127         so that the base constructor has that information when it calculates
2128         the form's size.  Was causing forms to be (6, 6) bigger than they
2129         were supposed to be.  Thanks for catching this Rolf!
2131 2007-01-18  Jackson Harper  <jackson@ximian.com>
2133         * TextControl.cs: When replacing a selection we need to invalidate
2134         from the initial selection start, because selection start is moved
2135         to the end of the replacement.
2137 2007-01-18  Andreia Gaita  <avidigal@novell.com>
2139         * LinkLabel.cs: Missing ControlStyles. Fixes #80482
2141 2007-01-18  Chris Toshok  <toshok@ximian.com>
2143         * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
2144         I just added.
2146 2007-01-17  Everaldo Canuto  <everaldo@simios.org>
2148         * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every 
2149         layout methods and properties from ToolBarButton must be available
2150         into ToolBarButtonInfo.
2152 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
2154         * Control.cs: If the control has a transparent background, we
2155         need to refresh it when it moves and when it's parent's background
2156         image changes.  [Fixes bug #80451]
2158 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
2160         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code!  Doh!
2162 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
2164         * XplatUIWin32.cs: Implement proper double buffering for Windows.
2165         [Fixes bug #80447, and probably speeds up things as well]
2167 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2169         * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
2170         * XplatUIWin32.cs: We need to recalculate NC size after changing 
2171         window style to toolwindow (otherwise the client rectangle will be
2172         3 pixels to small for some reason).
2173         * MdiWindowManager.cs: Revert NC size calculations to match how
2174         they are calculated only based on window styles (to match
2175         Win32AdjustWindowRectEx, since otherwise when setting size or 
2176         location, Control will call Win32AdjustWindowRectEx to update client 
2177         size, which would provoke a paint, then we'd get a NCCALCSIZE and 
2178         calculate a different value of client size causing another paint 
2179         (and flickering))
2180         * InternalWindowManager.cs: When moving or resizing a window only
2181         update size or location if they actually changed.
2182         * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
2183         (seems to match Windows behaviour better). Cleaned up 
2184         ManagedWindowDecorations to draw what's needed and nothing else
2185         (was drawing borders and lines where they shouldn't be)
2186         * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
2187         (style = 0xFFFF) and takes into account caption height when 
2188         calculating window rectangle.   
2190 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
2192         * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button 
2193         can be added to toolbar multiple times, we need to maintain a list of 
2194         button information for each positions.
2196 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
2198         * ToolBar.cs: Some small stetic changes.
2200 2007-01-16  Jackson Harper  <jackson@ximian.com>
2202         * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
2203         that allow us to have nested recalc = false blocks.
2204         - Add paste support for images in the RichTextBox
2205         * RichTextBox.cs: flush the text after the color is changed, so
2206         the change takes effect.
2207         - Use SuspendRecalc
2208         - Some extra debugging info
2209         * TextControl.cs: Tags no longer track their length, it is just
2210         computed from the next tags length, this makes things a little
2211         simpler and reduces places that we have to track length changes.
2212         - Refactored the linetag class a little so we could make it
2213         a base class for different kinds of tags
2214         - Created a image tag, a tag that can have a single image inserted
2215         into it
2216         - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
2217         that we can call suspend multiple times.
2218         - Add some debugging methods
2220 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2222         * MdiClient.cs: Add ActivatePreviousChild for 
2223         mdi child window navigation.
2224         * Form.cs: Use MdiClient.ActivateNextChild/
2225         ActivatePreviousChild instead of Form.SelectNextControl
2226         to select the next/previous child since 
2227         SelectNextControl doesn't do it in the same order
2228         as mdi children should do it.
2230 2007-01-16  Chris Toshok  <toshok@ximian.com>
2232         * Control.cs: remove container_selected field.
2234 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2236         * MdiClient.cs: Update main form's ActiveChild when
2237         updating keyboard focus for the mdi child.
2239 2007-01-16  Jonathan Pobst  <jpobst@novell.com>
2241         * Control.cs: PreferredSize fix.
2243         * Form.cs: Add several 2.0 events, properties, and methods.
2245 2007-01-16  Gert Driesen  <drieseng@users.sourceforge.net>
2247         * Form.cs: Provide meaningful message when MdiParent is assigned a
2248         Form that is not an MdiContainer.
2250 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2252         * MdiClient.cs: Update main form's ActiveChild when
2253         activating a mdi child.
2255 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2257         * MdiWindowManager.cs: Fix NRE when merging menus and main form
2258         doesn't have a menu.
2260         * Form.cs: Request NCRecalc after creating a mdi child window.
2261         Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab, 
2262         Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
2263         
2264         * MdiClient.cs: Add new method SendFocusToActiveChild that either
2265         sends keyboard focus to the active child, or to the MdiClient
2266         if there are no child forms.
2267         
2268 2007-01-15  Chris Toshok  <toshok@ximian.com>
2270         * ListView.cs: drop the *Internal overrides, just do our work in
2271         ItemControl's WndProc instead.
2273         * UpDownBase.cs: a few large changes.  Fix up the Selectable state
2274         of the various controls, and forward the events properly (in the
2275         same manner as MS) from the textbox to the UpDown.  Also the
2276         ActiveControl of the UpDownBase gets set properly now.  Finally,
2277         we don't call UpdateEditText from the ctor.  Fixes bug #79957.
2279         * NumericUpDown.cs: set Text in the ctor.
2281         * DomainUpDown.cs: call UpdateEditText in the ctor.
2282         
2283         * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
2284         so even a Selectable = false textbox can be focused if you click
2285         in it.  Go figure.
2287         * Control.cs: remove On{Got,Lost}FocusInternal.  Subclasses can
2288         just add their handling in their respective WndProc's.  Also add
2289         an explicit FocusInternal method that doesn't consult CanFocus
2290         before calling Select(this).
2292         * TextBoxBase.cs: deal with removal of the FocusInternal calls -
2293         do our work in WndProc instead.
2295         * TabControl.cs: same.
2297         * ComboBox.cs: same.
2299 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
2301         * Menu.cs: implement MergeItems and Replace for MenuMerge method.
2302         Fixes #80006.
2304 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
2306         * ListViewItem.cs:
2307         * ThemeWin32Classic.cs: Don't draw the item text outside
2308         item bounds in Details view, as well as use trimming.
2309         Fixes bug #80376.
2311 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
2313         * Form.cs: Implement Form.ShowIcon.
2314         
2315         * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
2316         null, which when combined with the DlgModalFrame window style removes
2317         the icon from the title bar.
2319 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
2321         * Control.cs: Call OnMouseClick after OnClick. (2.0)
2323 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
2325         * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
2326         menu when mdi child windows theres a menu, uses insert to get icon
2327         at first position. Partially fix #80006.
2329 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
2331         * Clipboard.cs: Implement 2.0 methods.
2333 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
2335         * Menu.cs: Implement Insert method of MenuItemCollection class
2336         to fix MenuMerge.
2338 2007-01-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2340         * ListView.cs: Implement 2.0 FindItemWithText method.
2342 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
2344         * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
2345         to calculate menu bar size. Fixes #80290.
2347 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
2349         * ThemeWin32Classic.cs: Fix position of menuitem check mark.
2351 2007-01-11  Chris Toshok  <toshok@ximian.com>
2353         * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
2354         initial form.
2356 2007-01-11  Chris Toshok  <toshok@ximian.com>
2358         * LinkLabel.cs: make sure to call base.Select in our Select method
2359         if it turns out we're going to be selected (i.e. if we have a link
2360         that is going to receive focus).  That way our container's
2361         ActiveControl is updated properly.
2363 2007-01-11  Chris Toshok  <toshok@ximian.com>
2365         * LinkLabel.cs: turns out that LinkLabels are only Selectable if
2366         they have 1 or more links.  this fixes the crash gert reported.
2368 2007-01-11  Andreia Gaita  <avidigal@novell.com>
2370         * ContainerControl.cs: Remove ContainerSelected flag, not needed
2371         anymore.
2373         * Control.cs (Controls.Add): Check if control to be added to the collection
2374         is a top level control, and throw an ArgumentException if it is.
2375         Remove ContainerSelectedFlag, not needed anymore.
2377         * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
2378         top most control doesn't activate the form. This fixes a problem in the
2379         MessageBox, where the default button wouldn't get focus because the form
2380         was activated before being Loaded - when the Owner is set, SetTopMost is
2381         called, and it would activate it.
2383 2007-01-11  Jonathan Pobst  <jpobst@novell.com>
2385         * Button.cs: When clicked and setting the parent form's DialogResult,
2386         use FindForm instead of Parent, since parent could be a container
2387         control and not the Form.  Fixes bug #80495.
2389 2007-01-10  Chris Toshok  <toshok@ximian.com>
2391         * Form.cs: move the call to SendControlFocus into the same
2392         is_loaded check.
2394 2007-01-10  Chris Toshok  <toshok@ximian.com>
2396         * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
2397         It breaks in the face of the new ActiveControl stuff, and should
2398         be unnecessary.
2400         * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
2401         activecontrol's focus if it's not already set, after we set
2402         ActiveControl, but before we call OnActivated.  Re-fixes #79667
2403         after the previous focus/active control fixes regressed it.
2405         * Control.cs: reindent some code.
2406         
2407 2007-01-10  Chris Toshok  <toshok@ximian.com>
2409         * Splitter.cs: clearing some outstanding changes from my tree.
2410         Replace all accesses (not writes) to the internal dock_style field
2411         with the Dock property.
2413 2007-01-10  Chris Toshok  <toshok@ximian.com>
2415         * Control.cs: make FireEnter, FireLeave, FireValidating, and
2416         FireValidated virtual.
2418         * Form.cs: override and don't chain up calls to FireEnter and
2419         FireLeave.
2421 2007-01-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2423         * ListView.cs: Add more text padding space when using
2424         auto resize for columns (the previous value didn't work fine).
2426         * ThemeWin32Classic.cs: Update text position inside columns,
2427         to match the appeareance of .Net.
2429         * ColumnHeader.cs: When using auto resize, only the Width should
2430         depend on the sub items, not the Height. Also, set width after
2431         auto resizing (the value of Width should never remain as -1 or -2).
2433 2007-01-10  Chris Toshok  <toshok@ximian.com>
2435         * Application.cs: fix compilation errors when debug is enabled.
2437 2007-01-10  Chris Toshok  <toshok@ximian.com>
2439         * ContainerControl.cs (set_ActiveControl): rework this a bit (and
2440         add some nice ascii art pictures and explanation of the process).
2441         (GetMostDeeplyNestedActiveControl): new utility function we need
2442         because our ActiveControl can refer to a child container with its
2443         own ActiveControl.
2445         * Form.cs (OnActivated): remove the call to SelectActiveControl
2446         from here, since you can override this method and not chain up,
2447         and winforms still sets the active control.
2448         (OnCreateControl): also remove the unnecessary SelectActiveControl
2449         call from here.
2450         (WndProc): it's actually called from the WM_ACTIVATE block, just
2451         before calling OnActivated.
2453         * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
2454         inside the else.  the ActiveControl setter will end up setting
2455         focus on @control.  This keeps us from setting it again (and
2456         generating an extra LostFocus/GotFocus pair).
2457         (Select (bool, bool)): reindent.
2459 2007-01-10  Jonathan Pobst  <jpobst@novell.com>
2461         * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
2462         StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
2463         ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
2464         ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
2465         ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
2466         ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
2467         ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
2468         ToolStripTextBox.cs: Another wave of corcompare work.
2470 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2472         * ColumnHeader.cs: Implement 2.0 AutoResize method using
2473         the Width property.
2475         * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
2476         methods by callling Column.AutoResize method on columns.
2478 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
2480         * Control.cs: Provide proper implementations of PreferredSize
2481         and GetPreferredSize (2.0).
2483 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
2485         * Form.cs: Remove one character (!) to make my previous OnClosing
2486         stuff work for modal windows like MessageBox.
2488 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2490         * ListView.cs:
2491         * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
2492         ListView.Columns to get the last displayed column. Fixes #80452.
2494 2007-01-09  Everaldo Canuto  <everaldo@simios.org>
2496         * Label.cs, LinkLabel.cs: Source code identation fixes.
2498 2007-01-08  Everaldo Canuto  <everaldo@simios.org>
2500         * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
2501         we dont need to invalidate only borders because when we invalidate four
2502         border lines the invalidate's generates a complete redraw of button, 
2503         because it now invalidate a complete rect some other redraws operations
2504         are fixed. Fixes #80196.
2505         
2506         * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
2507         Remove ToolBarInvalidateEntireButton as it is not used.
2509 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
2510         
2511         * Form.cs: Make sure that both OnClosing and OnFormClosing are
2512         called for 2.0 profile.
2513         * CloseReason.cs: Make class internal for 1.1.
2515 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
2517         * ToolStripManager.cs: Implement FindToolStrip functionality.
2518         * ToolStrip.cs: Register and unregister with ToolStripManager.
2520 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
2522         * Control.cs: This was messy.  2.0 moves much of ControlCollection
2523         to ArrangedElementCollection.  Implemented this with as few #if's as 
2524         possible (which is still too many).
2526 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
2528         * Control.cs: Implement SizeFromClientSize() [2.0].
2530 2007-01-07  Everaldo Canuto  <everaldo@simios.org>
2532         * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
2533         use Theme.BorderSize to calculate area instead of static value 1, 
2534         by the way use new BorderStaticSize instead     Border3DSize when 
2535         border_static is true. Fixes #79537.
2536         
2537         * XplatUIOSX.cs: Fix call to GetClientRectangle. 
2538         
2539         * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
2540         it is not needed.
2542 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
2544         * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
2546 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
2548         * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
2549         WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
2550         
2551         * Hwnd.cs: 
2552         - border_static field added, it will used to define when a control 
2553         theres 3D border but it must be static (thin).
2554         - In GetWindowRectangle use Theme.BorderSize to calculate area 
2555         instead of static value 1, by the way use new BorderStaticSize instead
2556         Border3DSize when border_static is true.
2558         * XplatUIX11.cs, XplatUIOSX.cs: 
2559         - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
2560         
2561         * Theme.cs: BorderStaticSize field added.
2563 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
2565         * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
2567 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
2569         * Control.cs: Under InternalBorderStyle call RecreateHangle to 
2570         mimic same behavior than win32 that set border only in CreateParams,
2571         it fix problems under CreateParams overrides. Fix #79442 and partial
2572         fix #79537.
2573         
2574         * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
2575         of thi control you must call recreate handle. 
2576         
2577         * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
2578         need to do anything as RecreateHangle will take care about borders.
2580 2007-01-05  Mike Kestner  <mkestner@novell.com>
2582         * ListView.cs: hack to eliminate Lost/Got focus notifications on
2583         cycles between the ItemControl and parent.  Fixes #80388.
2585 2007-01-05  Gert Driesen  <drieseng@users.sourceforge.net>
2587         * Control.cs: Lazy init layout engine. Do not directly use 
2588         layout_engine since LayoutEngine may be overridden (on 2.0 profile).
2590 2007-01-05  Chris Toshok  <toshok@ximian.com>
2592         * DataGrid.cs: don't forceably rebind columns in SetDataSource
2593         unless our list manager has changed (i.e. unless we have reason to
2594         believe our columns have changed).  Fixes #80422.
2595         
2596         also, disable the call do BindColumns in
2597         OnListManagerMetaDataChanged.  this breaks this test in 2.0 (in
2598         1.1 the event isn't raised in response to a column addition on a
2599         table.)
2601 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
2603         * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
2604         that inheritors can not call it if they choose.  Fixes bug #80456.
2606 2007-01-05  Andreia Gaita  <avidigal@novell.com>
2608         * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it 
2609         doesn't blow up with a null exception on marshalling.
2610         
2611 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
2613         * Control.cs: Implement several 2.0 protected properties and methods.
2614         Ensure that all necessary events are being called when properties
2615         are set.
2617 2007-01-05  Mike Kestner  <mkestner@novell.com>
2619         * ListView.cs: implement PgUp/PgDn for Details view.  Also
2620         fixes First/LastVisibleIndex to use the item_control.ClientRect 
2621         instead of the parent control.  Fixes #80378.
2623 2006-01-05  Atsushi Enomoto  <atsushi@ximian.com>
2625         * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
2626           determine whether to use yard-pound or not (bug #78399).
2628 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
2630         * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
2631         problems. So it is time to bring back the old popupbutton colors.
2633 2006-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2635         * ColumnHeader.cs:
2636         * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
2637         property by using the internal information of the
2638         columns order in ListView.
2640 2007-01-04  Jonathan Pobst  <monkey@jpobst.com>
2642         * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
2643         Add 2.0 Tag properties.
2645         * LinkArea.cs: Add 2.0 ToString method.
2647 2007-01-03  Chris Toshok  <toshok@ximian.com>
2649         * DataGrid.cs: the Alt+0 handling was wrong, it should have been
2650         Ctrl+0.  Fixes bug #80367.  Also, don't eat the Delete keypress
2651         when we're editing, which fixes #80047.
2653 2007-01-03  Chris Toshok  <toshok@ximian.com>
2655         * Form.cs: apply patch contributed by Dominik Seichter.  fixes
2656         #80404.
2658 2007-01-03  Jonathan Pobst  <monkey@jpobst.com>
2660         * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
2661         property and implementation.
2663         * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
2664         for MdiWindowListItem property.
2666         * ToolStripDropDown.cs: Don't consider hidden menu items while
2667         laying out the menu.
2669 2007-01-03  Andreia Gaita  <avidigal@novell.com>
2671         * SendKeys.cs: window handle is not needed in win32, so just
2672         get the active window for X after parsing keys and don't use
2673         it when building the message; it is passed by parameter to the 
2674         Xplat method and used there to build the message instead. Also,
2675         wait for events to be processed on SendWait, as opposed to Send,
2676         which doesn't wait :) Playing with threads and Send() completely 
2677         hangs on ms.net, only SendWait() works.
2678         
2679         XplatUIX11.cs
2680         X11Display.cs: Check for valid window handle.
2682 2007-01-03  Jackson Harper  <jackson@ximian.com>
2684         * TextControl.cs: Need to prevent wrap calculations when replacing
2685         text (this was there before i removed it accidently).
2686         - Don't update the cursor during the positioning, just set it to
2687         selection_start at the end of the operaion.
2689 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2691         * Control.cs:
2692         * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
2693         
2694 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2696         * MonthCalendar.cs: Added Click and DoubleClick events again,
2697         but this time they only hide Control's Click and DoubleClick.
2698         
2699 2007-01-03  Gert Driesen  <drieseng@users.sourceforge.net>
2701         * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
2702         System.Drawing assembly. Spaces to tabs. Removed extra tabs.
2704 2007-01-02  Jackson Harper  <jackson@ximian.com>
2706         * TextBoxBase.cs: We move the caret with the split now, so we
2707         don't need to explicitly move the caret after splitting.  This
2708         fixes the caret bumping down an extra line on Enter.
2710 2007-01-02  Miguel de Icaza  <miguel@novell.com>
2712         * ContainerControl.cs: Add AutoValidateChanged event (for PDN
2713         2.72). 
2715         * ScrollableControl.cs: Add Scroll event.
2717 2007-01-02  Mike Kestner  <mkestner@novell.com>
2719         * ListView.cs: one more try with help from georgegiolfan@yahoo.com 
2720         to fix all hdr height padding codepaths.  Fixes #80207.
2722 2007-01-02  Chris Toshok  <toshok@ximian.com>
2724         * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
2725         setting it to the Control defaults anyway, and it being after the
2726         Dock set was screwing up layout.
2727         (set_Dock): don't short circuit out of setting base.Dock.  Also,
2728         no need to call UpdateStatusBar here, as it'll be re-layed out if
2729         it needs to be.
2731 2007-01-02  Mike Kestner  <mkestner@novell.com>
2733         * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
2734         to header height for width == -1. Fixes the rest of #80207.
2736 2007-01-02  Mike Kestner  <mkestner@novell.com>
2738         * ListView.cs: rework the mouse event forwarding everaldo added
2739         to translate the coordinates to the parent control not
2740         raise the parent events until after we've done our work. Hover
2741         needs more work, in the case where HoverSelection is on, because
2742         the item control receives more than one MouseHover per Enter
2743         event, so we need to ensure only the "first" hover gets forwarded.
2744         Opening a minor bug for that.
2746 2007-01-02  Gert Driesen  <drieseng@users.sourceforge.net>
2748         * CheckedListBox.cs: Fixed SelectionMode to match MS.
2749         * ListControl.cs: Implemented AllowSelection property. Removed extra
2750         tabs.
2751         * ListBox.cs: Implemented AllowSelection property.
2753 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
2755         * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
2756         SelectedItem, it prevent for errors when you must disable item
2757         before perform click. Fixes #80409.
2759 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
2761         * MenuAPI.cs: Prevent second level and beyond submenus to close
2762         until first level when move out side of popup.
2763         
2764 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
2766         * MenuAPI.cs:
2767         - Down submenu positin in three pixels.
2768         - Closes sub menu when mouse leaves from menu. Fixes #80402.
2770 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
2772         * ThemeWin32Classic.cs:
2773         - Fix popup menu size adding one pixel on the top.
2774         - Down menu item border from two to one to mimic Win32.
2775         - Some source identation fixes. 
2777 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
2779         * ThemeWin32Classic.cs: Use float numbers to calculate size and
2780         position of menu arrows, it fix wrong arrow size.
2782 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
2784         * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
2785         instead of line, it simplify draw operation and fix it using 3D
2786         borders to mimic Win32.
2788 2007-01-01  Jonathan Pobst  <monkey@jpobst.com>
2790         * StatusStrip.cs: Add implementation of the sizing grip.
2792         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
2793         StatusStrip rendering.
2795 2006-12-31  Chris Toshok  <toshok@ximian.com>
2797         * ToolBar.cs: don't assign to dock_style in the .ctor.  it doesn't
2798         override the layout style (anchor/dock) of the control.  assign to
2799         Dock instead.  Fixes bug #80416.
2801         * ToolStrip.cs: same.
2803 2006-12-31  Andreia Gaita  <avidigal@novell.com>
2805         * ContainerControl.cs: Use ContainerSelected flag to check if 
2806         a Container is directly selected, or if Select is called on a 
2807         non-container. If a container is directly selected, focus events 
2808         should not be raised.
2809         Apply #80411 patch to throw exception on set_ActiveControl if 
2810         control is the same as the current one.
2811         
2812         * Control.cs: Use ContainerSelected flag (see above).
2813         Add invalidation check to raise event but not invalidate if 
2814         dimensions are 0.       
2815         Apply #80411 patch.
2816         
2818 2006-12-31  Everaldo Canuto  <everaldo@simios.org>
2820         * MenuAPI.cs: After click, dont close popup menu when menu is
2821         ContextMenu. Fixes #80399.
2823 2006-12-30  Chris Toshok  <toshok@ximian.com>
2825         * ContainerControl.cs: make sure we throw the exception if the
2826         container control doesn't contain the control we're setting
2827         ActiveControl to.
2829 2006-12-30  Chris Toshok  <toshok@ximian.com>
2831         * Control.cs (SetTopLevel): fix the exception raised by
2832         SetTopLevel for child controls.
2833         (set_Anchor): call UpdateDistances when setting the anchor type.
2834         This fixes bug #80336.
2836 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
2838         * Theme.cs: For now, revert back to 8pt font.
2840 2006-12-29  Everaldo Canuto  <everaldo@simios.org>
2842         * MenuAPI.cs: Set popup as active when open a ContextMenu. 
2843         Fixes #80395.
2845 2006-12-29  Chris Toshok  <toshok@ximian.com>
2847         * Control.cs: reorder the code in OnResize to give the same event
2848         ordering as MS.
2850 2006-12-29  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2852         * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
2853         TileHorizontally and TileVertically.
2854         
2855 2006-12-29  Alexander Olk  <alex.olk@googlemail.com>
2857         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
2858         FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
2859         SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
2860         Corrected copyright and email adress.
2862 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
2864         * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
2865         of Exception in FullPath property if no TreeView is associated with
2866         the TreeNode.
2868 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
2870         * Theme.cs: Marked default_font as private, and initialize it in ctor
2871         with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
2872         on 2.0 profile.
2873         * ThemeGtk.cs: Removed default_font intialization.
2874         * ThemeWin32Classic.cs: Removed default_font initialization.
2876 2006-12-28  Chris Toshok  <toshok@ximian.com>
2878         * Control.cs: fix a couple of place where we were creating handles
2879         more aggressively than we should be.  Fixes ControlRefresh unit
2880         tests.
2882 2006-12-28  Chris Toshok  <toshok@ximian.com>
2884         * Control.cs: contrary to what the comment said, Control.Dock does
2885         not supercede Control.Anchor - the last one you assign to decides
2886         the layout behavior.  so we need to keep track of which was the
2887         last set.  Also, fix some of the affected property arguments in
2888         PerformLayout calls, and remove an redundant parent.PerformLayout
2889         call in OnResized.
2891         Add a VisibleInternal property, which returns is_visible.  We
2892         can/should get rid of all the usage of this field elsewhere.
2894 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2895         
2896         * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
2897         control style, not DoubleBuffer. Added UseDoubleBuffering property
2898         that indicates whether doublebuffering is enabled and supported.
2899         (comment from and code based on Gert Driesen's patch in #80324).
2900         Fixes #80324.
2902 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2903         
2904         * Control.cs: Fixed a NRE.
2906 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2908         * TrackBar.cs: Fix SmallChange and LargeChange exceptions
2909         for 2.0.
2911 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2913         * Control.cs: Rewrote double buffering, now a seperate
2914         class handles all the buffering, no Graphics is disposed of
2915         until the painting is finished (earlier implementation 
2916         would crash if the control was resized in the OnPaint, 
2917         since it would cause the double buffer to be recreated
2918         and the old one disposed), a separate Graphics is 
2919         created for every paint (MS behaviour and anyways the state
2920         of the Graphics would have to be saved and restored otherwise)
2921         
2922         * XplatUIDriver.cs: 
2923         * XplatUIX11.cs:
2924         * XplatUI.cs: Added and implemented GetOffscreenGraphics 
2925         so that we can get the graphics for the back buffer without
2926         having to create a new one and remove the offscreen_dc parameter
2927         from CreateOffscreenDrawable and DestroyOffscreenDrawable.
2928         
2929 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2931         * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
2932         Also make virtual all the key-related methods.
2934         * ListViewItem.cs: Make virtual the key related methods for
2935         ListViewSubItemCollection.
2937 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2939         * ListView.cs:
2940         * ListViewItem.cs:
2941         * ThemeWin32Classic.cs:
2942         * Theme.cs: Initial support for Tile view in ListView,
2943         as well as the implementation of the required bits for it (Item
2944         and Subitem).
2946 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
2948         * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
2949         of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
2950         Provide useful exception messages.
2952 2006-12-27  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2954         * TrackBar.cs: Remove a warning.
2955         * MonthCalendar.cs: Moved back to using Capture to hide the calendar
2956         when used by DateTimePicker, fixes #80287. This also requires that 
2957         MonthCalendar implements it's own drawing for the yearly updown control,
2958         otherwise the Capture tracking would be too complicated. Removed the Click 
2959         and DoubleClick events (according to comments they were hiding the base class
2960         event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
2961         raise these events, not that they cannot be raised. It is possible to raise 
2962         them by calling OnClick and OnDoubleClick). Added two internal fields in 
2963         HitTestInfo in order to track give more tracking info needed by MonthCalendar.
2964         * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
2965         * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
2966         event, no longer needed.
2967         
2968 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
2970         * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
2971         true if new value differs from current value.
2973 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
2975         * Control.cs: ControlCollection.Count must be public. Fixed build of
2976         unit tests.
2978 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
2980         * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
2982 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
2984         * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
2986 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
2988         * Control.cs: Invalidates control including when Width and Height is 
2989         equal zero or is not visible, only Paint event must be care about 
2990         this. Fixes #79913.
2992 2006-12-26  Chris Toshok  <toshok@ximian.com>
2994         * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
2995         more corcompare work.
2997         * DataGridView.cs: fix compiler warning.
2999         * ColumnHeader.cs: some corcompare work, and also take the
3000         opportunity to make the internal fields private.
3002         * ListView.cs: fix the fallout from the above field change.
3004 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
3006         * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
3007         ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
3008         ToolStripTextBox.cs: Fixes to events and corcompare.
3010 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
3012         * ListView.cs: Call owner.OnMousexx event to propagate events from
3013         item to ListView. Fixes #80367.
3015 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
3017         * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
3018         if value is less than one. ItemHeight should not be set to a value
3019         less than 1, and throw ArgumentOutOfRangeException on 2.0 profile. 
3020         Removed extra tabs.
3022 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
3024         * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
3025         * ToolStripStatusLabel.cs: Add Spring for Moma.
3027 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
3029         * DataGridView.cs: Fixed several NullReferenceException in On* methods.
3030         Fixed code formatting. Removed debug code.
3031         * DataGridViewTextBoxEditingControl.cs: Removed debug code.
3033 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
3035         * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
3036         RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
3037         ArgumentOutOfRangeException if ColumnCount is negative. In 
3038         ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
3039         less than 4 or higher than 32768.
3040         * DataGridViewCellStyle.cs: Fixed default value for NullValue.
3041         Fixed FormatProvider to return CurrentCulture unless explicitly set.
3042         Fixed IsFormatProviderDefault to return true if FormatProvider has
3043         not been explicitly set.
3045 2006-12-25  Chris Toshok  <toshok@ximian.com>
3047         * Application.cs: add a couple of 2.0 events.
3049 2006-12-25  Chris Toshok  <toshok@ximian.com>
3051         * Control.cs: fix compiler warning.
3053         * AxHost.cs: corcompare fixes.
3055         * ApplicationContext.cs: corcompare fixes.
3057 2006-12-25  Chris Toshok  <toshok@ximian.com>
3059         * Control.cs: only update dist_right/dist_bottom if the
3060         width/height is > 0.  this fixes anchored controls being resized
3061         smaller until they disappear and then resized larger again.
3063 2006-12-25  Chris Toshok  <toshok@ximian.com>
3065         * Control.cs: a couple of changes.  Remove dist_left and dist_top,
3066         since they're nothing more than X/Left and Y/Top, respectively.
3068         Also, move back to a per-control Bitmap/Graphics for
3069         DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
3070         MT case.  Go with a tiny bitmap though, 1x1, instead of Width x
3071         Height.
3073 2006-12-25  Miguel de Icaza  <miguel@novell.com>
3075         * MessageBox.cs: Implemented overload that takes a new "bool
3076         displayHelpButton" by adding a new internal field "show_help".
3077         When clicked this will raise the HelpRequested on the owner or the
3078         main form. 
3080         From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
3081         From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
3083         * ListView.cs: Add support ColumnWidthChanged and
3084         ColumnWidthChanging. 
3086         Add support for ColumnReordered event.
3087         (ReorderColumn): Add NET_2_0 specific support for cancelling the
3088         reorder.
3090         Very nice codebase!
3092         * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
3094         This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
3096 2006-12-24  Chris Toshok  <toshok@ximian.com>
3098         * GridTablesFactory.cs: 2.0 corcompare work.
3100         * ToolStripContainer.cs: add "override" to
3101         ContextMenuStripChanged, and remove the local event object.
3103         * ToolStripDropDown.cs: same with a couple properties.
3105         * ToolStripPanel.cs: same with AutoSizeChanged event.
3107         * TextBoxBase.cs: add "override" to AutoSizeChanged.
3109         * Form.cs: add the remaining 2.0 events, and do some corcompare
3110         attribute work.
3112         * DateTimePicker.cs: add "new" to padding.
3114         * ButtonBase.cs: use Control's use_compatible_text_rendering.
3116         * ToolStripContentPanel.cs: use base.AutoSizeChanged.
3118         * DataGridView.cs: PaddingChanged is overridden.
3120 2006-12-24  Chris Toshok  <toshok@ximian.com>
3122         * Control.cs: corecompare work here too.
3124         * DataGridViewElement.cs, DataGridView.cs,
3125         DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
3126         DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
3127         DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
3128         DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
3129         work.
3131 2006-12-24  Miguel de Icaza  <miguel@novell.com>
3133         * Control.cs: Switched the error message on the console for a
3134         todo.  A review of the code will have to cope with this anyways
3135         (since its a large feature, it is in our radar) and it was
3136         producing too much output when running PDN.
3138         * ToolStripComboBox.cs: Set the text when the SelectedIndex
3139         changes.  Applications depend on this (PDN 2.72)
3141 2006-12-23  Chris Toshok  <toshok@ximian.com>
3143         * TableLayoutSettings.cs: finish up the corcompare work for this
3144         class.
3146 2006-12-23  Chris Toshok  <toshok@ximian.com>
3148         * Control.cs: make SetImplicitBounds internal, do some futzing
3149         with LayoutEngine so that it's available in 1.1, and remove the
3150         entire duplicated code mess from PerformLayout.  Use
3151         System.Windows.Forms.Layout.DefaultLayout instead.
3153         * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
3155 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
3157         * Form.cs: Add MainMenuStrip property.
3159 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
3161         * Control.cs: Add ContextMenuStrip property and implementation.
3162         Fix ContextMenu implementation to show menu centered on control when
3163         activated using the keyboard instead of showing at screen (0,0).
3165         * ToolStripDropDown.cs: Fix needed overload of Show ().
3167 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
3169         * Menu.cs: Name property added for 2.0 profile.
3170         
3171 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
3173         * Menu.cs: Update information about FindMenuItem, method to be
3174         implemented soon.
3176 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
3178         * MenuAPI.cs: When deselect items deselect also selected subitems.
3179         
3180 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
3182         * MenuAPI.cs: When hides menu set Wnd to null, it prevents
3183         FindSubItemByCoord to found itens that is not active, also an
3184         cheking added to FindSubItemByCoord to search for items only 
3185         in visible popup windows. Fixes #80274.
3187 2006-12-22  Everaldo Canuto  <everaldo@simios.org>
3189         * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
3190         internal property, it be care about change ExStyle. 
3192 2006-12-22  Andreia Gaita  <avidigal@novell.com>
3194         * ContainerControl.cs: set activeControl for parent forms up the 
3195         tree when the new activecontrol is a container.
3196         When validating the active control, if it is a container, also
3197         raise up the validation for it's active control. Fixes #80280
3198         
3199         * Control.cs: Add internal property flag and check to prevent
3200         Focus events from getting raised when Select() is called for
3201         a ContainerControl. There are still too many focus events being
3202         raised at the moment though.
3203         Cleaned up the code a bit.
3205 2006-12-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3207         * Control.cs: Added all missing 2.0 events.and
3208         fixed a couple of corcompare issues.
3209         * TrackBar.cs: Implemented missing 2.0 bits.
3210         * MonthCalendar.cs, 
3211         * DateTimePicker.cs, 
3212         * MdiClient.cs: Fixed some corcompare issues.
3214 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
3216         * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
3217         SplitterPanel.cs: corecompare work.
3219 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
3221         * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
3222         Clean up warnings for BackgroundImageChanged and PaddingChanged
3223         events now that they are implemented in Control.cs.
3225 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
3227         * Control.cs: Make sure layout_engine isn't null before using it (2.0).
3228         
3229         * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
3230         TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
3231         of TableLayoutPanel and supporting cast.
3233 2006-12-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3235         * XplatUIWin32.cs: 
3236         - GrabWindow now confines the mouse pointer to the confine window.
3237         - Added Win32ClipCursor and Win32GetClipCursor.
3239         * Control.cs: 
3240         - Added CaptureWithConfine to be able to capture and confine 
3241         mouse pointer.
3242         
3243         * InternalWindowManager.cs: 
3244         - Call CaptureWithConfine instead of Capture if we're an
3245         MdiChild (fixes #79982).
3247 2006-12-21  Chris Toshok  <toshok@ximian.com>
3249         * DataGrid.cs: guard against the initial state of selection, where
3250         selection_start == -1.  make sure we only select from index >= 0.
3251         Fixes bug #80291.
3253 2006-12-21  Chris Toshok  <toshok@ximian.com>
3255         * Control.cs: we don't need to be so draconian with
3256         UpdateDistances, and we thusly don't need to call it before
3257         calling PerformLayout in ResumeLayout.  Fixes bug #80289.
3259 2006-12-21  Daniel Nauck  <dna@mono-project.de>
3261         * ComboBox.cs,
3262         TextBox.cs: Implemented AutoComplete properties.
3264 2006-12-20  Chris Toshok  <toshok@ximian.com>
3266         * DataGridView*.cs: some corecompare work.
3268 2006-12-20  Jackson Harper  <jackson@ximian.com>
3270         * XplatUIX11.cs: We need to hide the caret when deleting it,
3271         otherwise you get carets left lying around everywhere.
3272         * TextBoxBase.cs: Kill then redraw the caret when scrolling.  This
3273         prevents getting some weird half drawn caret tracers when
3274         scrolling.
3275         * TextControl.cs: Attempt to reduce the number of times we need to
3276         recreate the caret.
3278 2006-12-20  Gert Driesen  <drieseng@users.sourceforge.net>
3280         * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
3282 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3284         * DateTimePicker.cs:
3285         - Implemented missing 2.0 bits.
3286         - Changed some default values to match MS.
3287         
3288 2006-12-20  Jackson Harper  <jackson@ximian.com>
3290         * TextBoxBase.cs: When changing the font across the document we
3291         can't recalculate after changing each line, since that will cahnge
3292         the line count.
3293         - PreferredHeight is a little different than i thought.
3294         - When backspacing, move the caret before we do the actual char
3295         delete, because when that delete crosses a wrap boundary the
3296         positional information will change.
3298 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3300         * Control.cs: Added some missing 2.0 bits: 
3301         BackgroundImageLayout, BackgroundImageLayoutChanged, 
3302         OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and 
3303         add IBindableComponent and IDropTarget implementation.
3304         
3305         * MonthCalendar.cs: 
3306         - Added all missing 2.0 features:
3307         BackgroundImageLayout, RightToLeftLayout, 
3308         OnHandleDestroyed, RightToLeftLayoutChanged, 
3309         BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
3310         PaddingChanged.
3311         - Rewrote all the BoldDate code, it was completely broken.
3312         - Fixed all the tests (the tests can now be re-enabled, the
3313         problems were not with the tests, but with the control, it was
3314         mostly broken).
3315         
3316         * DateTimePicker.cs: Changed the location where the 
3317         MonthCalendar is shown.
3318         
3319 2006-12-19  Chris Toshok  <toshok@ximian.com>
3321         * DataGridView.cs: add IDropTarget implementation.
3323         * ToolStripPanel.cs: add IDropTarget implementation.
3325 2006-12-19  Jackson Harper  <jackson@ximian.com>
3327         * TextControl.cs: soft now means something different than what it
3328         used to mean, we want to move the caret regardless of whether or
3329         not this break was soft (would we really have wanted the caret
3330         to not move with the break in the old context?)
3331         * TreeView.cs: Make sure we factor in the vert scrollbar when
3332         calculating the horizontal scrollbar's maximum.
3334 2006-12-19  Andreia Gaita  <avidigal@novell.org>
3336         * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
3337         check for keywords in alternate casing, close bug #80049.
3339 2006-12-19  Chris Toshok  <toshok@ximian.com>
3341         * ToolStripItem.cs: add the implementation of the 4 IDropTarget
3342         methods (which all do nothing).
3344         * IDropTarget.cs: add the 4 missing methods.
3346 2006-12-19  Chris Toshok  <toshok@ximian.com>
3348         * TableLayoutRowStyleCollection.cs: corcompare work.
3349         
3350         * TableLayoutSettings.cs: same.
3352         * TableLayoutStyle.cs: same.
3354         * TableLayoutColumnStyleCollection.cs: same.
3356 2006-12-19  Jonathan Pobst  <monkey@jpobst.com>
3358         * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
3359         TableLayoutPanel I've had in my local tree for way too long.
3361 2006-12-19  Miguel de Icaza  <miguel@novell.com>
3363         * TableLayoutSettings.cs: Finish the public API (still needs all
3364         the logic to update on changes). 
3366         * TableLayoutPanelCellPosition.cs: new file.
3367         
3368         * TableLayoutRowStyleCollection.cs,
3369         TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
3370         TableLayoutSettings.cs: Track the final 2.0 table api.
3372 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3374         * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
3375         and Image List 2.0 members for ColummnHeader.
3376         * ListView.cs: Add key-related 2.0 methods for
3377         ColumnHeaderCollection.
3379 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
3381         * ListViewItem.cs: Changed AddRange overloads to match MS: throw
3382         ArgumentNullException if items argument is null. Ignore null item in
3383         arrays. Removed extra tabs.
3385 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
3387         * MonthCalendar.cs: Fixed InvalidCastException.
3389 2006-12-19  Jackson Harper  <jackson@ximian.com>
3391         * TextControl.cs: Don't increment the position here.
3392         - When calculating char positions only add in the line break size
3393         for hard line breaks.
3395 2006-12-19  Andreia Gaita  <avidigal@novell.org>
3397         * SendKeys.cs: Changed some things to match ms.net behaviour
3398         when parsing shifted capital letters.
3399         
3400         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX: 
3401         Add window handle as parameter to SendInput. X11 needs the 
3402         window handle, and the handle being passed      to it in the keys 
3403         queue is the active control handle (which windows needs), not 
3404         the window handle.
3405         
3406         XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput 
3407         to support SendKeys on X.       
3408         
3409         * X11Keyboard: Implement helper method to lookup a linux keycode
3410         given the virtual keycode. Added table of keycode-2-virtualkey
3411         values to support this.
3413 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3415         * ListView.cs: Add support for SelectedIndexCollection
3416         and SelectedItemCollection 2.0 methods. Implement support
3417         for ImageKey too.
3418         * ListViewItem.cs: Add support for ListViewSubItemCollection
3419         2.0 methods. Also, fix an incorrect behavior of AddRange method
3420         (it shouldn't call Clear).
3421         * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
3423 2006-12-19  Jackson Harper  <jackson@ximian.com>
3425         * RichTextBox.cs: 
3426         * TextBoxBase.cs: New args for FormatText
3427         * TextControl.cs: Rewrote the main drawing method, this version
3428         feels a little easier to understand and debug to me.  Hopefully it
3429         does to others also
3430         - Fix FormatText to OR in the new formating values.  Added
3431         FormatSpecified param, basically this works in the same way as
3432         BoundsSpecified in Control.
3433         - Set the caret properties when the caret is positioned.
3434         - When wrapping text make sure that we calculate the width of the
3435         last character
3436         - when calculating alignments we might have wrapped down to the
3437         next line, so don't search for an individual tag, search for the
3438         end of the line
3439         - We need to invalidate the selection area when we replace the
3440         selection.
3441         
3442 2006-12-19  Daniel Nauck  <dna@mono-project.de>
3444         * Application.cs: add Restart () 2.0 support
3446 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
3448         * MenuItem.cs: Invalidate menu item rectangle after change Enable
3449         property. Fixes #80268.
3450         
3451 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
3453         * MenuAPI.cs: Dont trigger select event when closes top menu
3454         item. Fixes #80270.
3456 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
3458         * MenuAPI.cs: When you click on menuitem only trigger onselect
3459         event for top menu itens. Fixes #80271.
3460         
3461 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3463         * MdiWindowManager.cs: Make IconicBounds depend on
3464         the bottom of MdiClient, not the top (fixes #80267)
3465         
3466 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3468         * MdiClient.cs: Added missing 2.0 attribute
3470 2006-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3472         * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
3473         as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
3475 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
3477         * MenuAPI.cs: Fix click when menuitem is not popup,
3478         this regression was caused by last commit (#80272).
3480 2006-12-17  Everaldo Canuto  <everaldo@simios.org>
3482         * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
3483         fire click event or close menu. Fixes #80272.
3485 2006-12-17  Daniel Nauck  <dna@mono-project.de>
3487         * ListViewHitTestInfo.cs: add
3489 2006-12-17  Daniel Nauck  <dna@mono-project.de>
3491         * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
3492         * FlatButtonAppearance.cs: add
3493         * DockingAttribute.cs: add
3495 2006-12-17  Chris Toshok  <toshok@ximian.com>
3497         * DataGrid.cs: hook up MetaDataChanged event on the list manager,
3498         and rebind our columns when it does - this way, if you make
3499         changes to the DataTable (or set the Table attribute on a DataView
3500         after setting it as the DataGrid's DataSource, the changes are
3501         made visible.)  Fixes bug #80107.
3503 2006-12-17  Daniel Nauck  <dna@mono-project.de>
3505         * ListViewGroup.cs: add internal Location property for layouting.
3506         * Theme.cs: add abstract ListViewGroupHeight function.
3507         * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
3509 2006-12-16  Andreia Gaita  <avidigal@novell.com>
3511         * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
3512         Added reset of selected index to 0 when adding first tab page.
3513         Fixes #80264
3514         
3515         * NumericUpDown.cs: Fix NET_2_0 check
3517 2006-12-16  Daniel Nauck  <dna@mono-project.de>
3519         * ListViewGroup.cs: fixed DefaultValueAttribute value
3521 2006-12-16  Daniel Nauck  <dna@mono-project.de>
3523         * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
3525 2006-12-15  Miguel de Icaza  <miguel@novell.com>
3527         * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
3528         TextBoxBase.cs, ListView.cs, ContainerControl.cs,
3529         ScrollableControl.cs: Add a handful of methods that are
3530         overwritten in 2.0 
3532 2006-12-15  Chris Toshok  <toshok@ximian.com>
3534         * XplatUIWin32.cs: initial implementation of the Reversible
3535         drawing functions.  there are some problems.  DrawReversibleFrame
3536         doesn't seem to work at all for Dashed FrameStyle, and in the
3537         Thick case there are drawing errors at the corners (we probably
3538         need to bind Rectangle instead of doing moveto/lineto's.)
3540 2006-12-16  Andreia Gaita  <avidigal@novell.com>
3541         
3542         * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput, 
3543         to send blocks of key messages. Send accumulates keys to send with Flush, 
3544         while SendWait sends all keys immediately.
3545                 
3546         * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, 
3547         XplatUIX11.cs,  XplatUIX11-new.cs:
3548         - Define SendInput and stubs for OSX and X11, implements Win32 with a call
3549         to Win32 SendInput.
3550         - Added INPUT support structures to XplatUIWin32 for Win32SendInput
3551         
3552         Tests:  It seems ms.net is hooking the keyboard to implement this, so doing unit
3553         testing for ms.net on this class is very tricky, as the tests run too fast 
3554         to allow the hook to release, essentially freezing the keyboard and the 
3555         test. So, barring a win32 miracle, they'll be commited in the ms-notworking     
3556         category :p
3558 2006-12-16  Daniel Nauck  <dna@mono-project.de>
3560         * Padding.cs: fixed serialization compability to MS ("_var" field names),
3561                         added missing attributes.
3563 2006-12-15  Daniel Nauck  <dna@mono-project.de>
3565         * ListViewGroup.cs: Added missing attributes.
3566         * ListViewGroupCollection.cs: Added missing attributes.
3568 2006-12-15  Daniel Nauck  <dna@mono-project.de>
3570         * ListViewItem.cs: fixed ListViewSubItem text property.
3572 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3573         
3574         * Control.cs: Added missing 2.0 attributes
3575         
3576 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3577         
3578         * MdiClient.cs: Added missing 2.0 attribute.
3579         * MonthCalendar.cs: Added some missing 2.0 attributes 
3580         and properties.
3581         
3582 2006-12-15  Daniel Nauck  <dna@mono-project.de>
3584         * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
3586 2006-12-15  Jonathan Pobst  <monkey@jpobst.com>
3588         * MainMenu.cs: Add the new 2.0 constructor to help out people
3589         using the MainMenu in VS2005.
3591 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3592         
3593         * MdiChildContext.cs: Removed it, no longer used.
3594         * MdiClient.cs: Added missing 2.0 attributes.
3595         
3596 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3597         
3598         * InternalWindowManager.cs: Fix a NullRef with previous 
3599         changes for toolwindows.
3600         
3601 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3603         * Control.cs: 
3604         - Added AfterTopMostControl to allow for certain controls 
3605         to always stay on top when normal controls are brought to 
3606         front.
3607         
3608         * XplatUIWin32.cs: 
3609         - (DrawInversibleRectangle): Get window rectangle from Win32 
3610         in stead of from control, since Win32 doesn't calculate
3611         screen coords correctly from control's Location if it 
3612         have docked siblings.
3613         
3614         * MdiWindowManager.cs:
3615         - Correct the control menu popup location when clicked on
3616         the maximized form icon. (fixes #80223.1)
3617         - Don't show moving rectangle if mouse hasn't moved from
3618         the original clicked point.
3619         - Removed FormGotFocus handler (not used).
3620         - Calculate the control buttons location from the main
3621         window's size and not client size (fixes #79770).
3622         - Form is now closed when the form icon is double-clicked
3623         (fixes #79775). 
3624         - Correct NCCalcSize numbers a little bit (fixes #80223.2)
3625         
3626         * InternalWindowManager.cs:
3627         - Moved some MDI-only methods to MdiWindowManager.
3628         - Removed unused properties and methods.
3629         - Unified method naming for methods handling wm messages.
3630         - Moved all message handling to seperate methods for
3631         each message.
3632         
3633         * ThemeWin32Classic.cs:
3634         - DrawManagedWindowDecorations now draws the title bar 
3635         with a gradient brush.
3636         - Add a CPDrawButtonInternal that allows us to specify
3637         light, normal and dark colors for the buttons (control 
3638         buttons for MDI children were drawn with the same light
3639         color as the background, therefore loosing the 3D effect).
3640         
3641         * SizeGrip.cs:
3642         - Add a CapturedControl property that is used to 
3643         determine the control to resize (defaults to parent). 
3644         Needed for MdiClient, since its SizeGrip's parent is
3645         MdiClient, but the control to resize is the main form.
3646         
3647         * MdiClient.cs:
3648         - Set SizeGrip's CapturedControl to the main form in order
3649         to resize the main form and not the MdiClient.
3650         - Override AfterTopMostControl to leave the scrollbars 
3651         always on top.
3653 2006-12-15  Daniel Nauck  <dna@mono-project.de>
3655         * ListView.cs: fixed ListViewItemCollection AddRange and
3656                         implemented ListViewItemCollection AddRange 2.0 support.
3658 2006-12-15  Daniel Nauck  <dna@mono-project.de>
3660         * ListViewGroup.cs: Add.
3661         * ListViewGroupCollection.cs: Add
3662         * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
3663         * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
3664                                 stub for ImageKey 2.0 support.
3666 2006-12-14  Mike Kestner  <mkestner@novell.com>
3668         * ListView.cs: add text padding to the autocalculation for columns
3669         of width -2.  Fixes #80207.
3671 2006-12-14  Mike Kestner  <mkestner@novell.com>
3673         * ListView.cs: add some index guarding for partial row navigation 
3674         logic.  Fixes #80250.
3676 2006-12-14  Mike Kestner  <mkestner@novell.com>
3678         * ListView.cs: throw ArgumentExceptions when parented ListViewItems
3679         are added or inserted to the collection.  Fixes #81099.
3681 2006-12-13  Everaldo Canuto  <everaldo@simios.org>
3683         * MenuAPI.cs: Closes menu when right click out side of popup
3684         it fix problem in ContextMenu and MainMenu. Fixes #80252.
3686 2006-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3688         * ListViewItem.cs: Fix dumb error.
3690         * ListView.cs: Add Find and ContainsKey methods in 
3691         ListViewItemCollection, and also return true for IsReadOnly
3692         and IsFixedSize (changes for 2.0). 
3694 2006-12-13  Gert Driesen  <drieseng@users.sourceforge.net>
3696         * Control.cs: Allow Region to be set to null.
3698 2006-12-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3700         * MdiWindowManager.cs: Remove unused (commented out) code.
3701         * Form.cs: When the MdiChild is maximized, the form needs 
3702         WM_NCMOUSELEAVE, so request it.
3703         * InternalWindowManager.cs: 
3704         - Added tooltips to control buttons.
3705         - Removed duplicated control button handling code.
3706         - Removed unused (commented out) code.
3707         
3708 2006-12-12  Everaldo Canuto  <everaldo@simios.org>
3710         * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor 
3711         was used because we must set cursor without trigger ChangeCursor event
3712         and without change Cursor control property. Fixes #79963.
3714 2006-12-12  Andreia Gaita  <avidigal@novell.com>
3715         
3716         * Control.cs: Check if Region setter value is null, and ignore
3718 2006-12-12  Jackson Harper  <jackson@ximian.com>
3720         * TextControl.cs: We were almost always drawing one more line then
3721         needed, since the GetLineByPixel will return the last line found
3722         at that pixel. In most cases though, we were invalidating up to
3723         the junction between two lines.
3724         - Improve debug code.
3726 2006-12-12  Chris Toshok  <toshok@ximian.com>
3728         * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
3729         and FillReversibleRectangle.
3731         * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
3732         and FillReversibleRectangle.
3734         * XplatUIWin32.cs: add stubs which do nothing for
3735         DrawReversibleFrame, DrawReversibleLine, and
3736         FillReversibleRectangle.
3738         * XplatUIOSX.cs: add stubs which raise NIE for
3739         DrawReversibleFrame, DrawReversibleLine, and
3740         FillReversibleRectangle.
3742         * XplatUIX11.cs: add working implementation for
3743         DrawReversibleFrame, DrawReversibleLine, and
3744         FillReversibleRectangle.
3745         
3746         * ControlPaint.cs: implement DrawReversibleFrame,
3747         DrawReversibleLine, and FillReversibleRectangle, by calling into
3748         the appropriate XplatUI method.
3750 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3752         * Form.cs: Make MdiClient have the focus even if it's
3753         not selectable, since it should receive WM_KEY* and WM_MOUSE 
3754         messages. Fixes #79907.
3755         
3756 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3758         * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
3759         queried after the window is created.
3760         
3761         * XplatUIX11.cs: Added SendParentNotify to implement 
3762         WM_PARENTNOTIFY logic. Fixes #79965.
3763         
3764         * Control.cs: Added MakeParam.
3765         
3766 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3768         * MdiClient.cs: Resume Layout before setting window
3769         states (fixes #80201).
3771 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3773         * MenuAPI.cs: Deselect a menu item after performing
3774         the click (fixes #80197).
3776 2006-12-11  Jackson Harper  <jackson@ximian.com>
3778         * TextBoxBase.cs: We need to cap this value, since Maximum -
3779         ViewPortHeight can be less than zero.
3780         - Only do selection with the left mouse button.
3781         * TextBox.cs: Don't tell the world that we have a context menu.
3782         * Control.cs: New method so that we can control whether or not the
3783         context menu is visible outside MWF.
3785 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
3787         * ToolBarButton.cs: Fix text positon. 
3789 2006-12-11  Miguel de Icaza  <miguel@novell.com>
3791         * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
3793         * Control.cs (DoubleBuffered): Add implementation.
3795         * Application.cs (OpenForms): Add.
3797 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
3799         * Form.cs: Use opacity instead of Opactiy to determine if we need
3800         to set the WS_EX_LAYERED bit.  [Fixes bug #80185]
3802 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
3804         * Control.cs: Fix NRE if Control.Site was set to null.
3806 2006-12-11  Chris Toshok  <toshok@ximian.com>
3808         * Control.cs: ControlCollection.Remove should return if the arg is
3809         null, and ControlCollection.SetChildIndex should raise a ANE.
3811 2006-12-11  Gert Driesen  <drieseng@users.sourceforge.net>
3813         * Control.cs: Verify value set for Dock property. Code formatting
3814         updates.
3816 2006-12-11  Jackson Harper  <jackson@ximian.com>
3818         * TextControl.cs: Draw the caret and the selection when a flag is
3819         set on the owner.
3820         * TextBoxBase.cs: We want to draw the caret and the selection for
3821         TextBox but not for TextBoxBase.
3822         - If the window is resized and scrolling is no longer needed (the
3823         whole doc is visible) set the scroll position to zero.
3824         - The default SelectWord (the one TextBox uses) should move the
3825         caret to the end of the word.
3826         - SelectAll moves the caret to the end of the selection.
3827         * TextBox.cs: We don't selectall on focus, we just do it when the
3828         control is created.
3829         
3830 2006-12-11  Mike Kestner  <mkestner@novell.com>
3832         * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
3834 2006-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3836         * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer 
3837         2.0 support.
3838         * ListViewItem.cs: Add Name 2.0 property.
3840 2006-12-11  Andreia Gaita  <avidigal@novell.com>
3842         * TabControl.cs: Set visibility on selected or default tab 
3843         when tabcontrol handle is created, so that it's contents
3844         actually show up (duh). Fixes #80193
3845         Don't redraw the control if there is no handle created, as
3846         the selected index might be completely invalid. Added some tests
3847         to check for this.
3849 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
3851         * ToolBar.cs: Uses maximun width and height of all buttons as 
3852         button rectangle when ButtonSize specified, it looks strange but
3853         is what happens in Win32. Fixes #80189.
3855 2006-12-11  Jackson Harper  <jackson@ximian.com>
3857         * TextControl.cs: Need to track undo levels ourself, since
3858         compound actions will mess them up.
3860 2006-12-10  Andreia Gaita  <avidigal@novell.com>
3862         * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
3863         SelectedIndex value is changed (even if it's not valid).
3864         Reset SelectedIndex to 0 when the handle is created and if
3865         the current index is invalid.
3866         Fixes SelectdeIndex unit tests and #80128
3868 2006-12-08  Chris Toshok  <toshok@ximian.com>
3870         * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
3871         calls EndEdit, it needs to be called before we set current_cell to
3872         its new value.  Otherwise, we end up committing the value in the
3873         textbox to the new cell as well.  Fixes bug #80160.
3875 2006-12-08  Chris Toshok  <toshok@ximian.com>
3877         * Form.cs (set_CancelButton): if the button's DialogResult is
3878         None, set it to Cancel.  Fixes bug 80180.
3880 2006-12-08  Jackson Harper  <jackson@ximian.com>
3882         * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
3883         to watch ourselves when setting the canvas size and setting the
3884         scrollbar values.
3886 2006-12-08  Chris Toshok  <toshok@ximian.com>
3888         * DataGrid.cs: comment out the two MakeTransparent calls for the
3889         time being so people using trunk (and not 1.2.2) on windows can
3890         actually use the datagrid.  This deals with bug #80151.
3892 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
3894         * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
3895         Graphics.DrawImage (image, int, int, int, int) overload instead
3896         of Graphics.DrawImage (image, int, int).  GDI+ can't figure out
3897         the dpi difference and was blurring images it drew.
3898         [Fixes bug #79960]
3900 2006-12-08  Chris Toshok  <toshok@ximian.com>
3902         * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
3903         rowcnt is 0 (such as with an empty datasource), and make sure we
3904         initialize not_usedarea.Y to cells.Y, so we don't draw over the
3905         other areas (caption, parent row, etc, etc).  Fixes bug #80095.
3907 2006-12-08  Chris Toshok  <toshok@ximian.com>
3909         * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
3910         grid.
3912 2006-12-08  Chris Toshok  <toshok@ximian.com>
3914         [ Fixes bug #80167 ]
3915         
3916         * ThemeWin32Classic.cs: don't draw the image if the button's flat
3917         style is FlatStyle.System.
3919         * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
3920         ButtonBase.flat_style private, and switch uses of it to the public
3921         property.
3922         
3923 2006-12-08  Chris Toshok  <toshok@ximian.com>
3925         [ Fixes bug #80121 ]
3926         
3927         * ThemeWin32Classic.cs: center the caption text in the datagrid
3928         when we draw it.
3930         * DataGrid.cs: lessen the amount we add to the caption height from
3931         6 to 2.  6 was making it huge.
3933 2006-12-08  Andreia Gaita  <avidigal@novell.com>
3935         * UpDownBase: Handle MouseWheel call directly instead of capturing
3936         the inner textbox's OnMouseWheel. Fixes #80166
3938 2006-12-08  Jackson Harper  <jackson@ximian.com>
3940         * TextControl.cs: We need to invalidate the textbox when we empty
3941         it (how had this not been discovered before?)
3943 2006-12-08  Jackson Harper  <jackson@ximian.com>
3945         * TextBoxBase.cs: Reworked the mouse down code so I could get it
3946         to behave like MS, we now ignore the eventargs.Click and just
3947         track state ourself, which we were already doing anyways.
3948         - Constrain the double click handler to the double click size.
3949         
3950 2006-12-08  Chris Toshok  <toshok@ximian.com>
3952         * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
3953         direction if that scrollbar isn't shown.  fixes bug #80158.
3955 2006-12-08  Andreia Gaita  <avidigal@novell.com>
3957         * NumericUpDown.cs: Update value on getter. Fixes #79950
3959 2006-12-08  Chris Toshok  <toshok@ximian.com>
3961         * MenuItem.cs: add back in the event cloning code.  I didn't know
3962         how to do it in the face of the EventHandlerList work i'd done
3963         last week.  Fixes bug #80183.
3965 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
3967         * Control.cs: Add an invalidate to the BackgroundImage setter.
3968         [Fixes 80184]
3970 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
3972         * ToolStrip*: Add some small properties reported by MoMA, fix event
3973         firing and default properties based off of unit tests, and add some
3974         attributes based off of the class status page.
3976 2006-12-07  Jackson Harper  <jackson@ximian.com>
3978         * TextBoxBase.cs: Take HideSelection into account when determining
3979         whether or not to show the selection.
3980         * RichTextBox.cs: After inserting the RTF into the document move
3981         the cursor to the beginning of the document.
3983 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
3985         * Control.cs: Remove static ArrayList "controls" which maintained
3986         a reference to every control created.
3987         * Application.cs: Create a static FormCollection to maintain a reference
3988         to every form created.  Use it in places that formerly enumerated through
3989         the controls one looking for forms.
3990         * Form.cs: Add and remove self from above FormCollection.
3992 2006-12-07  Alexander Olk  <alex.olk@googlemail.com>
3994         * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
3995           not libgdk (though it makes me wonder why I didn't have any
3996           problems)
3998 2006-12-07  Chris Toshok  <toshok@ximian.com>
4000         [ you had to know this was coming after that last commit...]
4001         
4002         * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
4003         XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
4004         DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
4005         XCopyArea).
4007 2006-12-07  Chris Toshok  <toshok@ximian.com>
4009         * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
4010         DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
4011         all the behavior we need for double buffering.
4013         * XplatUIDriver.cs: implement the 3 double buffer methods using a
4014         client side Bitmap, just like the old Control-based double buffer
4015         code did.  The methods are virtual, so each XplatUI driver
4016         subclass can replace the implementation to use a faster, platform
4017         specific approach.
4019         * Control.cs: make use of the 3 Offscreen XplatUI calls in the
4020         double buffer code, and clean things up a bit in the process.
4022 2006-12-06  Chris Toshok  <toshok@ximian.com>
4024         * Control.cs: reindent WndProc.
4026 2006-12-06  Chris Toshok  <toshok@ximian.com>
4028         [ I wanna be like BenM when I grow up ]
4029         
4030         * Hwnd.cs: create a single static Graphics object on the static
4031         Bitmap we create.  use this for our text measurements.
4033         * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
4034         This was causing us to allocate a backbuffer for every control,
4035         even when it wasn't flagged as double buffered.  Instead use the
4036         single graphics instance.  This might have implications for
4037         multithreaded applications.  If we run into problems we can switch
4038         to creating 1 Graphics per control, on the static Hwnd bitmap.
4040         this change nets us a 7M savings in private dirty mappings when
4041         running FormsTest.exe.
4043 2006-12-06  Chris Toshok  <toshok@ximian.com>
4045         * ListView.cs: the BackgroundImage override is just to set
4046         attributes.  chain up to base.BackgroundImage.
4048         * RichTextBox.cs: same.
4050         * ToolBar.cs: same, but we need to also redraw the toolbar when it
4051         changes, so instead a handler for BackgroundImageChanged.
4052         
4053         * Control.cs: make background_image private.
4055 2006-12-06  Chris Toshok  <toshok@ximian.com>
4057         * ScrollBar.cs: change the assignment of cursor to Cursor.  not
4058         sure we even need this assignment, but roll with it for now.
4060         * Control.cs: make the cursor field private.
4062 2006-12-06  Chris Toshok  <toshok@ximian.com>
4064         * Form.cs: we don't need to explicitly set ImeMode to
4065         ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
4066         behavior in the face of ImeMode.Inherit.
4068         * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
4069         change the ctor's assignment to use ImeMode instead of ime_mode.
4071         * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
4072         ImeModeInherit.  Only check for the parent's imemode (and return
4073         NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
4074         This fixes the button unit test, which sets both ImeMode and
4075         DefaultImeMode to ImeMode.Disable.
4077         also make the ime_mode field private.
4079 2006-12-06  Chris Toshok  <toshok@ximian.com>
4081         * Control.cs: make control_style private.
4083         * TextBoxBase.cs: fix the HandleClick override.  it was explicitly
4084         setting the styles to true, then setting them to false instead of
4085         reverting to their previous values.
4087         also, call SetStyle on the scrollbars instead of using
4088         control_style directly.
4090 2006-12-06  Jonathan Pobst  <monkey@jpobst.com>
4092         * FormCollection.cs: Implement. [2.0]
4094 2006-12-06  Chris Toshok  <toshok@ximian.com>
4096         * Control.cs: make tab_stop private.
4098         * Label.cs: set TabStop, not tab_stop.  reformat some event
4099         add/remove methods to make them more compact.
4101 2006-12-06  Chris Toshok  <toshok@ximian.com>
4103         * RadioButton.cs: fix TabStop handling.
4105 2006-12-06  Chris Toshok  <toshok@ximian.com>
4107         * TextBox.cs: remove the explicit assignments to has_focus.
4108         Control does that.
4110         * ButtonBase.cs: remove the assignment to has_focus.  Control will
4111         manage that.
4112         
4113 2006-12-06  Chris Toshok  <toshok@ximian.com>
4115         * ButtonBase.cs: remove all uses of is_enabled from this code.
4116         it's always true when any of the code containing the checks is
4117         executed.
4119 2006-12-06  Chris Toshok  <toshok@ximian.com>
4121         * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
4122         with different semantics (some are present in both 1.1 and 2.0
4123         profiles) so that we match MS's behavior in our unit tests.
4125 2006-12-06  Jackson Harper  <jackson@ximian.com>
4127         * TextControl.cs: Make this operation undoable.
4128         * TextBoxBase.cs: Factor the border width into the preferred
4129         height.
4130         - implement Modified as per the spec.
4132 2006-12-06  Chris Toshok  <toshok@ximian.com>
4134         * Timer.cs, Control.cs, Menu.cs: make control_tag private.
4136 2006-12-06  Chris Toshok  <toshok@ximian.com>
4138         * Control.cs: make right_to_left and context_menu fields private.
4140 2006-12-06  Chris Toshok  <toshok@ximian.com>
4142         * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
4143         XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
4144         Control.child_controls private.  switch all uses over to
4145         Control.Controls.
4147 2006-12-06  Chris Toshok  <toshok@ximian.com>
4149         * System.Windows.Forms/GroupBox.cs,
4150         System.Windows.Forms/AccessibleObject.cs,
4151         System.Windows.Forms/ErrorProvider.cs,
4152         System.Windows.Forms/Control.cs,
4153         System.Windows.Forms/UpDownBase.cs,
4154         System.Windows.Forms/ScrollBar.cs,
4155         System.Windows.Forms/DateTimePicker.cs,
4156         System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
4157         System.Windows.Forms/ToolTip.cs,
4158         System.Windows.Forms/RadioButton.cs,
4159         System.Windows.Forms/LinkLabel.cs,
4160         System.Windows.Forms/Splitter.cs,
4161         System.Windows.Forms/TextBoxBase.cs,
4162         System.Windows.Forms/ToolStripTextBox.cs,
4163         System.Windows.Forms/ContainerControl.cs,
4164         System.Windows.Forms/ThemeWin32Classic.cs,
4165         System.Windows.Forms/SizeGrip.cs,
4166         System.Windows.Forms/ToolStripDropDown.cs,
4167         System.Windows.Forms/ScrollableControl.cs: Make Control.parent
4168         private.  switch all uses over to Control.Parent.
4170 2006-12-06  Chris Toshok  <toshok@ximian.com>
4172         * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
4173         Control does this before calling emitting these events.
4175         * TabControl.cs: same.
4177         * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
4178         Control.client_rect.
4180         * ButtonBase.cs: use the ClientSize property instead of the
4181         client_size field.
4183         * ScrollableControl.cs: same.
4185         * Control.cs: another pass at making properties private.  also,
4186         move the initialization of tab_stop to the ctor.
4188 2006-12-05  Andreia Gaita <avidigal@novell.com>
4190         * TabControl.cs: Let the selected index be set freely if the 
4191         control handle is not yet created.
4193 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
4195         * Control.cs: Revert dist_top, dist_right, and dist_bottom to 
4196         internal until I can rewrite DefaultLayout.
4197         * ToolStrip.cs: Fix build error and some general cleaning.
4198         * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
4199         Fix build errors caused by making some of Control's fields private.
4201 2006-12-05  Jackson Harper  <jackson@ximian.com>
4203         * TextControl.cs: Redo Insert a little so that it use IndexOf
4204         instead of Split, this prevents it from messing up on things like
4205         \n\n\n. Also more effecient since the split array doesn't need to
4206         be created.
4207         * TextBoxBase.cs: AppendText doesnt handle multiline and non
4208         multiline text differently, this is the first of many fixes that
4209         will make multiline/non-multiline the same thing as far as the
4210         TextBoxBase is concerned.
4211         - Don't split the text and insert lines, this can lose some line
4212         endings (like is the last line a soft or hard break). Instead use
4213         the new Insert.
4214         - Fix an off by one when combining all the lines in the Text
4215         getter.
4216         - Remove separate multiline handling from the Text getter/setter.
4218 2006-12-05  Chris Toshok  <toshok@ximian.com>
4220         * ButtonBase.cs: a few changes:
4222         - don't reinitialize internal Control fields in the ctor when they
4223         have the same values as Control sets them.
4225         - don't set has_focus in OnGotFocus/OnLostFocus.  Control does
4226         this before calling those methods.
4228         - we don't need to call Refresh for anything.  use Invalidate
4229         instead.
4231         - OnEnabledChanged doesn't need to redraw at all - Control.cs
4232         calls Refresh in its OnEnabledChanged.
4233         
4234         - several of the events we were registered for in the ctor to
4235         redraw ourselves already include calls to Invalidate in the
4236         property setters that raise the events.  remove the extra
4237         invalidation.
4239         - reformat a switch statement that was 83274658 columns wide.
4240         
4241 2006-12-05  Mike Kestner  <mkestner@novell.com>
4243         * ComboBox.cs: fix a unit test regression from a TextBox
4244         SelectionLength return of -1 when there's no selection.  
4246 2006-12-05  Chris Toshok  <toshok@ximian.com>
4248         * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
4249         ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
4250         cleaning up some of the internal Control fields being used by
4251         subclasses.
4253 2006-12-05  Mike Kestner  <mkestner@novell.com>
4255         * ComboBox.cs: fix some Simple mode regressions.  Set Visible on the
4256         listbox after AddImplicit calls since it defaults to hidden. Add a 
4257         hack to preserve requested heights across DropDownStyle changes.
4259 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
4261         * PropertyGrid.cs: Hide FindFirstItem method from public API.
4263 2006-12-05  Chris Toshok  <toshok@ximian.com>
4265         * DataGridView.cs: fix compiler warnings.
4267         * PrintControllerWithStatusDialog.cs: same.
4269         * ToolBar.cs: same.
4271         * FolderBrowserDialog.cs: same.
4273         * Splitter.cs: same.
4275         * DataGridViewComboBoxCell.cs: same.
4277         * XplatUIWin32.cs: same.
4279         * PictureBox.cs: same.
4281         * Win32DnD.cs: same.
4283         * PageSetupDialog.cs: same.
4285         * FileDialog.cs: same.
4287         * PrintDialog.cs: same.
4289         * DataGridTextBoxColumn.cs: same.
4291         * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
4293 2006-12-05  Chris Toshok  <toshok@ximian.com>
4295         * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
4296         MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
4297         System.ComponentModel.EventHandlerList work.
4299 2006-12-05  Jonathan Chambers  <joncham@gmail.com>
4301         * DrawTreeNodeEventArgs.cs: Added.
4303 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4304         
4305         * InternalWindowManager.cs: Remove an unused field.
4306         
4307 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4309         * InternalWindowManager.cs:
4310         - Save the point where the title bar is clicked.
4311         
4312         * MdiWindowManager.cs:
4313         - Only allow moving of the window as long as the 
4314         clicked point on the title bar does not get out of
4315         MdiClient's rectangle. Fixes #79982.
4316         
4317         * MdiClient.cs:
4318         - Added Horizontal/VerticalScrollbarVisible.
4319         - Simplified the scrollbar sizing algorithm.
4320         - Cache the difference in scrolled value in
4321         H/VBarValueChanged and move the calculation out
4322         of the for loop.
4324 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4326         * Control.cs: Make the Console.WriteLine in WndProc 
4327         write more info.
4329 2006-12-05  Chris Toshok  <toshok@ximian.com>
4331         * ToolStripManager.cs, ToolStripButton.cs,
4332         ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
4333         ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
4334         ToolStripSplitButton.cs, ToolStripSeparator.cs,
4335         ToolStripRenderer.cs, ToolStripDropDownItem.cs,
4336         ToolStripProgressBar.cs, ToolStripContainer.cs,
4337         ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
4338         to using System.ComponentModel.EventHandlerList.
4340 2006-12-04  Chris Toshok  <toshok@ximian.com>
4342         * LinkLabel.cs: fix up compiler warnings.
4344         * TableLayoutSettings.cs: same.
4346         * TreeView.cs: same.
4348         * ToolBar.cs: same.
4350         * TabControl.cs: same.
4352         * RichTextBox.cs: same.
4354         * ListViewItem.cs: same.
4356         * PropertyGrid.cs: same.
4358         * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
4360         * ToolTip.cs same.
4362         * TextRenderer.cs: fix up compiler warnings.
4364         * Label.cs: same.
4366         * Form.cs: corcompare fixes.
4368         * PictureBox.cs: fix up compiler warnings.
4370         * ImageListStreamer.cs: same.
4372         * TrackBar.cs: corcompare fix.
4374         * Control.cs: fix up compiler warnings.
4376         * SplitterPanel.cs: same.
4378         * NumericTextBox.cs: same.
4380         * ImageList.cs: same.
4382         * StatusStrip.cs: same.
4384         * ProgressBar.cs: corcompare fix.
4386         * ToolStripButton.cs: fix up compiler warnings.
4388         * ToolStripStatusLabel.cs: same.
4390         * ToolStripSplitButton.cs: same.
4392         * ToolStripSeparator.cs: same.
4394         * ToolStripProgressBar.cs: same.
4396         * ToolStripDropDownMenu.cs: same
4398         * ToolStripDropDown.cs: same.
4400         * ToolStripDropDownButton.cs: same.
4402         * ToolStrip.cs: same.
4404         * ToolStripControlHost.cs: same.
4406         * ToolStripContentPanel.cs: same.
4408         * ToolStripDropDown.cs: same.
4410         * ToolStripContainer.cs: same.
4412         * ToolStripPanel.cs: same, and add "new" where we need it to work
4413         with the new ArrangedElementCollection.
4415         * ToolStripItemCollection.cs: add "new" where we need it to work
4416         with the new ArrangedElementCollection.
4418 2006-12-04  Andreia Gaita <avidigal@novell.com>
4420         * TabControl.cs: Fix default tab selection to after TabControl
4421         gets focus and not before. Fixes #80128
4423 2006-12-04  Chris Toshok  <toshok@ximian.com>
4425         * DataGridTableStyle.cs: remove the gross calling of
4426         datagrid.Refresh from here.  It's a broken idea and it doesn't
4427         work anyway.
4429         * DataGrid.cs: instead, just register/unregister from the
4430         DataGridTableStyle events in CurrentTableStyle.  we play it
4431         conservatively and EndEdit + CalcAreasAndInvalidate on any event,
4432         even though some would most likely not require it.  Fixes bug
4433         #80115 (and one portion of #80117 as a side effect).
4435 2006-12-04  Chris Toshok  <toshok@ximian.com>
4437         * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
4438         so the textbox (if any) goes away.  Fixes bug #80117.
4440 2006-12-04  Chris Toshok  <toshok@ximian.com>
4442         * DataGridColumnStyle.cs: set the column's readonly property
4443         initially based on the property descriptor's IsReadOnly.  Fixes
4444         bug #80044.
4446 2006-12-04  Chris Toshok  <toshok@ximian.com>
4448         * ComboBox.cs: wrap the dropdown style changing work in
4449         SuspendLayout/ResumeLayout.  Fixes bug #79968.
4451 2006-12-04  Jackson Harper  <jackson@ximian.com>
4453         * TextBoxBase.cs: Fix off by one, since these are one-based.
4454         * TextBox.cs: Select all the text when we get focus.  The TextBox
4455         does this but the RTB does not.
4457 2006-12-04  Chris Toshok  <toshok@ximian.com>
4459         * DataGridTextBoxColumn.cs: remove some spew.
4461         * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
4462         but some part of me is saying "it shouldn't be here.."  At any
4463         rate, it fixes bug #80046.  Call IEditableObject.EndEdit after
4464         setting the value.
4466 2006-12-04  Chris Toshok  <toshok@ximian.com>
4468         * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
4469         to reassign the propertydescriptor.
4471 2006-12-04  Jackson Harper  <jackson@ximian.com>
4473         * TextBoxBase.cs:
4474         * TextControl.cs: Remove some unused variables.  Maybe this will
4475         patch things up between mike and I.
4476         - don't split lines less then one char wide, if the viewport is
4477         that small text won't be visible anyways.
4478         
4479 2006-12-04  Jackson Harper  <jackson@ximian.com>
4481         * TextBoxBase.cs: Default selection length is -1, need to do some
4482         more testing on windows to see when this is used for the property.
4483         - Redid the Lines [] property to that we properly remove soft line
4484         breaks
4485         - added support for preserving carriage returns
4486         -  CanUndo is not a variable like 'is undo enabled' it just returns
4487         true if there is undo operations available.
4488         - AppendText doesn't need to grab the last tag itself anymore,
4489         this happens automatically when we move the cursor.
4490         * TextControl.cs: Add CompoundActions to the undo class. This
4491         allows combining the other operations into one big option.  ie a
4492         paste will combine { delete old, insert new, move cursor }
4493         - Add InsertString undo operation
4494         - New method for deleting multiline text
4495         - Add carriage returns to lines. So we can preserve carriage
4496         returns when text is 'roundtripped'
4498 2006-12-04  Chris Toshok  <toshok@ximian.com>
4500         * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
4501         minimum 0.  Fixes the scrollbar exception in bug #80136.
4503 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4505         * MdiClient.cs: 
4506         * MdiWindowManager: Removed unused fields and methods.
4507         
4508 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4509         
4510         * StatusBar.cs: Update all panels when a AutoSize=Contents
4511         panel needs updating.
4512         
4513         * StatusBarPanel.cs: Remove twidth and only use initialize.
4514         Fixes #80031.
4515                 
4516 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4518         * Form.cs: When a form's MdiParent is set add it directly
4519         on top of the z-order in stead of relying on MdiClient's
4520         ActivateChild to do it. Fixes #80135.
4521         
4522         * MdiClient.cs: 
4523         - Remove original_order, mdi_child_list is already doing
4524         the same thing.
4525         - Create mdi_child_list on construction in
4526         stead of first use (avoids a few null checks).
4528         * MenuItem.cs: Use an already existing list of mdi children
4529         to get the correct order of children and remove the other
4530         redundant list.
4532 2006-12-04  Chris Toshok  <toshok@ximian.com>
4534         * PropertyGridView.cs: cached_splitter_location is only used in
4535         !DOUBLEBUFFER code.
4537         * PropertyGrid.cs: implement the ComComponentNameChanged event
4538         using Events, hoping that would fix the warning.  Looks like a
4539         compiler bug instead (#80144).
4541         * PropertyManager.cs: remove unused method.
4543 2006-11-04  Everaldo Canuto  <everaldo@simios.org>
4545         * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar, 
4546         include parentesis to fix expression evaluation. Fixes #79634.
4548 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
4549         
4550         * MenuAPI.cs:
4551         - Changes to fix behavior in Menu control, some reported in #80097
4552         and other detected during behavior refactory like a select event
4553         problems.
4554         - Remove unneded "if's" conditions.
4555         - Created an internal to flag when popup is active in control, we need 
4556         it because in .NET you can have menu active but without popup active
4557         when you active menu using popup without visible items.
4558         - Mimic win32 behavior for Select and Popup events.  
4559         - Dont open popup menu when you dont have visible subitems.
4560         - Do nothing when click on disabled menu item.
4561         - Some small changes to follow the coding style guidelines.
4562         - Unselect menu only when another control gives focus. Fixes #80097.
4563         - Remove unused code.
4564         
4565         * MenuItem.cs: internal VisibleItems method to check if menu
4566         theres visible subitems, it will be usefull to fix some 
4567         behavior in Menu control.
4568         
4569 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
4570         
4571         * Timer.cs: Tag property for 2.0 profile.
4572         
4573 2006-12-01  Chris Toshok  <toshok@ximian.com>
4575         [ after removing all warning suppressions, this cleans up over 100 warnings. ]
4576         
4577         * Win32DnD.cs: comment out some unused fields.
4579         * XplatUIWin32.cs: comment out some unused pinvokes, and remove
4580         some unused properties/methods.
4582         * XplatUIX11.cs: fix MousePosition so we override the base class's
4583         property instead of conflicting with it.
4585         * PictureBox.cs: comment out some unused fields
4587         * OSXStructs.cs: make some struct fields public.
4589         * XplatUIOSX.cs: comment out some unused pinvokes, and fix
4590         MousePosition so we override the base class's property instead of
4591         conflicting with it.
4593         * X11Dnd.cs: comment out some unused fields
4595         * X11DesktopColors.cs: fix some struct field visibility to quiet
4596         the compiler.
4598         * X11Dnd.cs: remove some debug code.
4600         * ThemeClearlooks.cs: comment out unused field.
4602         * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
4604         * ThemeGtk.cs: comment out some unused pinvokes.
4606         * Timer.cs: remove some unused fields.
4608         * ThemeClearlooks.cs: comment out unused field.
4610         * UpDownBase.cs: comment out unused field.
4612         * DataObject.cs: comment out unused field.
4614         * DataGridBoolColumn.cs: reomve unused field.
4616         * DataGrid.cs: remove unused field.
4618         * Cursor.cs: remove old ToBitmap code.
4620         * ControlPaint.cs: remove unused method.
4622         * ScrollBar.cs: remove unused fields.
4624         * ComboBox.cs: remove unused field, and chain up to
4625         AccessibleObject ctor.
4627         * ListBox.cs: remove unused field.
4629         * ButtonBase.cs: wrap a couple fields in NET_2_0.
4631         * GridEntry.cs: remove unused fields.
4633         * Binding.cs: remove unused fields.
4635         * AxHost.cs: remove unused method.
4637         * ContainerControl.cs: remove unused field.
4639         * ScrollableControl.cs: remove unused fields.
4641 2006-12-01  Chris Toshok  <toshok@ximian.com>
4643         * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
4644         the Where/WhereString stuff.  it's easy enough to CWL
4645         Environment.StackTrace.
4647         * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
4648         unused private fields.
4650 2006-12-01  Jackson Harper  <jackson@ximian.com>
4652         * TextControl.cs: Do not update the view while inserting multiline
4653         text. If we update the view we might wrap lines, before entering
4654         the new lines, which causes the new line insertion calculations to
4655         be totally fubared.
4656         - Remove an old TODO
4657         - Make debug output a little nicer
4658         
4659 2006-12-01  Chris Toshok  <toshok@ximian.com>
4661         * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
4663 2006-12-01  Chris Toshok  <toshok@ximian.com>
4665         [ fix the majority of the CS0108 warnings we've been suppressing ]
4666         
4667         * TreeView.cs: mark BackgroundImageChanged as 'new'.
4669         * ToolBar.cs: ImeMode just passes stuff to Control.  Rename Layout
4670         to "LayoutToolBar" to quiet mcs.
4671         
4672         * TabControl.cs: mark our ControlCollection class as 'new'.
4674         * TextBoxBase.cs: mark some events as 'new'.
4676         * Splitter.cs: TabStop is 'new'.
4678         * ControlBindingsCollection.cs: mark a few methods as new since
4679         they change the visibility from protected to public.
4681         * RadioButton.cs: DoubleClick -> base class, and remove unused
4682         HaveDoubleClick.
4684         * MonthCalendar.cs: ImeMode property -> base class, and mark many
4685         events as new.
4687         * NumericUpDown.cs: TextChanged -> base class.
4689         * CheckedListBox.cs: mark our ObjectCollection class as new to
4690         quiet mcs.
4692         * FolderBrowserDialog.cs: make HelpRequest event new and have it
4693         muck with the base class.
4695         * StatusBar.cs: fix some mcs warnings about Update being the same
4696         name as a base class method.
4698         * RichTextBox.cs: mark some events as new, and make them do things
4699         to the base class impl.
4701         * UserControl.cs: mark TextChanged as new, and have it manipulate
4702         base.TextChanged.
4704         * UpDownBase.cs: mark some things new.
4706         * CheckBox.cs: mark DoubleClick "new", and add some text about
4707         what we need to look at.
4709         * Panel.cs: make the events "new", and manipulate the base
4710         version.  these are just here for attributes.
4712         * AccessibleObject.cs: make owner private.
4714         * Control.cs: deal with AccessibleObject.owner being private.
4715         cache our own copy if we need it.
4717         * Button.cs: add "new" to the DoubleClickEvent.
4719         * ListBox.cs: no need to track our own has_focus here.  let
4720         Control.has_focus do it for us.  Also some other work to clear up
4721         warnings about not overriding base class methods of the same name.
4722         
4723         * ComboBox.cs: clear up some warnings about not override base
4724         class methods of the same name.
4726 2006-12-01  Chris Toshok  <toshok@ximian.com>
4728         * Form.cs: flag a few things as "new" to quiet some of the mcs
4729         warnings.
4731         * AxHost.cs: same.
4733         * PrintPreviewDialog.cs: same.
4735         * DataGridView.cs: fix a ton of corcompare warnings.  not all, but
4736         now DGV isn't so horrible on the class status page.  also, move
4737         all events to using System.ComponentModel.EventHandlerList.  my
4738         wrists hurt.
4740 2006-12-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4742         * MdiWindowManager.cs:
4743         - Set form to active mdi child if shown,
4744         and update the active mdi child to the next 
4745         remaining child in the z-order if the form is hidden.
4747         * Form.cs: 
4748         - Track if the form has been visible and if its 
4749         visibility is beeing changed, so that the MdiClient
4750         can properly decide the ActiveMdiChild. The MdiClient 
4751         cannot track this since the form can change visibility 
4752         before MdiClient is created.
4754         * MdiClient.cs:
4755         - Don't activate anything of the parent form is changing
4756         its visibility.
4757         - Rework ActiveMdiChild to only return visible mdi 
4758         children and take into account several other corner 
4759         cases.
4761 2006-12-01  Chris Toshok  <toshok@ximian.com>
4763         * IBindableComponent.cs: new 2.0 interface.
4765 2006-12-01  Gert Driesen  <drieseng@users.sourceforge.net>
4767         * DataGrid.cs: Font for caption area is bold by default.
4769 2006-12-01  Everaldo Canuto  <everaldo@simios.org>
4771         * Menu.cs: Tag property for 2.0.
4772         
4773 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
4775         * ThemeWin32Classic.cs: Adjust menu separator drawing. 
4776         
4777 2006-12-01  Chris Toshok  <toshok@ximian.com>
4779         * TreeView.cs: doh, the Begin* events should be
4780         TreeViewCancelEventHandler.
4782 2006-12-01  Chris Toshok  <toshok@ximian.com>
4784         * Form.cs: Form.ControlCollection already stores off the
4785         form_owner field.  don't access the base class's internal "owner"
4786         field.
4788         * Control.cs: make all the fields in Control.ControlCollection
4789         private.  there's no need for any internal fields here.
4791 2006-12-01  Chris Toshok  <toshok@ximian.com>
4793         * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
4794         OnHandleCreated.  Fixes bug #80109.
4796 2006-12-01  Chris Toshok  <toshok@ximian.com>
4798         * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
4799         SplitContainer.cs, Control.cs, StatusStrip.cs,
4800         DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
4801         NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
4802         DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
4803         DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
4804         Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
4805         LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
4806         MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
4807         TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
4808         PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
4809         DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
4811         do most of the work to convert our code over to use
4812         System.ComponentModel.Component.Events for
4813         adding/removing/dispatching events.
4816 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
4818         * DataGridView.cs: Fix an ArgumentNullException reported 
4819         twice today in IRC.
4821 2006-11-30  Mike Kestner  <mkestner@novell.com>
4823         * ComboBox.cs: fix the scrollbar mouse event forwarding in the 
4824         grabbed listbox.  Fixes #80036 and #80101.
4826 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
4828         * Message.cs: Changed ToString() to match MS.
4829         
4830 2006-11-30  Jackson Harper  <jackson@ximian.com>
4832         * TextBoxBase.cs: You can still change the selected text on a read
4833         only textbox.
4834         * TextControl.cs: Lower magic number for wrap calculations. This
4835         lets text get closer to the right (far) edge.
4837 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
4839         * Control.cs: Tweak 2.0 layout properties.
4840         * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
4841         * TextRenderer.cs: Add a new overload.
4842         * ToolStrip*: Huge amount of changes and new features.
4844 2006-11-30  Mike Kestner  <mkestner@novell.com>
4846         * ComboBox.cs: fixes for LargeChange and Maximum to get the 
4847         scroll range correct.  Fixes #79994.
4849 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
4851         * MdiWindowManager.cs: Update main form's text when
4852         a form is closed. (fixes #80038)
4853         
4854 2006-11-30  Everaldo Canuto  <everaldo@simios.org>
4856         * ToolBar.cs:
4857         - Fix an regression in ButtonSize.
4858         - Get ImeMode default value change to "Disable".
4859         - Get ShowTooltips default value change to true, default value is 
4860         "false" but after make a test in .NET we get "true" result as default.
4861         
4862 2006-11-29  Jonathan Pobst  <monkey@jpobst.com>
4864         * ToolStripDropDown.cs: Fix for SupportsTransparency change.
4866 2006-11-29  Chris Toshok  <toshok@ximian.com>
4868         * XplatUIWin32.cs (GetWindowTransparency): check return value of
4869         GetLayeredWindowAttributes.  if it's 0, return 1.0, as
4870         SetWindowTransparency hasn't been called.
4872 2006-11-29  Chris Toshok  <toshok@ximian.com>
4874         * Form.cs (set_TransparencyKey): only call SetWindowTransparency
4875         if it's supported.
4876         (set_AllowTransparency): reorder things a little so that the
4877         WS_EX_LAYERED style is removed properly.
4879 2006-11-29  Chris Toshok  <toshok@ximian.com>
4881         [ totally cosmetic eye-candy feature, fixes bug #80089 ]
4882         
4883         * Form.cs: only call the XplatUI transparency method (get/set) if
4884         SupportsTransparency says it's supported. Otherwise fallback to
4885         doing nothing (in the set case) or returning the instance field we
4886         cache (in the get case).
4888         * XplatUIStructs.cs: add TransparencySupport flag enum.
4889         
4890         * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
4891         change to SupportsTransparency.
4893         * XplatUIOSX.cs: stub out GetWindowTransparency, and return
4894         TransparencySupport.None from SupportsTransparency.
4896         * XplatUIX11.cs: Stub out GetWindowTransparency, and return
4897         TransparencySupport.Set from SupportsTransparency.
4899         * XplatUIWin32.cs: implement GetWindowTransparency calling
4900         GetLayeredWindowAttributes, and implement SupportsTransparency by
4901         checking whether or not both
4902         GetWindowTransparency/SetWindowTransparency are available
4903         entrypoints.  We need to do this since SetWindowTransparency is
4904         available as of win2k, but GetWindowTransparency requires winxp.
4905         yay win32 api.
4907         * XplatUI.cs: Add GetWindowTransparency, and change
4908         SupportsTransparency to allow for either/both Get/Set.
4910 2006-11-29  Chris Toshok  <toshok@ximian.com>
4912         * DataGrid.cs: keep from going into an infinite loop redrawing a
4913         datagrid that has no datasource.  Fixes bug #80033.
4915 2006-11-29  Chris Toshok  <toshok@ximian.com>
4917         * MenuItem.cs: fix the NRE when we assign text (and therefore call
4918         Invalidate) before the mainmenu has been assigned to a control.
4920 2006-11-29  Chris Toshok  <toshok@ximian.com>
4922         * DataGrid.cs: detect when we should be double the double click
4923         row/column autosize stuff, although that codepath has yet to be
4924         written.  part of the work for bug #79891.
4926 2006-11-29  Chris Toshok  <toshok@ximian.com>
4928         * Binding.cs (SetControl): fix unit test.
4930 2006-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4932         * PageSetupDialog.cs: Validate the margins and set them in
4933         PageSettings. 
4934         * NumericTextBox.cs: New class to mimic the behavior of the
4935         textboxes used in the printing dialogs.
4937 2006-11-29  Andreia Gaita  <avidigal@novell.com>
4938         
4939         * Form.cs: Revert previous change (remove call UpdateBounds
4940         from form constructor), because it messes with the handle creation
4941         order, and that one needs lots and lots of love.
4942         * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
4943         for valid printer and throw InvalidPrinterException if document
4944         is set but printer not valid), adding a MonoTODO. Once 
4945         handle creation is done properly, we can put this back in.
4947 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
4949         * MenuItem.cs: Create a invalidate method for menu item, to be
4950         calling from set text, it make text changes to imadiate update
4951         on screen. Fixes #80013. 
4952         
4953 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
4955         * ToolBar.cs: Fixes and simplify toolbar button layout, it 
4956         fixes bug #80070 and some other problem on toolbar buttons
4957         layout.
4959 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
4961         * ThemeWin32Classic.cs: Paint toolbar toggle button background 
4962         with dotted brush.      Fixes #79564
4963         
4964 2006-11-28  Andreia Gaita  <avidigal@novell.com>
4966         * Form.cs: Removed call to UpdateBounds on Form
4967         constructor, it was causing a call to CreateHandle
4968         before it was supposed to.
4969         * PrintControllerWithStatusDialog: Applied patch
4970         by Chris Toshok to hide controller when there are
4971         no printers available.
4972         PrintDialog.cs: initialize printer settings to 
4973         null - correct DefaultValues test #5
4974         * PrintPreviewControl.cs: Move PrintController
4975         initialization to GeneratePreview
4976         * PrintPreviewDialog.cs: 
4977         - Remove Preview generation     from Document_set(). It is 
4978         called on OnPaint
4979         - Throw InvalidPrinterException on CreateHandle if
4980         a Document is set but there are no printers or 
4981         printer is not valid.
4982         * ThemeWin32Classic: don't paint PrintPreviewControl
4983         if there is nothing to paint    
4985 2006-11-28  Miguel de Icaza  <miguel@novell.com>
4987         * Form.cs: Add another popular method.
4989         * TabPage.cs: ditto.
4991 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4993         * MenuItem.cs: Fixed a warning.
4994         * InternalWindowManager: Fixed a warning.
4996 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4998         * MenuItem.cs:
4999         - When cloning a menu also clone MdiList and clone the 
5000           window menu items properly (as the forms and menuitems
5001           are kept in an internal hashtable, these need updating 
5002           as well)
5003         - Rewrote the window menu code, menu items are added in the
5004           order the forms were added to their parent, and they are
5005           updated every time the window menu is shown (before the
5006           list was only generated once, in the current order of the
5007           forms, and would never be updated). A checkmark is shown
5008           next to the item corresponding to the active mdi child.
5010 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5012         * XplatUIStructs.cs: 
5013         - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
5014         
5015         * XplatUIWin32.cs: 
5016         - Added TME_NONCLIENT to TMEFlags.
5017         - Handles WM_NCMOUSEMOVE in GetMessage to 
5018           generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
5020         * MdiWindowManager:
5021         - Now merges mdi child menu to parent menu when maximized.
5022         - Recalculate NC areas of both mdi child and mdi parent. 
5023           Fixes #79757 (4).
5024           on window state and size changes.Fixes #79844 (3).
5025         - Handle WM_NCCALCSIZE to properly calculate borders.
5027         * Form.cs:
5028         - Add/remove to the mdi containers list of mdi children 
5029           in the order they are added.
5030         - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE 
5031           to the maximized mdi child.
5032         
5033         * InternalWindowManager.cs:
5034         - Only execute a click on the control buttons on the mouse up,
5035           not on the mouse down. Show the state of the button 
5036           (was only showing Normal state, never Pressed state). The
5037           pressed button now follows the mouse (if you click the Close 
5038           button and move the mouse over the Maximize button, the 
5039           Maximize button will be shown as pressed). Since Win32 does
5040           not generate WM_NCLBUTTONUP if you release the button outside
5041           of the nc area, we need to handle WM_NCMOUSELEAVE and treat
5042           it as a mouse up.
5043         
5044         * ThemeWin32Classic.cs:
5045         - Draw a missing border around mdi child forms. Fixes #79844 (2).
5047         * MdiClient.cs:
5048         - Added a list of forms which contains the order the forms are
5049           added to the mdi parent.
5050         - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
5051         - Handle WM_NCCALCSIZE to properly calculate the 3D border.
5052         - If the active form changes set the scrollbars to the top
5053           of the Z order, otherwise the form could hide them.
5054         - Scrollbars are now sized according to ClientSize, not 
5055           to Size, and they take into account the other scrollbar
5056           to determine maximum.
5057         
5058 2006-11-28  Rolf Bjarne Kvinge <RKvinge@novell.com>
5059         
5060         * XplatUI.cs:
5061         * XplatUIDriver.cs:
5062         * XplatUIX11.cs:
5063         * XplatUIWin32.cs:
5064         * XplatUIOSX.cs:
5065         - Added RequestAdditionalWM_NCMessages for windows to 
5066           opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
5067           Currently only implemented in XplatUIWin32.
5069 2006-11-27  Chris Toshok  <toshok@ximian.com>
5071         * Hwnd.cs: only add the hwnd to the windows hash in
5072         set_WholeWindow and set_ClientWindow if whole_window/client_window
5073         are not IntPtr.Zero.  also, remove the unused SetObjectWindow.
5075 2006-11-27  Mike Kestner  <mkestner@novell.com>
5077         * ComboBox.cs: remove redundant OnDropDown call.  It is called
5078         from the ComboListBox.ShowWindow code. Fixes #79969.
5080 2006-11-27  Chris Toshok  <toshok@ximian.com>
5082         * Hwnd.cs: remove the setters for ExposePending and
5083         NCExposePending - noone uses them.
5085 2006-11-27  Jackson Harper  <jackson@ximian.com>
5087         * TextControl.cs: new param for ReplaceSelection which determines
5088         whether we select the new selection, or set the cursor to the end
5089         of the new selection.
5090         * TextBoxBase.cs: Use new param for ReplaceSelection.  When
5091         pasting, select the new text.
5092         * RichTextBox.cs: Use new param for ReplaceSelection.
5094 2006-11-27  Jackson Harper  <jackson@ximian.com>
5096         * TextBoxBase.cs: Set the selection to the caret after the caret
5097         is moved, otherwise they get out of sync.
5099 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
5101         * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
5102         it fixes #80015
5104 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
5106         * ThemeWin32Classic.cs: 
5107         - Fix toolbar drop down arrow position.
5108         - Fix drop down appearance when ToolBar.Appearance is normal,
5109         it fixes #80018.
5110         
5111 2006-11-26  Gert Driesen  <drieseng@users.sourceforge.net>
5113         * ProgressBar.cs: GetStyle fixes for 2.0 profile.
5114         * Control.cs: Same.
5115         * UpDownBase.cs: Same.
5116         * ButtonBase.cs: Same.
5117         * ScrollBar.cs: Same.
5118         * TrackBar.cs: Same.
5119         * PictureBox.cs: Same.
5120         * UserControl.cs: Same.
5121         * Label.cs: Same.
5122         * ListControl.cs: Same.
5123         * TextBoxBase.cs: Same.
5124         * ListView.cs: Same.
5125         * RichTextBox.cs: Same.
5126         * TreeView.cs: Same.
5128 2006-11-25  Jordi Mas i Hernandez <jordimash@gmail.com>
5130         * PrintDialog.cs:
5131         - Text label for where 
5132         - Text label comment was not shown
5134 2006-11-23  Everaldo Canuto  <everaldo@simios.org>
5136         * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
5138 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
5140         * InternalWindowManager.cs: 
5141         - Handle WM_PARENTNOTIFY to activate the form
5142         if any child control is clicked.
5143         - The form is only sizable if not minimized.
5145         * MdiWindowManager.cs:
5146         - Save the IconicBounds if the form is moved.
5147         - Rework SetWindowState, now the window bounds 
5148         are stored only if the old window state is Normal.
5149         
5150         * MdiClient.cs:
5151         - In SetWindowStates store the old window state if 
5152         the window is maximized and restore window state if
5153         the window looses focus.
5154         - Don't handle any scrollbar value changes if 
5155         initializing the scroll bars. Fixes #79771.
5156         - Reworked ArrangeIconicWindows. Current algorithm
5157         tests bounds agains all other minimized windows, if
5158         any intersections create new bounds (going left to 
5159         right, bottom to top) and then test again. When 
5160         successful the bounds are saved and never computed
5161         again. Fixes #79774.
5163 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
5165         * InternalWindowManager.cs: Added HandleTitleBarUp.
5167 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
5169         * NumericUpDown.cs: In .NET 1.1, user entered text is still
5170         hexadecimal in ParseUserEdit.
5172         
5173 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
5175         * MdiWindowManager.cs: 
5176         - Handle a click on the form's icon to show the 
5177         system menu (when maximized). Fixes #79775.
5178         - Change the existing click handler for the form's
5179         icon when not maximized to show on MouseUp.
5180         Fixes #79776.
5182         * Form.cs: In OnResize only layout the mdi child's
5183         parent if it actually has a parent. Might not if
5184         the window is closing.
5187 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
5189         * MdiClient.cs: Ignore active MDI client for text of parent, if
5190         child has no text set.
5192 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
5194         * ToolBar.cs: Fixed ToString to match MS.
5196 2006-11-22  Andreia Gaita  <avidigal@novell.com>
5198         * NumericUpDown: 
5199         - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to 
5200         update inner values on set. Fixes #79966.
5201         - Override OnLostFocus to update value on NET 2. Fixes #79950.
5202         - Fix hexadecimal parsing.
5203         
5204         * UpDownBase: Override OnGotFocus and OnLostFocus to notify 
5205         parent. Fixes #79957
5207 2006-11-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5209         * Control.cs: After calling SetWindowsPos in SetBoundsCore 
5210         the actual size has to be queried, since if height /
5211         width is negative Win32 changes it to 0. 
5212         Fixes #79999 on Windows.
5213         
5214         * XplatUIX11.cs: Set height / width to 0 if negative
5215         in SetWindowPos. Fixes #79999 on Linux.
5216         
5217 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
5219         * ThemeWin32Classic.cs: Fix text redenring when button is
5220         pressed.
5222 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
5224         * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
5225         and later navigate by mouse. Fixes #79528.
5227 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
5229         * ToolBar.cs: Set default value for TabStop to false in
5230         constructor, it fixes remaining behavior of bug #79863.
5232 2006-11-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5234         * MdiWindowManager.cs:
5235         * InternalWindowManager.cs:
5236         - Moved a few methods specific to Mdi from 
5237         InternalWindowManager to MdiWindowManager.
5238         Fixes #79996.
5239         
5240 2006-11-21  Chris Toshok  <toshok@ximian.com>
5242         * XplatUIOSX.cs: stub out InvalidateNC.
5244         * XplatUIWin32.cs: implement InvalidateNC using the call I found
5245         at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
5247         * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
5249         * XplatUIDriver.cs: add InvalidateNC abstract method.
5251         * XplatUI.cs: add InvalidateNC.
5253 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
5255         * ToolBar.cs: Invalidate complete button area when pressed status 
5256         was changed.
5257         * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
5258         * ThemeWin32Classic.cs: Increase vertical and horizontal position 
5259         by 1 when button is pressed.
5261 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
5263         * ToolButton.cs: Invalidate middle of DropDown button when
5264         ToolBar theres DropDownArrows.
5265         * ThemeWin32Classic.cs: Change position of DropDown arrow and
5266         fix DropDown drawing operations.
5268 2006-11-20  Chris Toshok  <toshok@ximian.com>
5270         * NativeWindow.cs: fix the formatting of functions ('{' on the
5271         following line), and enable the thread exception dialog.
5273         * Application.cs: remove the duplicate exception catching from
5274         here.
5276 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
5278         * Toolbar.cs: Triggers button click event when click on icon
5279         of dropdown ToolBarButton. Fixes #79912.
5280         
5281 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5283         * Theme.cs:
5284         * ThemeWin32Classic.cs:
5285         - Added a property WindowBorderFont to enable themeing
5286           of mdi child windows' Text.
5287           
5288 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5290         * InternalWindowManager.cs:
5291         * Form.cs:
5292         * MdiClient.cs:
5293         * MdiWindowManager.cs: 
5294         - If mdi child is maximized, set mdi parent's
5295           text to "Parent - [Child]". Fixes #79770.
5296         - If there is any maximized mdi child windows, only the active 
5297           window (and any new windows) is maximized, the rest are normal.
5298         - On a WindowState change only save mdi child's window bounds 
5299           if the old window state was normal. Fixes #79774.
5300         - The scroll bars are now calculated on hopefully all
5301           necessary events. Fixed #79771 / #79844->6 / #79906.
5302         - MdiClient.SizeScrollBars() now takes into account docked 
5303           controls in the parent when calculating available space.
5304         - InternalWindowManager now always repaints the entire title
5305           area. Fixes #79844->1/4/5.
5306         - Added RequestNCRecalc on mdi child windowstate changes.
5307           Fixes #79772.
5309 2006-11-20  Mike Kestner  <mkestner@novell.com>
5311         * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
5312         in the MouseUp handler of the listbox and move the return handling
5313         code to FireMouseUp to avoid scrolling on ups.  Fixes #79952.
5315 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
5317         * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855. 
5319 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
5321         * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
5322           working in 1.2.x anymore. So, updated.
5324 2006-11-19  Gert Driesen  <drieseng@users.sourceforge.net>
5326         * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
5327         NumberGroupSeparator of current culture instead of assuming en-US.
5328         Fixed bug #79967.
5330 2006-11-17  Mike Kestner  <mkestner@novell.com>
5332         * Control.cs: Add the concept of implicit bounds setting so that
5333         dock/undock round trips preserve explicitly set size/locations.
5334         Fixes #79313.
5336 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
5338         * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
5339           can't handle those filters. (Fixes bug #79961)
5341 2006-11-17  Chris Toshok  <toshok@ximian.com>
5343         [ fixes the exit/crashes associated with #79835.  it's clearly
5344         suboptimal though, we need to figure out a better way to solve
5345         this. ]
5346         
5347         * PrintPreviewControl.cs: deal with the new invalid printer
5348         exceptions.
5350         * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
5351         and return false (so CommonDialog.ShowDialog doesn't actually show
5352         the form.)
5354         * PrintDialog.cs: enable/disable the Ok button depending on
5355         whether or not the printer is valid.
5357         * CommonDialog.cs (ShowDialog): only actually show the form if
5358         RunDialog returns true.
5360 2006-11-17  Jackson Harper  <jackson@ximian.com>
5362         * TextControl.cs: When soft splitting a line, mark it as a soft
5363         split line. Also carry over the current line break to the next
5364         line.
5366 2006-11-17  Chris Toshok  <toshok@ximian.com>
5368         * XplatUIX11.cs: when scrolling a window with an invalid area, we
5369         only want to shift the part of the invalid area that overlaps the
5370         area we're scrolling.  we also don't want to clear the invalid
5371         area unless the invalid area was entirely contained within the
5372         scrolling area.
5374 2006-11-16  Chris Toshok  <toshok@ximian.com>
5376         * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
5377         also make sure to free the memory returned by XGetWindowProperty
5378         in GetText().
5380         * X11Structs.cs: remove the TimerEvent stuff, it's unused.
5382 2006-11-16  Chris Toshok  <toshok@ximian.com>
5384         * XplatUI.cs: add a new super secret way to get at the totally
5385         unsupported X11 backend.
5387 2006-11-16  Gert Driesen  <drieseng@users.sourceforge.net>
5389         * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
5391 2006-11-16  Jackson Harper  <jackson@ximian.com>
5393         * TreeView.cs: Allow more explicit setting of top node position
5394         for scrollbars. Slower algo, but more accurate.
5395         - CollapseAll should maintain the current top node.
5396         * TextBoxBase.cs: When positioning the caret, use the line, pos
5397         method, since the x, y method does not grab the correct tag, and
5398         the caret height never gets set correctly. (Maybe I should just do
5399         away with the caret having its own height, and always use the
5400         carets current tag for height).
5402 2006-11-16  Jonathan Pobst  <monkey@jpobst.com
5404         [Fixes 79778, 79923]
5406         * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
5407         Parent to the FosterParent instead.
5409 2006-11-16  Jackson Harper  <jackson@ximian.com>
5411         * TreeView.cs: Need to recalc the topnode when we expand or
5412         collapse. The scrolling methods can't handle this on their own,
5413         since they use differences between the last scroll position, and
5414         those difference get completely messed up since we are expanding
5415         nodes.  This problem should probably be fixed in the scrolling
5416         methods, so they can figure out exactly where they are, but this
5417         will slow things down a little.
5418         * ThemeWin32Classic.cs: Special case for groupboxes with empty
5419         strings, makes nunit-gui look a lot nicer.
5421 2006-11-16  Chris Toshok  <toshok@ximian.com>
5423         * XplatUIX11.cs: nasty, nasty, nasty changes required because of
5424         the broken multithreaded event handling we have in here.  File
5425         this entry under "Why we should move to the new X11 backend".
5427         Any thread can make it into UpdateMessageQueue, which gets events
5428         from the X socket - some of which could belong to hwnds being
5429         managed by a different thread.  We can also have multiple threads
5430         in UpdateMessageQueue at the same time, with each one reading from
5431         the X socket.  This leads to many problems, with the following
5432         solutions:
5434         We can't use hwnd.Queue.Enqueue anywhere in here and must use
5435         EnqueueLocked.
5437         The MotionNotify compression we do can't work across threads
5438         (without locking the entire queue, perhaps) since we call
5439         hwnd.Queue.Peek, so we just punt and don't compress motion events
5440         unless the owning thread is the one which got the X event.
5442         ConfigureNotify is another fun one, since it modifies the hwnd's
5443         bounds and then enqueues the event.  We add a lock to Hwnd which
5444         is held when setting configure_pending to true (and enqueuing the
5445         event).
5447         There is a race wrt the wake socket.  we need to make sure that
5448         only 1 thread is waiting on that socket, or else a thread could
5449         sleep waiting for data that never comes.  It's difficult (but not
5450         impossible) to make happen, because it seems to require something
5451         like the following:
5453             1. Thread 1 polls on wake_receive
5454         
5455             2. poll returns saying there's data to be read on
5456                wake_receive.
5457         
5458             3. Thread 2 polls on wake_receive and immediately returns
5459                saying there's data to be read.
5461             4. Thread 2 reads the wakeup byte from wake_receive
5463             5. Thread 1 attempts to read the wakeup byte from
5464                wake_receive.
5466             6. Thread 2 exits (due to a form closing, perhaps).
5468             7. Thread 1 blocks forever.
5469         
5470         Fun, eh?
5472         Fixing the Expose handling isn't done yet, and the races inherent
5473         in that piece of code are responsible for the drawing mistakes you
5474         see when generating expose events in a MT app (like NPlot).  This
5475         one is the likely to be the hardest to bandaid, and it doesn't
5476         appear to cause anything but drawing problems.  The other issues
5477         caused apps to exit or hang.
5479         * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
5480         called from a different thread than the one that should be calling
5481         these functions.
5483         * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
5485 2006-11-15  Chris Toshok  <toshok@ximian.com>
5487         * Application.cs: null out the context's MainForm when we exit
5488         RunLoop.  Fixes a newly checked in unit test as well as the last
5489         ODE from bug #79933.
5491 2006-11-15  Chris Toshok  <toshok@ximian.com>
5493         * Form.cs (set_Owner): allow a null value so we can clear the
5494         form's owner.
5495         (Dispose): set all our owned_form's Owner properties to null, and
5496         clear the owned_forms collection.
5497         (WM_CLOSE): clean up this a little bit.. still not right though.
5499         * ApplicationContext.cs: OnMainFormClosed should only call
5500         ExitThreadCore if the main form isn't recreating.  Fixes unit
5501         test.
5503 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
5505         [Fixes 78346]
5507         * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
5509 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
5511         [Fixes 79433]
5513         * Hwnd.cs: Add a flag to show a window, but not activate it, to 
5514         keep popup window types from stealing focus from the main form
5515         on Windows.
5517         * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
5519         * MenuAPI.cs: Set above flag to true.
5521 2006-11-15  Chris Toshok  <toshok@ximian.com>
5523         * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
5524         the button being released is not in wParam.
5526 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
5528         * Form.cs: Add the released button to MouseEventArgs.Button
5529         for the OnMouseUp call to the MenuTracker.  Fixes menu clicking
5530         on Win32.
5532 2006-11-15  Chris Toshok  <toshok@ximian.com>
5534         * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
5535         GetText().  untested because it's unused in our implementation.
5536         Control.Text always caches the text, even if
5537         ControlStyles.CacheText is not set.
5539         fixes bug #79939.
5541 2006-11-15  Chris Toshok  <toshok@ximian.com>
5543         [ fixes #79933 ]
5544         
5545         * Form.cs: in Close() don't do anything after we send the WM_CLOSE
5546         message.  no hiding, no disposing.
5548         in the WM_CLOSE handler, hide the form if it's modal.
5550 2006-11-15  Chris Toshok  <toshok@ximian.com>
5552         * XplatUIX11.cs: use AddExpose instead of sending a message.
5553         fixes textbox border drawing.
5555 2006-11-15  Chris Toshok  <toshok@ximian.com>
5557         * PropertyGridView.cs: keep from crashing on mouse move/down when
5558         the property grid is empty.
5560 2006-11-14  Jackson Harper  <jackson@ximian.com>
5562         * TextControl.cs: Make PageUp and PageDown more like the MS
5563         versions.
5564         * TextBoxBase.cs: When we set the text property position the
5565         cursor at the beginning of the document.
5567 2006-11-14  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5569         * Form.cs: if a mdi child's WindowState has changed
5570         before it's creation, it would display wrong control
5571         buttons.
5572         
5573 2006-11-14  Alexander Olk  <alex.olk@googlemail.com>
5575         * TreeView.cs: De-uglify TreeView checkbox checkmarks.
5576           (Fixes bug #79927)
5578 2006-11-14  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5580         * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that 
5581         the window gets to paint its borders even if the window is
5582         getting smaller.
5583         
5584         * Form.cs: on a WM_NCPAINT invalidate the entire menu, 
5585         otherwise the old control buttons would still be painted 
5586         if the window gets bigger.
5587         
5588         * PaintEventArgs.cs: add an internal method so that the clip 
5589         rectangle can be changed.
5590         
5591 2006-11-13  Chris Toshok  <toshok@ximian.com>
5593         [ fixes bug #79745 ]
5594         
5595         * NotifyIcon.cs: lots of cleanup.
5597         * X11Structs.cs: add an enum for XEMBED messages.
5599         * XplatUIX11.cs: reindent one of the giant switch statements, it
5600         was taking up an additional tab stop, and this file is already way
5601         too wide for my laptop's screen.
5603         Also, add handling for the XEmbed EMBEDDED_NOTIFY message.  When
5604         we get it, resize the hwnd to the WMNormalHints max_width/height.
5606 2006-11-13  Jackson Harper  <jackson@ximian.com>
5608         * TextBoxBase.cs: Compute the value changes for the mouse wheel
5609         teh simple way.
5611 2006-11-13  Chris Toshok  <toshok@ximian.com>
5613         * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
5614         #79898.  force a reference to the Region to stick around so the
5615         unmanaged object isn't collected (rendering our handle in the MSG
5616         stale).
5618 2006-11-13  Chris Toshok  <toshok@ximian.com>
5620         * XplatUIX11.cs: fix #79917 for window managers which support
5622         using XStoreName on the raw utf8, and we need to convert to
5623         COMPOUND_TEXT if it's non-latin1.
5625 2006-11-13  Chris Toshok  <toshok@ximian.com>
5627         * Form.cs (set_DialogResult): we need to set closing to false if
5628         we're setting our result to None.  fixes bug #79908.
5630 2006-11-13  Jackson Harper  <jackson@ximian.com>
5632         * TextControl.cs: When formatting text, compute the adjusted tag
5633         lengths correctly, using FindTag for the end tag instead of trying
5634         to figure it out outselves.
5635         * TreeNode.cs: Use ActualItemHeight, which is the actual height of
5636         the item, ItemHeight doesn't work, because trees with large
5637         imagelists use those for their height
5638         * TreeView.cs: ActualItemHeight factors in the image height
5639         - compute left edge of checkboxes correctly
5640         - when expanding/collapsing move the bottom down one pixel, so we
5641         aren't moving part of the node
5643 2006-11-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5645         * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
5646         stack in PaintEventStart so that it won't get disposed by the gc
5647         before reaching PaintEventEnd.
5649 2006-11-13  Jackson Harper  <jackson@ximian.com>
5651         * TextBoxBase.cs: Don't select the word if we are on a line with
5652         no text.
5653         - We don't need to position the caret on mouse up, since the mouse
5654         move handler should be doing this
5655         - When double clicking a blank line, the caret is advanced to the
5656         next line.
5658 2006-11-13  Gert Driesen  <drieseng@users.sourceforge.net>
5660         * TreeNodeCollection.cs: Avoid duplicating indexer code.
5662 2006-11-12  Gert Driesen  <drieseng@users.sourceforge.net>
5664         * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
5665         Fixes part of bug #79910.
5667 2006-11-11  Alexander Olk  <alex.olk@googlemail.com>
5669         * ColorDialog.cs: Fix a NRE when adding a color to custom colors
5670           (bug #79903). Some minor string updates to match ms.
5672 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
5674         * FileDialog.cs: Don't add an extension if the filename
5675           already ends with that extension.
5677 2006-11-10  Jackson Harper  <jackson@ximian.com>
5679         * TreeView.cs: Use the currently highlighted node for the
5680         BeforeSelect event.
5681         * TextBoxBase.cs: There is no need to expand selection on
5682         MouseMove.
5683         - CanUndo means 'is there any undo operations', not 'is undo
5684         allowed on this textcontrol. Fixed ClearUndo unit test.
5686 2006-11-10  Andreia Gaita  <shana.ufie@gmail.com>
5688         * Button.cs: only perform click when button is Selectable (so as 
5689         not to activate default buttons when they're disabled)
5690         
5691         * Control.cs: Rewrite of the SelectNextControl and related 
5692         methods. HandleClick now selects next control if the current one
5693         is being disabled.
5694         
5695         * Form.cs: OnActivated selects next active control only if Load 
5696         has already occurred. If Load hasn't run, there's no point in 
5697         selecting here, Load might change the state of controls.
5698         
5699         * FocusTest.cs: Tests marked as working again for these fixes
5701 2006-11-10  Chris Toshok  <toshok@ximian.com>
5703         * XplatUIX11.cs: a couple of fixes.
5705         - use XInternAtoms with almost all the atoms we need to register,
5706         instead of many, many calls to XInternAtom.  should help a bit on
5707         startup time, at the expense of making the code look a little
5708         worse.
5710         - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
5711         isn't reparented (which seems to be a clue that we're running fon
5712         compiz) and they have an Owner form.  This fixes the tool windows
5713         in paint.net when running under compiz.
5715         - when setting the opacity of a window, support both the case
5716         where the window has been reparented and also when it hasn't been.
5717         Since compiz/beryl doesn't seem to reparent windows, and these are
5718         the only window managers which support translucency, I'm not sure
5719         why we need the hwnd.reparented case at all.. but leave it in.
5720         now we get translucent windows in paint.net under compiz/beryl.
5722 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
5724         * FileDialog.cs: Always return the value for FilterIndex that
5725           was set. Internally convert it to values that make sense.
5727 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
5728         
5729         * ThemeWin32Classic.cs: Fix drowp down arrow borders.
5731 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
5733         * Toolbar.cs: Change default value of DropDownArrows to true, the 
5734         signature still using false to make it compatible with MS but the 
5735         initial value is true. Fixes #79855.
5737 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
5739         * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
5740           only available on Linux.
5742 2006-11-09  Everaldo Canuto  <everaldo@simios.org>
5744         * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
5745         reduce number of calls to redraw method during toolbar creation.
5747 2006-11-09  Mike Kestner  <mkestner@novell.com>
5749         * ListView.cs : raise SelectedIndexChanged when an item is selected
5750         programmatically via the Item.Selected property.  Gert's nice 
5751         ListViewSelectedIndexChanged test fixture now runs clean.
5753 2006-11-09  Mike Kestner  <mkestner@novell.com>
5755         * ListView.cs : raise SelectedIndexChanged when a selected item is
5756         removed from the item collection using Remove or RemoveAt.
5758 2006-11-09  Mike Kestner  <mkestner@novell.com>
5760         * ListView.cs : raise SelectedIndexChanged once per selected item
5761         for compat with MS.  Fixes #79849+.
5763 2006-11-09  Chris Toshok  <toshok@ximian.com>
5765         * TabControl.cs: initialize row_count to 0, and set it to 1 when
5766         we need to (if we have any tab pages).  Fixes unit test.
5768 2006-11-09  Chris Toshok  <toshok@ximian.com>
5770         * Label.cs (CalcPreferredWidth): if Text == "", our preferred
5771         width is 0, not 3.  Fixes a unit test.
5773 2006-11-09  Mike Kestner  <mkestner@novell.com>
5775         * ListView.cs : use Implicit scrollbars so that focus isn't 
5776         stolen from the listview when they are clicked. Fixes #79850.
5778 2006-11-09  Chris Toshok  <toshok@ximian.com>
5780         * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
5781         have a root item.  Fixes #79879.
5783 2006-11-09  Alexander Olk  <alex.olk@googlemail.com>
5785         * FileDialog.cs:
5786           - Fix ToString ()
5787           - An ArgumentException is now thrown if a wrong filter
5788             is applied (matches ms). The previous filter doesn't change
5789             anymore if an exception is thrown.
5790           - Changing the FileName property also affects FileNames
5791         * ColorDialog.cs: The length of the CustomColors array is always
5792           16. It doesn't matter if we use a smaller array or null to update
5793           or change the custom colors property.
5794         * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
5795           for RootFolder if we get a undefined value.
5797 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5799         * StatusBarPanel.cs: 
5800         - Width is set to MinWidth if Width is smaller than
5801         MinWidth. Fixes #79842.
5802         - MinWidth now always overrides Width (MSDN says MinWidth
5803         is set to Width when AutoSize = None, but they do not 
5804         behave like that).
5805         - Style has now the the correct default value.
5806         
5807 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5809         * TrackBar.cs: 
5810         - The control is completely invalidated on 
5811         Got/LostFocus to draw the focus rectangle correctly.
5812         - When AutoSize then height is always 45 (width for 
5813         vertical controls).
5814         
5815         * ThemeWin32Classic.cs: The TrackBar thumb is now centered
5816         on the mouse when moved and it doesn't move when grabbed
5817         until the mouse moves as well. Also fixed some wrong 
5818         calculations when clicking on the thumb (control thought
5819         click was outside of thumb and didn't grab it).
5820         Fixes some of the issues in #79718.
5822 2006-11-08  Everaldo Canuto  <everaldo@simios.org>
5824         * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
5826 2006-11-08  Chris Toshok  <toshok@ximian.com>
5828         * PropertyGridView.cs: only call ToggleValue if the item is not
5829         readonly.
5831 2006-11-08  Jackson Harper  <jackson@ximian.com>
5833         * TextBoxBase.cs: The RichTextBox and textbox have very different
5834         word selection methods.  Implement the textbox's simple word
5835         selection here, and let the RichTextBox override and provide it's
5836         own.
5837         - Don't do extra selection on mouseup
5838         * RichTextBox.cs: Use the documents word selection algorithm, I
5839         think ideally, this function will be pulled into the
5840         RichTextBox.cs code someday.
5842 2006-11-08  Chris Toshok  <toshok@ximian.com>
5844         * RootGridEntry.cs: new class to represent GridItemType.Root.
5846         * CategoryGridEntry.cs: reformat, and add boilerplate.
5847         
5848         * GridEntry.cs: remove the UIParent stuff - turns out .Parent
5849         returns the UI parent anyway, and we need special handling to
5850         implement the GetTarget method in the face of it.  Also, implement
5851         Select().
5853         * PropertyGrid.cs, PropertyGridView.cs: a number of fixes.  create
5854         a root grid item, and use that instead of PropertyGrid.grid_items.
5855         Also, make use of TypeConverters (and add limitted support for
5856         ICustomTypeDescriptors) when initially populating the grid.
5857         Arrays now show up more or less properly.
5859 2006-11-08  Chris Toshok  <toshok@ximian.com>
5861         * Application.cs: set the modal dialog to non modal after we close
5862         it.  Fixes bug #79866.
5864 2006-11-08  Jackson Harper  <jackson@ximian.com>
5866         * TextControl.cs: When combining lines carry over the line end
5867         style from the end line.
5868         - Invalidate the selected area when setting it, if it is visible.
5869         * TextBoxBase.cs: Only rich text box can do full line selects.
5870         - Make sure to set the cursor position when there is a click,
5871         otherwise two clicks in separate areas could cause a large chunk
5872         to be selected.
5874 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
5876         * Toolbar.cs: Release flat button borders when Toolbar lost focus. 
5877         Fixes #79863.
5879 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
5881         * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
5882         time. Remove tooltips when ToolButton click events.  Fixes #79856.
5884 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
5886         * MenuAPI.cs: Ignore right click for menu actions and fixes
5887         menu border when clicked.  Fixes #79846.
5889 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
5891         * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
5892         MouseState after create wParam for message, this fixes mouse button 
5893         equal none in mouse up events.
5894         
5895 2006-11-07  Andreia Gaita  <shana.ufie@gmail.com>
5897         * Control.cs : Focus() now calls Select to set the Container's
5898         Active Control and to give it focus. To avoid infinite recursion
5899         (because ActiveControl also calls Focus at one point), a check 
5900         is made in Focus with the help of a new internal variable
5901         is_focusing.
5903 2006-11-07  Mike Kestner  <mkestner@novell.com>
5905         * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
5906         if there's a selection.  Fixes #79849.
5908 2006-11-07  Gert Driesen  <drieseng@users.sourceforge.net>
5910         * PropertyGrid.cs: Avoid fixed height of help description label.
5911         Fixes part of bug #79829.
5913 2006-11-07  Chris Toshok  <toshok@ximian.com>
5915         * XplatUIX11.cs: fix #79790 again, by using the
5916         _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
5918 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
5920         * ToolBar.cs: Fix left click checking.
5922 2006-11-07  Chris Toshok  <toshok@ximian.com>
5924         * ProgressBar.cs: fix a typo in ToString().  fixes a unit test.
5926 2006-11-07  Chris Toshok  <toshok@ximian.com>
5928         * RelatedPropertyManager.cs: set property_name in our ctor.  fixes
5929         PropertyManager unit tests.
5931         * PropertyManager.cs: make property_name internal.
5933 2006-11-07  Chris Toshok  <toshok@ximian.com>
5935         * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
5936         pass a unit test.  Also, don't set image_index to anything in
5937         response to setting the ImageList property.
5939 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
5941         * ToolBar.cs: Ignore click events when mouse button is not a
5942         left button, only accepts other button for dropdown menus.  
5943         Fixes #79854.
5945 2006-11-07  Chris Toshok  <toshok@ximian.com>
5947         * DataGrid.cs: make the back and parent row buttons a little less
5948         ugly.
5950 2006-11-07  Jackson Harper  <jackson@ximian.com>
5952         * TextBoxBase.cs: When converting to Text don't put line breaks in
5953         for soft line breaks.
5954         * TextControl.cs: There is an initial "fake" line in the document,
5955         this is now a soft break line, so that an extra line feed doesn't
5956         get added to the end of documents.
5958 2006-11-07  Chris Toshok  <toshok@ximian.com>
5960         [ fix bug #79778 ]
5961         
5962         * CurrencyManager.cs: if the list is readonly, don't bother
5963         checking if IBindingList.AllowNew is true.
5965         * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
5966         for non-DataRowView datasources..  or rather, make it not crash.
5967         (DataGridPaintRelationRow): make sure we limit the row painting to
5968         the area not covered by the row header, and make our cell width at
5969         least large enough to cover the relation area.  This allows grids
5970         that have relations but no rows to render correctly.
5971         (DataGridPaintRowContents): same type of changes here.
5972         (SetDataSource): move back to always calling
5973         CalcAreasAndInvalidate.  this fixes a crash/drawing problem when
5974         navigating back through relations.
5975         (HitTest): handle the case where we have no cells but have
5976         relations.  Right now we generate a hit in cell 0 of whatever the
5977         row is, not sure if this is strictly correct, but it works for our
5978         purposes.
5979         
5980         * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
5981         bother doing anything.
5983 2006-11-07  Jonathan Pobst  <monkey@jpobst.com>
5985         * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
5986         early version of StatusStrip.  Not responsible for eaten
5987         application or firstborn children.
5989 2006-11-06  Chris Toshok  <toshok@ximian.com>
5991         * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
5992         call GetTabRect with a -1 index.  Fixes #79847.
5994 2006-11-06  Jackson Harper  <jackson@ximian.com>
5996         * TreeNodeCollection.cs: Update scrollbars after clearing.
5998 2006-11-06  Chris Toshok  <toshok@ximian.com>
6000         * NumericUpDown.cs: fix the ToString method for some unit test
6001         love.
6003 2006-11-06  Chris Toshok  <toshok@ximian.com>
6005         * PropertyGrid.cs:
6006         - set the initial SelectedGridItem if we can.
6008         - Exclude non-mergable properties only if we're merging > 1
6009         object.  Merging 1 object isn't really merging, obviously.
6011         - Handle PropertySort.NoSort just like Alphabetical, which is
6012         wrong of course, but at least gets things on the screen.
6013         
6014         * PropertyGridView.cs:
6015         - Add method "FindFirstItem" which finds the first property grid
6016         item, so we can select it by default.
6018         - make use of GridEntry.CanResetValue.
6020         - Don't call RedrawBelowItemOnExpansion here anymore, the
6021         individual GridEntry's will do that.
6023         - Remove the ITypeDescriptorContextImpl internal class.
6024         
6025         * GridEntry.cs:
6026         - this class needs to implement ITypeDescriptorContext, as it's
6027         what MS's PropertyDescriptorGridEntry does, which means we can
6028         remove the ITypeDescriptorContextImpl internal class from
6029         PropertyGrid.cs.  This fixes the crashing portion of bug #79829.
6031         - keep a reference to our PropertyGridView, and move the call to
6032         RedrawBelowItemOnExpansion here from PGV.  This means
6033         programmaticly setting Expanded actually does something visible.
6035         - add a CanResetValue() function which takes into account our
6036         possibly multiple "selected_objects" in the merged case.  Shifting
6037         PropertyGridView to use this method fixes another unreported
6038         crasher found running the test for #79829.
6040         - when Top or Bounds is updated, make sure the PropertyGridTextBox
6041         is updated to reflect this.
6043         * CategoryGridEntry.cs: the ctor takes the PGV now.
6044         
6045 2006-11-06  Jackson Harper  <jackson@ximian.com>
6047         * TextControl.cs: These are 1 based.
6048         * TextBoxBase.cs: When setting the selected text, don't change the
6049         selected text tags, this is done by ReplaceText, just position the
6050         cursor at the end of the new text.
6052 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
6054         * ListView.cs: Allow label edit only when, when LabelEdit is
6055           set to true.
6057 2006-11-06  Jackson Harper  <jackson@ximian.com>
6059         * TextControl.cs: If a suitable wrapping position isn't found,
6060         just wrap right in the middle of a word.
6062 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
6064         * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
6065           bug #79820.
6067 2006-11-06  Jackson Harper  <jackson@ximian.com>
6069         * TreeView.cs: Can't use the VisibleCount property when setting
6070         scrollbar heights, because this doesn't take into account whether
6071         or not the horz scrollbar just came visible.
6073 2006-11-05  Everaldo Canuto  <everaldo@simios.org>
6075         * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
6076         activated.  Fixes #79369, #79832.
6078 2006-11-05  Alexander Olk  <alex.olk@googlemail.com>
6080         * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
6081           had to remove support for links that point to a directory. FileInfo
6082           returns no usefull information (means, the directory they point to)
6083           for such links. Replaced some empty string ("") with String.Empty.
6085 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
6087         * TreeNodeCollection.cs: To match MS, in 1.0 profile throw 
6088         NullReferenceException when attempting to remove node that is not in
6089         collection. Throw NullReferenceException when null is passed to 
6090         Remove. Allow first element of the collection to be removed. Fixes
6091         bug #79831.  In GetEnumerator ().Current return null if positioned 
6092         before the first element of the collection. In GetEnumerator ().Reset,
6093         position before first element of the collection.
6095 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
6097         * PropertyGrid.cs: To match MS, remove default title and description
6098         for panel. Fixed tooltips for Categorized and Alphabetic toolbar
6099         buttons.
6101 2006-11-04  Chris Toshok  <toshok@ximian.com>
6103         * Theme.cs: add a Clamp method, just for kicks.
6105         * ThemeWin32Classic.cs: clamp all color components to [0..255].
6107 2006-11-04  Chris Toshok  <toshok@ximian.com>
6109         * Form.cs: if the form isn't visible, Close() does nothing.
6111 2006-11-03  Chris Toshok  <toshok@ximian.com>
6113         * Form.cs (Close): if the form is modal, don't Dispose of it, only
6114         Hide it.
6115         (WndProc): don't Dispose after handling the WM_CLOSE message.
6117         * Application.cs (RunLoop): toplevels is a list of Forms, so treat
6118         them as such, instead of using casts from Control to Form.  Also,
6119         don't Dispose of the modal dialog when we fall out of the loop -
6120         Close() it instead.
6122         fixes bug #79813.
6124 2006-11-03  Chris Toshok  <toshok@ximian.com>
6126         * Control.cs (Dispose): only go through the dispose thing if we're
6127         @disposing, and we haven't already been disposed.  Fixes bug
6128         #79814.
6130         * Form.cs: no reason to call "base.Dispose()" here instead of
6131         "Dispose()".
6133 2006-11-03  Mike Kestner  <mkestner@novell.com>
6135         * ComboBox.cs : use ToString instead of casts in AddItem for
6136         sorting functionality.  Fixes #79812.
6138 2006-11-03  Chris Toshok  <toshok@ximian.com>
6140         * Application.cs: pave the way for actually using the thread
6141         exception dialog.  it's ifdefed out at the moment.
6143 2006-11-03  Chris Toshok  <toshok@ximian.com>
6145         * ThreadExceptionDialog.cs: until we get a better layout, actually
6146         hide the details textbox and label when we shouldn't see them.
6148 2006-11-03  Jackson Harper  <jackson@ximian.com>
6150         * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
6151         multiline textboxes anymore.  This method also determines the
6152         width/height of a textboxes canvas area.
6153         - Sorta a revert of the last patch.  For multiline just position
6154         the controls, then bail.  This way the scrollbar width won't be
6155         altered.
6157 2006-11-03  Everaldo Canuto  <everaldo@simios.org>
6159         * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
6160         it dont need.  Fixes #79537.
6162 2006-11-02  Jackson Harper  <jackson@ximian.com>
6164         * X11Dnd.cs: We always allow copy, since XDND implies Copy.  Also
6165         send the status after firing the DndOver event.
6167 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6169         * TrackBar.cs: Now orientation only switches height / width if
6170         the control's handle is created (Win32 does it like this). Also 
6171         fixed a typo in ToString() for a test to pass, changed the 
6172         exception thrown in set_LargeChange and set_SmallChange to 
6173         match Win32 behaviour, and added TrackBar tests to the unit 
6174         tests.
6176 2006-11-02  Chris Toshok  <toshok@ximian.com>
6178         * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
6179         not _NET_WM_STATE_NO_TASKBAR.
6181 2006-11-02  Jackson Harper  <jackson@ximian.com>
6183         * TextControl.cs: Increment count by one, since in the update view
6184         count - 1 is used.
6186 2006-11-02  Jackson Harper  <jackson@ximian.com>
6188         * TextBoxBase.cs: Use client rectangle not bounds for checking if
6189         the mouse is in the client rectangle (duh).
6191 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6192         
6193         * TrackBar.cs: Fixed trackbar jumping around when clicking
6194         on it - the trackbar was not detecting correctly at which
6195         side of the thumb the click was done. (fixes #79718)
6197 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
6199         * ListBox.cs: scroll visible area when change SelectedIndex to
6200         a non visible area.  Fixes #79481.
6202 2006-11-01  Jackson Harper  <jackson@ximian.com>
6204         * TextControl.cs: When replacing the selection move the selection
6205         start/end/anchor to the end of the new text.
6207 2006-11-01  Jackson Harper  <jackson@ximian.com>
6209         * XplatUIWin32.cs: When setting the parent change the controls
6210         visibility to it's visibility flag, not to it's old parents
6211         visibility (.Visible walks the parent chain).
6213 2006-11-01  Chris Toshok  <toshok@ximian.com>
6215         * XplatUIX11.cs: revert the #79790 fix, as the simple.
6216         XSetTransientForHint fix breaks paint .net's tool windows.  more
6217         work needed for that one.
6219 2006-11-01  Chris Toshok  <toshok@ximian.com>
6221         * ScrollBar.cs: throw ArgumentException instead of Exception in
6222         LargeChange/SmallChange setters.  fixes unit tests.
6224 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
6226         * ContainerControl.cs: reverted rev.67183 (which was itself
6227         a reversion of rev.66853... eh).
6228         
6229         * Control.cs: Fixes Reflector hang by changing Focus() call
6230         to what it was before rev.66643 (calling Select() here sets 
6231         ActiveControl, which in some situations calls back Focus and 
6232         eventually does a stack overflow). Temp fix.    
6233         Changes to GetNextControl() to not look for children to select when
6234         parent cannot be selectable (so it looks for siblings instead)  
6235         
6236 2006-10-31  Mike Kestner  <mkestner@novell.com>
6238         * CheckedListBox.cs : off by one error in returned index from
6239         ObjectCollection.Add.  Fixes #79758.
6241 2006-10-31  Chris Toshok  <toshok@ximian.com>
6243         * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
6244         calls for the textbox/spinner, to keep from recursing to the point
6245         where we crash.  Fixes #79760.
6247 2006-10-31  Chris Toshok  <toshok@ximian.com>
6249         * ListControl.cs (set_SelectedValue): don't throw exceptions on
6250         null/"" value, just return.  matches ms's behavior and fixes some
6251         failing tests.
6253 2006-10-31  Chris Toshok  <toshok@ximian.com>
6255         * Control.cs (set_Capture): make a logic a little easier to
6256         follow.
6258         * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
6259         if it's being destroyed.  A necessary fix surely, but a bandaid
6260         also, to fix the stuck capture problem in bug #78413.
6262 2006-10-31  Chris Toshok  <toshok@ximian.com>
6264         * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
6265         convention of clearing hwnd.ClientRect when we set the
6266         width/height (so it'll be recalculated by Hwnd).
6268 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
6270         * ContainerControl.cs: reversed Contains check from
6271         ActiveControl due to hanging problems. This fix
6272         partly regresses #79667 (button does not have
6273         initial focus), so this might be a symptom for 
6274         a larger parenting problem (set_ActiveControl
6275         is being called but the child control does
6276         not have the parent set yet?)   
6277         
6278 2006-10-31  Mike Kestner  <mkestner@novell.com>
6280         * MenuAPI.cs : fix keynav when menu is click activated.
6282 2006-10-31  Jonathan Pobst  <monkey@jpobst.com>
6284         * ToolStrip*: Version 0.2.
6286         * MenuStrip.cs: Version 0.1.
6288         * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
6290 2006-10-30  Chris Toshok  <toshok@ximian.com>
6292         [ fixes the oversized notify icon issue in bug #79745 ]
6293         
6294         * NotifyIcon.cs: scale the icon down to the size we're given by
6295         the XplatUI layer (this would be faster if we did it once instead
6296         of whenever we paint..)  Also, remove the WM_NCPAINT handling,
6297         since it's never invoked.
6299         * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
6300         pixels high by default, so let's hardcode our systray icon to that
6301         size.  The SYSTEM_TRAY protocol should really have a way for
6302         client apps to query for the correct icon size.. but oh well.  A
6303         couple of patches to deal with the screwy client_window ==
6304         whole_window notifyicon stuff (we don't want to PerformNCCalc, for
6305         instance, and also make sure we don't XSelectInput twice).
6307 2006-10-30  Chris Toshok  <toshok@ximian.com>
6309         * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
6310         recreating forms.  Control recreation is the bane of my existence.
6311         Fix it in a way that keeps everyone happy.
6313 2006-10-30  Chris Toshok  <toshok@ximian.com>
6315         * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
6316         just non-CHILD ones.  otherwise sometimes scrollbars end up with
6317         client_windows not being resized to the proper size (ReportBuilder
6318         shows this extremely well).
6320 2006-10-30  Chris Toshok  <toshok@ximian.com>
6322         * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
6323         for non-WS_EX_APPWINDOW windows.  This is what keeps them from
6324         showing up in the gnome taskbar.  Fixes bug #79790.
6326 2006-10-30  Chris Toshok  <toshok@ximian.com>
6328         * ApplicationContext.cs: guard against a NRE.
6330         * Application.cs: null out the old MainForm for the context, so we
6331         don't try to use it again once it's disposed.  Fixes bug #79783.
6333 2006-10-30  Chris Toshok  <toshok@ximian.com>
6335         * DataGrid.cs (set_DataSource, set_DataMember): if we have a
6336         BindingContext, set the data source directly, otherwise do the
6337         lazy approach - the actual ListManager will be created when we get
6338         a BindingContext. Fixes bug #79700.
6340 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
6342         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
6343           XplatUIX11.cs: Remove old 2 parameter SetVisible.
6345         * Control.cs: Use the new 3 parameter SetVisible with activate = true.
6347 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
6349         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
6350         of SetVisible that allows a window to be shown, but not activated.
6351         This is needed on Windows for MenuStrip, and can probably be used
6352         with MainMenu and ComboBox to fix the focus stealing issues on
6353         Windows.
6355         * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
6357 2006-10-30  Alexander Olk  <alex.olk@googlemail.com>
6359         * PictureBox.cs: Fix the output of the ToString method.
6361 2006-10-29  Chris Toshok  <toshok@ximian.com>
6363         * Control.cs (get_TopLevelControl): fix bug #79781.
6365 2006-10-29  Chris Toshok  <toshok@ximian.com>
6367         * ListControl.cs (set_DataSource): throw Exception here, not
6368         ArgumentException, to match MS behavior.
6370 2006-10-29  Chris Toshok  <toshok@ximian.com>
6372         * Form.cs: remove the try-catch's around calls to GetWindowState.
6373         We can just check the return value.
6375         * XplatUIX11.cs: don't throw exceptions from GetWindowState.
6376         Instead return -1.
6378         * XplatUI.cs: Add note about additional return value for
6379         GetWindowState.
6381 2006-10-29  Chris Toshok  <toshok@ximian.com>
6383         * Control.cs (CreateHandle): when we create our handle, we also
6384         create the handles of our child controls.  Fixes one of the
6385         Control unit tests (CH11).
6387 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
6389         * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
6391 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
6393         * ThemeClearlooks.cs: A little speedup.
6395 2006-10-27  Chris Toshok  <toshok@ximian.com>
6397         * Control.cs: implement Control.FromChildHandle in a way that
6398         matches the docs (and fixes the failed test.)
6400 2006-10-27  Chris Toshok  <toshok@ximian.com>
6402         * DataGridTableStyle.cs: reproduce buggy MS behavior (with
6403         comments).
6405         * DataGrid.cs: implement ResetForeColor such that the tests
6406         succeed.
6407         
6408 2006-10-27  Chris Toshok  <toshok@ximian.com>
6410         * ToolBarButton.cs: setting text/tooltiptext to null results in it
6411         being set to "".  Fixes bug #79759.
6413 2006-10-27  Jackson Harper  <jackson@ximian.com>
6415         * TextControl.cs: We need to clear the entire selection area when
6416         setting the start, otherwise multiline selections are still
6417         visible.
6419 2006-10-26  Chris Toshok  <toshok@ximian.com>
6421         * PropertyGridView.cs: 
6423         - ifdef all the code specific to the double
6424         buffer case, and provide some alternatives in the non-doublebuffer
6425         code, which makes heavy use of XplatUI.ScrollWindow to move things
6426         around without having to invalidate (and cause flicker).  There
6427         are still some drawing problems in the non-doublebuffered case, so
6428         DOUBLEBUFFER is defined by default.
6430         - Fix the way dropdowns are handled.  now we explicitly watch for
6431         the events which might cause the dropdown to close, and break out
6432         of the nested event loop there.  This gets rid of all Capture
6433         code, at the expense of the Msg special casing.  Seems to work,
6434         though, and fixes bug #79743.
6436 2006-10-27  Rolf Bjarne Kvinge <RKvinge@novell.com>
6437         * Control.cs: SetIsRecreating now recreates implicitly added
6438         child controls as well. Finally fixes #79629. The flag passed to 
6439         SetIsRecreating has also been removed since it wasn't used.
6440         
6441 2006-10-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6443         * PageSetupDialog.cs: Clean some code, fix some bits, 
6444         add some checks, and add a printer sub-dialog.
6446 2006-10-26  Chris Toshok  <toshok@ximian.com>
6448         * PropertyGrid.cs: make set_SelectedObject call
6449         set_SelectedObjects, and move the duplicate logic to the
6450         SelectedObjects setter.  Also, raise SelectedObjectsChanged.
6452         * PropertyGridView.cs: hide the textbox when we get a
6453         SelectedObjectsChanged event.
6455         Fixes bug #79748.
6457 2006-10-26  Chris Toshok  <toshok@ximian.com>
6459         * PropertyGridView.cs: deal with the type converter not supporting
6460         GetStandardValues() or GetStandardValues() returning null, which
6461         is does in the default case.  Fixes #79742.
6463 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
6465         * CheckedListBox.cs: nunit no longer crashes when selecting 
6466         Project/Edit menu option
6467         
6468 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
6470         * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
6471         is no menu selected. fixes #79739
6473 2006-10-25  Chris Toshok  <toshok@ximian.com>
6475         * PropertyGridView.cs: factor out the splitter invalidation code
6476         into the SplitterPercent setter, and for kicks implement the
6477         Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
6478         amount in either direction.
6480 2006-10-25  Chris Toshok  <toshok@ximian.com>
6482         * PropertyGridView.cs: do some cleanup of the brush used to draw
6483         text - read only fields should be grayed out.  not sure how to do
6484         this with the textbox, though.  but the textbox's should also be
6485         readonly now at least.  Also, hide/show the textbox when resizing
6486         the control.
6487         
6488         * CursorConverter.cs: use System.Reflection when getting the
6489         properties of Cursors, as TypeDescriptor.GetProperties isn't
6490         returning static properties.
6492 2006-10-25  Chris Toshok  <toshok@ximian.com>
6494         * PropertyGridView.cs: factor out the up/down handling, and reuse
6495         it for page up/down.  also add End/Home support.
6497 2006-10-25  Chris Toshok  <toshok@ximian.com>
6499         * PropertyGridView.cs:
6501         - ensure the selected grid item is visible in the scrolled area,
6502         fixes bug #79572.
6504         - fix Keys.Down handling when you're on the last item in the
6505         propertygrid.
6507 2006-10-25  Mike Kestner  <mkestner@novell.com>
6509         * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup 
6510         clicks too.  Fixes #79725.
6512 2006-10-24  Chris Toshok  <toshok@ximian.com>
6514         * PropertyGrid.cs: use property.Converter instead of
6515         TypeDescriptor.GetConverter(property.PropertyType), so we catch
6516         TypeConverters declared on the property as well as on the
6517         PropertyType.  Fixes bug #79678.
6519 2006-10-24  Alexander Olk  <alex.olk@googlemail.com>
6521         * MimeIcon.cs, Mime.cs:
6522           Fallback to the default platform handler if no shared mime info
6523           stuff exists (fixes #79693).
6525 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
6526         * ContainerControl.cs: Incorrect contains check in ActiveControl 
6527         from previous fix (duh).
6529 2006-10-20  Chris Toshok  <toshok@ximian.com>
6531         * PropertyGridView.cs: the dropdown should be MIN(number of items
6532         in list, 15).  Fixes #79551.
6534 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
6535         Fixes #79384, #79394, #79652, #79667
6536         * Application.cs: 
6537         
6538         - Modal windows are now destroyed in the proper order for windows
6539         
6540         * ContainerControl.cs:
6541         
6542         - ActiveControl setter has more conditions on when to return:
6543                 - if we're reselecting the active control, but it actually
6544                 didn't have focus (window hidden or some such), it runs
6545                 - if the active control being selected doesn't actually 
6546                 exist in the container, it returns
6547         
6548         * Form.cs
6549         
6550         - The ShowDialog now gets the current form as the owner when
6551         invoking without parameters, and correctly activates the owner 
6552         when returning
6553         
6554         * MessageBox.cs
6555         
6556         - MessageBox now catches the Escape key to exit
6558 2006-10-20  Chris Toshok  <toshok@ximian.com>
6560         * PropertyGridView.cs: fix a number of issues (bug #78565, and
6561         most of bug #79676):
6563         - you can navigate around the property grid with the arrow keys.
6565         - the dropdown is sized properly when the pg has a vertical
6566         scrollbar.
6568         - fix the indentation for subentries, and properly select the
6569         entire label rect.
6571         - fix the gray bar's drawing (only draw it to the last element,
6572         not for the height of the control.  Also make sure we draw that
6573         last horizontal grid line.
6575         - use the same mechanism the datagrid uses wrt the editing textbox
6576         when scrolling/resizing/etc.  Namely, we hide it first, do the
6577         operation, then show it again (if it's still visible).
6578         
6579         - aggressively remove a lot of unnecessary refreshes (and also
6580         calls to Invalidate(). call more limited variants, and only redraw
6581         what we need.)
6582         
6583         * PropertyGrid.cs:
6585         - when we're populating the merged collection, fill in the UI
6586         parent with either the passed in item, or the category item we
6587         create.
6589         - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
6591         * GridItem.cs: drop some fully qualified names.
6592         
6593         * GridEntry.cs: add a "UIParent", which is basically the parent
6594         treenode.
6596         * GridItemCollection.cs: add an IndexOf method.
6598 2006-10-20  Mike Kestner  <mkestner@novell.com>
6600         * MainMenu.cs : go back to Draw in OnMenuChanged.  Until we get
6601         a working win32 NC invalidation mechanism, we can't invalidate
6602         menus.  [Fixes #79705]
6604 2006-10-20  Mike Kestner  <mkestner@novell.com>
6606         * ListBox.cs : don't update the VScrollbar if the list is empty,
6607         just hide it.  [Fixes #79692]
6609 2006-10-20  Jackson Harper  <jackson@ximian.com>
6611         * RichTextBox.cs: Handle some special chars better, and don't skip
6612         the entire group when we encounter a special char that we don't
6613         handle correctly.
6615 2006-10-18  Chris Toshok  <toshok@ximian.com>
6617         * PropertyGridView.cs: address a number of issues from bug #79676,
6618         mostly of the cosmetic variety.
6620         - The highlight rectangle for indented items not extends all the
6621         way to the left.
6623         - Indented items aren't indented so much.
6625         - the dropdown is properly sized width-wise if the pg has a
6626         vertical scrollbar.
6628 2006-10-18  Chris Toshok  <toshok@ximian.com>
6630         * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
6631         systray stuff is rather convoluted to begin with.
6633         systray icons are a single window for some reason (that I haven't
6634         figured out yet), and for them, client_window == whole_window.
6635         Given the way the tests are structured elsewhere to determine
6636         which paints are pending (client vs. nc), that situation will
6637         always yield PAINT, not NCPAINT.  So, if we have a pending
6638         nc_expose and no pending expose, remove the hwnd from the paint
6639         queue, and also set nc_expose_pending to false, to keep us from
6640         blocking further expose's adding the hwnd to the paint queue.
6642         phew.  like i said, a rather convoluted change.  Fixes the
6643         notifyicon repaint issues in bug #79645.
6645 2006-10-18  Chris Toshok  <toshok@ximian.com>
6647         * Form.cs: when getting the backcolor of the form, don't get
6648         base.BackColor, as this allows parents to influence the background
6649         color.  This breaks mdi forms.  Instead, if the background_color
6650         is empty, return the default.
6652 2006-10-18  Chris Toshok  <toshok@ximian.com>
6654         * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
6655         to being private instead of internal static.
6657         * Control.cs: remove all the stupid ParentWaitingOnRecreation
6658         crap, it wasn't working for more deeply nested controls anyway,
6659         and we already have the is_recreating flag - use that instead.
6660         Before calling DestroyHandle in RecreateHandle, recurse through
6661         the control tree setting it to true.  this returns the recreate
6662         code to much of its original simplicity, while now guaranteeing we
6663         actually recreate everything we're supposed to.  This change gets
6664         fyireporting actually showing mdi children.
6666 2006-10-17  Chris Toshok  <toshok@ximian.com>
6668         * Form.cs: remove some debug spew, and collapse some duplicate
6669         code at the end of SetClientSizeCore.
6671         * XplatUIX11.cs: 
6672         - add some more debug spew here too wrt Destroy handling.
6673         - don't call hwnd.Dispose in DestroyWindow, it's effectively done
6674         in Control's handling of WM_DESTROY.
6675         - Remove the handling of zombie window DestroyNotifies from the
6676         event loop - we don't need it.  Now the only DestroyNotifies we
6677         actually handle are ones generated by X.
6678         - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
6679         match gtk's (functioning) handling of this. This keep metacity
6680         from leaving droppings in the form of wm borders with no window
6681         contents all over the place.
6683         * Control.cs:
6684         - add a bunch of debug spew wrt control recreation.
6685         - fix a bug where we weren't tracking Visible properly on
6686         recreated hwnds.
6687         - fixed the WM_PAINT double buffer handling to support re-entrant
6688         calls (yes, i know it's gross, but it's happening to us).
6690 2006-10-17  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
6691         * ThemeWin32Classic.cs: changed drawing of selected days
6692         to make them look better.
6694 2006-10-16  Chris Toshok  <toshok@ximian.com>
6696         * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
6697         drawing_stack.  Nuke the ClientDC/NonClientDC properties.
6699         * XplatUIX11.cs: move away from using hwnd.client_dc and
6700         hwnd.non_client_dc and on to a stack of dc's (and in window's
6701         case, PAINTSTRUCT's), so we can deal with nested Paint calls
6702         without puking or not disposing of Graphics objects.
6704         * XplatUIOSX.cs: same.
6706         * XplatUIWin32.cs: same.
6708 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
6710         * FileDialog.cs: Don't call on_directory_changed inside
6711           OnSelectedIndexChanged (it changes the SelectedIndex too).
6712           Instead move it to OnSelectionChangeCommitted.
6714 2006-10-13  Chris Toshok  <toshok@ximian.com>
6716         * XplatUIX11.cs: more Destroy work.  the current code does the
6717         following things, in order:
6719         1. Enumerates all handles of all controls at or below the one
6720         being destroyed, in pre-order.  As it is doing this, it marks the
6721         handles as zombie and clears all references to them.
6722         
6723         2. calls XDestroyWindow on the window passed in.
6725         3. SendMessage's WM_DESTROY to all he handles in the accumulated
6726         list.
6728 2006-10-13  Chris Toshok  <toshok@ximian.com>
6730         * XplatUIX11.cs: set hwnd.zombie to true before calling
6731         SendMessage (WM_DESTROY).  this keeps us from marking the new
6732         window a zombie, and also keeps us from calling sendmessage at
6733         all.
6735 2006-10-13  Jackson Harper  <jackson@ximian.com>
6737         * TextControl.cs: Do not show the caret and selection at the same
6738         time.  Reduces ugliness by 35%.
6740 2006-10-13  Chris Toshok  <toshok@ximian.com>
6742         * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
6743         zombie after we do the recursive call, so we actually do call
6744         SendMessage on the children controls.
6745         (GetMessage): if we find a pending paint event for a zombie hwnd,
6746         remove the hwnd from the paint queue, or else it will always be
6747         there (and we'll effectively loop infinitely)
6749 2006-10-13  Mike Kestner  <mkestner@novell.com>
6751         * MenuItem.cs : add Selected format under keynav too.
6752         Fixes #79528.
6754 2006-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
6756         * PropertyGrid.cs: Fixed some NRE's and small difference between our
6757         implementation and that of MS.
6759 2006-10-13  Chris Toshok  <toshok@ximian.com>
6761         * Control.cs (OnInvalidated) only futz with the invalid_region if
6762         the control is double buffered.  this fixes the apparent hang in
6763         the ListView unit tests.  Someone needs to make the
6764         BeginEndUpdateTest not call OnInvalidated 15004 times, though..
6766 2006-10-13  Chris Toshok  <toshok@ximian.com>
6768         * PropertyGridView.cs:
6770         - do a little refactoring so that only one place calls
6771         dropdown_form.Hide, and that is CloseDropDown.  make everywhere
6772         else call that.  Also make it Refresh, since there are redraw bugs
6773         otherwise (we should take a look at that...)
6775         - do a little more refactoring work to share the body of code
6776         involved with the drop down.  it was duplicated in the code
6777         dealing with the listbox handling and in the code dealing with the
6778         UITypeEditors.
6780         - add a Capture to the dropdown form's control once it's
6781         displayed, and add a MouseDown handler that checks to make sure
6782         the position is inside the control.  If it's not, close the
6783         dropdown.  This fixes #78190.
6785         - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
6786         if the value is different than the initial value.
6787         
6788 2006-10-13  Andreia Gaita  <shana.ufie@gmail.com>
6790         * Control.cs: see #78650
6791         - Fixed GetNextControl for several cases:
6792                 - Changed FindFlatForward to return 
6793                 correct sibling control when more than one
6794                 control has same TabIndex as the currently 
6795                 focused one.
6796                 - Changed FindFlatBackward to loop children
6797                 from last to first and apply same logic as in
6798                 FindFlatForward
6799                 - Changed FindControlForward to search for
6800                 children when control is not a container
6801                 but has children, or search for siblings if
6802                 control is a container...
6803                 - Changed FindControlBackward   to continue
6804                 searching for child controls when hitting 
6805                 Panel-like parents
6806                 
6807         - Fixed Focus method to update ActiveControl
6808         (FocusTest.FocusSetsActive failure)
6809         
6810         * TabControl.cs:
6811         - Focus rectangle now refreshes when gaining
6812         or losing focus
6813         - Removed grab for Tab key on IsInputKey that 
6814         was keeping tab navigation from working (#78650)
6816 2006-10-13  Chris Toshok  <toshok@ximian.com>
6818         * PropertyGridView.cs:
6819         - Rewrite SetPropertyValue to loop over SelectedGridItem's
6820         SelectedObjects.
6822         - Deal with GridItem.Value == null a few places.
6824         * PropertyGrid.cs: 
6825         - replace the PopulateGridItemCollection with a pair of methods
6826         which compute the intersection of all the properties in the
6827         SelectedObjects array.  Fixes #79615.
6829         - Throw ArgumentException from set_SelectedObjects if there's a
6830         null in the array.
6832         - Add GetTarget method which can be used to traverse up the
6833         GridItem.Parent chain.  It depends on the assumption that
6834         selected_objects for different GridEntries are always in the same
6835         order (a safe assumption).  Use this method and loop over all the
6836         selected objects in the entry when calling RemoveValueChanged and
6837         AddValueChanged.
6838         
6839         * GridEntry.cs: Make this handle multiple selected objects.
6840         .Value returns null if not all the selected objects share the same
6841         value.
6843 2006-10-12  Jonathan Pobst  <monkey@jpobst.com>
6844         * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
6845           ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
6846           ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
6847           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
6848           ToolStripTextBox.cs: Add accessibility, fix attributes/API and
6849         add additional functionality.
6851 2006-10-12  Mike Kestner  <mkestner@novell.com>
6853         * ErrorProvider.cs : new ToolTipWindow ctor sig.
6854         * HelpProvider.cs : new ToolTipWindow ctor sig.
6855         * ToolTip.cs : remove ToolTip param from Window sig since it is
6856         not used.
6857         * ToolBar.cs : add tooltip support.  Fixes #79565.
6859 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
6861         * ComboBox.cs: move the events in set_SelectedIndex to 
6862         after the call to HighlightIndex in order to avoid 
6863         possible recursion and subsequent problems with the call
6864         to HighlightIndex and include a range check in 
6865         set_HighlightIndex. Fixes #79588
6866         
6867 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
6869         * MonthCalendar.cs: When FirstDayOfWeek is default set firstday 
6870         to ui thread's settings instead of sunday. 
6871         * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
6873 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
6875         * DateTimePicker.cs
6876         * MonthCalendar.cs
6877         * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
6878         and implement missing functionality (selecting different parts 
6879         of the date and edit them individually with the keyboard).
6880         
6881 2006-10-11  Chris Toshok  <toshok@ximian.com>
6883         * Control.cs (OnInvalidated): fix NRE relating to last change.
6885 2006-10-11  Chris Toshok  <toshok@ximian.com>
6887         * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
6888         atoms in _NET_WM_STATE here if the window is maximized.  We need
6889         to do this because we're *replacing* the existing _NET_WM_STATE
6890         property, so those atoms will be lost otherwise, and any further
6891         call to GetWindowState will return Normal for a window which is
6892         actually maximized.  Fixes #79338.
6894 2006-10-11  Jackson Harper  <jackson@ximian.com>
6896         * TextControl.cs: Special case for setting selection end to
6897         selection start, we basically kill the anchor.
6898         - some todo comments.
6900 2006-10-11  Chris Toshok  <toshok@ximian.com>
6902         * Control.cs: switch to using an "invalid_region" to track which
6903         parts of the image buffer need updating.  This is more code than
6904         the simple fix from r66532.  That version just attempted to always
6905         fill the entire buffer on redraw, which turns out to be
6906         inefficient when invalidating small rectangles.  This version
6907         simply adds the invalid rectangle to the invalid region.  When we
6908         get any WM_PAINT message we see if it can be filled using the
6909         image buffer, and if it can't (if the paint event's clip rectangle
6910         is visible in the invalid region) we first fill the image buffer.
6911         So, the image buffer is still a cache, we just fill it lazily.
6913         * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
6914         need it any longer.
6916 2006-10-11  Chris Toshok  <toshok@ximian.com>
6918         * XplatUIX11.cs (SetWindowPos): we need to update both position as
6919         well as size after calling XMoveResizeWindow.  This keeps us from
6920         ignoring future SetWindowPos calls.  Fixes the disappearing
6921         DateTimePicker in the ToolBarDockExample from bug #72499.
6923 2006-10-11  Chris Toshok  <toshok@ximian.com>
6925         * TextBoxBase.cs: reorder things a bit when it comes to
6926         resizing-causing-recalculation.  we were recalculating the
6927         document when our position was changed, which shouldn't happen.
6928         We only care about size changes.  Clear up some more redundant
6929         recalculation calls while I'm at it.  This makes the toolbar dock
6930         example snappy when you're just dragging toolbars around (since it
6931         causes a relayout whenever you move one.)
6933 2006-10-11  Chris Toshok  <toshok@ximian.com>
6935         * ToolBarButton.cs (get_Rectangle): this only returns
6936         Rectangle.Empty if Visible == false, or Parent == null.
6937         Parent.Visible doesn't matter.
6939 2006-10-10  Chris Toshok  <toshok@ximian.com>
6941         * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
6942         by .net 1.1, so switch to an internal method instead.
6944 2006-10-10  Chris Toshok  <toshok@ximian.com>
6946         * Control.cs (WM_PAINT): when a control is double buffered we draw
6947         initially to the ImageBuffer and then copy from there.  But when a
6948         parent control which has child controls is double buffered, the
6949         initial drawing doesn't encompass the entire ClientRectangle of
6950         the parent control, so we end up with uninitialized bits (this is
6951         easily seen by dragging the top toolbar in
6952         wf-apps/ToolBarDockExample to the right, quickly).  The fix is to
6953         manually set the ClipRectangle of the paint_event (only the one we
6954         use to populate the ImageBuffer) to ClientRectangle.  Fixes more
6955         of the nastiness in bug #72499.
6957         * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
6958         which we use in Control.cs's WM_PAINT handling.
6960 2006-10-10  Jackson Harper  <jackson@ximian.com>
6962         * TextBoxBase.cs: Finish off the autoscrolling stuff.
6964 2006-10-10  Chris Toshok  <toshok@ximian.com>
6966         * Cursor.cs: Apply a slightly different patch to the one suggested
6967         in #79609.
6969 2006-10-10  Jackson Harper  <jackson@ximian.com>
6971         * MenuItem.cs: Make sure to put the mdi child in the hashtable,
6972         not the parent form.
6973         * TextControl.cs: use difference in old line count vs new count to
6974         calculate how many lines were added, this takes into account soft
6975         line breaks properly.
6977 2006-10-10  Chris Toshok  <toshok@ximian.com>
6979         * LinkLabel.cs: don't call MeasureCharacterRanges against a
6980         rectangle located at 0,0 and the size of the text.  Use
6981         ClientRectangle instead.  This fixes rendering of non-left aligned
6982         link labels.
6984 2006-10-10  Jackson Harper  <jackson@ximian.com>
6986         * TextBoxBase.cs: When we set the selection start position the
6987         caret.
6988         * TextControl.cs: Need to update the caret when we decrement it to
6989         zero.
6990         - Make sure that the selection_visible flag gets reset to false if
6991         the selection isn't visible.  Before this you could get it set to
6992         visible by changing the selection start, then changing the end to
6993         equal the start.
6995 2006-10-09  Jackson Harper  <jackson@ximian.com>
6997         * TreeView.cs: Don't update scrollbars when we aren't visible.
6998         * TreeNodeCollection.cs: Only need to update scrollbars if being
6999         added to an expanded visible node or the root node.
7001 2006-10-09  Chris Toshok  <toshok@ximian.com>
7003         * XplatUIX11.cs (SendMessage): fix NRE.
7005 2006-10-09  Jackson Harper  <jackson@ximian.com>
7007         * TextBoxBase.cs: Implement horizontal autoscrolling.
7008         * TextControl.cs: Add a movement types that allows moving forward
7009         and backwards without wrapping.
7011 2006-10-09  Mike Kestner  <mkestner@novell.com>
7013         * ListViewItem.cs : layout changes for wrapped LargeIcon labels
7014         with focus "expansion" of labels.  Fixes #79532 and then some.
7015         * ThemeWin32Classic.cs : add LineLimit to ListView label format
7016         when wrapping.
7018 2006-10-09  Jackson Harper  <jackson@ximian.com>
7020         * TextBoxBase.cs: Set the default max values to MaxValue since
7021         we use the scrollbar for autoscrolling and the default value is
7022         100.  If we don't do this the caret won't keep up with typing
7023         after about 18 characters.
7024         * TextControl.cs: Make sure the selection is offset by the
7025         viewport x.  This fixes selection when using auto scrolling.
7027 2006-10-07  Andreia Gaita <shana.ufie@gmail.com>
7028         
7029         * Form.cs: The active control should be selected after the 
7030         OnLoad so that any child control initialization that affects
7031         the selection is done. Fixes #79406
7033 2006-10-06  Chris Toshok  <toshok@ximian.com>
7035         * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
7036         to have no evil effects.
7038         - Stop selecting StructureNotifyMask on non-toplevel windows.
7040           The only way children should be resized is by using the SWF api,
7041           and we already send WM_WINDOWPOSCHANGED messages in those cases.
7042           Toplevel windows can be interacted with via the window manager,
7043           and so we keep the input mask there.
7045           The other event StructureNotifyMask gives us (that we care
7046           about) is DestroyNotify.  The code is already structured such
7047           that it assumes we won't be getting a DestroyNotify event for
7048           the window we pass to XDestroyWindow (which is what
7049           StructureNotifyMask is supposed to guarantee.)  So, that code
7050           shouldn't be affected by this either.
7052         - Stop selecting VisibilityChangeMask altogether.
7054           We weren't doing anything with the resulting events anyway.
7055         
7056         This vastly reduces the number of X requests and events we see
7057         when resizing/laying out a large ui.
7059 2006-10-06  Chris Toshok  <toshok@ximian.com>
7061         * ScrollableControl.cs (DisplayRectangle): we need to take into
7062         account the DockPadding regardless of whether or not auto_scroll
7063         == true.  rework this slightly to this effect, and fix bug #79606,
7064         and part of #72499 (you can now see the drag handles and drag
7065         toolbars around).
7067 2006-10-06  Gert Driesen  <drieseng@users.souceforge.net>
7069         * ListViewItem.cs: Collections of selected and checked items are now
7070         dynamically rebuilt. Whenever an item is (un)checked or (de)selected
7071         we mark the collection "dirty".
7072         * ListView.cs: Marked collections readonly. Modified UpdateSelection
7073         to only clear SelectedItems when a new item is selected and MultiSelect
7074         is enabled. CheckedItems and SelectedItems now subscribe to Changed
7075         event of ListViewItemCollection, and mark its list dirty whenever
7076         that event is fire. This allows us to return selected/checked items 
7077         in the same order as they are in the Items collection. This matches
7078         the MS behavior.
7080 2006-10-06  Chris Toshok  <toshok@ximian.com>
7082         * NotifyIcon.cs (HandleMouseUp): only show the context menu on
7083         right mouse clicks.  Fixes bug #79593.
7085 2006-10-06  Chris Toshok  <toshok@ximian.com>
7087         * Splitter.cs: doh, fix splitters that don't want to cancel the
7088         movement when you drag them.  Also, impose the limits on the
7089         values we send to the SplitterMovingEvent.  Fixes #79598.
7091 2006-10-06  Jackson Harper  <jackson@ximian.com>
7093         * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
7094         since we use this for auto scrolling also.
7096 2006-10-05  Chris Toshok  <toshok@ximian.com>
7098         * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus.  I'm
7099         beginning to think that most datagrid column types don't need this
7100         method.  Fixes bug #79392.
7102 2006-10-05  Chris Toshok  <toshok@ximian.com>
7104         * DataGrid.cs: move back to a more lazy scheme for creating the
7105         CurrencyManager, so we aren't updating it every time you set
7106         either DataSource or DataMember.  Also, don't call
7107         RecreateDataGridRows if the currency manager hasn't changed.
7109 2006-10-05  Chris Toshok  <toshok@ximian.com>
7111         * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
7112         emitted, SelectedIndex should already be updated.  Fixes bug
7113         #78929.
7115 2006-10-05  Jonathan Pobst  <monkey@jpobst.com>
7117         * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
7118           ToolStripTextBox.cs: Initial commit.
7119         * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
7121 2006-10-05  Jackson Harper  <jackson@ximian.com>
7123         * TabControl.cs: We need to invalidate the tab control area when
7124         new ones are added (duh).
7126 2006-10-03  Chris Toshok  <toshok@ximian.com>
7128         * Form.cs (ProcessDialogKey): if the focused control is in this
7129         form and is a button, call its PerformClick method here.  Fixes
7130         #79534.
7132 2006-10-04  Jackson Harper  <jackson@ximian.com>
7134         * TabPage.cs: Ignore setting of Visible, and add an internal
7135         method for setting the controls visibility.  TabPage's Visible
7136         property is a little strange on MS, this seems to make us
7137         compatible, and fixes cases where people set all the tab pages to
7138         visible.
7139         * TabControl.cs: Use the new internal setting on tab pages
7140         visibility.
7142 2006-10-03  Mike Kestner  <mkestner@novell.com>
7144         * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
7146 2006-10-03  Mike Kestner  <mkestner@novell.com>
7148         * ListView.cs : use is_visible instead of Visible to check if 
7149         scrollbars should be placed/sized.  Also some max_wrap_width
7150         love for LargeIcon view.  [Fixes #79533]
7152 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
7154         * TextControl.cs :
7155           Make set_TextAlign() do actually update the align. Fixed #78403.
7157 2006-10-03  Chris Toshok  <toshok@ximian.com>
7159         * DataGrid.cs: fix a crash when switching datasources if the
7160         vertical scrollbar is at someplace other than Value = 0.  Also,
7161         reduce the number of recalculation passes we do in SetDataSource
7162         from 2 to 1.
7164 2006-10-03  Jackson Harper  <jackson@ximian.com>
7166         * TextBoxBase.cs: Move the if value the same bail check up, we
7167         don't want to empty the document if it is already empty, this
7168         seems to severly mess up the caret.  TODO: I should probably fix
7169         the empty statement to update teh caret somehow.
7171 2006-10-03  Chris Toshok  <toshok@ximian.com>
7173         * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
7174         incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
7175         reflection, an internal row type, properties on said type, etc.)
7176         will work with our datagrid.  Fixes #79531.
7178 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
7180         * FileDialog.cs: Don't crash if a path is not accessible
7181           (System.UnauthorizedAccessException). Fixes #79569.
7182         * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
7183           a ':' too. Return unknown icon for those paths/files.
7185 2006-10-03  Sebastien Pouliot  <sebastien@ximian.com>
7187         * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when 
7188         GetContainerControl returns null.
7190 2006-10-02  Chris Toshok  <toshok@ximian.com>
7192         * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
7193         call to XGetWindowAttributes instead of "handle".  fixes an X
7194         error using notifyicon after the NotifyIconWindow to Form base
7195         class switch.
7197 2006-10-02  Chris Toshok  <toshok@ximian.com>
7199         * XplatUIX11.cs (QueryPointer): new function, encapsulating the
7200         server grab and looping we need to do to get down to the most
7201         deeply nested child window.
7202         (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
7203         QueryPointer again after the WarpPointer so we can generate a
7204         proper (fake) MotionNotify event to be enqueued in the destination
7205         window's queue.
7206         (GetCursorPos): call QueryPointer.
7208         Fixes #79556.
7210 2006-10-02  Jackson Harper  <jackson@ximian.com>
7212         * NotifyIcon.cs: Derive the notify icon from a form, so things
7213         like FindForm work on it.
7214         - Swallow the WM_CONTEXTMENU message, since that is generated on
7215         mouse down, and context menu is a mouse up kinda guy.  I believe
7216         the correct fix here is probably to make the notify icon entirely
7217         NC area, but this seems to work fine for anyone not manipulating
7218         WndProc.
7220 2006-10-02  Jonathan Pobst  <monkey@jpobst.com>
7222         * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
7223           ToolStripItemCollection.cs, ToolStripLabel.cs,
7224           ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
7225           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
7226           Initial implementation.
7227         * TextRenderer.cs: Provide padding to MeasureText.
7229 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
7231         * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
7232         of ButtonBaseAccessibleObject. Fix bug #79552.
7234 2006-10-02  Jackson Harper  <jackson@ximian.com>
7236         * MdiWindowManager.cs: When maximizing use the containers client
7237         rect, not it's bounds, so nc area is accounted correctly.
7238         - Use the parent form's size for the menu position, since the
7239         client isn't always the full form size.
7241 2006-10-01  Chris Toshok  <toshok@ximian.com>
7243         * ScrollableControl.cs: make sure neither right_edge or
7244         bottom_edge are < 0, since they're used as LargeChange for the
7245         horiz/vert scrollbars respectively.  Fixes #79539.
7247 2006-10-01  Chris Toshok  <toshok@ximian.com>
7249         * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
7250         the xplatuix11 code can cause us to destroy/recreate our handle.
7252         * XplatUIX11.cs
7253         (SystrayAdd):
7254         - this code can be invoked many times for the same Hwnd.  Make
7255           sure we only destroy the client window once (the first time this
7256           method is called).  This fixes bug #79544.
7257         - Remove the call to the improperly bound XSync.  why we had two
7258           bindings to this, I will never know, but this call resulted in
7259           events being discarded from the queue(!).
7260         - correct a misunderstanding of _XEMBED_INFO - the second atom is
7261           not our current state but the state we wish to be in.  So, 0 if
7262           we don't want to be mapped.  Change it to 1.
7263         (SystrayRemove): The XEMBED spec makes mention of the fact that
7264         gtk doesn't support the reparent of client windows away from the
7265         embedder.  Looking at gtksocket-x11.c seems to agree with this.
7266         The only avenue we have for removing systray icons is to destroy
7267         them.  We don't want the handle to go away for good, though, so
7268         call InternalRecreateHandle on the NotifyIconWindow.  Fixes
7269         #79545.
7270         
7271 2006-10-01  Chris Toshok  <toshok@ximian.com>
7273         * Form.cs (WndProc): inline the native_enabled variable usage into
7274         the cases in which it's used.  Fixes #79536.
7276 2006-09-29  Mike Kestner  <mkestner@novell.com>
7278         * ListView.cs : toggle the selection state for ctrl clicks in 
7279         multiselect mode. [Fixes #79417]
7281 2006-09-29  Mike Kestner  <mkestner@novell.com>
7283         * ListView.cs : kill CanMultiSelect and refactor the selection
7284         code to support multiselection in the absence of mod keys. Steal
7285         arrow/home/end keys by overriding InternalPreProcessMessage to
7286         restore regressed keynav behavior.
7287         [Fixes #79416]
7289 2006-09-29  Jackson Harper  <jackson@ximian.com>
7291         * MdiClient.cs: Repaint the titlebars when the active window is
7292         changed.
7294 2006-09-29  Chris Toshok  <toshok@ximian.com>
7296         * Application.cs: when entering a runloop with a modal, make sure
7297         the hwnd is enabled.  Fixes #79480.
7299 2006-09-29  Chris Toshok  <toshok@ximian.com>
7301         * DataGrid.cs (CurrentCell): if we try to navigate to the add row
7302         when ListManager.CanAddRows == false, bump us back one.
7304         * DataGridColumnStyle.cs (ParentReadOnly): remove the
7305         listmanager.CanAddRows check.  This makes ArrayLists uneditable
7306         using a datagrid, which is not right.
7307         (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
7308         is an IEditable, but call property_descriptor.SetValue regardless.
7309         fixes #79435.
7311 2006-09-29  Chris Toshok  <toshok@ximian.com>
7313         * DataGridBoolColumn.cs: we need to test equality in the face of
7314         possible null values (as is the case with the default NullValue).
7315         This patch keeps us from crashing in that case.
7317 2006-09-29  Jackson Harper  <jackson@ximian.com>
7319         * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
7320         here, since it will get called for every node collection in the
7321         tree. This is now done in the treeview once the sorting is
7322         finished.
7323         * TreeView.cs: Recalculate the visible order, and update the
7324         scrollbars after sorting, set the top nope to the root so that the
7325         recalc actually works.
7327 2006-09-29  Chris Toshok  <toshok@ximian.com>
7329         * LinkLabel.cs: more handling of the default link collection in
7330         the face of LinkArea manipulation.  The default link collection
7331         contains 1 element (start=0,length=-1).  If the user sets LinkArea
7332         to anything and the links collection is the default, clear it.
7333         Then only add the link if its nonempty.  Fixes #79518.
7335 2006-09-29  Chris Toshok  <toshok@ximian.com>
7337         * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
7338         piece correctly when we hit a '\n'.  Fixes #79517.
7340 2006-09-29  Chris Toshok  <toshok@ximian.com>
7342         * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
7343         change the binding of gdk_init_check to take two IntPtr's, and
7344         pass IntPtr.Zero for both of them.  Fixes #79520.
7346 2006-09-29  Mike Kestner  <mkestner@novell.com>
7348         * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
7349         [Fixes #78779]
7351 2006-09-28  Jackson Harper  <jackson@ximian.com>
7353         * XplatUIX11.cs: When translating NC messages make sure we go from
7354         whole window to screen, not client window to screen.
7355         * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
7356         method doesn't exist
7357         - Skip over controls that aren't forms when arranging.
7359 2006-09-28  Jackson Harper  <jackson@ximian.com>
7361         * XplatUIWin32.cs: Clip the rect to the parent window.
7362         * XplatUIStructs.cs: Add clipping modes struct.
7363         * InternalWindowManager.cs: New private method that factors title
7364         bar heights in when calculating the pos of an NC mouse message.
7365         - Use SendMessage to force a paint when the form's size is changed
7366         instead of painting the decorations immediately.
7367         - Don't let the NC button click messages get to DefWndProc,
7368         because they will attempt to handle windowing themself, and this
7369         messes up z-order (it will put them in front of the scrollbars).
7370         * XplatUIX11.cs: Make sure that we don't reset window managers if
7371         we already have one (ie the window is an MDI window).
7373 2006-09-28  Chris Toshok  <toshok@ximian.com>
7375         * MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
7376         menu code really needs going over.
7378 2006-09-27  Chris Toshok  <toshok@ximian.com>
7380         * XplatUIX11.cs (SetWMStyles): more metacity wonderment.  turns
7381         out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
7382         window is maximizable.  So, we need to make sure that even if we
7383         clear the border/wm frame of those functions, they're still
7384         available (basically, we remove the decoration without removing
7385         the function).  Half the fix for #79338.
7387 2006-09-27  Chris Toshok  <toshok@ximian.com>
7389         * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
7390         Fixes bug #79515.
7392 2006-09-27  Chris Toshok  <toshok@ximian.com>
7394         * Splitter.cs: reorder things a bit so that we don't actually
7395         draw/move the splitter until after calling OnSplitterMoving.  This
7396         lets users cancel/disallow the movement by explicitly setting
7397         event.SplitX/SplitY.  Fixes #79372.
7399 2006-09-27  Jackson Harper  <jackson@ximian.com>
7401         * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
7402         because it is most likely on a window being destroyed, and that
7403         will give us an X11 error.
7405 2006-09-27  Chris Toshok  <toshok@ximian.com>
7407         * PropertyGridView.cs: half of the fix for #78190.  Clicking on
7408         the dropdown button now toggles between showing and hiding the
7409         dropdown.  Also, get rid of dropdown_form_showing and just use
7410         dropdown_form.Visible.  We still don't do a grab, but I'll leave
7411         that part to someone who has handled Capture-fu before.
7413 2006-09-27  Chris Toshok  <toshok@ximian.com>
7415         * DataGrid.cs: return false if alt isn't pressed when '0' is
7416         pressed.  this keeps the '0' key from being swallowed, and fixes
7417         bug #79350.
7419 2006-09-27  Chris Toshok  <toshok@ximian.com>
7421         * ComboBox.cs: use Invalidate when scrolling the dropdown list.
7422         Calling Refresh (in response to a scrollbar event) screws up the
7423         scrollbar painting.  Fixes bug #78923.
7425 2006-09-27  Chris Toshok  <toshok@ximian.com>
7427         * Theme.cs (SystemResPool): make the "if hashtable[key] == null
7428         then insert into hashtable" blocks threadsafe.
7430 2006-09-27  Chris Toshok  <toshok@ximian.com>
7432         * MessageBox.cs (CreateParams): the styles should be |'ed with our
7433         baseclass's, since otherwise the
7434         ControlBox/MinimizeBox/MaximizeBox assignments above have no
7435         effect.  This gets the close button back in messageboxes.
7437 2006-09-27  Chris Toshok  <toshok@ximian.com>
7439         * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
7440         flag, not just != 0.  this makes flags that are actually multiple
7441         bits (like WS_CAPTION) work.  fixes bug #79508.
7443 2006-09-27  Jordi Mas i Hernandez <jordimash@gmail.com>
7445         * PageSetupDialog.cs: add support for getting and settings the 
7446         paper size, source and orientation.
7448 2006-09-26  Chris Toshok  <toshok@ximian.com>
7450         * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
7451         and caption == "", we need to remove the resize handles as well as
7452         the title bar.
7454         * Control.cs (set_Text): turns out that setting Text on a form
7455         should change the WM styles on the window, since if ControlBox ==
7456         false, the only way to get a window border is to have a non-""
7457         Text property.  check winforms/forms/text.cs for an example.  so,
7458         call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
7459         update both window styles and title.  This fixes a lot of dialogs
7460         (including the preferences dialog in MonoCalendar.)
7462 2006-09-26  Chris Toshok  <toshok@ximian.com>
7464         * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
7465         control isn't a Form), call Win32ShowWindow to hide the window,
7466         but don't update the control Visible property.  When we reparent
7467         back to a parent control, call SetVisible in order for the
7468         window's visibility to be reinstated.
7470         * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
7471         the FosterParent.
7473         * Control.cs (ControlCollection.Remove): remove that value.Hide()
7474         call for good, since it breaks MonoCalendar (and other things I'm
7475         sure.) Also, set all_controls to null *after* the owner calls,
7476         which end up regenerating it.
7477         (ChangeParent): allow new_parent to be == null, passing
7478         IntPtr.Zero down to XplatUI.
7480         this fixes #79294 the right way.
7482 2006-09-26  Mike Kestner  <mkestner@novell.com>
7484         * GridEntry.cs : internal SetParent method.
7485         * PropertyGrid.cs : attach to property changed on the proper
7486         target if we have a hierarchical grid with subobjects. Setup
7487         GridItem.Parent for hierarchical items.
7488         * PropertyGridView.cs : Set value on the correct target for
7489         hierarchical grids. [Fixes #78903]
7491 2006-09-26  Chris Toshok  <toshok@ximian.com>
7493         * Control.cs (ChildNeedsRecreating): this should return true if
7494         either we're being recreated and the child is in our list, or our
7495         parent is waiting for our recreation.
7497 2006-09-26  Chris Toshok  <toshok@ximian.com>
7499         * Control.cs (ControlCollection.Remove): reinstate the
7500         value.Hide() call as suggested in bug #79294.
7502 2006-09-26  Sebastien Pouliot  <sebastien@ximian.com>
7504         * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
7505         coordinates (versus a relative move).
7507 2006-09-26  Chris Toshok  <toshok@ximian.com>
7509         * Control.cs: rework child recreation a little bit.  It turns out
7510         that we race between the DestroyNotify the WM_DESTROY message.  If
7511         the parent gets its DestroyNotify before the child gets the
7512         WM_DESTROY message, the child ends up not recreating (since the
7513         parent finishes its recreation on DestroyNotify, and the child
7514         checks ParentIsRecreating.)
7516         So, instead we store off a list of all the child controls which
7517         need to be recreated when the parent control starts to recreate
7518         itself.  Then, when child controls get their WM_DESTROY message we
7519         check to see if they're in the parent's pending recreation list,
7520         and if so, we recreate.  This removes all dependency on ordering
7521         from the code and fixes the initial MonoCalendar upgrade dialog.
7522         
7523 2006-09-26  Jackson Harper  <jackson@ximian.com>
7525         * TextControl.cs: Use the Line to get the length of the line,
7526         since soft line breaks can change the end line.
7528 2006-09-26  Chris Toshok  <toshok@ximian.com>
7530         * Control.cs (ControlCollection.AddImplicit): don't add the
7531         control again if it's already in one of our lists.  This keeps us
7532         from adding controls over and over again for comboboxes when their
7533         handle gets recreated (as the combobox adds implicit controls in
7534         OnHandleCreated).  Fixes the X11 errors in bug #79480.
7536 2006-09-26  Jackson Harper  <jackson@ximian.com>
7538         * TextControl.cs: When deleting characters make sure that any
7539         orphaned zero lengthed tags get deleted.
7540         - Fix ToString for zero lengthed tags.
7542 2006-09-25  Jackson Harper  <jackson@ximian.com>
7544         * TextControl.cs: When getting a tag at the location there can be
7545         multiple tags at the same spot, these are 0-lengthed tags that
7546         appear when extra formatting has been stuck in a location.  We
7547         need to pull out the last of these 0 lengthed tags.
7549 2006-09-25  Jackson Harper  <jackson@ximian.com>
7551         * TextControl.cs: Fix print out in debug method.
7552         * TextBoxBase.cs: When text is set bail if we are setting to the
7553         previous value.
7554         
7555 2006-09-24  Alexander Olk  <alex.olk@googlemail.com>
7557         * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
7558           It is now possible to change the selected index in a FontXXXListBox
7559           with the up and down arrow keys from the FontXXXTextBoxes.
7560           Also, send the FontXXXTextBox mouse wheel event to the corresponding
7561           FontXXXListBoxes to match ms.
7563 2006-09-22  Sebastien Pouliot  <sebastien@ximian.com>
7565         * SystemInformation.cs: Return a clone of the theme's MenuFont because
7566         anyone can dispose it, anytime. All other properties returns enums, 
7567         structs or basic types so they don't need such tricks.
7569 2006-09-22  Jackson Harper  <jackson@ximian.com>
7571         * XplatUI.cs:
7572         * XplatUIWin32.cs:
7573         * Clipboard.cs:
7574         * DataFormats.cs:
7575         * XplatUIOSX.cs:
7576         * XplatUIDriver.cs: Update interface to add a primary selection
7577         flag, so the driver can use the primary selection buffer if
7578         needed.
7579         * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
7581         * RichTextBox.cs: We need to supply the data object to paste now
7582         (so we can choose to supply CLIPBOARD or PRIMARY).
7583         * TextBoxBase.cs: Supply data object to paste (see above).
7584         - Middle click uses the primary selection data object.
7585         
7586 2006-09-21  Chris Toshok  <toshok@ximian.com>
7588         * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
7589         of SetWMStyles.  It's still a rat's nest and is largely
7590         order-dependent which I dislike immensely.  This also fixes the X
7591         button disappearing from toplevel forms.
7593 2006-09-21  Mike Kestner <mkestner@novell.com>
7595         * ListBox.cs: move Jordi's click/dblclick raising code to the
7596         mouse up handler.
7598 2006-09-21  Jordi Mas i Hernandez <jordimash@gmail.com>
7600         * ListBox.cs: Fixes 79450
7602 2006-09-21  Mike Kestner <mkestner@novell.com>
7604         * TreeView.cs: guard against disposed conditions in UpdateScrollbars
7605         to deal with people updating the TreeNodeCollection after the tree
7606         is disposed.  "Fixes" 79330.
7608 2006-09-20  Jackson Harper <jackson@ximian.com>
7610         * TextControl.cs: Push the cursor record onto the undo stack
7611         before the delete action. This fixes 78651.
7613 2006-09-20  Jonathan Chambers  <joncham@gmail.com>
7615         * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
7616         CreateParams. Fixes 79329.
7618 2006-09-19  Chris Toshok  <toshok@ximian.com>
7620         * XplatUIX11.cs: a couple of blanket code massage passes to clean
7621         things up a bit.  First, get rid of the NetAtoms array (and the NA
7622         enum), and just embed the atoms as static fields.  Also, add a
7623         couple of functions (StyleSet and ExStyleSet) to clean up all the
7624         bitmask testing of styles.
7626         * X11Structs.cs: remove the NA enum, not needed anymore.
7627         
7628 2006-09-19  Chris Toshok  <toshok@ximian.com>
7630         * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
7631         (mapping them to _NET_WM_WINDOW_TYPE_UTILITY).  and add a little
7632         added cleanup to get MessageBox titles appearing again, which were
7633         broken by my earlier fix for caption-less/ControlBox-less windows.
7635 2006-09-18  Jonathan Pobst <monkey@jpobst.com>
7637         * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
7638           ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
7639           ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
7640           ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
7641           ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
7642           ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
7643           ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
7644           ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
7645           ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
7646           ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
7647           ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
7648             Inital import.
7649         * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
7650           ToolStripButton.cs: Stubs needed for above.
7651         * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
7653 2006-09-15  Chris Toshok  <toshok@ximian.com>
7655         * XplatUIX11.cs:
7656         - make the MessageQueues hashtable Synchronized.
7657         
7658         - SendMessage: if the Hwnd is owned by a different thread, use the
7659         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
7660         thread.  Fixes bug #79201.
7662 2006-09-15  Chris Toshok  <toshok@ximian.com>
7664         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
7665         ControlBox == false, we disallow maximize/minimize/close.  If the
7666         form Caption is "" we also disallow move (and get rid of the Title
7667         decoration).  Unfortunately, regardless of how things are set,
7668         we're stuck with the Title and WM menu.
7670 2006-09-15  Chris Toshok  <toshok@ximian.com>
7672         * Application.cs: add locking around the static message_filters
7673         ArrayList, part of #79196.
7675 2006-09-15  Chris Toshok  <toshok@ximian.com>
7677         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
7678         Form.ControlBox == false, the window has no titlebar nor resize
7679         handles.  fixes bug #79368.
7681 2006-09-15  Chris Toshok  <toshok@ximian.com>
7683         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
7684         >= 0.  Fixes bug #79370.
7686 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
7687         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
7688         * Control.cs:
7689             Add properties: LayoutEngine, Margin, DefaultMargin.
7690             Add method: GetPreferredSize.
7691             Move layout logic from PerformLayout to layout engines. 
7693 2006-09-13  Chris Toshok  <toshok@ximian.com>
7695         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
7696         fix for #79326 broke #78718, so this change addresses that.
7698         - in SendWMDestroyMessages remove the call to
7699         CleanupCachedWindows, since we might be recreating the control and
7700         need to maintain the references to right Hwnd handles.  Also, set
7701         the zombie flag to true for each of the children in the hierarchy
7702         instead of calling hwnd.Dispose.  This will cause GetMessage to
7703         ignore all events for the window except for DestroyNotify.
7705         - In GetMessage, ignore messages except for DestroyNotify for
7706         zombie hwnds.
7707         
7708         * Control.cs: revert the is_recreating fix from the last
7709         ChangeLog.  It's definitely "right", but it breaks switching from
7710         an MDI form to a non-MDI form.  Will need to revisit that.
7712         * Hwnd.cs: add a zombie flag, which means "the
7713         client_window/whole_window handles are invalid, but we're waiting
7714         for the DestroyNotify event to come in for them".  Set the flag to
7715         false explicitly if setting WholeWindow/ClientWindow, and also
7716         when Disposing.
7717         
7718 2006-09-13  Chris Toshok  <toshok@ximian.com>
7720         * XplatUIX11.cs: rework window destruction slightly.
7722         - when destroying the windows associated with a control, we don't
7723         need 2 separate XDestroyWindow calls.  Just the one for the
7724         whole_window (or for client_window if whole_window is somehow
7725         IntPtr.Zero -- can this happen?) is enough.
7727         - reworked SendWMDestroyMessages slightly, so we always dispose
7728         the child control hwnd's after sending the messages.
7729         
7730         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
7731         the two places it was used (one was even using hwnd.Handle and the
7732         other hwnd.client_window.  ugh), adding another call in
7733         SendWMDestroyMessages.  We need this new call because now the
7734         DestroyNotify events in the queue will be ignored for the child
7735         controls (as their hwnd's were disposed, and the window id's
7736         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
7738         - this fixes bug #79326.
7740 2006-09-13  Chris Toshok  <toshok@ximian.com>
7742         * Control.cs: don't always set is_recreating to false at the end
7743         of RecreateHandle, since sometimes we're not done (and won't be
7744         until WndProc handles the WM_DESTROY message).  Also, set
7745         is_recreating to false in the WM_DESTROY handling code.  Part of
7746         the fix for bug #79326.
7748 2006-09-13  Miguel de Icaza  <miguel@novell.com>
7750         * X11DesktopColors.cs: Start the droppage of debugging messages.
7752         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
7754 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
7756         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
7758 2006-09-12  Chris Toshok  <toshok@ximian.com>
7760         * DataGrid.cs (get_ListManager): if the list_manager is null, try
7761         to create it using SetDataSource.  Fixes bug #79151.
7763 2006-09-11  Chris Toshok  <toshok@ximian.com>
7765         * XEventQueue.cs: add a DispatchIdle property.
7767         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
7768         either the queue is null, or the queue has DispatchIdle set to
7769         true.
7770         (DoEvents): set queue.DispatchIdle to false around the
7771         peek/translate/dispatch message loop in this method.  This keeps
7772         Application.Doevents from emitting idle events.  Part of the fix
7773         for #78823.
7775 2006-09-11  Chris Toshok  <toshok@ximian.com>
7777         * DataGrid.cs (set_DataSource): make this work for both the
7778         winforms/datagrid test and ReportBuilder.  It seems as though when
7779         we've created a ListManager (or maybe it's if we have a
7780         BindingContext?), when we set the DataSource it clears the
7781         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
7782         #79333.
7784 2006-09-11  Chris Toshok  <toshok@ximian.com>
7786         * XplatUIX11.cs: deal with queue being null, which happens in all
7787         the Clipboard functions.  Fixes one of the two problems mentioned
7788         in #78612.
7790 2006-09-11  Chris Toshok  <toshok@ximian.com>
7792         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
7793         button on various spots (including outside the menu) works closer
7794         to MS, and doesn't crash.  Fixes #79343.
7796 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
7798         * ListView.cs: Do not initialize item_sorter in init. To match MS,
7799         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
7800         and the internal comparer is set. When a new ListViewItemSorter is set,
7801         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
7802         was specified. No further processing is necessary if SortOrder is set
7803         to it's current value. If Sorting is modified to None, and View is
7804         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
7805         (either custom or our internal ItemComparer) to null, on 1.0 profile
7806         only set item_sorter to null if its our internal IComparer. If Sorting
7807         is modified to Ascending or Descending, then use our internal IComparer
7808         if none is set, and if the current IComparer is our internal one then:
7809         on 2.0 profile always replace it with one for new Sorting, and on 1.0
7810         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
7811         Enum.IsDefined to verify whether a valid View value is specified in
7812         its setter. Automatically sort listview items when listview is
7813         created. In Sort, do nothing if ListView is not yet created, or if
7814         no item_sorter is set (no Sorting was set, Sorting was explicitly set
7815         to None or ListViewItemSorter was set to null). Added Sort overload
7816         taking a bool to indicate whether the ListView should be redrawn when
7817         items are sorted (we use this in ListViewItemCollection to avoid double
7818         redraws). Modified our internal IComparer to take the sort order into
7819         account. In Add and AddRange methods of ListViewItemCollection, also
7820         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
7821         view), but use overload with noredraw option to avoid double redraw.
7822         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
7823         true when View is Tile, and do the same when attempting to set View to
7824         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
7825         for selected/checked indices, as it involves overhead when sorting is
7826         done while these collections are not used all that often. Instead
7827         we'll build the indices on demand. Modified IList implementation of
7828         CheckedIndexCollection to use public methods if object is int.
7829         Modified CheckedListViewItemCollection to hide checked items if
7830         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
7831         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
7832         IList implementation in SelectedIndexCollection to use public methods
7833         if object is int. Modified SelectedListViewItemCollection to hide
7834         selected items if listview is not yet created.
7835         * ListViewItem.cs: CheckedIndices list no longer needs to be
7836         maintained separately (see ListView changes). Also clone font, fixes
7837         test failure.
7839 2006-09-11  Mike Kestner  <mkestner@novell.com>
7841         * ComboBox.cs: if we are updating the contents of the currently
7842         selected index, refresh the control or the textbox selection.
7843         [Fixes #79066]
7845 2006-09-11  Mike Kestner  <mkestner@novell.com>
7847         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
7848         the 'specified' logic has been moved there.  This seems like a bug 
7849         in Control.cs, since our current SetBoundsCore completely ignores 
7850         the specified parameter.  Peter's commit seems to indicate that is 
7851         the way the MS control implementation works.  [Fixes #79325]
7853 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
7855         * XplatUI.cs: Set default_class_name to be composed
7856         of current domain id. This allows MWF to be loaded in multiple
7857         domains on Win32.
7859 2006-09-09  Miguel de Icaza  <miguel@novell.com>
7861         * X11Keyboard.cs: If we are unable to obtain the input method, do
7862         not call CreateXic to create the input context.   Should fix
7863         #78944/79276.
7865 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
7867         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
7868           Simplified gnome support by adding more pinvokes to get the
7869           icon for a file or mime type.
7871 2006-09-08  Jackson Harper  <jackson@ximian.com>
7873         * MenuAPI.cs: Deslect popup context menu items before closing the
7874         window, so that you don't see the previously selected item
7875         selected when you reopen the menu.
7876         * TextControl.cs: Update the cursor position even if we don't have
7877         focus.  This fixes typing in things like the ComboBox.  I'm not
7878         totally sure we should always set the visibility if we don't have
7879         focus, but couldn't find any corner cases where the cursor showed
7880         up when it shouldn't.
7882 2006-09-08  Chris Toshok  <toshok@ximian.com>
7884         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
7885         our arrays are length 256.  & 0xff before indexing.  Fixes the
7886         crash in bug #78077.
7887         
7888 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7890         * ThemeWin32Classic.cs: 
7891         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
7892         is true. Handle that check box too.
7894 2006-09-07  Chris Toshok  <toshok@ximian.com>
7896         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
7897         79244.
7899 2006-09-07  Chris Toshok  <toshok@ximian.com>
7901         * Control.cs: in set_BackColor only do the work if
7902         background_color != value.
7904         * XplatUIX11.cs: move the clearing of invalid areas (both client
7905         and nc) to the same block of code where we set (nc_)expose_pending
7906         to false.  That is, move it from PaintEventEnd to PaintEventStart,
7907         so things that cause invalidates from within OnPaint will trigger
7908         another call to OnPaint.  Fixes bug #79262.
7910 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
7912         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
7913         * FileDialog.cs: Fix typo
7915 2006-09-07  Jackson Harper  <jackson@ximian.com>
7917         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
7918         for tab pages if they have any.
7920 2006-09-06  Mike Kestner  <mkestner@novell.com>
7922         * Splitter.cs: use the "current" rect when finishing drag handle
7923         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
7925 2006-09-06  Mike Kestner  <mkestner@novell.com>
7927         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
7928         support offset splitters. [Fixes #79298]
7930 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
7932         * Mime.cs: Fixed a bug that could override the global mime type
7933           result.
7935 2006-09-05  Jackson Harper  <jackson@ximian.com>
7937         * TabControl.cs: Better calculation method for setting the slider
7938         pos. Prevents crashes on really wide tabs.
7939         - Draw Image on tab pages if an image list is used.
7941 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7943         * MonthCalendar.cs: When Font changes, the Size should be
7944         updated to fit the new font's space requirements.
7946 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
7948         * ListBox.cs: If the items are cleared with Items.Clear set
7949           top_index to 0.
7951 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7953         * MonthCalendar.cs: Handle arrow keys as input keys. Also
7954         fire DateChanged event instead of DateSelected event when
7955         the date was changed by keyboard interaction.
7957 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7959         * DateTimePicker.cs: Handle DateChanged for the associated
7960         month_calendar control, and set month_calendar.Font from 
7961         OnFontChanged method, as well as resize the height of the
7962         control when needed. Make PreferredHeight proportional.
7964 2006-09-01  Chris Toshok  <toshok@ximian.com>
7966         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
7967         properties.
7969         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
7971 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
7973         * FileDialog.cs: Set ClientSize instead of window size, to allow space
7974           for decorations (Fixes #79219)
7976 2006-09-01  Mike Kestner  <mkestner@novell.com>
7978         * ComboBox.cs: first stab at sorting plus some selection handling
7979         fixes to bring us more in line with MS behavior.  Also switches back
7980         to index based selection.  Alternative patches for index-based 
7981         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
7982         and latency@gmx.de on bug 78848.  I assume they were similar to this
7983         code I've had simmering in my tree forever.
7984         [Fixes #78848]
7986 2006-09-01  Chris Toshok  <toshok@ximian.com>
7988         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
7989         when setting list position guard against ending up with a -1 index
7990         (the other part of the fix for #78812).  Should probably make sure
7991         we don't need the analogous fix in the ItemDeleted case.
7993         * DataGrid.cs:
7994         - in SetDataSource, work around the fact that the way
7995         OnBindingContextChanged is invoked will cause us to re-enter this
7996         method.  I'll remove the hack once I investigate
7997         OnBindingContextChanged.
7999         - fix the logic in set_DataSource and set_DataMember (basically
8000         what to do if the other of the two is null.)
8001         
8002         - in OnListManagerItemChanged, we need to take into account the
8003         edit row when deciding whether or not to call RecreateDataGridRows
8004         (part of the fix for #78812).
8006 2006-09-01  Jackson Harper  <jackson@ximian.com>
8008         * Splitter.cs: Don't do anything if there is no control to affect
8009         (prevents us from crashing in weird tet cases).
8010         * TreeView.cs: Bounding box for the mouse movement reverting
8011         focus/selection back to previously selected node.  This matches
8012         MS, and makes the tree a lot more useable.
8013         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
8014         use clipping so they are not drawn.  This fixes when the control
8015         is set to have a transparent background, or if it was over an
8016         image.
8018 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
8020         * MimeIcon.cs: Improved handling for reading default icons when
8021           using gnome (2.16 made it necessary). Check and read svg icons
8022           first, then 48x48 and then 32x32 icons.
8024 2006-08-31  Chris Toshok  <toshok@ximian.com>
8026         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
8027         visible.
8029         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
8030         ProcessKeyPreview.  Fixes part of #77806.
8032         * DataGrid.cs: big patch.
8034         - revert the queueing up of DataSource/DataMember if inside
8035         BeginInit/EndInit calls.  That's not the way the datagrid achieves
8036         its delayed databinding.  Instead, call SetDataSource in
8037         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
8038         #78811.
8040         - Also, it wasn't mentioned in #78811, but the test case exhibits
8041         behavior that was lacking in our datagrid implementation - Columns
8042         that have mapping names that don't exist in the datasource's
8043         properties aren't shown.  Yuck.  To fix this I added the bound
8044         field to the column style, and basically any calculation to figure
8045         out anything about columns uses a loop to find the bound columns.
8046         still need to investigate if I can cache an array of the bound
8047         columns or if the indices must be the same.
8049         - When setting CurrentCell, we no longer abort if the cell being
8050         edited was in the add row.  This fixes the other part of #77806.
8052         - The new code also fixes #78807.
8053         
8054         * ThemeWin32Classic.cs: perpetrate the same disgusting
8055         column.bound field hack, and only render bound fields.
8057 2006-08-31  Chris Toshok  <toshok@ximian.com>
8059         * DataGridColumnStyle.cs: add bound field.  this field is true if
8060         the datasource has a property corresponding to the mapping name.
8062         * DataGridTableStyle.cs: set the bound field on the column styles
8063         depending on whether or not we have a column for that property.
8065 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
8067         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
8068           splitter control (fixes #79228)
8070 2006-08-31  Chris Toshok  <toshok@ximian.com>
8072         * DataGridColumnStyle.cs: we need to delay the assignment of
8073         property descriptor until the last possible moment due to the lazy
8074         databinding stuff in the datagrid.  Also, fix the exceptions
8075         thrown by CheckValidDataSource to match MS.
8077 2006-08-31  Jackson Harper  <jackson@ximian.com>
8079         * Form.cs: When activated select the active control, if there is
8080         no active control, we select the first control.
8081         * XplatUIX11.cs: If there is no focus control when we get a
8082         FocusIn event, find the toplevel form and activate it.  This
8083         occurs when you popup a window, it becomes the focus window, then
8084         you close that window, giving focus back to the main window.
8086 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8088         * MonthCalendar.cs: 
8089         * ThemeWin32Classic.cs: Cache Font in bold style, as well
8090         as StringFormat with Center alignments in MonthCalendar,
8091         instead of creating new ones when drawing the control. 
8092         Also, draw the month name in bold style.
8094 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
8096         * Control.cs:
8097           - PerformLayout(): It would seem MS performs the fill even if the 
8098             control is not visible (part of #79218 fix)
8099           - ResetBackColor(): Use the setter to reset the color, to allow
8100             overriders to catch the change.
8101         * Form.cs:
8102           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
8103           - CreateHandle(): dito (part of $79218 fix)
8104           - Don't set an icon if we have a dialog
8105         * ScrollableControl.cs:
8106           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
8107           - ScrollIntoView(): No need to scroll if control is already visible
8108             (resolves fixme and fixes #79218)
8110 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8112         * MonthCalendar.cs: Change proportions in SingleMonthSize
8113         to match the aspect of the original control.
8115 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
8117         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
8118           get updated when they get maximized.
8120 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
8122         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
8124 2006-08-29  Chris Toshok  <toshok@ximian.com>
8126         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
8128 2006-08-29  Jackson Harper  <jackson@ximian.com>
8130         * TreeView.cs: Need to track selected node and highlighted node,
8131         they aren't always the same thing, when the mouse is down on a
8132         node it is hilighted, but not selected yet.
8133         - Do the HideSelection stuff right
8134         - Need to focus on rbutton mouse down. And redraw selection when
8135         right click is mouse upped.
8137 2006-08-29  Mike Kestner  <mkestner@novell.com>
8139         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
8140         when SubItems.Count < Columns.Count.  [Fixes #79167]
8142 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
8144         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
8146 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
8148         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
8149           from X. Only send based on ConfigureNotify if we don't have the
8150           correct location in hwnd (if the window manager moved us)
8152 2006-08-28  Mike Kestner  <mkestner@novell.com>
8154         * ListView.cs: remove a TODO. 
8155         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
8156         [Fixes ListView part of #79166]
8158 2006-08-28  Mike Kestner  <mkestner@novell.com>
8160         * ListView.cs: move wheel handler to parent since it is focused
8161         instead of the item_control now.  [Fixes #79177]
8163 2006-08-28  Mike Kestner  <mkestner@novell.com>
8165         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
8166         when the control is focused. [Fixes #79171]
8168 2006-08-28  Mike Kestner  <mkestner@novell.com>
8170         * ListView.cs: size the item and header controls for empty and
8171         unscrollable views.
8172         * ThemeWin32Classic.cs: draw disabled backgrounds.
8173         [Fixes #79187]
8175 2006-08-28  Chris Toshok  <toshok@ximian.com>
8177         * Form.cs: remove unused "active_form" static field.
8179         * Hwnd.cs: lock around accesses to static windows collection.
8181         * Application.cs: lock threads in Exit ().
8183 2006-08-28  Chris Toshok  <toshok@ximian.com>
8185         * NativeWindow.cs: lock around accesses to window_collection.
8186         
8187 2006-08-28  Chris Toshok  <toshok@ximian.com>
8189         * Control.cs: err, fix this the right way, by locking on controls
8190         when using it.  not by making it synchronized.
8192 2006-08-28  Chris Toshok  <toshok@ximian.com>
8194         * Control.cs: make the static "controls" field synchronized, as it
8195         gets updated from multiple threads.
8197 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
8199         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
8200           Prevent other threads from exiting when calling thread sets quit state.
8201         * XEventQueue.cs: Added PostQuitState property
8203 2006-08-27  Chris Toshok  <toshok@ximian.com>
8205         * AsyncMethodData.cs: add a slot for the window handle.
8207         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
8208         window (the destination control's window, not the foster window).
8210         * Control.cs (BeginInvokeInternal): store the window's handle in
8211         the AsyncMethodData.
8212         
8214 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
8216         * XplatUIX11.cs:
8217           - PostQuitMessage: Removed resetting S.D display handle, we might have
8218             another loop started after calling PostQuitMessage (Fixes #79119)
8219           - Created destructor to reset S.D handle
8221 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
8223         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
8225 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
8227         * TextControl.cs (Insert): Update the caret position even if we don't
8228           have a handle yet, just don't call the driver in that case.
8229         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
8230           to the end of the new selection text (Fixes #79184)
8232 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
8234         * Form.cs (Activate): Only activate if the handle is created)
8235         * Control.c:
8236           - Mark window as invisible when it's disposed
8237           - Check if window handle is created when setting window visible, 
8238             instead of relying just on the is_created variable
8239           - Check if object is disposed when creating the control (Fixes #79155)
8241 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
8243         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
8244           when allowing layout again. Otherwise we re-generate the anchoring 
8245           distance to the border again and actually alter what the user wanted
8246           This is ugly, it'd be better if we used DisplayRectangle instead of
8247           ClientRectangle for Control.UpdateDistances, but that causes us to
8248           have other problems (initial anchoring positons would be wrong)
8249           (Fixes #78835)
8251 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
8253         * Control.cs:
8254           - The size and location setters shouldn't go directly to 
8255             SetBoundsCore, but to SetBounds, which triggers layout on the
8256             parent, then calls SetBoundsCore. (Related to fix for #78835)
8257           - SetBounds: Moved actual location update code into this function
8258             from SetBoundsCore, to match MS. Added call to PerformLayout if
8259             we have a parent (to trigger resizing of anchored parents if the 
8260             child size has changed (see testcase for #78835) 
8261         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
8262           new control code
8263         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
8265 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
8267         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
8268           System.Drawing when a toplevel window gets closed; there might
8269           be other toplevel windows belonging to the same app (Fixes #78052)
8271 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
8273         * FileDialog.cs: After reading FileDialog settings from mwf_config
8274           use Desktop prefix only if a real folder doesn't exist anymore.
8275         * FontDialog.cs: Added char sets.
8276           It is now possible to select the font, size or style with the
8277           textboxes.
8279 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
8281         * PrintPreviewDialog.cs: Use assembly name constants.
8283 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
8285         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
8286           scrollbar from whacking it's buttons)
8288 2006-08-24  Chris Toshok  <toshok@ximian.com>
8290         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
8291         in this patch (aggregating setting Left/Top/Width/Height to
8292         setting Bounds on the scrollbars), but the crux of the fix is in
8293         Recalculate, where we scroll by the remaining scroll_position if
8294         we're hiding a scrollbar.  The 2*$5 reward in the comment is
8295         serious.
8297 2006-08-24  Jackson Harper  <jackson@ximian.com>
8299         * MdiClient.cs:
8300         * MdiWindowManager.cs: If the form is made a non-mdi window we
8301         need to remove the form closed event so that closing forms works
8302         correctly.
8304 2006-08-24  Jackson Harper  <jackson@ximian.com>
8306         * Control.cs: Make IsRecreating internal so that the driver can
8307         check it
8308         - Temporarily remove the Hide when controls are removed, its
8309         making a whole bunch of things not work because visibility isn't
8310         getting reset elsewhere correctly
8311         * Form.cs: Need to do a full handle recreation when the mdi parent
8312         is set.
8313         * XplatUIX11.cs: If we are recreating handles don't dispose the
8314         HWNDs.  What was happening is the handles were being recreated in
8315         SendWMDestroyMessages, but then flow continued on in that method
8316         and destroyed the new handles.
8318 2006-08-23  Jackson Harper  <jackson@ximian.com>
8320         * Form.cs: MdiClient is always at the back of the bus
8321         * Control.cs: When the order of items in the collection is changed
8322         we need to reset the all_controls array
8323         - do the same sorta setup thats done when adding a control when a
8324         control is set on the collection.
8326 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
8328         * TextBoxBase.cs (get_Text): Return an empty array if our document
8329           is empty (fixes #79052)
8331 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
8333         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
8334           on WM_SYSCHAR messages (fixes #79053)
8336 2006-08-23  Chris Toshok  <toshok@ximian.com>
8338         * DataGrid.cs: fix flickering when scrolling vertically.
8340 2006-08-23  Chris Toshok  <toshok@ximian.com>
8342         * DataGrid.cs (EndEdit): only invalidate the row header when we
8343         need to.
8345 2006-08-23  Chris Toshok  <toshok@ximian.com>
8347         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
8348         methods.  fixes the flicker when scrolling around.
8350 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
8352         * FileDialog.cs: Making sure the control is created before we get a 
8353           chance to use it with BeginInvoke (Fixes #79096)
8355 2006-08-23  Chris Toshok  <toshok@ximian.com>
8357         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
8358         width to use when painting the rows.
8360 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
8362         * TextBoxBase.cs:
8363           - Throw ArgumentException if a negative value is passed to SelectionLength
8364           - Update the selection end if start is moved. end needs to be always
8365             after start. (Fixes #79095)
8366           - Track selection length; MS keeps the selection length even if start
8367             is changed; reset on all other operations affection selection
8369 2006-08-22  Jackson Harper  <jackson@ximian.com>
8371         * TreeView.cs: Make sure both scrollbars get displayed and sized
8372         correctly when the other bar is visible.
8373         - Use the original clip rectangle for checking if the area between
8374         the two scrollbars is visible, not the viewport adjusted clipping
8375         rectangle.
8377 2006-08-22  Jackson Harper  <jackson@ximian.com>
8379         * Binding.cs: We don't use IsBinding because it requires the
8380         control to be created, which really shouldn't be necessary just to
8381         set a property on the control.
8383 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8385         * ComboBox.cs: Some CB.ObjectCollection methods must throw
8386         ArgumentNullReferenceException when the argument is null.
8388 2006-08-21  Jackson Harper  <jackson@ximian.com>
8390         * Timer.cs: Track the thread that the timer is started in (NOT
8391         CREATED), this way messages for it will only be triggered on its
8392         queue.
8393         * XEventQueue.cs: Track the timers here, this makes timers per
8394         thread, like MS.
8395         * XplatUIX11.cs: The timers are moved to the XEventQueue.
8397 2006-08-19  Chris Toshok  <toshok@ximian.com>
8399         * XplatUIX11.cs: after further communication with pdb, we get the
8400         best of both worlds.  SetZOrder working for un-Mapped windows, and
8401         no X errors for un-mapped windows.
8403 2006-08-19  Chris Toshok  <toshok@ximian.com>
8405         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
8406         as it was causing pdn toolbars to not have the correct stacking.
8408 2006-08-18  Mike Kestner  <mkestner@novell.com> 
8410         * ListView.cs : guard against negative ClientArea.Width in scrollbar
8411         calculation.  Not sure why control should ever be setting a negative
8412         width though.  Fixes #78931.
8414 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8416         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
8417         null items in ObjectCollection class.
8418         * ListBox.cs.: Likewise.
8420 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
8422         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
8423           as the base method in ThemeWin32Classic should work fine.
8424           Fixed bug #78607.
8426 2006-08-18  Jackson Harper  <jackson@ximian.com>
8428         * Binding.cs: When validating if the value entered doesn't convert
8429         properly reset to the old value.
8430         * RadioButton.cs: Don't fire click when we get focus.
8432 2006-08-18  Jackson Harper  <jackson@ximian.com>
8434         * FileDialog.cs: Paint the selection on the directory combobox the
8435         same way as on MS. 
8437 2006-08-17  Jackson Harper  <jackson@ximian.com>
8439         * ErrorProvider.cs: Don't allow the error control to be selected.
8440         * Control.cs: Don't send the SetFocus messages, the control
8441         activation will do this, and if we do it blindly here validation
8442         does not work.
8444 2006-08-17  Jackson Harper  <jackson@ximian.com>
8446         * Control.cs:
8447         * ContainerControl.cs: Make validation events fire in the correct
8448         order.  TODO: For some reason the first validation event is not
8449         getting fired.
8451 2006-08-17  Mike Kestner  <mkestner@novell.com> 
8453         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
8455 2006-08-17  Mike Kestner  <mkestner@novell.com> 
8457         * ComboBox.cs : implement scroll wheel support for popped-down
8458         state. Fixes #78945. 
8460 2006-08-17  Jackson Harper  <jackson@ximian.com>
8462         * TreeView.cs: Specify treeview actions (old patch that didn't get
8463         committed for some reason).
8464         - Don't let the mouse wheel scroll us too far.  Just want to make
8465         the bottom node visible, not scroll it all the ways to the top.
8467 2006-08-17  Jackson Harper  <jackson@ximian.com>
8469         * XplatUIX11.cs: Mouse wheel events go to the focused window.
8471 2006-08-17  Mike Kestner  <mkestner@novell.com> 
8473         * ComboBox.cs : don't do mouseover selection in simple mode.
8475 2006-08-16  Jackson Harper  <jackson@ximian.com>
8477         * Form.cs: Fire the closing events for all the mdi child windows
8478         when a window is closed.  If the cancel args are set to true, the
8479         main window still gets the event fired, but it doesn't not close.
8480         * MdiWindowManager.cs: Do this closing cleanup in a Closed
8481         handler, instead of when the button is clicked, so cancelling the
8482         close works correctly.
8483         * ComboBox.cs: Send the mouse down to the scrollbar.
8485 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8487         * ListBox.cs: When passing 'null' to SelectedItem,
8488         set SelectedIndex to -1, to unselect items. This is the
8489         observed behaviour in .Net.
8491 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
8493         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
8494           MS flags saying there won't be any. (fixes #78800)
8495         * Control.cs (HandleClick): Made virtual
8497 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
8499         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
8500           cultures. Fixed bug #78399.
8502 2006-08-16  Jackson Harper  <jackson@ximian.com>
8504         * Form.cs: Use the MdiClients MdiChildren property to access
8505         MdiChildren instead of creating the array from the child controls.
8506         * MdiClient.cs: Maintain a separate array of the mdi children, so
8507         that insertion order is maintained when the Z-order is changed.
8509 2006-08-16  Mike Kestner  <mkestner@novell.com> 
8511         * ListView.cs : add an ItemComparer and default to it for sorting.
8512         Fixes #79076, but sorting needs a complete overhaul to be compat with
8513         MS.
8515 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
8517         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
8519 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
8521         * Hwnd.cs (Mapped): Properly traverse the tree
8523 2006-08-15  Chris Toshok  <toshok@ximian.com>
8525         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
8526         pass manager.Current.GetType() to ParseData.  It has to be the
8527         property type.  So, hold off doing the ParseData until we're in
8528         SetPropertyValue where we know the type.  This fixes the crash in
8529         #78821 but the textbox is still empty.
8531 2006-08-15  Chris Toshok  <toshok@ximian.com>
8533         * DataGrid.cs:
8534         - when we're scrolling, only call Edit() again if the
8535         current cell is still unobscured. Fixes bug #78927.
8536         - when handling mousedown on a cell, ensure the cell is visible
8537         before calling Edit.
8538         - remove the properties from DataGridRow, and remove the
8539         DataGridParentRow class altogether.
8540         
8542 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
8544         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
8545           fire OnTextChanged by ourselves. There's no point calling base,
8546           we don't set the base value anywhere else. Fixes #78773.
8548 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8550         * ListBox.cs: Call CollectionChanged when modifying
8551         an item from Items indexer, to update the actual items
8552         in the list box.
8554 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8556         * PrintDialog.cs: Small fixes for focus and a pair of checks,
8557         to match .Net behaviour.
8559 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
8561         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
8563 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
8565         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
8567 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
8569         * MessageBox.cs: Prevent potential NRE exception.
8570         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
8572 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
8574         * MessageBox.cs: Calculate the owner of a messagebox, also make
8575           it topmost. Fixes #78753
8577 2006-08-14  Chris Toshok  <toshok@ximian.com>
8579         * XplatUIX11.cs: A couple of fixes so that metacity will let us
8580         programmatically move windows.  first, set the PPosition hint as
8581         well as the USPosition hint.  Second include some code from pdb
8582         that sets the window type to NORMAL when we set the transient for
8583         hint.  This is because, in the absence of a window type, metacity
8584         thinks any window with TransientFor set is a dialog, and refuses
8585         to let us move it programmatically.  fascists.
8587 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
8589         * XplatUIX11.cs: When setting normal hints, take into consideration
8590           an different hints previously set so we don't delete them (fixes #78866)
8592 2006-08-12  Chris Toshok  <toshok@ximian.com>
8594         * ToolBarButton.cs: make Layout return a boolean, if something to
8595         do with the button's layout changed.
8597         * ToolBar.cs:
8598         - add another parameter to Redraw, @force, which all existing
8599           calls set to true.
8600         - make the Layout function return a boolean which is true if the
8601           layout has actually changed.  Redraw now uses this (and @force)
8602           to determine when to invalidate.  At present the only place
8603           where @force can be false is the call from OnResize, when
8604           background_image == null.  So, resizing a toolbar when the
8605           layout doesn't change results in no drawing.
8607 2006-08-12  Chris Toshok  <toshok@ximian.com>
8609         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
8610         the VScrollBar and HScrollbar reversed.  oops.
8612         * DataGrid.cs: fix the logic that assigns sizes to the implicit
8613         scrollbars.  we were assigning them twice (once in
8614         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
8615         therefore causing two scrollbar resizes (and redraws?) to happen
8616         per grid resize.
8618 2006-08-12  Chris Toshok  <toshok@ximian.com>
8620         * ToolBarButton.cs: redraw the entire button if the theme tells us
8621         to.
8623         * Theme.cs: add ToolBarInvalidateEntireButton.
8625         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
8626         buttons, just the border.
8628         * ThemeNice.cs: redraw the entire toolbar button since we need to
8629         draw the highlight image.
8631         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
8632         we need to redraw the entire button (not just the border).
8634 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
8636         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
8637           for vertical bars. Fixes the mismatches shown by #78513
8639 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
8641         * FileDialog.cs: If a saved/remembered path doesn't exist
8642           anymore, fall back to "Desktop".
8644 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
8646         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
8647           parent. It's apparently legal to not have one
8648         * XplatUIX11.cs:
8649           - SetZOrder: Don't try to set Z-Order on an unmapped window
8650           - CreateWindow: 0,0 are legal coordinates for a window. don't move
8651             it unless the coordinates are negative
8653 2006-08-10  Mike Kestner  <mkestner@novell.com>
8655         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
8656         when setting to null per msdn docs.  Fixes #78854.
8658 2006-08-10  Chris Toshok  <toshok@ximian.com>
8660         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
8661         flickering by setting a clip rectangle on the Graphics when we
8662         need to redraw just a particular menuitem.  Also, rename "OnClick"
8663         to "OnMouseDown" to reflect what it actually is.
8664         
8665         * Form.cs: track the OnMouseDown change.
8667 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
8669         * CommonDialog.cs: Properly inherit the CreateParams from the form
8670           and only change what we need. Fixes #78865
8672 2006-08-10  Chris Toshok  <toshok@ximian.com>
8674         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
8675         flickering in flat mode (and most of the flickering in general) by
8676         only invalidating the button border (and not the entire rectangle)
8677         when the state changes.  A couple of cases still flicker:
8678         ToggleButtons, and the dropdown arrow case when the user mouse
8679         ups.
8681 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
8683         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
8684           for german keyboards. Numlock state shouldn't affect the behaviour
8685           of the Del key. Fixes bug #78291.
8687 2006-08-10  Chris Toshok  <toshok@ximian.com>
8689         * ListControl.cs: remove the items.Clear line from BindDataItems,
8690         as this is the first thing done by both subclasses in their
8691         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
8692         passed -1, refresh the list.  This gets databinding working when
8693         the datasource is set on the list before the datasource is
8694         populated (as in wf-apps/ReportBuilder.)
8696         * ComboBox.cs: remove the argument to BindDataItems.  This call
8697         should really go away, and be initiated by the ListControl code.
8699         * ListBox.cs: same.
8701 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
8703         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
8704           if no data is in the document when the control is displayed
8706 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
8708         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
8709           yes (fixes #78806)
8710         * TextControl.cs: 
8711           - PositionCaret: Allow positioning of caret but don't call methods 
8712             requiring a handle if the window isn't created yet
8713           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
8714           - owner_HandleCreated: Don't position the caret, just update it's 
8715             location. User might have already set a different position
8717 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
8719         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
8720           windows. Screws up the returned coordinates for child windows. 
8721           Fixes #78825. I'm hoping this doesn't break something, since the
8722           code was explicitly put in 8 months ago, but no bug was attached.
8723           Menus still seem to work properly.
8725 2006-08-08  Chris Toshok  <toshok@ximian.com>
8727         * DataGrid.cs: make BeginInit/EndInit actually do what they're
8728         supposed to do - delay data binding until the EndInit call.  Also,
8729         make the table style collection's CollectionChangeAction.Refresh
8730         work properly.
8732         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
8733         (with action = Refresh) when a consituent table's MappingName is
8734         changed.
8736 2006-08-08  Chris Toshok  <toshok@ximian.com>
8738         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
8739         Invalidate, since changing the text can change the size of the all
8740         toolbar buttons.
8742 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
8744         * Form.cs (AddOwnedForm): Still need to add the form to our listif
8745           we don't have it yet
8747 2006-08-08  Chris Toshok  <toshok@ximian.com>
8749         * PrintControllerWithStatusDialog.cs: don't .Close() the status
8750         dialog, as this causes X errors later on, since we actually
8751         destroy the window.  Instead, .Hide() it.
8753 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
8755         * ComboBox.cs: Added focus reflection for popup window
8756         * XplatUIX11.cs: 
8757           - Removed transient setting for non-app windows for now, not sure it
8758             was needed
8759           - Fixed logic checking if we have captions when deciding 
8760             override_redirect, WS_CAPTION is two bits and a 0 check was not
8761             sufficient
8762           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
8763             complicated
8764         * Form.cs: 
8765           - AddOwnedForm: Don't just add the form to the list, call the property
8766             to ensure the driver is informed about the ownership as well
8767           - CreateHandle: Set the TopMost status in the driver if we have an owner
8768         * XplatUI.cs: Fixed debug statement
8770 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
8771         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
8772           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
8773           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
8774           TrackBarRenderer.cs: Make constructor private.
8775         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
8776         * ProfessionalColorTable.cs: Make properties virtual.
8778 2006-08-06  Duncan Mak  <duncan@novell.com>
8780         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
8781         is not changing.
8783 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
8784         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
8785           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
8786           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
8787           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
8788           Initial import of new 2.0 classes.
8790 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
8791         * Application.cs: Add 2.0 VisualStyles properties.
8793 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
8794         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
8795           XplatUIX11.cs: Create property to allow access to existing private
8796           variable "themes_enabled"
8798 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
8800         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
8801         file size, as otherwise our class libraries fail using windows. Fixes
8802         bug #78759.
8804 2006-08-04  Jackson Harper  <jackson@ximian.com>
8806         * Form.cs:
8807         * XplatUIX11.cs: Move the toolwindow window manager creation into
8808         the X11 driver, this way on win32 we can let windows create/handle
8809         the toolwindows.
8811 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8813         * PrintDialog.cs: Remove some redundant checks, add some others,
8814         clean some code, and move the focus to the text boxes when the
8815         values are incorrect.
8817 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
8819         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
8821 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
8823         * NumericUpDown.cs: Setting the Minimum and Maximum is now
8824           handled correctly. Fixes bug #79001.
8826 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8828         * PrintDialog.cs: The "Copies" numeric up down must have
8829         set the Minimum property to 1; only if the value is bigger
8830         than 1, activate "Collate" check box. This is the behaviour of .Net.
8831         Also modify the Document elements only if it is not null.
8833 2006-08-03  Jackson Harper  <jackson@ximian.com>
8835         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
8836         length. (We have a larger array then actual node count).
8837                 
8838 2006-08-03  Jackson Harper  <jackson@ximian.com>
8840         * ComboBox.cs: Don't show selection by default.
8841         - The SelectAll isn't needed here, since the focus code should do
8842         that
8843         - DDL style lists to manual selection drawing, so when they
8844         get/lose focus they have to invalidate.
8846 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
8848         * TextBoxBase.cs: Don't always show all selections by default.
8850 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
8851         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
8852           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
8853           Fixed various typos.
8855 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
8857         * Control.cs: Removing the controls in a ControlCollection with
8858           Clear now hides the controls as expected. Fixes bug #78804. 
8860 2006-08-03  Jackson Harper  <jackson@ximian.com>
8862         * Control.cs: Revert previous focus patch, it breaks reflector.
8864 2006-08-03  Jackson Harper  <jackson@ximian.com>
8866         * ComboBox.cs: Cleanup selection and focus with the combobox.
8867         This also eliminates some duplicated keyboard code, since now
8868         everything is handled by the main class.
8869         - Make list selection work on mouse up instead of down, to match
8870         MS.
8872 2006-08-02  Jackson Harper  <jackson@ximian.com>
8874         * Control.cs: Setting focus needs to go through the whole
8875         selection mechanism.
8877 2006-08-02  Chris Toshok  <toshok@ximian.com>
8879         * PrintPreviewDialog.cs: change MinimumSize to use
8880         base.MinimumSize so it works.
8882 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
8884         * TextControl.cs:
8885           - UpdateCaret: Added sanity check in case caret isn't defined yet
8886           - Line.Delete: Now updating selection and caret markers if we're
8887             transfering a node (Properly fixes #78323)
8888           - SetSelectionEnd: Added sanity check
8889         * TextBoxBase.cs: Removed broken attempt to fix #78323
8891 2006-08-01  Chris Toshok  <toshok@ximian.com>
8893         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
8894         Close() call is handled in Form, not here.
8896 2006-08-01  Chris Toshok  <toshok@ximian.com>
8898         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
8899         layout/rendering.
8901         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
8902         for sizes < 100% zoom.  The code now aggressively attempts to keep
8903         from calling document.Print (), and tries not to use the scaling
8904         g.DrawImage whenever possible (it still does if you scale to >
8905         100%, since usually that involves huge images).
8907         * PrintPreviewControl.cs: hook up the close button.
8909 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
8910         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
8911           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
8912           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
8913           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
8914           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
8915           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
8916           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
8917           Removed [Serializable] for 2.0 Event Handlers.
8919 2006-07-31  Jackson Harper  <jackson@ximian.com>
8921         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
8922         * TextControl.cs: Uncomment out the body of this method.
8924 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
8926         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
8927           standard cursors.
8929 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
8931         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
8932           that embed TextBox and need selections visible even if textbox is not
8933           focused to enforce that behaviour.
8934         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
8935           selection drawing
8937 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
8939         * TextControl.cs:
8940           - Added new SetSelectionStart/SetSelectionEnd overloads
8941           - Fixed viewport width assignment to be accurate
8942           - Adjusted alignment line shift calculations to allow cursor on right
8943             aligned lines to be always visible at the right border (like MS)
8944         * TextBoxBase.cs:
8945           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
8946           - TextBoxBase_SizeChanged: recalculating canvas on size changes
8947           - CalculateScrollBars: Use ViewPort size instead of window size, to
8948             properly consider space occupied by the border and scrollbars 
8949             (Fixes #78661)
8950           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
8951             calculations; no longer leaves artifacts
8952           - CaretMoved: Adjusted window scrolling to match MS and fixed several
8953             calculation bugs (Still missing right/center align calculations)
8955 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
8957         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
8958           use of both scroll rect and clip rect, as they do the same.
8960 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
8962         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
8963           in the event handler (fixes #78912)
8965 2006-07-31  Chris Toshok  <toshok@ximian.com>
8967         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
8968         grid.ListManager.Count, since grid.ListManager might be null.
8969         This of course begs the question "why are we drawing rows for a
8970         grid with no list manager (and therefor no rows)?"  Fixes the
8971         crash in bug #78929.
8973 2006-07-31  Chris Toshok  <toshok@ximian.com>
8975         * RelatedPropertyManager.cs: Don't always chain up to the parent
8976         ctor.  instead, call SetDataSource if the parent's position is !=
8977         -1.  Fixes the crash in #78822.
8979 2006-07-31  Chris Toshok  <toshok@ximian.com>
8981         * DataGrid.cs (get_ListManager): use field instead of property
8982         accessors for datasource and datamember.
8983         (RowsCount): make internal again.
8984         (OnMouseDown): end edits before resizing columns/rows.
8985         (OnMouseUp): restart edits after resizing columns/rows.
8987 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
8989         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
8990           This fixes the situation where the last set cursor is displayed
8991           whenever the mouse is over scrollbars.
8993 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8995         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
8996         Document properties, as well as initial values.
8998 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
9000         * XplatUIWin32.cs (SetBorderStyle): Setting both border
9001           and ClientEdge results in a 3-pixel border, which is
9002           wrong.
9004 2006-07-28  Jackson Harper  <jackson@ximian.com>
9006         * TreeNodeCollection.cs: Fix the clear method.
9007         - Fix the Shrink also
9009 2006-07-27  Jackson Harper  <jackson@ximian.com>
9011         * TreeView.cs: Make sure the visible order is computed when we
9012         attempt to size the scrollbars (for trees that mess with the
9013         scrolling when they shouldn't.
9014         - Make sure to give the scrollbars valid values.
9016 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
9018         * XplatUIX11.cs: Move motion compression code to where it
9019           has less performance impact
9021 2006-07-26  Jackson Harper  <jackson@ximian.com>
9023         * UpDownBase.cs: When the control is selected make the child
9024         controls non selectable, so that a click on them won't do a
9025         focus/unfocus cycle.
9026         - Don't give focus to the text box when the spinner is selected.
9027         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
9029 2006-07-26  Chris Toshok  <toshok@ximian.com>
9031         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
9032         satisfied with this solution.  If the bitmaps are small, we should
9033         just cache them in the PrintPreviewDialog and draw them here.
9034         Also, the layout is broken for the 2-up and 3-up cases.
9036         * Theme.cs: add PrintPReviewControlPaint.
9038         * PrintPreviewDialog.cs: first pass implementation.
9040         * PrintPreviewControl.cs: first pass implementation.  No
9041         scrollbars yet.
9043         * PrintDialog.cs: only validate fields if that particular portion
9044         of the UI is enabled.  Also, set the document's controller to a
9045         PrintControllerWithStatusDialog wrapping the document's print
9046         controller.
9048         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
9049         bring up a SaveFileDialog (i hope we don't want to match the
9050         behavior of the crappy windows file entry) and set the
9051         PrinterSettings.PrintFileName accordingly.
9053 2006-07-26  Jackson Harper  <jackson@ximian.com>
9055         * ContainerControl.cs: Add a field that disables auto selecting
9056         the next control in a container when the container is activated.
9057         * UpDownBase.cs: Don't select the text box when the up down is
9058         selected.
9060 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
9062         * XEventQueue.cs: Added methods for peeking (used for compression
9063           of successive events)
9064         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
9065           mouse move events (fixes #78732)
9067 2006-07-25  Jackson Harper  <jackson@ximian.com>
9069         * UpDownBase.cs: Use an internal class for the textbox so that we
9070         can control focus.  the updown control should always have focus,
9071         if either the text area or the buttons are clicked.
9072         - Send the key messages to the textbox, since it never actually
9073         has focus
9074         - Activate and decativate the textbox caret.
9076 2006-07-24  Jackson Harper  <jackson@ximian.com>
9078         * Control.cs: Use the directed select when selecting a control,
9079         this way the container controls override will get called and the
9080         whole ActiveControl chain will get triggered.  TODO: probably need
9081         to make sure this gets done everywhere instead of the old
9082         Select(Control).
9083         * ContainerControl.cs: Implement the directed Select method to
9084         find and activate the correct child control.    
9085         
9086 2006-07-22  Mike Kestner  <mkestner@novell.com>
9088         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
9089         menu handling code so that clicks without a grab work too.
9090         [Fixes #78914]
9092 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
9094         * FileDialog.cs: Enable the BackButton when dirstack has one element.
9095           Added some small optimizations.
9097 2006-07-21  Matt Hargett  <matt@use.net>
9099         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
9101 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
9103         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
9104           tests pass and match MS in some strange border cases.
9106 2006-07-21  Chris Toshok  <toshok@ximian.com>
9108         * ThemeWin32Classic.cs: handle drawing of the relation links and
9109         parent row buttons.
9111         * Theme.cs: change args to DataGridPaintParentRow.
9113         * DataGrid.cs: Don't use controls for the relation links and
9114         parent buttons, so we have to handle all their interactions in
9115         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
9116         when we're navigating through child tables, so we can reinstate
9117         selection, expanded state, current cell, etc.
9119 2006-07-20  Chris Toshok  <toshok@ximian.com>
9121         * ToolBar.cs: When we redraw a button, for whatever reason,
9122         there's no reason to redraw the entire toolbar.  Also, don't call
9123         Control.Refresh from within Redraw, as it's much heavier than
9124         Invalidate (which is really what we want).
9126 2006-07-20  Chris Toshok  <toshok@ximian.com>
9128         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
9129         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
9130         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
9131         traces from within a debug IBindingList datasource
9132         (in mono/winforms/datagrid) for *days*, I've finally gotten things
9133         to work in a similar fashion.
9135 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9137         * ListBox.cs: Don't call Sort () when setting 
9138         the Sorted property to false (avoid an unnecessary sort).
9140 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9142         * ListControl.cs: DataSource should throw an ArgumentException
9143         instead of a normal exception when the argument is not of the 
9144         correct type.
9146 2006-07-20  Mike Kestner  <mkestner@novell.com>
9148         * Control.cs: add InternalPreProcessMessage to allow us to steal
9149         key events before MWF gets its paws on them.  Adapted from a
9150         suggestion by eno.
9151         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
9152         up/down/left/right navigation. Override the new internal control
9153         method to steal the events since they never make it to WndProc.
9154         * ToolBarButton.cs: don't worry about pushed when setting hilight
9155         since the drawing code prefers pushed to hilight. Invalidate on 
9156         Hilight changes. Fixes #78547 and #78525.
9158 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
9160         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
9161           the canvas size. Fixes #78868
9163 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
9165         * Splitter.cs: Track requested split position until first layout
9166           is performed. Fixes #78871
9168 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
9170         * Application.cs: Removed code that forces 1.x for the version
9171           number if the version started with 0. Not sure why that code was
9172           there and I couldn't find any bugs that indicated we needed it.
9173           Fixes #78869
9175 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
9177         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
9178           ResetDefaults(), just write some output to the console until it's
9179           implemented. Fixes bug #78907 for now. Eliminated two warnings.
9181 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
9183         * PropertyGridView.cs: set StartPosition of drop down forms
9184         so they appear in correct initial spot.  Fixes #78190.
9186 2006-07-19  Mike Kestner  <mkestner@novell.com>
9188         * ThemeWin32Classic.cs: use parent background color when drawing
9189         flat toolbars.  Restructure the conditionals to make sure non-flat
9190         non-Divider toolbars are filled too.  Fixes #78837.
9192 2006-07-19  Mike Kestner  <mkestner@novell.com>
9194         * ListBox.cs: Sort on collection changes even if the handle
9195         isn't created yet.  Fixes #78813.
9197 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9199         * ListControl.cs: DisplayMember should never be null,
9200         and now we assign String.Empty when null is passed to it (this
9201         is the .Net way).
9203 2006-07-17  Mike Kestner  <mkestner@novell.com>
9205         * ListViewItem.cs: restructure Font and subitem Font handling 
9206         to hold a specific font and refer back to owner on null.
9207         Fixes #78761.
9209 2006-07-17  Mike Kestner  <mkestner@novell.com>
9211         * ToolBar.cs: bandaid for side-effect of previous patch which was
9212         discarding explicit heights for non-AutoSize toolbars.  Need to
9213         extend my format tester to deal with AutoSize=false. Fixes #78864.
9215 2006-07-15  Jackson Harper  <jackson@ximian.com>
9217         * LabelEditTextBox.cs:
9218         * TreeView.cs: Use a new LabelEdit class for node editing, this
9219         class automatically 'closes' itself when it gets the enter key or
9220         loses focus.
9221         - Use the client rectangle when setting the trees scrollbars, so
9222         border style is taken into account.
9223         
9224 2006-07-14  Jackson Harper  <jackson@ximian.com>
9226         * TreeNode.cs:
9227         * TreeView.cs: Make the editing work similar to MSs, firing the
9228         events correctly and ending edits correctly.
9230 2006-07-14  Mike Kestner  <mkestner@novell.com>
9232         * ToolBarButton.cs:
9233         * ToolBar.cs: layout restructuring and redraw enhancements to support
9234         formatting changes gracefully, like setting TextAlign, ImageList, 
9235         ButtonSize, and Appearance.  Handles explicit button sizing quirks
9236         of the MS controls.  Things like flat toolbars ignoring button size
9237         but becoming constant sized at the largest button's size.  Normal
9238         toolbars with an image set cannot be shrunk smaller than the image,
9239         but text can be clipped/ignored.
9240         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
9241         is zero.  Seems like DrawString should be smart enough to not put
9242         anything on screen though. Also trim labels and ellipsize at the char
9243         boundary, not word.
9244         Fixes #78711 and #78483.
9246 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
9248         * FolderBrowserDialog.cs: Disable "New Folder" button and
9249           "New Folder" contextmenu menuitem if a folder like "My Computer"
9250           is selected.
9252 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
9254         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
9255         * FolderBrowserDialog.cs:
9256           - Use MWFConfig to store and read size and position settings
9257           - Added code to create a new folder (button or context menu).
9258             Use TreeView labeledit to change the name of the new folder.
9260 2006-07-14  Jackson Harper  <jackson@ximian.com>
9262         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
9263         when the tree is scrolled we end editing.
9265 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
9267         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
9268           Down arrows
9270 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
9272         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
9273         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
9274         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
9275         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
9276         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
9277         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
9278         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
9279         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
9280         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
9281         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
9282         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
9283         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
9284         ListViewItemSelectionChangedEventHandler.cs,
9285         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
9286         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
9287         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
9288         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
9289         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
9290         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
9291         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
9292         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
9293         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
9294         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
9295         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
9296         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
9297         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
9298         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
9299         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
9300         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
9301         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
9302         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
9303         WebBrowserNavigatingEventHandler.cs, 
9304         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
9306 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
9308         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
9309         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
9310         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
9311         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
9312         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
9313         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
9314         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
9315         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
9316         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
9317         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
9318         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
9319         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
9320         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
9321         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
9322         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
9323         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
9324         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
9325         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
9326         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
9327         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
9328         ListViewItemStates.cs, MaskFormat.cs: Added
9330 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
9332         * PropertyGridView.cs: Fix keyboard navigation of drop down.
9333         Patch from eno for bug 78558.
9334         
9335 2006-07-13  Jackson Harper  <jackson@ximian.com>
9337         * TreeView.cs: When an edit is finished make sure that the
9338         selected node is visible.
9339         - When setting the top/bottom use the scrollbars is_visible, so
9340         everything will be set correctly even if the tree isn't visible
9341         yet.
9343 2006-07-13  Jackson Harper  <jackson@ximian.com>
9345         * ComboBox.cs: Revert the item->index part of my previous patch.
9346         * TreeView.cs: Use LostFocus instead of Leave for detecting when
9347         the edit box has lost focus (duh).
9348         - Just make the edit box not visible when we get return, that will
9349         take the focus, which will call EndEdit
9350         * TreeNode.cs When we start editing, notify the treeview.
9352 2006-07-12  Jackson Harper  <jackson@ximian.com>
9354         * ComboBox.cs: Clear out old items before setting the item list.
9355         This prevents databound controls from having their items added
9356         twice.
9357         - Switch the combobox to use indices whereever possible instead of
9358         using Item's.  This allows usto navigate through lists that have
9359         more then one item with the same string value (ie a, b, b, a).
9360         - Scroll the listboxes scrollbar when a non visible item is
9361         highlighted
9362         - Allow keypress to cycle through all the possible values. For
9363         example if you have b1, b2, b3 and hold down the B key all the
9364         values will be cycled through.
9365         
9366 2006-07-12  Jackson Harper  <jackson@ximian.com>
9368         * TextBoxBase.cs:
9369         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
9370         this using the internal methods.
9371         * Control.cs: Add OnGotFocusInternal.  A new method that allows
9372         controls to "override" OnGotFocus and change focus behavior if
9373         needed.
9374         - Same thing for LostFocus
9375         * ComboBox.cs: Pass off focus to the text control properly.
9377 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
9379         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
9380         * FolderBrowserDialog.cs: Almost a complete rewrite.
9381           - Better support for Environment.Specialfolders
9382           - Added support for MWFVFS
9383           - Made setting SelectedPath work
9385 2006-07-12  Jackson Harper  <jackson@ximian.com>
9387         * Control.cs: Optimze getting all the controls.
9389 2006-07-11  Jackson Harper  <jackson@ximian.com>
9391         * ContainerControl.cs: Override SETFOCUS in the container control,
9392         so that it is not selected on mouse click.
9394 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
9396         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
9397           Hopefully we will have a better way once all of focus is complete.
9399 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
9401         * ThemeWin32Classic.cs: Commented out some debug code and fixed
9402           a compile error with csc.
9404 2006-07-11  Jackson Harper  <jackson@ximian.com>
9406         * Control.cs: When hiding a control only select the next control
9407         if the current control was focused.
9408         - Don't handle enter/leave when setting/killing focus, this is
9409         done by the container control.
9410         - Remove is_selected, it's not needed anymore.
9411         - Add utility methods for selecting a child control, and for
9412         firing the Enter/Leave events.
9413         * ContainerControl.cs: When a control is activated fire the
9414         enter/leave events.
9415         - Don't wrap when processing the tab key, so that focus can be
9416         moved outside of the container.
9417         - Use the correct active control
9419 2006-07-11  Jackson Harper  <jackson@ximian.com>
9421         * ComboBox.cs: Remove some debug code that was blinding me.
9422         * UpDownBase.cs: These controls actually aren't implicit, they are
9423         visible to the user.
9425 2006-07-10  Chris Toshok  <toshok@ximian.com>
9427         * DataGrid.cs: move back to the is_adding boolean field.  god i
9428         hate this is_editing/is_adding/is_changing stuff.
9430 2006-07-10  Chris Toshok  <toshok@ximian.com>
9432         * DataGridTableStyle.cs: just check if the property type is bool.
9433         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
9434         Don't use CanRenderType.
9436         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
9437         if our text == NullText.  Remove CanRenderType.
9439         * DataGridBoolColumn.cs: nuke CanRenderType.
9441         * DataGrid.cs: reenable some code to end the current edit inside
9442         of set_CurrentCell.  This fixes the other 1.1.16 regression.
9443         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
9444         Also, remove the visible_row_count arg from CalcRowHeaders, since
9445         we don't need to worry about the actual height of the area.
9447 2006-07-10  Chris Toshok  <toshok@ximian.com>
9449         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
9450         mode, just return.
9452         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
9453         the real sense of the IsInEditOrNavigateMode property (true =
9454         navigate, false = edit).  Also, update OnKeyPress to reflect this.
9456         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
9457         column style exists, we still need to set its property descriptor
9458         to match up with our list manager.
9460 2006-07-10  Chris Toshok  <toshok@ximian.com>
9462         * ThemeWin32Classic.cs: implement the new row/header painting
9463         approach.  The parent row painting will likely go away and
9464         replaced with label controls, but the rest seems to work ok (and
9465         efficiently).
9467         * Theme.cs: change the way we draw datagrid rows.  we don't draw
9468         the row headers as a block now.  Instead we draw them in the
9469         normal draw-row loop.  Add some calls for drawing parent rows and
9470         relation rows.
9472         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
9473         a default table style.  Set the defaults from ThemeEngine.Current,
9474         not SystemColors.  Fix lots of misc issues with property setters.
9476         * DataGrid.cs: move loads of style information out of this class
9477         as it's being duplicated with DataGridTableStyle.  keep track of a
9478         special DataGridTableStyle for the properties we used to mirror
9479         here.  Switch all the style properties to access this table style
9480         instead of instance fields of this class.  Also add a internal
9481         class to represent parent rows (more needs to be stored here, like
9482         the selection state from the parent table, as well as the
9483         expansion state.)  Also, for datasources with relations, do the
9484         right thing for collapse/expand, and add support for the
9485         navigation/parent row buttons.
9487         Lastly, fix the crash in the 1.1.16 build.
9489         * GridTableStylesCollection.cs: make the explicit interface
9490         implementations call the class's methods as opposed to duplicating
9491         them.
9493         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
9494         0 so the text doesn't jump around when we move the cursor.
9496 2006-07-10  Jackson Harper  <jackson@ximian.com>
9498         * TextBoxBase.cs:
9499         * ListBox.cs: Match MS's ToString (this makes debugging focus
9500         stuff infinitely easier).
9502 2006-07-10  Jackson Harper  <jackson@ximian.com>
9504         * Control.cs (SelectNextControl): When checking the control's
9505         parent use this instead of ctrl.parent so that null can be passed
9506         to SelectNextControl. (I have unit tests for this).
9507         - Remove unused var.
9509 2006-07-10  Chris Toshok  <toshok@ximian.com>
9511         * CurrencyManager.cs: correct one regression, the removal of the
9512         finalType field.  Also, add a MonoTODO on CanAddRows, implement
9513         Refresh() correctly, and fix some event emission in
9514         ListChangedHandler.
9516 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
9518         * FileDialog.cs: Don't use brackets for new folders if they exist
9519           under *nix. Instead use -(number of existing folders +1).
9521 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
9523         * FileDialog.cs:
9524           - Fixed really nasty bug #78771
9525           - Don't block the whole GUI when reading directories with a lot of
9526             entries. Use an other thread instead and call BeginInvoke to
9527             update the ListView in MWFFileView
9529 2006-07-07  Chris Toshok  <toshok@ximian.com>
9531         * Control.cs (Dispose): release any Capture when disposing.
9533 2006-07-07  Chris Toshok  <toshok@ximian.com>
9535         * LinkLabel.cs (Select): if we chain up to the parent, set
9536         focused_index to -1 so we'll search for the first available link
9537         the next time the user tabs into us.  Also, if the direction is
9538         backward and focused_index == -1, start the search from the last
9539         element.
9541 2006-07-07  Chris Toshok  <toshok@ximian.com>
9543         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
9544         is beyond the end of the text, don't do anything.
9545         (CreateLinkPieces): set our ControlStyles.Selectable based on
9546         whether or not we have any links.
9547         (Link.Invalidate): use a loop instead of foreach.
9548         (Link.set_Start): null out owner.sorted_links so it'll be
9549         recreated by CreateLinkPieces.
9551 2006-07-06  Chris Toshok  <toshok@ximian.com>
9553         * LinkLabel.cs: revert the SetStyle change.
9555 2006-07-06  Chris Toshok  <toshok@ximian.com>
9557         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
9558         (OnEnableChanged): s/Refresh/Invalidate
9559         (OnGotFocus): if we have a focused index already, refocus it (so
9560         if we mouse out/in to the window it'll focus the right link).
9561         (OnKeyDown): move the tab handling out of here.
9562         (OnLostFocus): don't set focused_index to -1, so we can refocus it
9563         when we lose focus.
9564         (OnMouseDown): don't Capture here - Control handles it.  Also,
9565         focus the active link.
9566         (OnMouseUp): don't deal with Capture.
9567         (OnPaintBackgroundInternal): remove.
9568         (OnTextAlignChanged): CreateLinkPieces before calling the
9569         superclass's method.
9570         (OnTextChanged): call CreateLinkPieces before calling superclass's
9571         method.
9572         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
9573         move around.
9574         (Select): implement this, moving the selection between different
9575         links, and call parent.SelectNextControl if we don't have another
9576         link to focus in the given direction.
9577         (CreateLinkPieces): call Invalidate instead of Refresh.
9578         
9579 2006-07-06  Chris Toshok  <toshok@ximian.com>
9581         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
9582         new LinkLabel internals.
9584         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
9585         over pieces looking for active/focused/etc links.  also, deal with
9586         runs of text (and links) with embedded \n's in them, and use
9587         MeasureCharacterRanges instead of MeasureString to figure out the
9588         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
9589         two-step.
9591 2006-07-04  Jackson Harper  <jackson@ximian.com>
9593         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
9594         XKB or key auto repeat, do it manually.  Without key auto repeat,
9595         when a key is held down we get key press, key release, key press,
9596         key release, ... with auto repeat we get key press, key press, key
9597         press ..., and then a release when the key is actually released.
9599 2006-07-03  Jackson Harper  <jackson@ximian.com>
9601         * TabControl.cs:
9602         * ThemeWin32Classic.cs: Tabs do not obey normal background color
9603         rules, they are always control color regardless of the background
9604         color.
9606 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
9608         * FileDialog.cs: Added internal class MWFConfig.
9609           Removed Registry support and replaced it with support for the new
9610           MWFConfig class. See MWFConfig comments for more information.
9612 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
9614         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
9615           rectangle. Added some patches from eno from bug #78490 and fixed
9616           the arrow position for small up and down CPDrawScrollButtons.
9618 2006-06-30  Jackson Harper  <jackson@ximian.com>
9620         * InternalWindowManager.cs: Remove some debug code.
9621         * Form.cs: When an MdiParent is set to null, the window is
9622         "detatched" and becomes a normal window.
9623         * MdiClient.cs: Don't bring the new child form to the front until
9624         it is activated (setting it as active does this), this makes the
9625         previously active forms titlebar get redrawn as inactive.
9627 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
9629         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
9630           with later controls
9632 2006-06-29  Mike Kestner  <mkestner@novell.com>
9634         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
9635         arrow in keynav state.  Fixes #78682.
9637 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
9639         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
9640           order (fixes #78393)
9642 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
9644         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
9645           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
9646           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
9647           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
9648           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
9649           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
9650           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
9651           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
9652           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
9653           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
9654           enumerations (FlagsAttribute, SerializableAttribute, added/removed
9655           values)
9657 2006-06-28  Mike Kestner  <mkestner@novell.com>
9659         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
9661 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
9663         * PropertyGrid.cs,
9664           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
9665           item lines from other area (It also makes BackColor consistent and
9666           compatible with .NET). Fixed bug #78564.
9668 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
9670         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
9671         Patch from Eno for #78555.
9673 2006-06-27  Chris Toshok  <toshok@ximian.com>
9675         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
9677         * DataGridColumnStyle.cs: same.
9679         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
9680         
9681         * DataGridDrawingLogic.cs: nuke.
9683 2006-06-27  Chris Toshok  <toshok@ximian.com>
9685         * DataGridTableStyle.cs: clean up the constructors, and build the
9686         list of child relations for this table.  I have no idea if this is
9687         where we should be doing it (it probably isn't), but since we're
9688         already iterating over the properties..
9690         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
9691         struct and array for keeping track of row information, similar to
9692         what's shown in a hack on
9693         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
9695         * Theme.cs: be consistent about the naming of DataGrid methods,
9696         prefering ColumnWidths and RowHeights over columnsWidths and
9697         RowsHeights.
9699         * ThemeWin32Classic.cs: same, and also add support for variable
9700         sized rows (and the +/- expansion icons for related rows).
9702 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
9704         * TextBoxBase.cs: Applied Eno's patch from #78660
9706 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
9708         * Form.cs (ScaleCore): We don't want to scale our form if it's
9709           state is minimized or maximized, but we still need to scale our
9710           child windows. Also, added try/finally block to ensure layout
9711           gets reset (Fixes #78697)
9713 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
9715         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
9717 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
9719         * Form.cs: Fixed c+p error and added check to resize form if minimum
9720           size is bigger than current size (Fixes #78709)
9722 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
9724         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
9726 2006-06-26  Mike Kestner  <mkestner@novell.com>
9728         * ComboBox.cs: only do Keypress handling in the combo when there  
9729         are items in the collection. Fixes #78710.
9731 2006-06-26  Chris Toshok  <toshok@ximian.com>
9733         * Binding.cs: make this work bi-directionally.  also, clear up
9734         other mixups between Push/Pull Data (e.g. we're supposed to pull
9735         data when validating).
9737         * BindingManagerBase.cs: trim some fully qualified collection
9738         types.
9740         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
9742 2006-06-23  Chris Toshok  <toshok@ximian.com>
9744         * PropertyManager.cs: It appears (according to the unit tests)
9745         that PropertyManager doesn't use
9746         PropertyDescriptor.AddValueChanged to track propery value changes
9747         in its datasource, but uses the same scheme as Binding, where it
9748         looks for a <Property>Changed event and binds to it.
9750         Also, according to the docs, IsSuspended always returns false for
9751         a property manager with a non-null datasource.
9753 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
9755         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
9756           need to update the actual DialogResult. (Fixes #78613)
9758 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
9760         * Form.cs (ShowDialog): Release any captures before running the
9761           new message pump (fixes #78680)
9763 2006-06-22  Mike Kestner  <mkestner@novell.com>
9765         * ListView.cs: Layout column widths properly in details mode even 
9766         if HeaderStyle.None is set.  Fixes #78691.
9768 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
9770         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
9772 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
9774         * Control.cs (ContainsFocus): Using new driver method to get focused
9775           window, instead of trying to use internal tracking var, which can
9776           recursion issues (Fixes #78685)
9777         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
9778           XplatUIWin32.cs: Added GetFocus method to return focused window
9780 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
9782         * ColorDialog.cs: when the mouse button is pressed inside the color
9783         matrix, don't let the cursor move out of it until the button is
9784         released, which is the behavior on windows. Changed 'colours' by
9785         'colors' to use the same word consistently.
9787 2006-06-21  Chris Toshok  <toshok@ximian.com>
9789         * DataGrid.cs: add in some basic navigation stuff (navigating to a
9790         child relation and back, using a stack).  Also, remove
9791         GetDataSource and the code that calls it - it's not needed.  Also,
9792         track CurrencyManager.ListName's removal.
9794 2006-06-21  Chris Toshok  <toshok@ximian.com>
9796         * CurrencyManager.cs: push some of the original type checking from
9797         BindingContext.CreateBindingManager to here, and remove some of
9798         the finalType stuff.  Need more tests to make sure I've got the
9799         ListName part right, and we might need more in SetDataSource.
9801         * PropertyManager.cs: add a ctor that takes just the datasource,
9802         and no property name.  Make SetDataSource work with a null
9803         property_name, and make Current return the data_source if the
9804         property descriptor is null.  this makes 'string foo = "hi";
9805         BindingContext[foo].Current' return "hi" as it should.
9807         * RelatedCurrencyManager.cs: make this code more generic - there's
9808         no reason the parent manager has to be CurrencyManager, and
9809         there's no reason to pass the DataRelation.  It suffices to use a
9810         BindingManagerBase and PropetyDescriptor.
9812         * RelatedPropertyManager.cs: make a similar change here.
9813         
9814         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
9815         flower I knew it could be.
9817 2006-06-20  Chris Toshok  <toshok@ximian.com>
9819         * PropertyManager.cs: the PropertyChangedHandler is invoked when
9820         data in the source has changed and we need to update the control,
9821         so s/PullData/PushData.
9823         * CurrencyManager.cs: Refresh is meant to update the control from
9824         data in the datasource.  So, s/PullData/PushData.
9826         * BindingContext.cs: add more ugliness (we weren't handling the
9827         case where data_source = DataTable and data_member = column_name).
9829         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
9830         from the perspective of the datasource.  PullData pulls from the
9831         control, PushData pushes to the control.
9833 2006-06-20  Chris Toshok  <toshok@ximian.com>
9835         * BindingContext.cs: rewrite the CreateBindingManager code to
9836         handle navigation paths more or less properly.  This could
9837         definitely stand some more work, in particular to push the
9838         recursion up to the toplevel.  But that relies on fixes in other
9839         places (System.Data comes to mind).
9841         Also, move to a flat hashtable (and encode the twolevel nature of
9842         the dictionary into the hash key).  This lets us implement the
9843         IEnumerable.GetEnumerator method.
9845         * RelatedCurrencyManager.cs: new class.  Update our view based on
9846         our relation and our parent CurrencyManager's position.
9848         * CurrencyManager.cs: split out some logic from the ctor into
9849         SetView, so it can be called from the new RelatedCurrencyManager
9850         subclass.
9852         * RelatedPropertyManager.cs: new class.  Update our datasource
9853         based on the position of our parent CurrencyManager.
9855         * PropertyManager.cs: split out some logic from the ctor into
9856         SetDataSource, so it can be called from the new RelatedDataSource
9857         subclass.  Also, make the Current getter return the value
9858         of the PropertyDescriptor, not the data_source.
9860         * Binding.cs: no need to duplicate the string splitting code here.
9862 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
9864         * Control.cs:
9865           - set_Enabled: OnEnabledChanged is not called if the inherited state 
9866             of the control is not altered, even though  we might be changing the
9867             internal state of the control (#78458)
9868           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
9869             OnEnabledChanged, to allow easy altering of any child window state
9870           - OnEnabledChanged: Added code to enable/disable driver window state
9871           - OnParentEnabledChanged: Instead of firing the event, call 
9872             OnEnabledChanged, which will fire the event and also a) set driver
9873             window state and pass the enabled state to any grandchildren (#78458)
9875 2006-06-19  Jackson Harper  <jackson@ximian.com>
9877         * InternalWindowManager.cs: We don't set the cursor explicitly
9878         thats done via the response to NCHITTESTs.
9879         - Don't need to adjust for titlebar heights anymore, the
9880         coordinates are coming in the correct coordinates now (see peters
9881         last patch).
9884 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
9886         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
9887           being translated relative to whole window, instead of client window.
9888           That caused broken offsets on mouseclick (and caused gas for our
9889           InternalWindowManager)
9891 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
9893         * TextControl.cs:
9894           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
9895           - Undo(): Added replay of cursor move on DeleteChars action; added
9896             calling Undo() again if a recorded cursor move is invalid (to
9897             ensure that some action is performed on Undo)
9898         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
9900 2006-06-16  Jackson Harper  <jackson@ximian.com>
9902         * MdiClient.cs: Instead of just sizing maximized windows when
9903         there is a resize we also have to adjust the Y of minimized
9904         windows, so they stay pinned to the bottom of the mdi container.
9905         - Eliminate separate tracking of the active control, we can just
9906         get this from the controls collection.
9907         - Paint the decorations for the newly activated titlebar so we get
9908         a pretty blue bar.
9909         * InternalWindowManager.cs:
9910         * ThemeWin32Classic.cs: Minimized windows get all three buttons
9911         even if they are a tool window.
9912         
9913 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
9915         * TextControl.cs (Undo): Handle non-existent cursor locations in the
9916           undo buffer, these can happen when text was deleted and the cursor
9917           was recorded first. Since we will also have a recorded cursor
9918           after the delete this is not an issue. (Fixes #78651)
9920 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
9922         * AccessibleObject.cs: Remove dependence on Control.is_selected;
9923           instead properly track control states internally (allows us to
9924           remove is_selected from Control)
9926 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
9928         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
9929         whose width is not a multiple of 8.
9931 2006-06-13  Jackson Harper  <jackson@ximian.com>
9933         * MdiClient.cs:  Only maximize the next child if the current one
9934         is maximized.
9936 2006-06-13  Chris Toshok  <toshok@ximian.com>
9938         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
9939         modified.  Also, guard against grid or grid_drawing being null in
9940         Invalidate.
9942         * DataGrid.cs: Reformat tons of getters/setters.  In the
9943         DataMember setter, just call SetNewDataSource instead of
9944         duplicating some of its functionality.  In SetNewDataSource, don't
9945         check ListManager for null, since the property getter creates the
9946         object if needed.
9948         * DataGridTableStyle.cs: don't set TableStyle or call
9949         SetDataGridInternal on the column here, it's done in
9950         GridColumnStylesCollection.Add.
9952         * GridColumnStylesCollection.cs: fix all the explicit interface
9953         implementations to just call our methods.  Nuke AddInternal() and
9954         move the body of it to Add().  Also, add a call to
9955         column.SetDataGridInternal to Add().
9957         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
9958         base()+duplicate code.  Also, use the Format property instead of
9959         format to generate an Invalidate ala MS.  Lastly, create the
9960         textbox here, unconditionally.
9961         (set_Format): call Invalidate.
9962         (get_TextBox): no need to call EnsureTextBox.
9963         (Commit): remove the message box.
9964         (Edit) remove the call to EnsureTextBox.
9965         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
9966         (EnterNullValue): no need to check textbox for null.
9967         (HideEditBox): no need to check textbox for null.
9968         (SetDataGridInColumn): add the textbox to the grid's controls.
9969         (EnsureTextBox): nuke.
9970         
9971 2006-06-13  Jackson Harper  <jackson@ximian.com>
9973         * MdiWindowManager.cs: Hook up to the maximized menus paint event
9974         and redraw the buttons when needed. Unhook when the window is
9975         unmaximized.
9976         * MainMenu.cs: Add an internal Paint event, the mdi window manager
9977         needs this so that it can redraw its buttons when the menu is
9978         repainted.
9979         * InternalWindowManager.cs:
9980         * Form.cs: The method order has changed for DrawMaximizedButtons,
9981         so that it can be a PaintEventHandler.
9982         
9983 2006-06-13  Jackson Harper  <jackson@ximian.com>
9985         * MdiClient.cs: When we close a maximized mdi window, the next mdi
9986         window is activated and maximized, even if it wasn't before.
9987         - When  a new window is activated repaint the decorations of the
9988         old one, so that it no longer has the Active "look" (the blue
9989         titlebar).
9990         * InternalWindowManager.cs: Open up CreateButtons to base classes
9991         so they can recreate the buttons on state changes.
9992         - If a window is maximized give it all three buttons
9993         * MdiWindowManager.cs: Create the titlebar buttons when the state
9994         is changed, this is needed because a toolwindow will not have all
9995         three buttons until it is maximized.
9997 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
9999         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
10000           Fixed bug #78609.
10002 2006-06-12  Jackson Harper  <jackson@ximian.com>
10004         * KeysConverter.cs: Make sure we handle the Ctrl special case
10005         if its the only key.
10006         
10007 2006-06-12  Jackson Harper  <jackson@ximian.com>
10009         * Theme.cs: Add a method to get the size of a managed window
10010         toolbar button.
10011         * InternalWindowManager.cs: Remove the ButtonSize property, this
10012         should be retrieved from the theme.
10013         * MdiWindowManager.cs: Get the button size from the theme
10014         * ThemeWin32Classic.cs: Make the method to get the managed window
10015         titlebar button size public.
10016         - Handle the different button sizes of maximized toolwindows
10017         (should match any maximized window).
10018         - Get the titlebar height from the theme, not the WM (which gets
10019         it from the theme).
10021 2006-06-12  Jackson Harper  <jackson@ximian.com>
10023         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
10024         event down to the mdi window manager.
10025         - Expose some extra stuff to base classes
10026         - Make sure to end the Capture on an NC Mouse up, so that we can
10027         get double clicks properly, and the sizing doens't stick.
10028         - When doing PointToClient contain it in the workable desktop
10029         area, this prevents windows from changing size when the cursor is
10030         pulled outside of the working area while sizing.
10031         * MdiWindowManager.cs: When we get a double click maximize the
10032         window.
10033         - Reset the cursor after handling mode changes.
10035 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
10037         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
10038           current desktop, instead of just assuming a 0, 0 origin. This
10039           is needed for our internal window manager, to know the top
10040           margin of the desktop
10042 2006-06-12  Chris Toshok  <toshok@ximian.com>
10044         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
10045         we need this to get rid of the selected background in the bool
10046         column.
10047         (CancelEditing): move the ConcedeFocus call to above the Abort
10048         call.  Also, set is_changing to false and invalidate the row
10049         header if we were changing before.
10050         (ProcessKeyPreviewInternal): remove, since noone outside this
10051         class calls it anymore.  Roll the code into ProcessKeyPreview.
10052         (EndEdit): remove the internal version.
10053         (InvalidateCurrentRowHeader): make private.
10055         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
10056         Keys.Escape handling (and with it the last call to
10057         DataGrid.EndEdit from outside the class.)
10060 2006-06-12  Chris Toshok  <toshok@ximian.com>
10062         * DataGridTextBox.cs (.ctor): isedit defaults to false.
10063         (OnKeyPress): set isedit to true.
10064         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
10065         already handled by the grid.
10067         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
10068         right.  ugh.
10069         (set_DataSource): SetDataSource always returns true, so stop
10070         putting it in an if statement.
10071         (EndEdit): get rid of some {}'s
10072         (ProcessGridKey): return true in case Keys.Escape.
10073         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
10074         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
10075         PositionChanged, stopped connecting to CurrentChanged.
10076         (GetDataSource): simplify this a bunch.
10077         (SetDataSource): change return type from bool to void.
10078         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
10079         to this, and make sure we don't set ListManager.Position inside
10080         set_CurrentCell.
10081         (OnListManagerItemChanged): if we're passed an actual index,
10082         redraw that row.
10084         * CurrencyManager.cs (set_Position): don't call PullData here.
10086 2006-06-09  Jackson Harper  <jackson@ximian.com>
10088         * TreeNode.cs:  Recalculate the visible order before doing the
10089         Expand/Collapse Below calls, because those calls generate an
10090         expose.
10091         - Reduce calls to the TreeView property, which is mildly expensive
10092         by using a local var.
10093         * Form.cs: Layout the MDI child windows when creating the parent
10094         form.
10095         - Don't use the internal constructor anymore
10096         * MdiClient.cs: use the parent form width/height (if available)
10097         when laying out the child windows, we do this because the
10098         mdiclient isn't docked yet when the initial layout is done.
10099         - Don't need an internal constructor anymore.
10101 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10103         * FileDialog.cs: handle access errors when trying to create a folder
10104         or changing to a directory. No need to initialize out parameters.
10106 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
10108         * FileDialog.cs: Append a number when creating a new folder if the
10109           folder already exists (use parenthesis instead of square brackets)
10111 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
10113         * FileDialog.cs:
10114           - Disabled registry support for windows and added better registry
10115             error checking for other systems (need to investigate why it
10116             works perfectly on my system)
10117           - If a folder already exist show an error MessageBox instead of
10118             trying to create an indexed name.
10119           - Fixed a non intentional typo.
10121 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10123         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
10125 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
10127         * FileDialog.cs: When creating a new folder don't crash if the
10128           folder already exists.
10130 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
10132         * FileDialog.cs: Allmost a complete rewrite.
10133           - added a "virtual" file system that handles the differences
10134             between unix and windows file systems (especially the directory
10135             structure). Moved most of the directory and file handling code
10136             into the vfs.
10137             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
10138             UnixFileSystem and FSEntry.
10139           - Recently used folder/directory, size, location and used file names
10140             (file name ComboBox) are now stored in the registry and get read
10141             before the dialog shows up (fixes part 6 of bug #78446).
10142           - Creation of new folders/directories is now possible (context menu
10143             or ToolBar). Added TextEntryDialog for this that fills in the gap
10144             until ListView.LabelEdit works.
10145           - Fixed cursor handling (bug #78527) and focus handling for
10146             PopupButtonPanel
10147           - Various "Search in" ComboBox enhancements. The content of the
10148             dropdown listbox now almost matches ms.
10149           - Changed the behaviour when the user switches to SpecialFolder
10150             Recent to show the ListView in View.Details.
10151           - Beside using the ToolBar to change the View property of the
10152             file ListView it is now possible to use the context menu too.
10154 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
10156         * ComboBox.cs: Don't create a new ObjectCollection when an item
10157           gets inserted. Just insert the item in the existing object_items
10158           ArrayList.
10160 2006-06-08  Jackson Harper  <jackson@ximian.com>
10162         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
10163         that the treeview and root node checks are done also, this fixes a
10164         regression i caused in the unit tests.
10166 2006-06-07  Wade Berrier <wberrier@novell.com> 
10168         * RichTextBox.cs: More ISO8859-1 -> unicode
10170 2006-06-07  Mike Kestner  <mkestner@novell.com>
10172         * ComboBox.cs : use items to hold highlight/selection so that
10173         collection insertions don't require synchronization.
10175 2006-06-07  Jackson Harper  <jackson@ximian.com>
10177         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
10178         routine.  We now always keep the sized edge at the cursor instead
10179         of computing movement and adjusting rects.  There is one buglet
10180         with this method though when the cursor is moved over area that
10181         the window can not expand too (such as the toolbars on the desktop).
10183 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10185         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
10186         here. Fixes crash on startup in AlbumSurfer.
10188 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
10190         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
10191           values
10193 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10195         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
10196         statement to avoid calling XNextEvent which will block if another thread
10197         took the event that we were expecting. Fixes bug #78605.
10199 2006-06-07  Mike Kestner  <mkestner@novell.com>
10201         * ListView.cs : isolated checkbox clicking from the selection logic.
10202         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
10204 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10206         * Form.cs: Check that the value passed to Form.DialogResult
10207         is a valid enum value.
10209 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10211         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
10212         Computer'. Clicking it in the network view goes to 'My Computer'.
10213         Added CIFS filesystem type. Display the mount point of filesystems.
10214         Avoid duplicate mount points (happens for me with CIFS);
10216 2006-06-06  Jackson Harper  <jackson@ximian.com>
10218         * InternalWindowManager.cs: Draw the maximized windows buttons
10219         when resizing.
10221 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10223         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
10224         all other dialogs. Fixes bug #78585.
10226 2006-06-06  Mike Kestner  <mkestner@novell.com>
10228         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
10229         Only invalidate checkbox on checkstate changes to avoid flicker.
10230         * ListBox.cs : avoid unselect/select when clicking selected item.
10231         avoid reselection flicker for already multiselected items.
10232         Fixes #78382.
10234 2006-06-06  Jackson Harper  <jackson@ximian.com>
10236         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
10237         the parent form so that the menu is removed if needed.
10239 2006-06-06  Mike Kestner  <mkestner@novell.com>
10241         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
10242         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
10244 2006-06-06  Mike Kestner  <mkestner@novell.com>
10246         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
10249 2006-06-06  Jackson Harper  <jackson@ximian.com>
10251         * Control.cs: Use the property (instead of the field) to get the
10252         default cursor so it is instantiated correctly.
10253         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
10254         resizes so we need to manually repaint the window decorations here.
10255         - Set the titlebar button locations as soon as they are created,
10256         otherwise they are not set correctly on win32.
10257         
10258 2006-06-06  Chris Toshok  <toshok@ximian.com>
10260         * CurrencyManager.cs (set_Position): call PullData before
10261         OnCurrentChanged.
10262         (AddNew): after calling IBindingList.AddNew, update our
10263         listposition, and call OnCurrentChanged/OnPositionChanged (without
10264         calling PullData).
10265         (OnCurrentChanged): remove the call to PullData from here.
10266         (OnItemChanged): remove the call to PushData from here.
10267         (OnPositionChanged): change the test from == null to != null to
10268         match the other methods.
10269         (ListChangedHandler): the grossest part of the patch.  Implement
10270         this such that it passes the unit tests in CurrencyManagerTest and
10271         the output more or less matches that of MS's implementation.
10273 2006-06-06  Mike Kestner  <mkestner@novell.com>
10275         * ListView.cs : only update check state on single click.
10276         * ThemeWin32Classic.cs : fix focus drawing for details view without
10277         fullrowselect.  Fixes #78454.
10278         * XplatUIX11.cs : fix for double click emission.
10280 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
10282         * PropertyGridView.cs : Applied Atsushi's patch to fix
10283         font dialog bug  (#78197).
10285 2006-06-05  Jackson Harper  <jackson@ximian.com>
10287         * TreeNode.cs: Compute the next node for expanding/collapsing
10288         correctly. We now factor in nodes without a NextNode
10289         correctly. (Fixes somes cases in nunit-gui).
10290         * InternalWindowManager.cs: Set the bounds when updating the
10291         virtual position of a tool window.
10292         
10293 2006-06-05  Chris Toshok  <toshok@ximian.com>
10295         * DataGrid.cs: rename cached_currencymgr to list_manager.
10296         (set_CurrentCell): move SetCurrentCell code here, and clean it up
10297         some.
10298         (CurrentRow, CurrentColumn): single accessors so we can make the
10299         cursor movement code a lot easier to understand.
10300         (CurrentRowIndex): implement this in terms of CurrentRow.
10301         (BeginEdit): clean this up a bit.
10302         (CancelEditing): sort out the is_editing/is_changing/is_adding
10303         stuff a little.
10304         (EndEdit): minor changes.
10305         (OnKeyDown): add a comment about a (most likely) unnecessary
10306         check.
10307         (OnMouseDown): cancel editing when we click on a row header.  And
10308         use the CurrentRow setter, not CurrentCell.
10309         (ProcessDialogKey): directly call ProcessGridKey.
10310         (UpdateSelectionAfterCursorMove): factor out this common block of
10311         code (it's used everywhere that we move the cursor by updating row
10312         or column).
10313         (ProcessGridKey): pretty substantial overhaul.  Use the
10314         CurrentRow/CurrentColumn properties to make the code a lot more
10315         readable.  Only use the CurrentCell property when we have to
10316         modify both row and column at once.  Tab behavior is still broken,
10317         and Delete is untested.
10318         (Select): if we have no selected rows, set selection_start to
10319         @row.
10320         (EditCurrentCell): rename EditCell this.  It was only ever invoked
10321         with CurrentCell as the arg, so drop the arg and rename it.
10323         * DataGridColumnStyle.cs: clean up the constructors a little, and
10324         drop CommonConstructor().
10326         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
10327         actually get notified when the user hits it.
10328         (ProcessKeyMessage): *substantially* simplify this method.
10329         There's no reason (that I can see) for the textbox to be making
10330         calls into the datagrid at all.  Remove all of them but the ones
10331         for Enter handling.  those will take some more work.
10333         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
10334         calling HideEditBox.
10335         (HideEditBox): if we have an active textbox, render it invisible
10336         without causing a re-layout of the datagrid.
10338 2006-06-05  Mike Kestner  <mkestner@novell.com>
10340         * ListView.cs : fix NRE crasher when focuseditem is cleared by
10341         collection changes by resetting it to Items[0].  Fixes #78587.
10343 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10345         * MessageBox.cs: if the height of the text is larger than the icon_size,
10346         use that. Fixes bug #78575.
10348 2006-06-05  Jackson Harper  <jackson@ximian.com>
10350         * TreeView.cs: Fix line drawing when scrolling.  To do this each
10351         node is basically responsible for drawing its entire horizontal
10352         area.  When drawing a node it draws its parent node lines if
10353         needed.
10354         - Adjust the clip area to the viewport rectangle
10355         - Fix Left/Right key handling to match MS. (It expand/collapses
10356         and moves to parents/first child but does not move selection to
10357         sibling nodes).
10358         - Fix SetTop to work with new bound calculation code
10359         - When scrollbars are no longer needed we need to reset scrolling
10360         vars and recalculate the visible order so the redraw is correct
10361         * TreeNode.cs: We can't expand/collapse nodes with no children.
10363 2006-06-03  John Luke  <john.luke@gmail.com> 
10365         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
10366         so the colors work without dev packages
10367         
10368 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
10370         * Control.cs 
10371           - Select: Implemented to just use activate. Seems to match MS 
10372             behaviour closest. Documented to only do actual control walking 
10373             based on it's parameters if in a container control so I moved 
10374             the code there.
10375           - Removed selection check logic from our internal Select() method
10376         * ContainerControl.cs:
10377           - Select: Moved selection logic from Control here, since MS documents
10378             that containers obey the bool arguments. No longer calling base
10380 2006-06-02  Jackson Harper  <jackson@ximian.com>
10382         * TreeView.cs: If the selected node isn't changed when we get
10383         focus update the previously selected node so that we see the
10384         selection box.
10386 2006-06-02  Mike Kestner  <mkestner@novell.com>
10388         * ComboBox.cs: restructure grab and general mouse event handling.
10389         Make the composite control raise mouse events like it was a single
10390         control for leaves/enters/motion/up/down events.  fix dropdown list
10391         coordinate mangling and refactor it into the scrollbar subclass to
10392         reduce code duplication.  Fixes #78282 #78361 and #78457.
10394 2006-06-02  Mike Kestner  <mkestner@novell.com>
10396         * ScrollBar.cs: remove Capture setting/clearing, as it happens
10397         automatically in the Control.WndProc.
10399 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10401         * FileDialog.cs: fix crash when running SharpChess, which sets the
10402         FilterIndex to 2 with only one Filter.
10404 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10406         * ToolBar.cs: add SizeSpecified property.
10407         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
10408         try to figure out our real size, otherwise fallback to what the
10409         container says.
10411 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
10413         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
10414         * Control.cs (WndProc): MS always calls the DefWndProc to pass
10415           up the event
10417 2006-06-01  Mike Kestner  <mkestner@novell.com>
10419         * ListView.cs: revamp the focus management in ListView.  It still
10420         causes churn of LostFocus/GotFocus emissions on clicks, but it's
10421         better than not handling focus at all.  Will revisit when pdb feels
10422         the general focus handling is solid.  Fixes #78526.
10424 2006-06-01  Jackson Harper  <jackson@ximian.com>
10426         * TreeView.cs: Set the default border style in the constructor.
10427         - Move painting to use OnPaintInternal instead of capturing
10428         WM_PAINT, this is the correct way of doing things
10429         - UpdateBelow shouldn't invalidate the scrollbar area
10430         - Cap the top on update below in case the node was above the top
10431         of the viewport rectangle.
10432         - ExpandBelow and Collapse below need to obey Begin/End Update.
10433         * TreeNode.cs: Make is_expanded internal so the treenode
10434         collection can change it without firing the whole event chain.
10435         * TreeNodeCollection.cs: When clearing all the child nodes make
10436         sure to recalc the visible order.
10437         - Improve algo for remove the top node
10439 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
10441         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
10442           SendMessage directly calling window procedures, which in turn might
10443           call SetFocus()
10445 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
10447         * Control.cs: Don't handle WM_SETFOCUS if the same window already
10448           has focus (works around X11 sending a FocusIn after our SetFocus)
10449         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
10451 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
10453         * Mime.cs: Fix for the NET_2_0 build.
10454           NameValueCollection needs StringComparer now.
10456 2006-05-31  Chris Toshok  <toshok@ximian.com>
10458         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
10459         return (via an out parameter) the starting X of the column.
10460         (UpdateVisibleColumn): track change to FromPixelToColumn.
10461         (HitTest): add a ColumnResize case here.
10462         (DrawResizeLine): new function, probably poorly named.
10464         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
10465         only need to keep one reference.
10466         (set_ListManager): same.
10467         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
10468         Also, add support for HitTestType.ColumnResize.
10469         (OnMouseMove): add column resize behavior here, and change the
10470         cursor to the correct one as we move around the datagrid.
10471         (OnMouseUp): terminate the column resize if we're resizing.
10472         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
10473         for the current cell.
10474         (ConnectListManagerEvents): use cached_currencymgr.
10475         (DisconnectListManagerEvents): fill this in, using
10476         cached_currencymgr.
10477         (SetCurrentCell): remove cached_currencymgr_events handling.
10478         (SetDataMember): only call DisconnectListManagerEvents if
10479         cached_currencymgr is != null.
10480         (SetDataSource): same.
10481         (OnListManagerCurrentChanged): cached_currencymgr_events ->
10482         cached_currencymgr.
10484 2006-05-31  Jackson Harper  <jackson@ximian.com>
10486         * BindingManagerBase.cs: Remove somedebug code that creeped into
10487         SVN.
10488         * TreeNode.cs: We get the indent level dynamically right now, so
10489         don't track it as a member.
10490         * TreeNodeCollection.cs: Make sure all nodes added to the list
10491         have parents, treeviews/topnodes setup properly.
10492         - Don't attempt to track indent level.
10494 2006-05-30  Jackson Harper  <jackson@ximian.com>
10496         * BindingContext.cs: Create the currency manager tables here.
10497         This allows us to more easily create null tables (when bad data
10498         members are used), and more easily create related currency
10499         managers.
10500         * CurrencyManager.cs: All the table creation stuff is done by the
10501         binding context now.
10502         - Current should throw an exception if listposition is -1.
10503         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
10504         been bound yet.
10506 2006-05-30  Mike Kestner  <mkestner@novell.com>
10508         * ListView.cs: allow reexpansion of zero-width column headers.
10509         Fixes #78528.
10511 2006-05-28  Chris Toshok  <toshok@ximian.com>
10513         * CurrencyManager.cs (get_Current): after the late binding
10514         listposition = -1 fix, we need to guard against it here and return
10515         null, otherwise we raise an exception (which is swallowed
10516         elsewhere, and breaks datagrid databinding.)
10518 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
10520         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
10521           than WM_SYSKEY, don't throw if get something unexpected (#78507)
10523 2006-05-26  Jackson Harper  <jackson@ximian.com>
10525         * ControlPaint.cs:
10526         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
10527         values, it's faster and it's all we care about (we don't care if
10528         the names aren't equal).
10529         * KeyboardLayouts.cs: Eliminate some dead code.
10530         - Lazy init things
10531         * X11Keyboard.cs: Lazy init keyboard detection.
10532         - Cleanup access modifiers a little.
10534 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
10536         * XplatUIX11.cs: Once again, attempting to get layout just right.
10538 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
10540         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
10541           the sizes of each link section, that will result in sizes that
10542           match DrawString's layout (Fixes #78391)
10544 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
10546         * FileDialog.cs: If AddExtension property is true autocomplete the
10547           extensions in SaveFileDialog correctly. Fixes bug #78453.
10548           Set MyNetwork and MyComputer to "C:\" for windows. This should
10549           fix part 8 of bug #78446 for now.
10551 2006-05-26  Chris Toshok  <toshok@ximian.com>
10553         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
10554         invalidate the current row header if we need to, but presumably
10555         we'll invalidate the row corrsponding to the bounds or
10556         editingControl.
10557         (GridHScrolled): switch back to this method, as it's part of the
10558         public api.  *sigh*.
10559         (GridVScrolled): same.
10560         (OnMouseWheel): hack up something that more or less works.  Call
10561         GridHScrolled/GridVScrolled directly, instead of duplicating much
10562         of their code here.
10563         (EnsureCellVisibility): reinstate a bunch of this code, since we
10564         can't just set the scrollbar Value and expect to do all the work
10565         in the ValueChanged handler.  Also, Call Update() after scrolling
10566         in one direction so the other XplatX11.ScrollWindow call has the
10567         proper stuff in the proper places.
10568         (EditCell): set is_editing to true before calling .Edit.
10570         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
10571         don't bother comparing first.
10572         (OnKeyPress): call grid.ColumnStartedEditing before calling
10573         base.OnKeyPress.  this will set is_changing and invalidate the row
10574         header if necessary.
10575         (ProcessKeyMessage): for WM_CHAR messages, call
10576         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
10577         and WM_KEYDOWN.
10578         
10579         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
10580         it's done in the DataGrid.
10581         (NextState): call grid.ColumnStartedEditing, which takes care of
10582         invalidating the row header (and setting is_changing).
10584         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
10585         here.  it's done in the DataGrid.
10587 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10589         * Control.cs: allow changing the cursor when the mouse position is
10590         out of bounds but Capture is set.
10591         * LinkLabel.cs: handle the case when the mouse button is pressed on the
10592         linklabel but released somewhere else.
10594 2006-05-25  Jackson Harper  <jackson@ximian.com>
10596         * TreeView.cs: When we get focus if there is no selected node make
10597         it the top node
10598         - Remove some uneeded setup code from Draw.
10599         * TreeNodeCollection.cs: If the tree doesn't have a top node when
10600         a new node is inserted make the new node the top.
10601         * XplatUIX11.cs:
10602         * Timer.cs: Use Utc time so that no local time zone stuff needs to
10603         be used (should be faster).
10604         
10605 2006-05-25  Chris Toshok  <toshok@ximian.com>
10607         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
10608         problem with the last commit.
10610 2006-05-25  Chris Toshok  <toshok@ximian.com>
10612         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
10613         need the invalidate call here, while scrolling right-to-left via
10614         the left arrow key (i.e. moving the editing cell while scrolling).
10616         * DataGrid.cs (.ctor): remove the initialization of
10617         ctrl_pressed/shift_pressed.  We no longer track them using key
10618         up/down handlers, but by using Control.ModifierKeys.  Also, switch
10619         to using ValueChanged handlers on the scrollbars instead of
10620         Scrolled event handlers.  This simplifies a bunch of the scrolling
10621         code.
10622         (GridHValueChanged): rename from GridHScrolled, and change it to
10623         work with the new event args.
10624         (GridVValueChanged): same.
10625         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
10626         (OnMouseWheel): actually scroll the datagrid.  Don't change the
10627         selected cell.
10628         (ProcessGridKey): correct all the keyboard navigation stuff I
10629         could find.  Ctrl up/down/left/right/home/end work now.
10630         (EnsureCellVisibility): correct method name spelling.  Also,
10631         simplify this a touch by not explicitly calling the
10632         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
10633         scrollbar value.
10634         (OnKeyUpDG): no need for this method now.
10635         
10636 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10638         * LinkLabel.cs: display the OverrideCursor when hovering the label.
10639         Fixes bug #78392.
10641 2006-05-25  Chris Toshok  <toshok@ximian.com>
10643         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
10644         r61019.
10646 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
10648         * Application.cs: Moved setting of is_modal and closing to before
10649           we create the control, to allow the event handlers called as a
10650           result of creation affect closing. Also removed Gonzalo's previous
10651           change to setting DialogResult, the behaviour has been moved to 
10652           Form.ShowDialog()
10653         * Form.cs: 
10654           - ShowDialog(): Removed explicit creation of the form, let RunLoop
10655             handle it instead
10656           - ShowDialog(): If no dialog result is set, we need to return Cancel
10657           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
10658             the close is cancelled
10660 2006-05-25  Jackson Harper  <jackson@ximian.com>
10662         * StatusBar.cs: We only need to update the sizes of the other
10663         panels when we have auto size contents.  Also we are only updating
10664         the contents of the panel, not the borders, so compensate for the
10665         border width (TODO: get this width from the theme somehow).
10666         * TreeView.cs: Scrollable is true by default
10667         - Use invalidate instead of refresh where needed
10668         - Factor the scrollable value into scrollbar updating
10669         - Update the scrollbars if the Scrollable property is altered
10670         - Update the selected node if its ImageIndex is changed
10671         - Handle null nodes in UpdateNode (mainly so we don't have to
10672         check if selected is null when updating it
10673         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
10674         are factored into the visible count
10675         - Use VisibleCount for clarity in the code
10676         - When the font is changed we need to recurse through all the
10677         nodes and invalidate their sizes
10678         
10679 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10681         * Application.cs: set the DialogResult to fixed when the main form is
10682         hidden or destroyed while being modal.
10684 2006-05-25  Miguel de Icaza  <miguel@novell.com>
10686         * Theme.cs: Use Tangoified messagebox icons. 
10688         (GetSizedResourceImage): Also cope with width = 0 and do not
10689         trigger a warning in that case (0 means "give me your icon from
10690         the resouce, no special size needed).
10692 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
10694         * Application.cs: Leave runloop if the the main modal form is 
10695           hidden (fixes #78484)
10697 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
10699         * BindingContext.cs : reject null datasource in Contains() and
10700           Item[].
10701         * CurrencyManager.cs : check data_member validity when data_source
10702           is dataset. When it is late binding, the initial position is -1.
10704 2006-05-24  Jackson Harper  <jackson@ximian.com>
10706         * TreeNodeCollection.cs: Dont't recalculate the visible order on
10707         inserted nodes that aren't visible.  This changes the
10708         max_visible_order which confuses scrollbar settings.
10709         - Use the enumerator to get the prev node instead of duplicating
10710         code.
10711         * TreeView.cs: Use new method for setting scrollbar values
10712         - Don't set the bounds every time the scrollbar is updated
10713         - When updating below the root node use an invalidate instead of a
10714         refresh to prevent the child controls (scrollbars) from being
10715         refreshed. (UpdateBelow still needs to be reworked anyways).
10716         - Reenable SetBottom now that visible orders are set correctly,
10717         added some debug code incase we ever get bad values there again.
10718         - Set the scrollbar max to 2 less then the max value, this
10719         compensates for the max value being one above the node count, and
10720         for scrollbars adding one extra "notch".
10721         - When drawing image nodes if there is an imagelist we draw the
10722         first image in the list if the supplied image index is out of the
10723         image list's bounds.
10724         
10725 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
10727         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
10728           we receive a size change from the WM (Fixes #78503)
10730 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
10732         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
10733           rectangle (Fixes #78501)
10735 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
10737         * ButtonBase.cs: 
10738           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
10739             as a bitfield.
10740           - Fixed MouseMove to no longer switch pressed state unless the left
10741             mouse button is pressed. Atsushi provided the original patch (#78485)
10742           
10743 2006-05-24  Jackson Harper  <jackson@ximian.com>
10745         * ScrollBar.cs: New internal methods that allow us to change a
10746         couple values on the scrollbar (the most common case is maximum
10747         and large change) without getting multiple invalidates.
10749 2006-05-24  Chris Toshok  <toshok@ximian.com>
10751         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
10752         (Edit): save off the original state in oldState, and set
10753         grid.is_editing to true.
10754         (OnKeyDown): abort editing if escape is pressed.  also, call
10755         NextState if space is pressed.
10756         (OnMouseDown): call NextState.
10757         (NextState): factor out shared code from OnKeyDown and OnMouseDown
10758         here.  Also, only invalidate the row header once (on the initial
10759         is_changing switch) to save on redraws.
10761 2006-05-24  Chris Toshok  <toshok@ximian.com>
10763         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
10764         if the value in the cell is different than it was before.  This
10765         keeps us from triggering a layout when we move around a datarid
10766         with a highlighted cell.
10767         (Edit): suspend layout when creating/positining the text box, and
10768         resume passing false so we don't ever actually re-layout.
10769         (ReleaseHostedControl): same.
10770         (EnsureTextBox): reformat slightly, and set WordWrap to false.
10772         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
10773         control-key sequences should go to the datagrid - remove that
10774         lock.  Also, modify the conditions under which we move between
10775         cells when moving the cursor within a cell, and remove the "this"
10776         and "base" from field accesses.  We weren't even consistent, given
10777         they all were in the base class.
10779 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
10781         * Binding.cs : (.ctor)
10782           An obvious NRE fix for BindingTest.CtorNullTest().
10784 2006-05-23  Chris Toshok  <toshok@ximian.com>
10786         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
10787         them between lines.  This fixes some quirks editing cells in the
10788         datagrid.
10790 2006-05-23  Jackson Harper  <jackson@ximian.com>
10792         * TreeView.cs: Use begin/end update when doing expand/collapse all
10793         so that we don't get flicker on the scrollbar.
10795 2006-05-23  Jackson Harper  <jackson@ximian.com>
10797         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
10798         treenode calculations to be independant of the painting code. To
10799         do this nodes track a visible order which is calculated by the
10800         treeview.
10801         - Call new methods for expanding/collapsing nodes.  These methods
10802         use scrollwindow so we don't have to update everything below the
10803         node.
10804         * TreeView.cs: Refactored drawing and scrolling code.  We don't
10805         need to update nodes when drawing anymore or calculate scrollbar
10806         stuff.
10807         - Added new methods for expanding/collapsing nodes. These methods
10808         use ScrollWindow so as to not have to redraw all the nodes below.
10809         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
10810         we add/remove nodes or sort.
10811         - Handle removing the selected and the top node properly.
10813 2006-05-23  Chris Toshok  <toshok@ximian.com>
10815         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
10816         maybe this should actually happen in the datagrid code?
10817         (EndEdit): no need to invalidate anything, given that
10818         ReleaseHostedControl causes the datagrid to relayout, which
10819         invalidates everything anyway.
10821         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
10822         in SetCurrentCell).
10823         (set_SelectionBackColor): call InvalidateSelection instead of
10824         Refresh.
10825         (set_SelectionForeColor): same.
10826         (BeginEdit): Flesh this out a bit.
10827         (CancelEditing): only do any of this if we're editing/adding.
10828         (EndEdit): same.
10829         (OnMouseDown): there's no need to cancel editing here, it's done
10830         in SetCurrentCell.
10831         (SetCurrentCell): only invalidate the current row header if it's a
10832         different row than the new one.
10833         (ShiftSelection): fix this to work like MS does.
10834         (ResetSelection): factor out the invalidation of selected_rows to
10835         InvalidateSelection.
10836         (SetDataSource): cancel any editing that's going on.
10838         * DataGridColumnStyle.cs
10839         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
10840         call the non-interface version.
10842         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
10843         header rectangle with the clip rectangle so we don't redraw the
10844         entire header for just a small area.  Gets rid of the last flicker
10845         when horizontally scrolling.
10846         (DataGridPaintRow): same.
10848 2006-05-23  Mike Kestner  <mkestner@novell.com>
10850         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
10851         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
10852         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
10853         Critical bug report.
10855 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
10857         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
10858           and this fixes #78493
10860 2006-05-23  Miguel de Icaza  <miguel@novell.com>
10862         * Theme.cs (GetSizedResourceImage): Scale images if the proper
10863         size is not found.  
10864         
10865         * FileDialog.cs: Do not change the background for the side bar as
10866         it wont work nicely with the theme, and also reduces the artifacts
10867         in rendering the icons (which I want to fix too).
10869         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
10870         resources, not resgen resources. 
10872         (PlatformDefaultHandler): Pull images using the new API.
10874 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
10876         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
10877           a reference to the hwnd and will not remove it unless there are
10878           no pending exposures (fixes #78341)
10879         * XplatUI.cs: Improved debug
10881 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
10883         * MenuAPI.cs : don't handle OnClick event when it was not the left
10884           button. Fixed bug #78487.
10886 2006-05-23  Mike Kestner  <mkestner@novell.com>
10888         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
10889         prefer submenus to the top menu for item lookup, to avoid popping down
10890         top-row items.
10892 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
10894         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
10895           Graphics.FillRectangle as the visual results are really bad (even
10896           on win). We now draw perfect arrows (and perfect shadows when the
10897           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
10898           Pen.DashPattern to draw the dots of each line.
10900 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
10902         * FileDialog.cs: Update the filename combobox when navigating through
10903           the ListView with the cursor keys. Fixes part 7 of bug #78446.
10905 2006-05-22  Mike Kestner  <mkestner@novell.com>
10907         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
10908         Fixes #78463.
10910 2006-05-22  Mike Kestner  <mkestner@novell.com>
10912         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
10913         requests. Fix a misspelled parameter and a copy paste exception error
10914         in Select.
10916 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
10918         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
10919           to get the same width/height (5/13) on X11 as the default font has on
10920           win32. This means that our DefaultFont emSize is smaller than the 
10921           the MS SWF equivalent (even thought the width/height stays the same)
10923 2006-05-20  Jackson Harper  <jackson@ximian.com>
10925         * MdiClient.cs:
10926         * MdiWindowManager.cs:
10927         * InternalWindowManager.cs: Make sure to use the border width from
10928         the theme.
10930 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
10932         * PrintDialog.cs: Implements printer details
10934 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
10936         * FileDialog.cs: Added focus handling for PopupButtonPanel.
10937           Fixes part 1 and 2 of bug #78446
10939 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
10941         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
10942           instead of sticking to the first ever calculated value
10944 2006-05-19  Mike Kestner  <mkestner@novell.com>
10946         * ComboBox.cs: fix mouse motion selection to use MousePosition and
10947         PointToClient, since Capture is set. Fixes #78344.
10949 2006-05-19  Mike Kestner  <mkestner@novell.com>
10951         * ListView.cs: match MS behavior in Details view where items are not
10952         drawn if Columns.Count == 0. 
10953         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
10954         Use a separate pen to draw the check, since changing the width affects
10955         the box as well.  Fixes #78454.
10957 2006-05-18  Miguel de Icaza  <miguel@novell.com>
10959         * ListView.cs: ArgumentOutOfRangeException, single versions of the
10960         exception should throw the name of the invalid argument.
10962         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
10963         there are no files listed. 
10965 2006-05-18  Jackson Harper  <jackson@ximian.com>
10967         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
10968         up.
10970 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
10972         * Control.cs: Brought back our old UpdateZOrder method as a private
10973           function and switched our calls from UpdateZOrder to the new one.
10974           This fixes the Paint.Net canvas disappearing bug.
10976 2006-05-18  Jackson Harper  <jackson@ximian.com>
10978         * Theme.cs:
10979         * ThemeWin32Classic.cs:
10980         * InternalWindowManager.cs: Move the drawing into the theme,
10981         expose everything the theme should need from the window manager.
10983 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
10985         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
10986           from the call to NativeWindow to avoid walking up the parent chain
10987           further than needed (speeds up setting cursors and avoids setting
10988           the wrong cursor if a parent has another cursor defined)
10989         * Cursor.cs: When loading an icon as cursor, MS uses the center of
10990           the icon as hotspot, not what's contained as hotspot in the icon
10991           file. This fixes the perceived drawing offset seen with Paint.Net
10992         
10993 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
10995         * XplatUIX11.cs: 
10996           - Store the calculated rectangle in Hwnd object and use it when 
10997             setting the client size
10998           - Force Toolwindows to always be type Dock, to ensure they're on top
11000 2006-05-18  Mike Kestner  <mkestner@novell.com>
11002         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
11003         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
11004         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
11005         Substantial refactoring to remove confusing nested classes. Coding
11006         standard and Get+Set->property refactorings.  Shift to index based
11007         highlighting in ComboListBox instead of constantly using IndexOf and
11008         Items[]. Add invalidations on resize for DropDownList to fix ugliness
11009         in FileDialog growth.  Draw borders manually since Simple mode needs
11010         to look like two independent controls.  Make listbox border
11011         conditional to DropDownStyle.  Improved OwnerDraw support.
11013 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
11015         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
11016         Don't set the disposed graphics to null, so we can throw the "right"
11017         exception if the graphics is reused later (added a flag to avoid 
11018         double disposing). Some behaviours are different under 2.0 and are
11019         filled under bug #78448.
11021 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
11023         * Control.cs: When double-buffering is enabled, we need to reset
11024           our graphics context between paint calls. Otherwise, any 
11025           transformations and other alterations on the context will 
11026           become cumulative (#77734)
11028 2006-05-18  Mike Kestner  <mkestner@novell.com>
11030         * ListView.cs: do focused item selection like MS on clicks. 
11031         Rework focus handling for ItemControl so LostFocus invalidates as
11032         well.
11033         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
11034         the ListView ItemControl has focus.
11036 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
11038         * XplatUIX11.cs: If client_window ends up being width or height zero
11039           due to border settings, move it off window inside whole_window (#78433)
11041 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
11043         * Mime.cs: Shrink the mime file cache correctly.
11045 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
11047         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
11049 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
11051         * XplatUIX11.cs (AddExpose): More sanity checks
11053 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
11055         * XplatUIX11.cs:
11056           - AddExpose: Don't add expose ranges outside the size of our
11057             window
11058           - Cast opacity values to Int32 to avoid crashes with certain
11059             values
11060           - Added disabled code paths that protect against illegal cross-
11061             thread painting (Developers.exe)
11063 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
11065         * ProgressBar.cs: Invalidate the control when it's resized
11066           since block size is based on control size. (#78388)
11068 2006-05-16  Miguel de Icaza  <miguel@novell.com>
11070         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
11071         of setting the incoming argument to the "reset" value, we set the
11072         this.datamember to string.empty (before we were invalidating the
11073         incoming data).   
11075         Fixes 78420
11077 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
11079         * Form.cs: Only apply transparency settings after the form
11080           is created. (Fixes #77800)
11082 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
11084         * ApplicationContext.cs: Grab the HandleDestroyed event so
11085           we know when to fire OnMainFormClosed 
11087 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
11089         * Application.cs: Introduced sub-class to allow tracking of
11090           threads and centralized triggering of the event mess for
11091           ThreadExit, AppExit, etc..  (#76156)
11093 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
11095         * MimeIcon.cs:
11096           - Do not return a null icon index value for a mime subclass.
11097             Instead try the main mime type class too.
11098           - Seems that some newer distributions don't have a link to some
11099             gnome default icons anymore. So check the default gnome dir too.
11100           
11102 2006-05-16  Jackson Harper  <jackson@ximian.com>
11104         * MdiClient.cs: Don't paint the parent background image if we have
11105         our own background image.
11107 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
11109         * Control.cs:
11110           - PerformLayout: Do not shrink space filled by DockStyle.Fill
11111             controls, all filled controls are supposed to overlap (#78080)
11112           - UpdateZOrder is supposed to update the control's z-order in the
11113             parent's z-order chain. Fixed to behave like that
11114           - BringToFront: Removed obsolete code
11115           - SendToBack: Simplyfied
11116           - SetChildIndex: Trigger layout calculations when Z-order changes
11117             since layout is done by z-order
11119 2006-05-16  Chris Toshok  <toshok@ximian.com>
11121         [ fixes bug #78410 ]
11122         * DataGrid.cs (set_AlternatingBackColor): use
11123         grid_drawing.InvalidateCells instead of Refresh().
11124         (set_BackColor): call grid_drawing.InvalidateCells.
11125         (set_BackgroundColor): use Invalidate instead of Refresh.
11127         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
11128         invalidate the cell area.
11130 2006-05-15  Chris Toshok  <toshok@ximian.com>
11132         [ fixes bug #78011 ]
11133         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
11134         on to DataGridPaintRow.
11135         (DataGridPaintRow): take a clip argument, and only draw the cells
11136         which intersect it.  same with the not_usedarea.
11138         * Theme.cs (DataGridPaintRow) add @clip parameter.
11140         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
11141         XplatUI.ScrollWindow.
11142         (ScrollToRow): same.
11144         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
11145         with last column which was causing a gray swath to appear with the
11146         XplatUI.ScrollWindow code.
11148 2006-05-15  Chris Toshok  <toshok@ximian.com>
11150         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
11151         use XplatUI.ScrollWindow.
11152         (VerticalScrollEvent): use XplatUI.ScrollWindow.
11154 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
11156         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
11158 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
11160         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
11161           file since there are no equivalent X11 cursors
11163 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
11165         * MonthCalendar.cs : DateTimePicker should reflect selected date
11166           on mouse*up*, not mouse*down*. Fixed originally reported part of
11167           bug #76474.
11169 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
11171         * TabControl.cs : When argument index is equal or more than tab
11172           count, just ignore. Fixed bug #78395.
11174 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
11176         * Control.cs: Dispose all child controls when control is diposed (#78394)
11178 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
11180         * ColorDialog.cs: Finally it is possible to select the color with
11181           the text boxes
11183 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
11185         * PrintDialog.cs: Fix typo
11187 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
11189         * PrintDialog.cs: PrintDialog is not resizable
11190         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
11191           color. Made some ToolBar drawing methods protected virtual.
11193 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
11195         * PrintDialog.cs: Implementation of the PrintDialog
11197 2006-05-12  Chris Toshok  <toshok@ximian.com>
11199         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
11200         thumb, instead use MoveThumb.  This has the side effect of making
11201         most of the other thumb moving machinery use MoveThumb as well.
11202         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
11203         need to actually invalidate the rectangle where the new thumb will
11204         go.
11205         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
11206         We force an Update() after, so it's not as fast as it could be,
11207         but at least there's zero flicker and no droppings.
11208         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
11209         (UpdateThumbPos): add another argument (dirty), which says whether
11210         or not to calculate/add dirty regions which we later invalidate.
11211         For cases where we know we're going to use MoveThumb, we pass
11212         false for this.  Otherwise, pass true.
11214 2006-05-12  Jackson Harper  <jackson@ximian.com>
11216         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
11217         the status bar.
11218         
11219 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
11221         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
11222           and GetClipRegion methods and UserClipWontExposeParent property.
11223         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
11224           overriding UserClipWontExposeParent property, setting to false, since
11225           Win32 handles the required expose messages to draw our clipped parent
11226           areas internally
11227         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
11228           PaintEventStart to set the user clip region if set.
11229         * Control.cs: 
11230           - Now internally tracking the Region for the control since we need to
11231             store it if the handle is not yet created and only set it when it
11232             becomes created. Before setting the region forced handle creation
11233           - Added code to draw the parents underneath a user-clipped region
11234         * Hwnd.cs: Added UserClip property
11236 2006-05-12  Chris Toshok  <toshok@ximian.com>
11238         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
11239         (set_Maximum): same.
11240         (set_Minimum): same.
11241         (set_SmallChange): same.
11242         (OnMouseUpSB): remove the call to refresh when releasing the
11243         thumb.  We shouldn't need it.
11244         
11245 2006-05-12  Miguel de Icaza  <miguel@novell.com>
11247         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
11248         AutoSize set to None, we do not need to relayout everything, we
11249         just need to invalidate the current region.
11251         (Draw): Do not draw the entire ClientArea, just redraw the
11252         clip area being passed.
11254         * MdiClient.cs: Make MdiClient constructor with the Form argument
11255         internal. 
11257 2006-05-12  Jackson Harper  <jackson@ximian.com>
11259         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
11260         parents background image,  but strangely not their own.
11261         - (DrawStatusBarPanel): Take into account horizontal alignment
11262         when drawing the strings and icons.
11264 2006-05-12  Mike Kestner  <mkestner@novell.com>
11266         * ListBox.cs: avoid invalidations for focus when the collection is
11267         empty. 
11269 2006-05-12  Chris Toshok  <toshok@ximian.com>
11271         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
11272         invalidate the entire thumb area.  Call InvalidateDirty which
11273         limits the redraw to the thumb itself and surrounding pixels.
11275         * XplatUIX11.cs (ScrollWindow): optimize copying.
11276         
11277 2006-05-12  Chris Toshok  <toshok@ximian.com>
11279         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
11280         Figure out the positioning/layout in a single pass instead of
11281         multiple recursive invocations.  Speeds up the initial display of
11282         the data grid.  Also, make many things private that were
11283         originally public but unused outside this class.
11285 2006-05-11  Jackson Harper  <jackson@ximian.com>
11287         * MdiClient.cs: Improved layout code.
11289 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
11291         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
11292           not SelectedObject.
11294 2006-05-11  Chris Toshok  <toshok@ximian.com>
11296         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
11297         union of that will always be {0,0,width,height}.
11299 2006-05-11  Jackson Harper  <jackson@ximian.com>
11301         * Form.cs: Match MS's DefaultSize for forms (they must have
11302         changed the size in sp2).
11304 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
11306         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
11308 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
11310         * TextControl.cs : Fixed bug #78109. This incorrect position
11311           comparison caused crash on automatic line split.
11312         * TextBoxBase.cs : reduce duplicate code.
11314 2006-05-10  Jackson Harper  <jackson@ximian.com>
11316         * MdiClient.cs: Active form is only sent to the back when using
11317         the Next form functionality, when a form is clicked the current
11318         active shouldn't be sent to the back.
11319         - Layout the mdi windows when the container is first made visible.
11320         * Form.cs: Give the MdiClient a ref to the containing form when we
11321         create it.
11322         
11323 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
11325         * LinkLabel.cs : link_font could be uninitialized, so populate one
11326           before actual use. Fixed bug #78340.
11328 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
11330         * XplatUIX11.cs : clipboard format native value is IntPtr.
11331           Fixed bug #78283.
11333 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
11335         * Control.cs: 
11336           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
11337             which is passed up the parent chain by DefWndProc
11338           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
11339             to DefWndProc (#77956)
11340         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
11342 2006-05-10  Jackson Harper  <jackson@ximian.com>
11344         * MdiClient.cs: We need to remove the controls from the mdi
11345         collection, when we close the window.
11346         * MdiWindowManager.cs: Special handling of closing mdi windows.
11347         * InternalWindowManager.cs: Make the close method virtual so the
11348         mdi window manager can handle it specially.
11350 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
11352         * DataGrid.cs:
11353           - Recalculate grid when the data source has changed
11354           - Matches styles provided by user from all data sources types
11355         * DataGridTableStyle.cs: For columns that provided by the user set the
11356         with the preferred value is there was unassigned.
11357         * CurrencyManager.cs: throw OnItemChanged event
11359 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
11361         * PictureBox.cs: Don't animate until handle is created. Start animation
11362           when handle is created.
11364 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
11366         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
11367           current codebase.
11368         * XEventQueue.cs: We don't need to provide the extra info
11370 2006-05-10  Jackson Harper  <jackson@ximian.com>
11372         * MdiClient.cs: If the mdi clients parent form has a background
11373         image set, we draw that background image for the mdi area's
11374         background.
11376 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
11378         * TextBoxBase.cs: Set IBeam cursor (#78347)
11380 2006-05-10  Mike Kestner  <mkestner@novell.com>
11382         * ToolBar.cs: fix some text padding issues with ButtonSize
11383         calculation. Update the default size to match MS documentation.
11384         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
11385         button size. Fixes #78296.
11387 2006-05-10  Mike Kestner  <mkestner@novell.com>
11389         * ListBox.cs: use is_visible for scrollbar positioning in case the
11390         control isn't on screen yet.  Fix off by one with Right vs Width
11391         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
11392         
11393 2006-05-10  Jackson Harper  <jackson@ximian.com>
11395         * X11Dnd.cs: Drop to a control with another control on top of it.
11396         * ToolBar.cs: Work on a copy of the buttons list, so that it can
11397         be modified in click handlers. TODO: Look for similar problems in
11398         other controls.
11400 2006-05-09  Jackson Harper  <jackson@ximian.com>
11402         * Form.cs: Window managers need the old window state when setting
11403         window state now.
11404         * InternalWindowManager.cs: Allow the base mdi window manager to
11405         handle more of the MDI only stuff (like maximize buttons).
11406         * MdiWindowManager.cs: Fix some snafus in changing the window
11407         state.  Add all the menu functionality, for both popup and
11408         maximized menus.
11409         * MdiClient.cs: When a new form is selected the currently
11410         activated form is sent to the back, this matches MS.
11411         - Implement a new method to activate the next mdi child window.
11413 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
11415         * Control.cs: 
11416           - Added new InternalCapture method to allow controls to prevent
11417             the capture behaviour on the click handlers
11418           - Switched to use InternalCapture
11419         * ComboBox.cs:
11420           - Using InternalCapture to prevent mouse captures from being released
11421             on mouse button release (Fixes #78100)
11422         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
11423           returns Form borders if a caption is present. (Fixes #78310)
11425 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
11427         * TreeNode.cs: Changed serialization .ctor to not require every field
11428           to be present. (#78265)
11429         * OwnerDrawPropertyBag.cs: Added serialization .ctor
11431 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
11433         * MimeIcon.cs: for is faster than foreach for strings.
11435 2006-05-05  Mike Kestner  <mkestner@novell.com>
11437         * CheckedListBox.cs: update check handling code to not use selected.
11438         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
11439         behavior for visual feedback, motion response, shift/ctrl handling,
11440         and properly deal with all 4 selection modes. Updates to bounds
11441         handling logic.  Add scroll wheel support. [Fixes #77842]
11443 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
11445         * ListView.cs:
11446           - Moved adding of Implicit controls into .ctor. That way, subsequent
11447             creation of the controls will not cause them to think they are 
11448             toplevel windows (fixes #78200 header problem)
11449           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
11450           - Switched visibility setting of header control to use internal field
11451             to avoid triggering handle creation
11452           - Now checking if handle is created before causing a refresh when items
11453             are added (This makes us now match handle creation time with MS)
11454         * Splitter.cs: Removed loading of private splitter cursor, switched to
11455           Cursors version now that that is loading the right ones
11456         * Cursors.cs: Load proper splitter cursors from resources
11457         * Cursor.cs: Added second method of loading resource cursors for the 
11458           VS.Net users amongst us
11460 2006-05-05  Mike Kestner  <mkestner@novell.com>
11462         * ListView.cs: give header_control a minimum size based on the
11463         ListView size.
11465 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
11467         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
11468           window seems to do that with metacity, so set that type. (#78120)
11470 2006-05-05  Mike Kestner  <mkestner@novell.com>
11472         * ListViewItem.cs: fix Details mode checkbox layout bug.
11473         * ThemeWin32Classic.cs: draw a ListView column header for unused space
11474         at the end of the header, if it exists. [Fixes for #78200]
11476 2006-05-04  Jackson Harper  <jackson@ximian.com>
11478         * MdiClient.cs: Add a helper property to get the container form.
11479         * MdiWindowManager.cs: We have to make sure to use the menu origin
11480         when drawing the icons and buttons, this fixes maximized window
11481         icons/buttons on win32.
11482         * InternalWindowManager.cs: Reset the restore captions when a
11483         window goes from Maximized to Minimized and vice versa. Move the
11484         DrawMaximizedButtons into the MdiWindowManager source, tool
11485         windows can't be maximized. NOTE: This could use a little
11486         refactoring if time ever permits.
11487         
11488 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
11490         * TextBox.cs: Add MWFCategoryAttributes
11491         * TextBoxBase.cs: Add MWFCategoryAttributes
11492         * Form.cs: Add MWFCategoryAttributes
11494 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
11496         * Control.cs: Add MWFCategoryAttributes
11497         * ScrollableControl.cs: Add MWFCategoryAttributes
11499 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
11501         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
11502           Divider is true. Fix a little glitch in PropertyToolBar
11503           drawing code
11505 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
11507         * Control.cs:
11508           - Dispose: Call base.Dispose, this causes the disposed event
11509             to be fired (and probably other, more important stuff)
11510           - SetVisibleCore: Set is_visible to true after creating the
11511             window so that the window still gets created invisible (if
11512             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
11513             to generate a WM_ACTIVE message
11514         * Form.cs: Call Dispose when we want to destroy the window, instead of
11515           just destroying the handle (Dispose will do that for us)
11516         * XplatUIX11.cs:
11517           - RootWindow also needs a queue, so we can properly process the
11518             property change events from RootWindow (like Activate)
11519           - Generatic synthetic WM_ACTIVE message when the active window is
11520             being destroyed
11522 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
11524         * LinkLabel.cs: Trigger a recalc of our label dimensions when
11525           bounds are changed
11527 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
11529         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
11530           for determining width and height (image might not be assigned if
11531           we're drawing an imagelist)
11533 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
11535         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
11536         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
11537           height from system
11538         * Theme.cs: No longer returns hardcoded menu height, instead calls
11539           new driver method
11540         * Form.cs (OnLoad): Scaling happens before triggering Load events 
11541           on MS (# 78257)
11543 2006-05-01  Mike Kestner  <mkestner@novell.com>
11545         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
11547 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
11549         * TextBoxBase.cs: Removed Fixme
11550         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
11552 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
11554         * XplatUIX11.cs:
11555           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
11556             the rectangle relative to the parent, considering borders. We
11557             don't really want that.
11558           - ScrollWindow: Fixed warning to be more understandable
11559         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
11560           scrollbars and scroll only the visible area
11561         * RichTextBox.cs: Removed debug output
11563 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
11565         * NumericUpDown.cs (Text): Just use base
11566         * UpDownBase.cs: Ensure txtView is created before using it
11568 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
11570         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
11571           casting to IntPtr to avoid 64bit overflow errors
11573 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
11575         * Control.cs:
11576           - AllowDrop: Don't force handle creation.
11577           - CreateHandle: Added call to tell driver if we're allowed to drop
11579 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
11581         * FileDialog.cs: Remember the last directory not only for the
11582           current instance but also for new FileDialog instances.
11584 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
11585         
11586         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
11587           broke sending async messages
11589 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
11591         * XplatUIX11.cs:
11592           - ScrollWindow: Fixed method. We finally generate expose events again
11593             for scrolled areas. This was causing 'garbage' when scrolling
11594             textbox and other controls that used ScrollWindow
11595           - Switched from using the regular queue for paint events to the MS 
11596             model of 'generating' paint events when the queue is empty.
11597             We use the new XQueueEvent.Paint subclass to store which windows
11598             need painting.
11599           - AddExpose now takes the x/y/width/height of the exposed area
11600             and inserts the window into the paint queue if not already there
11601           - InvalidateWholeWindow: Switched to use new AddExpose method
11602           - UpdateMessageQueue: Added which queue to monitor for paint events
11603           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
11604             the unlikely case nothing above handles it. We reset the expose
11605             pending states to get them off the queue.
11606           - GetMessage: Now pulls a paint event if no other events are in the
11607             queue
11608           - Invalidate: Switched to new AddExpose method
11609           - PeekMessage: Updated to understand pending paint events
11610           - UpdateWindow: Fixed logic bug. We were only updating if the window
11611             didn't need updating. Also switched to sending WM_PAINT directly,
11612             like MS does.
11613         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
11614           and random access Remove(). The random access is needed to handle
11615           UpdateWindow() where a WM_PAINT is sent directly without accessing
11616           the queue.
11617         * ScrollBar.cs: Added Update() calls to cause immediate updates to
11618           allow for better feedback when scrolling. Scrollbars are small and
11619           the immediate update should make it 'feel' more responsive without
11620           slowing things down. ScrollBar still needs it's invaliate logic
11621           updated to not always invalidate the whole bar on certain changes.
11623 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11625         * Control.cs:
11626         (BackColor): if the control does not support a transparent background,
11627         return the default backcolor when the parent backcolor is transparent.
11629 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
11631         * Application.cs: Updated to new StartLoop/GetMessage API
11632         * RichTextBox.cs: Provide some output on RTF parsing errors
11633         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
11634           new queue_id argument to GetMessage and PeekMessage to allow faster
11635           handling of per-thread queues in drivers.
11636         * Hwnd.cs: Added Queue tracking and property
11637         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
11638         * XEventQueue.cs: Added thread trackingA
11639         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
11640         * XplatUIX11.cs:
11641           - Implemented new per-thread queue
11642           - GetMessage: Fixed return/break behaviour on several cases. We were
11643             returning stale messages in some cases, instead of just processing
11644             the next message
11646 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
11648         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
11650 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
11652         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
11653           fixed off-by-one comparisons between Width/Height and Right/Bottom.
11655 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
11657         * PropertyGridView.cs: Fix drop down width.
11659 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
11661         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
11662           a mess in DrawToolBar, so I removed one of them.
11664 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
11666         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
11667           needed (clip). Otherwise we get artifacts.
11669 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
11671         * FixedSizeTextBox.cs: Added constructor to allow specifying which
11672           dimension is fixed
11673         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
11674           and switched FixedSizeTextBox to only be fixed vertical (#78116)
11675         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
11676           if it matches the scale base font (avoids unneeded scaling)
11678 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
11680         * X11DesktopColors.cs: One gtk_init_check should be enough
11682 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
11684         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
11685           match MS behaviour
11687 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
11689         * TextBoxBase.cs: 
11690           - Generate OnTextChanged for Backspace even if we're only deleting
11691             the current selection
11692           - When setting the Text property, only select all text if the
11693             control does not have focus when it is being set. Otherwise
11694             just place the cursor at the beginning of the control
11696 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
11698         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
11699           Added a little helper to draw PropertyGrid ToolBar with a different
11700           border and a different BackColor.
11701         * PropertyGrid.cs: Some background parts didn't get painted with the
11702           correct background color. Added a class that helps us to draw the
11703           correct border for PropertyGridView and a class that helps us to
11704           draw ToolBars with a different backcolor
11705         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
11707 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
11709         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
11710         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
11712 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
11714         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
11715           into the palette entries. Also, since we're working on a copy
11716           we needed to copy the palette back onto the bitmap.
11717         * Cursor.cs: Same fix as XplatUIWin32.cs.
11719 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
11721         * ImageListStreamer.cs: Need to read the var (or we're off)
11723 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
11725         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
11726           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
11727           TextBoxBase.cs: Unused var fixes
11728         * AxHost.cs: Small 2.0 fix
11729         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
11730           as it seems that is what at least Metacity expects. This will make
11731           icons show up on 64bit platforms. We still have some 64bit size
11732           issues, though, since the startup app window size still won't match.
11734 2006-04-25  Mike Kestner  <mkestner@novell.com>
11736         * *.cs: cleanup newly reported exception var unused warnings.
11738 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
11740         * ThemeWin32Classic.cs: Button image alignment now matches exactly
11741           ms
11743 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
11745         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
11746           image. The image position is always the same, no matter if the
11747           button is pressed or not.
11749 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
11751         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
11752           selection and set the correct filename for SaveFileDialog.
11753           Patch by Emery Conrad.
11755 2006-04-24  Mike Kestner  <mkestner@novell.com>
11757         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
11758         check for item.X outside the ClientRect instead of item.Y. Fixes
11759         #78151.
11761 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11763         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
11764         trust that value blindly and do some sanity check. Fixes bug #77814.
11766 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11768         * ImageListStreamer.cs: save the mask as a 1bpp image.
11770 2006-04-21  Mike Kestner  <mkestner@novell.com>
11772         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
11773         pass Checked and Indeterminate to the Theme Engine. Improve
11774         encapsulation with ListBox.
11775         * ListBox.cs: Keep a StringFormat instead of calculating it every item
11776         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
11777         nested types.  Move all CheckState functionality to CheckedListBox.
11778         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
11779         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
11780         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
11781         single base list. Fix scrollbar sizing and placement to mirror MS.
11782         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
11783         used.
11784         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
11785         for CheckedListBox by using new DrawItemState info.  Center the
11786         checkboxes on the items. Use new StringFormat property.
11788 2006-04-18  Jackson Harper  <jackson@ximian.com>
11790         * Form.cs: MdiChildren don't do default locations the same way as
11791         regular forms.  This prevents a crash when trying to position the
11792         mdi windows.
11794 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
11796         * PropertyGridTextBox.cs: Formatting, copyright
11797         * PropertiesTab.cs: Formatting
11798         * PropertyGrid.cs: Formatting
11799         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
11800           click toggling of values
11801           
11802 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
11804         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
11805         * Control.cs (.ctor): verify_thread_handle is static, don't reset
11806           every time a control is created
11807         * Application.cs: Removed obsolete EnableRTLMirroring method
11809 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
11811         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
11812         SelectedIndex to -1. Fixes bug #78121.
11814 2006-04-17  Jackson Harper  <jackson@ximian.com>
11816         * Binding.cs: Handle null values for Current and BindingContext.
11817         This occurs when binding is a little delayed.
11818         * CurrencyManager.cs: return null for Current when there are no
11819         items in the list.
11820         - Hookup to the listchanged event on the DataView and update
11821         bindings when the list is changed.  This fixes late binding of
11822         controls.
11824 2006-04-17  Jackson Harper  <jackson@ximian.com>
11826         * X11Dnd.cs:
11827         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
11828         Ringenbach.
11830 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
11832         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
11833           place
11834         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
11835           with the correct ButtonState
11837 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
11839         * XplatUIX11.cs: Improved distinguishing between window types to
11840           tell the WM a type closer to what the app wants (Fixes #78107)
11842 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
11844         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
11845           GrabHandle
11847 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
11849         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
11850           drawing code to reflect the size grip changes
11852 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11854         * ImageListStreamer.cs: fix handling of the mask that follows the main
11855         bitmap when deserializing and serialize it properly. The generated mask
11856         should better be a 1bpp image, but I'll do that later.
11858 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
11860         * FileDialog.cs: Show something in the DirComboBox on *nix if the
11861           path doesn't fit into some of our Current.Places
11863 2006-04-13  Jackson Harper  <jackson@ximian.com>
11865         * ComboBox.cs: Use borders instead of drawing our own decorations,
11866         try to obey correct rules for heights.
11867         * Theme.cs:
11868         * ThemeNice.cs:
11869         * ThemeClearLooks.cs:
11870         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
11871         this is now handled by borders.
11872         - Remove unused DrawListBoxDecorationSize method.
11873         
11874 2006-04-13  Mike Kestner  <mkestner@novell.com>
11876         * MenuAPI.cs: null guarding for the disbled click check fixes crash
11877         reported by Alex.
11879 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
11881         * ThemeWin32Classic.cs: 
11882           - Fixed CPDrawStringDisabled
11883           - Corrected drawing of disabled menu items
11884           - Fixed drawing of disabled radio buttons (bug #78095)
11885           - Draw check in a disabled CheckBox with color ControlDark 
11887 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
11889         * Form.cs: Use the provided width when calculating the menu size;
11890           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
11891           and ClientSize.Width won't be updated yet
11892         * Application.cs: Use Visible instead of Show() to make form visible,
11893           this way we create the handle later and menusize is considered
11895 2006-04-12  Mike Kestner  <mkestner@novell.com>
11897         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
11898         reporting.
11900 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
11902         * TextBox.cs: Implemented context menu
11904 2006-04-12  Mike Kestner  <mkestner@novell.com>
11906         * ListView.cs: implement box selection. fixes #77838.
11907         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
11909 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
11911         * XplatUIX11.cs: Added setting of window type when transient window
11912           is created (metacity would move it otherwise)
11913         * X11Structs.cs: Added WINDOW_TYPE atoms
11914         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
11915           background (the control is Opaque but still wants transparent
11916           backgrounds)
11918 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
11920         * Control.cs: Added OnPaintBackgroundInternal to allow controls
11921           that set Opaque but don't mean it (like all ButtonBase-derived
11922           controls) to still draw their background
11923         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
11924           the background
11926 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
11928         * Control.cs (PaintControlBackground): Set the graphics object
11929           on our PaintEvent to null to prevent it from being disposed
11930           when the PaintEvent gets disposed
11932 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
11934         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
11935         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
11937 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
11939         * Control.cs: 
11940           - Added transparency check to BackColor property. Transparent
11941             backgrounds are only allowed if the control styles permit it
11942           - Added recursive painting of parent control background and
11943             foreground if a control with a transparent backcolor is drawn
11944             (Thanks to Tim Ringenback for providing his 'hack' as a base
11945              for this patch) Fixes #77985 and #78026.
11946           - Added Opaque style check before calling OnPaintBackground, no
11947             need to draw the background if the control is opaque
11948           - Removed ControlAccessibleObject owner variable (inherited from
11949             base, no need to define again)
11950           - Added some documentation links explaining the drawing events
11951             and styles
11953 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
11955         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
11956           that the affected control is the located at the left border of our
11957           parent (Fixes #77936)
11959 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
11961         * TextBoxBase.cs: When rendering disabled or readonly controls,
11962           draw the background with 'Control' instead of 'Window' color as
11963           long as the user hasn't specifically set a color
11965 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
11967         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
11968           since that won't be updated if the user types text (only if it's
11969           programatically set)
11971 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
11973         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
11974           layout changes do to app-triggered resizes will have the proper
11975           display rectangle for layout
11977 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
11979         * ThemeWin32Classic.cs:
11980           - Make use of the SystemBrushes and SystemPens wherever possible
11981           - Corrected some highlight colors
11982           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
11983             drawing
11984         * Theme.cs: Added Empty field to CPColor struct
11986 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
11988         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
11989           is displayed when calculating the display rectangle. Thanks to Mike
11990           for teaching me the err of my ways.
11992 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
11994         * ScrollableControl.cs:
11995           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
11996             (instead of 0,0) and we now return the real width/height instead of
11997             just the clientrectangle, adjusted for padding. The rectangle is
11998             now cached and created by the new CalculateDisplayRectangle method.
11999           - Created new CalculateDisplayRectange method, which basically does
12000             what get_DisplayRectangle() did originally, but now using the 
12001             right edge instead of DisplayRectangle to determine the size of
12002             our scrollbars
12003           - get_Canvas(): Fixed it to properly calculate canvas for 
12004             right/bottom controls which seem to be placed to the right/bottom
12005             of any controls that have a fixed location
12006           - Removed TODO that's taken care of
12007           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
12008             and SetDisplayRectLocation according to new MSDN2 docs
12009           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
12010             event when that is called, this is added for compatibility
12011           - ScrollControlIntoView(): Implemented.
12012           - Switched scrollbars to be implicit, they shouldn't be selectable
12013         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
12014           call it when the active control is set/changed
12015         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
12016         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
12017           implicit_control variable (used for native Win32 message generation)
12018         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
12019           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
12020         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
12021         * XplatUIStructs.cs: Added ScrollBarCommands enum
12023 2006-04-10  Jackson Harper  <jackson@ximian.com>
12025         * ButtonBase.cs:
12026         * CheckedListBox.cs:
12027         * ComboBox.cs:
12028         * DataGrid.cs:
12029         * DataGridView.cs:
12030         * Form.cs:
12031         * GroupBox.cs:
12032         * ListBox.cs:
12033         * PrintPreviewControl.cs:
12034         * ProgressBar.cs:
12035         * PropertyGrid.cs:
12036         * Splitter.cs:
12037         * StatusBar.cs:
12038         * TrackBar.cs:
12039         * UpDownBase.cs: Fixup base event overrides.
12040         
12041 2006-04-06  Mike Kestner  <mkestner@novell.com>
12043         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
12044         all user-initiated value changes to min <= value <= max-thumbsz+1.
12045         (set_Value): check for vert/horiz when calculating new thumb position.
12046         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
12047         like MS does.
12048         (OnMouseMoveSB): refactor the thumb dragging code and refine
12049         invalidation logic to reduce flicker.
12050         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
12051         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
12052         (UpdateThumbPosition): small code readability cleanup
12054 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
12056         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
12057           different
12059 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
12061         * ThemeNice.cs: Use a better graphics effect when a button is pressed
12063 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
12065         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
12066         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
12067           This dramatically reduces the number of Pen.Dispose calls. 
12068           Where possible call ResPool methods only once instead of calling it
12069           over and over again (for example for the same color).
12071 2006-04-06  Mike Kestner  <mkestner@novell.com>
12073         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
12074         Also remove an unused private field on the collection. Fixes #77972.
12076 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
12078         * ThemeNice.cs: Added ToolBar drawing code
12080 2006-04-06  Mike Kestner  <mkestner@novell.com>
12082         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
12083         I'm assuming that means we need to look up the toplevel for the
12084         provided control. Fixes the crash trace in #77911 but exposes another
12085         crash in some strange reflection usage in NDocGui.
12087 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
12089         * ThemeNice.cs: Gave it a little silver touch and added Images
12090           method
12091         * FontDialog.cs: FontDialog is not resizable
12092         * FileDialg.cs: Added SizeGripStyle.Show
12094 2006-04-05  Jackson Harper  <jackson@ximian.com>
12096         * KeyboardLayouts.cs: Remove warning.
12098 2006-04-05  Jackson Harper  <jackson@ximian.com>
12100         * Control.cs: Enable OnPaintInternal so we can use it for drawing
12101         all of our controls instead of Paint +=.
12102         * ListBox.cs:
12103         * ListView.cs:
12104         * MenuAPI.cs:
12105         * MessageBox.cs:
12106         * NotifyIcon.cs:
12107         * ProgressBar.cs:
12108         * ScrollBar.cs:
12109         * Splitter.cs:
12110         * StatusBar.cs:
12111         * TabControl.cs:
12112         * TextBoxBase.cs:
12113         * ToolBar.cs:
12114         * TrackBar.cs:
12115         * UpDownBase.cs:
12116         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
12117         use OnPaintInternal. Remove Width/Height and Visible checks in
12118         paint handler, this is done at a higher level now.
12119         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
12120         * PaintEventArgs.cs: Add a handled flag so controls that don't
12121         want anymore painting after OnPaintInternal can make sure OnPaint
12122         isn't called.
12124 2006-04-05  Mike Kestner  <mkestner@novell.com>
12126         * Form.cs: fix the menu WndProc hacks to respect the native enabled
12127         state of the form, so that we don't process events when Modal dialogs
12128         are up. Fixes #77922.
12130 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
12132         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
12133           checking is done.
12135 2006-04-05  Mike Kestner  <mkestner@novell.com>
12137         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
12139 2006-04-05  Mike Kestner  <mkestner@novell.com>
12141         * ListView.cs (HeaderMouseMove): null guarding for the over column
12142         when setting up the drag_to_index.  Fixes #78015.
12144 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
12146         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
12147           in the taskbar. Transient windows seem to accomplish that.
12149 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
12151         * Form.cs:
12152           - Re-enabled CreateParams.X/Y code for FormStartPosition
12153           - Added code for manual placement when creating the Control
12154           - Incomplete patch to treat MDI forms differently when
12155             setting the ClientSizeCore. (Still need to figure out handling
12156             x/y coords there)
12157         * XplatUIX11.cs:
12158           - When we're explicitly setting the X/Y position of a non-Child
12159             window, let the WM know. Metacity really wants this.
12161 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
12163         * ThemeNice.cs: Added CPDrawButton
12165 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
12167         * ThemeNice.cs: Changed the color for focused buttons and activated
12168           the arrows for small scroll buttons.
12170 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
12172         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
12173           anymore. Changed some method modifiers to protected (virtual)
12174         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
12175           changes
12176         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
12177           Updated drawing of menus, buttons and progressbars; added
12178           CPDrawBorder3D 
12180 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12182         * ImageListStreamer.cs: implemented serialization/deserialization
12183         of the images.
12185 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
12187         * ThemeWin32Classic.cs:
12188           - Removed all the DrawFrameControl stuff; CPDrawButton,
12189             CPDrawCheckBox and CPDrawRadioButton are now handled directly
12190             inside the methods
12191           - Updated and corrected the drawing code of CPDrawButton,
12192             CPDrawCheckBox and CPDrawRadioButton to better match ms
12193           - Updated theme checkbox and radiobutton code to use the CP*
12194             methods
12196 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
12198         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
12199           bug is fixed
12201 2006-03-31  Jackson Harper  <jackson@ximian.com>
12203         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
12204         sometimes.
12205         * UpDownBase.cs: Don't CreateGraphics manually, use a
12206         Refresh. Ideally we would invalidate the correct areas here.
12208 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
12210         * XplatUIX11.cs: 
12211           - We now track the mapping state of windows. If a window (or 
12212             one of it's parents) is not mapped we no longer permit
12213             WM_PAINT messages to be generated since we'd otherwise get 
12214             lots of BadMatch X errors. Jackson did all the work figuring
12215             out the problem.
12216           - Destroying the caret if the window it's contained in is 
12217             destroyed. Can't use regular DestroyCaret method since it
12218             might fall into a drawing function (trying to remove the
12219             caret) and with that generate new BadMatch errors. Again,
12220             Jackson tracked this down.
12221           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
12222             make sure we send the messages to all windows. (The old code
12223             would send the WM_DESTROY to the window, and then all child
12224             windows would be 'gone' because the WM_DESTROY handle lookup
12225             would no longer find the destroyed window)
12226         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
12227         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
12229 2006-03-31  Jackson Harper  <jackson@ximian.com>
12231         * ScrollableControl.cs: Dont recalc if we are not visible.
12233 2006-03-31  Mike Kestner  <mkestner@novell.com>
12235         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
12236         the visibility branch.
12238 2006-03-31  Jackson Harper  <jackson@ximian.com>
12240         * ScrollBar.cs: Cap values when incrementing/decrementing.
12242 2006-03-31  Mike Kestner  <mkestner@novell.com>
12244         * MenuAPI.cs: setup menu.tracker for popup/context menus.
12245         * ToolTip.cs: guard against timer expirations with no active control.
12246         Not sure why it happened.
12248 2006-03-31  Mike Kestner  <mkestner@novell.com>
12250         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
12251         text.
12252         * ToolTip.cs: Position the tooltip based on where the cursor is at
12253         popup time, not at MouseEnter time.  Add a Down state so that we don't
12254         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
12255         positioning offset. Lookup DisplaySize at positioning time, since it
12256         can theoretically change during invocation.
12257         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
12258         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
12260 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
12262         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
12263           Fixes behaviour when the Text property of the box is String.Empty
12265 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
12267         * XplatUIX11.cs: Only send mouseleave for our client windows, not
12268           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
12269           a window)
12271 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
12273         * FileDialog.cs: Visual enhancement for the popup buttons in 
12274           PopupButtonPanel
12276 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
12278         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
12279           code
12281 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
12283         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
12284           highlighted menu items to match ms
12286 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
12288         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
12290 2006-03-30  Mike Kestner  <mkestner@novell.com>
12292         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
12293         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
12294         go active to account for HotLight to Selected transition.
12295         * MenuItem.cs: add internal Selected prop. Fill out the Status
12296         property by calculating it from item info. Add HotLight,
12297         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
12299 2006-03-30  Mike Kestner  <mkestner@novell.com>
12301         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
12303 2006-03-29  Jackson Harper  <jackson@ximian.com>
12305         * Form.cs: Implement TODO.
12307 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
12309         * PrintPreviewDialog.cs: Implemented missing methods and events; still
12310           missing proper dialog setup in the constructor
12312 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
12314         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
12315         * Control.cs:
12316           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
12317           - Fixed ResetBindings and removed TODO
12318           - Added check for cross-thread calls to get_Handle()
12319           - Added Marshaller attribute for set_Font to satisfy class status
12320         * FontDialog.cs: Removed TODOs that seemed implemented
12321         * UpDownBase.cs: Removed unneeded TODO and Fixme
12322         * MessageBox.cs: Implemented support for Default button and removed TODO
12323         * FileDialog.cs: Removed obsolete TODO
12324         * DomainUpDown.cs: Removed obsolete TODO
12325         * ButtonBase.cs: Removed obsolete TODO
12326         * XplatUIWin32.cs: Removed obsolete TODO
12327         * Form.cs:
12328           - Removed obsolete TODO
12329           - Calling CheckAcceptButton when the acceptbutton is changed to allow
12330             internal status updates
12331           - Making sure the active control is selected when the control is created
12332         * CurrencyManager.cs: Removed obsolete TODO
12334 2006-03-29  Mike Kestner  <mkestner@novell.com>
12336         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
12337         of PrintPreviewDialog and RichTextBox.
12339 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
12341         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
12342           DarkDark, Light and LightLight colors for a specific color
12343         * ThemeWin32Classic.cs:
12344           - Use Button drawing code to draw RadioButtons and CheckBoxes with
12345             Appearance = Button 
12346           - Make use of the new ResPool helper CPColor
12347           - Draw ProgressBar and StatusBar with correct 3D borders
12349 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
12351         * ColorDialog.cs: Return selected color. Fixes bug #77940.
12353 2006-03-28  Mike Kestner  <mkestner@novell.com>
12355         * ListView.cs: fix Icon layout to plan for scrollbar widths when
12356         calculating col/row counts.
12358 2006-03-28  Mike Kestner  <mkestner@novell.com>
12360         * ColumnHeader.cs:
12361         * ListView.cs:
12362         * ListViewItem.cs:
12363         * Menu.cs: 
12364         switch to explicit interface method implementation for some methods
12365         corcompare identifies as inconsistent with MS.
12367 2006-03-28  Mike Kestner  <mkestner@novell.com>
12369         * MainMenu.cs: 
12370         * Menu.cs:
12371         add a few missing methods from the class status output.
12373 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
12375         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
12376           correct.
12378 2006-03-28  Mike Kestner  <mkestner@novell.com>
12380         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
12382 2006-03-27  Mike Kestner  <mkestner@novell.com>
12384         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
12385         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
12387 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
12389         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
12391 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
12393         * ThemeWin32Classic.cs:
12394           - GroupBox: Inserted a little gap between the text and the lines
12395             on the right side
12396           - Made the code in CPDrawBorder3D more readable
12397           - Corrected the drawing location of the up and down arrows in 
12398             CPDrawScrollButton
12400 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
12402         * ControlPaint.cs: Corrected line widths in DrawBorder for
12403           ButtonBorderStyle Inset and Outset
12405 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
12407         * ThemeWin32Classic.cs:
12408           - Rewrote the totally broken CPDrawBorder3D method. That was
12409             one of the main problems for the terrific ThemeWin32Classic
12410             look
12411           - Updated and corrected Button drawing
12412           - Correct the dimensions of the SizeGrip to match ms ones
12413           - Removed a small drawing glitch in DrawComboBoxEditDecorations
12414         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
12415           Border3DStyle.Sunken to match ms.
12417 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
12419         * ThemeWin32Classic.cs: First small part of the "de-uglify
12420           ThemeWin32Classic" effort, SizeGrip
12422 2006-03-24  Jackson Harper  <jackson@ximian.com>
12424         * XplatUIX11.cs: Give a max idle time of one second, this matches
12425         MS and forces an Idle event every second when there are no other
12426         events in the queue.
12428 2006-03-24  Mike Kestner  <mkestner@novell.com>
12430         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
12431         * ListView.Item.cs: fix layout issues with null image lists and images
12432         smaller than checkbox size.
12433         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
12434         mode like MS does.  It's weird, but consistent.  ;-)
12435         Fixes #77890.
12437 2006-03-24  Mike Kestner  <mkestner@novell.com>
12439         * ListView.cs: Scroll wheel support for the item control.  Fixes
12440         #77839.
12442 2006-03-23  Jackson Harper  <jackson@ximian.com>
12444         * ScrollableControl.cs: Special case negative sized areas, not
12445         zero.
12446         * MonthCalendar.cs: Save the rect of the clicked date so we can
12447         use it for invalidation.
12448         - Try to cut down on the number of invalidates
12449         - Invalidate the rect the mouse is over and was over when moving
12450         the mouse, so we get the focus box following the cursor.
12452 2006-03-23  Mike Kestner  <mkestner@novell.com>
12454         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
12455         focus rectangle drawing. Fixes #77835.
12457 2006-03-23  Mike Kestner  <mkestner@novell.com>
12459         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
12460         the if and else if and reverting back to the original == check on the
12461         None conditional.
12463 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
12465         * FontDialog.cs: Update the example panel if the selected index of
12466           the fontListBox changes.
12468 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
12470         * FileDialog.cs: Make FileDialog remember which directory it was in
12471           last in the same execution.
12473 2006-03-22  Mike Kestner  <mkestner@novell.com>
12475         * FileDialog.cs: make the DropDownMenu on the toolbar display
12476         RadioChecks since they are mutually exclusive and that's what MS does.
12478 2006-03-22  Mike Kestner  <mkestner@novell.com>
12480         * Theme.cs: add Color param to CPDrawMenuGlyph.
12481         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
12482         checks and radio marks and arrows are visible on highlighted items.
12483         * ControlPaint.cs: update to use new Theme signature.
12485 2006-03-22  Mike Kestner  <mkestner@novell.com>
12487         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
12488         is active. Fixes #77870.
12490 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
12492         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
12493           to be focused/selected after startup
12495 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
12497         * ColorDialog.cs: 
12498           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
12499             CustomColors and ShowHelp properties
12500           - Some internal rewrites to get better results when using the
12501             ColorMatrix
12503 2006-03-22  Mike Kestner  <mkestner@novell.com>
12505         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
12506         HoverSelection.  Fixes #77836.
12508 2006-03-22  Mike Kestner  <mkestner@novell.com>
12510         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
12511         ToggleButtons.  (De)Sensitize the Back button around a stack count of
12512         1, not 0.  Update ButtonSize based on a pixel count of the win32
12513         control.  Adjust the toolbar size/location for new button size.
12515 2006-03-22  Jackson Harper  <jackson@ximian.com>
12517         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
12518         true.
12519         * ScrollBar.cs: When doing increments and decrements we need to
12520         set the Value property so that ValueChanged gets raised. A
12521         possible optimization here would be to make an internal SetValue
12522         that doesn't invalidate immediately.
12523         * ToolTip.cs: Tooltips get added to their container (when
12524         supplied) so they get disposed when the container is disposed.
12525         - Don't create tooltips for String.Empty. This prevents all these
12526         little 2-3 pixel windows from showing up when running nunit-gui
12527         and driving me mad.
12528         * Form.cs: Don't set topmost when setting the owner if the handles
12529         haven't been created yet.  The topmost set will happen when the
12530         handles are created.
12532 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
12534         * XplatUIX11.cs:
12535           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
12536           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
12537             visible (to allow them to recalculate their sizes)
12539 2006-03-21  Mike Kestner  <mkestner@novell.com>
12541         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
12542         methods. Removed a ton of redundant code.  Still not really happy with
12543         the border rendering, but I think that's mainly because of the
12544         ControlDarkDark being black instead of a dark grey. Depending on how 
12545         close we want to be, we might want to revisit those color choices.
12546         Among the new features added during the refactor were DropDownArrow
12547         pressed rendering, Disabled image rendering.  Proper flat appearance
12548         boundary rendering.  Removed the Divider and Wrapping dividers since I
12549         can't figure out any combination of themes and conditions to make the
12550         MS control draw a horizontal line on a toolbar despite what the
12551         Divider property docs indicate.
12552         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
12553         conditions and incorrect layout.  Updated to coding standard.
12554         * ToolBarButton.cs: refactored layout and positioning code from
12555         ToolBar to here.  Invalidate wherever possible instead of forcing
12556         redraws of the whole toolbar. 
12557         (Known remaining issues: explicit ButtonSize smaller than provided
12558         images.)
12560 2006-03-21  Mike Kestner  <mkestner@novell.com>
12562         * ContextMenu.cs (Show): use the position parameter instead of just
12563         showing at the MousePosition.
12565 2006-03-21  Jackson Harper  <jackson@ximian.com>
12567         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
12568         control handle this.
12569         * TreeNodeCollection.cs: If we are clearing the root node we need
12570         to reset top_node so calcs can still happen.
12571         * ThemeWin32Classic.cs: This is a Flags so we need to check
12572         properly.
12573         
12574 2006-03-21  Jackson Harper  <jackson@ximian.com>
12576         * DataGrid.cs: Create columns when the binding context has been
12577         changed.
12578         * X11Structs.cs: Keysyms are uints.
12579         - Add size to fix build.
12581 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
12583         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
12584           XplatUIOSX.cs: 
12585           - Added ResetMouseHover method to allow controls to retrigger
12586             hovering if they need it more than once
12587           - Implemented MouseHoverTime and MouseHoverSize properties
12588         * Timer.cs: Start() must reset the interval
12589         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
12590           properties
12592 2006-03-21  Jackson Harper  <jackson@ximian.com>
12594         * X11Keyboard.cs: improved layout detection. Move the nonchar
12595         tables into this file.
12596         * KeyboardLayouts.cs: Move the tables into resource files.
12598 2006-03-21  Mike Kestner  <mkestner@novell.com>
12600         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
12602 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
12604         * Mime.cs: Various speed optimizations. Looking up mime types
12605           is now 2 times faster than before
12607 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
12609         * CreateParams.cs: Added internal menu field
12610         * Control.cs: 
12611           - Switched call order for UpdateBounds; now we always call
12612             the one that also takes ClientSize, and we're calculating the 
12613             client size via driver method in the others. The previous
12614             method of tracking client size by difference wasn't working
12615             for forms where even the starting client size wouldn't match
12616             the overall form size (due to borders) (Part of fix for #77729)
12617           - CreateParams(): Do not use parent.Handle unless the handle is
12618             already created. Causes havoc with Nexxia and throws off our
12619             creation of controls
12620         * XplatUIX11.cs:
12621           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
12622           - Switched handling of ConfigureNotify over to new PerformNCCalc 
12623             method (consolidates code)
12624           - Changed RequestNCRecalc to use new PerformNCCalc method
12625           - Added calls to RequestNCRecalc when menus and borders are changed
12626             to allow app to set NC size. (Part of fix for #77729) This matches
12627             when MS send a WM_NCRECALC on Win32 windows.
12628           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
12629             (Part of fix for #77729). This matches what MS does, they also
12630             send that message when the form is made visible.
12631           - XException.GetMessage: Improved usability of X errors by including
12632             a translation of the window into Hwnd and Control class
12633           - Improved debug info for window creation, reparenting and destruction
12634           - Created helper method WindowIsMapped() [Currently not used]
12635         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
12636         * Form.cs:
12637           - CreateParams: Now setting our menu on the new internal menu field
12638           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
12639             avoid calculating the same property twice
12640         * Hwnd.cs:
12641           - Improved usability of ToString() for debugging purposes
12642           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
12643             determine the height of the menu, instead of just the font. This
12644             required to also create a graphics context and to keep a bmp 
12645             around (for performance reasons)
12647 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
12649         * MenuAPI.cs: Added OnMouseUp method
12650         * Form.cs:
12651           - Now remembering the requested client size, avoids size errors
12652           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
12653             instead of base if the menu is active. This is required due to
12654             control now capturing and releasing on down/up and it would
12655             prematurely release our menu capture
12657 2006-03-17  Jackson Harper  <jackson@ximian.com>
12659         * KeyboardLayouts.cs: Add the czech layouts.
12661 2006-03-16  Jackson Harper  <jackson@ximian.com>
12663         * Control.cs: Use the viewport space when sizing not the controls
12664         client size, so things like ScrollableControl that effect the
12665         viewport size (when scrollbars are added) are computed correctly.
12666         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
12667         of ManagerEntrys.
12668         - Handle creating BindingManagers for null data sources.
12669         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
12670         source, otherwise when rows are added they are added to the 'fake'
12671         datasource and we will crash when trying to set the position in
12672         those rows.
12673         - Use Implicit scrollbars on the datagrid so they arent
12674         selectable.
12675         
12676 2006-03-16  Jackson Harper  <jackson@ximian.com>
12678         * Binding.cs:
12679         * InternalWindowManager.cs:
12680         * MdiWindowManager.cs:
12681         * X11Keyboard.cs: I really want Mike to love me again (fix
12682         compiler warnings).
12684 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
12686         * DataGrid.cs:
12687           - OnMouseDown: Switch to editing mode when clicking on the cell
12688                          even if we're clicking on the cell that's currently 
12689                          selected
12690           - ProcessGridKey: Left/Right now wrap like MS.Net does
12691           - ProcessGridKey: Tab now knows to add a new row when tab is
12692                             pressed in the cell of the last column of the 
12693                             last row
12694           - ProcessGridKey: Enter now adds another row  if pressed in the last
12695                             row and selectes the new row, same column cell
12696           - ProcessGridKey: Home/End navigate columns, not rows, like 
12697                             originally implemented
12698           - Broke ProcessKeyPreview code out into an extra Internal method
12699             so it can be called from the edit code
12700         * DataGridTextBox.cs (ProcessKeyMessage):
12701           - Switched to accept Tab keypresses
12702           - Added F2 handling to allow jumping to the end of the edited cell
12703           - Added logic to allow moving caret left/right inside edited cell
12704             and making the edited cell jump when the caret hits cell borders
12705           - Tab and Enter are now passed to the datagrid after being handled
12706         * TextBoxBase.cs:
12707           - Removed capture code now that Control handles it
12708           - set_SelectionStart now ensures caret is visible
12710 2006-03-16  Jackson Harper  <jackson@ximian.com>
12712         * TrackBar.cs: Debackwards the increment/decrement for handling
12713         mouse clicks on the bar with vertical trackbars.
12714         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
12715         bottom to match MS.
12717 2006-03-16  Mike Kestner  <mkestner@novell.com>
12719         * ListView.cs: make shift/ctrl keyboard and mouse selection 
12720         consistent with the MS control. Fix a bug in
12721         SelectedListViewItemCollection.Clear that was pissing me off for the
12722         better part of a day because the collection was being altered
12723         underneath us as we walked the list.
12725 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
12727         * Control.cs: Not sure how we could miss this so long, but it seems
12728           that MS.Net has Capture set all the way from before calling 
12729           OnMouseDown through sending the mouse events until after
12730           OnMouseUp. This will fix DataGrid's selection being set to end
12731           at the location of the MouseUp.
12733 2006-03-15  Jackson Harper  <jackson@ximian.com>
12735         * BindingContext.cs: Check the binding after its added so that it
12736           can initialize the binding managers and hookup to events.
12737         * Binding.cs: Data members seem to sometimes include rows/cols in
12738           the format Row.Column we now take this into account.
12739           - Hookup to the position changed event so we can update the
12740           control when the position has changed in the data set.
12741         * CurrencyManager.cs: Take into account the row/col naming
12742           convention when creating dataset tables.
12743         * BindingContext.cs: Using a newer better way of storing
12744           datasource/datamember pairs.  Hopefully this better matches MS for
12745           looking up binding managers.
12748 2006-03-15  Jackson Harper  <jackson@ximian.com>
12750         * BindingContext.cs: The currency manager needs the data member
12751         name, if the member is a data set we use the name to find the
12752         correct table.
12753         * CurrencyManager.cs: When creating the list prefer an IList over
12754         an IListSource.
12755         - Attempt to create a DataTable from a DataSet (TODO: might need
12756         some better error checking here, although MS doesn't seem to have much)
12757         - If we have a DataTable create a view and use it as our list.
12759 2006-03-15  Mike Kestner  <mkestner@novell.com>
12761         * ListView.cs: keep a matrix of the icon mode layout to facilitate
12762         keyboard navigation. Support Up/Down/Left/Right selection correctly
12763         for all 4 View modes.
12764         * ListViewItem.cs: add internal row/col fields for icon layouts.
12766 2006-03-15  Jackson Harper  <jackson@ximian.com>
12768         * TabControl.cs: Redraw the tabs when we resize so their newly
12769         calculated sizes are drawn on screen.
12770         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
12771         composite characters.
12772         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
12773         - filter events so that composite characters can be created
12774         patches by peter
12775         * X11Structs.cs: Add XIMProperties enum.
12777 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
12779         * Control.cs (BringToFront, SendToBack): Don't use window or handle
12780           unless it's created
12782 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
12784         * Control.cs (PerformLayout): We don't need to consider visiblity
12785           for anchoring, only for docking. This fixes 'whacky' alignment
12786           in listbox and other controls that use implicit scrollbars after
12787           the previous PerformLayout patch
12788         * ListBox.cs: Switched to use implicit scrollbars
12789           
12790 2006-03-14  Mike Kestner  <mkestner@novell.com>
12792         * ToolBar.cs: 
12793         * VScrollBar.cs:
12794         - chain up the "new event" overrides to base and use
12795         OnEvent to raise them.  Part of fix for bug #76509.
12797 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
12799         * FileDialog.cs: Do not select an item in the parent directory
12800           on backspace
12802 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
12804         * Control.cs (PerformLayout): It would seem that we considered
12805           invisible windows for our layout. Not quite the right thing
12806           to do. Now we don't any longer, thereby fixing bug #76889.
12808 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
12810         * Control.cs (CanFocus): I goofed. A control can have focus 
12811           even though it's not selectable. Made it match MS docs.
12813 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
12815         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
12816           center by default (fixes #76895)
12817         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
12818           all uses of Border3DSides.All with the explicit ORd together
12819           Left|Right|Top|Bottom because I assume that nobody was aware 
12820           that All also implies a center fill. Most places I checked had
12821           a fill right above.
12822         * ProgressBarStyle.cs: Added
12824 2006-03-13  Mike Kestner  <mkestner@novell.com>
12826         * ListView.cs: fix breakage in drag shadow header positioning 
12827         from Peter's csc compilation fix.
12829 2006-03-13  Mike Kestner  <mkestner@novell.com>
12831         * ListView.cs: fix NRE produced by backspacing twice in a focused
12832         FileDialog.
12834 2006-03-13  Mike Kestner  <mkestner@novell.com>
12836         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
12838 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
12840         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
12841           be changed
12842         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
12843           the allowed size before making programmatic size changes
12845 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
12847         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
12848           set, metacity is broken and will still use the emty sizes in 
12849           the struct. (Fix for #77089)
12851 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
12853         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
12854           WindowExStyles and marked both enums as Flags
12855         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
12856           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
12857           to match WindowStyles split
12858         * XplatUIX11.cs:
12859           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
12860           - Updated to match WindowStyles split
12861         * XplatUIWin32.cs:
12862           - Fixed FosterParent creation, was using ExStyle on the Style field
12863             (This should help with Popup focus issues)
12864           - Updated to match WindowStyles split
12866 2006-03-13  Jackson Harper  <jackson@ximian.com>
12868         * MdiWindowManager.cs: Use the system menu height. Fixes some
12869         strange sizing issues.
12871 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
12873         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
12874         * TextBoxBase.cs:
12875           - Scroll to caret after inserting text (#77672)
12876           - Make scroll range one pixel higher, fixes off-by-one error (and
12877             makes underlines visible on the last line)
12879 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
12881         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
12882           the keyboard state from being stuck with keys in 'pressed' state when
12883           focus is switched away via keyboard
12884         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
12885           reset the keyboard if no X11 KeyUp events are expected to come
12886         * X11Structs.cs: Switched type of Visible to bool to match driver
12888 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
12890         * TextControl.cs:
12891           - Switched caret to be just 1 pixel wide, matches MS and looks less
12892             clunky
12893           - Moved caret display 1 pixel down from the top of the control
12894             to improve view
12895           - InsertCharAtCharet: Update the selection start if moving the caret
12896             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
12897           - No longer always creating the caret when the caret methods are
12898             called. Only the actual ShowCaret/HideCaret will do that now
12899           - Only setting caret visible if the owner control has focus
12900           - UpdateView: Added invalidation-shortcut logic for center and right 
12901             aligned text. Previously we'd update all according to the left
12902             logic which caused drawing errors. Also fixed height of invalidated
12903             areas, now properly invalidating the whole area (was off-by-one)
12904           - owner_HandleCreated: Always generate the document when the
12905             handle is created; this ensures that 
12906         * TextBoxBase.cs:
12907           - Fixed situation where caret would disappear under the right
12908             window border, also improved scrolling behaviour on left-
12909             aligned textboxes
12910           - Fixed right-aligned textboxes to have a border to the
12911             right instead of the caret being under the right border
12912         * XplatUIX11.cs:
12913           - Switched from 'nested' to simple visible/not visible tracking 
12914             for caret (part of fix for #77671)
12915           - No longer passing through translated FocusIn/FocusOut messages
12916             since we were notifying too often and the wrong windows. Instead
12917             we just notify our focussed window of receiving or loosing focus
12918         * XplatUIWin32.cs: Switched from 'nested' show/hide 
12919           counting for caret to simple visible yes/no behaviour (part of 
12920           fix for #77671)
12922 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
12924         * Mime.cs: Remove debug code...
12926 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
12928         * MimeGenerated.cs: Removed
12929         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
12930           and subclasses) from /usr/(local/)share/mime and
12931           $HOME/.local/share/mime.
12933 2006-03-10  Jackson Harper  <jackson@ximian.com>
12935         * MdiWindowManager.cs: Recalc the NC area when a window is
12936         maximized/restored so that the menu area is drawn on forms that
12937         don't have a menu.
12939 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
12941         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
12942           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
12943           us to force a WM_NCCALCRESIZE message being sent. This is needed
12944           for MDI maximizing.
12946 2006-03-10  Jackson Harper  <jackson@ximian.com>
12948         * Form.cs: We need to use the ActiveMenu when calculating menu
12949         height.
12950         - Fix nullref when the window manager hasn't been created yet.
12951         * Control.cs: Fix nullref when we try to bring a control to the
12952         front that has no parent.
12953         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
12954         height.
12955         - Add a dummy item to the maximized menu so it always has the
12956         correct height. Otherwise when there are no menus we don't get our
12957         icon and buttons.
12958         
12960 2006-03-10  Jackson Harper  <jackson@ximian.com>
12962         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
12963         stuff.
12964         * Form.cs: Make the window_state internal so the window managers
12965         can track it.
12966         - When an MDI child is maximized let its window manager create the
12967         main menu (so it can add its icon).
12968         - Notify the window managers of state changes
12969         - Let the window manager paint its buttons and handle button
12970         clicks on the menu when it is maximized.
12971         * InternalWindowManager.cs: Move the prev_bounds into the mdi
12972         window manager, since tool windows don't use it, only mdi windows.
12973         - Tell the main form that we don't want it to handle NCPAINT
12974         itself to avoid extra painting.
12975         - Handle clicks on a maximized windows menu.
12976         - Handle window state changes
12977         - Handle minimize/maximize clicks correctly by setting the window state.
12978         * MdiWindowManager.cs: Add an icon menu that (the menu you get
12979         when clicking on the forms icon).
12980         - New method to create a forms maximized menu. This is its normal
12981         menu + an icon.
12982         - Handle window state changes.
12983         - Handle sizing of maximized windows.  Maximized windows are just
12984         drawn bigger then the parent visible area. All controls are still
12985         there, they are just outside the visible area (this matches windows).
12986         * MdiClient.cs: No scrollbars when a child window is maximized.
12987         - Let the children windows figure out how big they should be when
12988         sizing maximized windows.
12989         - Implement a version of ArrangeIconicWindows somewhat similar to
12990         Windows version.  There are some little differences, but I don't
12991         think any app will rely on the layout of minimized mdi windows.
12993 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
12995         * Padding.cs: Several fixes to allow compiling with csc 2.0
12997 2006-03-09  Jackson Harper  <jackson@ximian.com>
12999         * Menu.cs:
13000         * MenuItem.cs: Cheap hack so we can add items to the list without
13001         the events being raised.  This allows adding mdi items during
13002         drawing. TODO: Should probably find a better time to add the items.
13004 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
13006         * ThemeWin32Classic.cs:
13007           - CheckBox_DrawText: Added logic to not wrap if not enough space
13008             is available (Fix for bug #77727)
13009           - RadioButton_DrawText: Added logic not to wrap if not enough
13010             space is available (Fix for bug #77727). Also removed some
13011             duplicate code, DrawString always drawing the regular text
13012             before hitting the if statement.
13014 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
13016         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
13018 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
13020         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
13021         * ContainerControl.cs: Partial implementation of some 2.0 scaling
13022           methods. Moved the new 2.0 properties into alphabetical order with
13023           other properties and added MonoTODO tags
13025 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
13027         * AutoScaleMode.cs: Added. Fix build.
13029 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
13031         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
13032           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
13033           and was requiring premature handle creation for calls from above
13034         * Form.cs, Control.cs: Removed handle arguments from calls to
13035           CalculateClientRect()
13037 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
13039         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
13040           drag_column.column_rect is MarshalByRef and can't be used that way
13042 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
13044         * AxHost.cs: Added deserialization constructor for 
13045           AxHost+State (fixes 77743)
13047 2006-03-09  Mike Kestner  <mkestner@novell.com>
13049         * ListView.cs: 
13050         - Added column drag reordering for details view.
13051         - fixed behavior when mouse is dragged off column and
13052         AllowColumnReorder is false.
13053         * ColumnHeader.cs: clone the format too in Clone.
13054         * Theme.cs: add DrawListViewHeaderDragDetails method.
13055         * ThemeWin32Classic.cs:
13056         - impl new method for drawing drag column shadows and targets.
13057         - support column offset for details mode in DrawListViewItem.
13059 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
13061         * TextControl.cs: Reset the char_count when the document is cleared
13062           (Fixes bug reported on mono-winforms mailing list)
13064 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
13066         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
13067           of calling base we simply process the key ourselves, since both
13068           DefWindowProc and the handled method would set m.Result. 
13069           (Fixes #77732)
13071 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
13073         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
13074           method also moves the window; instead implemented a copy of
13075           Control.ScaleCore (Part of fix for #77456)
13076         * TextBoxBase.cs: 
13077           - Created new CreateGraphicsInternal method to allow providing
13078             a graphics context when no handle is created without triggering
13079             handle creation. (Part of fix for #77456)
13080           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
13081         * TextControl.cs: 
13082           - Switched Constructor to require TextBoxBase instead of Control (to
13083             allow uncast access to CreateGraphicsInternal)
13084           - Safeguarded use of owner.Handle property. No longer accessing it
13085             unless the handle is already created.
13086           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
13087           - Now triggering a recalc when owning control becomes visible
13088         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
13089           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
13090           premature handle creation (Part of fix for #77456)
13091         * Control.cs:
13092           - We now only destroy our double-buffering buffers when the
13093             control is resized or disposed, but not when visibility
13094             changes. (The code even re-created them twice every time)
13095           - Now requiring a redraw of the buffer on visibility changes
13096             (fixes bug 77654 part 2)
13097           - Not passing OnParentVisibleChanged up unless the control
13098             is visible
13099           - CanFocus: Fixed to match MS documentation
13100           - Focus: Fixed to return actual focus state and to check if
13101             setting focus is legal before setting it
13103 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
13105         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
13106           when to draw focus rectangle by looking at parent focus and
13107           selected state instead. This fixes TabPages on Linux sometimes
13108           having none or multiple focus rectangles.
13109         * XplatUIX11.cs (SetFocus): 
13110           - Don't set the focus if the same window already has focus
13111           - Use SendMessage instead of PostMessage (like it's Win32
13112             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
13113             to match MS behaviour
13114         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
13115           are not selectable.
13117 2006-03-07  Jackson Harper  <jackson@ximian.com>
13119         * PictureBox.cs: Revert line I accidently committed last week.
13121 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
13123         * Control.cs: 
13124           - Added new IsRecreating and ParentIsRecreating properties to
13125             allow testing if RecreateHandle has been called on ourselves
13126             or one of our parents
13127           - WndProc(WM_DESTROY): If our control handle is being recreated
13128             we immediately need to create the handle when receiving the
13129             destroy, that way our child windows find a valid parent handle
13130             when they themselves are being recreated upon WM_DESTROY receipt
13131             (fix for bug #77654 part 1)
13132         * XplatUIX11.cs:
13133           - DestroyWindow: WM_DESTROY must be sent to our own window before
13134             notifying any child windows. MS documents that child windows
13135             are still valid when WM_DESTROY is received. (Control now relies on
13136             this behaviour)
13137           - Added some fine-grain debug options
13139 2006-03-06  Jackson Harper  <jackson@ximian.com>
13141         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
13142         box and base calculations off this.
13143         * MdiChildContext.cs:
13144         * MdiWindowManager.cs: Don't need to ensure scrollbars here
13145         anymore.
13146         
13147 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
13149         * Splitter.cs: In situations where the affected control is added
13150           to the parent's control list after the splitter, we would not
13151           populate affected. Now we try populating it on mousedown, if
13152           it's not already set, and force it to be re-set whenever our
13153           parent changes.
13155 2006-03-03  Matt Hargett  <matt@use.net>
13157         * Control.cs: implement Control.Padding
13158         * Padding.cs: -Padding.All returns -1 when constructing with the
13159         implicit default ctor
13160         -Padding.ToString() matches MS.NET
13161         * ContainerControl.cs: implement
13162         ContainerControl.AutoScaleDimensions
13163         * ListControl.cs: implement ListControl.FormattingEnabled
13164         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
13165         * ButtonBase.cs:
13166         * TabPage.cs: Implement UseVisualStyleBackColor.
13167         * PictureBox.cs: Implement PictureBox.InitialImage.
13169 2006-03-03  Mike Kestner  <mkestner@novell.com>
13171         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
13172         event declarations to proxy to base event.
13173         * ListViewItem.cs: update to use ItemControl.
13174         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
13175         * ThemeWin32Classic.cs: update to new ListView theme API and fix
13176         column header label rendering for 0 width columns.
13178 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
13180         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
13181           that causes the control to be created. Fixes #77476.
13183 2006-03-02  Jackson Harper  <jackson@ximian.com>
13185         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
13186         expose_pending.
13188 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
13190         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
13191           passed in for the EventArgs (fixes #77690)
13193 2006-03-01  Jackson Harper  <jackson@ximian.com>
13195         * ScrollBar.cs: Refresh afterbeing resized.
13197 2006-02-28  Mike Kestner  <mkestner@novell.com>
13199         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
13200         Clean up a tracker compile warning.
13201         * MenuItem.cs: add internal PerformPopup method.
13202         [Fixes #77457]
13204 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
13206         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
13207           implicit expose) when the text is set to null
13209 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
13211         * RichTextBox.cs (FlushText): When newline is true, we always
13212           need to split the line, even if no text is on it and we may
13213           never eat newlines. (Fixes #77669)
13215 2006-02-28  Mike Kestner  <mkestner@novell.com>
13217         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
13218         and set Selected instead.
13219         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
13220         collections.
13222 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
13224         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
13226 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
13228         * FontDialog.cs:
13229           - Got rid of the panel. All controls are now directly added to
13230             the dialog form
13231           - It is now possible to set a font with the Font property
13232           - MinSize and MaxSize property do now what they should
13233           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
13234           - Searching and selecting a font with the font textbox works now,
13235             the same applies to the style and size textbox
13236           - Draw the correct 3D border in the example panel
13237           - Fixed a little mem leak (unused fonts didn't get disposed)
13238           - Many other internal updates/rewrites...
13239           - Fix typo
13241 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
13243         * TextControl.cs: 
13244           - InsertRTFFromStream: Added 'number of characters inserted' argument
13245           - set_SelectedRTF: Now using the number of characters to calculate
13246             the new location for the selection and cursor (x/y cannot be used
13247             due to potentially already wrapped text)
13249 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
13251         * TextControl.cs: Added property and implemented means to allow 
13252           disabling recalculation of a document (can be used to speed up
13253           multiple inserts and is needed to make RTF inserts predictable, see
13254           bug #77659)
13255         * RichTextBox.cs: Using the new NoRecalc property of Document to
13256           keep x/y insert locations predictable. Also makes it faster inserting
13257           large chunks of RTF
13259 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
13261         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
13262           it's easier for a child control to handle the other messages without
13263           having to duplicate the special functionality
13264         * TextBoxBase.cs
13265           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
13266             code to handle processing the key ourselves, in order to get 
13267             access to the result of KeyEventArgs.Handled. We now only call 
13268             ProcessKey if they key hasn't been handled already. Fixes #77526.
13269           - set_Text: If null or empty string is given, just clear the 
13270             document. Fixes part of #77526
13272 2006-02-27  Jackson Harper  <jackson@ximian.com>
13274         * SizeGrip.cs: Paint the background color before painting the grip
13275         so things look right.
13276         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
13278 2006-02-27  Mike Kestner  <mkestner@novell.com>
13280         * ListView.cs:
13281           - Restructure layout and invalidation model to remove a ton of
13282           flicker from the control and speed up performance in general.
13283           - Add manual column resize, flickers like crazy, but I already have
13284           some ideas on how I'll fix that. (#76822)
13285           - Merge the three Icon-based views into a single layout method.
13286           - Move item selection interaction logic from the item since 
13287           interaction with the collections is more appropriate to the view.
13288           - Deselection on non-item clicks.
13289         * ListViewItem.cs:
13290           - Encapsulate most of the layout. Add some internal props to trigger
13291           layout.  Move to a model where Items invalidate themselves instead
13292           of just invalidating the whole control every time something changes.
13293           - Invalidate on Text/Caption changes.
13294           - switch to an offset based layout model to avoid having to absolute
13295           position every element on item moves.
13296           - correct checkbox layout to conform to MS layout.
13297         * ThemeWin32Classic.cs:
13298           - refactor some column header drawing code.
13299           - fix string justification for column headers (#76821)
13300           - make SmallIcon labels top justified for compat with MS impl.
13301         * ThemeClearlooks.cs:
13302           - adjust to new ListViewItem internal checkbox bounds api.
13304 2006-02-27  Jackson Harper  <jackson@ximian.com>
13306         * Control.cs:  Change where implicit controls fall in the zorder.
13307         They are now on top of all children.
13308         - Synced AddImplicit code with Add
13309         - Removed unused enumerator.
13310         * SizeGrip.cs: Remove the TODO as its been TODONE.
13312 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
13314         * TextControl.cs(Insert): Combine the last lines unless the insertion
13315           string ends with \n\n, otherwise we leave one line too many (Fixes
13316           something I noticed with the testapp for #77526; the bug itself was
13317           already fixed in the previous checkin)
13319 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
13321         * RichTextBox.cs:
13322           - SelectionColor and SelectionFont methods no longer set absolute
13323             styles. Instead, the keep font or color respectively (This 
13324             resolves a long-standing FIXME in the code)
13325           - When flushing RTF text, the insert code now considers text trailing
13326             behind the insertion point (Fixes the bug where when replacing
13327             the selected text via SelectedRTF the remainder of the line behind 
13328             the selection would stay on the first insertion line)
13329         * TextBoxBase.cs:
13330           - AppendText now updates the selection points after inserting text
13331           - AppendText now ensures that the last tag (sometimes 0-length) of
13332             the document is used for the style information (Fixes part of 
13333             bug #77220)
13334         * TextControl.cs:
13335           - Created new FontDefiniton class to allow describing partial style
13336             changes
13337           - StreamLine() now takes a lines argument, to allow it to decide
13338             whether an encountered zero-length tag is the last in the document
13339             (which must be kept to not loose the font/color contained in it,
13340             for later appends)
13341           - Created Combine() and Split() methods for Marker structs, to 
13342             support marker updates due to reformatted documents (soft line
13343             wraps)
13344           - Implemented Document.CaretTag setter
13345           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
13346             of the last line (Not the cause, but also exposed by bug #77220)
13347           - Added LineTag argument to InsertString method, to allow callers
13348             to force a certain tag to be used (required to force use of the
13349             trailing zero-length tag of a document)
13350           - Now updating markers in Combine(), to avoid stale tag markers
13351           - Added some method descriptions to aid maintenance
13352           - Implemented new FormatText concept, allowing additive/subtractive
13353             formatting by only specifying the components that are to be 
13354             changed. This was needed for resolving the RTB.SelectedColor/
13355             RTB.SelectedFont fixmes
13356           - Added Break() support method to allow breaking up linetags (used
13357             for partial formatting)
13358           - Added GenerateTextFormat() method. It is used for partial 
13359             formatting and allows to generate a full font/color from given
13360             attributes and an existing tag.
13362 2006-02-26  Jackson Harper  <jackson@ximian.com>
13364         * XplatUIX11.cs:  Use the correct caption height.
13365         - Translate hittest coordinates to screen coords to match MS.
13366         * XplatUIWin32.cs: When we create MDI windows we need to reset
13367         some of the style flags, so we get a nice blank window, and can
13368         draw all the decorations ourselves.
13369         - Set a clipping rectangle on the non client paint event, the
13370         window manager drawing code needs one.
13371         * Form.cs: The window manager needs to know when the window state
13372         has been updated.
13373         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
13374         don't need to factor in border and title sizes in these
13375         methods. TODO: Remove the args and fix the call points.
13376         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
13377         properly.
13378         - Let the driver set the cursors.
13379         - Improve active window handling
13380         - Correct sizes for title bars and buttons.
13381         - Match MS drawing better
13382         * MdiWindowManager.cs: We don't need to handle border style
13383         updates specially anymore.
13384         - Check for scrollbars when windows are done moving
13385         - Handle Active properly.
13386         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
13387         correctly. I am spewing the exception though, so we don't hide the
13388         bugs.
13389         
13390 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
13392         * DataGridViewRowPostPaintEventArgs.cs,
13393           DataGridViewCellPaintingEventArgs.cs,
13394           DataGridViewRowCollection.cs,
13395           DataGridViewRowPrePaintEventArgs.cs,
13396           DataGridViewCell.cs: Clear a few warnings and implement a few
13397           exceptions that should be thrown.
13399 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
13401         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
13402           'inheriting' our parent's (non-default) cursor. (Part of
13403            the fix for #77479)
13405 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
13407         * XplatUIX11.cs: Fixed cast to make csc happy
13409 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
13411         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
13412           it's for the client area (part of fix for #77479 and needed
13413           for MDI window cursor handling)
13414         * XplatUIX11.cs
13415           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
13416             the appropriate default cursors and also passing the message
13417             up the parent chain 
13418           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
13419             for non-client areas
13421 2006-02-15  Jackson Harper  <jackson@ximian.com>
13423         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
13424         is a real MDI window
13426 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
13428         * X11DesktopColors.cs: Instead of checking the desktop session
13429           string for "KDE" check if it starts with "KDE"
13431 2006-02-10  Jackson Harper  <jackson@ximian.com>
13433         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
13434         systems).
13436 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
13438         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
13439           errors
13440         * ColorDialog.cs:
13441           - Got rid of the panel. All controls are now directly added to
13442             the dialog form
13443           - Changed to mono coding style
13445 2006-02-10  Jackson Harper  <jackson@ximian.com>
13447         * InternalWindowManager.cs: We don't need the set visibility to
13448         false hack anymore now that peter has written beautiful shutdown
13449         code.
13451 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
13453         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
13454           where already explicitly destroyed
13456 2006-02-10  Jackson Harper  <jackson@ximian.com>
13458         * MdiClient.cs: Handle the case where windows are too high or to
13459         the left and we need scrollbars.
13461 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
13463         * MimeIcon.cs: Added some icons
13464         * FileDialog.cs:
13465           - Fixed bug #77477
13466           - Got rid of the panel. All controls are now directly added to
13467             the dialog form
13468           - Changed to mono coding style
13469           - On Linux "My Computer" and "My Network" will now show some
13470             more usefull information. A new class, MasterMount, gathers
13471             this information from /proc/mount. Updated MWFFileView to make
13472             use of this information
13473           - Fixed a bug that caused FileDialog to crash when
13474             ".recently_used" file had a zero size
13475           - FilterIndex does now what it should
13476           - Some Refactoring
13477         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
13478             FileDialog changes
13480 2006-02-09  Jackson Harper  <jackson@ximian.com>
13482         * ComboBox.cs: Don't touch if null.
13484 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
13486         * Cursor.cs: 64bit safeness fix
13487         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
13489 2006-02-09  Jackson Harper  <jackson@ximian.com>
13491         * Form.cs: If a form is made into an MDI form update the styles so
13492         all the props can get set correctly.
13493         - Kill the mdi_container when we dont need it anymore.
13494         * InternalWindowManager.cs: Add missing NOT
13496 2006-02-08  Jackson Harper  <jackson@ximian.com>
13498         * InternalWindowManager.cs: Respek clipping when drawing MDi
13499         decorations.
13501 2006-02-08  Jackson Harper  <jackson@ximian.com>
13503         * Hwnd.cs: Add bits to track non client expose events.
13504         * XplatUIX11.cs: Track non client expose events on the hwnd. This
13505         gives us a proper invalid rect and will allow for some nice
13506         optimizations with NC client drawing
13507         - MDI windows are children windows, so move their style handling
13508         into the child window block.
13509         * InternalWindowManager.cs: Remove a state reset that was
13510         getting invoked at the wrong time. Fixes managed windows getting
13511         into a 'stuck' captured state.
13513 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
13515         * TextControl.cs (Document.ctor): Now initializing 
13516           selection_anchor. Fixes #77493
13518 2006-02-07  Jackson Harper  <jackson@ximian.com>
13520         * TrackBar.cs: The increment/decrements were backwards.
13522 2006-02-07  Mike Kestner  <mkestner@novell.com>
13524         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
13525         to the instance itself.
13527 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
13529         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
13530           on ulongs and pointers, the size differs between 32bit and 64bit
13531           systems. 
13533 2006-02-07  Mike Kestner  <mkestner@novell.com>
13535         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
13536         for 64 bit platforms to work around a metacity bug. 
13538 2006-02-07  Jackson Harper  <jackson@ximian.com>
13540         * TrackBar.cs: Process the input keys we need, and hookup to
13541         KeyDown instead of using WndProc, so we get key messages.
13543 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
13545         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
13546           machine we're on. 
13547         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
13548           we need to translate the XdndVersion atoms array before sending it
13550 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
13552         * XplatUIX11.cs: 
13553           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
13554             number of bits for the property, not the number of bytes. The
13555             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
13556             but would not crash since it specified 8 bits instead of 4 bits)
13557           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
13558             defined as XID -> long in the C headers)
13559           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
13560             references since those are now IntPtr to begin with
13561           - Switched all Atom.XXX 'int' casts to IntPtr casts
13562           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
13563           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
13564           - Added XChangeActivePointerGrab DllImport (for X11DnD)
13565         * X11Structs.cs:
13566           - Changed 'int' type for Atoms in XEvent structures to IntPtr
13567           - Changed atom in HoverStruct to be IntPtr
13568         * X11DnD.cs:
13569           - Removed local DllImports, switched code to use those from XplatUIX11
13570           - Removed/fixed casts related to the switch of Atom to be a IntPtr
13572 2006-02-06  Mike Kestner  <mkestner@novell.com>
13574         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
13575         method signatures in the import region.  There may still be some
13576         lingering struct marshaling issues, as I didn't drill down into those.
13577         Yet.
13579 2006-02-06  Jackson Harper  <jackson@ximian.com>
13581         * ComboBox.cs: Dont manually set the top_item, this is computed
13582         when the scrollbar position is set.
13584 2006-02-06  Mike Kestner  <mkestner@novell.com>
13586         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
13587         startup crashes on amd64.  There's other fixes needed.  All pinvoke
13588         usage of Atom needs to be mapped to IntPtr for example.  And there are
13589         likely other int/long issues to be addressed.
13591 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
13593         * FileDialog.cs: One more...
13595 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
13597         * FileDialog.cs: Next try
13599 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
13601         * FileDialog.cs: First part of fix for #77464
13603 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
13605         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
13606           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
13607           AcceptButton border drawing.
13609 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
13611         * Form.cs: Moved positioning of form after auto scaling is applied,
13612           otherwise it would possibly use wrong form size.
13614 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
13616         * Control.cs (RecreateHandle): No need to re-create any child
13617           controls, the child windows will get destroyed automatically by
13618           the windowing system or driver, and re-created when the handle
13619           is being accessed the first time. Fixes #77456
13620         * Form.cs: No longer setting the form to closing if the handle is 
13621           being recreated. This seems like the right thing to do, don't
13622           have a bug or testcase for this, though.
13624 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
13626         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
13627           controls to avoid unwanted side effects
13629 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
13631         * Control.cs: 
13632           - ScaleCore needs to scale the bounds, not the ClientSize of the 
13633             control. Fixes #77416.
13634           - DefaultSize is 0,0 for control
13635         * TextBoxBase.cs: 
13636           - DefaultSize is 100, 20
13637           - SetBoundsCore: Now enforcing the height, no matter if the provided
13638             height is more or less than the preferred one, as long as AutoSize
13639             is on
13640         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
13642 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
13644         * Control.cs:
13645           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
13646             call unless both performLayout is true *and* we have a pending
13647             layout change
13648           - ResumeLayout: MS does not completely nest Suspend and Resume,
13649             they bottom out at 0, fixed our code to match that.
13650           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
13651             SetBoundsCore, we were updating even when we shouldn't. This fixes
13652             swf-anchors mis-anchoring when resizing the app fast and lots.
13653           - UpdateDistances: Now only setting the left and top distance if 
13654             we have a parent and are not suspended, this is based on
13655             a suggestion by Don Edvaldson in bug #77355.
13656           - OnVisibleChanged: Fixed logic when to create the control. We may
13657             not create the control if we have no parent or if it's not visible;
13658             switched to using Visible property instead of is_visible field 
13659             since the property also considers parent states. This fixes a bug
13660             when starting Paint.Net
13662 2006-02-02  Jackson Harper  <jackson@ximian.com>
13664         * Form.cs: If the forms handle hasn't been created yet don't call
13665         into xplatui to make it top most, just set the topmost flag on the
13666         form in CreateParams
13667         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
13669 2006-02-01  Jackson Harper  <jackson@ximian.com>
13671         * ScrollableControl.cs: Refactored the Recalculate method a
13672         little, this wasn't handling all the variants of bottom and right
13673         bars needed to be added and added/removed based on their
13674         counterparts being added/removed (which changes the drawable
13675         size). Also we special case client widths and heights of 0 and
13676         don't add the scrollbar for those.
13678 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
13680         * XplatUIX11.cs: 
13681           - Added method to get AbsoluteGeometry(); currently unused, but might
13682             be used in the future, if we try again to figure out toplevel
13683             coordinates with some more crappy window managers
13684           - Added FrameExtents() method to retrieve the WM set decoration size
13685           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
13686             to deal with at least KDE, FVWM and metacity (Fixes #77092)
13687         * Hwnd.cs: 
13688           - Added whacky_wm tracking var for metacity
13689           - Added logic to have default menu height if the actual menu height
13690             has not yet been calculated (part of fix for #77426)
13691         * Form.cs: Keep track whether client size has been set and re-set 
13692           it if a menu is added/removed afterwards (Fixes #77426)
13694 2006-01-31  Jackson Harper  <jackson@ximian.com>
13696         * Control.cs: When a new Site is set on the component attempt to
13697         pull the AmbientProperties from it.
13699 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
13701         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
13702           in the background of the owning form. Fixes #77332
13704 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
13706         * MimeIcon.cs: Fix for #77409
13708 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
13710         * XplatUIX11GTK.cs: Initial import
13712 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
13714         * FixedSizeTextBox: fixes class signature
13716 2006-01-30  Jackson Harper  <jackson@ximian.com>
13718         * FixedSizeTextBox.cs: New internal class that represents a
13719         textBox that will not be scaled.
13720         * TreeView.cs:
13721         * ComboBox.cs:
13722         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
13723         standard TextBox.
13724                 
13725 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
13727         * XplatUIX11.cs: Retrieve default screen number instead of
13728           assuming 0. Attempted fix for #77318
13730 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
13732         * XplatUIWin32.cs: 
13733           - GetWindowPos: When a window is parented by FosterParent, use 
13734             the desktop instead of FosterParent as the base to get coordinates
13735           - CreateWindow: Don't make FosterParent the parent window for Popups
13736             if we don't want a taskbar entry, Popups automatically don't get one
13737         * Hwnd.cs: Need to call remove to actually remove the key from the
13738           hash table
13740 2006-01-30  Mike Kestner  <mkestner@novell.com>
13742         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
13744 2006-01-30  Jackson Harper  <jackson@ximian.com>
13746         * TreeView.cs:
13747         * TreeNode.cs: Raise events no matter how the treenode is
13748         checked. Patch by Don Edvalson.
13750 2006-01-30  Jackson Harper  <jackson@ximian.com>
13752         * TreeNode.cs: Signature fix.
13754 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
13756         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
13758 2006-01-20  Mike Kestner  <mkestner@novell.com>
13760         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
13761         event forwarding when menus are active.
13762         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
13763         Most of the patch is pdb's with a little rework.
13765 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
13767         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
13768           Removed GetMenuDC and ReleaseMenuDC methods; replaced
13769           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
13770         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
13771         * InternalWindowManager.cs: Added use of PaintEventStart/End to
13772           handling of WM_NCPAINT message, now passing the PaintEventArgs to
13773           the PaintWindowDecorations method
13774         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
13775         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
13776         * MenuAPI.cs: Made tracker window invisible
13777         * XplatUIWin32.cs:
13778           - Removed GetMenuDC and ReleaseMenuDC methods
13779           - Implemented the client=false path for PaintEventStart and
13780             PaintEventEnd
13782 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
13784         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
13785         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
13786           styles
13787         * Form.cs: 
13788           - MaximizeBox, MinimizeBox: Recreate the handle when setting
13789             the style
13790           - CreateParams: Reworked the styles to match MS look'n'feel,
13791             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
13792             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
13794 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
13796         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
13797           window is not mapped, since otherwise every form that's being 
13798           created is considered minimized, which is wrong.
13799         * Form.cs: Catching the exception and returning our internal value
13800           instead
13802 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
13804         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
13805           SetWindowMinMax() to have means to tell the driver about the minimum,
13806           maximum and maximized state window sizes. (Part of the fix for #76485)
13807         * Form.cs:
13808           - Implemented tracking of minimum and maximum window size, now calling
13809             new SetWindowMinMax() driver method to tell the driver (Part of the
13810             fix for #76485)
13811           - Finished handling of WM_GETMINMAXINFO method, now setting all values
13812             (Completes fix for #76485)
13813           - Calling new SetWindowMinMax driver method when the handle for a 
13814             form is created, to make sure the driver knows about it even if
13815             the values have been set before the window was created
13816           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
13817             to avoid messing up our anchoring calculations (partial fix
13818             for #77355)
13819         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
13820         * XplatUIX11.cs:
13821           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
13822           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
13823             (and presumably other freedesktop.org compliant WMs). Left the
13824             assumption unmapped=minimized, needed for SetVisible to work.
13825           - Now setting the window state when creating windows
13826           - Fixed SetVisible to consider/set the window state when mapping
13827             a Form. We cannot set the state before it's mapped, and we cannot
13828             use Form.WindowState once it's mapped (since it would ask the
13829             driver and get 'normal'. Therefore, we grab the state before
13830             mapping, map, and then set state.
13831           - Implmemented SetWindowMinMax method; Metacity does not seem to
13832             honor the ZoomHints, though.
13833         * XplatUIWin32.cs:
13834           - Removed MINMAXINFO (moved to XplatUIStructs)
13835           - Added SetWindowMinMax stub (on Win32 the only way to set that
13836             information is in response to the WM_GETMINMAXINFO message, which
13837             is handled in Form.cs)
13838           - Added logic to SetVisible to set the proper window state when a 
13839             form is made visible (fixes #75720)
13841 2006-01-26  Jackson Harper  <jackson@ximian.com>
13843         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
13844         same way we handle them with Invoke.
13846 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
13848         * Form.cs:
13849           - Added tracking of window state so CreateParams can return
13850             the appropriate style
13851           - Moved setting of WS_CAPTION style in CreateParams to allow
13852             styles without caption
13853         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
13854           control if the TextBox property is accessed. Fixes #77345
13855         * Control.cs:
13856           - get_Created: now uses is_disposed and is_created to determine
13857             return value (suggested by Jackson)
13858           - CreateHandle: No longer exits if the handle is being recreated
13859           - RecreateHandle: If the handle is not yet created call the 
13860             appropriate method to create either control or handle. If the
13861             control is already created CreateHandle will simply exit instead
13862             of just creating the handle
13863         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
13864           now SendMessage WM_DESTROY directly to the control when DestroyWindow
13865           is called.
13866         * XplatUIX11.cs: 
13867           - When DestroyWindow is called, instead of waiting for the 
13868             DestroyNotification from X11, we directly post it to the WndProc
13869             and immediately dispose the hwnd object.
13870             Same applies to DestroyChildWindows, and this obsoletes the
13871             expose_pending tracking. Contrary to Win32 behaviour we destroy our
13872             child windows before our own, to avoid X11 errors.
13873           - Removed the direct sending of WM_PAINT on UpdateWindow
13874         * XplatUIWin32.cs:
13875           - Reworked DoEvents and GetMessage to allow access to internal queue
13876             even when trying non-blocking access to the queue.  Fixes #77335. 
13877             Based on a patch suggestion by Don Edvalson. The new private
13878             GetMessage can now also be used as a backend for a PeekMessage
13879             frontend version.
13880         * XplatUI.cs: Improved debug output for CreateWindow
13882 2006-01-25  Jackson Harper  <jackson@ximian.com>
13884         * Help.cs: Allow param to be null. Patch by Don Edvalson.
13886 2006-01-24  Jackson Harper  <jackson@ximian.com>
13888         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
13889         when we have a MaxDropItems lower then the selected index.
13891 2006-01-24  Jackson Harper  <jackson@ximian.com>
13893         * Control.cs: Don't allow selection of non visible controls, allow
13894         selection of controls without parents.
13896 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
13898         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
13899         * DataGridDrawingLogic.cs: Add editing row only when is necessary
13901 2006-01-23  Jackson Harper  <jackson@ximian.com>
13903         * UpDownBase.cs: Make the textbox handle all the selection and
13904         tabbing. This fixes tabing to updown controls.
13906 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
13908         * TextBoxBase.cs: fixes exception thown the object was null
13910 2006-01-23  Jackson Harper  <jackson@ximian.com>
13912         * ButtonBase.cs: Just use the base CreateParams. They set
13913         visibility and enabled correctly.
13914         * ComboBox.cs:
13915         * TrackBar.cs:
13916         * MonthCalendar.cs: Lets let the base set as much of the
13917         createparams as possible so we don't have duplicate code all over
13918         the place.
13920 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
13922         * ThemeGtk.cs: Added TrackBar and some experimental code to
13923           get double buffering back
13925 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
13927         * DataGrid.cs: Allows row number set internally higher than the last
13928         when creating a new row. Restores the editing functionality.
13930 2006-01-20  Mike Kestner  <mkestner@novell.com>
13932         * MimeIcon.cs: delay Image creation until the icons are accessed
13933         instead of creating 190 scaled images on GnomeHandler startup.
13935 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
13937         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
13938           first call base before processing the event. Fixes #77279
13940 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
13942         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
13943           that the stride for the GDI bitmap would match the stride of
13944           a DIB or a Cursor.
13946 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
13948         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
13950 2006-01-19  Jackson Harper  <jackson@ximian.com>
13952         * ComboBox.cs: Hookup the text controls keydown event so we get
13953         those when the text control has the focus.
13955 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
13957         * Label.cs: Now using the base events instead of defining new ones;
13958           this allows us to just call the base properties without having to
13959           duplicate all base property logic 
13961 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
13963         * Label.cs: A label by default is not a tabstop (Fixes one of our
13964           failing nunit tests)
13966 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
13968         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
13969         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
13971 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
13973         * Cursor.cs: Reimplemented creating cursor bitmaps without using
13974           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
13975           This fixes #77218
13976         * XplatUIWin32.cs: 
13977           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
13978             constructor creates images that can't be saved. Part of the fix
13979             for #76103
13980           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
13981           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
13982             bug fix for handling window state in forms properly)
13984 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
13986         * ThemeGtk.cs: Simplify ScrollBar drawing
13988 2006-01-18  Jackson Harper  <jackson@ximian.com>
13990         * Splitter.cs: Set the default dock style for the splitter control
13991         in the constructor.
13993 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
13995         * ThemeGtk.cs: Corrected StateType and ShadowType for
13996           gtk_paint_box
13998 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
14000         * Control.cs: Make use of Theme.DoubleBufferingSupported
14001         * ThemeGtk.cs:
14002           - Added drawing for flat style buttons
14003           - Added ScrollBar drawing
14005 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
14007         * ThemeClearlooks.cs: Removed some unneeded code.
14008         * ThemeGtk.cs: First part of ThemeGtk enhancements.
14010 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
14012         * LinkLabel.cs: We need to update the hover drawing when
14013           leaving the control as well.
14015 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
14017         * DataGrid.cs: Clicking on non empty areas in the columns
14018            area was giving an exception
14020 2006-01-17  Jackson Harper  <jackson@ximian.com>
14022         * ThemeWin32Classic.cs:
14023         * ListView.cs: Do not draw/clip the headers when the header style
14024         is None.
14026 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
14028         * DataGrid.cs: Fixes 77260
14029         
14030 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
14032         * DataGrid.cs: Clicking on a column on a empty grid was giving
14033           an exception
14035 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
14037         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
14038           or any keypress will crash the grid.
14040 2006-01-17  Mike Kestner  <mkestner@novell.com>
14042         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
14043         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
14044         invisible/previously-visible items.
14045         [Fixes #76909]
14047 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
14049         * ThemeClearlooks.cs:
14050         - Added CL_Draw_Button method; now other theme controls that are 
14051           not derived from button or do not have a button can draw buttons
14052           too
14053         - Updated ComboBox drawing
14054         - Beautified RadioButton drawing
14055         - Corrected drawing of bottom and left tabs
14056         - Beautified DateTimePicker and MonthCalendar
14057         - Added CPDrawButton and CPDrawRadioButton
14059 2006-01-16  Jackson Harper  <jackson@ximian.com>
14061         * ComboBox.cs: Set the initial value of the scrollbar to the
14062         current index. Reduce the numbers of refreshs and IndexOfs called.
14064 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
14066         * FileDialog.cs: When the file listview is focused hitting the
14067           backspace key moves the fileview to the parent directory
14069 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
14071         * Form.cs: 
14072           - Added RecreateHandle call when changing taskbar visibility to 
14073             trigger reparenting in Win32 driver (Fixes #75719)
14074           - If a window has minimize or maximize buttons, it cannot have
14075             a help button
14076         * XplatUIWin32.cs:
14077           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
14078             the toplevel form with FosterParent (A toolwindow not on the
14079             taskbar) (Fixes #75719)
14080           - Made FosterParent a toolwindow
14082 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
14084         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
14086 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
14088         * ToolTip.cs: If SetToolTip is called from a control and the mouse
14089           is currently over that control, make sure that tooltip_window.Text
14090           gets updated
14092 2006-01-13  Mike Kestner  <mkestner@novell.com>
14094         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
14096 2006-01-13  Jackson Harper  <jackson@ximian.com>
14098         * TreeView.cs: On MS GetNodeAt never actually factors in the X
14099         value passed.  Also redraw the selected node when we recieve
14100         focus, so tabbing between trees works correctly.
14102 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
14104         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
14105           ~/.gconf/%gconf-tree.xml, so use
14106           .gconf/desktop/gnome/interface/%gconf.xml
14108 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
14110         * TextControl.cs: Draw text in gray if control is disabled
14112 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
14114         * TreeView.cs: Draw the focus rectangle outside the highlight, to
14115           make sure it's always visible. Fixes #76680.
14117 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
14119         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
14121 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
14123         * PageSetupDialog.cs: Added.
14124         * PrintDialog.cs: Attributes.
14125         * PrintPreviewControl.cs: Updates.
14126         * PrintPreviewDialog.cs: Updates.
14127         
14128 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
14130         * Control.cs: Undid my selection check fix, since it's not needed
14131         * TextBoxBase.cs:
14132           - Now considering the presence of hscroll/vscroll when sizing
14133             vscroll/hscroll respectively. Fixed bug #77077
14134           - Added Left/Up/Down/Right to IsInputKey list to prevent
14135             ContainerControl from stealing them. This fixes what I broke
14136             with my last checkin.
14138 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
14140         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
14141           I finally understand how the property can be set without a setter :-)
14143 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
14145         * Application.cs:
14146           - Switched RunLoop to use static Message.Create to create a 
14147             Message object
14148           - Added PreProcessMessage call in runloop for keyboard events; this
14149             is part of the fix for #77219, I overlooked this originally in the
14150             MSDN doc for PreProcessMessage
14151         * Control.cs:
14152           - Removed call to PreProcessMessage from handling of keyboard 
14153             messages; it's supposed to be done in the message pump
14154           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
14155             per MSDN documentation.
14156           - IsInputChar: All chars are input chars by default; removed the 
14157             parent calling chain, MS does not document that
14158           - PreProcessMessage: If IsInputChar is true, we want to return false
14159             to allow dispatching of the message
14160           - When selecting the next control, now also check that we're not
14161             selecting ourselves again and therefore return a false positive.
14162         * TextBoxBase.cs:
14163           - Tried to match return values for IsInputKey and ProcessDialogKey
14164             to what MS returns; moved processing of our special keys outside
14165             ProcessDialogKey since MS does not seem to return true on those.
14166           - Moved code that previously was in ProcessDialogKey into new private
14167             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
14168           - Reworked handling of WM_CHAR to not have to duplicate code from
14169             Control.cs anymore, instead we simply call down to base.
14170            
14171 2006-01-12  Jackson Harper  <jackson@ximian.com>
14173         * ComboBox.cs: We always need to refresh the text area when
14174         EndUpdate is called. Fixes the combobox in the file dialog.
14175         * Control.cs: Don't create the creator_thread until the controls
14176         handle is created.  Also in InvokeRequired we check if the
14177         creator_thread is null. This gives the effect of InvokeRequired
14178         returning true if the controls handle is not created yet, and
14179         matches MS.
14181 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
14183         * XplatUI.cs:
14184           - Added StartLoop() driver method. This is used to allow drivers to
14185             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
14186             loop for a particular thread
14187           - Added EndLoop() driver method. This is called once the message
14188             pump for the thread is shut down
14189           - Added SupportsTransparency method to allow the driver to indicate
14190             opacity support for windows
14191         * Form.cs:
14192           - Removed TODO attribute, completed AllowTransparency property
14193           - Added documented logic to Opacity
14194         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
14195           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
14196           versions of CompatibleTextRendering
14197         * X11Structs.cs: Added opacity atom to our atom enumeration
14198         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
14199           of a form might be set before it's reparented by the WM, and we need
14200           the opacity value without calling up to Form)
14201         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
14202           SupportsTransparency() driver methods
14203         * Application.cs: Now calling StartLoop and EndLoop driver methods
14204         * XplatUIX11.cs:
14205           - Added opacity atom registration
14206           - Added StartLoop()/EndLoop() methods. They're empty right now but
14207             will need to get implemented when we switch to a per-thread queue
14208           - Implemented SupportsTransparency() method
14209           - Implemented SetWindowTransparency() method
14210           - Added support for setting the opacity value when a window is
14211             reparented (since the opacity needs to be set on the WM frame)
14212         * XplatUIOSX.cs, XplatUIWin32.cs:
14213           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
14215 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
14217         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
14219 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
14221         * FileDialog.cs: Added ToolTip for MWFFileView
14222         * MimeIcon.cs: Rewrote GnomeHandler.
14223           - Get currently used gnome icon theme from
14224             ($HOME)/.gconf/%gconf-tree.xml
14225           - Make use of inherited icon themes
14226           - Support SVG icon themes like Tango via librsvg
14228 2006-01-12  Miguel de Icaza  <miguel@novell.com>
14230         Revert's Jackson's revert which broke 2.0 builds.   Fix both
14231         builds. 
14232         
14233         * Application.cs: Move the use_compatible_text_rendering outside
14234         the NET_2_0 define.  If we ever need to use the
14235         use_compatible_text_rendering on the individual controls they will
14236         access the variable from the common shared code paths.
14238 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
14240         * XplatUI.cs:
14241           - Added more granular debug options
14242           - Added method to print both window text and id
14243           - Switched debug output to use new Window() debug method
14244           - Added IsEnabled() driver method
14245           - Added EnableWindow() driver method
14246         * Form.cs:
14247           - Removed end_modal; no longer needed, new loop handles termination
14248             via 'closing' variable
14249           - If form is modal, setting DialogResult will now initiate loop
14250             termination via 'closing' variable
14251           - Added support for is_enabled/WS_DISABLED to CreateParams
14252           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
14253             does all the work
14254           - Removed code that's now in RunLoop from ShowDialog()
14255           - Added various documented sanity checks to ShowDialog()
14256           - Added handling of WM_DESTROY message; we set 'closing' on getting
14257             the message to indicate the message pump to terminate
14258           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
14259             send by the Application.ExitThread method. (We send the message
14260             to destroy the window after all other events have been
14261             processed through the queue, instead of destroying the handle 
14262             directly)
14263           - Moved code from Close() method to WM_CLOSE handler; added logic
14264             to only send close-related events if the form is not displayed
14265             modal
14266         * Splitter.cs (..ctor): Fixed typo in resource name
14267         * Control.cs:
14268           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
14269             brush now
14270           - set_Cursor: Now only setting calling into XplatUI if the handle for
14271             the control is already created; this avoids implict handle creation
14272             or crashes if it's not created
14273           - set_Enabled: Now setting the enabled state via the new driver method
14274             instead of just tracking it
14275           - CreateParams: Added logic to set WS_DISABLED based on enabled state
14276           - CreateControl: Reordered event firing and method calls to more
14277             closely fire events in the order MS does. Now setting the
14278             enabled state in the driver when creating the control.
14279           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
14280             match MS order
14281         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
14282           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
14283         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
14284         * Hwnd.cs:
14285           - Added tracking of window enabled state (get_Enabled/set_Enabled)
14286           - Added EnabledHwnd property to easily allow a driver to find the
14287             handle of the first enabled window in the parent chain (this is
14288             used by drivers to pass up input events of disabled windows)
14289         * XplatUIDriver.cs: Added IsEnabled() method
14290         * Application.cs:
14291           - Removed crude and obsolete exiting tracking variable
14292           - Removed internal ModalRun(); replaced by RunLoop()
14293           - Implemented private CloseForms() method to allow closing all 
14294             windows owned by a particular (or all) threads
14295           - Exit() now properly closes all windows without forcing the message
14296             pump to quit
14297           - Removed obsolete InternalExit() method
14298           - Changed Run() methods to use new RunLoop() message pump
14299           - Implemented new RunLoop() method for both modal and non-modal forms
14300         * CommonDialog.cs:
14301           - get_CreateParams: Added setting of WS_DISABLED
14302           - Simplified ShowDialog(); now all the work is done in RunLoop(),
14303             invoked via Form.ShowDialog()
14304         * NativeWindow.cs: We don't remove the window from the collection when
14305           the handle is destroyed; there might still be messages for it in the
14306           queue (mainly the resulting WM_DESTROY); instead it will be removed
14307           when Control calls InvalidateHandle in the WM_DESTROY handler
14308         * XplatUIX11.cs:
14309           - CreateWindow: Added logic to handle the WS_DISABLED window style
14310           - EnableWindow: Implemented based on Hwnd.Enabled
14311           - GetMessage: Reset PostQuitState so the method can be called again
14312           - Implemented support for disabled windows (passing messages to the
14313             first enabled parent) in handling all input messages
14314           - Added optimizations for handling Expose events
14315           - Implemeted new driver method IsEnabled()
14316           - Now always resetting paint pending tracking vars when we start paint
14317           - Re-implemented UpdateWindow via just sending a WM_PAINT message
14318         * XplatUIOSX.cs: Added IsEnabled method stub
14319         * XplatUIWin32.cs: Implemented new IsEnabled() method
14321 2006-01-11  Jackson Harper  <jackson@ximian.com>
14323         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
14324         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
14325         variables a little.
14326         * ColorDialog.cs: Clear out the old form before adding the new
14327         panel.  
14329 2006-01-11  Jackson Harper  <jackson@ximian.com>
14331         * X11Dnd.cs: Make sure to add all the text formats when adding
14332         strings to the data object.
14333         * TreeNodeCollection.cs: When adding to a sorted tree we need to
14334         do some redrawing too.  Also change the UpdateNode to an
14335         UpdateBelow so the newly added node gets painted.
14336         
14337 2006-01-11  Miguel de Icaza  <miguel@novell.com>
14339         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
14340         LinkLabel.cs, PropertyGrid.cs: Implement the
14341         UseCompatibleTextRendering property for 2.x
14343         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
14345 2006-01-11  Jackson Harper  <jackson@ximian.com>
14347         * TreeView.cs: Use the property for setting the selected node so
14348         the correct events get raised.
14349         * TreeNode.cs: Update the tree when the fore/back colours of a
14350         node are set.
14352 2006-01-10  Jackson Harper  <jackson@ximian.com>
14354         * TreeView.cs: Allow setting SelectedNode to null.
14356 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
14358         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
14360 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
14362         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
14364 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
14366         * PrintDialog.cs: Added attributes and set default property values.
14368 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
14370         * PrintControllerWithStatusDialog.cs: 
14371         Added PrintControllerWithStatusDialog.
14373 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
14375         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
14376         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
14378 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
14380         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
14382 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
14384         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
14385         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
14387 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
14389         * MimeIcon.cs: Added internal class SVGUtil.
14391 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
14393         * FileDialog.cs: Don't crash if there are two files with the
14394           same name but different locations.
14396 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
14398         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
14399         dates across multiple month grids. Used to not highlight entire 
14400         month, but does now.
14401         
14402 2006-01-06  Jackson Harper  <jackson@ximian.com>
14404         * MonthCalendar.cs: Removed DoEvents call to prevent a running
14405         message loop. Change timer intervals to numbers that seem more
14406         natural.
14408 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
14410         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
14411           object for location info since screen object is now implemented.
14413 2006-01-05  Jackson Harper  <jackson@ximian.com>
14415         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
14416         * AsyncMethodResult.cs: We no longer use a WeakReference for the
14417         AsyncMethodResult, this is because we ALWAYS want the
14418         ManualResetEvent to get set.
14419         * Control.cs: When disposing use an async invoke to call shutdown
14420         code, so that thigns don't block on the finalizer thread.  Also
14421         check if we even have a message loop before trying to send
14422         messages, if we don't then don't bother sending messages.
14423         - No more weak references for async methods
14424         * XplatUIDriver.cs: No more weak references for async methods.
14426 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
14428         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
14429           returns two FontFamily with the same name
14431 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
14433         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
14434           drawing disabled text. Instead using the ColorGrayText color
14436 2006-01-04  Jackson Harper  <jackson@ximian.com>
14438         * TreeNode.cs: redraw the node when its image index is changed.
14440 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
14442         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
14443           time I checked there are no others like it.
14445 2006-01-04  Jackson Harper  <jackson@ximian.com>
14447         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
14448         this gives the behavoir I was looking for.
14449         * Control.cs: Special case Invoking EventHandlers, this matches MS
14450         and fixes part of bug #76326.
14452 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
14454         * ThemeClearlooks.cs, FileDialog.cs:
14455           - Reflect the latest Theme class changes
14456           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
14457             with DateTime
14458             
14459 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
14461         * Theme.cs: Cache UI resource images and resize them if needed
14463 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
14465         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
14466           is called. This fixes the crash in Nexxia when setting the font
14467           attributes in the chat. [However, RTF needs a look-over to make sure
14468           that all SelectionXXX methods handle the special case that selection
14469           is empty and therefore the change must be applied to all text starting
14470           at the cursor/selection start]
14472 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
14474         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
14475           XplatUIOSX.cs: Added SendMessage and PostMessage methods
14476         * X11Keyboard.cs: Switched to new way of calling PostMessage
14478 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
14480         * Theme.cs: Added theme interface for images to allow the theme to
14481           control what images are used for things like FileDialog, MessageBox
14482           icons, etc.
14483         * MessageBox.cs: Now uses the new Theme icon/image interfaces
14485 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
14487         * FileDialog.cs:
14488           - Removed some dead code
14489           - Opening a recently used file does work now
14490           - Small UI enhancements
14491           - Refactoring
14493 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
14495         * FileDialog.cs: Forgot too add __MonoCS__
14497 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
14499         * FileDialog.cs: We are able to read recently used files now let's
14500           go on and write them.
14502 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
14504         * FileDialog.cs: Breathe some life into "last open"/"recently used"
14505           button
14506         * MimeIcon.cs: Do a check for the top level media type also
14508 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
14510         * ThemeClearlooks.cs:
14511           - Added CPDrawStringDisabled
14512           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
14513             some chars if the text doesn't fit into text_rect
14514           - DrawListViewItem: If View = View.LargeIcon center the image;
14515             rewrote the drawing of ListViewItem.Text if View = 
14516             View.LargeIcon
14518 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
14520         * MimeIcon.cs: Use default KDE icon theme if there is no
14521           "48x48" directory for the current icon theme, fixes #77114
14522         * Mime.cs: Disable not working and actually not used code. 
14523         * ThemeWin32Classic.cs:
14524           - Replace "new SolidBrush" in GetControlBackBrush and
14525             GetControlForeBrush with ResPool.GetSolidBrush
14526           - Changed DrawListViewItem from private to protected virtual
14527         * FileDialog.cs:
14528           - Added form.MaximizeBox = true
14529           - Don't throw an exception if there is a broken symbolic link
14531 2005-12-23  Jackson Harper  <jackson@ximian.com>
14533         * TabControl.cs: Give the panels focus, keyboard navigation is
14534         fixed so this works correctly now.
14535         - We need these key events also.
14536         * ToolBar.cs: Remove some of the poor mans double buffering.
14537         
14538 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
14540         * ComboBox.cs: The internal TextBox now returns the focus.
14542 2005-12-23  Jackson Harper  <jackson@ximian.com>
14544         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
14546 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
14548         * Control.cs: Removed debug code
14549         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
14550           implicit children
14552 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
14554         * Control.cs: When creating the control, update the Z-order after
14555           all it's children are created, too. (Fixes nexxia not showing
14556           picturebox bug)
14558 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
14560         * Control.cs: Do not update the anchoring distances if layout is
14561           suspended, instead do it once layout is resumed
14563 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
14565         * Control.cs: 
14566           - After many hours of debugging, for both Jackson and
14567             myself, it turns out that it helps to set the parent of a control
14568             if you want to actually see it onscreen. In the spirit of that
14569             discovery, we're now setting the parent of the control and
14570             it's children when the control's handle is created. This fix
14571             will make Lutz Roeder's Reflector run happily. 
14572           - now just creating the handle instead of the whole control when
14573             getting a graphics context for the control.
14575 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
14577         * ScrollableControl.cs: When calculating the canvas, don't consider
14578           the scrollbar widths. Instead, predict if horizontal scrollbar
14579           will affect canvas when deciding on vertical display and vice versa.
14581 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
14583         * RichTextBox.cs: Set default RTF font for documents that don't
14584           have a font table (Fixes #77076)
14586 2005-12-22  Jackson Harper  <jackson@ximian.com>
14588         * TextBoxBase.cs: It's difficult to do, but you can have an empty
14589         clipboard. This prevents a NullRef in that case.
14590         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
14591         clipboard. PRIMARY is for the currently selected text only. (We
14592         should implement PRIMARY at some point.
14594 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
14596         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
14597           a Unicode function with a structure that was defined in Ansi way.
14598           This fixes #76942.
14600 2005-12-21  Jackson Harper  <jackson@ximian.com>
14602         * StatusBar.cs: Statusbar handles its fore/back colours on it's
14603         on. Because thats how it rolls. (and this avoids it using ambient
14604         colours).
14605         * ThemeWin32Classic.cs: Use the proper back color for filling.
14606         * Menu.cs: Use the system menu bar color for drawing menu
14607         bars. Using the window back color will bring ambient colours into
14608         the picture.
14610 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
14612         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
14613           Bitmaps were created and not disposed.
14615 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
14617         * Control.cs (CreateControl): Don't do anything if the control is
14618           already created, otherwise we'd fire the OnCreated event more than
14619           once
14621 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
14623         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
14624           will always match. Instead return -1. Fixes #76464.
14626 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
14628         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
14629           neither the beginning nor the end of the line (Fixes bug #76479)
14631 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
14633         * Control.cs:
14634           - ControlNativeWindow.ControlFromHandle(): Now handling situation
14635             where handle is invalid
14636           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
14637             instead of slower linear search
14638         * NativeWindow.cs: Don't remove the window from the hashtable until
14639           after the driver has destroyed it (since the driver might use
14640           Control.FromHandle to lookup the control object
14641         * Hwnd.cs: Added DestroyPending property to track if a window is 
14642           already destroyed as far as the driver is concerned and only hasn't
14643           yet notified the control
14644         * XplatUIX11.cs:
14645           - Activate(): Check if the window is still valid before using the 
14646             handle
14647           - Implemented DestroyChildWindow() method to mark child windows as
14648             destroyed when a window is destroyed. This prevents situations 
14649             where we might call an X method based on queued events for a
14650             window that already has been destroyed but we haven't yet pulled
14651             the destroy method from the queue.
14652           - Added a call to the new DestroyChildWindow() method to the drivers
14653             DestroyWindow code. Also now marking the destroyed window itself
14654             as pending
14656 2005-12-20  Jackson Harper  <jackson@ximian.com>
14658         * StatusBar.cs:
14659         * StatusBarPanel.cs: Don't calculate panel sizes on draw
14660         anymore. Just do them when needed, also track the rects of panels
14661         so that we can optimize refreshing more in the future.
14663 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
14665         * ColorDialog.cs: Fixed focus drawing in small color controls
14667 2005-12-19  Jackson Harper  <jackson@ximian.com>
14669         * InternalWindowManager.cs:
14670         * MdiWindowManager.cs: Cleanup some coordinate system changes so
14671         moving windows works properly.
14673 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
14675         * Control.cs: 
14676           - Removed call to InitLayout() from SetBoundsCore(); doc says
14677             it's only called when a control is added to a container
14678           - Split InitLayout logic, moved to separate UpdateDistances() method
14679             since we need to perform those calculations more often than just
14680             when adding the control to a container. (Needed to fix #77022)
14681           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
14682           - Reduced the OnBindingContextChanged events count, don't send them
14683             unless the control is created, we still aren't totally matching
14684             MS, but I can't quite figure out some of their rules
14686 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
14688         * ThemeClearlooks.cs: Corrected distance between ProgressBar
14689           stripes
14691 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
14693         * ThemeClearlooks.cs:
14694           - Updated ProgressBar drawing
14695           - Corrected drawing of ScrollBars and scroll buttons
14696           - Some temporary fixes for minor pixel artefacts
14698 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
14700         * Control.cs:
14701           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
14702             cause events to be sent in the same order as MS does.
14703           - Added ChangeParent() method to trigger various OnXXXChanged events
14704             that need to be fired when a parent changes (This is a reworking
14705             of the patch from r54254, with the X11 errors fixed)
14706           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
14707             since on MS we get OnLayoutChanged events when calling Clear()
14708           - Changed Enabled property to consider parent state as well, if a
14709             parent is not enabled, the control will not be either
14710           - Changed Parent property to simply call Controls.Add() since that
14711             now does all the work required, this way we avoid code duplication
14712           - Threw in a few OnBindingsContextChanged calls to try and match
14713             when MS sends them. We seem to send a few too many, though.
14714           - Added call to CreateControl when adding the control to a parent.
14715             We were never calling CreateControl. Still needs some work, in
14716             some places we treat HandleCreated and ControlCreated as equal, 
14717             which is wrong
14718           - Removed obsolete commented out code from UpdateZOrder()
14720 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
14722         * ThemeClearlooks.cs: Updated TrackBar drawing.
14724 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
14726         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
14728 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
14730         * FileDialog.cs: Add the Help button and the open readonly
14731           checkbox only if needed
14733 2005-12-16  Jackson Harper  <jackson@ximian.com>
14735         * Control.cs: Make sure we have an active menu before trying to
14736         process commands on it. Prevents menu-less forms from crashing
14737         when Alt is pressed.
14738         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
14739         Dieter Bremes.
14740         * RichTextBox.cs: Expand statement to help out gmcs and fix the
14741         2.0 build.
14743 2005-12-16  Jackson Harper  <jackson@ximian.com>
14745         * InternalWindowManager.cs: Don't translate tool windows screen
14746         coordinates. This fixes windows 'bouncing' around when being moved.
14748 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
14750         * TextBoxBase.cs:
14751           - MaxLength now treats 2^31-1 equal to unlimited length (this is
14752             not quite MS compatible, MS uses that number only for single line
14753             and 2^32-1 for multi-line, but I figure it won't hurt keeping
14754             the limit at 2GB)
14755           - Now enforcing the MaxLength limit when entering characters
14756           - Added argument to internal Paste() method to track if it's called
14757             from programatically or via keyboard, since keyboard driven pastes
14758             need to enforce max-length
14759           - Added logic to Paste to only paste as many chars as MaxLength 
14760             allows
14761         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
14762         * TextControl.cs:
14763           - Added Length property to return number of characters in document
14764           - Added private CharCount property which only tracks actual chars
14765             in the document (no linefeeds) and fires event when CharCount
14766             changes
14767           - Added tracking of character count to all methods that alter it
14768           - Added LengthChanged event to allow applications to subscribe
14769             to any changes to the document
14771 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
14773         * TextBox.cs: 
14774           - Removed local password_char field (moved to TextBoxBase)
14775           - Now setting the document's password var when password is
14776             set
14777         * TextBoxBase.cs:
14778           - Added password_char field (needed here so MultiLine can
14779             access it)
14780           - Added logic to MultiLine property setter to set the document's
14781             variable when password display is allowed
14782           - Removed debug code and made some debug code conditional
14783         * TextControl.cs:
14784           - Added RecalculatePasswordLine() method to handle special password
14785             char only lines
14786           - Added PasswordChar property, also added related tracking vars
14787           - Draw() method now uses local text var for grabbing text to draw,
14788             this var is set to line.text unless we're doing password display,
14789             then it is set to the pre-generated all-password-chars line
14790           - Added calling RecalculatePasswordLine() method for password lines
14792 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
14794         * Hwnd.cs: 
14795           - Added Reparented property to allow tracking of Window Manager
14796             reparenting actions (which affect X/Y calculations of toplevel 
14797             windows)
14798           - Made ToString() print window handles in hex
14799         * XplatUIX11.cs:
14800           - AddConfigureNotify(): Now uses reparented state off Hwnd to
14801             determine if X/Y needs offsetting
14802           - AddConfigureNotify(): Fixed offset calculations
14803           - Now adds ReparentNotify messages into the queue
14804           - Now processes ReparentNotify messages and causes a 
14805             WM_WINDOWPOSCHANGED message to be sent upstream if a window
14806             is reparented (as most likely it's X/Y coordinates are changed
14807             due to that)
14809 2005-12-14  Jackson Harper  <jackson@ximian.com>
14811         * XplatUIX11.cs: Tool windows still need to respek focus.
14813 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
14815         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
14816           have a working release
14818 2005-12-13  Jackson Harper  <jackson@ximian.com>
14820         * Form.cs: Update styles after setting the border style regardless
14821         of whether or not the window is using a window manager.
14823 2005-12-13  Jackson Harper  <jackson@ximian.com>
14825         * Form.cs: We now hook into an internal window manager instead of just an
14826         MDI subsystem, this is so we can have properly behaving tool windows.
14827         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
14828         * InternalWindowManager.cs: New internal class that acts as a
14829         window manager for tool windows and as a base for mdi windows.
14830         * MdiWindowManager.cs: New class that acts as a window manager for
14831         mdi windows.
14833 2005-12-12  Jackson Harper  <jackson@ximian.com>
14835         * Control.cs: Updates so we match behavoir for for implicit
14836         controls. Fixes explosions in MDI.
14838 2005-12-12  Jackson Harper  <jackson@ximian.com>
14840         * Control.cs: Implement Invalidate (Region).
14842 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
14844         * Control.cs: 
14845           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
14846             the same events as MS does. MS fires events for each property 
14847             except, for unknown reasons, Cursor, when the control is reparented. 
14848             I can't seem to totally match add/remove since MS also fires some 
14849             VisibleChanged events, which makes no sense. Consolidated the
14850             parenting code into a separate method so it can be called from
14851             both Add and Remove. set_Parent no longer needs any special logic
14852             as it calls the parent's add method which implicitly fires
14853             all events
14854           - Removed some obsolete code and debug output
14855           - Enabled state is inherited from parents, if this is enabled
14857 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
14859         * Form.cs: Removed commented out code
14861 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
14863         * Control.cs:
14864           - Added internal version of Invoke, with additional argument 
14865             indicating if we're calling it from a Dispose() handler. That
14866             way we can avoid BeginInvoke throwing an exception if we're
14867             calling for an already destroyed window.
14868           - Added a dispose argument to BeginInvokeInternal, and made the
14869             check if a valid window handle chain exists conditional on
14870             it not being a dispose call
14871           - Removed code in DestroyHandle to destroy our children. Since we
14872             now handle the WM_DESTROY message we will catch all our children
14873             being destroyed.
14874           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
14875         * Form.cs:
14876           - Added a field to track the application context of the form.
14877           - No need to set closing variable as response to WM_CLOSE, instead
14878             we destroy the window. We also call PostQuitMessage if the form
14879             has an application context (which makes it the main app form,
14880             which, when closed terminates the app)
14881         * XplatUI.cs:
14882           - Dropped Exit() method, it's naming was confusing
14883           - Added PostQuitMessage() which causes GetMessage to return false
14884             once the message queue is empty
14885         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
14886           PostQuitMessage()
14887         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
14888           no longer a valid XplatUI method, but left it in since it's used
14889           internally. Added empty PostQuitMessage() method.
14890         * MenuAPI.cs: Replaced call to Exit() with call to
14891           PostQuitMessage, even though this is probably no longer needed.
14892         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
14893         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
14894         * Application.cs:
14895           - Replaced call to XplatUI.Exit() with PostQuitMessage()
14896           - Removed old debug code that would call XplatUI for exception
14897             display, enabled standard exception handling (Still not enabled
14898             though, until NativeWindow's ExternalExceptionHandler define
14899             is removed
14900         * NativeWindow.cs:
14901           - Added internal method to allow control to update NativeWindow
14902             after a window has been destroyed
14903           - Added handling of already destroyed windows when calling i
14904             DestroyWindow
14905           - Added removal of handle from list on ReleaseHandle
14906         * XplatUIX11.cs:
14907           - Dropped GetMessageResult var and related code
14908           - Added PostQuitState to field to track if PostQuitMessage has been
14909             called
14910           - Dropped Exit() method
14911           - Added PostQuitMessage() method
14912           - GetMessage now will return false if PostQuitState is set and no
14913             more messages are in the queue.
14914           - Expose handler will no longer generate WM_PAINT messages if we are
14915             in PostQuitState since it's very likely any windows have already
14916             been destroyed, and since Hwnd won't get updated until we have
14917             processed the DestroyNotify we'd be causing X errors.
14918         
14919 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
14921         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
14922           Thanks to Mike for pointing out the err of my ways.
14924 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
14926         * Control.cs(PreProcessMessage): Moved menu handling back, but
14927           after all other key handling, to match MS (who handles Menu in
14928           DefWndProc)
14929         * Menu.cs (WndProc): Removed my brainfart
14931 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
14933         * Control.cs(PreProcessMessage): Removed special menu handling 
14934         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
14936 2005-12-07  Mike Kestner  <mkestner@novell.com>
14938         * Control.cs : special case SYSKEYUP so that we can adjust keynav
14939         state according in tracker.
14940         * Menu.cs : promote tracker field to base class and provide a tracker
14941         lookup capability.  Add/Remove shortcuts dynamically if the top menu
14942         has a tracker. Unparent items that are removed from the collection.
14943         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
14944         * Theme*.cs: add always_show_hotkeys field to support configurability
14945         of mnemonic display.  win32 doesn't show mnemonics until Alt is
14946         pressed.
14948 2005-12-07  Jackson Harper  <jackson@ximian.com>
14950         * MdiChildContext.cs: Use Control.ResetCursor.
14951         * Control.cs: ResetCursor needs to set the property so that the
14952         correct XplatUI call gets made.
14954 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
14956         * Control.cs: More fixes to make our key events match MS. We
14957           were not setting the modifier state on KeyData, and we were
14958           not generating any events when Alt was pressed with a key
14959           since handling of WM_SYSxxx was missing for the OnKey methods.
14961 2005-12-07  Jackson Harper  <jackson@ximian.com>
14963         * MdiChildContext.cs: reenable the sizing code.
14964         - When the mouse leaves a window reset its cursor.
14966 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
14968         * ThemeClearlooks.cs: Reflect latest Hwnd changes
14970 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
14972         * Hwnd.cs: Now using the theme 3d bordersize to calculate
14973           widths of Fixed3D borders
14975 2005-12-07  Jackson Harper  <jackson@ximian.com>
14977         * MdiClient.cs: Fix warnings. Earn Mike's love.
14979 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
14981         * ThemeClearlooks.cs:
14982           - Adjusted mouse over button color
14983           - Added first parts of CheckBox drawing
14984           - Added correct color for selected text background
14985           - Fixed ComboBox drawing
14986           - Added CPDrawBorder3D and CPDrawBorder
14988 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
14990         * XplatUIX11.cs: Added call to XBell for AudibleAlert
14992 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
14994         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
14995           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
14996           alert users via sound. We could add an enum arg with different
14997           types of alerts in the future
14999 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
15001         * Control.cs: Fix behaviour problems pointed out by Mike
15003 2005-12-05  Mike Kestner  <mkestner@novell.com>
15005         * StatusBarPanel.cs: add Invalidate method and hook it into all the
15006         prop setters.  Calls parent.Refresh for now, but could be maybe be
15007         optimized with an internal method on StatusBar at some point.
15008         [Fixes #76513]
15010 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
15012         * RichTextBox.cs: Implemented get_SelectionColor
15014 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
15016         * ThemeClearlooks.cs:
15017           - Removed dead code
15018           - Draw black button border only if button is Form.AcceptButton
15019           - Draw correct button color for pressed RadioButton if the mouse 
15020             has entered the button
15021           - Updated ProgressBar drawing!
15022           - Updated CPDrawSizeGrip drawing
15023           - Updated StatusBarPanel drawing
15025 2005-12-05  Mike Kestner  <mkestner@novell.com>
15027         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
15028         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
15030 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
15032         * ThemeClearlooks.cs: Initial check-in, activate with
15033           export MONO_THEME=clearlooks
15034         * ThemeEngine.cs: Added ThemeClearlooks
15036 2005-12-03  Mike Kestner  <mkestner@novell.com>
15038         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
15039         [Fixes #76897]
15041 2005-12-02  Jackson Harper  <jackson@ximian.com>
15043         * Form.cs: If the child form has no menu the default main menu is
15044         used as the active menu.
15046 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
15048         * ListBox.cs: Check if any items exist before trying to resolve 
15049           coordinates into items
15051 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
15053         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
15054           as the second color for the background hatch
15056 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
15058         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
15059         * RichTextBox.cs: FormatText position arguments are 1-based, now making
15060           sure that what we pass to FormatText is always 1-based. Fixes #76885
15062 2005-11-29  Miguel de Icaza  <miguel@novell.com>
15064         * NumericUpDown.cs (EndInit): When we are done initializing,
15065         reflect any updates on the UI.
15067 2005-12-02  Jackson Harper  <jackson@ximian.com>
15069         * ImplicitHScrollBar.cs:
15070         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
15071         their container controls.
15072         * TreeView.cs: Use the new implicit scrollbars.
15074 2005-12-02  Jackson Harper  <jackson@ximian.com>
15076         * TreeView.cs: Make top_node internal so the TreeNodeCollections
15077         can play with it.
15078         * TreeNodeCollection.cs: If we remove the topnode we need to
15079         update topnode to the next node in line.
15080         - When clearing nodes go through the same process as removing
15081         them, so they get depareneted and checked if they are top node.
15083 2005-12-01  Jackson Harper  <jackson@ximian.com>
15085         * TreeView.cs: When imagelists are used the image area is
15086         selectable as well as the text.
15087         - If there are no selected nodes select the first one.
15088         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
15089         so don't do it more then we need to.
15091 2005-12-01  Jackson Harper  <jackson@ximian.com>
15093         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
15094         that arrows can be scaled.
15096 2005-12-01  Jackson Harper  <jackson@ximian.com>
15098         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
15099         fail. Patch by Dieter Bremes
15101 2005-11-30  Jackson Harper  <jackson@ximian.com>
15103         * Form.cs: Property is 2.0 only
15104         * PrintDialog.cs: Signature fix.
15106 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
15108         * TextControl.cs: 
15109           - No longer artificially moves text 2 pixels down (now that we have
15110             borders this is no longer needed)
15111           - Added calcs for left, hanging and right indent
15113 2005-11-23  Mike Kestner  <mkestner@novell.com>
15115         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
15117 2005-11-30  Jackson Harper  <jackson@ximian.com>
15119         * MdiChildContext.cs: Set the cloned menus forms, as these don't
15120         get cloned as part of CloneMenu ().
15121         * Menu.cs: Make sure the parent of the items get set correctly
15122         when they are added.  And the owners are notified of the changes.
15123         * Form.cs: Create an ActiveMenu property, so that when MDI is used
15124         we can change the menu being displayed/handled by the form without
15125         changing the menu assosciated with the form.
15126         - Don't let Mdi children draw/handle menus.
15127         
15128 2005-11-30  Jackson Harper  <jackson@ximian.com>
15130         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
15131         a MenuChanged event. Just to make the API a little more
15132         consistent.
15133         * MainMenu.cs:
15134         * MenuItem.cs: Use the new OnMenuChanged
15135         * MdiChildContext.cs: Handle menu merging.
15136         * Form.cs: Implement MergedMenu.
15137         
15138 2005-11-30  Jackson Harper  <jackson@ximian.com>
15140         * Menu.cs: We were misusing Add. Add goes behind the specified
15141         index according to the docs, and does not replace the specified
15142         index. So I added an Insert method.
15144 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
15146         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
15147           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
15148           is for Jackson
15149         * RichTextBox.cs: Added calls to base for DnD events
15151 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
15153         * TextControl.cs:
15154           - Fixed drag-selection related crash; style fixes
15155           - Implemented undo class
15156             o Implemented method to capture document state for specified
15157               range in document tree
15158             o Implemented method to restore captured document state
15159             o Implemented cursor tracking
15160             o Implemented basic undo stack
15161           - Added undo cursor tracking to methods altering cursor location
15162           - Added undo tracking to selection deletion (still missing
15163             other text-altering hookups)
15164         * RichTextBox.cs:
15165           - Added SelectionLength property
15166           - Implemented CanPaste()
15167           - Implemented Paste()
15168           - Added missing protected methods
15169           - Fixed RTF->Document conversion; now uses font index 0 and color 
15170             index 0 as the default font for the parsed text
15171           - Fixed RTF<->Document font size translation
15172           - Fixed RTF generation, now properly handles cross-tag boundaries
15173             for single line selection
15174           - No longer always appends blank line to generated RTF
15175           - Removed TODOs
15176           - Added missing attributes
15177           - Hooked up undo-related methods
15178         * TextBoxBase.cs:
15179           - Implemented Copy()
15180           - Implemented Paste()
15181           - Implemented Cut()
15182           - Fixed caret mis-behaviour on backspace across line-boundaries
15184 2005-11-29  Jackson Harper  <jackson@ximian.com>
15186         * MdiClient.cs: Add a method for activating mdi children. Very
15187         basic right now. I imagine someday it might need more girth.
15188         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
15189         children windows names are added to the menu item.
15190         * ThemeWin32Classic.cs: Draw the arrow if the item is an
15191         mdilist. This happens regardless of whether or not there are any
15192         mdi windows to see in the list, and according to my tests happens
15193         before the items are even added. Also happens if there isn't even
15194         an mdi client to get windows from.
15196 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
15198         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
15199         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
15201 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
15203         * DataGridTableStyle.cs:
15204           - Create always the styles for the missing columns even if they are
15205             provided by the user (not default table style)
15206         * DataGrid.cs:
15207           - Fixes bug 76770
15208           - Fixes SetDataBinding (always re-attach source)
15209           - Fixes SetNewDataSource (only clear styles if they are not for 
15210             this source)
15211          -  Expands OnTableStylesCollectionChanged to handle style refresh 
15212             and remove properly
15214 2005-11-29  Jackson Harper  <jackson@ximian.com>
15216         * FileDialog.cs: Implement missing bits, remove some dead
15217         code.
15218         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
15219         creation of the panel so that the options set on the dialog are
15220         seen when the panel is created.
15221         * TreeView.cs: raise a click when items are clicked.
15222         
15223 2005-11-29  Jackson Harper  <jackson@ximian.com>
15225         * MdiClient.cs: Pass some signature methods through to base.
15227 2005-11-28  Jackson Harper  <jackson@ximian.com>
15229         * ListView.cs: Raise the click event when items are clicked.
15231 2005-11-28  Jackson Harper  <jackson@ximian.com>
15233         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
15234         a nullref.
15236 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
15238         * ThemeNice.cs: - Removed 1 pixel bitmaps
15239           - Use SmoothingMode.AntiAlias where it makes sense
15240             (ScrollButton arrow for example)
15241           - Enhanced Button focus drawing
15242           - Fixed ComboBox drawing (no artefacts anymore, focus
15243             rectangle is back again, reduced size of ComboButton, etc.)
15244           - Fixed RadioButton focus drawing for Appearence.Button
15245           - Slight ScrollButton redesign
15246           - Some LinearGradientBrush size fixes
15247           - GroupBoxes have now rounded edges
15248           - Fixed StatusBar drawing
15250 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
15252         * ThemeNice.cs: - Remove dead code
15253           - use correct background colors for menus, etc.
15254           - Fake pixel drawing with 1 pixel bitmaps
15256 2005-11-24  Jackson Harper  <jackson@ximian.com>
15258         * MdiClient.cs: Size the scrollbars when resizing the window.
15259         - Resize the maximized windows when the client is resized
15260         * Form.cs: Make the child context available
15261         
15262 2005-11-23  Jackson Harper  <jackson@ximian.com>
15264         * MdiChildContext.cs: Don't size windows if they are maximized.
15266 2005-11-23  Mike Kestner  <mkestner@novell.com>
15268         * ContextMenu.cs: use MenuTracker.
15269         * Control.cs: remove menu handle usage.
15270         * Form.cs: remove menu handle usage.
15271         * Hwnd.cs: remove menu handle usage.
15272         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
15273         motion and clicks to the new Tracker handlers.
15274         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
15275         and handle usage.
15276         * MenuAPI.cs: refactored to combine popup and menubar event handling.
15277         Killed the MENU and MENUITEM data types and associated collections
15278         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
15279         MenuTracker class that exposes the leftovers from the old MenuAPI
15280         static methods. Restructured Capture handling so that only one grab is
15281         done for the entire menu hierarchy instead of handing off grabs to
15282         submenus. Tracker now has an invisible control to Capture when active.
15283         * MenuItem.cs: add sizing accessors, kill Create
15284         and handle usage.
15285         * Theme.cs: remove menu handle and MENU(ITEM) usage.
15286         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
15287         MENU(ITEM). remove menu handle usage, use Menu directly.
15288         * XplatUIDriver.cs: remove menu handle usage.
15289         * XplatUIOSX.cs: remove menu handle usage.
15290         * XplatUIWin32.cs: remove menu handle usage.
15291         * XplatUIX11.cs: remove menu handle usage.
15293 2005-11-22  Jackson Harper  <jackson@ximian.com>
15295         * Hwnd.cs: Don't compute the menu size for
15296         DefaultClientRectangle.
15297         - Reenable menu sizes being computed for GetClienRectangle.
15298         * Form.cs: Remove comment of trechery
15299         
15300 2005-11-22  Jackson Harper  <jackson@ximian.com>
15302         * Hwnd.cs: The adjustments for the menu bar are made when it is
15303         attached to the form.
15305 2005-11-19  Jackson Harper  <jackson@ximian.com>
15307         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
15308         (just like on windows).
15310 2005-11-19  Jackson Harper  <jackson@ximian.com>
15312         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
15313         use real buttons anymore because they are in non client area. The
15314         one TODO here is that I need to somehow invalidate a section of
15315         the non client area.
15317 2005-11-18  Jackson Harper  <jackson@ximian.com>
15319         * Control.cs: Put the enum check back in now that MDI doesnt have
15320         to use this to set border styles.
15321         * Form.cs: Only set mdi child windows borders if the handle has
15322         been created.
15323         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
15324         this directly on to the driver.
15325         - Get the move start position before adjusting for the titlebar
15326         height, this fixes the windows "skipping" when they are first
15327         moved.
15329 2005-11-18  Jackson Harper  <jackson@ximian.com>
15331         * XplatUIX11.cs: Just compute the mdi borders separately as they
15332         don't totally match up with normal form borders.
15334 2005-11-18  Jackson Harper  <jackson@ximian.com>
15336         * Control.cs: Set WS_ styles for borders, so that the driver does
15337         not have to retrieve the control instance to figure out what kind
15338         of borders it should have.
15339         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
15340         driver can know its an mdi child easily.
15341         * XplatUIX11.cs: Get the border styles and whether the window is
15342         MDI from the Styles and ExStyles params instead of having to get a
15343         control. This prevents a chicken and egg problem.       
15345 2005-11-18  Jackson Harper  <jackson@ximian.com>
15347         * MdiClient.cs: Fix typo so scrollbars show up correctly.
15349 2005-11-18  Jackson Harper  <jackson@ximian.com>
15351         * MdiClient.cs: Calculate when to add and remove scrollbars
15352         correctly.
15353         * MdiChildContext.cs: Adjust the y position to take the titlebar
15354         into account.
15355         - No height for FormBorderStyle.None
15357 2005-11-18  Jackson Harper  <jackson@ximian.com>
15359         * Control.cs: Allow non enum values to be used for
15360         InternalBorderStyle.  MDI does this to set a special border style.
15361         - New utility methods for converting points to/from client coords
15362         - Add the newly created control to the Controls collection before
15363         updating its style. This way UpdateStyle can walk the control
15364         heirarchy to find the control if needed.
15365         so I don't need to create a new Point object all the time.
15366         * Form.cs: Let MDI windows handle their border styles.
15367         - Set styles on MDI windows so the correct title style is derived.
15368         * MdiChildContext.cs: Move all the painting and window handling
15369         into the non client area.
15370         - Use correct sizing and put correct buttons on frames based on
15371         the FormBorderStyle.
15372         - Notify the mdi client about scrolling
15373         - Need to handle the buttons ourselves now, because they are all
15374         in non client areas and we can't add controls there.
15375         * MdiClient.cs: Halfway to scrolling, this implementation is
15376         somewhat broken though, we need to check to make sure other
15377         windows aren't causing scrolling before removing the bars. Also
15378         the bars need to be drawn on top, maybe I can switch implicit
15379         controls to be on top.
15380         * Hwnd.cs: caption_height and tool_caption_height are now
15381         properties of an hwnd, this way they can be set by the driver
15382         based on the type of window they are.  In X11 the window manager
15383         handles the decorations so caption_height is zero unless its an
15384         MDI window.
15385         - Add 3 pixel borders for MDI windows (0xFFFF).
15386         - Get rid of some code duplication, have DefaultClientRectanle
15387         just call GetClientRectangle.
15388         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
15389         Hwnd now.
15390         - Set border styles differently for mdi windows.
15391         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
15392         Hwnd now.
15393         
15394 2005-11-15  Mike Kestner  <mkestner@novell.com>
15396         * Menu.cs: when adding an item to the collection, if item is already 
15397         parented, remove it from the parent.
15399 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
15401         * X11DesktopColors.cs: Added KDE support
15403 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
15405         * XplatUIWin32.cs: 
15406           - Clipboard methods now can translate Rtf format
15407           - No longer removes clipboard contents whenever a new format is added
15408             to allow placing multiple formats on the clipboard
15409         * Clipboard.cs: Clipboard now supports getting a IDataObject and
15410           will place all formats contained in it onto the clipboard. Also
15411           now cleans the clipboard before placing a new object onto it
15412         * RichTextBox.cs:
15413           - Implemented set_Rtf
15414           - Implemented set_SelectedRtf
15415           - Created InsertRTFFromStream() method to allow single code base
15416             for all properties and methods that insert RTF into document
15417           - Removed debug output
15418         * TextControl.cs:
15419           - Fixed Delete(int) to fix up line numbers
15420           - Fixed ReplaceSelection to combine start and end line
15421           - Fixed serious DeleteChars bug that would leave the document tree
15422             broken
15423           - Improved DumpTree with several logic checks to detect broken
15424             document trees
15425           - Removed debug lines
15426           - Fixed Caret.WordForward/WordBack moving code, now always also 
15427             updates caret.tag (fixes crash when word-selecting across tag
15428             boundaries via keyboard)
15429           - Added Insert() method for inserting multiline text into documents
15430           - Fixed DeleteChars() calculation errors that would cause a broken
15431             tag chain with multiple tag lines
15432           - DeleteChars() no longer crashes on multi-tag lines if not all tags
15433           - Split() no longer moves caret if split is at caret location
15434           - ReplaceSelection() now updates the cursor and re-displays it
15435           - ReplaceSelection() now uses new Insert() method to avoid code
15436             duplication
15437           - FormatText() can now handle formatting partial lines
15438         * TextBoxBase.cs:
15439           - Append now uses new TextControl.Insert() method (this avoids 
15440             duplicate code)
15441           - Implemented Ctrl-X (Cut) (
15442           - Implemented Ctrl-C (Copy)
15443           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
15444             regeneration when pasting text; roundtripping Copy&Paste within
15445             edit control still fails due to some calculation bugs in GenerateRTF)
15446           - The Delete key will now remove the current selection if it is visible
15447         * TextBox.cs: Removed debug lines
15448         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
15449           driver to be initialized and can't therefore be done via a static ctor)
15451 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
15453         * TextControl.cs: Added backend code for finding char arrays and strings
15454         * TextBoxBase.cs:
15455           - Added mouse wheel scroll support
15456           - Added support for VScroll and HScroll events
15457         * RichTextBox.cs:
15458           - Implemented all seven Find() variants
15459           - Implemented GetCharFromPosition()
15460           - Implemented GetCharIndexFromPosition()
15461           - Implemented GetLineFromIndex()
15462           - Implemented GetPositionFromCharIndex();
15463           - Implemented SaveFile for PlainText and UnicodeText
15464           - Fixed set_Font, now setting a new font applies that font to
15465             the whole document
15466           - Implemented generic Document to RTF converter
15467           - Implemented SaveFile for RichText format (still missing unicode
15468             conversion for non-ansi chars)
15469           - Implemented get_Rtf
15470           - Implemented get_SelectedRtf
15472 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
15474         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
15475           to allow any captures to be released before triggering OnClick. This
15476           way a click handler may capture the mouse without interference.
15477         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
15478           This way we send them even though X may not allow a grab (if the window
15479           isn't visible, for example)
15481 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
15483         * DataGridViewRowEventArgs.cs: DataGridView implementation
15484         * DataGridViewElement.cs: DataGridView implementation
15485         * DataGridViewComboBoxCell.cs: DataGridView implementation
15486         * DataGridViewDataErrorContexts.cs: DataGridView implementation
15487         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
15488         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
15489         * ImageLayout.cs: DataGridView implementation
15490         * DataGridViewComboBoxColumn.cs: DataGridView implementation
15491         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
15492         * DataGridViewSelectionMode.cs: DataGridView implementation
15493         * IDataGridViewEditingControl.cs: DataGridView implementation
15494         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
15495         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
15496         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
15497         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
15498         * DataGridViewColumnSortMode.cs: DataGridView implementation
15499         * DataGridView.cs: DataGridView implementation
15500         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
15501         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
15502         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
15503         * Padding.cs: DataGridView implementation
15504         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
15505         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
15506         * DataGridViewRowEventHandler.cs: DataGridView implementation
15507         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
15508         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
15509         * DataGridViewButtonCell.cs: DataGridView implementation
15510         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
15511         * DataGridViewEditMode.cs: DataGridView implementation
15512         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
15513         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
15514         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
15515         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
15516         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
15517         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
15518         * DataGridViewCellEventHandler.cs: DataGridView implementation
15519         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
15520         * DataGridViewCellStyleConverter.cs: DataGridView implementation
15521         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
15522         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
15523         * DataGridViewColumnEventArgs.cs: DataGridView implementation
15524         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
15525         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
15526         * QuestionEventArgs.cs: DataGridView implementation
15527         * IDataGridViewEditingCell.cs: DataGridView implementation
15528         * DataGridViewTriState.cs: DataGridView implementation
15529         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
15530         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
15531         * DataGridViewColumnCollection.cs: DataGridView implementation
15532         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
15533         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
15534         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
15535         * DataGridViewColumn.cs: DataGridView implementation
15536         * DataGridViewCellBorderStyle.cs: DataGridView implementation
15537         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
15538         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
15539         * DataGridViewRow.cs: DataGridView implementation
15540         * DataGridViewImageCellLayout.cs: DataGridView implementation
15541         * DataGridViewImageCell.cs: DataGridView implementation
15542         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
15543         * DataGridViewCheckBoxCell.cs: DataGridView implementation
15544         * DataGridViewHeaderCell.cs: DataGridView implementation
15545         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
15546         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
15547         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
15548         * DataGridViewTextBoxColumn.cs: DataGridView implementation
15549         * QuestionEventHandler.cs: DataGridView implementation
15550         * DataGridViewCellStyleScopes.cs: DataGridView implementation
15551         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
15552         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
15553         * DataGridViewCell.cs: DataGridView implementation
15554         * DataGridViewCellEventArgs.cs: DataGridView implementation
15555         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
15556         * DataGridViewCellStyle.cs: DataGridView implementation
15557         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
15558         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
15559         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
15560         * TextFormatFlags.cs: DataGridView implementation
15561         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
15562         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
15563         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
15564         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
15565         * DataGridViewButtonColumn.cs: DataGridView implementation
15566         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
15567         * HandledMouseEventArgs.cs: DataGridView implementation
15568         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
15569         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
15570         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
15571         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
15572         * DataGridViewRowCollection.cs: DataGridView implementation
15573         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
15574         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
15575         * DataGridViewHitTestType.cs: DataGridView implementation
15576         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
15577         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
15578         * DataGridViewColumnEventHandler.cs: DataGridView implementation
15579         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
15580         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
15581         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
15582         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
15583         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
15584         * DataGridViewContentAlignment.cs: DataGridView implementation
15585         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
15586         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
15587         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
15588         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
15589         * DataGridViewPaintParts.cs: DataGridView implementation
15590         * DataGridViewCellCollection.cs: DataGridView implementation
15591         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
15592         * DataGridViewImageColumn.cs: DataGridView implementation
15593         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
15594         * DataGridViewElementStates.cs: DataGridView implementation
15595         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
15596         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
15597         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
15598         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
15599         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
15600         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
15601         * DataGridViewRowHeaderCell.cs: DataGridView implementation
15602         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
15603         * DataGridViewTextBoxCell.cs: DataGridView implementation
15604         * DataGridViewBand.cs: DataGridView implementation
15605         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
15606         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
15607         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
15608         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
15609         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
15610         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
15611         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
15612         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
15613         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
15614         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
15615         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
15617 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
15619         * ThemeWin32Classic.cs: 
15620           - Draw the outside focus rectangle around buttons
15621           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
15622             doesn't use end caps for every dash of a line anymore. This
15623             workaround ignores the forecolor.
15625 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
15627         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
15628           endian safe.
15630 2005-11-07  Jackson Harper  <jackson@ximian.com>
15632         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
15634 2005-11-07  Jackson Harper  <jackson@ximian.com>
15636         * ScrollableControl.cs: Calculate the maximum and change vars
15637         (more) correctly so that scrollbars appear as a sensible size.
15639 2005-11-04  Jackson Harper  <jackson@ximian.com>
15641         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
15642         collection.
15643         * TreeView.cs: When the tree is sorted null out the top_node so
15644         that it is recalculated.
15645         - Use dotted lines instead of dashed lines to match MS better.
15647 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
15649         * ListView.cs: 
15650           - Implements key search for items. Useful when browsing files with FileDialog
15651           - When changing view mode or when clear the items reset scrollbar positions
15653 2005-11-04  Jackson Harper  <jackson@ximian.com>
15655         * CurrencyManager.cs: Implement the MetaDataChanged event, the
15656         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
15657         as to what the method may do as there is no real way of creating a
15658         derived CurrencyManager and calling the method. 
15660 2005-11-03  Jackson Harper  <jackson@ximian.com>
15662         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
15663         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
15664         method which seems to just be used internally to refresh the tabs.
15666 2005-11-03  Jackson Harper  <jackson@ximian.com>
15668         * TabControl.cs: Implement the remove method. Fix some broken
15669         comments.
15671 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
15673         * DateTimePicker.cs:
15674           - Added missing DateTimePickerAccessibleObject class
15675           - Added missing events
15676           - Added OnFontChanged method
15677         * Form.cs: Added missing attributes
15678         * TreeView.cs: Added missing attributes
15680 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
15682         * GridItemCollection.cs: Fix signatures
15684 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
15686         * XplatUI.cs: Updated build rev/date
15687         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
15688           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
15689         * Application.cs: Trigger context-specific ExitThread events
15691 2005-11-03  Jackson Harper  <jackson@ximian.com>
15693         * Menu.cs:
15694         * MainMenu.cs:
15695         * GridTableStylesCollection.cs:
15696         * Timer.cs:
15697         * TabPage.cs:
15698         * HelpProvider.cs:
15699         * StatusBar.cs:
15700         * MonthCalendar.cs: Signature fixes
15702 2005-11-03  Jackson Harper  <jackson@ximian.com>
15704         * TreeNodeCollection.cs: Remove should not be virtual.
15705         * TreeView.cs: Implement the last of the missing methods.
15707 2005-11-03  Jackson Harper  <jackson@ximian.com>
15709         * TreeNodeConverter.cs: Implement to get off my class-status back.
15711 2005-11-03  Jackson Harper  <jackson@ximian.com>
15713         * TreeView.cs: Hookup the bits for drag and drop.
15714         * TreeNode.cs: Don't cache the tree_view or index anymore, now
15715         that nodes can be moved from tree to tree easily this just causes
15716         all sorts of problems.
15717         * TreeNodeCollection: Don't need to give treenodes an index and
15718         treeview anymore when they are added, these are computed on the
15719         fly. Also make sure to remove a node before its added.
15721 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
15723         * TextControl.cs:
15724           - Added CaretSelection enum
15725           - Added comparison methods to Marker struct, makes selection code
15726             more readable
15727           - Added SelectionStart and SelectionEnd as 'moveable' location for
15728             the CaretDirection enum and handler
15729           - Added selection_prev variable to track optimized invalidation for
15730             word and line selection
15731           - Added SelectionVisible property (returns true if there is a valid 
15732             selection)
15733           - Switched CaretHasFocus to only display the caret if there is no
15734             visible selection
15735           - Avoiding StringBuilder.ToString to retrieve a single char, instead
15736             using the direct character index; should be much faster
15737           - Added various conditional debug statements
15738           - Fixed invalidation calculation for selection ranges
15739           - Added ExpandSelection() method to support word and line selection
15740           - Switched SetSelectionToCaret to use new Marker compare overloads
15741           - Added central IsWordSeparator() method to determine word 
15742             separators/whitespace and FindWordSeparator() to streamline common
15743             usage of IsWordSeparator()
15744         * TextBoxBase.cs:
15745           - Removed unneeded grabbed variable, it was just mirroring
15746             Control.Capture
15747           - No longer firing OnTextChanged event when Text setter is called,
15748             since the base will fire the event for us
15749           - Added handling of Ctrl-Up/Down selection
15750           - Added handling of Shift-Cursorkey selection
15751           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
15752             words
15753           - Added handling of Shift and Ctrl-Shift-Home/End selection
15754           - Removed some debug output
15755           - Added handling for single/double/tripple-click to place caret/
15756             select word/select line respectively (Fixes bug #76031)
15757           - Added support for drag expansion of word/line selection
15758         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
15759           current selection
15761 2005-11-02  Jackson Harper  <jackson@ximian.com>
15763         * X11Dnd.cs: If the drag is going to and from a MWF window just
15764         copy the data instead of sending it out through the X Selection
15765         mechanism.
15767 2005-11-02  Jackson Harper  <jackson@ximian.com>
15769         * X11Dnd.cs:
15770         * XplatUIX11.cs: When in a drag we don't want motion notify
15771         messages to get passed on to the other controls. This prevents
15772         mouse move messages from showing up in the drag source.
15774 2005-11-02  Jackson Harper  <jackson@ximian.com>
15776         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
15777         the correct button is release to end a drag.
15778         * XplatUIX11.cs: Make the button state internal so the drag system
15779         can access it.  Dragging needs to know about all button releases,
15780         not just left button.
15782 2005-11-02  Miguel de Icaza  <miguel@novell.com>
15784         * Form.cs (Icon): If the icon is null, reset the icon to the
15785         default value. 
15787         * Cursor.cs: When writing the AND-mask bitmap do not include the
15788         number of colors, but hardcode those to two (black and white),
15789         fixes the loading of color cursors (Paint Dot Net).
15791         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
15792         turn off autoscaling.
15794         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
15796 2005-11-02  Jackson Harper  <jackson@ximian.com>
15798         * X11Dnd.cs: Make sure to send a status message if the pointer
15799         enters a control that can not accept a drop, otherwise the cursor
15800         isn't updated correctly. Also tried to compress the lines of code
15801         a bit.
15803 2005-11-02  Jackson Harper  <jackson@ximian.com>
15805         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
15806         set actions correctly.  This isn't perfect as XDND and win32 have
15807         some differences on how you allow actions. I'll clear this up by
15808         adding a path for drag from MWF to MWF windows.
15809         * XplatUIX11.cs: Hook into the dnd system.
15811 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
15813         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
15814         previously shown but they are no longer need it. Very obvious when 
15815         browsing files with FileDialog.
15817 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
15819         * Control.cs: We always need to call OnPaintBackground. We pretty much
15820           ignore AllPaintingInWmPaint and always do the painting there, whether 
15821           it's set or not, since we always ignore the WM_ERASEBKGND message 
15822           (which we don't generate on X11). This fixes #76616.
15823         * Panel.cs: Removed unneeded background painting. This happens properly
15824           in Control.cs already
15826 2005-10-31  Mike Kestner  <mkestner@novell.com>
15828         * Menu.cs: Add items to collection before setting their index.
15829         * MenuItem.cs : add range checking with ArgumentException like MS.
15830         [Fixes #76510]
15832 2005-10-31  Jackson Harper  <jackson@ximian.com>
15834         * ListBox.cs: Invalidate if the area is visible at all not just
15835         contained in the visible rect. Fixes unselection of semi visible
15836         items.
15838 2005-10-31  Jackson Harper  <jackson@ximian.com>
15840         * Control.cs: Consistently name the dnd methods. Make them
15841         internal so we can override them to match some MS behavoir
15842         internally.
15843         * Win32DnD.cs: Use the new consistent names.
15845 2005-10-31  Jackson Harper  <jackson@ximian.com>
15847         * TreeView.cs: Don't draw the selected node when we lose focus.
15849 2005-10-31  Jackson Harper  <jackson@ximian.com>
15851         * X11Dnd.cs: We still need to reset the state even though a full
15852         reset isn't being done, otherwise status's still get sent all over
15853         the place.
15855 2005-10-31  Jackson Harper  <jackson@ximian.com>
15857         * Control.cs: Make the dnd_aware flag internal so the dnd
15858         subsystem can check it. Catch exceptions thrown in dnd handlers to
15859         match MS behavoir.
15860         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
15861         * X11Dnd.cs: Handle null data in the converters. Set the XDND
15862         version when sending a XdndEnter. Use the control/hwnd dnd_aware
15863         flags to reduce the number of dnd enters/status's sent.
15865 2005-10-31  Jackson Harper  <jackson@ximian.com>
15867         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
15869 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
15871         * PictureBox.cs: Fixes 76512
15873 2005-10-28  Jackson Harper  <jackson@ximian.com>
15875         * X11Dnd.cs: Early implementation to support winforms being a drag
15876         source for data on X11. Also restructured the converters so they
15877         can go both ways now.
15878         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
15879         
15880 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
15882         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
15883           clipboard requests
15885 2005-10-27  Jackson Harper  <jackson@ximian.com>
15887         * TreeNode.cs: Implement serialization so my DnD examples will work.
15889 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
15891         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
15892           TreeView.cs: Don't dispose objects that are not owned.
15893           
15894 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
15896         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
15897           should retrieve the current cursor and report that, but XplatUI
15898           doesn't (yet) have an interface for that (and I'm not sure I even
15899           can, on X11)
15900         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
15901           until any message loop processing is done (and the WM_SETCURSOR
15902           replaces the cursor to the proper one)
15903         * XplatUIX11.cs: 
15904           - Fixed override behaviour, we can't set the cursor globally on X11, 
15905             just for our windows.
15906           - Invalidating the System.Drawing X11 display handle when we are
15907             shutting down
15908         * Control.cs: Fix to make csc happy
15910 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
15912         * TextBoxBase.cs: 
15913           - get_Text: Add last line (without trailing newline) to returned
15914             value (Fixes 76212)
15915           - get_TextLength: Count last line in returned length
15916           - ToString: Call Text property instead of duplicating code
15918 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
15920         * ImageList.cs: Dispose ImageAttributes objects.
15922 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
15924         * ImageList.cs: Use attribute constructors with less arguments where
15925           possible.
15927 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
15929         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
15930           Use typeof instead of strings when assembly is referenced. Added
15931           some more comments.
15933 2005-10-21  Jackson Harper  <jackson@ximian.com>
15935         * ListView.cs: Raise a double click event. Also tried to somewhat
15936         fix when the selectedindexchanged event is raised. Its still
15937         broken though.
15939 2005-10-21  Jackson Harper  <jackson@ximian.com>
15941         * TreeView.cs: New method to invalidate the plus minus area of a
15942         node without invalidating the whole node (maybe this can be used
15943         in some more places).
15944         * TreeNodeCollection.cs: When adding to an empty node we need to
15945         invalidate its plus minus area so the little block shows up.
15946         
15947 2005-10-21  Jackson Harper  <jackson@ximian.com>
15949         * TreeView.cs: Make sure that when we invalidate a node the bounds
15950         are big enough to cover the selected box and the focus
15951         rectangle. Use a different colour for the lines connecting nodes
15952         so they show up with all themes.
15954 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
15956         * NativeWindow.cs: Don't call anything that could call into the driver,
15957           we might be on a different thread.
15959 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
15961         * Control.cs(Dispose): Since Dispose might run on a different thread,
15962           make sure that we call methods that could call into the driver via
15963           invoke, to avoid thread issues
15965 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
15967         * XplatUI.cs: Removed finalizer
15968         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
15969           not allowing to be called on the finalizer thread.
15971 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
15973         * ImageList.cs:
15974           - Reverted r51889 and r51891.
15975           - Added ImageListItem class that stores unmodified image items and image
15976             properties required to create list images until handle is created.
15977           - Added AddItem and moved image creation logic to AddItemInternal.
15978           - Added CreateHandle method that creates images based on unmodified items.
15979           - Added DestroyHandle that changes state to store unmodified items.
15980           - Add and AddStrip methods no more create handle.
15981           - ReduceColorDepth has no return value.
15982           - Dispose destroys handle.
15983           - Modified other methods to reflect the above changes.
15984           - Implemented key support.
15985           - Added profile 2.0 members and attributes.
15986           - Added private Reset and ShouldSerialize methods that provide the same
15987             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
15988             them as they are private.
15989           - Added some more comments about implementation details.
15991 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
15993         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
15995 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
15997         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
15999 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
16001         * DataGridDrawingLogic.cs: Fixes column hit calcultation
16002         * DataGridColumnStyle.cs: Remove debug message
16004 2005-10-20  Jackson Harper  <jackson@ximian.com>
16006         * TreeView.cs: We can always get input keys regardless of whether
16007         or not editing is enabled. They are used for navigation.
16009 2005-10-20  Jackson Harper  <jackson@ximian.com>
16011         * TreeNode.cs: Use the viewport rect for determining if a node
16012         needs to be moved for visibility. Don't use Begin/End edit. This
16013         calls a full refresh when its done.
16014         * TreeView.cs: New SetBottom works correctly.  Make the viewport
16015         rect property internal so the treenodes can see it. When clicking
16016         on a node we need to ensure that its visible because it might just
16017         be partly visible when clicked.
16019 2005-10-20  Jackson Harper  <jackson@ximian.com>
16021         * TreeNodeCollection.cs: Remove debug code.
16023 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
16025         * Datagrid.cs: Implements column sorting in Datagrid
16026         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
16028 2005-10-20  Jackson Harper  <jackson@ximian.com>
16030         * TreeNodeCollection.cs: Remove items properly. Update the correct
16031         area after removing them.
16033 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
16035         * Datagrid.cs: Should not call base.OnPaintBackground
16037 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
16039         * XplatUIX11.cs (GetMessage):
16040           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
16041             window instead of client window
16042           - Now properly calculates NC_xBUTTONUP message coordinates
16043           - ScreenToMenu now properly calculates it's coordinates of whole 
16044             window, since menus are in the whole window, not in the client
16045             window
16046           - Added WholeToScreen coordinate translation method
16048 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
16050         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
16051           want to return a message, loop back to the beginning of the function
16052           and grab the next real message to process instead.
16054 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
16056         * Splitter.cs: Properly set limits if no filler control is used
16058 2005-10-19  Jackson Harper  <jackson@ximian.com>
16060         * ColorDialog.cs: Don't show the help button if it is not enabled
16061         instead of disabling it (this is what MS does). Don't create the
16062         panel until the dialog is run, otherwise the vars (such as
16063         ShowHelp) are not set yet.
16065 2005-10-19  Jackson Harper  <jackson@ximian.com>
16067         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
16068         are reduced when adding nodes.
16069         * TreeNode.cs:
16070         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
16071         tree.
16072         
16073 2005-10-19  Jackson Harper  <jackson@ximian.com>
16075         * FolderBrowserDialog.cs: End editing our treeview so the window
16076         actually gets refreshed.
16078 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
16080         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
16081           Obsoleted handling of WM_ERASEBKGND, now always draws our background
16082           inside of WM_PAINT
16084 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
16086         * MenuAPI.cs: Returns after Hidding window
16087         * XplatUIX11.cs: Added TODO found while debugging menu issues
16089 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
16091         * XplatUIX11.cs: Do not re-map the whole window when it's size
16092           becomes non-zero unless it's supposed to be actually visible
16094 2005-10-18  Jackson Harper  <jackson@ximian.com>
16096         * TreeView.cs: We don't need to keep a count anymore.
16097         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
16098         use the Grow method.
16100 2005-10-18  Jackson Harper  <jackson@ximian.com>
16102         * TreeNodeCollection.cs: Insert is not supported on arrays, so
16103         implement it manually here.
16105 2005-10-18  Jackson Harper  <jackson@ximian.com>
16107         * ImageList.cs: Dont kill the list when the colour depth is
16108         changed, just change the colour depth of all the images.
16109         - Same goes for setting the image size. Just resize them all
16110         instead of killing the list softly.
16112 2005-10-18  Jackson Harper  <jackson@ximian.com>
16114         * Control.cs: Don't invalidate empty rectangles.
16116 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
16118         * ListViewItem.cs:
16119           - Adds checked item to the Checked/Item lists (where empty before)
16120           - Do not add items to the Selected lists if they are already present
16121         * ListView.cs:
16122           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
16123           - When deleting items make sure that we delete them for the Selected
16124           and Checked list also.
16126 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
16128         * Label.cs: Dispose objects no longer used
16129         * ThemeWin32Classic.cs: Dispose objects no longer used
16131 2005-10-18  Jackson Harper  <jackson@ximian.com>
16133         * TabControl.cs: Don't refresh the whole control when the tabs are
16134         scrolled, we just need to refresh the tab area.
16136 2005-10-17  Jackson Harper  <jackson@ximian.com>
16138         * XplatUIX11.cs: Compress code a little bit. Only calculate the
16139         after handle when we need it.
16141 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
16143         * Control.cs: When the parent size changes, recalculate anchor 
16144           positions. Partial fix for #76462
16146 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
16148         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
16149           drawn. Fixes #76462
16151 2005-10-17  Jackson Harper  <jackson@ximian.com>
16153         * MonthCalendar.cs: Don't create the numeric up down until our
16154         handle is created. Otherwise our handle is created in the
16155         constructor and we don't know if we are a WS_CHILD or WS_POPUP
16156         yet.
16158 2005-10-17  Jackson Harper  <jackson@ximian.com>
16160         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
16161         correctly.
16163 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
16164         * TreeNode.cs : small logical fix (was using local var instead of field)
16165         
16166 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
16168         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
16170 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
16172         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
16174 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
16176         * Control.cs: 
16177           - Re-implemented anchoring code. My first version was really broken.
16178             This fixes bug #76033. Unlike the previous implementation we will
16179             no longer have round errors since all numbers are calculated from
16180             scratch every time. Removed various anchor-related obsolete vars.
16181           - InitLayout no longer causes layout event firing and layout to be 
16182             performed
16184 2005-10-16  Jackson Harper  <jackson@ximian.com>
16186         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
16187         which was broken).
16189 2005-10-16  Jackson Harper  <jackson@ximian.com>
16191         * TabControl.cs: Remove debug code.
16193 2005-10-16  Jackson Harper  <jackson@ximian.com>
16195         * XEventQueue.cs: Increase the default queue size (very simple
16196         apps needed to grow the queue).
16197         * Hwnd.cs: No finalizer so we don't need to suppress
16198         finalization. Compute the invalid area manually so a new rectangle
16199         does not newto be created.
16200         * ScrollableControl.cs: Don't set any params (otherwise visibility
16201         isn't set correctly).
16202         * MdiChildContext.cs: New constructor takes the mdi parent so it
16203         doesn't have to be computed and avoids a crash on windows. Draw
16204         the window icon properly, and allow the text to be seen.
16205         * Form.cs: Use new MdiChildContext constructor. Make sure the
16206         child context isn't null in wndproc.
16207         * TabControl.cs: Don't set focus, this is muddling keyboard
16208         behavoir. Expand the tab rows when a window size increase will
16209         allow extra tabs to be seen. Don't allow tabs smaller than the
16210         width of a window to be scrolled out of view.
16211         * TreeNode.cs:
16212         * TreeView.cs: Use measure string to calculate a nodes width, the
16213         width is cached and only updated when the text or the font is
16214         changed. Don't check for expand/collapse clicks on the first level
16215         nodes if root lines are disabled.
16216         
16217 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
16219         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
16221 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
16223         * DataGridBoolColumn.cs: fixes warning
16225 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
16227         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
16228         to match more to match more precisely the MS Net behavior
16230 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
16232         * Hwnd.cs: Added field to track if window is mapped
16233         * XplatUIX11.cs: 
16234           - Unmap windows if they become 0-size, re-map when 
16235             they are >0 again; fixes #76035
16236           - Re-set our error handler after initializing X11Desktop
16237             to override any error handlers Gtk or whatever was called
16238             may have set.
16240 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
16242         * CheckedListBox.cs: Removed unused vars
16243         * ListView.cs: Fixed signatures
16244         * RichTextBox.cs: Removed unused vars
16245         * TextBoxBase.cs: Removed unused vars
16246         * XplatUIWin32.cs: Removed unused vars
16247         * XplatUIX11.cs: Removed unused vars
16248         * XplatUI.cs: Updated version and date to latest published
16250 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
16252         * Cursor.cs: Added private .ctor to work around a bug in
16253           resourceset (Thanks to Geoff Norton for the help on this)
16254         * SplitterEventArgs.cs: Made fields accessible so we don't
16255           waste boatloads of objects and can reuse the same one
16256           in Splitter
16257         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
16258           any captions and borders when generating screen coordinates
16259         * Splitter.cs: Reimplemented control, now fully complete, uses
16260           rubberband drawing, supports and obeys all properties, has
16261           proper cursors
16263 2005-10-13  Miguel de Icaza  <miguel@novell.com>
16265         * Form.cs (Form): Setup default values for autoscale and
16266         autoscale_base_size;  Make these instance variables, not static
16267         variables. 
16269         (OnLoad): on the first load, adjust the size of the form.
16271 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
16273         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
16274           width argument to DrawReversibleRectangle()
16275         * XplatUIWin32.cs, XplatUIX11.cs: 
16276           - Implemented width for DrawReversibleRectangle()
16277           - Added logic to DrawReversibleRectangle that recognizes a zero
16278             width or height and only draws a line in that situation
16279         
16280 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
16282         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
16283         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
16284         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
16285           method (it uses our FosterParent window to get a graphics context)
16287 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
16289         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
16290           and SetWindowBackground methods
16291         * Control.cs:
16292           - Setting proper ControlStyles
16293           - We no longer call XplatUI.SetWindowBackground and XplatUI.
16294             EraseWindowBackground, instead we draw the window background
16295             ourselves in PaintControlBackground. This behaviour is
16296             required to match MS, where, when OnPaintBackground is not
16297             called, the background is not drawn.
16298           - Removed unneeded Refresh() in set_Text
16299         * Hwnd.cs: Dropped the ErasePending support. No longer needed
16300         * XplatUIX11.cs:
16301           - Created DeriveStyles method to translate from CreateParams to
16302             FormBorderStyle and TitleStyle, also handles BorderStyle (which
16303             matches FormBorderStyle enum values)
16304           - Consolidated SetHwndStyles and CalculateWindowRect border/title
16305             style calculations into single DeriveStyles method
16306           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
16307             from redrawing the whole window on any resize or expose.
16308           - Fixed CreateWindow usage of SetWindowValuemask. Before not
16309             all styles were applied to our whole/client window appropriately
16310           - Removed EraseWindowBackground() and SetWindowBackground() methods
16311           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
16312             no longer clear/redraw the background through X
16313           - Removed handling of erase_pending bit, we have no use for it (or
16314             so it seems)
16315         * XplatUIOSX.cs:
16316           - Removed generation and handling of WM_ERASEBKGND message
16317           - Removed EraseWindowBackground() and SetWindowBackground() methods
16318           - Removed handling of hwnd.ErasePending flag
16319         * XplatUIWin32.cs:
16320           - Removed EraseWindowBackground() and SetWindowBackground() methods
16321           - We no longer call EraseWindowBackground on PaintEventStart, we 
16322             ignore the fErase flag, erasing is handled in Control in the
16323             background handler
16324         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
16325           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
16326           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
16327           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
16328           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
16329           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
16330           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
16332 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
16334         * PropertyGrids.cs: Get sub properties
16335         * PropertyGridView.cs: Fix drawing code
16337 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
16339         * ListBox.cs: Fixes 76383
16341 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
16343         * DataGridTextBoxColumn.cs: Sets location and size before attachment
16344         * ThemeWin32Classic.cs: Fixes border drawing and calculations
16345         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
16348 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
16350         * ComboBox.cs: Fixes border drawing
16352 2005-10-10  Miguel de Icaza  <miguel@novell.com>
16354         * MimeIcon.cs: Ignore errors if the file can not be read.
16356 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
16358         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
16359          - Fixed border calculations
16360          - Fixed horizontal scrolling in single column listboxes
16361          - Fixed drawing issues
16363 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
16365         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
16366           FormBorderStyle enum
16367         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
16368           code to determine FormBorderStyles from CreateParams
16369         * Form.cs:
16370           - Fixed bug where we'd set the wrong window styles if we were
16371             not creating an MDI window
16372           - Added call to XplatUI.SetBorderStyle when form borders are set
16373         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
16374         * Hwnd.cs:
16375           - Removed obsolete edge style
16376           - Switched from BorderStyle to FormBorderStyle
16377         
16378 2005-10-10  Jackson Harper  <jackson@ximian.com>
16380         * Form.cs: Use the property to get the window handle instead of
16381         accessing it directly. Prevents a null reference exception.
16383 2005-10-10  Jackson Harper  <jackson@ximian.com>
16385         * TreeView.cs: Don't adjust the rect given to DrawString now that
16386         our libgdiplus draws correctly.
16388 2005-10-08  Jackson Harper  <jackson@ximian.com>
16390         * TreeView.cs: Don't try to find the clicked on node if there are
16391         no nodes in the tree.
16393 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
16395         * RichTextBox.cs:
16397           restore
16399 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
16401         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
16402           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
16403           ErrorProvider.cs:
16404           Use ResPool for brushes and dispose System.Drawing objects that
16405           are not used anymore.
16407 2005-10-07  Jackson Harper  <jackson@ximian.com>
16409         * MdiChildContext.cs: Use the new borders instead of drawing them
16410         ourselves.
16412 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
16414         * Calling UpdateBounds after changing the window's BorderStyle 
16415         since the style can change the ClientSize
16417 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
16419         * Control.cs: Made PaintControlBackground virtual
16420         * Panel.cs: Overriding PaintControlBackground instead of using paint
16421           event; paint event method was interfering with 'real' users of the
16422           event.
16424 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
16426         * ThemeWin32Classic.cs: remove border drawing since it is handled
16427         by the base control class now and was causing double border drawing.
16429 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
16431         * Panel.cs: Redraw our background on paint. Not a pretty solution,
16432           but it does seem to match MS behaviour. This fixes bug #75324
16434 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
16436         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
16437           somewhat hackish looking
16439 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
16441         * TextBoxBase.cs:
16442           - We now accept Enter even if AcceptEnter is false, if the containing
16443             form does not have an AcceptButton configured (fixes bug #76355)
16444           - Calculations are now fixed to no longer use Width/Height, but
16445             ClientSize.Width/Height, since we now support borders (this was
16446             a result of fixing borders and therefore bug #76166)
16447           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
16448             true (fixes bug #76354)
16449         
16450 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
16452         * Control.cs: 
16453           - Defaulting BorderStyle and setting it in XplatUI when our window 
16454             is created
16455           - Added enum check to InternalBorderStyle setter
16456         * XplatUIX11.cs: 
16457           - Added drawing of window borders
16458           - Now properly calculates WM decorations offset for toplevel 
16459             windows (fixes bug #74763)
16460         * XplatUIWin32.cs: 
16461           - Implemented BorderStyles for windows (we're letting win32 draw 
16462             the border for us)
16463           - Fixed the signature for SetWindowLong
16464         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
16465           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
16466           setting borders
16467         * UpDownBase.cs: Remove drawing of borders, this is handled by
16468           the driver, outside the client area
16469         * ListView.cs: Removed bogus border calculations. The control should
16470           be oblivious to borders, since those are not part of the client
16471           area. 
16472         * X11DesktopColors.cs: Commented out (currently) unneeded variables
16473         * ThemeWin32Classic.cs: Removed border calculations from ListView 
16474           drawing code
16476 2005-10-06  Jackson Harper  <jackson@ximian.com>
16478         * MdiChildContext.cs: Clear out the old virtual position remove
16479         all the unneeded calls to CreateGraphics.
16481 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
16483         * TextControl.cs: Use proper color for highlighted text; fixes #76350
16485 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
16487         * Form.cs: 
16488           - Added loading and setting of our new default icon
16489           - Only set icon if window is already created
16491 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
16493         * Label.cs:
16494           - Do not explicitly set the foreground and background colors, to
16495             allow inheriting from parents (fixes #76302)
16496           - Use Control's InternalBorderStyle property to deal with borders
16498 2005-10-06  Jackson Harper  <jackson@ximian.com>
16500         * MdiChildContext.cs: Use the new xplatui function to draw a
16501         reversible rect.
16503 2005-10-06  Jackson Harper  <jackson@ximian.com>
16505         * Form.cs: Add the parent before creating the child context cause
16506         we need the parent when setting up the child.
16508 2005-10-06  Jackson Harper  <jackson@ximian.com>
16510         * FolderBrowserDialog.cs: redo the tree population code so a
16511         second thread isn't used. Should be a lot faster and more stable
16512         now.
16514 2005-10-05  Jackson Harper  <jackson@ximian.com>
16516         * TreeView.cs: There are no expand/collapse boxes if the node has
16517         no children.
16519 2005-10-05  Jackson Harper  <jackson@ximian.com>
16521         * X11DesktopColors.cs: Get menu colours for the gtk theme.
16523 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
16525         * FileDialog.cs: Fix InitialDirectory
16527 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
16529         * ComboBox.cs:
16530                 - Fixes changing between styles
16531                 - Fixes simple mode
16532                 - Fixes last item crashing when navigating with keyboard
16534 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
16536         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
16538 2005-10-05  Jackson Harper  <jackson@ximian.com>
16540         * TreeView.cs: If updating the root node do a full refresh.
16541         * TreeNode.cs: The root node should be expanded by default. Also
16542         added a utility prop to tell if we are the root node.
16543         * TreeNodeCollection.cs: Only refresh if the node we are being
16544         added to is expanded. Also added a comment on a potential
16545         optimization.
16546         
16547 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
16549         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
16550           in dispose method. Fixes #76330
16552 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
16554         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
16556                 - Implements vertical and horizontal scrolling using XplatUI
16557                 - Fixes keyboard navagation
16558                 - Fixes EnsureVisible
16559                 - Drawing fixes
16560                 - Handles and draws focus properly
16563 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
16565         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
16566           Create handle. NET_2_0: Destroy handle when value is null.
16568 2005-10-03  Jackson Harper  <jackson@ximian.com>
16570         * ScrollBar.cs: My last scrollbar patch was broken. This is a
16571         revert and a new patch to prevent the thumb from refreshing so
16572         much.
16574 2005-10-02  Jackson Harper  <jackson@ximian.com>
16576         * ScrollBar.cs: Don't update position if it hasn't actually
16577         changed. This occurs when you hold down the increment/decrement
16578         buttons and the thumb gets to the max/min.
16580 2005-10-01  Jackson Harper  <jackson@ximian.com>
16582         * Form.cs:
16583         * MdiChildContext.cs:
16584         * MdiClient.cs: Implement ActiveMdiChild in Form.
16586 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
16588         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
16590 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
16592         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
16593           be found
16595 2005-09-30  Jackson Harper  <jackson@ximian.com>
16597         * ListBox.cs: Don't do a full refresh unless some data has
16598         actually changed.
16600 2005-09-30  Jackson Harper  <jackson@ximian.com>
16602         * TreeView.cs: Make sure that the checkboxes size is factored in
16603         even when not visible.
16605 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
16607         * FileDialog.cs: Fix Jordi's build break
16609 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
16611         * FileDialog.cs: 
16612                 - Use standard the Windows colours for the combobox as espected
16613                 - Dispose objects that use resouces when no longer need them
16615 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
16617         * X11DesktopColors.cs: Initial incomplete implementation
16618         * XplatUIX11.cs: Added call to initialize X11DesktopColors
16620 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
16622         * Theme.cs: 
16623           - Switched Theme color names to match the names defined in 
16624             System.Drawing.KnownColors. Life's hard enough, no need to make 
16625             it harder.
16626           - Added setters to all theme color properties so themes can set
16627             their color schemes. The setters also propagate the color changes
16628             to System.Drawing.KnownColors via reflection
16629         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
16630           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
16631           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
16632           use the new, more logical theme color names
16633         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
16634           post-NT colors
16635         * ThemeWin32Classic.cs:
16636           - Removed code to set the old classic Windows colors. Instead it
16637             now relies on the colors returned by System.Drawing.KnownColors
16638             which will be either modern static colors (Unix) or colors
16639             read from the user's configuration (Win32)
16640           - Updated to use the new, more logical theme color names
16641           - Switched DataGrid drawing code to use only Theme colors instead of
16642             a mix of System.Drawing.KnownColors and Theme colors
16643           - DrawFrameControl(): Removed code that fills the button area, the
16644             fill would overwrite any previous fill done by a control. This
16645             fixes bug #75338 
16646           - Added DrawReversibleRectangle() stub
16647         * ScrollableControl.cs: Set visible state to false when scrollbars
16648           are removed (pdn fix)
16649         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
16650           DrawReversibleRectangle() method to allow drawing primitive 
16651           'rubber bands'
16652         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
16654 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
16656         * ImageList.cs: Add(Icon): Create handle.
16658 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
16660         * ListView.cs:
16661         * ThemeWin32Classic.cs:
16662                 - Fixes detail mode
16663                 - Sets clippings
16664                 - Issues with drawing
16666 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
16668         * ImageList.cs: Moved RecreateHandle back to ImageList as event
16669           source has to be the ImageList.
16671 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
16673         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
16675 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
16677         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
16679 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
16681         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
16683 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
16684         * GridItem.cs: Fixed TODOs
16685         * GridItemCollection.cs: Added ICollection interface
16687 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
16689         * ImageList.cs: Resize icons when needed.
16691 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
16693         * ListViewItem.cs
16694                 - Fixes GetBounds and returns on screen rects
16695         * ListView.cs:
16696                 - Fixes vertical and horzintal scrolling of items
16697         * ThemeWin32Classic.cs:
16698                 - Fixes drawing
16699                 
16700 2005-09-29  Raja R Harinath  <harinath@gmail.com>
16702         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
16704 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
16706         * ImageList.cs: Added comments about handle creation. Moved Handle,
16707           HandleCreated and OnRecreateHandle implementations to ImageCollection.
16708           Handle is created in Add methods.
16710 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
16711          
16712         * DataGridDrawingLogic.cs: 
16713                 - Takes rows into account on Colum calculations
16714                 - Returns the column when clickig
16715         * DataGrid.cs:
16716                 - Fixes default HitTestInfo values
16717                 - Fixes HitTestInfo.ToString
16718                 - Fixes ResetBackColor          
16719         
16720 2005-09-28  Jackson Harper  <jackson@ximian.com>
16722         * MdiChildContext.cs: Obey rules for fixed sized windows (no
16723         sizing or cursor changes). Also added some temp code to draw the
16724         titlebars text (Makes dev a little easier).
16726 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
16728         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
16730 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
16731          
16732         * ListBox.cs: Fixes bug 76253
16734 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
16736         * ImageList.cs: Added comments about the current implementation. Added
16737           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
16738           Format32bppArgb to preserve transparency and can use Graphics.FromImage
16739           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
16740           with Bitmap.LockBits for better performance. Revised the whole file to
16741           match MS.NET behaviour and provide better performance. Non-public
16742           interface members are calling public members even when they throw
16743           NotSupportedException for better maintainability. Moved ColorDepth,
16744           ImageSize, ImageStream and TransparentColor implementations to
16745           ImageCollection for better performance as these properties are not used
16746           by ImageList.
16747         * ImageListStreamer.cs: Added a new internal constructor that takes an
16748           ImageList.ImageCollection and serializes Images based on
16749           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
16750           match ImageList property name.
16752 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
16754         * ListBox.cs: Fixes IndexFromPoint for last item
16756 2005-09-27  Jackson Harper  <jackson@ximian.com>
16758         * Form.cs: Set the position of new mdi children correctly.
16760 2005-09-27  Jackson Harper  <jackson@ximian.com>
16762         * MdiClient.cs: New mdi children need to be added to the back of
16763         the controls collection so the zorder is set correctly. Also add a
16764         count of all the child windows that have been created.
16766 2005-09-27  Jackson Harper  <jackson@ximian.com>
16768         * Form.cs (CreateParams): Setup MDI forms correctly.
16770 2005-09-27  Jackson Harper  <jackson@ximian.com>
16772         * MdiChildContext.cs:
16773         * MonthCalendar.cs:
16774         * UpDownBase.cs:
16775         * ListBox.cs:
16776         * ListView.cs:
16777         * TextBoxBase.cs:
16778         * TreeView.cs:
16779         * ScrollableControl.cs:
16780         * ComboBox.cs: Add implicit controls using the new implict control
16781         functionality in ControlCollection. Also try to block multiple
16782         control add in a suspend/resume layout to save some cycles.
16783         
16784 2005-09-27  Jackson Harper  <jackson@ximian.com>
16786         * Control.cs: Add functionality to the controls collection to add
16787         'implicit controls' these are controls that are created by the
16788         containing control but should not be exposed to the user. Such as
16789         scrollbars in the treeview.
16790         * Form.cs: The list var of the ControlsCollection is no longer
16791         available because of the potential of implicit controls getting
16792         ignored by someone accessing the list directly.
16794 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
16796         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
16797           loose it's parent. (Fixed bug introduced in r49103 when we added
16798           setting the child parent to null on Remove)
16800 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
16802         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
16803         * Splitter.cs: Added missing attributes for BorderStyle property.
16804         * TextBoxBase.cs: Marked Calculate* methods internal.
16805         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
16806         MS.NET.
16808 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
16809          
16810         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
16812 2005-09-25  Jackson Harper  <jackson@ximian.com>
16814         * TreeView.cs: Update the node bounds correctly regardless of
16815         whether the node is visible.
16817 2005-09-25  Jackson Harper  <jackson@ximian.com>
16819         * ImageList.cs: Don't dispose the image after it is added to the
16820         image list. Only reformat images that need to be resized.
16822 2005-09-25  Jackson Harper  <jackson@ximian.com>
16824         * ImageList.cs: Don't set the format when changing the image.
16826 2005-09-25  Jackson Harper  <jackson@ximian.com>
16828         * TreeView.cs: We can't just assume the node has a font. Use the
16829         treeviews font if no node font is available.
16831 2005-09-25  Jackson Harper  <jackson@ximian.com>
16833         * TreeView.cs: Allow the scrollbars to be reset with negative
16834         values.
16835         - Don't add scrollbars to negative sized windows.
16837 2005-09-23  Jackson Harper  <jackson@ximian.com>
16839         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
16840         old Mono.Posix. Also remove some stray code that shouldn't have
16841         been committed.
16843 2005-09-23  Jackson Harper  <jackson@ximian.com>
16845         * TreeView.cs: Attempt at proper sizing of the horizontal
16846         scrollbar. Also don't resize the scrollbars unless they are
16847         visible.
16849 2005-09-23  Jackson Harper  <jackson@ximian.com>
16851         * TreeView.cs: We don't need to expand the invalid area when the
16852         selection changes, as this is all drawn in the node's bounding
16853         box. The area needs to be expanded (previous typo was contracting
16854         it) when the focus rect moves.
16856 2005-09-23  Jackson Harper  <jackson@ximian.com>
16858         * TreeView.cs: Display the selection box under the correct
16859         circumstances. We were rendering white text with no selection box
16860         before.
16862 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
16864         * TextControl.cs(Split): Now updates selection start/end if it points 
16865           into a line that's being split. Fixes a FIXME and bug #75258
16867 2005-09-23  Jackson Harper  <jackson@ximian.com>
16869         * Binding.cs:
16870         * ListControl.cs: Don't use the path when retrieving binding
16871         managers from the binding context. My bat sense tells me that the
16872         path is only used on insertion.
16874 2005-09-22  Jackson Harper  <jackson@ximian.com>
16876         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
16878 2005-09-22  Jackson Harper  <jackson@ximian.com>
16880         * Splitter.cs: There are special cursors used for splitting.
16881         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
16883 2005-09-22  Jackson Harper  <jackson@ximian.com>
16885         * Splitter.cs: Change the cursor appropriately when the splitter
16886         is moused over, so the user actually knows there is a splitter
16887         there.
16889 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
16891        * Label.cs : Fix ToString method to give same output as MS.NET
16893 2005-09-22  Jackson Harper  <jackson@ximian.com>
16895         * TreeView.cs: Create the scrollbars when the handle is created
16896         and add them right away, just make them invisble. Also account for
16897         the window being shrunk vertically to the point that the vert
16898         scrollbar needs to be added.
16899         - Remove some 0.5 adjustments to get around anti aliasing issues.
16900         
16901 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
16902          
16903         * MainMenu.cs: Fixes default value
16904         * MenuItem.cs: Fixes default value
16906 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
16908         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
16910 2005-09-21  Jackson Harper  <jackson@ximian.com>
16912         * Control.cs: Don't try to set the border style on the window if
16913         it hasn't been created. When the window is created the border
16914         style will be used.
16916 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
16918         * Control.cs (Update): Don't call XplatUI if we don't have a
16919           window handle yet
16921 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
16923         * ContainerControl.cs: Instead of throwing an exception, print
16924           a one-time warning about Validate not being implemented
16925         * XplatUIWin32.cs: Removed debug output
16927 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
16929         * Control.cs: Only set XplatUI background if we expect the windowing
16930           system to handle the background. This stops controls that draw their
16931           own background from flickering
16933         * XplatUIX11.cs: Support custom visuals and colormaps for window 
16934           creation. This allows, amongst other things, using MWF X11 windows 
16935           with OpenGL.
16937 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
16939         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
16940           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
16941           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
16942           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
16943           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
16944           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
16945           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
16946           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
16947           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
16948           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
16949           GridColumnStylesCollection.cs, 
16950           IDataGridColumnStyleEditingNotificationService.cs,
16951           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
16952           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
16953           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
16954           TreeNodeCollection.cs, AmbientProperties.cs, 
16955           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
16956           DataObject.cs, ErrorProvider.cs, Splitter.cs,
16957           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
16958           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
16959           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
16960           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
16961           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
16962           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
16963           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
16964           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
16965           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
16966           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
16967           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
16968           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
16969           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
16970           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
16971           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
16972           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
16973           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
16974           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
16975           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
16976           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
16977           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
16978           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
16979           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
16980           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
16981           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
16982           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
16983           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
16984           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
16985           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
16986           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
16987           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
16988           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
16989           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
16990           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
16991           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
16993 2005-09-21  Jackson Harper  <jackson@ximian.com>
16995         * TreeNode.cs: Call Before/After Expand not Collapse when
16996         expanding.
16998 2005-09-20  Jackson Harper  <jackson@ximian.com>
16999         
17000         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
17002 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
17003          
17004         * ListViewItem.cs:
17005                 - Fixes bug 76120
17006                 - Fixes proper storing of subitems
17007                 - Fixes not updated items
17009 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
17011         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
17012           things if our window handle isn't created yet. Also disabled 
17013           debug for TextBoxBase
17015 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
17017         * MenuAPI.cs: Remove filtering of events to allow menu usage
17019 2005-09-20  Miguel de Icaza  <miguel@novell.com>
17021         * Cursor.cs: Allow null to be passed to Cursor.Current.
17023 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
17025         * ThemeWin32Classic.cs:
17026           - Change some private methods/fields to protected virtual so that 
17027             they can be accessed and overriden in derived classes
17028           - First refactoring of some methods. Derived themes now don't 
17029             need to duplicate the complete code from ThemeWin32Classic
17030         * ThemeNice.cs:
17031           - Added nice StatusBar
17032           - Derive from ThemeWin32Classic and not Theme
17033           - Removed duplicate ThemeWin32Classic code
17035 2005-09-20  Miguel de Icaza  <miguel@novell.com>
17037         * Control.cs (ControlCollection.Add): If the value null is passed
17038         the control is ignored. 
17040         Optimize this loop.
17042 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
17044         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
17045           PostQuitMessage state.
17046         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
17048 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
17050         * Application.cs: Our constructor will never get called, move 
17051           initialization to fields; fixes bug #75933
17053 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
17055         * FileDialog.cs :
17056                 - Allow files to be selected properly using file name
17057                 combo box.
17058                 - Add ability to change diretory (absolute / relative)
17059                 using file name combo box.
17061 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
17062          
17063         * ListBox.cs: 
17064                 - Fixes Multicolumn listboxes item wrong calculations
17065                 - Allows to click when only one item is in the listbox
17066                 - Fixes crash when no items using keyboard navigation
17068 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
17070         * ComboBox.cs: Reverted almost everything from the latest patch which
17071           broke ComboBox
17073 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
17074         
17075         * ToolTip.cs:
17076                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
17077         * ComboBox.cs:
17078                 - When DropDownStyle is Simple, it does not show scrollbar 
17079                 to the last item of the list.
17080                 - When DropDownStyle is Simple, it crashed when the list was 
17081                 scrolled down with the down cursor key.
17082                 - Fixed a bug that when DropDownStyle is DropDownList, the 
17083                 selected item was not shown.
17084                 - The position of the selected item was not preserved when 
17085                 the next dropdown happened.
17086         * ThemeWin32Classic.cs:
17087                 - Items were wrapped at the right end.
17088         * CheckedListBox.cs:
17089                 - Fixed Add method
17090         * ListBox.cs:
17091                 - Items should be fully shown.
17092                 - When resizing and vertical scrollbar disappeared, the item 
17093                 of index 0 should be on the top of the list.
17094                 - GetItemRectangle should consider the size of ver. scrollbar
17095         * StatusBar.cs:
17096                 - SizingGrip area should not be allocated when it is not 
17097                 displayed.
17098                 - Now it reflects MinWidth of the containing panel and 
17099                 fixed a crash that happens when its width becomes so small.
17101 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
17103         * CheckedListBox.cs: Fixes bug 76028
17104         * ListBox.cs: Fixes bug 76028
17106 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
17108         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
17109         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
17111 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
17113         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
17115 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
17117         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
17119 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
17121         * IRootGridEntry.cs: Added
17122         * PropertyGridCommands.cs: Added
17123         * PropertiesTab.cs: Added missing methods and property
17124         * PropertyGridView.cs: Made class internal
17125         * PropertyGridTextBox.cs: Made class internal
17127 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
17129         * MimeIcon.cs: Try to check some other environment variables
17130           if "DESKTOP_SESSION" returns "default"
17132 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
17134         * ThemeNice.cs: Corrected background colors (e.g. menus)
17135         * ColorDialog.cs: Use correct background colors for controls
17137 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
17139         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
17141 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
17143         * RichTextBox.cs: Added initial implementation
17144         * lang.cs: Removed. Was accidentally checked in long time ago
17145         * TODO: Removed. Contents were obsolete
17147 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
17148                                                                                 
17149         * PropertiesTab.cs : Added
17151 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
17152                                                                                 
17153         * PropertyGrid.cs : Update
17154         * PropertyGridView.cs : Update
17155         * System.Windows.Forms.resx : Added images and strings
17157 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
17159         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
17161 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
17163         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
17164           a busy loop right after the Ungrab the X11 display is otherwise 
17165           blocked
17167 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
17169         * ThemeWin32Classic.cs: Optimise the use of clipping
17171 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
17173         * DataGrid.cs: fixes recursion bug
17175 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
17177         * ThemeNice.cs: 
17178           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
17179           - Cleanup
17181 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
17183         * ThemeNice.cs: Draw nice ProgressBars
17185 2005-09-01  Miguel de Icaza  <miguel@novell.com>
17187         * VScrollBar.cs: Another buglet found by Aaron's tool. 
17189         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
17190         bug finder.
17192 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
17194         * ThemeNice.cs:
17195           - Added nicer menu drawing
17196           - Updated DrawTab
17197           - some refactoring
17199 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
17201         * CreateParams.cs (ToString): Made output match MS
17202         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
17203             handle is already created (to avoid forcing window creation)
17204         * XplatUIX11.cs: Set window text to caption after creating window,
17205           in case Text was set before window was created
17206         * Form.cs: Use this.Text instead of a static string as caption
17208 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
17210         * NotifyIcon.cs: Don't set the window to visible; this screws
17211           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
17212           OnPaint without a bitmap)
17213         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
17214           happen very often anyway; we could add the check to the WM_PAINT 
17215           event generation code
17217 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
17219         * NotifyIcon.cs: Fill the icon area with a background color, to 
17220           avoid 'residue' when transparent icons are drawn
17221         * XplatUIX11.cs:
17222           - Handle whole_window == client_window when destroying windows
17223           - SystrayAdd(): Set client_window to whole_window value to
17224             get mouse and other events passed to NotifyIcon
17226 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
17228         * Form.cs: Set proper default for Opacity property
17229         * NotifyIcon.cs:
17230           - ShowSystray(): Don't bother creating telling the OS
17231             about the systray item if no icon is provided
17232           - Now handles WM_NCPAINT message to deal with whole/client window
17233             split
17234           - Create window as visible to not get caught by Expose optimization
17235         * Hwnd.cs: Removed debug message
17236         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
17237           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
17238             PaintEventStart/End to use new client argument
17239         * TextBoxBase.cs:
17240           - Commented out debug messages
17241           - Switched PaintEventStart/End to use new client argument
17242         * XplatUI.cs: Added client window bool to PaintEventStart()/
17243           PaintEventEnd() calls, to support drawing in non-client areas
17244         * XplatUIDriver.cs: 
17245           - Added client window bool to PaintEventStart()/PaintEventEnd() 
17246             calls, to support drawing in non-client areas
17247           - Added conditional compile to allow using MWF BeginInvoke 
17248             on MS runtime
17249         * XplatUIX11.cs:
17250           - Added some conditional debug output
17251           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
17252             whole/client window split
17253           - Implemented handling of client argument to PaintEventStart()/End()
17254         * Control.cs:
17255           - Throw exception if BeginInvoke() is called and the window handle
17256             or one of the window's parent handles is not created
17257           - Added conditional compile to allow using MWF BeginInvoke on
17258             MS runtime
17259           - get_Parent(): Only sets parent if handle is created. This avoids
17260             forcing window handle creation when parent is set.
17261           - Now fires Layout and Parent changed events in proper order
17262           - Switched to use Handle instead of window.Handle for Z-Order setting,
17263             the get_Parent() patch above causes us to possibly get null for 'window'
17264           - Implemented handling of client argument to PaintEventStart()/End()
17265           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
17266             default handling)
17267           - Now sends a Refresh() to all child windows when Refresh() is called
17269 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
17271         * Form.cs: Added (non-functional) Opacity property
17272         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
17274 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
17275         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
17276           use export MONO_THEME=nice to activate it.
17277           Currently supported controls:
17278           - Button
17279           - ComboBox
17280           - ScrollBar
17281           - TabControl (TabAlignment.Top only, other will follow)
17282         * ThemeEngine.cs: Add theme nice
17283         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
17284           if enabled
17286 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
17288         * Splitter.cs: Resize docked control and its neighbor.
17290 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
17291         -- Making Windows with Menus layout correctly --
17292         * Form.cs : The first leg of the fix
17293                 Menu setter - adjust Client Size as needed to make space for the menu
17294                 SetClientSizeCore - doesn't call base version to be able to pass the 
17295                         menu handle to XplatUI.CalculateWindowRect
17296         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
17297         * XplatUIX11.cs: The critical second leg of the fix
17298                 GetWindowPos needs to use a recalculated client_rect
17299                 so that resizing the window doesn't break layout of child controls. 
17300                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
17301                 Lots of \t\n killed
17303 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
17305         * Label.cs: Now properly recalculates width and height on Font and Text
17306           changes if AutoSize is set
17308 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
17309         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
17311 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
17313         * ImageList.cs: Makes ToString method compatible with MS
17315 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
17317         * MenuAPI.cs: fixes bug 75716
17319 2005-08-11 Umadevi S <sumadevi@novell.com>
17320         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
17322 2005-08-11 Umadevi S <sumadevi@novell.com>
17323         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
17325 2005-08-10  Umadevi S <sumadevi@novell.com>
17326         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
17328 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
17330         * Menu.cs: fixes bug 75700
17331         * MenuAPI.cs: fixes navigation issues
17333 2005-08-09  Umadevi S <sumadevi@novell.com>
17334         * CheckedListBox.cs - simple fix for GetItemChecked.
17336 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
17338         * ComboBox.cs: Serveral fixes
17339         * ListBox.cs: Serveral fixes
17341 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
17343         * ComboBox.cs: Fixes FindString methods and GetItemHeight
17344         * ListBox.cs: Fixes FindString methods
17346 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
17348         * DataGrid.cs: fixes bugs exposed by new tests
17350 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
17352         * Mime.cs: Compile Mono assembly references only if compiling
17353           with Mono (Allows to build with VS.Net again)
17355 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
17357         * Control.cs (PaintControlBackground): Draw background image
17358         corrrectly.
17359         (CheckForIllegalCrossThreadCalls): Stubbed.
17360         
17361         * Form.cs (OnCreateControl): Center when should be centered.
17362         
17363         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
17365 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
17367         * Binding.cs: Binding to properties should be case unsensitive
17369 2005-07-18 vlindos@nucleusys.com
17371         * DataGrid.cs: fixes setmember order
17373 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
17375         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
17376         * FileDialog.cs: FileDialog is now resizable and uses the new
17377           MimeIconEngine
17379 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
17381         * DataGridTextBoxColumn.cs: default value
17382         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
17383         * GridTableStylesCollection.cs: fixes checking MappingName
17384         * DataGridDrawingLogic.cs: fixes drawing logic issues
17385         * DataSourceHelper.cs: rewritten to make compatible with more data sources
17386         * DataGrid.cs: fixes    
17388 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
17390         * MimeGenerated.cs: Use case sensitive comparer for
17391           NameValueCollections
17393 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
17395         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
17396         * ThemeWin32Classic.cs: bug fixes, code refactoring
17397         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
17398         * DataGrid.cs: bug fixes, code refactoring
17399         * DataGridTextBox.cs: bug fixes, code refactoring
17400         * DataGridColumnStyle.cs:  bug fixes, code refactoring
17401         * Theme.cs:  bug fixes, code refactoring
17403 2005-07-01  Peter Bartok  <pbartok@novell.com> 
17405         * TextControl.cs: Quick fix for the reported crash on ColorDialog
17406           and other text box usage
17408 2005-07-01  Jackson Harper  <jackson@ximian.com>
17410         * TabControl.cs: Make sure the bottom of the tab covers the pages
17411         border.
17413 2005-06-30  Peter Bartok  <pbartok@novell.com> 
17415         * Form.cs (ShowDialog): Assign owner of the dialog
17416         * TextBoxBase.cs: Always refresh caret size when deleting, caret
17417           might have been moved to a tag with different height
17419 2005-06-30  Jackson Harper  <jackson@ximian.com>
17421         * Form.cs: Don't create an infinite loop when setting focus
17422         * MenuItem.cs: Don't dirty the parents if we don't have any
17424 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
17426         * LibSupport.cs: Rename
17428 2005-06-29  Peter Bartok  <pbartok@novell.com>
17430         * TextBoxBase.cs: Re-align caret after deleting a character
17431         * TextControl.cs:
17432           - DeleteChars(): Ensure that tag covers the provided position
17433           - StreamLine(): Drop reference for dropped tag
17435 2005-06-29  Peter Bartok  <pbartok@novell.com> 
17437         * TextControl.cs: 
17438           - Selections now work properly, anchoring at the initial location
17439             and properly extending in either direction (SetSelectionToCaret(),
17440             SetSelectionStart() and SetSelectionEnd())
17441           - No longer redraws the whole control on selection change, now
17442             calculates delta between previous and new selection and only
17443             invalidates/redraws that area
17444           - Fixed FindPos() math off-by-one errors
17445           - Changed DeleteChars() to verify the provided tag covers the
17446             provided position, selections may have a tag that doesn't cover
17447             the position if the selection is at a tag border
17448           - Fixed off-by-one errors in DeleteChars()
17449           - Added missing streamlining check in DeleteChars() to remove
17450             zero-length tags
17451           - Implemented Invalidate() method, now properly calculates exposures
17452             between two given lines/positions
17453           - Implemented SetSelection()
17454           - Obsoleted and removed FixupSelection()
17455           - Improved RecalculateDocument() logic, removing code duplication
17457 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17459         * LibSupport.cs: changes to match different input/output arguments.
17461 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17463         * LibSupport.cs: added libsupport.so init routine.
17465 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
17466         
17467         * ControlBindingsCollection.cs
17468                 - Throws an exception on null datasource when adding
17469                 - Checks for duplicated bindings when adding
17471 2005-06-28  Jackson Harper  <jackson@ximian.com>
17473         * TreeView.cs (OnKeyDown): Support left and right properly
17474         (navigates as well as expanding and collapsing.
17475         - Add support for Multiply, this expands all the selected nodes
17476         children.
17477         - Fix some tabbing.
17479 2005-06-28  Jackson Harper  <jackson@ximian.com>
17481         * TreeView.cs: Implement keyboard navigation, currently supports,
17482         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
17483         support for toggling checkboxes with the space bar.
17485 2005-06-28  Jackson Harper  <jackson@ximian.com>
17487         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
17488         tree.
17490 2005-06-28  Jackson Harper  <jackson@ximian.com>
17492         * TreeView.cs: Add missing event.
17494 2005-06-27  Peter Bartok  <pbartok@novell.com> 
17496         * TextControl.cs:
17497           - Made line ending size configurable (now allows for counting 
17498             lineendings as \n or \r\n)
17499           - Added margin to viewport to keep caret visible on right side
17500           - Fixed translation routines for line/pos to documentpos to consider
17501             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
17502           - Fixed some line-endings to be unix style
17503           - Fixed Document.FormatText to perform it's calculations 1-based
17504           - Added descriptions for a few methods that might otherwise get 
17505             used wrong
17506           - Added NOTE section with some basic conventions to remember at 
17507             the top of the file
17508           - Major fixup for RichTextBox selection drawing:
17509             * Fixed crashes when multiple tags on a single line were selected
17510             * fixed selection box drawing not overlaying text
17511             * fixed bogus offset calculation for tags not starting at index 1
17512             * Switched behaviour from using multiple Substrings of a 
17513               StringBuilder.ToString() to using multiple 
17514               StringBuilder.ToString(start, length) statements, hoping this is
17515               faster (kept original version commented out in the code, in case
17516               original version was faster)
17517         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
17518           alignment != Left
17519         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
17520           call it as well
17522 2005-06-27  Jackson Harper  <jackson@ximian.com>
17524         * TabControl.cs: Move to the left and right with the arrow
17525         keys. These keys don't cycle beyond first and last like
17526         tab. Refresh all the tabs when scrolling them to the left or
17527         right.
17529 2005-06-27  Jackson Harper  <jackson@ximian.com>
17531         * TabControl.cs:
17532           - ToString: Added method
17533           - CreateParams: Remove TODO and comment
17534           - OnKeyDown: Cycle through bounds properly.
17535           - SelectedIndex: Scroll to the right or left if we need to
17536           display the newly selected tab.
17538 2005-06-23  Jackson Harper  <jackson@ximian.com>
17540         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
17541         set.
17543 2005-06-23  Jackson Harper  <jackson@ximian.com>
17545         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
17546         CTRL-SHIFT-TAB, and HOME, END are there any others?
17548 2005-06-23  Jackson Harper  <jackson@ximian.com>
17550         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
17552 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
17553         
17554         * DataGridTextBoxColumn.cs: fixes and enhancements
17555         * ThemeWin32Classic.cs: fixes and enhancements
17556         * DataGridBoolColumn.cs:  fixes and enhancements
17557         * DataGridDrawingLogic.cs:  fixes and enhancements
17558         * CurrencyManager.cs: fixes and enhancements
17559         * DataGrid.cs: fixes and enhancements
17560         * DataGridColumnStyle.cs:  fixes and enhancements
17562 2005-06-22  Jackson Harper  <jackson@ximian.com>
17564         * TabControl.cs: Add some missing methods that just call into the
17565         base. Make the TabPageCollection's IList interface behave in the
17566         same manner as the MS implementation.
17568 2005-06-22  Peter Bartok  <pbartok@novell.com> 
17570         * TextControl.cs: Added sanity check
17571         * TextBoxBase.cs: 
17572           - Fixed wrapping behaviour, don't set wrap on single line controls
17573             (this fixes the breakage of colordialog introduced in an earlier
17574              checkin)
17575           - Added rudimentary support for autoscrolling right-aligned controls
17576             (still needs fixing, also, center alignment scroll is missing)
17578 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
17579         
17580         * ScrollBar.cs: Fixes thumbpos on Maximum values
17582 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
17583         
17584         * PropertyGridView.cs: Pass context information to UITypeEditors 
17586 2005-06-21  Peter Bartok  <pbartok@novell.com> 
17588         * TextBoxBase.cs:
17589           - Now calling PositionCaret with absolute space coordinates
17590           - Enabled vertical scrolling
17591           - Better tracking of scrollbar changes, tied into WidthChange
17592             event
17593           - Improved cursor tracking
17594           - Removed debug output
17595         * TextControl.cs:
17596           - PositionCaret coordinates are now works in absolute space, not 
17597             the canvas
17598           - Improved tracking of document size
17599           - Added events for width and height changes
17601 2005-06-21  Peter Bartok  <pbartok@novell.com>
17603         * Form.cs: Set focus to active control when form is activated
17604         * TextControl.cs: 
17605           - Added word-wrap functionality to RecalculateLine() 
17606           - Added some short function descriptions for VS.Net to aid in
17607             writing dependent controls
17608           - Added Caret property, returning the current coords of the caret
17609           - Added ViewPortWidth and ViewPortHeight properties
17610           - Added Wrap property
17611           - Added CaretMoved event
17612           - Removed some old debug code
17613           - Split() can now create soft splits
17614           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
17615           - Added method to format existing text
17616           - Fixed size/alignment calculations to use viewport
17617           - RecalculateDocument now can handle changing line-numbers while
17618             calculating lines
17620         * TextBox.cs:
17621           - Added some wrap logic, we don't wrap if alignment is not left
17622           - Added casts for scrollbar var, base class switched types to
17623             also support RichTextBoxA
17624           - Implemented handling of scrollbar visibility flags
17626         * TextBoxBase.cs:
17627           - Switched scrollbars type to RichTextBoxScrollBars to support
17628             RichTextBox
17629           - Added tracking of canvas width/height
17630           - Switched scrollbars to be not selectable (to keep focus on text)
17631           - Added central CalculateDocument() method to handle all redraw
17632             requirements
17633           - Added ReadOnly support
17634           - Added WordWrap support
17635           - Fixed handling of Enter key (we now treat it as a DialogKey)
17636           - Fixed caret positioning when h or v scroll is not zero
17637           - Fixed placing/generation of vertical scrollbar
17638           - Added CalculateScrollBars() method to allow updating scrollbar
17639             limits and visibility
17640           - Fixed handling of horizontal scroll
17641           - Added handling of vertical scroll
17642           - Implemented auto-'jump' when caret moves to close to a left or
17643             right border and there is text to be scrolled into view (currently
17644             there's the potential for a stack overflow, until a bug in
17645             scrollbar is fixed)
17647 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
17648         
17649         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
17651 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
17653         * Mime.cs:
17654         - added inodes.
17655         - return application/x-zerosize for files with size zero
17656           (if no extension pattern matches).
17657         - check matches collection for strings too.
17658         - return only the first mime type if the name value
17659           collection has more than one mime type.
17661 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
17662         
17663         * PropertyGrid.cs: Cleaned up some TODOs
17664         * PropertyGridView.cs: Added support for UITypeEditors
17666 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
17667         
17668         * DataGrid.cs: clears cached value
17670 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
17672         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
17673         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
17674         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
17675         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
17676         
17677 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
17679         * ThemeWin32Classic.cs: fixes colour
17681 2005-06-15  Peter Bartok  <pbartok@novell.com>
17683         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
17684         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
17685         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
17686         * Control.cs: Added some MWFCategory and MWFDescription attributes
17687         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
17689 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
17691         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
17692         usage
17694 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
17696         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
17697         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
17698         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
17699         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
17700         * DataGrid.cs: default datagrid settings for Default Styles, fixes
17701         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
17703 2005-06-13  Jackson Harper  <jackson@ximian.com>
17705         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
17706         isn't printed when the user enables dropping. (X11 does accept
17707         drops).
17708         
17709 2005-06-13  Jackson Harper  <jackson@ximian.com>
17711         * TreeView.cs: Remove some TODOS.
17713 2005-06-13  Jackson Harper  <jackson@ximian.com>
17715         * Form.cs: Hook into the mdi framework.
17716         * MdiClient.cs: Use the base control collections add method so
17717         parents get setup correctly. Set the default back colour and dock
17718         style.
17719         * MdiChildContext.cs: New class, this bad actor handles an
17720         instance of an MDI window. Right now there is only basic
17721         support. You can drag, close, and resize windows. Minimize and
17722         Maximize are partially implemented.
17724 2005-06-13  Jackson Harper  <jackson@ximian.com>
17726         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
17727         freaky when both vals are negative. NOTE: There are probably other
17728         places in XplatUIX11 that this needs to be done.
17730 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
17732         * DataGrid.cs: implement missing methods, move KeyboardNavigation
17733         * DataGridColumnStyle.cs: fixes signature
17735 2005-06-12  Jackson Harper  <jackson@ximian.com>
17737         * XplatUIX11.cs: Use sizing cursors similar to the ones on
17738         windows.
17740 2005-06-11  Jackson Harper  <jackson@ximian.com>
17742         * StatusBarPanel.cs: Signature cleanups. Implement
17743         BeginInit/EndInit.
17745 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
17747         * DataGridTextBoxColumn.cs: Honors aligment
17748         * GridColumnStylesCollection.cs: Contains is case unsensitive
17749         * GridTableStylesCollection.cs: several fixes
17750         * DataGridTableStyle.cs: default column creation
17751         * DataGridDrawingLogic.cs: fixes
17752         * CurrencyManager.cs: ListName property
17753         * DataGrid.cs: multiple styles support
17754         * DataGridColumnStyle.cs: fixes
17755         
17757 2005-06-10  Peter Bartok  <pbartok@novell.com>
17759         * Control.cs(Select): Moved SetFocus call to avoid potential
17760           loops if controls change the active control when getting focus
17761         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
17762           the up/down buttons
17764 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
17766         * ImageListConverter.cs: Implemented
17768 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
17770         * MonthCalendar.cs: Wired in NumericUpDown control for year
17772 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
17774         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
17775           DoubleClick events, since they are not meant to be fired.
17777 2005-06-09  Peter Bartok  <pbartok@novell.com>
17779         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
17780           Jonathan's standalone controls into MWF, implemented missing
17781           events, attributes and methods; added xxxAccessible classes
17782         * AccessibleObject.cs: Made fields internal so other classes
17783           can change them if needed
17785 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
17787         * UpDownBase.cs: Complete implementation
17788         * NumericUpDown.cs: Complete implementation
17789         * DomainUpDown.cs: Complete implementation
17791 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
17793         * DataGridTextBoxColumn.cs: drawing fixes
17794         * DataGridCell.cs: fixes ToString method to match MSNet
17795         * DataGridTableStyle.cs: fixes
17796         * DataGridBoolColumn.cs: fixes, drawing
17797         * DataGridDrawingLogic.cs: fixes, new methods
17798         * DataGridTextBox.cs: Keyboard and fixes
17799         * DataGrid.cs:
17800                 - Keyboard navigation
17801                 - Scrolling fixes
17802                 - Row selection (single, multiple, deletion, etc)
17803                 - Lots of fixes
17804         
17805 2005-06-07  Jackson Harper  <jackson@ximian.com>
17807         * ThemeWin32Classic.cs: Clear the background area when drawing
17808         buttons.
17810 2005-06-06  Peter Bartok  <pbartok@novell.com>
17812         * ImageListStreamer.cs: Fixed signature for GetData
17813         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
17814         * ComboBox.cs:
17815           - Added missing ChildAccessibleObject class
17816           - Added missing OnXXXFocus overrides, switched to using those
17817             instead of the event handler
17818         * Control.cs:
17819           - Added Parent property for ControlAccessibleObject
17820           - Fixed signatures
17821           - Fixed attributes
17822           - Added ResetBindings()
17823         * ListBindingConverter.cs: Implemented some methods
17824         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
17825         * ImageList.cs: Implemented basic handle scheme, removed TODOs
17826         * ContainerControl.cs: Fixed signature, now subscribing to the
17827           ControlRemoved event instead of overriding the handler, LAMESPEC
17828         * CurrencyManager.cs: Added missing attribute
17829         * MonthCalendar.cs: Added missing properties
17831 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
17833         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
17834         
17835 2005-06-06  Gaurav Vaish and Ankit Jain
17837         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
17838         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
17839         
17840 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
17842         * Control.cs: fixes CreateParams Width / Height.
17844 2005-06-05  Peter Bartok  <pbartok@novell.com>
17846         * Win32DnD.cs: Removed compilation warnings
17848 2005-06-05  Peter Bartok  <pbartok@novell.com>
17850         * Control.cs (CreateParams): Since we don't know if one of the
17851           properties we use is overridden, lets make sure if we fail accessing
17852           we continue with a backup plan
17854 2005-06-05  Peter Bartok  <pbartok@novell.com>
17856         * Win32DnD.cs:
17857           - Removed debug output
17858           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
17859             struct
17860           - Plugged resource leak
17861         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
17862           MS size
17864 2005-06-05  Peter Bartok  <pbartok@novell.com>
17866         * XplatUIWin32.cs: Removed DnD code
17867         * Win32DnD.cs: Implemented drop source and drop target functionality
17869 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17871         * UpDownBase.cs: remove duplicate addition of event, enable some code
17872         that was commented out.
17873         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
17874         Validate input when a key is pressed. It works fine now for every
17875         combination of Hexadecimal. Only missing some drawing love when sharing
17876         space with other controls.
17878 2005-06-04  Peter Bartok  <pbartok@novell.com>
17880         * Control.cs:
17881           - We need to pass a window for DragDrop, so enable callback events
17882           - Added DnD callback events when being a DragSource
17883         * XplatUI.cs (StartDrag): Added window handle argument
17884         * XplatUIDriver.cs (StartDrag): Added window handle argument
17885         * QueryContinueDragEventArgs: Made fields internally accessible so
17886           drivers can set them
17887         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
17888           can set them
17890 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
17892         * DataGridTextBoxColumn.cs: column text editing
17893         * DataGridTableStyle.cs: Respect columns styles created by the user
17894         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
17895         * DataGridBoolColumn.cs: bool column editing
17896         * DataGrid.cs: fixes to scrolling, properties, etc
17897         * DataGridTextBox.cs: handle keyboard
17898         * DataGridColumnStyle.cs: fixes
17900 2005-06-02  Jackson Harper  <jackson@ximian.com>
17902         * ImageListStreamer.cs: Somewhat broken implementation of
17903         GetObjectData. The RLE needs some work to match MS properly.
17905 2005-06-02  Jackson Harper  <jackson@ximian.com>
17907         * X11Dnd.cs: Attempting to keep at least one file in MWF
17908         monostyled.
17910 2005-06-02  Peter Bartok  <pbartok@novell.com>
17912         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
17913           that way
17915 2005-06-02  Peter Bartok  <pbartok@novell.com>
17917         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
17918         * XplatUI.cs: Added DoDragDrop() method
17919         * XplatUIDriver.cs: Added DoDragDrop() method
17921 2005-06-02  Jackson Harper  <jackson@ximian.com>
17923         * Splitter.cs: Implement BorderStyle.
17925 2005-06-02  Jackson Harper  <jackson@ximian.com>
17927         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
17928         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
17929         X11 using XDND.
17931 2005-06-02  Peter Bartok  <pbartok@novell.com>
17933         * DataObject.cs:
17934           - Added Data setter
17935           - Fixed broken insertion code for SetData, now also
17936             overwrites any existing entry of the same format name
17937         * Hwnd.cs: Added list of pointers that automatically gets
17938           freed when the window is disposed
17939         * XplatUI.cs: Call driver initialization method when loading
17940           a driver
17941         * Control.cs:
17942           - OnDragLeave takes EventArgs, not DragEventArgs
17943           - Added setting of WS_EX_ACCEPTFILES style when dropping is
17944             supported
17945           - Forces style update when drop state changes
17946         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
17947           not perfect since we cannot (yet) call the IDataObject.GetData()
17948           method, we keep getting 0x80004005 error, dunno why)
17950 2005-06-02  Peter Bartok  <pbartok@novell.com>
17952         * DragEventArgs.cs: Make fields internal so we can cache the
17953           object and re-set the fields from XplatUI
17955 2005-06-02  Jackson Harper  <jackson@ximian.com>
17957         * Control.cs: Add some internal methods so the DnD subsystem can
17958         raise DnD events. Also call into the driver when AllowDrop is set.
17959         * XplatUI.cs:
17960         * XplatUIDriver.cs: New method for setting whether or not a window
17961         is allowed to accept drag and drop messages.
17962                 
17963 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
17964         
17965         * ScrollBar.cs: Make sure that values sent in Scroll events
17966         are always between Maximum and Minimum.
17968 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
17970         * Menu.cs: Call MenuChanged when menuitem visibility has been
17971         changed.
17972         * MenuItem.cs: Rebuild menu when item is (not) visible.
17973         * MainMenu.cs: MainMenu has special MenuChanged.
17974         * Theme.cs: Caption and FrameBorderSize are not fixed.
17975         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
17976         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
17977         * XplatUIX11.cs,
17978         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
17979         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
17981 2005-05-30  Jackson Harper  <jackson@ximian.com>
17983         * DataFormat.cs: We can't statically initialize this stuff because
17984         it calls into the xplatui and could create a loop. So we lazy init
17985         it.
17987 2005-05-28  Jackson Harper  <jackson@ximian.com>
17989         * Control.cs: Proper implementation of Product(Name/Version).
17991 2005-05-27  Jackson Harper  <jackson@ximian.com>
17993         * DataObject.cs: Dont crash if no data is found.
17995 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
17996         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
17997                 as per status page, guessing it should be set to true
17999 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
18001         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
18002         * DataGridTableStyle.cs: set proper formatting text, def header text
18003         * ThemeWin32Classic.cs: new themable paramaters
18004         * DataGridBoolColumn.cs: paint check box, get data, fixes
18005         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
18006         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
18007         * DataGridColumnStyle.cs: fixes
18008         * Theme.cs: new themable paramaters
18009                 
18010 2005-05-26  Peter Bartok  <pbartok@novell.com>
18012         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
18014 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
18015         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
18017 2005-05-24  Peter Bartok  <pbartok@novell.com>
18019         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
18020           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
18021           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
18022           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
18023           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
18024           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
18025           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
18026           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
18027           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
18028           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
18029           missing attributes, etc
18030         * DataGridPreferredColumnWidthTypeConverter.cs: Added
18032 2005-05-24  Peter Bartok  <pbartok@novell.com>
18034         * Help.cs: Added, implemented trivial functions, throws up MessageBox
18035           when user tries to get help
18036         * DataObject.cs, DataFormats.cs, LinkArea.cs,
18037           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
18038           to suppress warnings
18039         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
18040           avoid unreachable code warning
18042 2005-05-20  Peter Bartok  <pbartok@novell.com>
18044         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
18046 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
18048         * DataGridTextBoxColumn.cs: Basic painting methods
18049         * DataGridTableStyle.cs: Set table style in the column
18050         * ThemeWin32Classic.cs: Use Theme for colors
18051         * DataGridDrawingLogic.cs: Implement more drawing
18052         * DataGrid.cs: drawing, theming, enhacements, fixes
18053         * DataGridColumnStyle.cs: fixes, drawing
18054         * Theme.cs: theming for Datagrid
18056 2005-05-20  Peter Bartok  <pbartok@novell.com>
18058         * Cursor.cs: Implemented GetObjectData() method
18060 2005-05-20  Peter Bartok  <pbartok@novell.com>
18062         * Cursors.cs: Added setting of cursor name
18063         * Cursor.cs:
18064           - Implemented constructors
18065           - Implemented Draw and DrawStretched
18066           - Implemented Current property
18067           - Implemented == and != operators
18068           - Implemented Dispose()
18069           - Implemented ToString
18070           - Added missing attributes
18071         * XplatUIX11.cs:
18072           - Added missing reset for OverrideCursor when DoEvents is called
18073           - Fixed creation of cursor, logic was wrong
18074         * XplatUIWin32.cs:
18075           - Added missing reset for OverrideCursor when DoEvents is called
18076           - Fixed creation of cursor, bit arrays were swapped
18077         * Clipboard.cs: Removed obsolete MonoTODO attribute
18079 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
18081         * ComboBox.cs: fixes OnSelectedItemChanged
18082         * ControlBindingsCollection.cs: fixes item range check
18084 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
18086         * UpDownBase.cs:
18087                 - Calc preferred height properly
18088                 - Implement missing properties
18089                 
18090         * NumericUpDown.cs: Implement missing events
18092 2005-05-19  Jackson Harper  <jackson@ximian.com>
18094         * TabControl.cs: New method that resizes the tab pages before
18095         redrawing them. This as needed as the control is double buffered
18096         and sizing will not be recalculated unless ResizeTabPages is
18097         called.
18098         * TabPage.cs: Set base.Text instead of Text in the constructor so
18099         that UpdateOwner does not get called. Use the new Redraw method of
18100         TabControl instead of Refresh so the sizing is recalculated.
18101         * ThemeWin32Classic.cs: Draw the text for button tabs.
18103 2005-05-19  Jackson Harper  <jackson@ximian.com>
18105         * Control.cs: Paint control background images. Fix typo where
18106         PaintControlBackground was not getting called correctly.
18108 2005-05-19  Peter Bartok  <pbartok@novell.com>
18110         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
18111           I can investigate, apparently I broke FileDialog
18113 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
18115         * AxHost.cs: Some simple properties.
18116         * Control.cs: window must be accessible after ctor.
18117         * Form.cs: Added TransparencyKey property.
18118         * TextBoxBase.cs: Implemented Clear. Text property can be null.
18119         * XplatUIWin32.cs: SetBorderStyle implemented.
18121 2005-05-18  Peter Bartok  <pbartok@novell.com>
18123         * DataObject.cs: Entries are not global but particular to the
18124           DataObject, now it behaves that way
18125         * XplatUIWin32.cs: Implemented Clipboard methods
18126         * Clipboard.cs: Implemented
18127         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
18128         * XplatUIOSX.cs: Updated to final clipboard prototypes
18129         * XplatUIX11.cs: Implemented Clipboard methods
18130         * XplatUIDriver.cs: Updated to final clipboard prototypes
18131         * XplatUIStructs.cs:
18132           - Added BITMAPINFOHEADER struct
18133           - Added ClipboardFormats enum
18134         * X11Structs.cs:
18135           - Added ClipboardStruct
18136           - Added Atom enum items for clipboard types
18137           - Fixed atom types for Selection event structures
18138         * DataFormats.cs:
18139           - Added internal properties and methods for drivers to enumerate
18140             all known formats
18141           - Switched initialization method to allow drivers to assign their
18142             own IDs even for the MS predefined clipboard IDs
18143         * XplatUI.cs: Updated to final clipboard interface
18145 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
18146         * PropertyGridView.cs: Fixed compiler warnings.
18148 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
18149         * PropertyGrid.cs: Added some event calls
18150         * PropertyGridView.cs: Change drawing code to use double buffering
18151         * PropertyGridTextBox.cs: Changed Text property name
18152         * GridItem.cs: Added Bounds property.
18153         * GridEntry.cs: Added Bounds property.
18155 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
18157         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
18158         since GetType() may not return the correct type if the object is
18159         a remoting proxy.
18161 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
18163         * TreeNodeCollection.cs: fixes get/set item ranges
18164         
18165 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
18167         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
18168                 
18169 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
18171         * ComboBox.cs: Fix item range comparation
18172         * ListView.cs: Fix item range comparation
18174 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
18176         * FontDialog.cs:
18177           - Clear example panel when OnPaint is called
18178           - Better solution for displaying the example panel text
18179           - Select default indexes in the ListBoxes
18181 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
18183         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
18185 2005-05-11  Peter Bartok  <pbartok@novell.com>
18187         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
18188         * SelectionRangeConverter.cs: Implemented
18189         * PropertyGrid.cs: Fixed attribute value
18190         * Control.cs:
18191           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
18192           - Added Sebastien Pouliot's CAS Stack Propagation fixes
18193         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
18194           that's common to all drivers. First methods to go there are
18195           Sebastien Pouliot's CAS Stack Propagation helper methods
18196         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
18197           Sebastien Pouliot for CAS Stack Propagation
18199 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
18201         * OSXStructs.cs:
18202           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
18204 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
18206         * DataGridTextBoxColumn.cs: fixed some members
18207         * GridColumnStylesCollection.cs: indexed column is case insensitive
18208         * DataGridTableStyle.cs: fixes
18209         * ThemeWin32Classic.cs: add new theme parameter
18210         * Theme.cs: add new theme parameter
18211         * DataGridDrawingLogic.cs: Datagrid's drawing logic
18212         * DataGrid.cs: fixes, new internal properties, etc.
18213         * DataGridColumnStyle.cs: allows to set grid value
18214         *
18216 2005-05-10  Peter Bartok  <pbartok@novell.com>
18218         * AccessibleObject.cs:
18219           - Removed MonoTODO attribute on help, method is correct
18220           - Fixed Bounds property
18221         * AxHost.cs: Moved MonoTODO
18222         * ButtonBase.cs: Now setting AccessibleObject properties
18223         * RadioButton.cs: Setting proper AccessibleObject role
18224         * CheckBox.cs: Setting proper AccessibleObject role
18225         * ControlBindingsCollection.cs: Added properties, methods and attributes
18226         * DataFormats.cs: Fixed awkward internal API, and changed to enable
18227           userdefined DataFormats.Format items as well
18228         * ListControl.cs: Removed data_member from the public eye
18229         * OpenFileDialog.cs:
18230           - Made class sealed
18231           - Added missing attributes
18232         * SaveFileDialog.cs: Added missing attributes
18233         * ImageListStreamer.cs: Fixed code that caused warnings
18234         * LinkLabel.cs: Removed unreachable code
18235         * TreeView.cs: Fixed code that caused warnings
18236         * PropertyGridView.cs: Fixed code that caused warnings
18237         * GridColumnStylesCollection.cs: Added missing attributes
18238         * GridTableStylesCollection: Added missing attribute
18239         * PropertyManager: Added .ctor
18240         * SecurityIDType: Added
18241         * DataObject.cs: Implemented class
18242         * LinkArea.cs: Added missing attribute
18244 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
18246         * RadioButton.cs: call base method to allow to fire OnClick event
18247         * UpDownBase.cs: OnMouseUp call base method
18248         * CheckedListBox.cs: call base method before returning
18249         * TrackBar.cs: call base method before returning
18250         
18252 2005-05-10  Peter Bartok  <pbartok@novell.com>
18254         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
18255           for messages
18257 2005-05-10  Peter Bartok  <pbartok@novell.com>
18259         * DataFormats.cs: Implemented
18260         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
18261           XplatUIX11.cs: Added Clipboard APIs
18262         * XplatUIWin32.cs: Implemented Clipboard APIs
18263         * FolderBrowserDialog.cs: Added missing event, attributes
18265 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
18267         * CheckBox.cs: call base method to allow to fire OnClick event
18269 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
18271         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
18273 2005-05-06  Peter Bartok  <pbartok@novell.com>
18275         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
18276         * Screen.cs: Implemented
18277         * HelpNavigator.cs: Added
18278         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
18279           property
18280         * HelpProvider.cs: Implemented all we can do until we have a CHM
18281           help library (which means that "What's This" does work now)
18283 2005-05-06  Jackson Harper  <jackson@ximian.com>
18285         * XplatUIX11.cs: Fix waking up the main loop.
18286                 
18287 2005-05-05  Peter Bartok  <pbartok@novell.com>
18289         * XplatUI.cs: Updated revision
18290         * Form.cs: Removed enless loop
18291         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
18292         * Label.cs (OnPaint): Added call to base.OnPaint()
18293         * ToolTip.cs: Made ToolTipWindow reusable for other controls
18294         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
18295         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
18296         * AxHost.cs: Added
18297         * ButtonBase.cs: Moved base.OnPaint() call to end of method
18298         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
18299           to ToolTip.ToolTipWindow for drawing and size methods; this allows
18300           reuse of ToolTipWindow by other controls
18301         * SizeGrip.cs: Moved base.OnPaint() call to end of method
18302         * XplatUIX11.cs: Now clipping drawing area (experimental)
18303         * PictureBox.cs: Moved base.OnPaint() call to end of method
18304         * Theme.cs: Fixed ToolTip abstracts to match new format
18305         * ErrorProvider.cs: Implemented
18307 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
18309         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
18310         * LinkLabel.cs:
18311                 - Adds cursors
18312                 - Handles focus
18313                 - Implements LinkBehavior
18314                 - Fixes many issues
18316 2005-05-03  Jackson Harper  <jackson@ximian.com>
18318         * ListView.cs: Calculate the scrollbar positioning on resize and
18319         paint, so they get put in the correct place.
18321 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
18323         * ColorDialogs.cs: The small color panels are now handled by
18324           SmallColorControl. This fixes drawing of the focus rectangle
18325           and adds a 3D border.
18327 2005-05-03  Peter Bartok  <pbartok@novell.com>
18329         * Control.cs: Modified version of Jonathan Chamber's fix for
18330           double-buffering
18332 2005-05-03  Jackson Harper  <jackson@ximian.com>
18334         * ListView.cs: Remove redraw variable. Control now handles whether
18335         or not a redraw needs to be done, and will only raise the paint
18336         event if redrawing is needed.
18338 2005-05-03  Jackson Harper  <jackson@ximian.com>
18340         * Splitter.cs: No decorations for the splitter form. Cache the
18341         hatch brush.
18343 2005-05-03  Jackson Harper  <jackson@ximian.com>
18345         * TreeView.cs: Use dashed lines to connect nodes. Use the
18346         ControlPaint method for drawing the focus rect instead of doing
18347         that in treeview.
18349 2005-05-02  Peter Bartok  <pbartok@novell.com>
18351         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
18353 2005-04-29  Jackson Harper  <jackson@ximian.com>
18355         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
18356         entire image buffer. Just clear the clipping rectangle.
18358 2005-04-29  Jackson Harper  <jackson@ximian.com>
18360         * ThemeWin32Classic.cs: Don't draw list view items that are
18361         outside the clipping rectangle.
18363 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
18365         * ListBox.cs: added horizontal item scroll
18367 2005-04-29  Jackson Harper  <jackson@ximian.com>
18369         * ThemeWin32Classic.cs: Remove some old debug code that was
18370         causing flicker with the new double buffering code.
18372 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
18374         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
18375         behave like combobox and comboboxlist (still not sure if this is
18376         correct though).
18378 2005-04-28  Jackson Harper  <jackson@ximian.com>
18380         * ThemeWin32Classic.cs: Don't fill the middle of progress
18381         bars. This fills areas outside of the clip bounds that don't need
18382         to be filled.
18384 2005-04-28  Jackson Harper  <jackson@ximian.com>
18386         * Control.cs: Don't expose functionality to touch the image buffers.
18387         * ProgressBar.cs:
18388         * ListView.cs: We do not need to (and no longer can) manipulate
18389         the image buffers directly. All of this is handled by Control.
18391 2005-04-28  Peter Bartok  <pbartok@novell.com>
18393         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
18394           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
18395           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
18397 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
18399         * Combobox:
18400                 - Adjust control's height for non-simple comboboxes (bug fix)
18401                 - Remove dead code
18402         * MenuAPI.cs: remove unused var
18403         * ScrollBar.cs: remove unsed var
18404                  
18405         * ListBox.cs: unselect items when clearing
18407 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
18409         * ListControl.cs: honors OnPositionChanged and default Selected Item
18410         * ListBox.cs: unselect items when clearing
18412 2005-04-27  Jackson Harper  <jackson@ximian.com>
18414         * X11Keyboard.cs: Initialize a default keyboard and give a warning
18415         if a "correct" keyboard is not found. This will make us not crash,
18416         but might give some users bad keyboard layouts...seems to be the
18417         same thing rewind does.
18419 2005-04-27  Jackson Harper  <jackson@ximian.com>
18421         * BindingManagerBase.cs: Attach the current/position changed
18422         handlers to their respective events.
18424 2005-04-27  Jackson Harper  <jackson@ximian.com>
18426         * Control.cs: Make sure that the first WM_PAINT does a full draw,
18427         not just a blit.
18428         * ThemeWin32Classic.cs: Don't fill the background for picture
18429         boxes. This could overright user drawing.
18430         * ComboBox.cs: Just fill the clipping rect not the entire client
18431         rect when drawing the background. This prevents pieces of the
18432         image buffer from getting overwritten and is theoretically faster.
18434 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
18436         * ComboBox.cs: Databinding support fixes, fire missing events
18437         * ListControl.cs: implement missing methods and properties, fixes
18438         * ThemeWin32Classic.cs: Databiding support on Drawing
18439         * CheckedListBox.cs: Databinding support fixes, fire missing events
18440         * ListBox.cs: Databinding support fixes, fire missing events
18441         
18442 2005-04-25  Peter Bartok  <pbartok@novell.com>
18444         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
18446 2005-04-25  Jackson Harper  <jackson@ximian.com>
18448         * TreeView.cs: Use the horizontal scrollbars height not width when
18449         determining how much of the client area is available.
18451 2005-04-25  Jackson Harper  <jackson@ximian.com>
18453         * Control.cs: Double buffering is handled differently now. As per
18454         the spec, the extra buffer is created in the WM_PAINT message and
18455         passed down to the control's drawing code.
18456         * GroupBox.cs:
18457         * Label.cs:
18458         * CheckBox.cs:
18459         * ProgressBar.cs:
18460         * RadioButton.cs:
18461         * ColorDialog.cs:
18462         * ComboBox.cs:
18463         * PropertyGridView.cs:
18464         * UpDownBase.cs:
18465         * MessageBox.cs:
18466         * MenuAPI.cs:
18467         * ListView.cs:
18468         * ButtonBase.cs:
18469         * SizeGrip.cs:
18470         * ScrollBar.cs:
18471         * ListBox.cs:
18472         * TrackBar.cs:
18473         * ToolBar.cs:
18474         * PictureBox.cs:
18475         * DateTimePicker.cs:
18476         * StatusBar.cs:
18477         * TreeView.cs: Update to new double buffering system.
18478         * MonthCalendar.cs: Uncomment block, as Capture is now
18479         working. Update to new double buffering
18480         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
18481         * PaintEventArgs.cs: New internal method allows us to set the
18482         graphics object. This is used for double buffering.
18483         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
18484         rectangle. The internal paint_area var has been removed from
18485         StatusBar. The clipping rect should be used instead.
18486         * Theme.cs: Give the PictureBox drawing method a clipping rect.
18487         * TabPage.cs: The RefreshTabs method was removed, so just call the
18488         tab controls Refresh method now.
18489         * TabControl.cs: Update to new double buffering. Make sure the
18490         handle is created before sizing the tab pages, otherwise we will
18491         get stuck in a loop.
18493 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
18495         * LinkLabel.cs: Fix typo, bug #74719; patch
18496           from Borja Sanchez Zamorano
18498 2005-04-22  Jackson Harper  <jackson@ximian.com>
18500         * TreeNode.cs: Implement Handle stuff.
18501         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
18503 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
18505         * DataGridTextBoxColumn.cs: call base constructors, fixes
18506         * GridColumnStylesCollection.cs: missing events, methods, and functionality
18507         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
18508         * DataGridTableStyle.cs: implements create default column styles
18509         * DataGridBoolColumn.cs: which types can handle
18510         * DataGrid.cs: missing methods, fixes, new functionality
18511         * DataGridColumnStyle.cs: fixes
18513 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
18514         * FolderBrowserDialog.cs:
18515         - Use a thread to fill the TreeView
18516         - Adjusted some sizes
18518 2005-04-19  Peter Bartok  <pbartok@novell.com>
18520         * LinkLabel.cs: (Re-)create the pieces when setting the Text
18521           property. Fixes #74360.
18523 2005-04-19  Jackson Harper  <jackson@ximian.com>
18525         * XEventQueue.cs: Lock when getting the lockqueue size.
18526         * PictureBox.cs: Call base OnPaint
18527         
18528 2005-04-19  Peter Bartok  <pbartok@novell.com>
18530         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
18531           messages were no longer being processed (this broke BeginInvoke)
18533           
18534 2005-04-18  Jackson Harper  <jackson@ximian.com>
18536         * TreeView.cs: buglet that caused node images to get drawn
18537         regardless of whether or not they were in the clipping rectangle.
18539 2005-04-18  Jackson Harper  <jackson@ximian.com>
18541         * CurrencyManager.cs: There are four rules for GetItemProperties:
18542         - If the type is an array use the element type of the array
18543         - If the type is a typed list, use the type
18544         - If the list contains an Item property that is not an object, use
18545         that property
18546         - use the first element of the list if there are any elements in
18547         the list.
18548         
18549 2005-04-17  Jackson Harper  <jackson@ximian.oom>
18551         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
18552         click. This handles offsets for scrolling properly and reduces
18553         memory. Also fixed GetNode to not offset now that TopNode works
18554         properly.
18555         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
18556         
18557 2005-04-17  Jackson Harper  <jackson@ximian.com>
18559         * CursorConverter.cs: Initial implementation.
18561 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
18563         * ListControl.cs: work towards complex data binding support on ListControl
18564         * CurrencyManager.cs: work towards complex data binding support on ListControl
18565         * ListBox.cs: work towards complex data binding support on ListControl
18568 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
18570         * GridTableStylesCollection.cs: fixes name and constructor
18571         * DataGridTableStyle.cs: fixes
18572         * DataGridBoolColumn.cs: fixes names and constructors
18573         * DataGrid.cs: define methods and properties. Some init implementations
18574         * DataGridCell.cs: define methods and properties. Some init implementations
18575         * GridTablesFactory.cs: Define methods and properties
18577 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
18579         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
18580         graphics port changes.  We still want the coordinates in global screen
18581         coordinates.
18583 2005-04-14  Jackson Harper  <jackson@ximian.com>
18585         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
18586         check plus minus or checkbox clicks unless those features are enabled.
18588 2005-04-14  Jackson Harper  <jackson@ximian.com>
18590         * TreeView.cs: Add methods for setting the top and bottom visible
18591         nodes. TreeNode::EnsureVisible uses these methods.
18592         * TreeNode.cs: Implement EnsureVisible
18594 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
18596         * Form.cs: Pospone menu assignation if the window has not been created yet
18597         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
18598         size and position
18600 2005-04-12  Jackson Harper  <jackson@ximian.com>
18602         * TreeView.cs: Set the TopNode properly when scrolling
18603         occurs. This has the added benifit of reducing the amount of
18604         walking that needs to be done when drawing. Also removed an old
18605         misleading TODO.
18606         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
18607         
18608 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
18610         * Timer.cs: fixes interval setting when the timer is already enabled
18611         
18612 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
18614         * FolderBrowserDialog.cs: First approach
18616 2005-04-09  Peter Bartok  <pbartok@novell.com>
18618         * FolderBrowserDialog: Added
18620 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
18622         * LinkLabel.cs: move drawing code into the theme
18623         * ThemeWin32Classic.cs: drawing code and painting background bugfix
18624         * Theme.cs: define DrawLinkLabel method
18626 2005-04-05  Jackson Harper  <jackson@ximian.com>
18628         * BindingContext.cs: Use weak references so these bad actors don't
18629         stay alive longer then they need to.
18631 2005-04-05  Jackson Harper  <jackson@ximian.com>
18633         * ListControl.cs: Basic implementation of complex databinding.
18634         * ComboBox.cs:
18635         * ListBox.cs: Add calls to ListControl databinding methods.
18637 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
18639         * FileDialog.cs:
18640           - Don't change PopupButtonState to Normal when the
18641             PopupButton gets pressed several times.
18642           - Renamed ButtonPanel to PopupButtonPanel
18644 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
18646         * ColorDialog.cs: Use cached objects instead of creating them
18647         * LinkLabel.cs: Use cached objects instead of creating them
18648         * Splitter.cs: Use cached objects instead of creating them
18649         * FontDialog.cs: Use cached objects instead of creating them
18650         * PropertyGridView.cs: Use cached objects instead of creating them
18651         * MessageBox.cs: Use cached objects instead of creating them
18652         * FileDialog.cs: Use cached objects instead of creating them
18653         * ThemeWin32Classic.cs: Use cached objects instead of creating them
18654         * TreeView.cs: Use cached objects instead of creating them
18655         
18656 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
18658         * Control.cs: use Equals to compare the font since no == op
18659         * ScrollBar.cs: use Equals to compare the font since no == op
18661 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
18663         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
18665 2005-04-01  Jackson Harper  <jackson@ximian.com>
18667         * Binding.cs: Implement IsBinding.
18668         * BindingManagerBase.cs:
18669         * PropertyManager.cs:
18670         * CurrencyManager.cs: Add IsSuspended property.
18672 2005-04-01  Jackson Harper  <jackson@ximian.com>
18674         * Binding.cs: Had some IsAssignableFrom calls backwards.
18676 2005-04-01  Jackson Harper  <jackson@ximian.com>
18678         * Binding.cs: Handle null data members when pulling data.
18679         * PropertyManager.cs: Handle the data member being a property that
18680         does not exist.
18682 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
18684         * DataGridTextBoxColumn.cs: fixes signature
18685         * DataGrid.cs: calls right constructor
18687 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
18689         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
18690         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
18691         * GridTableStylesCollection.cs: implements GridTableStylesCollection
18692         * DataGridTableStyle.cs: implements DataGridTableStyle
18693         * DataGridBoolColumn.cs: implements DataGridBoolColumn
18694         * DataGridTextBox.cs: implements DataGridTextBox
18695         * DataGridColumnStyle.cs: implements DataGridColumnStyle
18697 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
18699         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
18701 2005-03-29  Peter Bartok  <pbartok@novell.com>
18703         * Application.cs:
18704           - Properly implemented CompanyName property
18705           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
18706             returns a path that includes CompanyName, ProductName and
18707             Version (fixes bug #70330)
18709 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
18711         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
18712           fixes bug #72588.
18714 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
18716         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
18717         
18718           - Added ReadOnly CheckBox
18719           - Further refactoring: moved some code from Open-/SaveFileDialog
18720             to FileDialog
18722 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
18724         * OpenFileDialog.cs: Fixed CheckFileExists
18725         * FileDialog.cs:
18726           Moved FileView and DirComboBox outside FileDialog class.
18727           They can now be used outside FileDialog
18729 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
18731         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
18732         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
18734 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
18736         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
18737           - Added missing CreatePrompt property in SaveDialog
18738           - Overall SaveDialog handling should be better now
18739           - Added non standard ShowHiddenFiles property
18740           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
18741           - Added InitialDirectory and RestoreDirectory support
18743 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
18745         * FileDialog.cs: Made dirComboBox usable
18747 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
18749         * FileDialog.cs: Added Filter support (case sensitiv)
18751 2005-03-24  Jackson Harper  <jackson@ximian.com>
18753         * TabControl.cs: Need a couple more pixels for the lines.
18755 2005-03-23  Jackson Harper  <jackson@ximian.com>
18757         * TabControl.cs: Give the tab page focus when it is selected.
18759 2005-03-23  Jackson Harper  <jackson@ximian.com>
18761         * TabControl.cs: Account for the drawing of tabs borders when
18762         invalidating. If the slider was clicked dont do click detection on
18763         the tabs.
18765 2005-03-23  Jackson Harper  <jackson@ximian.com>
18767         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
18769 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
18771         * CategoryGridEntry.cs: Added
18772         * GridItem.cs: Added helper properties
18773         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
18774         * GridEntry.cs: Updated code for collection
18775         * PropertyGrid.cs: Cleaned up some formatting
18776         * PropertyGridView.cs: Added drop down functionality for enums.
18777         * GridItemCollection.cs: Added enumerator logic
18778         * PropertyGridEntry.cs: Added
18780 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
18782         * FileDialog.cs:
18783           - Removed unnecessary commented code
18784           - Fixed handling for entering the filename manually in the combobox
18786 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
18788         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
18790 2005-03-18  Peter Bartok  <pbartok@novell.com>
18792         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
18793           them being touching the border
18795 2005-03-18  Peter Bartok  <pbartok@novell.com>
18797         * TextControl.cs: Quick hack to center text better
18799 2005-03-18  Peter Bartok  <pbartok@novell.com>
18801         * ControlPaint.cs:
18802           - Don't throw NotImplemented exceptions, just print a notice once
18803             instead (requested by Miguel). This makes running existing SWF
18804             apps a bit easier
18805         * Control.cs:
18806           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
18807           - Added context menu trigger on right click
18808         * Panel.cs: Trigger invalidate on resize
18809         * StatusBar.cs:
18810           - Removed old double-buffer drawing
18811           - Added ResizeRedraw style to force proper update of statusbar
18812         * ListView.cs:
18813           - Removed debug output
18814         * ThemeWin32Classic.cs:
18815           - Fixed drawing of status bar, now draws Text property if there
18816             are no defined panels
18818 2005-03-18  Jackson Harper  <jackson@ximian.com>
18820         * ImageList.cs: When the image stream is set pull all the images
18821         from it.
18822         * ImageListStreamer.cs: Implement reading image list streams.
18824 2005-03-18  Peter Bartok  <pbartok@novell.com>
18826         * ThemeWin32Classic.cs (DrawPictureBox):
18827           - Fixed calculations for centered drawing
18828           - Fixed drawing for normal mode, not scaling the image on normal
18830 2005-03-18  Peter Bartok  <pbartok@novell.com>
18832         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
18833           textbox
18834         * FileDialog.cs:
18835           - Made Open/Save button the accept button for FileDialog
18836           - Tied the cancel button to the IButtonControl cancel button
18837           - Save/Open now properly builds the pathname
18838           - Now handles user-entered text
18839           - Preventing crash on right-click if no item is selected
18840           - Fixed Text property, now uses contents of textbox
18841           - Fixed SelectedText property, now just returns the text part that
18842             is selected in the text box
18844 2005-03-18  Jackson Harper  <jackson@ximian.com>
18846         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
18847         rect, make sure to de-adjust the interior rect after drawing the
18848         tab text.
18850 2005-03-18  Peter Bartok  <pbartok@novell.com>
18852         * MenuAPI.cs: Remove menu *before* executing selected action to
18853           prevent the menu from 'hanging around'
18854           
18855 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
18857         * XplatUIOSX.cs: Implemented WorkingArea property
18859 2005-03-17  Peter Bartok  <pbartok@novell.com>
18861         * XplatUIX11.cs: Fixed menu coord calculations
18862         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
18863           for calculating offsets
18865 2005-03-17  Peter Bartok  <pbartok@novell.com>
18867         * Hwnd.cs: Do not consider menu presence for default client
18868           rectangle location/size
18869         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
18870           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
18871           translation functions
18872         * FileDialog.cs: Fixed (what I presume is a) typo
18874 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
18876         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
18877           X access (avoids X-Async errors)
18879 2005-03-16  Jackson Harper  <jackson@ximian.com>
18881         * TabControl.cs: Raise the SelectedIndexChanged event.
18883 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
18885         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
18886           - Removed vertical ToolBar and replaced it with a custom panel
18887             (desktop and home button already work)
18888           - Added Help button (some controls get resized or relocated then)
18889           - Draw correct text depending on Open or Save.
18890           - Fixed some typos...
18892 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
18894         * ScrollBar.cs:
18895           - Only change Maximum and Minimum when need it (bug fix)
18897 2005-03-15  Peter Bartok  <pbartok@novell.com>
18899         * Form.cs: Use Handle for icon, to trigger creation if
18900           the window does not yet exist
18901         * Control.cs:
18902           - CanSelect: Slight performance improvement
18903           - Focus(): Preventing possible recursion
18904           - Invalidate(): Removed ControlStyle based clear flag setting
18905           - WM_PAINT: fixed logic for calling OnPaintBackground
18906           - WM_ERASEBKGND: Fixed logic, added call to new driver method
18907             EraseWindowBackground if the control doesn't paint background
18908         * XplatUIWin32.cs:
18909           - Moved EraseWindowBackground() method to internal methods
18910           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
18911             is sent via SendMessage on BeginPaint call on Win32
18912         * XplatUIX11.cs:
18913           - Added EraseWindowBackground() method
18914           - No longer sends WM_ERASEBKGND on .Expose, but on call to
18915             PaintEventStart, which more closely matches Win32 behaviour
18916           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
18917           - Fixed SetFocus() to properly deal with client and whole windows
18918         * Hwnd.cs: Added ErasePending property
18919         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
18920         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
18922 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
18924         * XplatUIOSX.cs:
18925           - Fix hard loop when timers exist.
18926           - Fix bugs with middle and right click for 3 button mice.
18928 2005-03-11  Peter Bartok  <pbartok@novell.com>
18930         * XplatUIX11.cs:
18931           - get_WorkingArea: Need to call X directly, GetWindowPos only
18932             returns cached data now
18933           - Added sanity check to GetWindowPos hwnd usage
18935 2005-03-11  Jackson Harper  <jackson@ximian.com>
18937         * BindingManagerBase.cs: This method isn't used anymore as
18938         PullData now updates the data in the control.
18940 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
18942         * Form.cs: fixes menu drawing on X11
18943         * MenuAPI.cs:  fixes menu drawing on X11
18945 2005-03-11  Peter Bartok  <pbartok@novell.com>
18947         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
18948           from Jonathan Gilbert; should fix bug #73606
18949         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
18950           in Screen coordinates. Thanks, Jordi.
18951         * Form.cs: Added missing attribute
18953 2005-03-11  Peter Bartok  <pbartok@novell.com>
18955         * Form.cs:
18956           - Rudimentary Mdi support
18957           - Removed outdated FormParent code
18958           - Implemented lots of missing properties and methods, still missing
18959             transparency support
18960           - Added missing attributes
18961           - Implemented support for MaximumBounds
18962           - Added firing of various events
18963         * XplatUI.cs: Added SetIcon() method
18964         * XplatUIDriver.cs: Added SetIcon() abstract
18965         * XplatUIOSX.cs: Stubbed out SetIcon() method
18966         * XplatUIX11.cs:
18967           - Implemented SetIcon() support
18968           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
18969           - Switched to unix line endings
18970         * XplatUIWin32.cs:
18971           - Made POINT internal so for can access it as part of MINMAX
18972           - Implemented SetIcon() support
18973           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
18974             native Mdi support again, might have to go managed)
18975         * Control.cs: Now fires the StyleChanged event
18976         * MdiClient.cs: Added; still mostly empty
18978 2005-03-10  Peter Bartok  <pbartok@novell.com>
18980         * SaveFileDialog.cs: Added emtpy file
18982 2005-03-08  Peter Bartok  <pbartok@novell.com>
18984         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
18985           in turn triggers OnCreateContro) when creating a handle for the
18986           first time.
18987         * TextControl.cs: Fixed endless loop in certain cases when
18988           replacing the current selection
18990 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
18992         * ScrollBar.cs:
18993           - Honors NewValue changes in Scroll events allowing apps to change it
18994           - Adds First and Last Scroll events
18995           - Fixes Thumb events
18997 2005-03-07  Peter Bartok  <pbartok@novell.com>
18999         * Hwnd.cs: Added DefaultClientRectangle property
19000         * XplatUI.cs: Now using the X11 driver Where() method, which provides
19001           more detailed debug information
19002         * XplatUIX11.cs:
19003           - Fixed size-change feedback loop, where we would pull an old size
19004             off the queue and mistakenly change our window's size to an
19005             earlier value
19006           - Now compressing ConfigureNotify events, to reduce looping and
19007             redraw issues
19008         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
19009           is called
19011 2005-03-07  Jackson Harper  <jackson@ximian.com>
19013         * Binding.cs: Push data pushes from data -> property. Check if the
19014         property is readonly when attempting to set it.
19016 2005-03-07  Jackson Harper  <jackson@ximian.com>
19018         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
19019         instead of IsSubclassOf. Pulling data now sets the value on the
19020         control.
19021         * PropertyManager.cs:
19022         * CurrencyManager.cs: Just need to pull data when updating now,
19023         because PullData will set the value on the control.
19025 2005-03-04  Jackson Harper  <jackson@ximian.com>
19027         * Binding.cs: Implement data type parsing and converting on pulled
19028         data. TODO: Are there more ways the data can be converted?
19030 2005-03-04  Jackson Harper  <jackson@ximian.com>
19032         * Binding.cs: Support <Property>IsNull checks. Also bind to the
19033         controls Validating method so we can repull the data when the
19034         control loses focus.
19036 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
19038         * ColumnHeader.cs:
19039           - Fixes null string format
19040           
19041         * ListView.cs:
19042           - Adds enum type checks
19043           - Fixes redrawing and recalc need after changing some properties
19044           - Fixes on focus_item set after the event
19045           - Fixes adding columns after the control has been created
19046           
19047         * ThemeWin32Classic.cs:
19048           - Fixes CheckBox focus rectangle
19049           - Fixes ColumnHeader drawing
19052 2005-03-03  Jackson Harper  <jackson@ximian.com>
19054         * Binding.cs: Bind to <Property>Changed events so we can detect
19055         when properties are changed and update the data.
19057 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
19059         * ImageList.cs:
19060           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
19061           - Fixes ImageList constructor with ImageList container
19062           - Fixes image scaling (wrong parameters at DrawImage)
19064 2005-02-02  Jackson Harper  <jackson@ximian.com>
19066         * Binding.cs: Make property searches case-insensitive. Eliminate
19067         some duplicated code.
19069 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
19071         * ComboBox.cs:
19072                 - Handle focus event
19073                 - Fix scrollbar events
19074                 - Discard highlighted item if remove it
19075                 - Fixes SelectedItem with strings
19077 2005-03-01  Peter Bartok  <pbartok@novell.com>
19079         * Control.cs:
19080           - Fixed Visible property, now follows (once again) parent chain
19081             to return false if any control in the chain is visible=false
19082           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
19083           - Fixed several places where is_visible instead of Visible was used
19084           - Implemented FIXME related to focus selection when setting focused
19085             control to be invisible
19087         * XplatUIWin32.cs: Now using proper method to find out if window is
19088           visible. Thanks to Jordi for pointing it out
19090 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
19092         * ComboBox.cs: show/hide scrollbar instead of creating it
19094 2005-02-27  Jackson Harper  <jackson@ximian.com>
19096         * CurrencyManager.cs: Add PositionChanged stuff.
19098 2005-02-27  Peter Bartok  <pbartok@novell.com>
19100         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
19101         * XplatUIOSX.cs: Added GetMenuOrigin() stub
19102         * XplatUIWin32.cs: Implemented GetMenuOrigin()
19103         * XplatUIX11.cs:
19104           - Implemented GetMenuDC()
19105           - Implemented GetMenuOrigin()
19106           - Implemented ReleaseMenuDC()
19107           - Implemented generation of WM_NCPAINT message
19108           - Implemented generation and handling of WM_NCCALCSIZE message
19109         * Form.cs: Added debug helper message for Jordi's menu work
19110         * Hwnd.cs:
19111           - Modified ClientRect property; added setter, fixed getter to handle
19112             setting of ClientRect
19113           - Added MenuOrigin property
19115 2005-02-26  Peter Bartok  <pbartok@novell.com>
19117         * XplatUIX11.cs:
19118           - Destroys the caret if a window that's being destroyed contains it
19119           - Ignores expose events coming from the X11 queue for windows that
19120             already are destroyed
19121           - Now uses the proper variable for handling DestroyNotify, before we
19122             marked the wrong window as destroyed
19123           - Improved/added some debug output
19125 2005-02-26  Peter Bartok  <pbartok@novell.com>
19127         * X11Keyboard.cs: Fixes to work on 64bit systems
19129 2005-02-26  Peter Bartok  <pbartok@novell.com>
19131         * Control.cs:
19132           - Now calling OnHandleDestroyed from DestroyHandle()
19133             instead of Dispose()
19134           - Removed bogus call to controls.Remove() from DestroyHandle()
19136 2005-02-26  Peter Bartok  <pbartok@novell.com>
19138         * Control.cs: Properly destroy child windows when our handle is
19139           destroyed
19141 2005-02-25  Peter Bartok  <pbartok@novell.com>
19143         * XplatUI.cs:
19144           - Added 'DriverDebug' define to allow tracing XplatUI API calls
19145           - Alphabetized Static Methods and Subclasses
19147         * XplatUIX11.cs:
19148           - Added XException class to allow custom handling of X11 exceptions
19149           - Created custom X11 error handler, tied into XException class
19150           - Added support for MONO_XEXCEPTIONS env var to allow the user
19151             to either throw an exception on X errors or continue running
19152             after displaying the error
19153           - Added handling of DestroyNotify message
19154           - Added handler for CreateNotify message (still disabled)
19155           - Improved (tried to at least) Where method to provide file and lineno
19156         * X11Structs.cs:
19157           - Added XErrorHandler delegate
19158           - Added XRequest enumeration (to suppor translation of errors)
19160 2005-02-25  Jackson Harper  <jackson@ximian.com>
19162         * PropertyManager.cs: Implement editing features
19163         * CurrencyManager.cs:
19164         * Binding.cs: First attempt at UpdateIsBinding
19165         * BindingManagerBase.cs: Call UpdateIsBinding before
19166         pushing/pulling data.
19168 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
19170         * MenuAPI.cs: Respect disabled items
19171         * ThemeWin32Classic.cs
19172                 - Caches ImageAttributes creation for DrawImageDisabled
19173                 - Fixes vertical menu line drawing
19174                 - Draws disabled arrows in disable menu items
19176 2005-02-24  Peter Bartok  <pbartok@novell.com>
19178         * Hwnd.cs:
19179           - Added UserData property to allow associating arbitrary objects
19180             with the handle
19181           - Fixed leak; now removing Hwnd references from static windows array
19182         * XplatUIWin32.cs:
19183           - Fixed Graphics leak in PaintEventEnd
19184           - Removed usage of HandleData, switched over to Hwnd class
19185         * HandleData.cs: Removed, obsoleted by Hwnd.cs
19187 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
19189         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
19190         * ScrollBar.cs: Fixes bug
19191         * TrackBar.cs: removes death code, clipping, mimize refreshes,
19192          keyboard navigation enhancements
19194 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
19196         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
19197         * GroupBox.cs: Add control styles
19198         * Label.cs: Add control styles
19199         * UpDownBase.cs: Add control styles
19200         * ListBox.cs: Add control styles
19201         * XplatUIWin32.cs: Fixes wrong parameter order
19204 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
19206         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
19208 2005-02-23  Jackson Harper  <jackson@ximian.com>
19210         * PropertyManager.cs: Implement property binding. This doesn't
19211         seem to work yet though as (I think) there are some bugs in
19212         System.ComponentModel.PropertyDescriptor.
19213         * BindingContext.cs: Use new PropertyManager constructor.
19215 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
19217         * ProgressBar.cs: use clip region in ProgressBar
19218         * ThemeWin32Classic.cs: use clip region in ProgressBar
19220 2004-02-22  Jackson Harper  <jackson@ximian.com>
19222         * BindingsCollection.cs: Remove some debug code.
19224 2005-02-22  Jackson Harper  <jackson@ximian.com>
19226         * BindingContext.cs:
19227         * ControlBindingsCollection.cs:
19228         * CurrencyManager.cs:
19229         * Binding.cs:
19230         * BindingManagerBase.cs: Initial implementation
19231         * BindingsCollection.cs: Add an internal contains method that the
19232         BindingManagerBase uses to ensure bindings aren't added twice to
19233         the collection.
19234         * PropertyManager.cs: Stubbed out.
19235         * Control.cs:
19236         * ContainerControl.cs: Hook up databinding
19237         
19238 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
19240         * XplatUIOSX.cs:
19241           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
19242           Fixed Invalidate/Update chain.
19243           Fixed tons of other minor bugs (this is almost a complete rewrite).
19245 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
19247         * ComboBox.cs: do subcontrol creation when the control is created
19249 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
19251         * Label.cs: fixes image drawing (image and imagelist)
19252         * ThemeWin32Classic.cs: cache brushes
19253         
19254 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
19256         * Form.cs: Move menu drawing code to Theme class
19257         * ComboBox.cs: Move ComboBox drawing code to Theme class
19258         * MenuItem.cs: Move menu drawing code to Theme class
19259         * MenuAPI.cs: Move menu drawing code to Theme class
19260         * ThemeWin32Classic.cs: New methods
19261         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
19262         * ListBox.cs: Move Listbox drawing code to Theme class
19263         * Theme.cs: New methods
19265 2005-02-20  Peter Bartok  <pbartok@novell.com>
19267         * Control.cs:
19268           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
19269             only process mnemonics on those)
19270           - Fixed event sequence for key handling; first calling
19271             ProcessKeyEventArgs now
19272         * TextBoxBase.cs:
19273           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
19274             for processing non-character keys
19275           - Fixed WM_CHAR to generate proper event sequence before processing
19276         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
19277           generation
19279 2005-02-19  Peter Bartok  <pbartok@novell.com>
19281         * UserControl.cs: Added TextChanged event; added attributes
19282         * SizeGrip.cs: Implemented resizing and optional display of grip
19283         * Form.cs: Fixed attribute
19284         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
19285           Changed meaning of ScrollWindow bool argument; instead of the
19286           clear attribute (which will be true usually anyway), it gives the
19287           option of moving child controls as well.
19288         * XplatUIX11.cs:
19289           - Changed to match new ScrollWindow argument
19290           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
19291             now handles the implicit parent window a WM puts around us
19292         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
19293           to work)
19294         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
19295         * TreeView.cs: Adjusted to new ScrollWindow arguments
19297 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
19299         * Form.cs: Menu integration with non-client area
19300         * MenuItem.cs: Menu integration with non-client area
19301         * MenuAPI.cs: Menu integration with non-client area
19303 2005-02-18  Peter Bartok  <pbartok@novell.com>
19305         * MethodInvoker.cs: Added
19306         * MdiLayout.cs: Added
19307         * SendKeys.cs: Started implementation
19308         * ErrorIconAlignment.cs: Added
19310 2005-02-18  Peter Bartok  <pbartok@novell.com>
19312         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
19313         * Form.cs: Added handling for Menu-related Non-client messages
19315 2005-02-17  Peter Bartok  <pbartok@novell.com>
19317         * UpDownBase.cs: Fixed typo, compilation errors
19318         * DomainUpDown.cs: Fixed attribute value
19320 2005-02-16  Miguel de Icaza  <miguel@novell.com>
19322         * UpDownBase.cs: Attach entry events.
19323         Propagate events.
19324         Add ForeColor property, Focused, InterceptArrowKeys (interception
19325         does not work yet).
19327 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
19329         * Form.cs:
19330                 - Redraw non client are on Setmenu
19331                 - Calc proper menu starting point
19333 2005-02-17  Peter Bartok  <pbartok@novell.com>
19335         * Application.cs: Fixed message_filter check
19337 2005-02-17  Peter Bartok  <pbartok@novell.com>
19339         * Application.cs: Now calls registered message filters
19340         * DockStyle.cs: Fixed attribute
19341         * Form.cs: Fixed attribute
19342         * Menu.cs: Fixed attribute
19343         * ToolTip.cs: Fixed attribute
19344         * TreeNode.cs: Added missing attributes and arranged in regions
19345         * PropertyGrid.cs: Fixed signatures
19346         * TreeNodeCollection.cs: Added attributes
19347         * Splitter.cs: Added missing attributes; arranged into regions
19348         * TabPage.cs: Added missing attributes; arranged into regions
19349         * TextBoxBase.cs: Added missing attributes
19350         * TextBox.cs: Added missing attributes
19351         * ArrangeDirection.cs: Added missing attributes
19352         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
19353         * ToolBarButton.cs: Fixed attributes
19354         * AnchorStyles.cs: Fixed attribute
19355         * TrackBar.cs: Fixed attributes
19356         * TabControl.cs: Added missing attributes and arranged into regions
19357         * ToolBar.cs: Fixed attribute
19358         * StatusBar.cs: Fixed signature, organized into regions and added
19359           attributes
19360         * StatusBarPanel.cs: Fixed attributes
19361         * ContentsResizedEventArgs.cs: Implemented
19362         * ContentsResizedEventHandler.cs: Implemented
19363         * DateBoldEventArgs.cs: Implemented
19364         * DateBoldEventHandler.cs: Implemented
19365         * UpDownEventArgs.cs: Implemented
19366         * UpDownEventHandler.cs: Implemented
19367         
19368 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
19370         * Form.cs: first Menu NC refactoring
19371         * MenuAPI.cs: first Menu NC refactoring
19372         
19373 2005-02-16  Peter Bartok  <pbartok@novell.com>
19375         * ImeMode.cs: Added missing attributes
19376         * Menu.cs: Fixed attribute
19377         * GroupBox.cs: Fixed attribute
19378         * Label.cs: Fixed attribute
19379         * ColorDialog.cs (RunDialog): Removed TODO attribute
19380         * ComboBox.cs: Fixed attributes
19381         * ListControl.cs: Added missing attributes
19382         * PropertyGrid.cs: Fixed attributes
19383         * Control.cs: Fixed attributes
19384         * ListViewItem.cs: Added TypeConverter attribute
19385         * NotifyIcon.cs: Fixed attributes
19386         * ListView.cs: Fixed attributes
19387         * ButtonBase.cs: Fixed attribute
19388         * ImageList.cs: Added missing attributes
19389         * ContainerControl.cs: Fixed signature
19390         * CheckedListBox.cs: Fixed attribute; added missing attributes
19391         * Panel.cs: Fixed attributes
19392         * PropertyTabChangedEventArgs.cs: Added missing attribute
19393         * PropertyValueChangedEventArgs.cs: Added missing attribute
19394         * Binding.cs: Fixed attribute
19395         * ListViewItemConverter: Implemented ListViewSubItemConverter class
19396         * ListBox.cs: Fixed attribute; added missing attributes;
19397         * ScrollableControl.cs: Added missing attributes
19398         * PictureBox.cs: Added missing attributes; implemented missing property
19399         * DateTimePicker.cs: Added missing attributes
19400         * Theme.cs (ToolWindowCaptionHeight): Fixed type
19401         * MonthCalendar.cs: Fixed attributes
19402         * StatusBarPanel.cs: Added missing attributes
19403         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
19405 2005-02-16  Peter Bartok  <pbartok@novell.com>
19407         * TextBoxBase.cs: The previous method to enforce height yet remember
19408           the requested high was less than ideal, this is an attempt to do
19409           it better.
19410         * Control.cs: Added comment about possible problem
19411         * Copyright: Updated format
19412         * GridItemType.cs: Fixed swapped values
19414 2005-02-15  Jackson Harper  <jackson@ximian.com>
19416         * BaseCollection.cs: Use property so we never access an
19417         uninitialized list. Also initialize the list in the property.
19419 2005-02-15  Peter Bartok  <pbartok@novell.com>
19421         * GroupBox.cs (ProcessMnemonic): Implemented
19422         * Label.cs (ProcessMnemonic): Implemented
19423         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
19424           hotkeys
19426 2005-02-15  Peter Bartok  <pbartok@novell.com>
19428         * RadioButton.cs (ProcessMnemonic): Implemented
19429         * CheckBox.cs (ProcessMnemonic): Implemented
19430         * Control.cs:
19431           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
19432             handling
19433           - Added internal method to allow calling ProcessMnemonic from other
19434             controls
19435         * ContainerControl.cs:
19436           - Started support for handling validation chain handling
19437           - Implemented ProcessMnemonic support
19438           - Added Select() call to Active, to make sure the active control
19439             receives focus
19440         * Form.cs: Setting toplevel flag for Forms (this was lost in the
19441           FormParent rewrite)
19442         * ThemeWin32Classic.cs:
19443           - DrawCheckBox(): Fixed stringformat to show hotkeys
19444           - DrawRadioButton(): Fixed stringformat to show hotkeys
19445         * CommonDialog.cs: Removed WndProc override, not needed
19447 2005-02-14  Peter Bartok  <pbartok@novell.com>
19449         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
19450           missed those in the rewrite
19452 2005-02-14  Miguel de Icaza  <miguel@novell.com>
19454         * NumericUpDown.cs (Increment, ToString): Add.
19455         (DecimalPlaces): implement.
19456         
19457         Add attributes.
19458         
19459         * UpDownBase.cs: Add the designer attributes.
19461 2005-02-13  Peter Bartok  <pbartok@novell.com>
19463         * Panel.cs: Removed border_style, now in Control
19464         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
19465           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
19467 2005-02-13  Peter Bartok  <pbartok@novell.com>
19469         * MouseButtons.cs: Added missing attributes
19470         * XplatUIStructs.cs: Added enumeration for title styles
19471         * LeftRightAlignment.cs: Added missing attributes
19472         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
19473           it compatible with Graphics.FromHwnd()
19474         * SelectedGridItemChangedEventArgs.cs: Fixed property type
19475         * Keys.cs: Added missing attributes
19476         * SelectionRange.cs: Added missing attributes
19477         * SelectionRangeConverter.cs: Added
19478         * XplatUI.cs:
19479           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
19480             ReleaseMenuDC methods
19481           - Renamed ReleaseWindow to UngrabWindow
19482           - Added proper startup notice to allow version identification
19483         * Form.cs:
19484           - Added missing attributes
19485           - Removed FormParent concept
19486         * Label.cs: Removed border_style field, now in Control
19487         * RadioButton.cs: Now properly selects RadioButton when focus is
19488           received
19489         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
19490         * Control.cs:
19491           - Added missing attributes
19492           - Added borderstyle handling
19493           - Removed FormParent concept support
19494           - Fixed calls to XplatUI to match changed APIs
19495           - Fixed bug that would case us to use disposed Graphics objects
19496           - Removed unneeded internal methods
19497           - PerformLayout(): Fixed to handle DockStyle.Fill properly
19498           - SelectNextControl(): Fixed to properly check common parents
19499         * TextBoxBase.cs: Removed border_style field (now in Control)
19500         * MessageBox.cs:
19501           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
19502             fixed calculations for form size
19503           - Added support for localized strings and icons
19504           - Improved form size calculations, added border
19505         * ListView.cs: Removed border_style field (now in Control)
19506         * X11Structs.cs: Moved several structs from X11 driver here
19507         * X11Keyboard.cs: Changed debug message
19508         * Application.cs: Removed FormParent concept support
19509         * CommonDialog.cs:
19510           - Resetting end_modal flag
19511           - Removed FormParent concept support
19512         * NativeWindow.cs: Removed FormParent concept support
19513         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
19514           Client area and Non-Client whole window to allow support for WM_NC
19515           messages
19516         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
19517           prevent using it until it supports Hwnd as per Geoff Norton's request
19518         * ToolBar.cs: Fixed drawing, was not doing proper drawing
19519         * PictureBox.cs: Removed border_style field, now in Control
19520         * XplatUIWin32.cs: Added new driver methods
19522 2005-02-12  Peter Bartok  <pbartok@novell.com>
19524         * OpacityConverter.cs: Implemented
19525         * Hwnd.cs: Internal class to support drivers that need to emulate
19526           client area/non-client area window behaviour
19528 2005-02-11  Peter Bartok  <pbartok@novell.com>
19530         * KeysConverter.cs: Implemented
19532 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
19534         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
19535         * LinkLabel: Added missing attributes
19536         * MainMenu.cs: fixes ToString
19537         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
19538         * ListBox.cs: fixes event position
19539         * TrackBar.cs: adds missing attributes and events
19540         
19541 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
19543         * MenuItem.cs: Use SystemInformation and bug fixes
19544         * MenuAPI.cs: Use SystemInformation and bug fixes
19546 2005-02-09  Jackson Harper  <jackson@ximian.com>
19548         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
19549         their keystate otherwise things like VK_MENU get stuck "on".
19551 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
19553         * ListBox.cs: Fixes AddRange bug
19554         
19555 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
19557         * ProgressBar.cs
19558                 - Add missing attributes
19559                 - Add missing method
19560                 
19561         * CheckedListBox.cs: Added missing attributes
19562                 - Add missing attributes
19563                 - Remove extra method
19564         
19565         * ComboBox.cs: Added missing attributes
19566         * VScrollBar.cs: Added missing attributes
19567         * ScrollBar.cs:  Added missing attributes
19568         * ListBox.cs: Fixes signature, add missing consts
19569         * LinkArea.cs:   Added missing attributes
19570         
19572 2005-02-08  Peter Bartok  <pbartok@novell.com>
19574         * Menu.cs: Added missing attributes
19575         * MainMenu.cs: Added missing attributes
19576         * GroupBox.cs: Added missing attributes
19577         * Label.cs: Added missing attributes
19578         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
19579         * ColorDialog.cs:
19580           - Added Instance and Options properties
19581           - Added missing attributes
19582         * Cursor.cs: Made Serializable
19583         * NotifyIcon: Added missing attributes
19584         * MenuItem.cs: Added missing attributes
19585         * TextBoxBase.cs: Implemented AppendText() and Select() methods
19586         * Panel.cs: Added Missing attributes
19587         * MonthCalendar.cs: Fixed CreateParams
19589 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
19590         
19591         * LinkLabel.cs:
19592                 - Fixes signature
19593                 - Fixes issues with links
19594                 - Adds the class attributes
19596 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
19597         
19598         * ComboBox.cs:
19599                 - Fixes button when no items available in dropdown
19600                 - Fixes repainting problems
19601                 - Adds the class attributes
19602                 
19603 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
19605         * XplatUIOSX.cs: Detect the menu bar and title bar height from
19606         the current theme.  Cache these on startup.
19608 2005-02-07  Jackson Harper  <jackson@ximian.com>
19610         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
19611         the scrollbar buttons when they are depressed.
19613 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
19615         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
19616         Get the display size from the main displayid.  We currently dont
19617         support multiple display configurations.
19619 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
19621         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
19623 2005-02-07  Miguel de Icaza  <miguel@novell.com>
19625         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
19627 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
19629         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
19631 2005-02-04  Jackson Harper  <jackson@ximian.com>
19633         * ThemeWin32Classic.cs: Respect the clipping rect when
19634         drawing. Only fill the intersection of clips and rects so there
19635         isn't a lot of large fills.
19636         * ScrollBar.cs: Pass the correct clipping rect to the theme
19637         engine. Remove some debug code.
19639 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
19640         
19641         * DateTimePicker.cs:
19642                 - Fixed crash on DateTime.Parse, use Constructor instead
19644 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
19645         
19646         * MenuItem.cs:
19647         * MenuAPI.cs:
19648                 - Owner draw support (MeasureItem and DrawItem)
19650 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
19651         
19652         *  Menu.cs:
19653                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
19654                 - Fixes MenuItems.Add range
19655         * MenuItem.cs:
19656                 - MergeMenu and Clone and CloneMenu functions
19658 2005-02-03  Jackson Harper  <jackson@ximian.com>
19660         * ScrollBar.cs: Make abstract
19661         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
19662         is abstract.
19664 2005-02-03  Jackson Harper  <jackson@ximian.com>
19666         * ScrollBar.cs: First part of my scrollbar fixups. This removes
19667         all the unneeded refreshes and uses invalidates with properly
19668         computed rects.
19670 2005-02-03  Peter Bartok  <pbartok@novell.com>
19672         * ComponentModel.cs: Added
19673         * IDataGridEditingService.cs: Added
19674         * Timer.cs: Added missing attributes
19675         * ToolTip.cs: Added missing attributes
19677 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
19679         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
19681 2005-02-03  Peter Bartok  <pbartok@novell.com>
19683         * ListBox.cs: Added missing attributes
19685 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
19686         
19687         * ListBox.cs:
19688                 - Fixes font height after font change
19689                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
19690                 
19691 2005-02-02  Peter Bartok  <pbartok@novell.com>
19693         * HandleData.cs: Introduced static methods to allow class
19694           to be more self-contained and track it's own HandleData objects
19695         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
19696           HandleData to use new static methods
19698 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
19700         * Combobox.cs:
19701                 - Fixes default size and PreferredHeight
19702                 - Missing events
19703                 - ObjectCollection.Insert implementation
19704                 
19705         * ListControl.cs
19706                 - Fixes signature
19707         * ListBox.cs:
19708                 - Several fixes
19709                 - ObjectCollection.Insert implementation
19710                 - No selection after clean
19711                 - Small fixes
19713 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
19715         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
19717 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
19719         * Combobox.cs:
19720                 - Caches ItemHeight calculation for OwnerDrawVariable
19721                 - Handles dropdown properly
19722                 - Fixes several minor bugs
19724 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
19726         * ListBox.cs:
19727                 - Fixes 71946 and 71950
19728                 - Fixes changing Multicolumn on the fly
19729                 - Fixes keyboard navigation on Multicolumn listboxes
19731 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
19732         
19733         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
19734         crash reporter log.
19736 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
19738         * XplatUIOSX.cs: Allow applications to actually exit.
19740 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
19742         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
19743         their parent at creation time rather than lazily later.  Fixes a major
19744         regression we were experiencing.
19746 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
19748         * ThemeWin32Classic.cs: more date time picker painting fixes
19749         * DateTimePicker.cs: more monthcalendar drop down fixes
19750         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
19752 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
19754         * ScrollBar.cs:
19755                 - When moving the thumb going outside the control should stop the moving
19756                 - Adds the firing of missing events
19757                 - Fixes no button show if Size is not specified
19758                 - End / Home keys for keyboard navigation
19760 2005-01-30  Peter Bartok  <pbartok@novell.com>
19762         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
19763           sanity check to prevent theoretical loop
19764         * XplatUIWin32.cs (SetVisible): Removed debug output
19765         * XplatUIX11.cs (SystrayChange): Added sanity check
19766         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
19767         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
19768           behaviour, valid until the X11 client window rewrite is done
19769         * TextBox.cs (ctor): Setting proper default foreground and background
19770           colors
19772 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
19774         * Theme: Added DrawDateTimePicker to interface
19775         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
19776         * DateTimePicker.cs: Created (still needs keys and painting code)
19777         * DateTimePickerFormat.cs: added
19778         * MonthCalendar.cs: fixed CreateParams for popup window mode
19779           
19780 2005-01-29  Peter Bartok  <pbartok@novell.com>
19782         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
19783           this should also the calculations for ligher/darker
19784         * Theme.cs: Fixed defaults for ScrollBar widths/heights
19786 2005-01-29  Peter Bartok  <pbartok@novell.com>
19788         * ArrangeDirection.cs: Added
19789         * ArrangeStartingPositon.cs: Added
19790         * SystemInformation.cs: Implemented
19791         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
19792           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
19793           used by SystemInformation class
19794         * X11Strucs.cs: Added XSizeHints structure
19795         * MenuAPI.cs:
19796           - Fixed CreateParams to make sure the menu window is always visible
19797           - TrackPopupMenu: Added check to make sure we don't draw the
19798             menu offscreen
19800 2005-01-29  Peter Bartok  <pbartok@novell.com>
19802         * HandleData.cs: Added method for altering invalid area
19803         * TextBoxBase.cs: Implemented TextLength
19805 2005-01-28  Peter Bartok  <pbartok@novell.com>
19807         * XplatUIX11.cs: Improvement over last patch, not sending
19808           the WM_PAINT directly anymore, instead we scroll any pending
19809           exposed areas and let the system pick out the WM_PAINT later
19811 2005-01-28  Peter Bartok  <pbartok@novell.com>
19813         * SWF.csproj: Deleted, no longer used. Instead,
19814           Managed.Windows.Forms/SWF.csproj should be used
19815         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
19816           directly, to avoid a potential race condition with the next
19817           scroll
19819 2005-01-28  Peter Bartok  <pbartok@novell.com>
19821         * XplatUI.cs: Made class internal
19823 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
19825         * CheckedListBox.cs:
19826                 - Draw focus
19827                 - Fixed Drawing
19828                 - Missing methods and events
19830 2005-01-27  Peter Bartok  <pbartok@novell.com>
19832         * Application.cs (Run): Don't use form if we don't have one
19834 2005-01-27  Peter Bartok  <pbartok@novell.com>
19836         * TextBoxBase.cs (get_Lines): Fixed index off by one error
19838 2005-01-27  Peter Bartok  <pbartok@novell.com>
19840         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
19841         * GridItem.cs: Added; Patch by Jonathan S. Chambers
19842         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
19843         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
19844         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
19845         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
19846         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
19847         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
19848         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
19849         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
19850         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
19851         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
19853 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
19855         * Combobox.cs:
19856                 - Draw focus on Simple Combobox
19857                 - Fixes drawing issues
19858                 - fixes 71834
19860 2005-01-27  Peter Bartok  <pbartok@novell.com>
19862         * Form.cs:
19863           - Place window in default location, instead of hardcoded 0/0
19864           - Send initial LocationChanged event
19865         * Control.cs:
19866           - UpdateBounds after creation to find out where the WM placed us
19867           - Make sure that if the ParentForm changes location the Form
19868             is notified
19869         * XplatUIX11.cs: XGetGeometry will not return the coords relative
19870             to the root, but to whatever the WM placed around us.
19871             Translate to root coordinates before returning toplevel
19872             coordinates
19873         * XplatUIWin32.cs: Removed debug output
19874         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
19875           flag to GetWindowPos, to allow translation of coordinates on X11
19877 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
19879         * ListBox.cs: connect LostFocus Event
19881 2005-01-27  Peter Bartok  <pbartok@novell.com>
19883         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
19884           XplatUIX11.cs: Extended the Systray API
19885         * Form.cs: Removed debug output
19886         * Application.cs: Fixed focus assignment, always need to call
19887           XplatUI.Activate() since Form.Activate() has rules that may
19888           prevent activation
19889         * NotifyIcon.cs: Should be complete now
19890         * ToolTip.cs: Worked around possible timer bug
19892 2005-01-27  Jackson Harper  <jackson@ximian.com>
19894         * TabControl.cs:
19895         - Only invalidate the effected tabs when the
19896         selected index changes. This reduces drawing and gets rid of some
19897         flicker.
19898         - Only refresh if the tabs need to be shifted, otherwise only
19899         invalidate the slider button.
19900         - On windows the tabs are not filled to right if the slider is
19901         visible.
19902         
19903 2005-01-27  Jackson Harper  <jackson@ximian.com>
19905         * TabControl.cs: Only refresh on mouseup if we are showing the
19906         slider. Also only invalidate the button whose state has changed.
19908 2005-01-26  Peter Bartok  <pbartok@novell.com>
19910         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
19911         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
19912           and SystrayRemove() methods
19913         * XplatUIOSX.cs: Stubbed Systray methods
19914         * XplatUIX11.cs:
19915           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
19916             methods
19917           - Fixed broken XChangeProperty calls (marshalling messed up things)
19918         * X11Structs.cs: Added enums and structs required for Size hinting
19919         * NotifyIcon.cs: Added & implemented
19921 2005-01-26  Jackson Harper  <jackson@ximian.com>
19923         * TabControl.cs: Space vertically layed out tabs properly.
19925 2005-01-26  Peter Bartok  <pbartok@novell.com>
19927         * Form.cs (CreateClientParams): Always set the location to 0,0
19928           since we're a child window.
19930         * Control.cs (SetVisibleCore): Always explicitly setting the location
19931           of a toplevel window, apparently X11 doesn't like to move windows
19932           while they're not mapped.
19934 2005-01-26  Jackson Harper  <jackson@ximian.com>
19936         * TabControl.cs: Implement FillToRight size mode with vertically
19937         rendered tabs.
19939 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
19941         * ControlPaint.cs, ThemeWin32Classic.cs
19942                 - Fixes DrawFocusRectangle
19944 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
19946         * MenuAPI.cs:
19947                 - MenuBar tracking only starts when item is first clicked
19948                 - Fixes menu hidding for multiple subitems
19949                 - Unselect item in MenuBar when item Executed
19950                 - Fixes bug 71495
19952 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
19954         * ListControl.cs:
19955                 - IsInputKey for ListBox
19956         * ListBox.cs:
19957                 - Focus item
19958                 - Shift and Control item selection
19959                 - Implement SelectionMode.MultiExtended
19960                 - Fixes RightToLeft
19961         * ComboBox.cs:
19962                 - IsInputKey implemented
19963                 - Do not generate OnTextChangedEdit on internal txt changes
19964                 
19965 2005-01-23  Peter Bartok  <pbartok@novell.com>
19967         * AccessibleObject.cs: Partially implemented Select()
19968         * MonthCalendar.cs: Added missing attributes and events
19969         * Form.cs: Fixed CreateParams behaviour, now controls derived from
19970           form can properly override CreateParams.
19971         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
19972           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
19973           Control performs Invalidate & Update
19974         * NativeWindow (CreateHandle): Added special handling for Form
19975           and Form.FormParent classes to allow overriding of From.CreateParams
19976         * Control.cs:
19977           - ControlNativeWindow: Renamed 'control' variable to more intuitive
19978             name 'owner'
19979           - ControlNativeWindow: Added Owner property
19980           - Removed usage of Refresh() on property changes, changed into
19981             Invalidate(), we need to wait until the queue is processed for
19982             updates, direct calls might cause problems if not all vars for
19983             Paint are initialized
19984           - Added call to UpdateStyles() when creating the window, to set any
19985             styles that CreateWindow might have ignored.
19986           - Added support for Form CreateParent overrides to UpdateStyles()
19987         * MessageBox.cs: Removed no longer needed FormParent override stuff,
19988           CreateParams are now properly overridable
19989         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
19990           CreateParams are now properly overridable
19992 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
19994         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
19995         OnTextBoxChanged.
19997         Capture LostFocus and OnTextBoxChanged.  The later introduces a
19998         recursive invocation that I have not figured out yet.
20000         Reset the timer when not using (it was accumulating).
20003         (OnTextBoxChanged): Set UserEdit to true here to track whether the
20004         user has made changes that require validation.
20006         Reset changing to avoid loops.
20008 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
20010         * NumericUpDown.cs: Display value at startup.
20012         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
20013         ValidateEditText.
20015         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
20016         filled in.  Added some basic parsing of text.
20018         Still missing the OnXXX method overrides, and figuring out the
20019         events that must be emitted.
20021         * UpDownBase.cs: Handle UserEdit on the Text property.
20022         
20023 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
20025         * ComboBox.cs:
20026           - Fixes IntegralHeight
20027           - ToString method
20029 2005-01-21  Jackson Harper  <jackson@ximian.com>
20031         * TabControl.cs: Set the SelectedIndex property when SelectedTab
20032         is set so that the page visibility is updated and the tabs are
20033         sized correctly.
20035 2005-01-21  Jackson Harper  <jackson@ximian.com>
20037         * TabControl.cs: Use cliping rectangle for blitting. Give the
20038         theme the clipping rect so we can do clipping while
20039         drawing. Remove some debug code.
20041 2005-01-21  Jackson Harper  <jackson@ximian.com>
20043         * TabPage.cs: Add a new method so tab pages can force the tab
20044         control to recalculate the tab page sizes.
20045         * TabControl.cs: UpdateOwner needs to make the tab control recalc
20046         sizes.
20048 2005-01-20  Jackson Harper  <jackson@ximian.com>
20050         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
20052 2005-01-20  Jackson Harper  <jackson@ximian.com>
20054         * TreeView.cs: Set the bounds for nodes properly. They were
20055         getting screwed up when checkboxes were not enabled, but images
20056         were.
20058 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
20060         * ListBox.cs:
20061                 - Owner draw support
20062                 - Fixes
20063                 
20064 2005-01-20  Jackson Harper  <jackson@ximian.com>
20066         * XplatUIStructs.cs: More misc keys
20067         * X11Keyboard.cs: Ignore some control keys.
20069 2005-01-20  Jackson Harper  <jackson@ximian.com>
20071         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
20072         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
20074 2005-01-19  Peter Bartok  <pbartok@novell.com>
20076         * Control.cs: Un-selecting the control when it is loosing focus
20078 2005-01-19  Jackson Harper  <jackson@ximian.com>
20080         * TreeView.cs: Hook up to the text controls leave event so we can
20081         end editing when the users clicks outside the text box.
20082         
20083 2005-01-19  Jackson Harper  <jackson@ximian.com>
20085         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
20086         get set in the conversion array.
20088 2005-01-19  Peter Bartok  <pbartok@novell.com>
20090         * Application.cs (ModalRun): Added a call to CreateControl to ensure
20091           focus is properly set
20092         * Button.cs:
20093           - Added missing attributes
20094           - removed styles, those are already set in the base class
20095         * ButtonBase.cs:
20096           - Added missing attributes
20097           - Added clip window styles
20098         * CheckBox.cs: Added missing attributes
20099         * CommonDialog.cs:
20100           - FormParentWindow.CreateParams: Added required clip styles
20101         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
20102           also filters modifier keys
20103         * MessageBox.cs:
20104           - Added assignment of Accept and Cancel button to enable Enter
20105             and Esc keys in MessageBox dialogs
20106           - FormParentWindow.CreateParams: Added required clip styles
20107         * RadioButton.cs: Added missing attributes
20108         * TextControl.cs: No longer draws selection if control does not
20109           have focus
20110         * TextBoxBase.cs:
20111           - Now draws simple rectangle around test area to make it obvious
20112             there's a control. This is a hack until we properly support borders
20113           - A few simple fixes to support selections better, now erases selected
20114             text when typing, and resets selection when using movement keys
20116 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
20118         * UpDownBase.cs: Added some new properties.
20120         * DomainUpDown.cs: Implement a lot to get my test working.
20122 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
20124         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
20126 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
20128         * OSXStructs (WindowAttributes): Fixed csc complaints
20130 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
20132         * XplayUIOSX.cs:
20133           OSXStructs.cs: Initial refactor to move enums and consts into
20134           OSXStructs and use them in the driver for greater readability.
20136 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
20138         * XplatUIOSX.cs: Initial support for Standard Cursors.
20139         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
20141 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
20143         * ComboBox.cs: ability to change style when the ctrl is already
20144         created, missing methods and events, bug fixes, signature fixes
20146 2005-01-19  Peter Bartok  <pbartok@novell.com>
20148         * Cursors.cs (ctor): Added ctor to fix signature
20150 2005-01-18  Peter Bartok  <pbartok@novell.com>
20152         * Button.cs: Implemented DoubleClick event
20153         * ButtonBase.cs:
20154           - Fixed keyboard handling to behave like MS, where the press of
20155             Spacebar is equivalent to a mousedown, and the key release is
20156             equivalent to mouseup. Now a spacebar push will give the same
20157             visual feedback like a mouse click.
20158           - Added missing attributes
20159           - Added ImeModeChanged event
20160           - Added support for generating DoubleClick event for derived classes
20161         * CheckBox.cs:
20162           - Implemented DoubleClick event
20163           - Added missing attributes
20164         * CommonDialog.cs: Added missing attribute
20165         * ContextMenu.cs: Added missing attributes
20166         * RadioButton.cs:
20167           - AutoChecked buttons do not allow to be unselected when clicked
20168             (otherwise we might end up with no selected buttons in a group)
20169           - Added missing attributes
20170           - Implemented DoubleClickEvent
20171         * ThreadExceptionDialog.cs: Enabled TextBox code
20173 2005-01-18  Peter Bartok  <pbartok@novell.com>
20175         * Form.cs: Removed debug output
20176         * Button.cs: Added support for DoubleClick method
20178 2005-01-18  Peter Bartok  <pbartok@novell.com>
20180         * Form.cs:
20181           - Added method to parent window that allows triggering size
20182             calculations when a menu is added/removed
20183           - set_Menu: Cleaned up mess from early days of Form and Control,
20184             now properly triggers a recalc when a menu is added/removed
20185           - Added case to select form itself as focused form if no child
20186             controls exist
20187           - Added PerformLayout call when showing dialog, to ensure properly
20188             placed controls
20189         * Control.cs:
20190           - Select(): Made internal so Form can access it
20191           - Focus(): Only call Xplat layer if required (avoids loop), and sets
20192             status
20193         * Application.cs (Run): Removed hack and calls PerformLayout instead
20194           to trigger calculation when Form becomes visible
20196 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
20198         * ComboBox.cs: fixes for ownerdraw
20200 2005-01-18  Peter Bartok  <pbartok@novell.com>
20202         * TextControl.cs:
20203           - Sentinel is no longer static, each Document gets it's own, this
20204             avoids locking or alternatively overwrite problems when more
20205             than one text control is used simultaneously.
20206           - Switched to use Hilight and HilightText brushes for text selection
20208         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
20210 2005-01-18  Peter Bartok  <pbartok@novell.com>
20212         * Control.cs:
20213           - Hooked up the following events:
20214                 o ControlAdded
20215                 o ControlRemoved
20216                 o HandleDestroyed
20217                 o ImeModeChanged
20218                 o ParentChanged
20219                 o TabStopChanged
20220                 o Invalidated
20221                 o SystemColorsChanged
20222                 o ParentFontChanged
20223                 o Move
20224           - Removed debug output
20225           - Added a call to the current theme's ResetDefaults when a color change
20226             is detected
20227         * Form.cs: Now setting the proper ImeMode
20228         * Theme.cs: Defined a method to force recreation of cached resources
20229           and rereading of system defaults (ResetDefaults())
20230         * ThemeWin32Classic.cs: Added ResetDefaults() stub
20232 2005-01-17  Peter Bartok  <pbartok@novell.com>
20234         * Control.cs: Added missing attributes
20236 2005-01-17  Jackson Harper  <jackson@ximian.com>
20238         * TreeNode.cs: Implement editing. Add missing properties selected
20239         and visible.
20240         * TreeView.cs: Implement node editing. Also some fixes to use
20241         Invalidate (invalid area) instead of Refresh when selecting.
20243 2005-01-17  Peter Bartok  <pbartok@novell.com>
20245         * Control.cs:
20246           - Implemented InvokeGotFocus() method
20247           - Implemented InvokeLostFocus() method
20248           - Implemented InvokePaint() method
20249           - Implemented InvokePaintBackground() method
20250           - Implemented InvokeClick() method
20251           - Implemented FindForm() method
20252           - Implemented RectangleToClient() method
20253           - Implemented ClientToRectangle() method
20254           - Implemented ResetBackColor() method
20255           - Implemented ResetCursor() method
20256           - Implemented ResetFont() method
20257           - Implemented ResteForeColor() method
20258           - Implemented ResetImeMode() method
20259           - Implemented ResetLeftToRight() method
20260           - Implemented ResetText() method
20261           - Implemented Scale() methods
20262           - Implemented ScaleCore() method
20263           - Implemented Update() method
20264           - Removed unused variables
20265           - Stubbed AccessibilityNotifyClients and
20266             ControlAccessibleObject.NotifyClients() methods (dunno what to do
20267             with those yet)
20268           - Now setting proper default for RightToLeft property
20269           - Fixed bug in SetClientSizeCore that would cause windows to get
20270             really big
20271           - Now sending Click/DoubleClick events
20272           - Now selecting controls when left mouse button is clicked on
20273             selectable control
20274         * AccessibleEvents.cs: Added
20275         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
20276         * XplatUIOSX.cs: Stubbed UpdateWindow() method
20277         * XplatUIWin32.cs: Implemented UpdateWindow() method
20278         * XplatUIX11.cs: Implemented UpdateWindow() method
20279         * Form.cs: Removed stray semicolon causing CS0162 warning
20280         * ThemeWin32Classic.cs: Fixed unused variable warnings
20281         * ScrollableControl.cs: Now calls base method for ScaleCore
20282         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
20283           style to avoid interference with internal click handler (which is
20284           different than standard Control click handling)
20285         * RadioButton.cs:
20286           - Now unchecks all sibling radio buttons when control is
20287             selected (Fixes #68756)
20288           - Removed internal tabstop variable, using the one inherited from
20289             Control
20291 2005-01-17  Jackson Harper  <jackson@ximian.com>
20293         * NavigateEventArgs.cs: Fix base type.
20294         * LinkLabel.cs: Sig fix
20295         
20296 2005-01-17  Jackson Harper  <jackson@ximian.com>
20298         * TreeView.cs: Only invalidate the effected nodes bounds when
20299         selecting nodes.
20301 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
20303         * XplatUIWin32.cs: fixes Win32 marshaling
20304         * XplatUIX11.cs: fixes method signature
20306 2005-01-17  Peter Bartok  <pbartok@novell.com>
20308         * XplatUIX11.cs: Clean up resources when we no longer need them
20310 2005-01-17  Peter Bartok  <pbartok@novell.com>
20312         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
20313           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
20314           and DestroyCursor() methods.
20315         * Cursor.cs: Partially implemented, now supports standard cursors;
20316           still contains some debug code
20317         * Cursors.cs: Implemented class
20318         * Control.cs:
20319           - WndProc(): Added handling of WM_SETCURSOR message, setting the
20320             appropriate cursor
20321           - Implemented Cursor property
20322           - Replaced break; with return; more straightforwar and possibly
20323             faster
20324           - Now properly setting the result for WM_HELP
20325         * X11Structs.cs: Added CursorFontShape enum
20326         * XplatUIStructs.cs:
20327           - Added StdCursor enum (to support DefineStdCursor() method)
20328           - Added HitTest enum (to support sending WM_SETCURSOR message)
20329         * XplatUIX11.cs:
20330           - Now sends the WM_SETCURSOR message
20331           - Implemented new cursor methods
20332         * XplatUIOSX.cs: Stubbed new cursor methods
20333         * XplatUIWin32.cs:
20334           - Implemented new cursor methods
20335           - Added GetSystemMetrics function and associated enumeration
20337 2005-01-15  Peter Bartok  <pbartok@novell.com>
20339         * Control.cs:
20340           - WndProc(): Now handles EnableNotifyMessage
20341           - SelectNextControl(): Fixed bug where if no child or sibling
20342             controls exist we looped endlessly
20344 2005-01-14  Jackson Harper  <jackson@ximian.com>
20346         * TreeView.cs: Recalculate the tab pages when a new one is added
20347         so that the proper bounding rects are created.
20349 2005-01-14  Jackson Harper  <jackson@ximian.com>
20351         * TreeView.cs: Draw a gray box instead of a grip in the lower
20352         right hand corner when there are both horizontal and vertical
20353         scroll bars.
20355 2005-01-14  Jackson Harper  <jackson@ximian.com>
20357         * Control.cs: When erasing backgrounds use FromHwnd instead of
20358         FromHdc when there is a NULL wparam. This occurs on the X driver.
20359         * XplatUIX11.cs: Set the wparam to NULL.
20361 2005-01-13  Jackson Harper  <jackson@ximian.com>
20363         * PictureBox.cs: Implement missing methods (except ToString, need
20364         to test that on windows) and events. When visibility is changed we
20365         need to redraw the image because the buffers are killed. When size
20366         is changed refresh if the sizemode needs it.
20368 2005-01-13  Peter Bartok  <pbartok@novell.com>
20370         * Control.cs (SelectNextControl): Was using wrong method to select
20371           a control
20373 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
20375         * ComboBox.cs: fixes dropstyle
20377 2005-01-13  Peter Bartok  <pbartok@novell.com>
20379         * Form.cs:
20380           - Implemented Select() override
20381           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
20382           - Now sets keyboard focus on startup
20383         * Control.cs (SelectNextControl): Now properly handles directed=true
20384         * TextBoxBase.cs:
20385           - WndProc: Now passes tab key on to base if AcceptTabChar=false
20386           - Added (really bad) focus rectangle (mostly for testing)
20387         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
20388           to enforce redraw on focus changes
20389         * ContainerControl.cs:
20390           - Fixed detection of Shift-Tab key presses
20391           - Fixed traversal with arrow keys
20392         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
20393           gonna keep this or if it's complete yet
20394         
20395 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
20397         * ComboBox.cs: missing properties, fixes
20399 2005-01-13  Peter Bartok  <pbartok@novell.com>
20401         * Panel.cs (ctor): Setting Selectable window style to off
20402         * Splitter.cs (ctor): Setting Selectable window style to off
20403         * GroupBox.cs (ctor): Setting Selectable window style to off
20404         * Label.cs (ctor): Setting Selectable window style to off
20406 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
20408         * UpDownBase.cs (InitTimer): If the timer has been already
20409         created, enable it.
20411         Use a TextBox instead of a Label.
20413 2005-01-12  Jackson Harper  <jackson@ximian.com>
20415         * TreeView.cs: Refresh the tree after sorting the nodes. Always
20416         draw the connecting node lines (when ShowLines is true).
20417         * TreeNode.cs: The nodes index can now be updated. This is used
20418         when a node collection is sorted.
20419         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
20420         insert or an existing unsorted node collection can be sorted.
20421         
20422 2005-01-12  Peter Bartok  <pbartok@novell.com>
20424         * ContainerControl.cs: Implemented ProcessDialogKeys()
20426 2005-01-12  Peter Bartok  <pbartok@novell.com>
20428         * Control.cs:
20429           - Implemented SelectNextControl() method
20430           - Several focus related bug fixes
20431           - Fixed Docking calculations to match MS documentation and
20432             behaviour
20434 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
20436         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
20437         bug fixes
20439 2005-01-12  Peter Bartok  <pbartok@novell.com>
20441         * Control.cs:
20442           - Fixed broken Contains() method
20443           - Implemented GetNextControl() method. Finally. This is the pre-
20444             requisite for focus handling.
20446 2005-01-12  Peter Bartok  <pbartok@novell.com>
20448         * OSXStrucs.cs: Added
20450 2005-01-12  Peter Bartok  <pbartok@novell.com>
20452         * XplatUIWin32.cs:
20453           - Removed PeekMessageFlags
20454           - Implemented SetWindowStyle() method
20455         * XplatUIStructs.cs: Added PeekMessageFlags
20456         * X11Structs: Added missing border_width field to XWindowChanges struct
20457         * XplatUIX11.cs:
20458           - PeekMessage: Now throws exception if flags which are not yet
20459             supported are passed
20460           - Implemented SetWindowStyle() method
20461           - Fixed SetZOrder to handle AfterHwnd properly
20462         * XplatUI.cs: Added SetWindowStyle() method
20463         * XplatUIDriver.cs: Added SetWindowStyle() abstract
20464         * Control.cs:
20465           - Implemented UpdateStyles() method
20466           - Implemented UpdateZOrder() method
20467         * XplatUIOSX.cs: Added SetWindowStyle() stub
20469 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
20471         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
20472         button mouse).
20475 2005-01-11  Jackson Harper  <jackson@ximian.com>
20477         * TreeView.cs: Still need to draw lines to siblings even if out of
20478         the current node is out of the clip.
20480 2005-01-11  Jackson Harper  <jackson@ximian.com>
20482         * TreeView.cs: When setting the hbar/vbar/grip position use
20483         SetBounds so that perform layout is only called once. Also suspend
20484         and resume layout so layout is only done once for all controls.
20485         - Removed some debug fluff
20486         * SizeGrip.cs: Call base implmentation in overriding methods.
20487         - When visibility is changed the drawing buffers are killed so we
20488         need to redraw.
20490 2005-01-11  Jackson Harper  <jackson@ximian.com>
20492         * TreeView.cs: Calculate the open node count while drawing. This
20493         saves us an entire tree traversal for every paint operation. Use
20494         a member var for the open node count so less vars are passed around.
20496 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
20498         * MonthCalendar.cs:
20499         - fixed selection to use mousemove, not mouse polling on timer
20500         * ThemeWin32Classic.cs
20501         - removed redundant unused variable "no_more_content"
20502         
20503 2005-01-11  Peter Bartok  <pbartok@novell.com>
20505         * XplatUIX11.cs (DoEvents): Needs to return when no more events
20506           are pending, so it now calls PeekMessage instead of GetMessage;
20507           implemented a incomplete version of PeekMessage
20508         
20509 2005-01-11  Peter Bartok  <pbartok@novell.com>
20511         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
20512           I18n issues
20513         * TextBoxBase.cs: Added sending of TextChanged event
20515 2005-01-10  Jackson Harper  <jackson@ximian.com>
20517         * TreeView.cs: Try not to draw outside the clipping rectangle on
20518         each node element.
20520 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
20522         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
20524 2005-01-10  Jackson Harper  <jackson@ximian.com>
20526         * TreeView.cs:
20527         - Implement fast scrolling. Now only the newly
20528         exposed nodes are drawn and the old image is moved using the
20529         XplatUI::ScrollWindow method.
20530         - Factor in height of nodes when calculating whether or not the
20531         node is in the clipping rect.
20533 2005-01-10  Jackson Harper  <jackson@ximian.com>
20535         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
20537 2005-01-10  Peter Bartok  <pbartok@novell.com>
20539         * Application.cs: Added temporary hack to resolve all our resize
20540           required issues on startup. This will get fixed properly at
20541           some point in the future
20543 2005-01-10  Jackson Harper  <jackson@ximian.com>
20545         * SizeGrip.cs: New internal class that is used as a sizing
20546         grip control...hence the name.
20548 2005-01-10  Peter Bartok  <pbartok@novell.com>
20550         * Control.cs: Implemented proper TabIndex handling, now assigning
20551           a tabindex when a control is added to a container
20552         * GroupBox.cs (ctor): Now sets the Container style bit, required
20553           for Control.GetNextControl()
20555 2005-01-09  Jackson Harper  <jackson@ximian.com>
20557         * TextBoxBase.cs: Clear window when scrolling (fixes build).
20559 2005-01-09  Peter Bartok <pbartok@novell.com>
20561         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
20562           XplatUIX11.cs: Added ability to control ScrollWindow expose and
20563           an overload for ScrollWindow to allow only scrolling a rectangle
20565 2005-01-09  Peter Bartok <pbartok@novell.com>
20567         * Form.cs:
20568           - Implemented SetDesktopBounds method
20569           - Implemented SetDesktopLocation method
20571 2005-01-08  Jackson Harper  <jackson@ximian.com>
20573         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
20574         the node count has changed, this removes to VScroll::Refresh calls
20575         when drawing.
20577 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
20579         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
20581 2005-01-07  Jackson Harper  <jackson@ximian.com>
20583         * TreeNode.cs: Just update the single node when it is
20584         checked. Don't refresh after toggling, the Expand/Collapse already
20585         handles this.
20586         * TreeView.cs: Respect clipping a little more when drawing. Try
20587         not to redraw things that don't need to be redrawn. Just hide the
20588         scrollbars when they are no longer needed instead of removing
20589         them, so they don't have to be created again and again.
20590         
20591 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
20593         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
20594         coordinates to window space to place the caret properly, FIXED.
20595         Implement GetWindowState & SetWindowState
20597 2005-01-06  Peter Bartok <pbartok@novell.com>
20599         * Form.cs:
20600           - Implemented ClientSize property
20601           - Implemented DesktopBounds property
20602           - Implemented DesktopLocation property
20603           - Implemented IsRestrictedWindow property
20604           - Implemented Size property
20605           - Implemented TopLevel property
20606           - Implemented FormWindowState property
20607         * Control.cs:
20608           - Implemented GetTopLevel() method
20609           - Implemented SetTopLevel() method
20610         * X11Structs.cs (Atom):
20611           - Added AnyPropertyType definition
20612           - Added MapState definiton and updated XWindowAttribute struct
20613         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
20614         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
20615         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
20616         * XplatUIWin32.cs:
20617           - Implemented GetWindowState() and SetWindowState() methods
20618           - Fixed Win32GetWindowLong return type
20619         * XplatUIX11.cs:
20620           - Introduced central function for sending NET_WM messages
20621           - Implemented GetWindowState() and SetWindowState() methods
20622         * TextBoxBase.cs (set_Lines):
20623           - Now uses Foreground color for text added via Text property (Duh!)
20624           - Added code to remember programmatically requested size (fixes
20625             behaviour when Multiline is set after Size)
20626           - Added AutoSize logic
20628 2005-01-06  Jackson Harper  <jackson@ximian.com>
20630         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
20632 2005-01-06  Jackson Harper  <jackson@ximian.com>
20634         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
20635         set to less then 0.
20637 2005-01-06  Jackson Harper  <jackson@ximian.com>
20639         * ScrollableControl.cs: Lazy init the scrollbars.
20640         
20641 2005-01-06  Jackson Harper  <jackson@ximian.com>
20643         * Theme.cs: Speed up getting pens and solid brushes, by using
20644         their ARGB as a hash instead of tostring and not calling Contains.
20646 2005-01-06  Peter Bartok <pbartok@novell.com>
20648         * Form.cs:
20649           - Implemented OnActivated and OnDeactivate event trigger
20650           - Implemented Activate() method
20651           - Fixed ShowDialog() to activate the form that was active before
20652             the dialog was shown
20653         * XplatUIX11.cs:
20654           - Added global active_window var that tracks the currently active
20655             X11 window
20656           - Now always grabs Property changes from the root window to always
20657             catch changes on the active window property
20658           - Added code to PropertyNotify handler to send Active/Inactive
20659             messages when state changes. This puts X11 and Win32 en par on
20660             WM_ACTIVATE notifications (except for double notifications when
20661             the user clicks away from our modal window to another one of our
20662             windows)
20664 2005-01-05  Jackson Harper  <jackson@ximian.com>
20666         * ImageList.cs: Implment ctor
20668 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
20670         * XplatUIOSX.cs: Implement Activate/SetTopmost
20672 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
20674         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
20676 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
20678         * XplatUIOSX.cs: Implement GetActive/SetFocus.
20680 2005-01-05  Peter Bartok <pbartok@novell.com>
20682         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
20683           XplatUIOSX.cs: Added GetActive method to return the currently
20684           active window for the application (or null, if none is active)
20685         * Form.cs:
20686           - Implemented ActiveForm
20687           - Commented out owner assignment for modal dialogs (causes problems
20688             on Win32, since the owner will be disabled)
20689           - Reworked some Active/Focus handling (still incomplete)
20690         * CommonDialog.cs: Commented out owner assignment for modal dialogs
20691           (causes problems on Win32, since the owner will be disabled)
20692         * IWin32Window: Added ComVisible attribute
20694 2005-01-05  Peter Bartok <pbartok@novell.com>
20696         * ToolTip.cs (WndProc): Enable setting focus now that we have the
20697           required XplatUI functions.
20699 2005-01-05  Peter Bartok <pbartok@novell.com>
20701         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
20702           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
20703           to implement focus and activation handling; still incomplete and
20704           with debug output
20706 2005-01-04  Peter Bartok <pbartok@novell.com>
20708         * TextBoxBase.cs: Changed access level for Document property to
20709           match switch to internal for TextControl
20711 2005-01-04  Peter Bartok <pbartok@novell.com>
20713         * AccessibleObject: Added ComVisible attribute
20715 2005-01-04  Jackson Harper  <jackson@ximian.com>
20717         * X11Keyboard.cs: Remove unneeded var.
20719 2005-01-04  Jackson Harper  <jackson@ximian.com>
20721         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
20722         but PAINT.
20723         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
20724         ClientMessage. This makes apps exit cleanly (more often).
20725         
20726 2005-01-04  Jackson Harper  <jackson@ximian.com>
20728         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
20729         handling focus, return correct colors and fonts,
20730         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
20731         handle selection, horizontal scrolling, and mouse interaction.
20733 2005-01-04  Peter Bartok <pbartok@novell.com>
20735         * ICommandExecutor.cs: Added
20736         * IDataGridColumnStyleEditingNotificationService.cs: Added
20737         * IFeatureSupport.cs: Added
20738         * IFileReaderService.cs: Added
20739         * IDataObject.cs: Added ComVisible attribute
20740         * AmbientProperties.cs: Added
20741         * BaseCollection.cs: Added missing attributes
20742         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
20743         * BaseCollection.cs: Added missing attributes
20744         * Binding.cs: Added TypeConverter attribute
20745         * BindingContext.cs: Added DefaultEvent attribute
20746         * BindingsCollection.cs: Added DefaultEvent attribute
20747         * Button.cs: Added DefaultValue attribute
20748         * DragEventArgs.cs: Added ComVisible attribute
20749         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
20750         * KeyEventArgs.cs: Added ComVisible attribute
20751         * KeyPressEventArgs.cs: Added ComVisible attribute
20752         * MouseEventArgs.cs: Added ComVisible attribute
20753         * NavigateEventArgs.cs: Added
20754         * NavigateEventHandler.cs: Added
20755         * FeatureSupport.cs: Added
20756         * OSFeature.cs: Added
20757         * Theme.cs: Added abstract Version property to support OSFeature
20758         * ThemeWin32Classic.cs: Added Version property to
20759           support OSFeature.Themes
20760         * ProgressBar.cs: Removed OnPaintBackground override, not required since
20761           the proper styles to avoid background drawing are set, also doesn't
20762           match MS signature
20763         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
20764         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
20765         * ScrollEventArgs.cs: Added ComVisible attribute
20766         * SplitterEventArgs.cs: Added ComVisible attribute
20767         * AccessibleSelection.cs: Added Flags attribute
20768         * Appearance.cs: Added ComVisible attribute
20769         * Border3DSide.cs: Added ComVisible attribute
20770         * Border3DStyle.cs: Added ComVisible attribute
20771         * BorderStyle.cs: Added ComVisible attribute
20772         * DragAction.cs: Added ComVisible attribute
20773         * ErrorBlinkStyle.cs: Added
20774         * ScrollEventType.cs: Added ComVisible attribute
20775         * AnchorStyles.cs: Added Editor attribute
20776         * DockStyle.cs: Added Editor attribute
20777         * HorizontalAlignment.cs: Added ComVisible attribute
20778         * HelpEventArgs.cs: Added ComVisible attribute
20779         * PaintEventArgs.cs: Added IDisposable
20781 2005-01-04  Peter Bartok <pbartok@novell.com>
20783         * TextControl.cs: Switched Line, LineTag and Document classes to
20784           internal
20786 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
20788         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
20789         Simple mode, fixes, IntegralHeight, etc.
20791 2005-01-04  Peter Bartok <pbartok@novell.com>
20793         * TextBoxBase.cs: Using proper font variable now
20795 2005-01-04  Peter Bartok <pbartok@novell.com>
20797         * Form.cs (ShowDialog): Set parent to owner, if provided
20798         * GroupBox.cs: Removed unused vars
20799         * TextControl.cs:
20800           - Added GetHashCode() for Document and LineTag classes
20801           - Removed unused variables
20802           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
20803             to allow translation between continuous char position and line/pos
20804         * CheckBox.cs: Removed vars that are provided by base class
20805         * RadioButton.cs: Removed vars that are provided by base class, added
20806           new keyword where required
20807         * LinkLabel.cs: Added new keyword where required
20808         * Control.cs (WndProc): Removed unused variable
20809         * TextBoxBase.cs:
20810           - Finished SelectionLength property
20811           - Implemented SelectionStart property
20812           - Implemented Text property
20813           - Removed unused vars
20814         * MessageBox.cs: Added new keyword where required
20815         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
20816           WndProc signature
20817         * MenuAPI.cs: Added new keyword where required
20818         * ButtonBase.cs: Removed vars that are provided by base class, added
20819           new keyword where required
20820         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
20821           argument to double, to allow compiling with csc 2.0 (Atsushi ran
20822           into this)
20823         * Application.cs (Run): Now triggers the ThreadExit event
20824         * CommonDialog.cs: Added new keyword where required; now properly sets
20825           parent (owner) for dialog
20826         * XplatUIX11.cs: Commented out unused vars
20827         * StatusBar.cs: Fixed signature for Text property
20828         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
20830 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
20832         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
20833         TrackBar.cs, MonthCalendar.cs: remove unused vars
20835 2005-01-03  Jackson Harper  <jackson@ximian.com>
20837         * ThemeWin32Classic.cs:
20838         * X11Keyboard.cs: Remove unused vars.
20840 2005-01-03  Peter Bartok  <pbartok@novell.com>
20842         * TextBox.cs:
20843           - set_Text: Tied into TextControl
20844           - set_TextAlignment: Tied into TextControl
20845         * TextControl.cs:
20846           - Added alignment properties and implemented alignment handling
20847             and drawing (still has a bug, not generating proper expose events)
20848           - Added new Line() constructor to allow passing the line alignment
20849           - Fixed selection setting, properly handling end<start now
20850           - Added aligment considerations to RecalculateDocument()
20851         * TextBoxBase.cs:
20852           - Now properly enforces control height for single line controls
20853           - Added support for CharacterCasing
20854           - Added IsInputKey override
20855           - Fixed Keys.Enter logic
20856           - Added SetBoundsCore override
20857           - Fixed mouse selection handling
20859 2005-01-03  Jackson Harper  <jackson@ximian.com>
20861         * TreeView.cs:
20862           - Collapse and uncheck all nodes when CheckBoxes is disabled.
20863           - Checkboxes are always aligned to the bottom of the node,
20864           regardless of item height.
20865           - Use the node bounds to draw the text so we can center it when
20866           the item height is greater then the font height.
20867           - Node::Bounds are only the text part of the node.
20868         * TreeNode.cs: New method to combine collapsing and unchecking all
20869           nodes recursively.
20871 2005-01-02  Jackson Harper  <jackson@ximian.com>
20873         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
20874         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
20875         tree when a check is changed. TODO: Only refresh the checked node.
20877 2004-12-30  Jackson Harper  <jackson@ximian.com>
20879         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
20880         * TreeNode.cs: When collapsing make sure to never collapse the
20881         root node.
20883 2004-12-29  Jackson Harper  <jackson@ximian.com>
20885         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
20886         
20887 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
20889         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
20891 2004-12-28  Peter Bartok  <pbartok@novell.com>
20893         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
20894           not yet assigned
20896 2004-12-28  Peter Bartok  <pbartok@novell.com>
20898         * Control.cs (WndProc): Added WM_HELP handler, now generates
20899           HelpRequested event
20900         * Form.cs: Added HelpButton property and required support code
20901         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
20903 2004-12-28  Peter Bartok  <pbartok@novell.com>
20905         * CommonDialog.cs:
20906           - Made DialogForm.owner variable internal
20907           - Added check to ensure owner form is set before setting
20908             owner properties in CreateParams
20910 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
20912         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
20913           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
20914           GetCursorPos.  Fix major visibility issues.  Rework the windowing
20915           system to support borderless/titleless windows (implements menus).
20916           Fix GetWindowPos.  Implement initial background color support for
20917           views.
20919 2004-12-28  Peter Bartok  <pbartok@novell.com>
20921         * Form.cs (get_CreateParams): Make sure we have an owner before using
20922           the owner variable. Implement proper default if no owner exists
20924 2004-12-28  Peter Bartok  <pbartok@novell.com>
20926         * In preparation for making Managed.Windows.Forms the default build target
20927           for System.Windows.Forms, the following stubbed files were added.
20928           Dialogs are currently being implemented by contributors and are only
20929           short-term place holders.
20930         * ColorDialog.cs: Initial check-in (minmal stub)
20931         * DataGrid.cs: Initial check-in (minimal stub)
20932         * DataGridLineStyle.cs: Initial check-in (minimal stub)
20933         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
20934         * DataGridTableStyle.cs: Initial check-in (minimal stub)
20935         * FontDialog.cs: Initial check-in (minimal stub)
20936         * FileDialog.cs: Initial check-in (minimal stub)
20937         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
20938         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
20939         * OpenFileDialog: Initial check-in (minimal stub)
20940         * IComponentEditorPageSite.cs: Initial check-in
20941         * Splitter.cs: Initial check-in (for Jackson)
20942         * SplitterEventArgs.cs: Initial check-in (for Jackson)
20943         * SplitterEventHandler.cs: Initial check-in (for Jackson)
20944         * TextBox.cs: Initial check-in; still needs some wiring to
20945           TextControl backend
20946         * Form.cs: Implemented ControlBox property
20947         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
20948         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
20949         * TextControl.cs: Added selection functionality; added todo header
20950         * TextBoxBase.cs:
20951           - Implemented Lines property
20952           - Implemented TextHeight property
20953           - Implemented SelectedText property
20954           - Implemented SelectionLength property
20955           - Implemented SelectAll method
20956           - Implemented ToString method
20957           - Removed and cleaned up some debug code
20958           - Implemented (still buggy) mouse text selection
20960 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
20962         * ComboBox.cs: Complete DropDownList implementation, fixes.
20964 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
20966         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
20967         * ComboBoxStyle.cs: ComboBoxStyle enum
20968         * ComboBox.cs: Initial work on ComboBox control
20970 2004-12-21  Peter Bartok  <pbartok@novell.com>
20972         * Control.cs (ctor, CreateParams): Moved setting of is_visible
20973           forward so that anything that creates a window gets the default,
20974           also no longer uses Visible property in CreateParams to avoid
20975           walking up the parent chain and possibly get the wrong visible
20976           status. Fixed IsVisible to no longer walk up to the parent.
20978 2004-12-21  Peter Bartok  <pbartok@novell.com>
20980         * Form.cs (ShowDialog): Unset modality for the proper window
20982 2004-12-20  Peter Bartok  <pbartok@novell.com>
20984         * CommonDialog.cs: Initial check-in
20986 2004-12-20  Peter Bartok  <pbartok@novell.com>
20988         * Control.cs (Visible): Now uses the parent window instead of the
20989           client area window for the property
20991         * Form.cs
20992           - ShowDialog(): Now uses the proper window for modality
20993           - The default visibility state for the form parent is now false. This
20994             will prevent the user from seeing all the changes to the form and
20995             its controls before the application hits Application.Run()
20996           - Removed some stale commented out code
20998         * NativeWindow.cs:
20999           - Added FindWindow() method to have a method to check for existence
21000             of a window handle
21001           - Added ability to override default exception handling (for example
21002             when debugging with VS.Net; to do this the ExternalExceptionHandler
21003             define must be set
21004           - Removed some useless debug output
21006         * XplatUIX11.cs:
21007           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
21008             not working as expected
21009           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
21010             property to allow switching back to the modal window if focus is
21011             given to another one of our windows (Application Modal)
21012           - Now only sets override_redirect if we create a window
21013             without WS_CAPTION
21014           - Moved EventMask selection before mapping of newly created window
21015             so we can catch the map event as well
21016           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
21017           - Added various Atom related DllImports
21018           - Implemented Exit() method
21019           - .ctor() : No longer shows window if WS_VISIBLE is not defined
21020             in the CreateParams
21022         * MessageBox.cs: Now properly deals with the FormParent window by
21023           providing an override the FormParent CreateParams property to
21024           set as POPUP instead of OVERLAPPED window.
21026 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
21028         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
21029         Minor code cleanup.
21031 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
21032         
21033         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
21035 2004-12-18  Peter Bartok  <pbartok@novell.com>
21037         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
21038           implementing SetModal() method
21040 2004-12-18  Peter Bartok  <pbartok@novell.com>
21042         * X11Structs.cs (XGCValues): Fixed type of function element
21043         * XplatUI.cs: Added ScrollWindow() method
21044         * XplatUIDriver.cs: Added ScrollWindow() abstract
21045         * XplatUIWin32.cs: Implemented ScrollWindow() method
21046         * XplatUIX11.cs: Implemented ScrollWindow() method
21047         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
21049 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
21051         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
21052         Some more keyboard support (INCOMPLETE)
21054 2004-12-17  Peter Bartok  <pbartok@novell.com>
21056         * TextControl.cs:
21057         - Added color attribute to line tags.
21058         - Added color argument to all functions dealing with tags
21059         - Added color argument support to various functions
21060         - Fixed miss-calculation of baseline/shift in certain circumstances
21062         * TextBoxBase.cs: Added new color option to test code
21064 2004-12-17  Jackson Harper  <jackson@ximian.com>
21066         * TreeNode.cs:
21067         * MonthCalendar.cs: Signature fixes
21069 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
21071         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
21072         keyboard event moved it.  Create a new graphics context for each paint resolves this
21074 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
21076         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
21077         Make caret exist and go blink blink.  Initial keyboard support.
21078         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
21079         works.
21081 2004-12-17  Jackson Harper  <jackson@ximian.com>
21083         * XplatUIStructs.cs: Updated set of virtual keycodes.
21084         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
21086 2004-12-17  Jackson Harper  <jackson@ximian.com>
21088         * XplatUIX11.cs: Prune old keyboard code.
21090 2004-12-17  Jackson Harper  <jackson@ximian.com>
21092         * XplatUIX11.cs: When generating mouse wparams get the modifier
21093         keys from the ModifierKeys property.
21095 2004-12-17  Jackson Harper  <jackson@ximian.com>
21097         * X11Keyboard.cs: Send up/down input when generating
21098         messages. Remove some unused vars.
21100 2004-12-17  Jackson Harper  <jackson@ximian.com>
21102         * TabControl.cs:
21103         * TreeView.cs: get rid of warnings.
21105 2004-12-17  Jackson Harper  <jackson@ximian.com>
21107         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
21109 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
21111         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
21112           CheckedListBox.cs: Implementation
21114 2004-12-17  Peter Bartok  <pbartok@novell.com>
21116         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
21118 2004-12-16  Peter Bartok  <pbartok@novell.com>
21120         * TextControl.cs:
21121           - InsertCharAtCaret(): Fixed start pos fixup
21122           - CaretLine_get: No longer derives the line from the tag, the tag
21123             could be stale if lines in the document have been added or deleted
21124           - RebalanceAfterDelete(): Fixed bug in balancing code
21125           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
21126           - Line.Streamline(): Now can also elminate leading empty tags
21127           - DumpTree(): Added a few more tests and prevented exception on
21128             uninitialized data
21129           - Added Debug section for Combining lines
21130           - Delete(): Now copies all remaining properties of a line
21131           
21132         * TextBoxBase.cs:
21133           - Left mousebutton now sets the caret (and middle button still acts
21134             as formatting tester, which must go away soon)
21135           - Added Debug section for Deleting/Combining lines
21136           - Fixed calculations for UpdateView after Combining lines
21138 2004-12-16  Peter Bartok  <pbartok@novell.com>
21140         * TextControl.cs: Now properly aligns text on a baseline, using the
21141           new XplatUI.GetFontMetrics() method. Simplified several calculations
21142         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
21143           defined
21145 2004-12-16  Peter Bartok  <pbartok@novell.com>
21147         * XplatUI.cs: Added GetFontMetrics() method
21148         * XplatUIDriver.cs: Added GetFontMetrics() abstract
21149         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
21150           into libgdiplus, our private GetFontMetrics function
21151         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
21152         * XplatUIWin32.cs: Implemented GetFontMetrics() method
21154 2004-12-16  Jackson Harper  <jackson@ximain.com>
21156         * XplatUIStruct.cs: Add enum for dead keys
21157         * X11Keyboard.cs: Map and unmap dead keys.
21159 2004-12-16  Jackson Harper  <jackson@ximian.com>
21161         * X11Keyboard.cs: Detect and use the num lock mask.
21163 2004-12-16  Peter Bartok  <pbartok@novell.com>
21165         * Control.cs (CreateGraphics): Added check to make sure the
21166           handle of the window exists before calling Graphics.FromHwnd()
21168 2004-12-16  Peter Bartok  <pbartok@novell.com>
21170         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
21171           contains a lot of code that's not supposed to be there for the
21172           real thing, but required for developing/testing the textbox
21173           backend.
21175 2004-12-16  Peter Bartok  <pbartok@novell.com>
21177         * TextControl.cs:
21178         - Fixed Streamline method
21179         - Added FindTag method to Line
21180         - Added DumpTree method for debugging
21181         - Added DecrementLines() method for deleting lines
21182         - Fixed UpdateView to update the cursor to end-of-line on single-line
21183           updates
21184         - Added PositionCaret() method
21185         - Fixed MoveCaret(LineDown) to move into the last line, too
21186         - Added InsertChar overload
21187         - Fixed InsertChar tag offset calculations
21188         - Added DeleteChar() method
21189         - Added Combine() method for folding lines
21190         - Fixed Delete() method, no longer allocates wasted Line object and
21191           now copies all properties when swapping nodes
21192         - Delete() method now updates document line counter
21194 2004-12-15  Jackson Harper  <jackson@ximian.com>
21196         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
21197         * X11Keyboard.cs: Expose the currently selected modifier keys
21198         through a property.
21200 2004-12-15  Peter Bartok  <pbartok@novell.com>
21202         * TextControl.cs: Initial check-in. Still incomplete
21204 2004-12-15  Jackson Harper  <jackson@ximian.com>
21206         * TreeNode.cs:
21207         * TreeView.cs: Fix build on csc (second time today ;-))
21209 2004-12-15  Jackson Harper  <jackson@ximian.com>
21211         * TreeView.cs: Store the treenodes plus/minus box bounds when it
21212         is calculated and use this for click testing.
21213         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
21215 2004-12-15  Jackson Harper  <jackson@ximian.com>
21217         * TreeView.cs: Pass the nodes image index to the image list when
21218         drawing that image.
21220 2004-12-15  Jackson Harper  <jackson@ximian.com>
21222         * X11Keyboard.cs: Set messages hwnd.
21223         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
21224         post_message calls.
21226 2004-12-15  Jackson Harper  <jackson@ximian.com>
21228         * X11Keyboard.cs: Fix to compile with csc.
21229         
21230 2004-12-15  Jackson Harper  <jackson@ximian.com>
21232         * X11Structs.cs: Add key mask values
21233         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
21234         * X11Keyboard.cs: New file - Extrapolates and interpolates key
21235         down/up foo into WM_CHAR foo
21236         * KeyboardLayouts.cs: Common keyboard layouts
21237         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
21238         post messages into the main queue.
21240 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
21242         * Button.cs: implement ProcessMnemonic
21243         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
21244           brushes everytime
21245         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
21246         * ButtonBase.cs: Show HotkeyPrefix (not the &)
21248 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
21249         
21250         * MonthCalendar.cs: Implemented click-hold for next/previous month
21251           and date selection
21252           
21253 2004-12-11  Peter Bartok  <pbartok@novell.com>
21255         * X11Structs.cs:
21256           - Added XKeyboardState (moved from XplatUIX11.cs)
21257           - Added XCreateGC related enums and structures
21258           - Added GXFunction for XSetFunction
21260         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
21262         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
21263           CaretVisible() calls
21265         * ToolTip.cs: Added code to prevent stealing focus from app windows
21267         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
21268           DestroyCaret, SetCaretPos and CaretVisible)
21270         * XplatUIX11.cs:
21271           - Added implementation for caret functions
21272           - Moved hover variables into a struct, to make it a bit easier
21273             on the eyes and to debug
21274           - Removed XKeyboardState (moved to XplatUIX11.cs)
21275           - Moved Keyboard properties into the properties region
21277         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
21278           call to get a graphics context for our control
21280         * XplatUIOSX.cs: Added empty overrides for the new caret functions
21282         * TreeView.cs: Fixed bug. No matter what color was set it would always
21283           return SystemColors.Window
21285         * XplatUIWin32.cs: Implemented caret overrides
21287 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
21289         * ListBox.cs: fire events, implement missing methods and properties,
21290         sorting.
21292 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
21294         * MonthCalendar.cs: invalidation bug fixing
21295         * ThemeWin32Classic.cs: paint fixing
21297 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
21299         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
21300         prepare the CGContextRef there now.
21302 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
21304         * MonthCalendar.cs:
21305           - optimisationL only invalidate areas that have changed
21306         * ThemeWin32Classic.cs:
21307           - only paint parts that intersect with clip_area
21309 2004-12-09  Peter Bartok  <pbartok@novell.com>
21311         * Application.cs: Undid changes from r37004 which cause problems
21312         on X11
21314 2004-12-09  Ravindra  <rkumar@novell.com>
21316         * ToolBar.cs: Added support for displaying ContextMenu
21317         attached to a button on ToolBar.
21318         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
21319         property.
21321 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
21323         * Label.cs: autosize works in text change and removes unnecessary
21324         invalidate
21326 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
21328         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
21329         remove warnings
21331 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
21333         * XplatUIOSX.cs: Added mouse move/click/grab support
21334         Remove some debugging WriteLines not needed anymore.
21335         Add window resizing/positioning.
21336         Fix visibility on reparenting.
21338 2004-12-08  Peter Bartok  <pbartok@novell.com>
21340         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
21342 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
21344         * XplatUIOSX.cs: Initial checkin
21345         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
21347 2004-12-03  Ravindra <rkumar@novell.com>
21349         * ListView.cs: Added some keybindings and fixed scrolling.
21350         ScrollBars listen to ValueChanged event instead of Scroll
21351         Event. This would let us take care of all changes being
21352         done in the scrollbars' values programmatically or manually.
21353         * ListView.cs (CanMultiselect): Added a check for shift key.
21354         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
21355         * ListViewItem.cs (Clone): Fixed. We need to make a copy
21356         of ListViewSubItemCollection as well.
21358 2004-12-06  Peter Bartok <pbartok@novell.com>
21360         * Control.cs (Parent): Added check and exception to prevent
21361         circular parenting
21363 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
21365         * ListBox.cs: implemented clipping, selection single and multiple,
21366         bug fixing
21368 2004-12-03  Ravindra <rkumar@novell.com>
21370         * ListView.cs (ListView_KeyDown):
21371         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
21372         when CTRL key is pressed.
21373         * ListViewItem.cs (Selected): Fixed setting the property.
21375 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
21377         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
21379         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
21380         MinimizeBox, ShowInTaskbar, TopMost properties.
21382         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
21383         will be implemented).
21385 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
21387         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
21389         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
21390         tests.
21391         
21392         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
21393         
21394         * TreeView.cs: BackColor is Colors.Window.
21396 2004-12-01  Jackson Harper  <jackson@ximian.com>
21398         * TreeView.cs: When resizing the tree if the user is making it
21399         smaller we don't get expose events, so we need to handle adding
21400         the horizontal scrollbar in the size changed handler as well as
21401         the expose handler.
21403 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
21405         * DrawItemState.cs: fixes wrong enum values
21407 2004-12-01  Jackson Harper  <jackson@ximian.com>
21409         * TreeView.cs: Resize the hbar as well as the vbar on resize.
21411 2004-12-01  Jackson Harper  <jackson@ximian.com>
21413         * NodeLabelEditEventArgs.cs:
21414         * NodeLabelEditEventHandler.cs:
21415         * OpenTreeNodeEnumerator.cs:
21416         * TreeNode.cs:
21417         * TreeNodeCollection.cs:
21418         * TreeView.cs:
21419         * TreeViewAction.cs:
21420         * TreeViewCancelEventArgs.cs:
21421         * TreeViewCancelEventHandler.cs:
21422         * TreeViewEventArgs.cs:
21423         * TreeViewEventHandler.cs: Initial implementation.
21425 2004-12-01  Ravindra <rkumar@novell.com>
21427         * ListView.cs (CalculateListView): Fixed scrolling related
21428         calculations. Also, removed some debug statements from other
21429         places.
21430         * ListViewItem.cs: Changed access to 'selected' instance variable
21431         from private to internal.
21432         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
21434 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
21436         * ThemeWin32Classic.cs: remove cache of brush and pens for
21437         specific controls and use the global system, fixes scrollbutton
21438         bugs (for small sizes, disabled, etc)
21439         
21440         * ScrollBar.cs: does not show the thumb for very small controls
21441         (as MS) and allow smaller buttons that the regular size
21443 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
21445         * UpDownBase.cs: Add abstract methods for the interface.
21446         Add new virtual methods (need to be hooked up to TextEntry when it
21447         exists).
21448         Add override methods for most features.
21449         Computes the size, forces the height of the text entry.
21451         * NumericUpDown.cs: Put here the current testing code.
21453         * Set eol-style property on all files that do not have mixed line
21454         endings, to minimize the future problems.  There are still a few
21455         files with mixed endings, and someone should choose whether they
21456         want to move it or not.
21458 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
21460         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
21461         System.Colors
21462         
21463 2004-11-30  Ravindra <rkumar@novell.com>
21465         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
21466         drawing and replaced use of SystemColors by theme colors.
21467         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
21468         * ListView.cs (ListViewItemCollection.Add): Throw exception when
21469         same ListViewItem is being added more than once.
21471 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
21473         * MonthCalendar.cs:
21474           - ControlStyles love to make the control not flicker
21475           
21476 2004-11-30  Peter Bartok  <pbartok@novell.com>
21478         * CharacterCasing.cs: Added
21480 2004-11-29  Peter Bartok  <pbartok@novell.com>
21482         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
21483           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
21484           I am removing these files as they conflict with already completed
21485           work. While it is fantastic to get contributions to MWF, I
21486           respectfully ask that everyone please coordinate their contributions
21487           through mono-winforms-list or #mono-winforms at this time. We're
21488           explicitly avoiding stubbing and don't want controls that don't have
21489           their basic functionality implemented in svn. Please also see
21490           http://www.mono-project.com/contributing/winforms.html
21493 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
21495         * Application.cs (ModalRun): Don't hang after exit.
21497         * Theme.cs: New TreeViewDefaultSize property.
21499         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
21500         with less hardcoded SystemColors constant.
21501         Implemented TreeViewDefaultSize.
21503         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
21504         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
21507 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
21509         * MonthCalendar.cs:
21510           - Fix NextMonthDate and PrevMonthDate click moving calendar
21512 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
21514         * MonthCalendar.cs:
21515           - Fix usage of ScrollChange Property when scrolling months
21517 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
21519         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
21520          - Fixes menu destroying
21521          - Support adding and removing items on already created menus
21523 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
21525         * MonthCalendar.cs:
21526           - Re-worked all bolded dates handling to match win32
21527         * ThemeWin32Classic.cs:
21528           - Fixed rendering with bolded dates
21530 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
21532         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
21533         - Horizontal scroolbar
21534         - Multicolumn
21535         - Fixes
21538 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
21540         * MonthCalendar.cs:
21541           - Fix Usage of MaxSelectionCount from SelectionRange
21542           - Fixed Shift + Cursor Selection
21543           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
21544           - Fixed normal cursor selection to be compat with win32
21545           - Fixed Shift + Mouse Click selection
21547 2004-11-24  Peter Bartok <pbartok@novell.com>
21549         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
21550         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
21551         * XplatUIX11.cs:
21552           - CreatedKeyBoardMsg now updates keystate with Alt key
21553           - Added workaround for timer crash to CheckTimers, Jackson will
21554             develop a proper fix and check in later
21555           - Implemented DispatchMessage
21556           - Removed calling the native window proc from GetMessage (call
21557             now moved to DispatchMessage)
21559         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
21560           the keydata (Fixes bug #69831)
21562         * XplatUIWin32.cs:
21563           - (DispatchMessage): Switched to return IntPtr
21564           - Added DllImport for SetFocus
21566 2004-11-24  Ravindra <rkumar@novell.com>
21568         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
21569         background drawing.
21570         * ListViewItem.cs: Fixed various properties, calculations
21571         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
21572         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
21573         and some internal properties. Fixed MouseDown handler and Paint
21574         method.
21576 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
21578         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
21580 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
21582         * ContainerControl.cs: correct accidental check in of local changes
21584 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
21586         * ThemeWin32Classic.cs:
21587                 - Fixed Drawing Last month in grid (sometimes not showing)
21588         * MonthCalendar.cs:
21589                 - Fixed title width calculation bug (makeing title small)
21591 2004-11-23  Peter Bartok <pbartok@novell.com>
21593         * XplatUIX11.cs:
21594           - Added generation of WM_MOUSEHOVER event
21595           - Added missing assignment of async_method atom
21596           - Fixed WM_ERASEBKGND; now only redraws the exposed area
21598 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
21600         * ThemeWin32Classic.cs:
21601                 - Fixed Drawing of today circle when showtodaycircle not set
21602                 - fixed drawing of first and last month in the grid (gay dates)
21603         * MonthCalendar.cs:
21604                 - Fixed Drawing of today circle
21605                 - Fixed drawing of grady dates
21606                 - Fixed HitTest for today link when ShowToday set to false
21607                 - Fixed DefaultSize to obey ShowToday
21609 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
21611         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
21612         * System.Windows.Forms/Theme.cs
21613         * MonthCalendar.cs: added for MonthCalendar
21614         * SelectionRange.cs: added for MonthCalendar
21615         * Day.cs: added for MonthCalendar: added for MonthCalendar
21616         * DateRangeEventArgs.cs: added for MonthCalendar
21617         * DateRangeEventHandler.cs: added for MonthCalendar
21619 2004-11-22  Ravindra <rkumar@novell.com>
21621         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
21622         property.
21624 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
21626         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
21627         event handler.
21628         
21629         * NumericUpDown.cs: Added new implementation.
21630         * UpDownBase.cs: Added new implementation.
21632         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
21633         implementations.
21634         
21635         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
21636         implementations.
21638         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
21639         methods.
21641 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
21643         * Timer.cs  (Dispose): Should call the base dispose when
21644         overriding.
21646 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
21648         * ScrollBar.cs: updates thumb position when max, min or increment
21649         is changed
21651 2004-11-21  Ravindra <rkumar@novell.com>
21653         * ListView.cs: Implemented item selection, activation and
21654         column header style. Fixed properties to do a redraw, if
21655         required. Added support for MouseHover, DoubleClick, KeyDown
21656         and KeyUp event handling and some minor fixes.
21657         * ListViewItem.cs: Fixed constructor.
21658         * ThemeWin32Classic.cs: Improved drawing for ListView.
21660 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
21662         * ThemeWin32Classic.cs: initial listbox drawing code
21663         * DrawMode.cs: new enumerator
21664         * ListControl.cs: stubbed class
21665         * ListBox.cs: initial implementation
21666         * Theme.cs: new methods definitions
21667         * SelectionMode.cs: new enumerator
21669 2004-11-17  Peter Bartok  <pbartok@novell.com>
21671         * XplatUIWin32.cs: Added double-click events to the class style
21672         * Control.cs (WndProc):
21673           - Added handling of click-count to MouseDown/ MouseUp events.
21674           - Added handling of middle and right mouse buttons
21675           - Removed old debug code
21677 2004-11-17  Jackson Harper  <jackson@ximian.com>
21679         * XplatUIX11.cs: Use the new Mono.Unix namespace.
21681 2004-11-17  Ravindra <rkumar@novell.com>
21683         * ListView.cs: Added event handling for MouseMove/Up/Down.
21684         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
21685         * ThemeWin32Classic.cs: We need to clear the graphics context and
21686         draw column header in a proper state.
21689 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
21691         *  Menu.cs: fixes signature
21693 2004-11-16  Peter Bartok  <pbartok@novell.com>
21695         * XplatUIX11.cs (GetMessage): Implemented generation of
21696           double click mouse messages
21698 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
21700         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
21701         not by menu
21703 2004-11-11  Peter Bartok  <pbartok@novell.com>
21705         * HandleData.cs: Added Visible property
21706         * XplatUIX11.cs (IsVisible): Now uses Visible property from
21707           HandleData
21708         * XplatUIX11.cs: Removed old debug leftovers
21709         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
21710         * Control.cs (WndProc): Removed old debug leftovers,
21711           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
21712           needed WM_SIZE handling
21714 2004-11-11  Jackson Harper  <jackson@ximian.com>
21716         * OwnerDrawPropertyBag.cs:
21717         * TreeViewImageIndexConverter.cs: Initial implementation
21719 2004-11-10  Jackson Harper  <jackson@ximian.com>
21721         * ThemeWin32Classic.cs:
21722         * TabControl.cs: instead of moving tabs by the slider pos just
21723         start drawing at the tab that is offset by the slider. This way
21724         scrolling always moves by exactly one tab.
21726 2004-11-10  Jackson Harper  <jackson@ximian.com>
21728         * TabControl.cs: You can only scroll left when the slider has
21729         already ben moved right.
21730         
21731 2004-11-10  Jackson Harper  <jackson@ximian.com>
21733         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
21734         the clip area.
21735         
21736 2004-11-10  Jackson Harper  <jackson@ximian.com>
21738         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
21739         clip area.
21740         
21741 2004-11-09  Jackson Harper  <jackson@ximian.com>
21743         * TabControl.cs (CalcXPos): New helper method so we can determine
21744         the proper place to start drawing vertical tabs.
21745         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
21746         
21747 2004-11-09  Jackson Harper  <jackson@ximian.com>
21749         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
21750         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
21751         and Bottom, left and right are illegal values for this and
21752         multiline is enabled when the alignment is set to left or right.
21753         (DrawTab): Each alignment block should draw the text itself now
21754         because Left requires special love. Also add rendering for Left
21755         aligned tabs.
21756         
21757 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
21759         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
21760         does not destroy the windows, removes debugging messages
21762 2004-11-09  jba  <jba-mono@optusnet.com.au>
21764         * ThemeWin32Classic.cs
21765         (DrawButtonBase): Fix verticle text rect clipping in windows
21766         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
21767         rendering and incorrect text rect clipping
21768         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
21769         rendering and incorrect text rect clipping
21770         
21771 2004-11-08  Jackson Harper  <jackson@ximian.com>
21773         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
21774         bottom when they are bottom aligned so the bottoms of the tabs get
21775         displayed.
21776         * TabControl.cs (DropRow): Move rows up instead of down when the
21777         tab control is bottom aligned.
21779 2004-11-08 13:59  pbartok
21781         * XplatUIX11.cs:
21782           - Added handling for various window styles
21783           - Added handling for popup windows
21784           - Added SetTopmost handling
21786 2004-11-08 13:55  pbartok
21788         * XplatUIWin32.cs:
21789           - Added argument to SetTopmost method
21790           - Fixed broken ClientToScreen function
21792 2004-11-08 13:53  pbartok
21794         * XplatUIStructs.cs:
21795           - Added missing WS_EX styles
21797 2004-11-08 13:53  pbartok
21799         * XplatUI.cs, XplatUIDriver.cs:
21800           - Added argument to SetTopmost
21802 2004-11-08 13:52  pbartok
21804         * X11Structs.cs:
21805           - Added XSetWindowAttributes structure
21806           - Improved XWindowAttributes structure
21807           - Added SetWindowValuemask enum
21808           - Added window creation arguments enum
21809           - Added gravity enum
21810           - Added Motif hints structure
21811           - Added various Motif flags and enums
21812           - Added PropertyMode enum for property functions
21814 2004-11-08 13:50  pbartok
21816         * Form.cs:
21817           - Fixed arguments for updated SetTopmost method
21819 2004-11-08 13:49  pbartok
21821         * ToolTip.cs:
21822           - Fixed arguments for updated SetTopmost function
21823           - Fixed usage of PointToClient
21825 2004-11-08 13:44  pbartok
21827         * MenuAPI.cs:
21828           - Added Clipping of children and siblings
21830 2004-11-08 13:41  pbartok
21832         * MainMenu.cs:
21833           - Removed SetMenuBarWindow call. We do this in Form.cs
21835 2004-11-08 13:40  jackson
21837         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
21838           scrolling jimmi in the correct location with bottom aligned tabs
21840 2004-11-08 13:36  pbartok
21842         * ContainerControl.cs:
21843           - Implemented BindingContext
21844           - Implemented ParentForm
21846 2004-11-08 12:46  jackson
21848         * TabControl.cs: Put bottom rendered tabs in the right location
21850 2004-11-08 07:15  jordi
21852         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
21853           removes dead code
21855 2004-11-05 17:30  jackson
21857         * TabControl.cs: When selected tabs are expanded make sure they
21858           don't go beyond the edges of the tab control
21860 2004-11-05 14:57  jackson
21862         * TabControl.cs: Reset show_slider so if the control is resized to
21863           a size where it is no longer needed it's not displayed anymore
21865 2004-11-05 13:16  jackson
21867         * TabControl.cs: Make tab pages non visible when added to the
21868           control
21870 2004-11-05 12:42  jackson
21872         * TabControl.cs: Implement SizeMode.FillToRight
21874 2004-11-05 12:16  jackson
21876         * Control.cs: Do not call CreateHandle if the handle is already
21877           created
21879 2004-11-05 11:46  jackson
21881         * TabControl.cs: Remove superflous call to CalcTabRows
21883 2004-11-05 09:07  jackson
21885         * XplatUIX11.cs: Update for Mono.Posix changes
21887 2004-11-05 07:00  ravindra
21889         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
21890           scrolling.
21892 2004-11-04 22:47  jba
21894         * ThemeWin32Classic.cs:
21895           - Fix Button rendering for FlatStyle = Flat or Popup
21896           - Fix RadioButton and CheckBox rendering when Appearance = Button
21897             (normal and flatstyle).
21898           - Correct outer rectangle color when drawing focus rectangle
21899           - Adjust button bounds to be 1 px smaller when focused
21900           - Make button not draw sunken 3d border when pushed (windows compat)
21901           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
21902           - Offset the text in RadioButton and Checkbox when being rendered as
21903           a button.
21904           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
21905           radiobuttons
21906           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
21907           - Fixed disabled text rendering for normally rendered radiobuttons
21909 2004-11-04 10:26  jackson
21911         * TabControl.cs: Recalculate tab rows when resizing
21913 2004-11-04 07:47  jordi
21915         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
21916           collection completion, drawing issues, missing features
21918 2004-11-04 05:03  ravindra
21920         * ScrollBar.cs:
21921                 - We need to recalculate the Thumb area when
21922                 LargeChange/maximum/minimum values are changed.
21923           - We set the 'pos' in UpdatePos() method to minimum, if it's less
21924                 than minimum. This is required to handle the case if large_change is
21925                 more than max, and use LargeChange property instead of large_change
21926                 variable.
21927           - We return max+1 when large_change is more than max, like MS does.
21929 2004-11-04 04:29  ravindra
21931         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
21932                 - Changed default value signatures (prefixed all with ListView).
21933                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
21934                 ListView.
21935           - Fixed calculations for ListViewItem and implemented Clone()
21936           method.
21938 2004-11-04 04:26  ravindra
21940         * Theme.cs, ThemeWin32Classic.cs:
21941                 - Changed default ListView values signatures (prefixed all with
21942                 ListView).
21943           - Fixed default size values for VScrollBar and HScrollBar.
21944                 - Fixed DrawListViewItem method.
21946 2004-11-04 04:05  ravindra
21948         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
21950 2004-11-04 04:04  ravindra
21952         * ImageList.cs: Implemented the missing overload for Draw method.
21954 2004-11-03 19:29  jackson
21956         * TabControl.cs: Handle dropping rows on selection properly
21958 2004-11-03 11:59  jackson
21960         * TabControl.cs: remove debug code
21962 2004-11-03 11:52  jackson
21964         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
21965           the scrolly widgerywoo
21967 2004-11-02 13:52  jackson
21969         * TabControl.cs: Resize the tab pages and tabs when the tab control
21970           is resized
21972 2004-11-02 13:40  jackson
21974         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
21975           selected tab to the bottom
21977 2004-11-02 13:39  jackson
21979         * TabPage.cs: Store the tab pages row
21981 2004-11-02 12:33  jordi
21983         * MenuItem.cs: fixes handle creation
21985 2004-11-02 11:42  jackson
21987         * TabControl.cs: signature fix
21989 2004-11-02 08:56  jackson
21991         * TabControl.cs: Calculate whether the tab is on an edge properly.
21992           Remove top secret debugging code
21994 2004-11-01 19:57  jackson
21996         * TabControl.cs: Add click handling, and proper sizing
21998 2004-11-01 19:47  jackson
22000         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
22001           tab controls
22003 2004-11-01 19:39  jackson
22005         * TabPage.cs: add internal property to store the bounds of a tab
22006           page
22008 2004-10-30 04:23  ravindra
22010         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
22011           values.
22013 2004-10-30 04:21  ravindra
22015         * ListView.cs, ListViewItem.cs: Added support for scrolling and
22016           fixed calculations.
22018 2004-10-30 03:06  pbartok
22020         * XplatUIX11.cs:
22021           - Removed extension of DllImported libs
22023 2004-10-29 09:55  jordi
22025         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
22026           navigation, itemcollection completion, menu fixes
22028 2004-10-27 22:58  pbartok
22030         * XplatUIX11.cs:
22031           - Now throws a nice error message when no X display could be opened
22033 2004-10-26 13:51  jordi
22035         * ListView.cs: removes warning
22037 2004-10-26 03:55  ravindra
22039         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
22040           ThemeWin32Classic.cs: Some formatting for my last checkins.
22042 2004-10-26 03:36  ravindra
22044         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
22045           control and default values.
22047 2004-10-26 03:35  ravindra
22049         * Theme.cs: Added some default values for ListView control.
22051 2004-10-26 03:33  ravindra
22053         * ToolBar.cs: ToolBar should use the user specified button size, if
22054           there is any. Added a size_specified flag for the same.
22056 2004-10-26 03:33  ravindra
22058         * ColumnHeader.cs: Added some internal members and calculations for
22059           ColumnHeader.
22061 2004-10-26 03:32  ravindra
22063         * ListViewItem.cs: Calculations for ListViewItem.
22065 2004-10-26 03:31  ravindra
22067         * ListView.cs: Added some internal members and calculations for
22068           ListView.
22070 2004-10-22 13:31  jordi
22072         * MenuAPI.cs: speedup menus drawing
22074 2004-10-22 13:16  jackson
22076         * XplatUIX11.cs: Make sure to update exposed regions when adding an
22077           expose event
22079 2004-10-22 11:49  jackson
22081         * Control.cs: oops
22083 2004-10-22 11:41  jackson
22085         * Control.cs: Check to see if the window should have its background
22086           repainted by X when drawing.
22088 2004-10-22 11:31  jackson
22090         * XplatUIX11.cs: When invalidating areas only use XClearArea if
22091           clear is true, this way we do not get flicker from X repainting the
22092           background
22094 2004-10-22 11:28  jackson
22096         * XEventQueue.cs: Queue properly
22098 2004-10-21 09:38  jackson
22100         * XEventQueue.cs: Fix access modifier
22102 2004-10-21 09:36  jackson
22104         * XEventQueue.cs: Don't loose messages
22106 2004-10-21 09:22  jackson
22108         * XEventQueue.cs: Don't loose messages
22110 2004-10-20 04:15  jordi
22112         * BootMode.cs: enum need it by SystemInfo
22114 2004-10-19 21:58  pbartok
22116         * XplatUIWin32.cs:
22117           - Small sanity check
22119 2004-10-19 21:56  pbartok
22121         * Form.cs:
22122           - Added private FormParentWindow class which acts as the container
22123             for our form and as the non-client area where menus are drawn
22124           - Added/Moved required tie-ins to Jordi's menus
22125           - Fixed/Implemented the FormStartPosition functionality
22127 2004-10-19 21:52  pbartok
22129         * Control.cs:
22130           - Removed unneeded locals
22131           - Added code to all size and location properties to understand and
22132             deal with the parent container of Form
22134 2004-10-19 21:33  pbartok
22136         * Application.cs:
22137           - Fixed to deal with new Form subclasses for menus
22139 2004-10-19 17:48  jackson
22141         * XEventQueue.cs: commit correct version of file
22143 2004-10-19 16:50  jackson
22145         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
22147 2004-10-19 16:15  jordi
22149         * MenuAPI.cs: MenuBarCalcSize returns the height
22151 2004-10-19 08:31  pbartok
22153         * Control.cs:
22154           - Added missing call to PreProcessMessage before calling OnXXXKey
22155           methods
22157 2004-10-19 00:04  ravindra
22159         * ToolTip.cs: Fixed constructor.
22161 2004-10-18 09:31  jordi
22163         * MenuAPI.cs: menuitems in menubars do not have shortcuts
22165 2004-10-18 09:26  jordi
22167         * MenuItem.cs: fixes MenuItem class signature
22169 2004-10-18 08:56  jordi
22171         * MenuAPI.cs: prevents windows from showing in the taskbar
22173 2004-10-18 00:28  ravindra
22175         * ToolTip.cs: Suppressed a warning message.
22177 2004-10-18 00:27  ravindra
22179         * Control.cs: Default value of visible property must be true.
22181 2004-10-17 23:19  pbartok
22183         * ToolTip.cs:
22184           - Complete implementation
22186 2004-10-17 23:19  pbartok
22188         * XplatUIX11.cs:
22189           - Added EnableWindow method
22190           - Added SetModal stub
22191           - Added generation of WM_ACTIVATE message (still needs testing)
22192           - Added SetTopMost stub
22193           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
22195 2004-10-17 23:17  pbartok
22197         * XplatUIWin32.cs:
22198           - Removed VirtualKeys to XplatUIStructs
22199           - Implemented SetTopMost method
22200           - Implemented EnableWindow method
22201           - Bugfix in ScreenToClient()
22202           - Bugfixes in ClientToScreen()
22204 2004-10-17 22:51  pbartok
22206         * XplatUIStructs.cs:
22207           - Added WS_EX styles to WindowStyles enumeration
22209 2004-10-17 22:50  pbartok
22211         * XplatUI.cs, XplatUIDriver.cs:
22212           - Added method for enabling/disabling windows
22213           - Added method for setting window modality
22214           - Added method for setting topmost window
22216 2004-10-17 22:49  pbartok
22218         * ThemeWin32Classic.cs:
22219           - Added ToolTip drawing code
22221 2004-10-17 22:49  pbartok
22223         * Theme.cs:
22224           - Added ToolTip abstracts
22226 2004-10-17 22:47  pbartok
22228         * Form.cs:
22229           - Fixed Form.ControlCollection to handle owner relations
22230           - Added Owner/OwnedForms handling
22231           - Implemented Z-Ordering for owned forms
22232           - Removed unneeded private overload of ShowDialog
22233           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
22234             so I hope)
22235           - Fixed Close(), had wrong default
22236           - Added firing of OnLoad event
22237           - Added some commented out debug code for Ownership handling
22239 2004-10-17 22:16  pbartok
22241         * Control.cs:
22242           - Fixed/implemented flat list of controls
22244 2004-10-17 22:14  pbartok
22246         * Application.cs:
22247           - Added code to simulate modal dialogs on Win32
22249 2004-10-17 16:11  jordi
22251         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
22252           mouse event
22254 2004-10-17 13:39  jordi
22256         * MenuAPI.cs: menu drawing fixes
22258 2004-10-15 09:10  ravindra
22260         * StructFormat.cs: General Enum.
22262 2004-10-15 09:09  ravindra
22264         * SizeGripStyle.cs: Enum for Form.
22266 2004-10-15 09:08  ravindra
22268         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
22269           in Theme for ListView.
22271 2004-10-15 09:06  ravindra
22273         * ColumnHeader.cs: Flushing some formatting changes.
22275 2004-10-15 09:05  ravindra
22277         * ListViewItem.cs: Implemented GetBounds method and fixed coding
22278           style.
22280 2004-10-15 09:03  ravindra
22282         * ListView.cs: Implemented Paint method and fixed coding style.
22284 2004-10-15 07:34  jordi
22286         * MenuAPI.cs: fix for X11
22288 2004-10-15 07:32  ravindra
22290         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
22291                 - Renamed Paint() method to Draw() for clarity. Also, moved
22292                 DrawImage() to OnPaint().
22294 2004-10-15 07:25  ravindra
22296         * CheckBox.cs, RadioButton.cs:
22297                 - Removed Redraw (), we get it from ButtonBase.
22298                 - Implemented Paint (), to do class specific painting.
22300 2004-10-15 07:16  ravindra
22302         * ButtonBase.cs:
22303                 - Redraw () is not virtual now.
22304                 - Added an internal virtual method Paint (), so that
22305                 derived classes can do their painting on their own.
22306                 - Modified OnPaint () to call Paint ().
22308 2004-10-15 06:43  jordi
22310         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
22311           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
22313 2004-10-15 00:30  ravindra
22315         * MessageBox.cs:
22316                 - MessageBox on windows does not have min/max buttons.
22317                 This change in CreateParams fixes this on Windows. We
22318                 still need to implement this windowstyle behavior in
22319                 our X11 driver.
22321 2004-10-14 05:14  ravindra
22323         * ToolBar.cs:
22324                 - Changed Redraw () to do a Refresh () always.
22325                 - Fixed the MouseMove event handling when mouse is pressed,
22326                 ie drag event handling.
22327                 - Replaced the usage of ToolBarButton.Pressed property to
22328                 ToolBarButton.pressed internal variable.
22330 2004-10-14 05:10  ravindra
22332         * ToolBarButton.cs:
22333                 - Added an internal member 'inside' to handle mouse move
22334                 with mouse pressed ie mouse drag event.
22335                 - Changed 'Pressed' property to return true only when
22336                 'inside' and 'pressed' are both true.
22337                 - Some coding style love.
22339 2004-10-14 00:17  ravindra
22341         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
22342           public method.
22344 2004-10-14 00:15  ravindra
22346         * ButtonBase.cs: Redraw () related improvements.
22348 2004-10-14 00:14  ravindra
22350         * MessageBox.cs: Moved InitFormSize () out of Paint method and
22351           removed unnecessary calls to Button.Show () method.
22353 2004-10-13 17:50  pbartok
22355         * XplatUIX11.cs:
22356           - Formatting fix
22357           - Removed destroying of window until we solve the problem of X
22358             destroying the window before us on shutdown
22360 2004-10-13 16:32  pbartok
22362         * ButtonBase.cs:
22363           - Now Redraws on MouseUp for FlatStyle Flat and Popup
22365 2004-10-13 14:18  pbartok
22367         * XplatUIX11.cs:
22368           - Added code to destroy the X window
22370 2004-10-13 14:18  pbartok
22372         * XplatUIWin32.cs:
22373           - Added code to destroy a window
22375 2004-10-13 14:12  pbartok
22377         * ButtonBase.cs:
22378           - Added the Redraw on Resize that got dropped in the last rev
22380 2004-10-13 09:06  pbartok
22382         * ThemeWin32Classic.cs:
22383           - Path from John BouAntoun:
22384             * Fix check rendering (centre correctly for normal style, offset
22385               correctly for FlatStyle).
22386             * Fix border color usage (use backcolor) for FlatStyle.Popup
22387             * Use checkbox.Capture instead of checkbox.is_pressed when
22388               rendering flatstyle states.
22390 2004-10-12 21:48  pbartok
22392         * ThemeWin32Classic.cs:
22393           - Removed all occurences of SystemColors and replaced them with the
22394             matching theme color
22396 2004-10-12 21:41  pbartok
22398         * ThemeWin32Classic.cs:
22399           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
22400             him using the function for flatstyle drawing
22401           - Changed functions to use the new version of CPDrawBorder3D
22403 2004-10-12 21:15  pbartok
22405         * ControlPaint.cs:
22406           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
22407             match MS documentation. They need to return defined colors if the
22408             passed color matches the configured control color. Thanks to John
22409             BouAntoun for pointing this out.
22411 2004-10-12 20:57  pbartok
22413         * Control.cs:
22414           - Fix from John BouAntoun: Raise ForeColorChanged event when text
22415             color is changed
22417 2004-10-12 20:46  pbartok
22419         * CheckBox.cs:
22420           - Fix from John BouAntoun: Now properly sets the Appearance property
22422 2004-10-12 20:45  pbartok
22424         * ThemeWin32Classic.cs:
22425           - Fixes from John BouAntoun: now handles forecolors and backcolors
22426             for flatstyle rendered controls much better; It also fixes normal
22427             checkbox rendering when pushed or disabled.
22429 2004-10-08 02:50  jordi
22431         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
22432           work
22434 2004-10-07 08:56  jordi
22436         * ThemeWin32Classic.cs: Removes deletion of cached brushes
22438 2004-10-06 03:59  jordi
22440         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
22441           XplatUIWin32.cs: removes warnings from compilation
22443 2004-10-05 12:23  jackson
22445         * RadioButton.cs: Fix ctor
22447 2004-10-05 11:10  pbartok
22449         * MessageBox.cs:
22450           - Partial implementation by Benjamin Dasnois
22452 2004-10-05 10:15  jackson
22454         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
22455           by John BouAntoun
22457 2004-10-05 03:07  ravindra
22459         * ToolBar.cs:
22460                 - Removed a private method, Draw ().
22461                 - Fixed the ButtonDropDown event handling.
22462                 - Fixed MouseMove event handling.
22464 2004-10-05 03:04  ravindra
22466         * ThemeWin32Classic.cs:
22467                 - Added DrawListView method and ListViewDefaultSize property.
22468                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
22469                 - Changed DOS style CRLF to Unix format (dos2unix).
22471 2004-10-05 03:03  ravindra
22473         * Theme.cs:
22474                 - Added DrawListView method and ListViewDefaultSize property.
22476 2004-10-05 02:42  ravindra
22478         * ToolBarButton.cs: Added an internal member dd_pressed to handle
22479           clicks on DropDown arrow.
22481 2004-10-04 22:56  jackson
22483         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
22484           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
22485           Control handle the buffers, derived classes should not have to
22486           CreateBuffers themselves.
22488 2004-10-04 21:20  jackson
22490         * StatusBar.cs: The control handles resizing the buffers now.
22492 2004-10-04 21:18  jackson
22494         * Control.cs: When resizing the buffers should be invalidated. This
22495           should be handled in Control not in derived classes.
22497 2004-10-04 14:45  jackson
22499         * TabPage.cs: oops
22501 2004-10-04 02:14  pbartok
22503         * LeftRightAlignment.cs:
22504           - Initial check-in
22506 2004-10-04 01:09  jordi
22508         * ThemeWin32Classic.cs: fixes right button position causing right
22509           button not showing on horizontal scrollbars
22511 2004-10-02 13:12  pbartok
22513         * XplatUIX11.cs:
22514           - Simplified the Invalidate method by using an X call instead of
22515             generating the expose ourselves
22516           - Added an expose when the window background is changed
22517           - Implemented ClientToScreen method
22519 2004-10-02 13:08  pbartok
22521         * XplatUIWin32.cs:
22522           - Added Win32EnableWindow method (test for implementing modal
22523           dialogs)
22524           - Added ClientToScreen method and imports
22526 2004-10-02 13:07  pbartok
22528         * XplatUI.cs, XplatUIDriver.cs:
22529           - Added ClientToScreen coordinate translation method
22531 2004-10-02 13:06  pbartok
22533         * KeyPressEventArgs.cs:
22534           - Fixed access level for constructor
22536 2004-10-02 13:06  pbartok
22538         * NativeWindow.cs:
22539           - Changed access level for the window_collection hash table
22541 2004-10-02 13:05  pbartok
22543         * Form.cs:
22544           - Added KeyPreview property
22545           - Added Menu property (still incomplete, pending Jordi's menu work)
22546           - Implemented ProcessCmdKey
22547           - Implemented ProcessDialogKey
22548           - Implemented ProcessKeyPreview
22550 2004-10-02 13:02  pbartok
22552         * Control.cs:
22553           - Added private method to get the Control object from the window
22554           handle
22555           - Implemented ContextMenu property
22556           - Implemented PointToScreen
22557           - Implemented PreProcessMessage
22558           - Implemented IsInputChar
22559           - Implemented IsInputKey
22560           - Implemented ProcessCmdKey
22561           - Completed ProcessKeyEventArgs
22562           - Fixed message loop to call the proper chain of functions on key
22563           events
22564           - Implemented ProcessDialogChar
22565           - Implemented ProcessDialogKey
22566           - Implemented ProcessKeyMessage
22567           - Implemented ProcessKeyPreview
22568           - Added RaiseDragEvent stub (MS internal method)
22569           - Added RaiseKeyEvent stub (MS internal method)
22570           - Added RaiseMouseEvent stub (MS Internal method)
22571           - Added RaisePaintEvent stub (MS Internal method)
22572           - Added ResetMouseEventArgs stub (MS Internal method)
22573           - Implemented RtlTranslateAlignment
22574           - Implemented RtlTranslateContent
22575           - Implemented RtlTranslateHorizontal
22576           - Implemented RtlTranslateLeftRight
22577           - Added generation of KeyPress event
22579 2004-10-02 05:57  ravindra
22581         * ListViewItem.cs: Added attributes.
22583 2004-10-02 05:32  ravindra
22585         * ListView.cs: Added attributes.
22587 2004-10-01 11:53  jackson
22589         * Form.cs: Implement the Close method so work on MessageBox can
22590           continue.
22592 2004-09-30 14:06  pbartok
22594         * XplatUIX11.cs:
22595           - Bug fixes
22597 2004-09-30 11:34  jackson
22599         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
22601 2004-09-30 07:26  ravindra
22603         * ListViewItemConverter.cs: Converter for ListViewItem.
22605 2004-09-30 07:26  ravindra
22607         * SortOrder.cs: Enum for ListView control.
22609 2004-09-30 07:25  ravindra
22611         * ColumnHeader.cs: Supporting class for ListView control.
22613 2004-09-30 07:24  ravindra
22615         * ListView.cs, ListViewItem.cs: Initial implementation.
22617 2004-09-30 07:20  ravindra
22619         * ItemActivation.cs: Enum for ListView Control.
22621 2004-09-29 20:29  pbartok
22623         * XplatUIX11.cs:
22624           - Added lookup of pixel value for background color; tries to get a
22625             color 'close' to the requested color, it avoids having to create a
22626             colormap.  Depending on the display this could mean the used color
22627             is slightly off the desired color. Might have to change it to a more
22628             resource intensive colormap approach, but it will work as a
22629           workaround to avoid red screens.
22631 2004-09-29 14:27  jackson
22633         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
22635 2004-09-28 12:44  pbartok
22637         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
22638           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
22639           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
22640           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
22641           TrackBar.cs, VScrollBar.cs:
22642           - Streamlined Theme interfaces:
22643             * Each DrawXXX method for a control now is passed the object for
22644               the control to be drawn in order to allow accessing any state the
22645               theme might require
22647             * ControlPaint methods for the theme now have a CP prefix to avoid
22648               name clashes with the Draw methods for controls
22650             * Every control now retrieves it's DefaultSize from the current
22651             theme
22653 2004-09-28 12:17  jackson
22655         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
22656           drawing
22658 2004-09-24 14:57  jackson
22660         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
22661           Gives us a nice little performance boost.
22663 2004-09-24 12:02  jackson
22665         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
22666           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
22667           Control and supporting classes. Initial checkin
22669 2004-09-23 13:08  jackson
22671         * Form.cs: Temp build fixage
22673 2004-09-23 01:39  ravindra
22675         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
22676           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
22677           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
22678           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
22679           EventHandlers needed by ListView Control.
22681 2004-09-22 14:12  pbartok
22683         * ScrollableControl.cs:
22684           - Implemented DockPadding property
22685           - Implemented AutoScroll property
22686           - Implemented AutoScrollMargin property
22687           - Implemented AutoScrollMinSize property
22688           - Implemented AutoScrollPosition property
22689           - Implemented DisplayRectangle property (still incomplete)
22690           - Implemented CreateParams property
22691           - Implemented HScroll property
22692           - Implemented VScroll property
22693           - Implemented OnVisibleChanged property
22695 2004-09-22 14:09  pbartok
22697         * Form.cs:
22698           - Added Form.ControllCollection class
22699           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
22700             RemoveOwnedForm (still incomplete, missing on-top and common
22701             minimize/maximize behaviour)
22702           - Added StartPosition property (still incomplete, does not use when
22703             creating the form)
22704           - Added ShowDialog() methods (still incomplete, missing forcing the
22705             dialog modal)
22707 2004-09-22 14:05  pbartok
22709         * Application.cs:
22710           - Added message loop for modal dialogs
22712 2004-09-22 14:02  pbartok
22714         * GroupBox.cs:
22715           - Fixed wrong types for events
22717 2004-09-22 14:00  pbartok
22719         * Shortcut.cs, FormWindowState.cs:
22720           - Fixed wrong values
22722 2004-09-22 12:01  jackson
22724         * Control.cs: Text is never null
22726 2004-09-20 22:14  pbartok
22728         * XplatUIWin32.cs:
22729           - Fixed accessibility level for Idle handler
22731 2004-09-20 18:54  jackson
22733         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
22734           XplatUIX11.cs: New message loop that uses poll so we don't get a
22735           busy loop
22737 2004-09-17 10:43  pbartok
22739         * ScrollBar.cs:
22740           - Fixed behaviour of arrow buttons. Now properly behaves like
22741             Buttons (and like Microsoft's scrollbar arrow buttons)
22743 2004-09-17 10:14  pbartok
22745         * ScrollBar.cs:
22746           - Added missing release of keyboard/mouse capture
22748 2004-09-17 06:18  jordi
22750         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
22751           Theme.cs: Very early menu support
22753 2004-09-16 17:45  pbartok
22755         * XplatUIWin32.cs:
22756           - Fixed sending a window to the front
22757           - Added overload for SetWindowPos to avoid casting
22759 2004-09-16 17:44  pbartok
22761         * Control.cs:
22762           - Added SendToBack and BringToFront methods
22764 2004-09-16 07:00  ravindra
22766         * Copyright: Added Novell URL.
22768 2004-09-16 07:00  ravindra
22770         * ToolBar.cs: Invalidate should be done before redrawing.
22772 2004-09-15 21:19  ravindra
22774         * ColumnHeaderStyle.cs: Enum for ListView Control.
22776 2004-09-15 21:18  ravindra
22778         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
22779           ListView Control.
22781 2004-09-13 18:26  jackson
22783         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
22784           properly
22786 2004-09-13 18:13  jackson
22788         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
22789           a second thread and post messages into the main threads message
22790           queue. This makes timing much more consistent. Both win2K and XP
22791           have a minimum timer value of 15 milliseconds, so we now do this
22792           too.
22794 2004-09-13 15:18  pbartok
22796         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
22797           XplatUIX11.cs:
22798           - Added Z-Ordering methods
22800 2004-09-13 10:56  pbartok
22802         * Form.cs:
22803           - Fixed #region names
22804           - Moved properties and methods into their proper #regions
22806 2004-09-13 10:51  pbartok
22808         * Form.cs:
22809           - Added Accept and CancelButton properties
22810           - Added ProcessDialogKey() method
22812 2004-09-13 08:18  pbartok
22814         * IWindowTarget.cs:
22815           - Initial check-in
22817 2004-09-10 21:50  pbartok
22819         * Control.cs:
22820           - Added DoDragDrop() [incomplete]
22821           - Properly implemented 'Visible' handling
22822           - Added SetVisibleCore()
22823           - Implemented FindChildAtPoint()
22824           - Implemented GetContainerControl()
22825           - Implemented Hide()
22827 2004-09-10 19:28  pbartok
22829         * Control.cs:
22830           - Moved methods into their appropriate #regions
22831           - Reordered methods within regions alphabetically
22833 2004-09-10 18:57  pbartok
22835         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
22836           - Added method to retrieve text from window
22838 2004-09-10 18:56  pbartok
22840         * Control.cs:
22841           - Moved some internal functions into the internal region
22842           - Implemented FontHeight
22843           - Implemented RenderRightToLeft
22844           - Implemented ResizeRedraw
22845           - Implemented ShowFocusCues
22846           - Implemented ShowKeyboardCues
22847           - Implemented FromChildHandle
22848           - Implemented FromHandle
22849           - Implemented IsMnemonic
22850           - Implemented ReflectMessage
22851           - All public and protected Static Methods are now complete
22853 2004-09-10 16:54  pbartok
22855         * Control.cs:
22856           - Implemented remaining missing public instance properties
22857           - Alphabetized some out of order properties
22859 2004-09-10 05:51  ravindra
22861         * PictureBox.cs: Added a check for null image.
22863 2004-09-10 00:59  jordi
22865         * GroupBox.cs: remove cvs tag
22867 2004-09-09 05:25  ravindra
22869         * ToolBar.cs: Make redraw accessible from ToolBarButton.
22871 2004-09-09 05:23  ravindra
22873         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
22874           parent redraw.
22876 2004-09-09 02:28  pbartok
22878         * ThemeWin32Classic.cs:
22879           - Improve disabled string look
22881 2004-09-09 01:15  jordi
22883         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
22884           args and handler
22886 2004-09-08 23:56  ravindra
22888         * ItemBoundsPortion.cs: It's enum, not a class!
22890 2004-09-08 23:47  ravindra
22892         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
22893           Enums for Form.
22895 2004-09-08 21:13  ravindra
22897         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
22898           ListView control.
22900 2004-09-08 21:03  ravindra
22902         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
22903           avoid crash.
22905 2004-09-08 21:01  ravindra
22907         * ScrollableControl.cs: Removed unreachable code.
22909 2004-09-08 06:45  jordi
22911         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
22913 2004-09-08 01:00  jackson
22915         * XplatUIX11.cs: Only run the timers when updating the message
22916           queue. This effectively gives X messages a higher priority then
22917           timer messages. Timers still need love though
22919 2004-09-07 14:01  jackson
22921         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
22922           this for us and the handle is no longer valid.
22924 2004-09-07 13:59  jackson
22926         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
22927           loop that manages to not crash. TODO: Add poll and cleanup timers
22929 2004-09-07 11:12  jordi
22931         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
22933 2004-09-07 03:40  jordi
22935         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
22936           fixes, methods, multiple links
22938 2004-09-06 06:55  jordi
22940         * Control.cs: Caches ClientRectangle rectangle value
22942 2004-09-05 02:03  jordi
22944         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
22945           certain situations
22947 2004-09-04 11:10  jordi
22949         * Label.cs: Refresh when font changed
22951 2004-09-02 16:24  pbartok
22953         * Control.cs:
22954           - Added sanity check to creation of double buffer bitmap
22956 2004-09-02 16:24  pbartok
22958         * ButtonBase.cs:
22959           - Fixed selection of text color
22960           - Fixed handling of resize event; now properly recreates double
22961             buffering bitmap
22962           - Added missing assignment of TextAlignment
22963           - Added proper default for TextAlignment
22965 2004-09-02 14:26  pbartok
22967         * RadioButton.cs:
22968           - Added missing RadioButton.RadioButtonAccessibleObject class
22970 2004-09-02 14:26  pbartok
22972         * Control.cs:
22973           - Added missing Control.ControlAccessibleObject class
22974           - Started to implement Select()ion mechanisms, still very incomplete
22976 2004-09-02 14:25  pbartok
22978         * AccessibleObject.cs:
22979           - Added missing methods
22981 2004-09-02 14:23  pbartok
22983         * AccessibleNavigation.cs, AccessibleSelection.cs:
22984           - Initial check-in
22986 2004-09-02 10:32  jordi
22988         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
22989           pool for pens, brushes, and hatchbruses
22991 2004-09-01 15:30  jackson
22993         * StatusBar.cs: Fix typo
22995 2004-09-01 14:44  pbartok
22997         * RadioButton.cs:
22998           - Fixed state
23000 2004-09-01 14:39  pbartok
23002         * Button.cs, RadioButton.cs:
23003           - Functional initial check-in
23005 2004-09-01 14:01  pbartok
23007         * CheckBox.cs:
23008           - Added missing default
23009           - Added missing region mark
23011 2004-09-01 09:10  jordi
23013         * Label.cs: fixes method signatures, new methods, events, fixes
23014           autosize
23016 2004-09-01 07:19  jordi
23018         * Control.cs: Init string variables with an empty object
23020 2004-09-01 04:20  jordi
23022         * Control.cs: fires OnFontChanged event
23024 2004-08-31 20:07  pbartok
23026         * ButtonBase.cs:
23027           - Enabled display of strings
23029 2004-08-31 20:05  pbartok
23031         * Form.cs:
23032           - Added (partial) implementation of DialogResult; rest needs to be
23033             implemented when the modal loop code is done
23035 2004-08-31 19:55  pbartok
23037         * CheckBox.cs:
23038           - Fixed to match the removal of the needs_redraw concept
23040 2004-08-31 19:55  pbartok
23042         * ButtonBase.cs:
23043           - Removed the rather odd split between 'needs redraw' and redrawing
23044           - Now handles the events that require regeneration (ambient
23045             properties and size)
23047 2004-08-31 19:41  pbartok
23049         * Control.cs:
23050           - Added firing of BackColorChanged event
23051           - Added TopLevelControl property
23052           - Fixed handling of WM_ERASEBKGRND message
23054 2004-08-31 12:49  pbartok
23056         * ButtonBase.cs:
23057           - Removed debug
23058           - Minor fixes
23060 2004-08-31 12:48  pbartok
23062         * CheckBox.cs:
23063           - Finished (famous last words)
23065 2004-08-31 04:35  jordi
23067         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
23068           scrolling bugs, adds new methods
23070 2004-08-30 14:42  pbartok
23072         * CheckBox.cs:
23073           - Implemented CheckBox drawing code
23075 2004-08-30 14:42  pbartok
23077         * ButtonBase.cs:
23078           - Made Redraw() and CheckRedraw() virtual
23079           - Improved mouse up/down/move logic to properly track buttons
23081 2004-08-30 09:44  pbartok
23083         * CheckBox.cs:
23084           - Updated to fix broken build. Not complete yet.
23086 2004-08-30 09:28  pbartok
23088         * CheckState.cs:
23089           - Initial checkin
23091 2004-08-30 09:17  pbartok
23093         * Appearance.cs:
23094           - Initial check-in
23096 2004-08-27 16:12  ravindra
23098         * ToolBarButton.cs: Added TypeConverter attribute.
23100 2004-08-27 16:07  ravindra
23102         * ImageIndexConverter.cs: Implemented.
23104 2004-08-27 14:17  pbartok
23106         * Control.cs:
23107           - Removed unneeded stack vars
23108           - First attempt to fix sizing issues when layout is suspended
23110 2004-08-25 15:35  jordi
23112         * ScrollBar.cs: more fixes to scrollbar
23114 2004-08-25 14:04  ravindra
23116         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
23117           Added the missing divider code and grip for ToolBar Control.
23119 2004-08-25 13:20  pbartok
23121         * Control.cs:
23122           - Control now properly passes the ambient background color to child
23123             controls
23125 2004-08-25 13:20  jordi
23127         * ScrollBar.cs: small bug fix regarding bar position
23129 2004-08-25 12:33  pbartok
23131         * Timer.cs:
23132           - Now only calls SetTimer or KillTimer if the enabled state has
23133           changed
23135 2004-08-25 12:33  pbartok
23137         * XplatUIWin32.cs:
23138           - Fixed timer handling, now seems to work
23139           - Improved error message for window creation
23141 2004-08-25 12:32  pbartok
23143         * Control.cs:
23144           - Fixed generation of MouseUp message
23146 2004-08-25 12:29  jordi
23148         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
23149           and fixes for progressbar
23151 2004-08-24 18:43  ravindra
23153         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
23154           in ToolBar control.
23156 2004-08-24 17:15  pbartok
23158         * Panel.cs:
23159           - Added #region
23160           - Added missing events
23161           - Alphabetized
23163 2004-08-24 17:14  pbartok
23165         * StatusBar.cs, PictureBox.cs:
23166           - Now uses Control's CreateParams
23168 2004-08-24 16:36  pbartok
23170         * XplatUIX11.cs:
23171           - Fixed background color handling
23172           - Fixed sending of enter/leave events on a grab
23174 2004-08-24 16:35  pbartok
23176         * X11Structs.cs:
23177           - Refined definitions for CrossingEvent
23179 2004-08-24 12:37  jordi
23181         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
23182           formmating, methods signature, and adds missing events
23184 2004-08-24 12:24  jordi
23186         * Control.cs: fire OnEnabledChanged event
23188 2004-08-24 11:17  pbartok
23190         * XplatUIWin32.cs:
23191           - Implemented SetTimer() and KillTimer()
23193 2004-08-24 11:16  pbartok
23195         * XplatUIX11.cs:
23196           - Now uses Remove instead of Add to kill the timer
23198 2004-08-24 10:16  jackson
23200         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
23201           picture boxes in the theme now. Draw picture box borders and obey
23202           sizing modes
23204 2004-08-24 05:49  jackson
23206         * Timer.cs: Remove top secret debugging code
23208 2004-08-24 05:34  jackson
23210         * PictureBox.cs: Temp hack to make picture boxes draw their full
23211           image
23213 2004-08-24 05:29  jackson
23215         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
23216           XplatUIX11.cs: Move timers to the driver level. On X they are
23217           queued by the driver and checked on idle.
23219 2004-08-24 01:07  jackson
23221         * XplatUIX11.cs: Use a queue for async messages instead of passing
23222           them as ClientMessages since that was totally broken. Also simply
23223           check for events and return an idle message if none are found. This
23224           gives us an idle handler, and prevents deadlocking when no messages
23225           are in the queue.
23227 2004-08-23 18:19  ravindra
23229         * XplatUIWin32.cs: Removed the unwanted destructor.
23231 2004-08-23 17:27  pbartok
23233         * ButtonBase.cs:
23234           - Finishing touches. Works now, just needs some optimizations.
23236 2004-08-23 16:53  jordi
23238         * ScrollBar.cs: small fix
23240 2004-08-23 16:45  pbartok
23242         * Application.cs:
23243           - Removed debug output
23244           - Simplifications
23246 2004-08-23 16:43  jordi
23248         * ScrollBar.cs: [no log message]
23250 2004-08-23 16:10  pbartok
23252         * Form.cs:
23253           - Fixed handling of WM_CLOSE message
23254           - Removed debug output
23256 2004-08-23 16:09  pbartok
23258         * Application.cs:
23259           - Added handling of Idle event
23260           - Added handling of form closing
23261           - Fixed reporting of MessageLoop property
23262           - Removed some unneeded code, should provide a bit of a speedup
23264 2004-08-23 15:22  pbartok
23266         * Control.cs:
23267           - Added InitLayout() method
23268           - Added code to properly perform layout when Anchor or Dock property
23269             is changed
23270           - Changed 'interpretation' of ResumeLayout. MS seems to have a
23271             LAMESPEC, tried to do it in a way that makes sense
23273 2004-08-23 14:10  jordi
23275         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
23276           properties and methods
23278 2004-08-23 13:55  pbartok
23280         * Control.cs:
23281           - Properly fixed Jordi's last fix
23282           - Now uses Cursor's Position property instead of calling XplatUI
23283           directly
23285 2004-08-23 13:44  jordi
23287         * PaintEventHandler.cs: Adding missing attribute
23289 2004-08-23 13:39  pbartok
23291         * Cursor.cs:
23292           - Implemented Position property
23294 2004-08-23 13:39  pbartok
23296         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
23297           - Added method to move mouse cursor
23299 2004-08-23 13:39  pbartok
23301         * XplatUIX11.cs:
23302           - Fixed setting of background color
23303           - Added method to move mouse cursor
23305 2004-08-23 13:16  jordi
23307         * Control.cs: avoids null exception
23309 2004-08-22 17:46  jackson
23311         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
23312           PictureBox
23314 2004-08-22 17:40  jackson
23316         * XplatUIX11.cs: Add some missing locks
23318 2004-08-22 15:10  pbartok
23320         * Control.cs, Form.cs:
23321           - Removed OverlappedWindow style from Control, instead it's default
23322             now is child
23323           - Made form windows OverlappedWindow by default
23325 2004-08-22 13:34  jackson
23327         * ScrollBar.cs: Update the position through the Value property so
23328           the OnValueChanged event is raised.
23330 2004-08-22 12:04  pbartok
23332         * SWF.csproj:
23333           - Added Cursor.cs and UserControl.cs
23335 2004-08-22 12:03  pbartok
23337         * Cursor.cs:
23338           - Started implementation, not usable yet
23340 2004-08-22 12:00  pbartok
23342         * UserControl.cs:
23343           - Implemented UserControl (complete)
23345 2004-08-21 19:20  ravindra
23347         * ToolBar.cs: Correcting the formatting mess of VS.NET.
23349 2004-08-21 18:49  ravindra
23351         * ToolBar.cs: Probably this completes the missing attributes in
23352           toolbar control.
23354 2004-08-21 18:03  ravindra
23356         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
23357           Fixed toolbar control signatures.
23359 2004-08-21 16:32  pbartok
23361         * LinkLabel.cs:
23362           - Signature Fixes
23364 2004-08-21 16:30  pbartok
23366         * Label.cs:
23367           - Signature fixes
23369 2004-08-21 16:19  pbartok
23371         * Control.cs, Label.cs:
23372           - Signature fixes
23374 2004-08-21 15:57  pbartok
23376         * ButtonBase.cs:
23377           - Added loads of debug output for development
23378           - Fixed typo in method name
23380 2004-08-21 15:52  pbartok
23382         * ToolBarButtonClickEventArgs.cs:
23383           - Added missing base class
23385 2004-08-21 14:53  pbartok
23387         * Control.cs:
23388           - Updated to match new GrabWindow signature
23390 2004-08-21 14:51  pbartok
23392         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
23393           - Added method to get default display size
23395 2004-08-21 14:23  pbartok
23397         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
23398           - Added method to query current grab state
23399           - Added argument to allow confining a grab to a window
23401 2004-08-21 14:22  pbartok
23403         * Keys.cs:
23404           - Added [Flags] attribute so that modifiers can be used in bitwise
23405           ops
23407 2004-08-21 14:21  pbartok
23409         * TrackBar.cs, ScrollBar.cs:
23410           - Replaced direct XplatUI calls with their Control counterpart
23412 2004-08-21 13:32  pbartok
23414         * Control.cs:
23415           - Implemented Created property
23417 2004-08-21 13:28  pbartok
23419         * Control.cs:
23420           - Implemented ContainsFocus
23422 2004-08-21 13:26  pbartok
23424         * Control.cs:
23425           - Implemented CausesValidation
23427 2004-08-21 13:21  pbartok
23429         * Control.cs:
23430           - Implemented CanFocus
23431           - Implemented CanSelect
23432           - Implemented Capture
23434 2004-08-21 12:35  pbartok
23436         * XplatUIWin32.cs:
23437           - Fixed bug with Async message handling
23438           - Implemented getting the ModifierKeys
23440 2004-08-21 12:32  jackson
23442         * AsyncMethodResult.cs: Make sure we have the mutex before we
23443           release it. Fixes BeginInvoke on windows
23445 2004-08-21 11:31  pbartok
23447         * XplatUIWin32.cs, XplatUIX11.cs:
23448           - Drivers now return proper mouse state
23450 2004-08-21 10:54  jackson
23452         * Control.cs: Implement EndInvoke
23454 2004-08-21 10:48  jackson
23456         * Timer.cs: Remove unneeded finalizer
23458 2004-08-20 19:52  ravindra
23460         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
23461           in mouse event handling in the ToolBar control.
23463 2004-08-20 19:50  ravindra
23465         * ImageList.cs: Changed draw method to use the arguments passed in
23466           to draw the image.
23468 2004-08-20 18:58  pbartok
23470         * XplatUIStructs.cs:
23471           - Added private message for async communication
23473 2004-08-20 17:38  ravindra
23475         * Control.cs: Made RightToLeft property virtual and removed a
23476           Console.WriteLine.
23478 2004-08-20 14:39  jordi
23480         * ThemeGtk.cs: use style_attach
23482 2004-08-20 14:39  pbartok
23484         * XplatUIWin32.cs:
23485           - Added jackson's Async code from X11 to Win32
23487 2004-08-20 14:09  pbartok
23489         * SWF.csproj:
23490           - Added all new files
23492 2004-08-20 14:09  pbartok
23494         * Control.cs:
23495           - Added call to set window background color
23497 2004-08-20 14:03  pbartok
23499         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
23500           - Added method for setting the window background
23502 2004-08-20 14:02  pbartok
23504         * XplatUIWin32.cs:
23505           - Added method for setting the background color
23506           - Added handling for erasing the window background
23508 2004-08-20 13:45  jordi
23510         * TrackBar.cs: fixes timer, new properties and methods
23512 2004-08-20 13:34  jackson
23514         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
23515           correct thread
23517 2004-08-20 13:22  jackson
23519         * Timer.cs: Timer Tick events are now handed through Controls Async
23520           mechanism so the callbacks are executed in the same thread as X
23522 2004-08-20 13:19  jackson
23524         * XplatUIDriver.cs: Expose functionality to send async messages
23525           through the driver
23527 2004-08-20 13:18  jackson
23529         * Control.cs: Implement Begininvoke
23531 2004-08-20 13:14  jackson
23533         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
23534           messages through the driver
23536 2004-08-20 13:12  jackson
23538         * XplatUIX11.cs: Lock before all X operations. Also added Async
23539           method functionality through XSendEvent
23541 2004-08-20 13:11  jackson
23543         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
23544           This will screw up on 64 bit systems)
23546 2004-08-20 13:10  jackson
23548         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
23549           Async messages through X/Win32
23551 2004-08-19 19:39  pbartok
23553         * XplatUIX11.cs:
23554           - Updated code to match new HandleData.DeviceContext type
23556 2004-08-19 19:38  pbartok
23558         * HandleData.cs:
23559           - Made DeviceContext a generic object to allow usage from various
23560           drivers
23561           - Added support for queueing Windows messages
23563 2004-08-19 19:37  pbartok
23565         * XplatUIWin32.cs:
23566           - Added generation of MouseEnter, MouseLeave and MouseHover events
23567           - Added cleanup on EndPaint
23569 2004-08-19 19:17  pbartok
23571         * Control.cs:
23572           - Added handling of WM_MOUSEHOVER
23573           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
23574           code
23576 2004-08-19 18:55  jordi
23578         * ThemeGtk.cs: fixes button order
23580 2004-08-19 18:12  jordi
23582         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
23584 2004-08-19 17:09  pbartok
23586         * Control.cs:
23587           - Added Right property
23588           - Added RightToLeft property
23590 2004-08-19 16:27  jordi
23592         * ThemeGtk.cs: experimental GTK theme support
23594 2004-08-19 16:26  jordi
23596         * ITheme.cs, Theme.cs: move themes from an interface to a class
23598 2004-08-19 16:25  jordi
23600         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
23601           theme enhancaments
23603 2004-08-19 16:04  pbartok
23605         * XplatUIX11.cs:
23606           - Added colormap basics
23607           - Added a way to re-initialize with a different display handle
23608           - Fixed setting of the window background color
23609           - Added various X11 imports related to colors and colormaps
23611 2004-08-19 15:51  pbartok
23613         * X11Structs.cs:
23614           - Removed packing hints (Paolo suggested this a while back)
23615           - fixed colormap type
23616           - Added default Atom types
23617           - Added Screen and color structs and enums
23619 2004-08-19 15:39  pbartok
23621         * ImageList.cs:
23622           - Added missing Draw() method
23623           - Added missing RecreateHandle event
23625 2004-08-19 15:30  pbartok
23627         * Form.cs:
23628           - Added handling of WM_CLOSE
23630 2004-08-18 13:16  jordi
23632         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
23633           a table
23635 2004-08-18 09:56  jordi
23637         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
23639 2004-08-17 15:31  ravindra
23641         * SWF.csproj: Updated project.
23643 2004-08-17 15:25  pbartok
23645         * Control.cs:
23646           - Drawing improvement; don't call UpdateBounds if we are not visible
23647             (or have been minimized)
23649 2004-08-17 15:24  pbartok
23651         * XplatUIWin32.cs:
23652           - Finished IsVisible
23653           - Added Win32GetWindowPlacement
23655 2004-08-17 15:08  jackson
23657         * Panel.cs: Initial checkin of the Panel
23659 2004-08-17 14:25  pbartok
23661         * Control.cs:
23662           - Fixed broken handling of default window sizes
23664 2004-08-17 13:29  jackson
23666         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
23667           has a large startup time.
23669 2004-08-17 10:25  jackson
23671         * HandleData.cs: union areas properly
23673 2004-08-17 10:12  jackson
23675         * HandleData.cs: union areas properly
23677 2004-08-16 20:00  ravindra
23679         * ToolBar.cs, ToolBarButton.cs: Added attributes.
23681 2004-08-16 18:48  ravindra
23683         * ToolBar.cs: Added attributes.
23685 2004-08-16 17:17  ravindra
23687         * SWF.csproj: Updated project.
23689 2004-08-16 17:16  jackson
23691         * XplatUIX11.cs: Check for more expose events before sending a
23692           WM_PAINT so they can all be grouped together. This makes dragging a
23693           window across another window redraw in a sane way.
23695 2004-08-16 15:47  pbartok
23697         * Control.cs:
23698           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
23699             support OnMouseEnter/Leave()
23700           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
23701             exposure handling
23703 2004-08-16 15:46  pbartok
23705         * XplatUIStructs.cs, XplatUIX11.cs:
23706           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
23707           OnMouseEnter/Leave()
23709 2004-08-16 15:34  jackson
23711         * XplatUIX11.cs: Group multiple expose events in HandleData, make
23712           sure messages get the message field set to WM_NULL if they are not
23713           handled.
23715 2004-08-16 15:24  jackson
23717         * HandleData.cs: HandleData is used for storing message information
23718           for window handles
23720 2004-08-15 17:23  ravindra
23722         * ColorDepth.cs: Added attribute.
23724 2004-08-15 17:23  ravindra
23726         * SWF.csproj: Updated project for ToolBar Control.
23728 2004-08-15 17:20  ravindra
23730         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
23731           control and also dos2unix format.
23733 2004-08-15 17:13  ravindra
23735         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
23736           ToolBarButtonClickEventArgs.cs,
23737           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
23738           ToolBarTextAlign.cs: First Implementation of ToolBar control.
23740 2004-08-15 15:31  pbartok
23742         * ButtonBase.cs:
23743           - First (mostly) working version
23745 2004-08-13 16:15  pbartok
23747         * Control.cs:
23748           - Fixed Anchor default
23750 2004-08-13 15:43  pbartok
23752         * Control.cs:
23753           - Changed GetCursorPos signature
23755 2004-08-13 15:42  pbartok
23757         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
23758           - Changed signature for GetCursorPos
23760 2004-08-13 15:25  pbartok
23762         * XplatUIX11.cs:
23763           - Cleanup
23764           - Fixed resizing/exposure handling
23766 2004-08-13 15:22  jordi
23768         * ThemeWin32Classic.cs: removes redundant code and fixes issues
23769           with tickposition
23771 2004-08-13 14:55  jordi
23773         * TrackBar.cs: change from wndproc to events
23775 2004-08-13 13:00  jordi
23777         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
23778           XplatUIX11.cs: implements PointToClient (ScreenToClient)
23780 2004-08-13 12:53  pbartok
23782         * XplatUIWin32.cs:
23783           - Changed GetWindowPos to also provide client area size
23784           - Fixed broken prototypes for several win32 functions
23786 2004-08-13 12:53  pbartok
23788         * XplatUI.cs, XplatUIDriver.cs:
23789           - Changed GetWindowPos to also provide client area size
23791 2004-08-13 12:52  pbartok
23793         * XplatUIX11.cs:
23794           - Added generation of WM_POSCHANGED
23795           - Changed GetWindowPos to also provide client area size
23797 2004-08-13 12:52  pbartok
23799         * Control.cs:
23800           - Added Dispose() and destructor
23801           - Fixed resizing and bounds calculation
23802           - Fixed Layout
23803           - Added memory savings for invisible windows
23805 2004-08-13 12:46  jordi
23807         * TrackBar.cs: adds timer and grap window
23809 2004-08-13 10:25  jackson
23811         * Timer.cs: SWF Timer
23813 2004-08-12 16:59  pbartok
23815         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
23816           - Implemented method to get current mouse position
23818 2004-08-12 14:29  jordi
23820         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
23821           enhancement, fix mouse problems, highli thumb, etc
23823 2004-08-12 13:31  pbartok
23825         * Control.cs:
23826           - Fixed Anchoring bugs
23828 2004-08-12 13:01  jackson
23830         * StatusBar.cs: Don't forget things
23832 2004-08-12 12:54  jackson
23834         * ThemeWin32Classic.cs: Handle owner draw status bars
23836 2004-08-12 12:54  jackson
23838         * StatusBar.cs: Implement missing properties, events, and methods.
23839           Handle mouse clicking
23841 2004-08-12 10:19  jackson
23843         * StatusBarPanelClickEventArgs.cs,
23844           StatusBarPanelClickEventHandler.cs: Classes for handling status
23845           bar panel click events
23847 2004-08-12 10:10  jackson
23849         * Control.cs: Add missing properties
23851 2004-08-12 09:46  pbartok
23853         * BindingsManagerBase.cs:
23854           - Name changed to BindingManagerBase.cs
23856 2004-08-12 09:25  jordi
23858         * ScrollableControl.cs: calls ctrlbase instead of exeception
23860 2004-08-11 16:28  pbartok
23862         * InputLanguageChangingEventArgs.cs:
23863           - Never check in before compiling. Fixes the last check-in
23865 2004-08-11 16:26  pbartok
23867         * InputLanguageChangingEventArgs.cs:
23868           - More signature fixes
23870 2004-08-11 16:20  pbartok
23872         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
23873           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
23874           ImageListStreamer.cs, InputLanguage.cs,
23875           InputLanguageChangedEventArgs.cs,
23876           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
23877           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
23878           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
23879           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
23880           - Signature fixes
23882 2004-08-11 16:16  pbartok
23884         * Application.cs:
23885           - Fixed Signature
23886           - Added .Net 1.1 method
23888 2004-08-11 15:25  pbartok
23890         * SWF.csproj:
23891           - Fixed BindingManagerBase.cs filename
23893 2004-08-11 15:22  pbartok
23895         * BindingManagerBase.cs:
23896           - Was checked in with wrong filename
23898 2004-08-11 14:50  pbartok
23900         * SWF.csproj:
23901           - Updated
23903 2004-08-11 13:41  jordi
23905         * XplatUIWin32.cs: Fixes ClientRect
23907 2004-08-11 13:19  pbartok
23909         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
23910           XplatUIX11.cs:
23911           - We had SetWindowPos and MoveWindow to set window positions and
23912             size, removed MoveWindow. We have GetWindowPos, so it made sense to
23913             keep SetWindowPos as matching counterpart
23914           - Added some X11 sanity checking
23916 2004-08-11 12:59  pbartok
23918         * Control.cs:
23919           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
23920             (It seems that SetBounds is just a front for SetBoundsCore and
23921              SetBoundsCore updates the underlying window system and
23922              UpdateBounds is responsible for updating the variables associated
23923              with the Control and sending the events)
23924           - Major cleanup of Size handling; we now have two sizes, client_size
23925             and bounds. Bounds defines the window with decorations, client_size
23926             without them.
23928 2004-08-11 12:55  pbartok
23930         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
23931           - Added method to calculate difference between decorated window and
23932             raw client area
23934 2004-08-11 12:54  pbartok
23936         * Label.cs:
23937           - Forcing redraw on resize
23939 2004-08-11 11:43  pbartok
23941         * ImageList.cs:
23942           - Removed disposing of the actual images when the list is disposed
23944 2004-08-11 09:13  pbartok
23946         * Control.cs:
23947           - Now properly reparents windows
23949 2004-08-11 08:37  pbartok
23951         * Control.cs:
23952           - Duh!
23954 2004-08-11 07:47  pbartok
23956         * Control.cs:
23957           - Rewrote the collection stuff. Might not be as fast now, not
23958             keeping the number of children around and accessible directly, but
23959             it's more straightforward
23961 2004-08-11 07:44  pbartok
23963         * AccessibleObject.cs:
23964           - Fixed to match ControlCollection rewrite
23966 2004-08-11 07:43  pbartok
23968         * ImageList.cs:
23969           - Added missing creation of the collection list
23971 2004-08-10 20:08  jackson
23973         * StatusBar.cs: Get the paint message from WndProc
23975 2004-08-10 19:31  jackson
23977         * ThemeWin32Classic.cs: Create Brushes as little as possible
23979 2004-08-10 19:20  jackson
23981         * UICues.cs: Add Flags attribute
23983 2004-08-10 19:19  jackson
23985         * StatusBarPanel.cs: Signature cleanup
23987 2004-08-10 19:10  jackson
23989         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
23990           Initial implementation of status bar item drawing
23992 2004-08-10 17:27  jordi
23994         * TrackBar.cs: add missing methods, properties, and restructure to
23995           hide extra ones
23997 2004-08-10 16:24  jackson
23999         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
24000           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
24001           attribute
24003 2004-08-10 13:21  jordi
24005         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
24006           enhancements and standarize on win colors defaults
24008 2004-08-10 12:52  jackson
24010         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
24011           ThemeWin32Classic.cs: Implement DrawItem functionality
24013 2004-08-10 12:47  jordi
24015         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
24017 2004-08-10 12:32  jordi
24019         * Control.cs: throw ontextchange event
24021 2004-08-10 11:43  pbartok
24023         * Control.cs:
24024           - Added more to the still unfinished Dock/Anchor layout code
24026 2004-08-10 11:39  pbartok
24028         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
24029           - Added GetWindowPos method
24031 2004-08-10 11:36  pbartok
24033         * XplatUIWin32.cs:
24034           - Implemented several methods
24036 2004-08-10 09:47  jackson
24038         * TrackBar.cs: Allow control to handle buffering
24040 2004-08-10 09:41  jackson
24042         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
24044 2004-08-10 09:24  jackson
24046         * Label.cs, LinkLabel.cs: Let Control handle buffering.
24048 2004-08-10 09:09  jackson
24050         * StatusBar.cs: Let Control handle all the buffering.
24052 2004-08-10 09:08  jackson
24054         * Control.cs: Control will now handle the buffering code, so each
24055           control does not have to implement this.
24057 2004-08-10 08:34  jackson
24059         * XplatUIDriver.cs: Use default colors from the theme
24061 2004-08-09 17:12  pbartok
24063         * ImageList.cs:
24064           - Fixed several bugs Ravindra pointed out
24066 2004-08-09 16:11  pbartok
24068         * Control.cs:
24069           - Added incomplete dock layout code
24070           - Added support for mouse wheel
24072 2004-08-09 16:09  pbartok
24074         * XplatUIX11.cs:
24075           - Added handling for middle and right mousebutton
24076           - Added handling for mouse wheel
24077           - Added handling for key state and mouse state and position
24078           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
24079           messages
24081 2004-08-09 15:40  jackson
24083         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
24084           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
24085           checkin
24087 2004-08-09 15:37  jackson
24089         * StatusBar.cs: Initial implementation of StatusBar
24091 2004-08-09 15:36  jackson
24093         * ITheme.cs: Add support for drawing status bar and getting status
24094           bar item sizes
24096 2004-08-09 15:35  pbartok
24098         * MouseButtons.cs:
24099           - Fixed values
24101 2004-08-09 15:34  jackson
24103         * ThemeWin32Classic.cs: Add support for drawing status bar and get
24104           status bar item sizes
24106 2004-08-09 15:21  jackson
24108         * ThemeWin32Classic.cs: Use known colors for default control
24109           colours
24111 2004-08-09 15:12  jackson
24113         * ThemeWin32Classic.cs: Make the default font static, it is static
24114           in control so this doesn't change functionality and creating fonts
24115           is sloooooow.
24117 2004-08-09 14:56  pbartok
24119         * X11Structs.cs:
24120           - Added GrabMode enum
24122 2004-08-09 14:55  pbartok
24124         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
24125           - Removed Run method, was only required for initial development
24127 2004-08-09 14:51  pbartok
24129         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
24130           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
24131           capture
24133 2004-08-09 13:48  pbartok
24135         * XplatUIX11.cs:
24136           - Fixed default sizing for child windows
24138 2004-08-09 12:56  pbartok
24140         * XplatUIX11.cs:
24141           - Added generation of WM_DESTROY message
24142           - Added handling of window manager induced shutdown
24144 2004-08-09 11:31  jackson
24146         * ThemeWin32Classic.cs: New names for control properties
24148 2004-08-09 11:25  jackson
24150         * Control.cs: Use new color names
24152 2004-08-09 11:02  jackson
24154         * XplatUI.cs: Get default window properties from the theme
24156 2004-08-09 11:01  jackson
24158         * ITheme.cs: The theme engine now controls default window
24159           properties
24161 2004-08-09 11:00  jackson
24163         * ThemeWin32Classic.cs: Add default window color properties
24165 2004-08-09 10:17  jackson
24167         * ThemeWin32Classic.cs: Use correct default back color
24169 2004-08-09 10:05  jackson
24171         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
24172           the theme now.
24174 2004-08-09 09:56  jackson
24176         * XplatUI.cs: Remove defaults, these are handled by the theme now.
24178 2004-08-09 09:54  jackson
24180         * Control.cs: Get default properties from the theme.
24182 2004-08-09 09:53  jackson
24184         * ITheme.cs: Themes now handle default control properties
24186 2004-08-09 09:53  jackson
24188         * ThemeWin32Classic.cs: Themes now handle default control
24189           properties so coloring will be consistent
24191 2004-08-08 16:54  jordi
24193         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
24195 2004-08-08 15:08  jordi
24197         * XplatUIX11.cs: fixes keyboard crash
24199 2004-08-08 13:47  jordi
24201         * Label.cs: add cvs header info
24203 2004-08-08 12:09  jackson
24205         * ThemeWin32Classic.cs: Add pen_buttonface
24207 2004-08-08 11:52  jordi
24209         * Label.cs, LinkLabel.cs: [no log message]
24211 2004-08-08 11:34  jordi
24213         * ThemeWin32Classic.cs: Use Windows Standard Colours
24215 2004-08-07 17:32  jordi
24217         * TrackBar.cs: throw exceptions of invalid enums values
24219 2004-08-07 17:31  jordi
24221         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
24222           draw method name
24224 2004-08-07 16:56  jackson
24226         * HorizontalAlignment.cs: Initial checkin
24228 2004-08-07 13:16  jordi
24230         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
24231           methods
24233 2004-08-07 13:05  jordi
24235         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
24236           GetSysColor defines
24238 2004-08-06 18:01  pbartok
24240         * ThemeWin32Classic.cs:
24241           - Fixed some rounding issues with float/int
24243 2004-08-06 18:00  jackson
24245         * DockStyle.cs, AnchorStyles.cs:
24247                   Add flags and serializable attributes.
24249 2004-08-06 17:46  pbartok
24251         * XplatUIX11.cs:
24252           - Implemented GetParent
24254 2004-08-06 17:18  pbartok
24256         * TrackBar.cs:
24257           - Fixed some rounding issues with float/int
24259 2004-08-06 17:17  pbartok
24261         * X11Structs.cs, XplatUIX11.cs:
24262           - Fixed Refresh and Invalidate
24264 2004-08-06 15:30  pbartok
24266         * Control.cs, X11Structs.cs, XplatUIX11.cs:
24267           - Fixed recursive loop when resizing
24268           - Improved/fixed redrawing on expose messages
24270 2004-08-06 09:53  jordi
24272         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
24273           keyboard navigation
24275 2004-08-06 08:02  pbartok
24277         * X11Structs.cs, XplatUIX11.cs:
24278           - Fixed reparenting
24279           - Fixed window border creation
24281 2004-08-05 15:38  pbartok
24283         * XplatUIX11.cs:
24284           - Attempted fix for reparenting problems
24286 2004-08-04 15:14  pbartok
24288         * Control.cs:
24289           - Fixed Invalidation bug (calculated wrong client area)
24290           - Added ClientSize setter
24292 2004-08-04 15:13  pbartok
24294         * Form.cs:
24295           - Added AutoScale properties
24297 2004-08-04 15:13  pbartok
24299         * SWF.csproj:
24300           - Added latest files
24302 2004-08-04 14:11  pbartok
24304         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
24305           XplatUIX11.cs:
24306           - Added Invalidate handling
24308 2004-08-03 17:09  jordi
24310         * XplatUIDriver.cs: fixes spelling mistake
24312 2004-07-27 09:53  jordi
24314         * TrackBar.cs: fixes trackbar events, def classname, methods
24315           signature
24317 2004-07-27 09:29  jordi
24319         * ScrollBar.cs: fixes scrollbar events
24321 2004-07-27 04:38  jordi
24323         * Control.cs: changes to be able to run winforms samples
24325 2004-07-26 11:42  jordi
24327         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
24328           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
24330 2004-07-26 05:41  jordi
24332         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
24333           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
24334           implementation
24336 2004-07-22 09:22  jordi
24338         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
24339           check link overlapping, implement events, and fixes
24341 2004-07-21 10:28  jordi
24343         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
24345 2004-07-21 10:19  jordi
24347         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
24348           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
24349           LinkLabelLinkClickedEventArgs.cs,
24350           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
24351           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
24352           implementation
24354 2004-07-19 13:09  jordi
24356         * Control.cs, Label.cs: label control re-written: added missing
24357           functionlity, events, and properties
24359 2004-07-19 10:49  jordi
24361         * Control.cs: fixes SetBounds logic
24363 2004-07-19 01:29  jordi
24365         * Control.cs: Call RefreshWindow only if the window has created
24367 2004-07-15 14:05  pbartok
24369         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
24370           - Implemented ImageList and ImageList.ImageCollection classes
24371           - Added ColorDepth enumeration
24372           - Updated SWF VS.Net project
24374 2004-07-15 11:06  jordi
24376         * XplatUIStructs.cs: added MsgButons enum
24378 2004-07-15 11:03  jordi
24380         * Control.cs: added basic mouse handeling events
24382 2004-07-15 03:38  jordi
24384         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
24385           Vertical TrackBar control implementation
24387 2004-07-13 09:33  jordi
24389         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
24391 2004-07-13 09:31  jordi
24393         * Control.cs, Form.cs: commit: new properties and fixes form size
24394           problems
24396 2004-07-09 14:13  miguel
24398         * ProgressBar.cs: Spelling
24400 2004-07-09 11:25  pbartok
24402         * ProgressBar.cs:
24403           - Removed usage of Rectangle for drawing. Miguel pointed out it's
24404           faster
24406 2004-07-09 11:17  miguel
24408         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
24410                 * ProgressBar.cs: Fixed spelling for `block'
24412                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
24413                 style guidelines.
24415                 Avoid using the += on rect.X, that exposed a bug in the compiler.
24417 2004-07-08 23:21  pbartok
24419         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
24420           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
24421           BaseCollection.cs, Binding.cs, BindingContext.cs,
24422           BindingMemberInfo.cs, BindingsCollection.cs,
24423           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
24424           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
24425           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
24426           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
24427           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
24428           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
24429           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
24430           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
24431           FrameStyle.cs, GiveFeedbackEventArgs.cs,
24432           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
24433           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
24434           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
24435           InputLanguageChangedEventArgs.cs,
24436           InputLanguageChangedEventHandler.cs,
24437           InputLanguageChangingEventArgs.cs,
24438           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
24439           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
24440           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
24441           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
24442           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
24443           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
24444           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
24445           QueryAccessibilityHelpEventArgs.cs,
24446           QueryAccessibilityHelpEventHandler.cs,
24447           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
24448           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
24449           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
24450           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
24451           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
24452           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
24453           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
24454           XplatUIX11.cs, lang.cs:
24455           - Initial check-in