In .:
[mono-project.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
blobcb72c603f694dadcf5511e3d68c74a9788133dc6
1 2008-01-22 Geoff Norton  <gnorton@novell.com>
3         * Mime.cs:  Avoid a needles exception on OSX if we dont have a buffer
4         acquired.  Also ensure the buffer is large enough to grab the header
5         we need on linux boxes.
7 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
9         * Control.cs: Implement a custom enumerator so people can delete
10         from the Controls collection while in a foreach.
11         [Fixes bug #355074]
13 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
15          * PropertyGridView.cs: Fix focusing behavior:
16          - Tab should focus the grid text box.
17          - Clicking on the labels shouldn't focus the grid text box.
19 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
21          * PropertyGridView.cs: IsValueTypeGridItem should return true 
22          for Arrays as well.
24 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
26          * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
27           - Renamed GridEntry.SelectedObjects to TargetObjects to better
28           reflect the property name role.
29           - PropertyGrid.GetTarget is not required as the target is known
30           (TargetObjects).
31           - Setting values will handle value types as a special case now and
32           populate them up in the chain.
33           [Fixes #354990]
35 2008-01-21  Jonathan Pobst  <monkey@jpobst.com>
37         * Hwnd.cs: Create a public property for the Graphics we keep around.
39 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
41          * PropertyGridView.cs: Just hide the grid textbox and do nothing more 
42          when the current object selection changes. 
43          Fixes failing test SelectedObject_Null2.B5.
45 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
47          * PropertyGrid.cs: Process Browsable properties with 
48          DesignerSerializationVisibilityAttribute.Content as being expandable.
49          This seems also what MS does. Without this e.g SplitContainer.Panel1/2
50          will not be expandable. We should be nested components-friendly now.
52 2008-01-21  Andreia Gaita <avidigal@novell.com>
54         * WebBrowserBase.cs: Check if control was loaded properly, 
55         don't bind if it wasn't.
57         * HtmlDocument.cs: Implement CreateElement, Equals, Focus, 
58         GetElementFromPoint, equality operators, OpenNew, Write.
59         Remove extra set_Body
61 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
63         * ContainerControl.cs, Control.cs: Apply patch from James Purcell
64         that makes our AutoScale* stuff more tolerant to different orders
65         of being set.  [Fixes bug #354669]
67 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
69          * PropertyGridView.cs, PropertyGridTextBox.cs: 
70          Drop WM_LBUTTONDOWN msg sending and use focusing instead.
71          [Fixes #339005 and #348209]
73 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
75          * PropertyGridView.cs: Hide the grid text box before adjusting it
76          for the newly selected GridItem.
77          [Fixes #338999]
79 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
81         * Form.cs: Give MDI children the opportunity to cancel the parent form
82         attempting to close.  Ensure that all [Form]Clos[ing,ed] events get called
83         properly for both the parent and child.
84         * Application.cs: Signature of internal method changed, pass the previous
85         default of false.
86         [Fixes bug #354286]
88 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
90         * PropertyGridView.cs: Set the property value only if it has changed.
91         [Fixes bug #338997]
93 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
95         * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
96         If the mouse hasn't actually moved, ignore these messages so the currently
97         highlighted menuitem isn't reset to the one under the mouse.
98         [Fixes bug #333668]
100 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
102         * PropertyGridView.cs: When the property changes Invalidate the GridItem
103         in order for the properties with UITypeEditor.GetPaintValueSupported == true
104         to reflect the change visually.
105         [Fixes bug #338998]
107 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
109         * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
110         to 2.0 button drawing.
111         * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw 
112         the button text is tall enough for one line.  LineLimit says it will
113         always draw at least one line, but it is a lie.
114         [Fixes bug #324941]
116 2008-01-17  Atsushi Enomoto  <atsushi@ximian.com>
118         * XplatUIStructs.cs, X11Keyboard.cs :
119           added some more VK_* keys to be handled.
121 2008-01-16  Andreia Gaita <avidigal@novell.com>
123         * Control.cs: Check if there is a container before setting or getting
124         the validation flag.
126 2008-01-16  Andreia Gaita <avidigal@novell.com>
128         * ContainerControl.cs: Add flag to track if a control cancels validation, 
129         so we don't fire click events.
131         * Control.cs: 
132         - (HandleClick) Check if validation was cancelled before  firing the click
133         events (doubleclicks are fired, but not clicks)
134         - (WmLButtonDown) Reset validation flag. The flag is normally reset on 
135         ContainerControl.set_ActiveControl, but in the case of non-selectable
136         controls, like a Label, activecontrol is not set. 
138         * ButtonBase.cs: Only fire clicks if validation passes.
139         
140         Fixes #353310
142 2008-01-16  Geoff Norton  <gnorton@novell.com>
144         * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
145         trunk
147 2008-01-16  Jonathan Pobst  <monkey@jpobst.com>
149         * FolderBrowserDialog.cs: If we cannot interpret the user's requested
150         SelectedPath, just display the default dialog instead of crashing.
151         [Fixes bug #348989]
153 2008-01-16  Geoff Norton  <gnorton@novell.com>
155         * XplatUICarbon.cs:  Flicker be gone!  Generate our messages in
156         AddExpose instead of trusting apples compositing manager which doesn't
157         work for our use case.  Remove some dead code causing warnings and 
158         redecorate some other code to prevent warnings.
160 2008-01-16  Geoff Norton  <gnorton@novell.com>
162         * XplatUICarbon.cs:  Avoid some unecessary invalidation calls when
163         carbon signals us to redraw.  Fixes another portion of the flickering bug
165 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
167         * Form.cs: Prevent the MdiParent property to be set when value is the same
168         as value already set. Fixes bug #328019.
170 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
172         * Form.cs: Don't set mdi_parent as null when mdi window close is prevented, 
173         it prevents NRE when closing mdi child windows. Fixes bug #325211.
175 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
177         * InternalWindowManager.cs: Invalidade close button after mouse up when 
178         mdi form is prevented to close.
180 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
182         * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
183         thanks to Andy Hume. Fixes bug #325433.
185 2008-01-16  Andreia Gaita <avidigal@novell.com>
187         * LinkLabel.cs: Reset focused_index when resellecting the control.
188         Fixes #323190
190 2008-01-15  Geoff Norton  <gnorton@novell.com>
192         * XplatUICarbon.cs:  Rework Grab/Ungrab handling to send some needed 
193         messages.
195 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
197         * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
198         of truncate.
200 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
202         * ContainerControl.cs: Setting AutoScaleMode to anything should set
203         Form.AutoScale to false.
204         * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
205         AutoScaleBaseSize should be changed on Font change unless it has been
206         explicitly set.
207         [Fixes bug #353827]
209 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
211         * MenuAPI.cs: On instance of MenuTracker check if source control is
212         ToolStripOverflow and use properly method to find form.
213         [Fixes bug #338511]
215 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
217         [Fixes bug #323241 Transparent toolbar support]
219         * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
220         is flat.
222         * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
223         defined in control style to mimic win32 behavior.
225         * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar, 
226         it will be transparent.
228 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
230         * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
231         CreateParams for ToolBar controls.
233 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
235         * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
236         FixedToolWindow, SizeableToolWindow, or None for border styles have
237         different minimum sizes than regular forms.  Implemented to fix
238         regression in PDN with toolbox being too wide.
240 2008-01-14  Andreia Gaita <avidigal@novell.com>
242         * HtmlElementCollection.cs: Implemented
244         * HtmlElement.cs: Implemented:
245           - All
246           - InnerHtml
247           - InnerText
248           - Id
249           - Name
250           - FirstChild
252         * HtmlDocument.cs: Implemented GetElementsByTagName.
254 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
256         * Screen.cs: Stub BitsPerPixel to always return 32.
258 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
260         * Form.cs: Implement RestoreBounds.
262 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
264         * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
265         Sebastien and his fabulous magical problem-finding machine:
266         Gendarme.  Also put a MonoTodo on AutoWordSelect since we don't
267         respect the value set.
269 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
271         * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
272         minimized. Fixes bug #325122 for Win32. Thanks  Srikanth Madikeri.
274 2008-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
276         * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
277         messages (to match .Net), we need to remove the capture ourselves.
279 2008-01-11  Jonathan Pobst  <monkey@jpobst.com>
281         * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
282         will process the message and close our window.
283         [Fixes bug #324328]
285 2008-01-10  Geoff Norton  <gnorton@novell.com>
287         * XplatUICarbon.cs:  Clip the Graphics context to the invalid area
288         tracked in the Hwnd.  Only invalidate the dirty region to the Carbon
289         window manager.
291 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
293         * Form.cs: Enforce the Form minimum size in SetBoundsCore.  Fixed
294         failing test.
296 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
298         * XplatUIX11.cs: Set a minimum window size and enforce it.  Even though
299         Linux doesn't care, having a minimum matches MS and keeps the window
300         from becoming too small to use window decorations.
301         [Fixes bug #338996]
303 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
305         * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
306         ShowFocusCues.  Make focus rectangles fit the text instead of the whole
307         control.  [Fixes bug #325419]
309 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
311         * ComboBox.cs: Guard against an NRE if the user open a new form from a
312         SelectedIndexChanged event.  This closes the combobox dropdown, and we
313         were trying to dispose it.  [Fixes bug #352830]
315 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
317         * Control.cs, Form.cs: Implement the necessary semantics for
318         ShowFocusCues.  All paint code will need to check Control.ShowFocusCues
319         to determine if a focus rectangle should be drawn.
320         * PropertyGrid.cs: Fix property visibility to match override.
321         * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
323 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
325         * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
326         [Fixes bug #323552]
328 2008-01-09  Geoff Norton  <gnorton@novell.com>
329         
330         * XplatUICarbon.cs: Scroll windows in the correct direction.
332 2008-01-09  Geoff Norton  <gnorton@novell.com>
334         * XplatUICarbon.cs: Track all created utility windows so we can hide them
335         when the app is deactivated or spaces is enabled.
337 2008-01-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
339         * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
340         extra separation pixel for the label rect origin if SmallImageList is
341         null, and thus we don't need that separation between icon and label
342         rects.
343         Patch by Ernesto Carrea.
344         Fixes # 340195.
346 2008-01-08  Jonathan Pobst  <monkey@jpobst.com>
348         * StatusStrip.cs: Invalidate after completing a layout.  The base
349         OnLayout does this, but we don't call the base.
350         * ToolStripItem.cs: Revert the previous change to invalidate after
351         the item moves.
352         [Fixes bug #351341 better.]
354 2008-01-07  Geoff Norton  <gnorton@novell.com>
356         * XplatUICarbon.cs:  WM_DESTROY is a teardown of a single window
357         not a notification to exit the application.  Listen for WM_QUIT
358         instead.
360 2008-01-07  Andreia Gaita <avidigal@novell.com>
362         * HtmlDocument.cs: Fix case on GetElementById (interface changed)
364 2008-01-07  Jonathan Pobst  <monkey@jpobst.com>
366         * ToolStripItem.cs: If the bounds of an item changes, invalidate it
367         so it can repaint at the correct location.
368         [Fixes bug #351341]
370 2008-01-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
372         * ListControl.cs: SelectedValue should return a null value if
373         SelectedIndex is -1. Also, when setting it, it should throw an
374         ArgumentNullException if the value is null, as well as taking
375         into account the String.Empty value, instead of ignoring it (we have
376         tests for that now).
377         Fixes part of #324286.
379 2008-01-06  Jonathan Pobst  <monkey@jpobst.com>
381         * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
382         SelectionStart is updated after pressing enter.  Fixes bug #351918.
384 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
386         * TextControl.cs: Revert a piece r92316 that prevented the fix
387         from working when there were multiple tags in the text box.
388         Fixes bug #351881.
390 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
392         * TextControl.cs: Apply patch from Luke Page that prevents an
393         NRE when determining the beginning of a paragraph.
394         Fixes bug #351886.
396 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
398         * TextBoxBase.cs: Apply patch from Luke Page that ensures the
399         caret gets moved with clicking away from a selected block of
400         text.  Fixes bug #351885.
402 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
404         * TextControl.cs: Apply patch from Luke Page that takes line
405         alignment into account for mouse selection, so that center and
406         right aligned text can be selected.
407         Fixes bug #351881.
409 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
411         * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
412         issues after loading an RTF file by using the correct line feeds.
413         Fixes bug #351841.
415 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
417         * TextControl.cs: When deleting multiple line selections, we need
418         to invalidate every line beginning at the first line of the selection.
419         Patch from Luke Page fixes bug #351791.
421 2008-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
423         * ListControl.cs: When getting a CurrencyManager.PositionChanged
424         event, don't set SelectedIndex if the number of items is 1. This is
425         because, for the first item, PositionChanged is fired _before_
426         ItemChanged (the place where we actually populate the items), and
427         leave us in a temporary invalid state (since items collection is
428         empty).
429         Fixes #349655.
431 2008-01-04  Geoff Norton  <gnorton@novell.com>
433         * XplatUICarbon.cs:  Create native toolwindows instead of
434         the managed drawing ones.
436 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
438         * LineTag.cs: If the line doesn't have any characters, return
439         0 for GetCharIndex.  Fixes an AOORE exception after certain
440         caret movements.  Fixes bug #351683.  Patch by Luke Page.
442 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
444         * TextBoxBase.cs: Apply patch from Luke Page so when backspace
445         is hit when there is selected text, only the selected text gets
446         deleted, not the character in front of the selection as well.
447         Fixes bug #351578.
449 2008-01-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
451         * ComboBox.cs: When the values are displayed, calculate the
452         ComboListBox scrollbar's LargeChange based on the visible area's
453         height and  the actuall ItemHeight, instead of calculating it
454         based on MaxDropItems value, since it's not used by our _current_ 
455         2.0 profile.
456         Fixes #332366.
458 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
460         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
461         Patch from Luke Page that fixes issues with font colors and styles
462         not showing up in a readonly RichTextBox.  Fixes bug #324354.
464 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
466         * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
467         from Luke Page.  This one fixes bug #349926.
469 2007-12-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
471         * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
472         an item in the IBindingList source changes with
473         ListChangedType.ItemAdded. Ignore for now firing the event for other
474         changes, since we want to have tests for those cases as well.
476 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
478         * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
479         created.
481 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
483         * TextBoxTextRenderer.cs: Implement a cache for measuring each
484         character.  This is effective because the typical usage of a
485         TextBox is with a limited amount of fonts and characters, and
486         the current implementation of TextBox measures everything one
487         character at a time.  Another second or two speedup for bug #347238.
489 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
491         * Control.cs: Rewrite the Font getter to only query the parent's
492         Font property once instead of twice.  Since this operation is
493         recursive, the queries were growing exponentially as the control
494         tree got deeper.  Another second or two speedup for bug #347238.
496 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
498         * Control.cs: Avoid setting a parent (and more importantly, updating
499         the zorder of all its children) if the parent is already correct in
500         WmShowWindow.  Decreases the startup time of the test case on bug
501         #347238 from 35 seconds to 11 seconds.
503 2007-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
505         * X11Dnd.cs: When the dnd operation has started and we are 
506         in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
507         This is done to match .Net, which doesn't send those messages after
508         dnd operation was completed/cancelled.
509         Fixes #349922.
511 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
513         * ToolStrip.cs: Previous change should be != null, not == null.
514         Thanks Gert!
516 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
518         * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
519         user may have moved the mouse off the current item during the event.
521 2007-12-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
523         * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
524         calling GetItemAt for every MouseMove event by also taking into
525         account whether any mouse button is pressed (probably dragging); 
526         if so, we can call GetItemAt, and if not, try to not call it 
527         (GetItemAt can be quite expensive when used with a large number of items).
529 2007-12-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
531         * ListView.cs: Implement -finally- support for dnd, by calling
532         OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
533         authors list ;-).
534         * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
535         simple calculation of distances for all the items in the owner
536         listview.
538 2007-12-21  Geoff Norton  <gnorton@novell.com>
540         * XplatUICarbon.cs:  Ensure that we create WindowMapping handles
541         for windows that are originally created as invisible.  Fixes missing
542         main window in paint-mono.
544 2007-12-21  Geoff Norton  <gnorton@novell.com>
546         * XplatUICarbon.cs:  Register our D&D handler.  Register our custom
547         subclass handler for com.novell.mwfview subclassing HIView.  Implement
548         Pasteboard and Dnd methods.
550 2007-12-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
552         * ListBox.cs: When we got focus, give focus to first item if there
553         wasn't any pervious focused item. Also update navigation to depend on
554         SelectedIndex rather than FocusedItem, just as .Net does.
555         Fixes #349174.
557 2007-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
559         * ListBox.cs: Both FindString and FindStringExact methods must do an
560         case insensitive search, should allow the last valid index to be
561         passed in the overload taking an initial index, and should also
562         continue searching from the top back to the specified index when it
563         reaches the bottom.
565 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
567         * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
568         redraw issue, and allows RichTextBox to draw colored text even while
569         disabled or readonly.
571 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
573         * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
574         disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
575         and doesn't grey text in a disabled RichTextBox.
577 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
579         * RichTextBox.cs: Apply patch from Luke Page that adds better support
580         for many RTF commands: quad alignment, separate formatting for blocks
581         inside groups, and ParDef support.  Makes the test case from bug #324589
582         look much better.
584 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
586         * LineTag.cs: Fix an error in the new Draw method that caused
587         a crash when rendering the document on bug #324589.
589 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
591         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
592         TextControl.cs: Apply patch from Luke Page that adds support
593         for URL links in RichTextBox.
594         [Fixes enhancement #342516]
596 2007-12-18  Everaldo Canuto  <ecanuto@novell.com>
598         * MenuItem.cs: When cloning menuitem clone also name and tag properties for
599         2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
601 2007-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
603         * ListBox.cs: When a key gets pressed, try to find a string
604         if the key is a character or a digit.
605         Fixes #343971.
607 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
609         * TableLayoutPanel.cs: Remove some unused variables.
611 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
613         * DateTimePicker.cs: Commit patch from Luke Page that ensures
614         we don't end up at an invalid date when we click the up/down
615         spinner to change the month or year.  Fixes bug #348682.
617 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
619         * Application.cs: Calling Exit in 2.0 should chain to the
620         Exit (CancelEventArgs) version so it can be cancelled.
621         * Form.cs: Create a flag to allow raising the Closing
622         events to be skipped.  We raise them once in Application.Exit
623         and don't want to raise them again when the Form is actually
624         closed.  [Fixes bug #349073]
626 2007-12-16  Jonathan Pobst  <monkey@jpobst.com>
628         * ToolStripDropDown.cs: Guard against an NRE when there
629         hasn't been a mainform set in the application context.
630         [Fixes bug #349108]
632 2007-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
634         * ListBox.cs: When SetBoundsCore gets called, besides
635         calling UpdateScrollBars, update the value of
636         last_visible_index, since we could need to show more items
637         than before, and we need to let the paint routines know that.
638         Fixes #344445.
640 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
642         * ListView.cs: Add DesignerSerializationVisibility attribute to
643         InsertionMark property.
644         * ListViewItem.cs: Add same attribute to Position property.
646 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
648         * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
649         is 2.0 only.
651 2007-12-14  Jonathan Pobst  <monkey@jpobst.com>
653         * ThemeWin32Classic.cs: Don't draw the background on a
654         flat button if there is a background image.
655         [Fixes bug #348649]
657 2007-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
659         * ListBox.cs: If we remove the item currently selected,
660         remove it not only from SelectedItems, but also
661         resetting selected_index. Moreover, set focused_item to Items.Count - 1 if 
662         the items count decreased and focused_item has bigger value than that.
664 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
666         * Control.cs: Perform our layout after we resize ourselves
667         if we had to adjust our AutoSize.  Missed commit for bug
668         #346246.
670 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
672         * TableLayoutPanel.cs: Override GetPreferredSizeCore so
673         we can provide an implementation of AutoSize.
674         [Fixes bug #346246]
676 2007-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
678         * ListBox.cs: Add the internal overload Sort (bool paint),
679         to indicate whether we actually need a paint or we will
680         call Refresh ourselves. This way we don't request a paint
681         _before_ having an updated and valid layout.
682         Fixes #347233.
684 2007-12-12  Andreia Gaita <avidigal@novell.com>
686         * XPlatUIX11.cs: Send paint messages when updating a systray icon
687         * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
688         properly invalidated. 
689         Fixes #324237
691 2007-12-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
693         * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
694         don't simply assign it to our internal group field, but instead 
695         use our Group property, which should do all the neccessary work
696         required to support groups. Fixes an issue reported to me (mail) by a 
697         guy using this new feature.
699 2007-12-11  Jonathan Pobst  <monkey@jpobst.com>
701         * Control.cs: Use Scale instead of ScaleControl to ensure the
702         whole hierarchy gets scaled.
703         [Fixes bug #347282]
705 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
707         * DateTimePicker.cs: Don't set the internal MonthCalendar's
708         Parent property.  Doing this causes the control to be hosted by
709         the Form instead of being a popup window.
710         [Fixes bug #347665]
712 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
714         * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
715         at an index higher than Count, just use Add instead of Insert.
716         [Fixes bug #347669]
718 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
720         * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
721         DrawPictureBox, this is handled by Control.PaintBackground.
722         [Fixes bug #347276]
724 2007-12-10  Everaldo Canuto  <ecanuto@novell.com>
726         * MenuAPI.cs: When process menu keys return true by default only if menu is
727         active. Fixes bug #342892.
729 2007-12-09  Andreia Gaita <avidigal@novell.com>
731         * Control.cs: check if windows are actually mapped before
732         trying to zorder. Fixes #342509, #346955
734 2007-12-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
736         * ListView.cs:
737         * ListViewInsertionMark.cs:
738         * ThemeWin32Classic.cs: Implement the drawing side of the
739         new 2.0 ListView.InsertionMark property.
741 2007-12-07  Jonathan Pobst  <monkey@jpobst.com>
743         * CurrencyManager.cs: Silence some debug spew.
745 2007-12-07  Geoff Norton  <gnorton@novell.com>
746         
747         * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
748         masks for our children as well as siblings to avoid having to query
749         Quartz for this information.
750         * XplatUICarbon.cs: Implement a delegate based system to pass
751         information to System.Drawing.  Implement Async methods.  Remove
752         the hack for the resize thumb and imlpement a transparent Grow Box.
753         Rework the messaging system to proplery create window's and messages,
754         fixes TabControl.
756 2007-12-06  Andreia Gaita <avidigal@novell.com>
758         * X11Keyboard.cs: Use Xutf8LookupString to support international 
759         characters under alternate codepages. Patch from #340878
761 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
763         * ListView.cs: When doing layout computations, set position in the
764         ListView instances (we cache the position just as .Net does).
765         * ListViewItem.cs: New internal setter method for Position. Also set
766         position field as also available in 1.1, since we are going to use it
767         now in the common case.
769 2007-12-06  Andreia Gaita <avidigal@novell.com>
771         * Control.cs: When removing controls, get the actual container
772         to notify about active control changes. Fixes 341314.
774 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
776         * ListViewItem.cs: Forgot to add Font to our serialization stuff.
778 2007-12-05  Andreia Gaita <avidigal@novell.com>
780         * Control.cs: When updating the zorder, ignore windows that are not
781         mapped. Fixes #342509
783 2007-12-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
785         * ListViewItem.cs: Actually implement serialization on this class.
787 2007-12-05  Gert Driesen  <drieseng@users.sourceforge.net>
789         * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
790         LinkCollection. Spaces to tabs, and removed extra tabs.
792 2007-12-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
794         * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
795           tests to fail (hopefully).
797 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
799         * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
800         the image margin so custom renderers can correctly place it.
802 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
804         * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
805         so custom renderers can correctly place it.
807 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
809         * Application.cs: Let WM_CHAR messages flow through to controls
810         hosted in Strips.  [Fixes bug #343972]
812 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
814         * ToolStripManager.cs: Guard against an NRE I ran into.
816 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
818         * LinkLabel.cs: Apply patch from George to fix bug 344012.  If
819         a Link is manually added to the Links collection, we need to set
820         its owner, so it can invalidate properly.
821         [Fixes bug #344012]
823 2007-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
825         * ListView.cs: When changing ListViewItem.Position (which calls
826         ListView.ChangeItemLocation), invalidate not only the area
827         corresponding to the main item, but also to the area occupied
828         by the items being moved.
830 2007-11-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
832         * ListView.cs: When changing the position of a given item,
833         don't use item bounds, but item areas (which includes the item spacing
834         between them). Also, use first/last position if the requested
835         position is outside bounds (as .Net does). Invalidate the previous and
836         new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
837         in a specific position, instead of directly accessing Items collection
838         (this is done to get the right item - remember an Item can have a
839         different position in the grid than in the Items collection).
841 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
843         * MessageBox.cs: Calculate text area instead of just top left, this rect 
844         area will be used in DrawString. Fixes bug #343364.
846 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
848         * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
849         screen width. Partially fixes bug #343364.
851 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
853         * NotifyIcon.cs: Remove duplicated code before call realculate and put this
854         code inside recalculate, it makes code more simple.
856 2007-11-22  Everaldo Canuto  <ecanuto@novell.com>
858         * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
859         between update or add icon. Fixes bug #324344.
861 2007-11-21  Andreia Gaita <avidigal@novell.com>
863         * XPlatUIX11.cs: Do not treat tool windows as if they have no 
864         window manager, since that stretches the drawing area to include
865         the window decorations, and they get hidden. Reverts r84444 and fixes
866         #335849 and #342790 (mdi and pdn3 regression)
868 2007-11-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
870         * ListView.cs: When setting focused item, try to give focus to the
871         previous one _only_ if the previous one remains valid. 
872         Fixes #342504.
874 2007-11-20  Jonathan Pobst  <monkey@jpobst.com>
876         * Application.cs: Revert r89650, as it broke a common case to fix
877         an obscure case.  Fixes bug #342606.
879 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
881         * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
883 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
885         * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal 
886         alignment. [Fixes #324228]
888 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
890         * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
891         [Fixes bug #342123]
893 2007-11-19  Everaldo Canuto  <ecanuto@novell.com>
895         * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
896         it prevent problems when empty captions. [Fixes #342141]
898 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
900         * Label.cs: Use Size instead of None.  Fixes bug #342077.
902 2007-11-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
904         * ListViewItem.cs: Implement 2.0 FindNearestItem method.
906 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
908         * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
909         but there isn't a MdiContainer.
910         [Fixes bug #342358]
912 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
914         * TextControl.cs: Don't recalculate document if the recalc_start and
915         recalc_end hasn't changed.
916         [Fixes bug #342505]
918 2007-11-17  Gert Driesen  <drieseng@users.sourceforge.net>
920         * DataGridViewTextBoxCell.cs: Removed CWL.
922 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
924         * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
926 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
928         * TextControl.cs: Missed some code for bug 341534 to trigger a
929         recalculation when the font changes.
931 2007-11-16  Andreia Gaita <avidigal@novell.com>
933         * Control.cs: When updating the zorder, check if the child to update is
934         the same control that is set to always be on top (i.e., scrollbars), and 
935         just put it on top directly. Fixes BadMatch error on pdn3
937 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
939         * ListView.cs: Throw the needed exceptions for FindNearestItem.
941 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
943         * Control.cs: Don't perform a new layout when a label changes its text,
944         cause label handles its own autosizing.
945         [Fixes bug #342077]
947 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
949         * ListView.cs: Implement 2.0 FindNearestItem methods.
951 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
953         * ToolStripPanel.cs: Make Join at least add the control to the panel,
954         even if the rest of what Join does isn't supported.  Add some more
955         support for vertical toolbars.
956         * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
957         [Fixes the application breaking parts of bug #341998]
959 2007-11-15  Jonathan Pobst <monkey@jpobst.com>
961         * ToolStripItem.cs: When determining if we have a check/image margin,
962         we need to look at ShowCheckMargin as well as ShowImageMargin.
964 2007-11-15  Geoff Norton  <gnorton@novell.com>
966         * XplatUIOSX.cs: Rename to...
967         * XplatUICarbon.cs: and refactor all event handling out to the new event handling
968         system in System.Windows.Forms.CarbonInternal.  Lots of code cleanup as well.
970 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
972         * KeysConverter.cs: The default values should be an array of Keys, not
973         strings.  Also, the array has more values for 2.0.
974         [Fixes bug #341851]
976 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
978         * Application.cs: Change ExecutablePath to use 
979         Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
980         [Fixes bug #323552]
982 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
984         * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
985         When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
986         * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
987         be ignored.  Create a new GetLineEnding that can specify which types of
988         line endings to look for.  On Insert, only create new lines for \n and \r\n.
989         [Fixes bug #324274]
991 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
993         * TextBoxBase.cs: As we loop through each line changing the font, tell
994         the document that the line needs to be recalculated.  Fixes bug #341534.
996 2007-11-13  Jonathan Pobst  <monkey@jpobst.com>
997         [Another round of refactoring]
998         * Line.cs: Add DeleteCharacters.
999         * LineTag.cs: Add Delete.
1000         * TextBoxBase.cs: Update to use new methods.
1001         * TextControl.cs: Refactor the Delete* methods.
1003 2007-11-13  Everaldo Canuto  <ecanuto@novell.com>
1005         * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
1006         the patch. [Fixes #324856]
1008 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1010         * ListView.cs:
1011         * ListViewItem.cs: Add an initial implementation of
1012         2.0 ListViewItem.Position getter.
1014 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1016         * ListView.cs: Add a reordered_items_indices array, to allow us
1017         to have a different sorting than that of Items (the sorting in Items
1018         could not match the actual sorting in screen). This is needed to
1019         implement a pair of 2.0 features.
1020         * ListViewItem.cs: Add a DisplayIndex property to keep track of the
1021         actual position in the ListView grid, since it could have a position
1022         different than its Index (position in ListViewItemCollection). 
1024 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
1026         * Label.cs: Add StringFormatFlags.LineLimit.  This tells DrawString to
1027         not draw partial lines.
1028         * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
1029         LineLimit flag from the base is preserved.
1030         Fixes the windows part of bug #338965.
1032 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
1034         * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
1035         so that it can be canceled in KeyPress.
1036         Fixes bug #340078.
1038 2007-11-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1040         * ListView.cs: In ItemControl, reset mouse-handling related
1041         fields even if we dont' have items (we still should reset them when
1042         we had items but then called Items.Clear). Partially based in a patch
1043         by George Giolfan.
1044         Fixes #338399.
1046 2007-11-08  Gert Driesen  <drieseng@users.sourceforge.net>
1048         * Application.cs: In ProductVersion first try AssemblyFileVersion
1049         before falling back to assembly version. Fixes bug #339787.
1051 2007-11-08  Andreia Gaita <avidigal@novell.com>
1053         * HtmlElement.cs: Implement InnerText setter.
1054         * WebBrowserBase.cs: Implement Navigated event support.
1055         Add flag to track when the browser "document" is ready to be retrieved.
1056         * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
1057         Make sure browser document is ready before retrieving it.
1058         Clean up cached objects (document) when moving to a new page through
1059         any of the navigation methods.
1060         Use the new Mono.WebBrowser.INavigation interface to control navigation.
1061         Implement OnNavigated event.
1063 2007-11-07  Jonathan Pobst  <monkey@jpobst.com>
1065         * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
1066         DrawLinkLabel, this is handled by OnPaintBackground.
1067         Fixes bug #339565, part II.
1069 2007-11-07  Andreia Gaita <avidigal@novell.com>
1071         * Control.cs: Revert r88915. Selecting text on a textbox depends on
1072         getting a Select call on click, so this call needs to be here for now.
1073         Unfixes #325809
1075 2007-11-07  Geoff Norton  <gnorton@novell.com>
1077         * OSXStructs.cs: Add the kEventClassApplication constants.
1078         * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the 
1079         application is deactivated otherwise Menu overlays linger on top of
1080         other application windows.
1082 2007-11-07  Geoff Norton  <gnorton@novell.com>
1084         * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
1085         dont support cursors yet anyways.  This allows Reflector to run.
1087 2007-11-07  Geoff Norton  <gnorton@novell.com>
1089         * XplatUIOSX.cs: Implement DragSize.
1091 2007-11-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1093         * ListView.cs: When we receive a WM_LBUTTONDOWN message in
1094         ItemControl, request the focus, as .Net does. This is needed after 
1095         Control does not request focus anymore when it receives a
1096         WM_LBUTTONDOWN.
1098 2007-11-06  Jonathan Pobst  <monkey@Jpobst.com>
1100         * Label.cs: Make DrawImage internal so it can be called from Theme code.
1101         Remove the DrawImage call from OnPaint.
1102         * LinkLabel.cs: Remove the DrawImage call from OnPaint.
1103         * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
1104         but before we draw the text for DrawLabel and DrawLinkLabel.
1105         Fixes bug #339565.
1107 2007-11-05  Andreia Gaita <avidigal@novell.com>
1109         * Control.cs: Remove select call on click. Fixes #325809
1111 2007-11-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1113         * ListViewItem.cs: Add 2.0 Position property getter.
1115 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1117         * ListView.cs: Add 2.0 BackgroundImageTiled property.
1118         Also, to make it work properly, change item's BackColor and
1119         BackgroundImageLayout as needed.
1120         * ThemeWin32Classic.cs: Don't fill any background rectangle 
1121         in ListView.ItemControl when drawing items; just let the Control
1122         base implementation fill it.
1124 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1126         * ListViewGroup.cs: Adda TypeConverter attribute for this class,
1127         as well as adding a custom 'dummy' Converter, as .net does.
1129 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1131         * PropertyGridView.cs: When clicking drop-down button,
1132         select an index in the listbox only if our standard values collection 
1133         has one or more items.
1135 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1137         * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
1138         property.
1140 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
1142         * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
1143         the value is not changed. This ensure a pushed button remains in that
1144         state when clicked again. When switching the value of PropertySort
1145         between Categorized and CategorizedAlphabetical, do not update the
1146         grid items and do not fire a PropertyChangedEvent. When clicking the
1147         sorting buttons, do not modify the PropertySort value when switching
1148         between Categorized and CategorizedAlphabetical but only update the
1149         button state.
1151 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
1153         * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
1154         formatting.
1155         * PropertyGrid.cs: Also put Categorized button in pushed state when
1156         PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
1157         for help description label.
1159 2007-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1161         * ListView.cs: When calculating the biggest item for a given column,
1162         take into account 2.0 LIstViewItem.IndentCount, since it directly affects
1163         the item's width.
1165 2007-11-03  Gert Driesen  <drieseng@users.sourceforge.net>
1167         * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
1168         value for PropertySort on 1.0 profile. PropertySortChanged event
1169         should only be fired on 2.0 profile. Fixed NullReferenceException
1170         in UpdateSortLayout when PropertyGrid contains no items.
1172 2007-11-02  Jonathan Pobst  <monkey@jpobst.com>
1174         * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
1175         [Fixes bug #338554]
1177 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1179         * ListViewItem.cs: Implement 2.0 IndentCount property.
1181 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1183         * X11Dnd.cs: When sending status in a dnd operation, compare current
1184         effect with the 'allowed' field instead of 'drag_data.Allowed', since
1185         the later is only created when a Winforms application is both the
1186         source and the target, but not when we are the target only.
1187         Fixes part of #324251.
1189 2007-11-01  Geoff Norton  <gnorton@novell.com>
1191         * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
1192         order of Z-Order.
1193         * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling 
1194         children out of the drawing view on mac.
1195         * XplatUIOSX.cs: Code cleanup.  Handle more window grab cases.  Fix SetParent
1196         to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
1197         
1198 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
1200         * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
1201         on the non-hosted-control part of it shouldn't do anything.
1202         Fixes part of bug #327498.
1204 2007-11-01  Andreia Gaita <avidigal@novell.com>
1206         * WebBrowserBase.cs: revert previous change, resize can be called anytime
1208 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
1210         * Application.cs: When a toolstrip has the keyboard input loop, let messages
1211         it does not use flow through to controls that are hosted in menus.
1212         Same with mouse clicks.
1213         * Form.cs: Don't close all menus on click if the click is on a
1214         control hosted in a menu.
1215         Fixes part of bug #327498, and part of bug #325969.
1217 2007-10-31  Andreia Gaita <avidigal@novell.com>
1219         * WebBrowserBase.cs: Only call resize on gluezilla when it is active
1221 2007-10-31  Jonathan Pobst  <monkey@jpobst.com>
1223         * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
1224         Addresses an issue raised in bug #336218.
1226 2007-10-30  Jonathan Pobst  <monkey@jpobst.com>
1228         * Form.cs: Patch from George that moves the conversion of ClientSize->Size
1229         for PreferredSize from OnLayout to PreferredSize.  Fixes bug #325242.
1231 2007-10-30  Andreia Gaita <avidigal@novell.com>
1233         * ContainerControl.cs: Check if the active control is a
1234         child of a removed control and update active_control accordingly.
1235         Fixes #329718
1237 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
1239         * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
1240         or the MaxDate.  Fixed bug #337693.
1242 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
1244         * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
1245         after calling SetWindowLong for a form, to force an immediate NC refresh.
1246         Fixes first part of bug #325150.
1248 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
1250         * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
1251         simple.  Fixes the last part of bug #322668.
1253 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
1255         * MessageBox.cs: If the owner is TopMost, then the MessageBox form
1256         needs to be TopMost as well, or else the MessageBox is under the form.
1257         Patch by George fixes bug #325300.
1259 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1261         * X11Dnd.cs: When starting a new drag operation, reset the static
1262         'dropped' field to false (previously the implementation didn't reset
1263         it and got confused after the first drag).
1264         Fixes #325071.
1266 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1268         * PropertyGrid.cs: When PropertySort changes, re-organize the grid
1269         items instead of re-creating them all. For this purpose we now cache
1270         both CategoryGridEntry items and the GridEntries for the main object's
1271         properties.
1272         * GridItem.cs: Make SetParent method abstract.
1273         * GridEntry.cs: Override the SetParent method (already there, but now
1274         we override it).
1275         Fixes #324866.
1277 2007-10-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1279         * PropertyGridView.cs: Set the plus/minus bounds of a grid item
1280         depending on its depth (as .Net does). Update the needed values in
1281         MouseDown handler. Also draw the plus/minus rect after the label,
1282         so we don't draw on top of it.
1284 2007-10-24  Everaldo Canuto  <ecanuto@novell.com>
1286         * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
1287         processed by forms or controls when menu is active. [Fixes #333548]
1289 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
1291         * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
1292         parent doesn't have focus.  This was causing ToolStripTextBoxes to take
1293         focus on mouse over.
1295 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
1297         * TextControl.cs: Code cleaning, simplifying.
1299 2007-10-24  Geoff Norton  <gnorton@novell.com>
1301         * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
1302         * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
1304 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
1306         * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
1307         the cap is maxvalue, not actually 0.  [Fixes bug #336218]
1309 2007-10-24  Andreia Gaita <avidigal@novell.com>
1311         * SendKeys.cs: apply jpobst's patch to bug #332409
1313 2007-10-23  Andreia Gaita <avidigal@novell.com>
1315         * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the 
1316         Windows 2000 gdi DrawText call doesn't draw if it's higher than that
1317         for some reason
1319 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1321         * PropertyGridView.cs: If a property has an UIEditor available,
1322         make the drop-down/editor button available only if the property
1323         is _not_ read only.
1325 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1327         * PropertyGridView.cs: Don't make the grid item textbox 
1328         editable when a drop-down control is available, but 
1329         CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
1330         true. The same bur the color of the grid item value's label.
1332 2007-10-22  Geoff Norton  <gnorton@novell.com>
1334         * OSXStructs.cs: Add the needed constants for keyboard modifiers.
1335         * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
1336         * XplatUIOSX.cs: New reversible frame support.  Wire in the new keyboard
1337         driver.  Padd the bottom of all real windows so the resize thumb doesn't
1338         obscure scroll/status bars.
1340 2007-10-22  Jonathan Pobst  <monkey@jpobst.com>
1342         * WindowsFormsSection.cs: Implement.
1344 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
1346         * MdiClient.cs: Maximize new active mdi child when a maximized child is 
1347         closed see #325434 patch.
1349 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
1351         * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
1352         see #325434 patch.
1354 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1356         * PropertyGridView.cs: When showing the textbox for a grid item,
1357         have two local variables to store the read-only and non-editable
1358         status of a grid item (we were previously using just one variable
1359         to do this, when actually they are slightly different).
1360         Fixes part of #325023.
1362 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1364         * PropertyGridView.cs: When showing a drop-down list, try to get the
1365         values using TypeConverter.ConvertTo (to convert to a string). Fixes
1366         part of #325023.
1368 2007-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1370         * PropertyGrid.cs: When updating a property and populating sub grid
1371         items, remove the previous ones, and invalidate the specific area.
1372         * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
1373         area behind a grid item.
1374         * GridItemCollection.cs: Add an internal Clear method, to allow us to
1375         clean the items if needed (specially for controls implementing 
1376         ICustomTypeDescriptor and returning a variable number of properties).
1377         Fixes #324865.
1379 2007-10-19  Jonathan Pobst  <monkey@jpobst.com>
1381         * TextControl.cs: Clean up and document the Insert function.
1383 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
1385         * TextControl.cs: Make sure we know our start point for updating the view
1386         in ReplaceSelection.  Fixes an issue where pasting multiline text wouldn't
1387         update the view.
1389 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
1391         * ListView: Couple of corcompare fixes.
1393 2007-10-17  Geoff Norton  <gnorton@novell.com>
1395         * XplatUIOSX.cs: Implement support for window icons in the dock.  Set
1396         the title caption of real window.
1398 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
1400         * ErrorProvider.cs: Add the error provider's internal window to a 
1401         containercontrol when the parent changes.  [Fixes bug #329714]
1403 2007-10-17  Geoff Norton  <gnorton@novell.com>
1405         * XplatUIOSX.cs: Implement ScrollWindow.  Properly create TOOLWINDOWs.
1406         When we make a new window; restore the old active window - fixes dialogs.
1408 2007-10-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1410         * PropertyGridView.cs: Look for RefreshPropertiesAttribute
1411         when modifying a property, and if found then invalidate as
1412         requested.
1413         Fixes part of #324865.
1415 2007-10-17  Geoff Norton  <gnorton@novell.com>
1417         * XplatUIOSX.cs: Re-enable the native driver on the Mac.  This is still
1418         highly experimental.  Fixed coordinate translation.  Fixed window locations.
1419         Initial support for clipping. Implemented NC areas and menus.  Support for
1420         launching from command line from Will Johansson (wjohansson@atacomm.com).
1421         * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
1422         wjohansson@atacomm.com)
1423         * Hwnd.cs: Add some internal structures for tracking Mac cursors.
1424         Hwnds now track the existence of all of their children for Mac clipping.
1425     * XplatUI.cs: Re-enabled the native driver on the Mac.
1427 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
1429         * Line.cs: Move the InsertString function to here.
1430         * TextControl.cs: Cleanup some duplicate code, move some InsertString
1431         functionality to Line.
1433 2007-10-17  Geoff Norton  <gnorton@novell.com>
1435         * ComboBox.cs: Destroy the popup after hiding it.  Fixes #322582
1437 2007-10-16  Gert Driesen  <drieseng@users.sourceforge.net>
1439         * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
1440         always setting value to true.
1441         * Form.cs: When changing AcceptButton, notify new and original button.
1443 2007-10-16  Jonathan Pobst  <monkey@jpobst.com>
1445         * Form.cs: Guard against an NRE when the user sets the AcceptButton to
1446         a custom control that implements IButtonControl instead of an actual
1447         button.  [Fixes bug #334244]
1449 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
1451         * Form.cs: Change SelectActiveControl to internal, we need to call it in
1452         MdiWindowManager.
1453         
1454         * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
1455         active control when activate a new mdi window.
1456         
1457         [Fixes bug #330495]
1459 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
1461         * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
1462         is already added.
1463         [Fixes bug #333617]
1465 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
1467         * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
1468         to MaxValue and recalc_end to MinValue.  Currently, recalc_start is always 1,
1469         so we always recalculate the whole document instead of just the new part.
1470         [Fixes bug #325082]
1472 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
1474         * LineTag.cs: Fix a case where the GetCharIndex would not return 0
1475         when the mouse was to the left of the first character in the line.
1477 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
1479         * TextBox.cs, TextBoxBase.cs: When setting the document's password
1480         character, use the property instead of the variable so that the
1481         UseSystemPasswordChar property is taken into account.
1482         [Fixes bug #333748]
1484 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1486         * FolderBrowserDialog.cs: When a node is right clicked and the "New
1487         folder" contex menu appears, actually add the new folder to it, even
1488         if the node is not currently selected. Still use SelectedNode in case 
1489         there wasn't found a node under the pointer.
1490         Fixes #325452.
1492 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1494         * ListViewItem.cs: When retrieving the focused state, the index check
1495         should be done only when ListView is in virtualmode, as it is an
1496         expensive check for normal mode.
1498 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1500         * ListViewItem.cs: Make the focus state information be stored
1501         in the ListView, not in the items. This is done to match the MS
1502         behaviour for items that are not yet part of a ListView control;
1503         besides that, since just one item can be focused at the same time,
1504         we save a little space in our items.
1505         Fixes part of #331643.
1507 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
1509         * ComboBox.cs: When focus is lost, deselect the text. When setting
1510         text of control, select all text. Do not hide selection when control
1511         does not have focus. Fixes bug #333663.
1513 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
1515         * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
1516         instead of ArgumentException when SelectionLength is set to negative
1517         value. Added same check to SelectionStart. Code formatting.
1519 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
1521         * TextBoxBase.cs: Invalidate selection before changing SelectionLength
1522         or SelectionStart. Code formatting.
1524 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1526         * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
1527         indicating that there was not a previous drag-and-drop operation going
1528         on.
1529         Fixes part of #325071.
1531 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1533         * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
1534         AllowedEffect, don't let the drop operation happen. 
1535         Fixes #32580.
1537 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
1539         * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
1541 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
1543         * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
1544         is called.
1546 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
1548         * Line.cs: Add a method that finds the tag that contains an x-coord.
1549         * LineTag.cs: Add a method that finds the character at an x-coord using
1550         a binary search, the old way was a linear search.
1551         * TextControl.cs: Change FindCursor to use the above new methods.
1553 2007-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1555         * DragEventArgs.cs: Allow Effect to have a non allowed value (a
1556         value different than AllowedEffect). This should be possible to
1557         indicate that dragging is not possible in some control/area.
1559 2007-10-11  Jonathan Pobst  <monkey@jpobst.com>
1561         * LineTag.cs: Encapsulate all variables with properties.  Calculate ascent/
1562         descent internally when font changes instead of outside code being responsible
1563         for setting it.
1564         * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
1565         instead of accessing internal variables.
1567 2007-10-09  Everaldo Canuto  <ecanuto@novell.com>
1569         * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
1570         remove special treatment for ArrangeIcons since it is already arranged.
1572 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
1574         * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
1575         the Win32 backend uses Color.
1576         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
1577         Refactor to store a Color instead of a Brush for Color.
1579 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
1581         * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
1582         away.  I didn't realize I needed this when I refactored these earlier.
1584 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
1586         * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
1587         store a Color structure and use the ResPool for back color instead of
1588         holding onto brushes.
1590 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
1592         * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
1593         [Fixes bug #325592]
1595 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
1597         * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
1598         to recalculate its size.  Fixes a part of bug #331052.
1600 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
1602         * NotifyIcon.cs: Set the correct mouse button when handling right mouse
1603         button.  Fixes a part of bug #331052.
1605 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
1607         * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
1608         the CreateParams.
1609         * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
1610         decorations.
1611         [Fixes bug #330986]
1613 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
1615         * TextBoxTextRenderer.cs: Don't make this a static class, as static
1616         doesn't exist in 1.1.  (Thanks jb!)
1618 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
1620         * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
1621         class to allow us to use different backends on different platforms.
1622         Linux uses the current [Draw|Measure]String backend.  Windows uses
1623         the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
1624         of GDI+.  This leads to better looking text and more accurate measurements
1625         on Windows, fixing many of the reported issues.
1626         * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
1628 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1630         * FolderBrowserDialog.cs: When running on Windows,
1631         try to detect paths such "C:" and add Path.DirectorySeparatorChar,
1632         since we must match both "C:" and "C:\" forms. A little hackish, but
1633         works.
1634         Fixes #325247.
1636 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1638         * ListView.cs: When calling EndEdit (after editing an item),
1639         create a new instance of LabelEditEventArgs to keep clean the fields
1640         in case we get a new call to BeginEdit; also do Application.DoEvents
1641         to have focus in synch. This is a fix similar to TreeView's #325244.
1643 2007-10-07  Andreia Gaita <avidigal@novell.com>
1645         * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
1646         * WebBrowserBase.cs: Added dialog support, calling the
1647           WebBrowserDialogs classes for each specific dialog type.
1649 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1651         * ListView.cs: When the last item is focused and is removed,
1652         move the focus to the previous item (in Items order). This is what MS
1653         does.
1654         Fixes #330415.
1656 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1658         * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
1659         instead of the opposite (RemoveAt call Remove). This is a better
1660         approach since we don't need to to a pair of traversals when using
1661         RemoveAt.
1663 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1665         * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
1666         check that the node actually has nodes, and if not, move to the
1667         parent node instead. 
1668         Fixes #325265.
1670 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1672         * TreeView.cs: Move the previous change to the general case (to
1673         call Application.DoEvents in cases where the method was called by
1674         different places).
1676 2007_10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1678         * TreeView.cs: When calling EndEdit and we need to hide the textbox,
1679         call Application.DoEvents. This is neccessary when we get a call to
1680         BeginEdit from an AfterLabelEdit handler, because the focus always
1681         goes to the TreeView, even if we try to give it to our
1682         LabelEditTextBox. The call do Application.DoEvents seems to
1683         synchronize the focus, basically.
1684         Fixes #325244.
1686 2007-10-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1688         * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
1689         should be false. This also removes some nasty recursive paths. Fixes
1690         part of #325244.
1692 2007-10-04  Everaldo Canuto  <ecanuto@novell.com>
1694         * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
1695         state to normal. Also resize window when cascading. Fixes #325433. 
1697 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
1699         * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
1700         DefaultForeColor, as drawing empty colored lines isn't very useful.
1701         [Fixes the not drawn lines part of bug #324358]
1703 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
1705         * TextControl.cs: Move Line and LineTag classes into separate files to
1706         make things easier to find.
1707         * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
1708         * RichTextBox.cs: Capitalize LineTag.Length property access.
1709         - This is purely an organizational/formatting change, no logic changed. -
1711 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
1713         * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
1714         text is empty.
1716 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
1718         * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
1719         text is empty.
1721 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
1723         * ComboBox.cs: On contructor use backgound_color instead of BackColor to
1724         prevent calling of OnBackColorChanged. Fixes #325321.
1726 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
1728         * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
1729         because control can be disabled because owner is disabled.
1731 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
1733         * ComboBox.cs: For the 1.1 profile, the default SelectedText is
1734         string.Empty, test failed from previous change.
1736 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
1738         * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
1739         is null, not String.Empty.  See bug #323038.
1741 2007-10-01  Jonathan Pobst  <monkey@jpobst.com>
1743         * TextControl.cs: Change the margins to match MS a little better.
1744         Still not perfect for X11 due to some DrawString differences, but
1745         is still an improvement over the old stuff.
1746         Partially fixes #324467.
1748 2007-09-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1750         * FolderBrowserDialog.cs: When using MyComputer as 
1751         RootFolder, let absolute paths be considered as valid ones. Also, use
1752         Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
1753         for Windows compatibility.
1754         Partially fixes #325247.
1756 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1758         * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
1759         Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
1760         method, since it causes the dialog to not select folders directly
1761         under the root path (when setting SelectedPath property).
1763 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1765         * TreeNode.cs: When calling Expand/Collapse and need to call 
1766         ExpandBelow/CollapseBelow respectively, take into account
1767         partially visible nodes (previously Expanding/Collapsing
1768         a partially visible node in the bottom was not updating its +- sign).
1770 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1772         * TreeView.cs: When calling Expand on a TreeNode, and we need to
1773         expand nodes below (ExpandBelow), scroll the entire Viewport
1774         area if the node is above it and not visible (instead of scrolling
1775         the area from node's Bottom, which applies only when the node is
1776         visible).
1777         Fixes #325266.
1779 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1781         * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
1782         node in the bottom area (as .Net does). This is done to preserve the
1783         scroll position when ExpandAll is called before handle is created for
1784         the 1.1 profile (bottom area, as opposed to top area in 2.0).
1785         Fixes #324103.
1787 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1789         * TreeView.cs: When calling ExpandAll, don't move the scroll to the 
1790         bottom area if we are in fact not using the vertical scroll bar.
1791         Fixes #324824.
1793 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
1795         * Control.cs: Comment out a double buffering optimization that doesn't
1796         take into account invalidates created in OnPaint, causing the control
1797         to never be redrawn.  It would take quite a bit of work to work around
1798         this, but I left it commented with an explanation for later possible
1799         optimization.
1800         [Fixes bug #328681]
1802 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
1804         * Control.cs: Ask parent to perform a layout if control is AutoSize and
1805         the text changes.
1806         * RadioButton.cs: Implement GetPreferredSizeCore.
1807         [Fixes bug #328672]
1809 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
1811         * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
1812         corcompare stuffs.
1814 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
1816         * Application.cs: Move the sync context stuff to Run instead of RunLoop
1817         so that it doesn't get uninstalled on modal forms.
1818         * Control.cs: Install a sync context when a control is created.
1819         * WindowsFormsSyncronizationContext.cs: Create a private static control
1820         to invoke on.  This is easier than trying to find a created control we
1821         can use.
1822         [Fixes bug #327608]
1824 2007-09-25  Jonathan Pobst  <monkey@jpobst.com>
1826         * Application.cs: Install a WindowsFormsSynchronizationContext in the
1827         run loop, and uninstall it when done.
1828         * WindowsFormsSynchronizationContext.cs: Implement.
1829         [Fixes the common case in bug #327608]
1831 2007-09-23  Gert Driesen  <drieseng@users.sourceforge.net>
1833         * DataGridViewCellCollection.cs: Added argument checks for indexers.
1834         Use case-insensitive lookup of column name in indexer. Code
1835         formatting.
1837 2007-09-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1839         * TreeNode.cs: When collapsing or expanding a node, check whether its
1840         change will affect the visible area (we were previously doing a
1841         IsVisible check, but that check is not enough since children nodes
1842         could be still visible). Fixes part of #325266.
1844 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
1846         * TreeView.cs: Always select the first node when the TreeView gets
1847         focus if there is no currently selected node.
1848         [Fixes bug #324279]
1850 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
1852         * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
1853         node being selected is null.
1854         [Patch from Yves Bastide fixes bug #326858]
1856 2007-09-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1858         * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
1859         whether all the parent nodes are expanded.
1860         * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
1861         call RecalculateVisibleOrder if all previous nodes are expanded.
1862         Before that we were doing a IsVisible check, but sometimes the node
1863         is not in the visible area, but _should_already be ready, because of
1864         all previous nodes are expanded. Fixes #325259.
1866 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
1868         * ToolStripSplitButton.cs: Call the ButtonClick event if the button
1869         portion of the item is clicked.
1871 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
1873         * TextControl.cs: Do not tell the system to move the cursor if the
1874         textbox isn't focused.  Fixes part of bug #322668.
1876 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
1878         * ComboBox.cs: When there are no items, do not show the dropdown if
1879         the down arrow is clicked.  Fixes part of bug #322668.
1881 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
1883         * ToolStripComboBox.cs: Manually set the size of this control in the
1884         constructor, as it doesn't seem to be the same as DefaultSize.
1885         Fixes a failing monobuild test.
1887 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
1889         * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
1890         change it to DateTimePicker.MinDateTime.  [Fixes bug #326609]
1892 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
1894         * Theme.cs: FileDialogs should be using DesktopDirectory instead of
1895         Desktop.  This lets it work for people who have moved their desktops
1896         from the default location on windows.  For people who have not, both
1897         values are the same, so it shouldn't hurt anything.  [Fixes bug #325270]
1899 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
1901         * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
1902         but when the base constructor sets this, the control is null.  Set it
1903         again in the constructor.  Fixes a failing monobuild test.
1905 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
1907         * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
1908         get called.
1909         * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
1910         called.
1912 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
1914         * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
1915         will handle it themselves.
1916         * ToolStripItem.cs: When deciding what the text of a tooltip should
1917         be, use the Text property instead of the text field.
1918         * ToolStripTextBox.cs: Handle tooltips.
1919         [Fixes bugs #325417 and #325973]
1921 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
1923         * ToolStripDropDownButton.cs: Only drop down overflow menu with a
1924         left click.  Fixes the easy part of bug #325969.
1926 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
1928         * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
1929         bug #325406, but set a minimum for StatusStrip to 22 to keep
1930         bug #325390 fixed.  I think this minimum would have been figured
1931         up automatically if the grip was actually a ToolStripItem, but it
1932         currently is not.
1934 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1936         * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
1937         as this is apparently the actual value used by .Net. Also apply
1938         ItemPadding in Details view only, and decrease the general width padding,
1939         to have only the needed. This should fix #324340 in Windows too.
1941 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1943         * ListViewItem.cs: Don't Invalidate item if parent is inside
1944         a BeginUpdate/EndUpdate block. This prevents to have differences
1945         between the ListView and items state, as well as avoid some exceptions
1946         there.
1947         * ListView.cs: Make 'updating' field internal.
1949 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
1951         * ToolStripControlHost.cs: Realign control when ControlAlign changes.
1952         * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
1953         size if appropriate.
1954         Fixes reopened bug #325414.
1956 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
1958         * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
1959         * ToolStripItem.cs: Invalidate before and after our new autosize when
1960         text changes.
1961         Fixes reopened bug #325390.
1963 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
1965         * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
1966         mnemonics can be drawn or undrawn correctly.  Fixes reopened bug 
1967         #325044.
1969 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
1971         * Control.cs: Do WM_CONTEXTMENU before OnMouseUp.  [Fixes bug #325535]
1973 2007-09-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1975         * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
1976         instead of EllipsisWord (by equistango at gmail.com). Fixes part of
1977         #82734.
1979 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
1981         * ToolStrip.cs: Make ToolStrip selectable when TabStop = true.  Find an
1982         item to select when the ToolStrip is selected.
1983         * ToolStripControlHost: Realign the control when the bounds or visibility
1984         change.
1985         * ToolStripItem.cs: When selected, if it's a control host, focus the control.
1986         * ToolStripOverflow.cs: When laying out the drop down, respect the item's
1987         preferred height.
1988         * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
1989         base.OnPaint.  Was causing text not to be drawn.
1991 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
1993         * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
1995 2007-09-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1997         * TreeView.cs: When creating the label edit text box,
1998         set is initially to Visible = false. This is done to
1999         prevent a confusion in the layout which makes it to lose
2000         focus when shown the first time. Fixes part of #82592.
2002 2007-09-13 Andreia Gaita <avidigal@novell.com>
2004         * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
2006 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
2008         * ToolStrip.cs: Take Margin into account when calculating preferred
2009         size.  Also, allow preferred size to get smaller than the explicit
2010         size.
2011         * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
2012         First step towards fixing bug #82747.
2014 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
2016         * TreeView.cs: Applied patch from latency@gmx.de to not paint the
2017         full row select background over the plus/minus glyph.  Also, turn
2018         off the focus rectangle for full row select since MS doesn't seem
2019         to ever paint it.  [Fixes bug #81839]
2021 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
2023         * ToolStrip.cs: Don't FocusInternal if there is no selected item.
2024         This was causing keyboard opened dropdowns to lose focus.
2025         [Fixes bug #82803]
2027 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
2029         * Control.cs: If Rectangle.Empty is passed to Invalidate, use
2030         ClientRectangle instead.  [Fixes bug #82838]
2032 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
2034         * SplitContainer.cs: We can't reset Visible on every layout because
2035         someone may have set Visible = false explicitly on a SplitterPanel.
2036         Make sure when we switch orientation the SplitterDistance does not
2037         change.  Fixes two failing tests.
2039 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2041         * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
2042         TextRenderer, since the latter is only available in 2.0.
2044 2007-09-13  Ivan N. Zlatev <contact@i-nz.net>
2046         * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
2047         * SplitContainer.cs: Implement FixedPanel layouting.
2049 2007-09-12  Andreia Gaita  <avidigal@novell.com>
2051         * WebBrowserBase.cs: setup shutdown routine
2053 2007-09-12  Andreia Gaita  <avidigal@novell.com>
2055         * Application.cs: Let keyboard events that are targetted 
2056                 to non-mwf windows hosted inside mwf (as in, webbrowser),
2057                 propagate properly. Fixes keyboard handling on the webbrowser.
2059 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2061         * ListView.cs: When handling MouseUp event and we are 
2062         highligting a node with the mouse right button, don't trigger
2063         Before/AfterSelecting event, since we are not actually selecting
2064         the node.
2066 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2068         * TreeView.cs: When editing a node, modify the edit text box
2069         depending on the text length (as you are typing), like MS does.
2071 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
2073         * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars. 
2074         Override GetPreferredSizeCore to perform calculations.  Remove custom
2075         autosize logic.  [Fixes bug #82739]
2077 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
2079         * TextBoxBase.cs: Modified should default to false.
2081 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
2083         * Control.cs: Update the anchoring distances even when layout is supspended.
2084         Patch provided by George fixes bug #82805.
2086 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
2088         * Control.cs: Provide a setter for ExplicitHeight.
2089         * TextBoxBase.cs: Now that we have the implementation for explicit heights,
2090         remove the hacks in here for requested_height.
2091         [Fixes bug #82749]
2093 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
2095         * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
2096         Maximum to lower that its current Value caused an ArgumentException by setting
2097         the Value to the new Maximum.
2099 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
2101         * ThemeWin32Classic.cs: Math is hard!  Fix some math so that the TrackBar
2102         handle moves to the closest tick when it is being dragged.
2103         [Fixes bug #82751]
2105 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
2107         * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
2108         can't let them count as real items when calculating where to merge in the
2109         user's items.  [Fixed bug #82786]
2111 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
2113         * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
2114         who want to add a menu item directly onto a toolstrip.
2115         [Fixes bug #82775, part II]
2117 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
2119         * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
2120         * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
2121         don't set it to available.
2122         * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
2123         [Fixes bug #82727, part II]
2125 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
2127         * StatusStrip.cs: Change item placement to None if not visible.
2128         * ToolStripItem.cs: Invalidate when InternalVisible changes.
2129         These should have been committed to fix 82723, but I missed them.
2131 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
2133         * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
2134         Click, and that it is only called once.
2135         * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
2136         * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
2137         dropped down.
2138         [Fixes bug #82775]
2140 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2142         * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
2143         to match .Net.
2144         * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
2145         instead of 8, just like above. Partially fixes #82734.
2147 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2149         Patch by Ernesto Carrea <equistango at gmail.com>. Partially 
2150         fixes #82734.
2152         * ListView.cs: Remove extra space between rows in Details view (match
2153         .Net). 
2154         * ThemeWin32Classic.cs: Header text should use ListView.Font, not
2155         the DefaultFont.
2157 2007-09-08  Gert Driesen  <drieseng@users.sourceforge.net>
2159         * Application.cs: Modified ProductVersion to return value of
2160         AssemblyInformationVersion if available, and fallback to assembly
2161         version. Fixes bug #82746. Code formatting.
2162         * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
2163         instead.
2165 2007-09-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2167         * Control.cs: When updating ZOrder for a child control,
2168         take into account the implicit ones (we need it in our controls
2169         using them). Fixes #82642.
2171 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
2173         * ToolStripItem.cs: Add support for animated images.
2174         [Fixes bug #82726]
2176 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
2178         * ToolStrip.cs: Make sure we aren't drawing anything that isn't 
2179         visible.  [Fixes bug #82727]
2181 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
2183         * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
2184         so we repaint using the new size.  [Fixes bug #82723]
2186 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
2188         * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
2189         option.  [Fixes bug #81779]
2191 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
2193         * TreeView.cs: Override HandleClick because the StandardClick style is
2194         set to false.  According to MSDN (and testing), the click events should
2195         only be raised when the click occurs on a TreeNode.  [Fixes bug #81739]
2197 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
2199         * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
2200         the border will disappear.  Fixes reopened #82653.
2202 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
2204         * Control.cs: If the control is autosize, and its preferred size changes
2205         when it lays out its children, tell its parent so it can be re-layed out.
2206         Fixing some of the fallout from r85433.
2208 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
2210         * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
2211         and CheckBox share some code.
2213 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
2215         * TrackBar.cs: Only call OnScroll if we actually changed the Value of
2216         the TrackBar, not every mouse move.  [Fixed bug #82718]
2218 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
2220         * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
2221         under 2.0 rendering.  [Fixes bug #82657]
2223 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
2225         * TreeView.cs: If we found a TreeNode to display a context menu, but
2226         it doesn't have one to show, let the TreeView display its menu
2227         instead.  [Fixes bug #82680]
2229 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
2231         * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
2232         OnPaintInternal instead.  Give the internal TextBox a Border property
2233         so it can draw itself more correctly.  [Fixes bug #82653]
2235 2007-09-06  Zoltan Varga  <vargaz@gmail.com>
2237         * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
2239 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
2241         * ComboBox.cs: Adjust combobox button state to reflect current state when
2242         back to enabled = true. Fixes first issue of #82654.
2244 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
2246         * Control.cs: Fix last patch regression, prevent forms to update zorder when
2247         setting visible property.
2249 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
2251         * Control.cs: Update zorder after control creation in SetVisibleCore, it 
2252         fix zorder for controls initially created as non visible. Fixes #82667.
2254 2007-09-04  Everaldo Canuto  <everaldo@simios.org>
2256         * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
2257         mimic win32 look. Fixes #82656.
2259 2007-09-01  Zoltan Varga  <vargaz@gmail.com>
2261         * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs: 
2262         Stubs for new net 3.5 classes.
2264 2007-08-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2266         * ListViewItem.cs: In ListViewItemCollection operations calculate
2267         Layout for owner as well as invalidate it. Fixes part of #82642.
2269 2007-08-31  Jonathan Pobst  <monkey@jpobst.com>
2271         * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
2272         when returning Enabled.  [Fixes bug #82651]
2274 2007-08-30  Everaldo Canuto  <everaldo@simios.org>
2276         * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
2278 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2280         * ListView.cs: Put item padding info in a single place
2281         (Theme.ListViewItemPaddingWidth) to have working AutoResize on
2282         columns again.
2283         * ThemeWin32Classic.cs:
2284         * Theme.cs: Likewise.
2286 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2288         * ListView.cs: When a ListViewSubItem instance is invalidated,
2289         invoke Invalidate on parent ListViewItem, not parent ListView.
2290         Fixes #81570.
2292 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
2294         * ListView.cs, ListViewItem.cs: corcompare stuffs.
2296 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
2298         * BindingMemberInfo.cs: Implement == and != operators.
2300 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
2302         * HtmlElementEventArgs.cs: Implement properties.
2304 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
2306         * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
2308 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
2310         * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
2311         Add (string,string,string) to implement the imagekey.  It turns out, we
2312         use the requested imagekey whereas .Net does not.  So I broke ours to match
2313         theirs.  :(
2315 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
2317         * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
2319 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
2321         * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
2323 2007-08-29  Gert Driesen  <drieseng@users.sourceforge.net>
2325         * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
2326         up-to-date. Fixes bug #82618.
2328 2007-08-29  Everaldo Canuto  <everaldo@simios.org>
2330         * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
2331         reflect document changes. Fixes #82367.
2333 2007-08-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2335         * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
2336         as well as add new ones. This should make work the BackgroundImage
2337         property for ListView again.
2339 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
2341         * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
2342         DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
2343         DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
2345 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
2347         * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
2348         IsKeyLocked.
2350 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
2352         * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
2353         * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
2355 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
2357         * RadioButton.cs: Use 2.0 rendering.  Use base implementation of TextAlign.
2358         * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
2360 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
2362         * CursorConverter.cs: Implement conversion to InstanceDescriptor.
2364 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
2366         * GridEntry.cs: Implement GetService.
2368 2007-08-27  Jonathan Pobst  <monkey@jpobst.com>
2370         * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
2371         for label editting, make sure we focus back on the TreeView.
2372         [Fixes bug #82590]
2374 2007-08-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2376         * ListView.cs: Add some 2.0 overrides.
2378 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
2380         * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
2381         because getter dont returns right value before handle creation. Thanks 
2382         to George. Fixes #82569.  
2384 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
2386         * Theme.cs: Revert last patch, it causes error under win32. 
2388 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
2390         * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of 
2391         Environment.SpecialFolder.Desktop in Places method, Desktop returns the 
2392         logical Desktop rather than the physical file system location. Fixes #82603. 
2394 2007-08-26  Everaldo Canuto  <ecanuto@novell.com>
2396         * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
2397         for the patch. Fixes #82568.
2399 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2401         * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
2402         methods.
2404 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2406         * ListViewInsertionMark.cs: New stubbed class.
2408 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
2410         * FolderBrowserDialog.cs: When adding folder, immediately create the
2411         directory with temporary name and rename the directory when editing
2412         finishes. This matches MS. Ensure the node for the new folder is 
2413         selected and LabelEdit is disabled, when editing is either finished
2414         or cancelled.
2416 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
2418         * TreeView.cs: When editing label of node, ensure node is visible.
2420 2007-08-25  Ivan N. Zlatev  <contact@i-nz.net>
2422         * PropertyGridView.cs: Set the value only if it has changed.
2424 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2426         * ListView.cs: Some more code refactoring to add support sorting
2427         with groups (now for Details view). Remove unused code also.
2429 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
2431         * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
2432         Not a big fan of reacting immediately to a field in an EventArg, but that's
2433         the way it's done.  (This is part of the previous commit that got left out.)
2435 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
2437         * FolderBrowserDialog.cs: Removed need for separate description field.
2438         Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
2439         has focus when dialog box is displayed again, regardless of what
2440         button was pressed the previous time. Set RootFolder and SelectedPath
2441         each time dialog box is displayed. This ensures the treeview is
2442         refreshed, and fixes bug #82579. Do no hide selected node in TreeView
2443         when it does not have focus. Added support for more special folders.
2445 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
2447         * TreeView.cs: Create a CancelEdit method.  Clone the edit_args in EndEdit
2448         before calling AfterLabelEdit.  If the user calls BeginEdit in that event,
2449         it resets the edit_args.
2450         * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
2451         [Fixes bug #82577]
2453 2007-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
2455         * FolderBrowserDialog.cs: Modifies form caption and text of new folder
2456         button to match MS. Provide more meaningful exception message for
2457         invalid RootFolder value. Use zero-length string when SelectedPath
2458         is set to null. Allow non-rooted paths in SelectedPath, but ignore
2459         them in FolderBrowserTreeView. Allow folders to be created in
2460         RootFolder. Fixes bug #82576.
2462 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2464         * ListView.cs: Correctly compute the layout_ht (height) when using groups,
2465         since we need to take into account the group headers and the margin
2466         between them.
2467         * ListViewGroup.cs: Add a rows field to store the number of rows per
2468         group.
2470 2007-08-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2472         * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
2473           Anyways, let's just follow the lead.
2475 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
2477         * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
2478         * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored 
2479         controls in GetPreferredSizeCore.
2480         * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
2481         [Fixes bug #82488]
2483 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
2485         * PrintDialog.cs: Need to instantiate the form variable here too.
2487 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2489         * ListView.cs: Do some reorganization to support sorting in groups,
2490         by doing the layout sequentially in ListView.Items. Also add support
2491         for the Default Group, which should be available for items with no
2492         group assigned.
2493         * ListViewGroup.cs: Add support for DefaultGroup. Include new members
2494         for storing layout info also.
2495         * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
2496         collection, as well as providing internal members to do a traversal
2497         including the default group (needed when doing layout/drawing).
2498         * ThemeWin32Classic.cs: When drawing group headers use internal
2499         ListViewGroupCollection members to take into account the default
2500         group.
2502 2007-08-23  George Giolfan  <georgegiolfan@yahoo.com>
2504         * FlowLayoutPanel.cs: Add GetPreferredSizeCore.  [Fixes bug #82537]
2506 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
2508         * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
2509         been created.  If handle is created, we want arror keys.  If we are editing
2510         a node, we want things like enter, esc, home, end, page up, page down.
2511         Allows Esc to work for FolderBrowserDialog.
2513 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
2515         * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
2516         they close when ESC is pressed.  Thanks Andy!
2518 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
2520         * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
2521         This way we can tell if this is a CommonDialog provided with mono, or one
2522         that is being implemented outside by a developer.  If it is an external one,
2523         the developer is responsible for showing their own form.  We were showing
2524         our blank form after the developer showed his.
2525         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
2526         PageSetupDialog.cs: Instantiate form variable in our constructor.
2527         [Fixes bug #82531]
2529 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
2531         * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
2532         and always return true.  [Fixes bug #81616]
2534 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
2536         * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
2537         TextBox.  [Fixes bug #82549]
2539 2007-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
2541         * FileDialog.cs: When Save/Open is clicked and no filename is selected
2542         or entered then do not close the dialog. Fixes bug #82539. Removed
2543         CWLs.
2545 2007-08-22  Everaldo Canuto  <ecanuto@novell.com>
2547         * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
2548         code to this method. It is calling every time filter changes. This method
2549         will help to fix the bug #80887.
2551 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
2553         * CheckBox.cs: Implement AutoSize calculation.
2555 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
2557         * CheckBox.cs: Use new 2.0 rendering for 2.0.
2558         * Theme.cs: Method declarations for 2.0 rendering path.
2559         * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
2561 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2563         * ListViewGroupCollection.cs: Fix a typo of the previous patch.
2565 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2567         * ListViewGroupCollection.cs: Implement AddRange the right way, to
2568         only call Redraw on the parent one time.
2570 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2572         * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
2573           GetClipboardContent.
2574         * DataGridViewCell.cs: Implemented GetClipboardContent,
2575           GetEditedFormattedValue, GetFormattedValue.
2576         * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
2578 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
2580         * TableLayoutStyleCollection.cs: corcompare fix.
2582 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2584         * DataObject.cs: Implemented retrieval of convertible / not convertible
2585           objects.
2587 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
2589         * ToolStripItem.cs: When changing the item's text, invalidate before we resize
2590         ourselves.  This ensures the entire old bounds are repainted, in case our new
2591         size is smaller.  [Fixes bug #82518]
2593 2007-08-20  Everaldo Canuto  <ecanuto@novell.com>
2595         * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
2596         flag to make fast handle of mouse events, without this the mouse move is
2597         handled in some manner, whether it is a mouse move or not. Fixes #81588.
2599 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2601         * ListView.cs: When doing layout calculations don't use a ref
2602         param to keep the current item; instead use its Index value (this 
2603         is specially important when doing the layout with Groups
2604         and Items being sparse). Also don't take into account items added to
2605         the Group but not yet added to the main ListView.Items collection.
2607 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2609         * ListViewGroupCollection.cs: Forgot to mimic an issue
2610         in the indexer (don't assign the ListView owner for new values).
2612 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2614         * ListViewGroupCollection.cs: Make the string indexer use
2615         the int based indexer to re-use code, instead of duplicate the code.
2616         Also Redraw as needed and take into account null values.
2618 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
2620         * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
2621         [Fixes bug #82481]
2623 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
2625         * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
2626         when other buttons are clicked or navigated to.
2628 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2630         * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
2631           it's XplatUIX11 that attaches them.
2633 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2635         * DataGridView.cs: If a column has been added, recreate the editing row.
2636           Fixes #82226.
2638 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2640         * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
2641           of the tag to draw. Makes disappearing text show up again.
2643 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2645         * StatusBar.cs: Take into account any icons when a panel has AutoSize =
2646           Contents. Fixes #82487.
2648 2007-08-19  Andreia Gaita  <avidigal@novell.com>
2650         * Added HtmlElement.cs, HtmlElementCollection.cs, 
2651           HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
2652           
2653 2007-08-19  Andreia Gaita  <avidigal@novell.com>
2655         * BindingSource.cs: Implement this, dispose and getenumerator.
2656         * DataGridViewRowCollection.cs: Move the InvalidOperationException
2657         out of AddInternal, throw it only on public Add calls. The 
2658         UsingWebBrowser sample was blowing up with this when setting the
2659         DataSource after adding DataBindings, so it's likely that .net
2660         only throws this exception when Add is called directly. 
2661         
2662         * ToolStripControlHost.cs: Return the hosted control's text
2663         property, and not the ToolStripItem one (it would always return
2664         the initial value).
2665         
2666         * HtmlDocument.cs: Implement GetElementById and All
2667         * WebBrowser.cs: Remove exception on set_DocumentStream.        
2669 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
2671         * Form.cs: Fix the max and min value for opacity (0~1).
2673 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
2675         [Fixes #80118]
2676         * DataGridTableStyle.cs: Default header font is now null, on getter it 
2677         returns datagrid font when is null. On setter permits null.
2679         * DataGrid.cs:
2680         - When ResetHeaderFont set header font to null.
2681         - On EndInit set grid_style.DataGrid.
2683 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
2685         * TabControl.cs: Fix regression in default padding x.
2687 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
2689         * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
2691 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
2693         * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
2694         not 2. Fixes #82229.
2696 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
2698         * TabControl.cs: Fix tab size when image height is less than text height.
2699         Partially fixes #81837.
2701 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
2703         * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using 
2704         "alt + tab". It works only for Win32, for X11 theres no way to remove window
2705         from taskbar and keep it on "alt_tab". Fixes #81722.
2707 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
2709         * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
2710         and DrawReversibleLine, also apply same behavior to FillReversibleRectangle. 
2711         Fixes #80877 and #79418.
2713 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
2715         * MenuAPI.cs: Fix popup menu position when the size is larger than distance 
2716         between position and one of the screen borders. Fixes #82349.
2718 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
2720         * MessageBox.cs: When there is no form that invoked the MessageBox, shows
2721         the MessageBox in the taskbar. Fixes #82457.
2723 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
2725         * MessageBox.cs: Fix form size when icon is set and text height is bigger
2726         than icon. Fixes #82468.
2728 2007-08-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2730         * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
2731         * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
2732           if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
2733           Refactored HandleNCCalcSize somewhat to avoid code duplication.
2734         * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
2735           FormBorderStyle to decide if we're calculating a new size from the
2736           client size or not. CreateParams: Don't fake tool windows, only the X11
2737           backend manages toolwindows manually.
2739 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
2741         * Form.cs: Only reset is_visible if !IsDisposed to prevent an
2742         ObjectDisposedException.
2744 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
2746         * Form.cs: Reset is_visible back to true after OnLoad.  Setting this
2747         in OnLoad should not have any effect.  [Fixes bug #82470]
2749 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
2751         * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
2752         paint for controls that create their own ToolTipWindow instead of
2753         going through ToolTip.
2755 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
2757         * ToolTip.cs: Make Hide internal instead of public to match MS API.
2759 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2761         * ListViewGroupCollection.cs: Use generic List instead of an
2762         ArrayList, since this collection is 2.0 only.
2764 2007-08-17  Jeffrey Stedfast  <fejj@novell.com>
2766         * ToolTip.cs (Hide): Made public to make the build work (should
2767         this not be public?).
2769 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
2771         * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
2772         ToolTipWindow.
2773         * ToolTip.cs: Add an internal Visible property to facilitate transition.
2775 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
2777         * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
2778         PopupEventHandler.cs: Make these internal for 1.1.
2779         * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
2780         use ToolTipWindow internals.
2781         * ToolTip.cs: Add 2.0 modal Show methods.  Had to move a lot of stuff around to
2782         support this.  A lot of stuff in the ToolTipWindow got moved to the ToolTip.
2784 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2786         * X11Dnd.cs: Add a null check.
2788 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2790         * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
2791           nothing else succeeds. Fixes #82453.
2793 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2795         * XplatUIWin32.cs: PaintEventStart: validate the entire source client
2796           rectangle if we're painting to another window than the one the paint
2797           message was generated on. Simplify the code somewhat, which makes
2798           PaintEventEnd also simpler.
2800 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2802         * Control.cs: When changing parent of a form, let the form decide whether
2803           XplatUI.SetParent should be called or not.
2804         * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
2805           recreating the handle. If the new parent's handle isn't created, don't
2806           recreate our handle, just destroy it. CreateParams: Check if the
2807           parent's handle is created before fetching it.
2809 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2811         * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
2812           Update calls to PaintEventStart/End to take a Message argument.
2813         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
2814           take a Message argument.
2815         * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
2816           Message argument, and handle the case where we don't paint to the window
2817           for which the paint message was generated.
2819 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2821         * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
2822           Marshal.GetLastWin32Error. Plug nasty memory leak in
2823           PaintEventStart/End, we were creating a DC we weren't releasing.
2825 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2827         * ListView.cs: Add Groups support in Details view. Also have a small
2828         method to do the layout of the group header. Don't use a separate
2829         method to do the groups calculation in Icons view, since our methods
2830         are now a little simpler.
2831         * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
2832         `Bounds'.
2833         * ThemeWin32Classic.cs: Likewise.
2835 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
2837         * Application.cs: Add FilterMessage method and rework our message loop
2838         logic to use it.
2840 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
2842         * Application.cs: Add some methods and stub a few methods that are
2843         pretty much never used.
2845 2007-08-15  Jonathan Pobst  <monkey@jpobst.com>
2847         * TreeNode.cs: Add some serialization methods.
2849 2007-08-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2851         * ListView.cs: In ListViewItemCollection have a 
2852         'is_main_collection' field to not modify ListViewItem.ListView
2853         when using it as ListViewGroup.Items (and not ListView.Items)
2854         and also don't modify selection state (.Net behaviour). 
2855         Instead, set group for items contained in a ListViewGroup.Items collection.
2856         * ListViewItem.cs: Simplify some code in Group setter.
2857         * ListViewGroup.cs: use the new .ctor to pass the current instance
2858         to the ItemsCollection.
2859         * ListViewGroup.cs: Set the ListView property for ListViewGroup
2860         instances when adding/removing. Also make Remove use RemoveAt, which
2861         should perform better.
2863 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
2865         * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
2866         that crept into the 1.1 profile.
2868 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
2870         * ToolBarButton.cs: Implement ImageKey.
2872 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
2874         * ToolBar.cs: Implement ScaleControl/ScaleCore.
2876 2007-08-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2878         * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
2879           created, it might have gotten destroyed since we last checked. Fixes
2880           #82405.
2882 2007-08-11  Jonathan Pobst  <monkey@jpobst.com>
2884         * ToolTip.cs: Remove mouse in control check from mouseleave handler so
2885         tooltip will hide when mouse is moved off the control.
2886         [Fixes bug #82407]
2888 2007-08-11 Andreia Gaita <avidigal@novell.com>
2890         * WebBrowserBase.cs, WebBrowser.cs: add implementation
2891         using Mono.Mozilla for loading and navigating webcontrol
2892         with xulrunner.
2893         The initial implementation was done on 
2894         /trunk/mozembed/tests/browser , and copied here.
2896 2007-08-11  Gert Driesen  <drieseng@users.sourceforge.net>
2898         * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
2899         ToolTipWindow for drawing the tooltip. Fixes bug #82408.
2901 2007-08-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2903         * DataGridView.cs: Add support for an editing row. Fixes #82226.
2904           RowTemplateFull: throw an exception if a column doesn't have a template.
2905         * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
2906           add the row just before it.
2907         * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
2908           selected.
2909         * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
2910           DataGridView field to be able to reach the grid's editing row.
2912 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
2914         * ToolTip.cs: If the control's handle hasn't been created when it has a
2915         tooltip set on it, don't check to see if we need to show the tooltip.  This
2916         check was causing the control's handle to be created.
2917         [Fixes bug #82399]
2919 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
2921         * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
2922                                         1.1             2.0
2923         Handle Not Created      -1              0
2924         Handle Created          0               0
2925         [Fixes bug #82371]
2927 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
2929         * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
2930         [Fixes bug #82348]
2932 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
2934         * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
2935         * ToolTip.cs: Implement some properties and owner draw.
2937 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2939         * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
2940           show them again, since setting visibility causes a paint, causing an
2941           endless loop (instead use a temporary and set it all when it's known if
2942           they should be shown or not). Fixes #79265.
2944 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2946         * DataGridView.cs: Only do a full column/row selection if a header was
2947           clicked and we're in Column/RowHeader selection mode. If shift and ctrl
2948           isn't pressed, deselect everything before selecting something.
2950 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2952         * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
2953           behaviour according to bug #81075 - they are returned in the order they
2954           are selected. Fix HitTest to check if the point is within any of the
2955           headers. Allow for row/column selection when in ColumnHeader or
2956           RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
2957           the row and column to call when their selected state changes, and
2958           updated selected_[rows|columns] whenever SetSelected* is called.
2959         * DataGridViewBand.cs: Initialize isRow correctly. Call
2960           SetSelected[Row|Column]CoreInternal when the selected state changes, and
2961           add a SelectedInternal to avoid StackOverflows.
2962         * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
2963           ReadOnly no matter what.
2964         * DataGridViewSelectedColumnCollection.cs,
2965           DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
2966           the items in reverse order (just as MS does...)
2968 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
2970         * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
2971         itself, not part of a mnemonic.  [Fixes bug #82378]
2973 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2975         * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
2976         * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
2977           the DGV, the column, the row, or the cell itself is readonly.
2979 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
2981         * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
2982         OSVersion.Platform.
2983         * FileDialog.cs: Same.
2984         * TextRendered.cs: Same.
2985         * FolderBrowserDialog.cs: Same.
2986         * TextBoxBase.cs: Same.
2987         * Application.cs: Same.
2988         * Cursors.cs: Same.
2989         * ThemeClearLooks.cs: Same.
2991 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
2993         * XplatUI.cs: Added RunningOnUnix property to be used by controls
2994         instead of duplicating these checks everywhere.
2995         * FileDialog.cs: Use case-insensitive comparison for populating the
2996         DirComboBox when not running on unix. Fixes bug #82385.
2997         * OpenFileDialog.cs: to match MS, change label of DirComboBox to 
2998         "Look in".
3000 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3002         * DataGridView.cs: SelectedRows: we need to check if selectionMode is
3003           FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
3004           BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
3005           cell and column selection with ctrl and shift pressed. Call the correct
3006           BeginEdit/EndEdit whenever we start/end editing. Move painting code to
3007           the corresponding virtual method (PaintBackground to paint background,
3008           etc).
3009         * DataGridViewCell.cs: Implement Selected correctly, we're selected if
3010           either the column, row or the cell itself is selected.
3011         * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
3012           OnRowsAdded.
3013         * DataGridViewRow.cs: Moved some of the painting code from DataGridView
3014           here. When the row is selected, don't select all cells. Each cell now
3015           queries the row to see if the row is selected.
3017 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3019         * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
3020           SelectionMode.
3022 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3024         * ListView.cs: In ListViewItemsCollection check that owner is
3025         not null before trying to access it (this happens quite often
3026         using Groups). Also don't duplicate calls by calling CollectionChanged
3027         method.
3029 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
3031         * ToolStrip.cs: Record if we were activated by mouse or keyboard.  Redraw
3032         when we are dismissed to clear keyboard mnemonics.
3033         * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs, 
3034         ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
3035         * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
3036         was activated by keyboard or the OS tells us to always draw them.
3037         * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
3038         [Fixes bugs #82376, #82377]
3040 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
3042         * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a 
3043         shot at having it because Alt was pressed.
3044         * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
3045         the first real menu item.
3046         * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
3047         a mnemonic if Text is null.
3048         [Fixes bug #82374]
3050 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3052         * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
3053         search do check whether the item is already contained in the
3054         collection or not; instead check if the owner of the item is the same
3055         as ours. Also, remove a redundant check in the same method. 
3057 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
3059         * Control.cs: Allow the clip region to be set back to null.
3060         * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
3061         [Fixes button still showing up in bug #82370 when Show Through is turned off]
3063 2007-08-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3065         * GridEntry.cs: Add a null check.
3066         * PropertyGrid.cs: When checking for existing grid entries, ignore category
3067           entries. Fixes #82297.
3069 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
3071         * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
3072         for 2.0.
3074 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
3076         * ListBox.cs: Implement ScaleControl.
3078 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3080         * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
3081           have a menu strip.
3082         * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
3083           parent has a menu strip. Fixes #81689.
3085 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3087         * ToolTip.cs: We don't get mouse events on all platforms in the exact same
3088           moments, so apply some fuzzy logic to determine if the mouse is still
3089           inside a control or not. Fixes #82288 (for the third time).
3091 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3093         * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
3094           Don't create the child if it has been disposed already (may happen if
3095           the user closes the form the Load event).
3097 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3099         * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
3100           #82288.
3102 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3104         * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
3105           might call us after we've been destroyed, in which case our own private
3106           parent field is null. Fixes #82326.
3108 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
3110         * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
3111         check for setting the dropdown's owner.
3113 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
3115         * MdiClient.cs: Fix some failing tests on X11 by adding a null check
3116         before removing system menu items.
3118 2007-08-02  Jonathan Pobst  <monkey@jpobst.com>
3120         * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
3121         folding.
3122         * MdiControlStrip.cs: Added.  These are the menu items used in mdi
3123         folding.
3124         * ToolStrip.cs: Add a null check to mnemonics.
3125         * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
3126         no ConnectedArea.
3127         [Fixes most of bug #81689]
3129 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3131         * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
3133 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3135         Use InitialDelay if ReshowDelay is zero. Fixes #82288.
3137 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3139         * DataGridViewCell.cs: EditType: returns
3140           DataGridViewTextBoxEditingControl always.
3142 2007-08-01  Jonathan Pobst  <monkey@jpobst.com>
3144         * TextRenderer.cs: Remove the LineLimit string format flag from the
3145         DrawString fallback method so that things like buttons that aren't
3146         tall enough to draw a full line will still draw part of the text.
3147         [Fixes part of bug #82272]
3149 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3151         * DataGridView.cs: Implemented AutoResizeColumn(s).
3152         * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
3153           according to the Alignment.
3154         * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
3155           Implement alignment and padding when painting.
3156         * DataGridViewRow.cs: SetValues: Don't create a cell if it already
3157           exists.
3158         * DataGridViewCell.cs: Implement BorderWidths in the most primitive
3159           way.
3160         * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
3161           a column is added.
3163 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
3165         * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
3166         which is internal.
3168 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
3170         * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
3171         hide GetPreferredSize from public API.
3172         * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
3173         * ToolStripItem.cs: Stub out drag and drop methods and events.
3174         * ToolStripManager.cs: Stub out Save/LoadSettings.
3175         * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
3176         * ToolStripPanel.cs: Fix corcompare error.
3177         * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
3178         * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
3179         * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
3181 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
3183         * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
3184         bounds height instead of PreferredHeight.  Puts things back the way 
3185         they were for height while still fixing the width.  Fixes broken unit
3186         tests.
3188 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3190         * Binding.cs: Implement 2.0 constructors and add a null check.
3192 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3194         * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
3195           and fix row index (off by one).
3197 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3199         * PropertyGridView.cs: Remove debug output.
3201 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3203         * Control.cs: We need to reset the is_created flags when the handle is
3204           destroyed. Fixes #82187.
3205         * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
3206           client coordinates if the window doesn't have a parent.
3207           Win32GetParent returns the parent or the owner, and for top-level
3208           windows with no parent (but with an owner) we were calculating the
3209           location from the location of the owner.
3210         * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
3211           form has been disposed.
3212         * MdiClient.cs: Add a null-check.
3214 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
3216         * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
3217         actually do auto-sizing.  Override the internal GetPreferredSizeCore 
3218         so we can provide an implementation that returns the current width
3219         and preferred height.  Allows anchor = right to work with TextBox 2.0.
3220         [Fixes bug #82233]
3222 2007-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3224         * ListView.cs: Add support for navigating items in Groups mode, by
3225         creating a big matrix containing all rows and cols of all groups. When
3226         are in other mode than Details, pressing Up should have a similar
3227         behaviour as that one of Down (moving to the next available column if
3228         current one doesn't have an item in the requested row). Also, don't
3229         proceed to use groups if ShowGroups is false.
3230         * ListViewGroup.cs: Add an internal int field to store the starting
3231         row of the group (used by the big matrix used for navigating the
3232         ListView).
3233         * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
3234         false.
3236 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
3238         * ToolStripDropDown.cs: When we do Show, start with the 
3239         DefaultDropDownDirection, but if our popup menu is going to off-screen,
3240         modify the direction to keep it on screen.  [Fixes bug #82210]
3242 2007-07-29  Gert Driesen  <drieseng@users.sourceforge.net>
3244         * FileDialog.cs: Accept any FilterIndex value, and store it
3245         unmodified. When FilterIndex is less than 1, or greater than number
3246         of filters, then default to first filter. Only add filter extension to
3247         file if user did not specifiy an extension. When type of dialog is
3248         OpenFileDialog and DefaultExt is set, then only use filter extension
3249         if: CheckFileExists is true and no file wih the default extension
3250         exists, or CheckFileExists is false, and user specified file does not
3251         exist. When CheckFileExists is true, then add first extension of 
3252         selected filter that matches existing file. Perform checks for
3253         existing file, overwrite and create after extension has been added to
3254         file name. When CheckFileExists is true and type is SaveFileDialog,
3255         then only consider first filter extension if DefaultExt is set.
3256         When CheckFileExists is true, then ignore DefaultExt if file with that
3257         extension does not exist. Also perform check for existing file when
3258         type is SaveFileDialog. Changed some field to constants.
3260 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3262         * ListView.cs: Take into account the region used by header
3263         control when doing the vertical scroll (this way we invalidate
3264         the precise area, and don't get any dirty one).
3266 2007-07-27  Everaldo Canuto  <ecanuto@novell.com>
3268         * FileDialog.cs: Check for valid filterIndex on button open/save. 
3269         Fixes #82184.
3271 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3273         * ListView.cs: Update some layout calculations in details view
3274         and clean the code in a pair of assignations.
3276 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
3278         * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
3279         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
3280         MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
3281         ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
3283 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
3285         * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
3286         performance of thread-safe Graphic methods.  (Thanks rolf!)
3288 2007-07-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3290         * ListView.cs: When doing the layout calculations, don't calculate
3291         scroll bars before handle is created. This is unnecessary and also
3292         calculating them before handle creation item causes a number of random
3293         bugs (which begin to appear after Chris' big patch for handle creation
3294         fixes). 
3296 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
3298         * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
3299         for things that don't have a Graphics object.  Currently, things just use
3300         the static Hwnd.bmp_g which is not thread safe.
3302 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3304         * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
3305           dialog. Fixes #82187.
3307 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3309         * DataGridViewElement.cs: Initialize state.
3310         * DataGridView.cs: Forward a few Mouse events to cells. Add
3311           GetRowInternal and GetCellInternal that doesn't unshare rows.
3312           Implement GetCellDisplayRectangle. HitTest: if the row is shared,
3313           don't use the index, but look it up. Add
3314           DataGridViewControlCollection.RemoveInternal to remove controls
3315           that Remove won't remove (scrollbars, edit control).
3316         * DataGridViewColumn.cs: Initialize State correctly.
3317         * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
3318           DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
3319           implementing this.
3320         * DataGridViewRowCollection.cs: Implemented shared rows.
3321         * DataGridViewRow.cs: Throw exceptions as MS do.
3322         * DataGridViewCell.cs: A few properties are implemented by a
3323           Get<Property> method, so move implementation there and remove the
3324           NIEX in the method. Add a bunch of OnXInternal that DataGridView
3325           calls when necessary.
3326         * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
3327           complicates matters.
3328         * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
3329           unshare any rows.
3331 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
3333         * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
3334         the children controls.  Instead, we will just set up the proper docking for the
3335         children controls so we don't have to worry about it.  [Fixes bug #82188]
3337 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
3339         * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
3340         canceling and correct Before/AfterLabelEdit properties as layed out in bug
3341         81847.  [Fixes bug #81847]
3343 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
3345         * Label.cs: If AutoSize = true and a width or height is set, ignore it and
3346         redo the autosize.  VS2005 defaults to setting the AutoSize, and then setting
3347         an explicit size based on the design-time size of the text.  Since our fonts
3348         may not match this explicit size, we tend to cut off the ends of people's labels.
3350 2007-07-24  Jonathan Pobst  <monkey@jpobst.com>
3352         * Menu.cs: Add some missing methods to MenuItemCollection.
3354 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3356         * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
3357         * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
3358         * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
3359         * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
3360         * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
3361         * DataGridViewElement.cs: State defaults to Visible.
3362         * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
3363         * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
3365 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3367         * Control.cs: Minor 1.1 corcompare fix.
3369 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
3371         * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
3372         TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
3374 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3376         * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
3377           DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
3378           DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
3379           DataGridViewSelectedColumnCollection.cs,
3380           DataGridViewSelectedRowCollection.cs: Corcompare work.
3382 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
3384         * PrintDialog.cs: Stub UseEXDialog.  I chose to stub this because
3385         it is autoset by VS2005 designer and the effect is barely noticeable.
3387 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
3389         * TreeView.cs: Implement HitTest.
3391 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3393         * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
3394           manually adding and removing the control from the Controls
3395           collecftion.
3396         * DataGridView.cs: Implement DataGridViewControlCollection. Add an
3397           EditingControlInternal property that tracks the editing control.
3398           Always keeping the scrollbars in the Controls collection, as MS
3399           testing confirms is the right behaviour.
3401 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3403         * ScrollableControl.cs: Fix implementation of AutoScrollPosition
3404           according to MSDN and new test.
3406 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
3408         * TreeNode.cs: Implement ToolTipText.
3409         * TreeView.cs: Implement tooltips, NodeMouse* events.
3411 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
3413         * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
3415 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
3417         * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
3418         * TreeView.cs: Use the node's contextmenu[strip] if applicable.
3420 2007-07-20  Ivan N. Zlatev  <contact@i-nz.net>
3422         * Control.cs, Form.cs, ContainerControl.cs,
3423         ScrollableControl.cs, ButtonBase.cs:  Added ShouldSerialize
3424         for misc properties.
3426 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
3428         * TreeNode.cs: Implement StateImageIndex and StateImageKey.
3429         * TreeView.cs: Implement StateImageList.
3431 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3433         * Form.cs: Don't check if the current form is the active form before
3434           activating it. Fixes #81904.
3436 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3438         * Form.cs: Don't check if the current form is the active form before
3439           activating it. Fixes #81904.
3441 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3443         * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
3445 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3447         * Form.cs: Don't try to position the form after loading if the form was
3448           disposed. Fixes #81969.
3450 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3452         * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
3453           properties. Had to change ToolBar into ToolStrip, which required a
3454           few #ifs.
3456 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3458         * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
3459           resized, fixes part of #79829 (vertical lines in toolbar).
3460           PropertyGrid: Refactored Populate* to something that's easier to
3461           follow at least for me, as well as splitting it up into several new
3462           methods, required to update only subitems when something has
3463           changed by a popup editor or listbox. Don't use events to check
3464           when any values are changed, since the events are unreliable (we're
3465           changing the objects the events are registered with, and if the
3466           event handling requires the objects to be immutable (objects stored
3467           in hashtables for instance), the events will never be raised).
3468         * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
3469           everytime we change a value, since events are unreliable.
3470           DropDownButtonClicked: For the same reason don't compare objects to
3471           check if it has changed or not, it would require all objects to
3472           derive Equals. Fix dialog location on windows, MS is doing weird
3473           things when creating parented forms.
3474         * GridEntry.cs: Add a SelectedObject setter.
3476 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
3478         * TreeNode.cs: Add some corcompare attributes.
3479         * TreeNodeCollection.cs: Implement 2.0 stuffs.
3480         * TreeView.cs: Implement some 2.0 stuffs.
3482 2007-07-18  Andreia Gaita  <avidigal@novell.com>
3484         * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
3485         for moma.
3487 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
3489         * ListBox.cs: Implement custom tab offsets.
3491 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
3493         * ToolStripContentPanel.cs: Support System renderer.
3494         * ToolStripControlHost.cs: Set RightToLeft to default to No.
3496 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
3498         * ScrollableControl.cs: Don't mess up the user's explicit bounds.
3500 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
3502         * CheckBox.cs: Chain TextAlign to base implementation instead of
3503         maintaining another one.
3505 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
3507         * ButtonBase.cs: Fix an incorrect string constant.
3509 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
3511         * TextRenderer.cs: Use the static Graphics context in Hwnd instead
3512         of creating one for measuring strings.
3514 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
3516         * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs: 
3517         Implement MaxItemSize.
3519 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
3521         * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
3522         for DeviceContext.  Instead, use the static one available in Hwnd.
3523         Informal tests show this saves about 500k on formtest.exe.
3525 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
3527         * ContainerControl.cs: Implement 2.0 AutoScaling.
3529 2007-07-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3531         * ComboBox.cs: Work around bug #82120 (bug in mcs).
3533 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
3535         * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
3536         Darken the focus color.
3538 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
3540         * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
3541         for the checkbox.
3542         * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
3543         X, Y instead of a rect for drawing text.
3544         - For ControlPaint.DrawCheckBox, center the check a little better when the
3545         checkbox is odd width.  When drawing a flat checkbox, use a white background
3546         when state != inactive.
3547         [Fixes bugs #82097, 82100]
3549 2007-07-16  Gert Driesen  <drieseng@users.sourceforge.net>
3551         * ListControl.cs: When changing CurrencyManager, disconnect event
3552         handlers from previous one. Fixes bug #81771. Code formatting.
3554 2007-07-15  Andreia Gaita <avidigal@novell.com>
3556         * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
3557         full preview invalidation from layout invalidation, and only invalidate
3558         the layout when setting zoom or other properties. Invalidation should
3559         always be done even when resetting properties with the same values as
3560         what is there. Fixes #81744 and #79830.
3562 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3564         * ListView.cs: Implement initial support for Groups. Split some of the
3565         LayoutIcons code to render a partial list of the items (needed by
3566         items contained in ListViewGroup instances). Let the
3567         ListViewItemsCollection.ListView property be modifiable (needed when
3568         using Groups, too).
3569         * ListViewGroup.cs: Use a Bounds property rather than a Location
3570         one. Also invalidate the bounds when they get changed.
3571         * ThemeWin32Classic.cs: When drawing items, also draw the group header
3572         if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
3573         method as well.
3575 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3577         * ListView.cs: When space gets pressed and CheckBoxes is true, 
3578         don't invoke the Begin and EndUpdate methods. We are generating 
3579         a redraw of the entire control without need to do so.
3581 2007-07-13  William Holmes <billholmes54@gmail.com> 
3583         * Control.cs: Changing logic in FindFlatForward and 
3584           FindFlatBackward to handle multiple Controls with 
3585           the same TabIndex.  
3586           This fixes bug 81687.
3588 2007-07-13  Jonathan Pobst  <monkey@jpobst.com>
3590         * OSFeature.cs: Enable IsPresent.
3592 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3594         * Control.cs: Don't do anything in WmShowWindow if the control has been
3595           disposed. We can get WM_SHOWWINDOW after a control is disposed: a
3596           control is created, put on a form, the control is disposed (the
3597           form is never shown), and then we get a MapNotify, triggering a
3598           WM_SHOWWINDOW.
3599         * Form.cs: Exclude the current form when sending Deactivate to all
3600           MdiChildren.
3601         * NativeWindow.cs: Set WindowCreating to null as soon as possible,
3602           there was a race condition because assigning the handle raises
3603           events, we can get more messages, therefore trying to assign the
3604           handle again, which would fail if any of those event handlers
3605           closed/disposed the control.
3607 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3609         * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
3611 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
3613         * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
3614         XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
3616 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3618         * DateTimePicker.cs: If there's no part format specifier, return an
3619           empty string.
3621 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
3623         * FlatButtonAppearance.cs: Throw NotSupportedException for a
3624         Transparent BorderColor.
3626 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3628         * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
3629           MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
3630           X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
3631           LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
3632           LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
3633           TextBoxBase.cs, BindingNavigator.cs, Application.cs,
3634           ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
3635           Remove warnings.
3636         * X11Structs.cs: Remove warnings, add ToString implementations.
3638 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3640         * XplatUIX11.cs: Translate min/max size according to the actual min/max
3641           size, and not the current size. Fixes #81798.
3643 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3645         * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
3646           XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
3647           to the control yet).
3649 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3651         * PropertyGridTextBox.cs: Add a method that sends any forwarded
3652           mousedowns to the contained textbox.
3653         * X11Structs.cs: More ToString implementation.
3654         * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
3655           #81791.
3657 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3659         * PropertyGridView.cs: Add a null-check, fixes a few tests.
3661 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
3663         * TableLayoutPanelCellPosition.cs: TypeConverter.
3665 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3667         [ Fixes #79761]
3668         
3669         * PropertyGridTextBox.cs: Propagate any color changes to all contained
3670           controls.
3671         * PropertyGridView.cs: A few color fixes.
3673 2007-07-10  Jackson Harper  <jackson@ximian.com>
3675         * TextControl.cs: Remove some old unused text formatting stuff.
3677 2007-07-10  Jackson Harper  <jackson@ximian.com>
3679         * TreeView.cs: Update full row select invalidation to match the
3680         newer DrawSelection... method.
3681         - Make sure to invalidate the entire width when selecting a new
3682         node, if we have full row selection enabled.
3684 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3686         * PropertyGridView.cs: Fix for #81800, makes text show up on initial
3687           display of properties again.
3689 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
3691         * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
3692         to existing collections.
3694 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
3696         * AccessibleObject.cs, RadioButton.cs: Fix some base classes
3697         that changed between 1.1 and 2.0.
3699 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
3701         * PowerStatus.cs: Added.  This is just a data class, it is filled
3702         in by SystemInformation.
3704 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
3706         * Message.cs: Add op_Equality and op_Inequality.
3708 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
3710         * MenuStrip.cs: Finish corcompare work.
3712 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
3714         * LinkArea.cs: Add op_Equality and op_Inequality.
3716 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
3718         * Application.cs: Add MessageLoopCallback delegate.
3720 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
3722         * ListBox.cs: First set of 2.0 stuffs.
3724 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
3726         * Control.cs: Make an internal Height property we can override
3727         without messing up the public API.
3728         * ListBox.cs: Override HeightInternal to always return the size
3729         the user set.  [Fixes bug #80466]
3731 2007-07-08  Jonathan Pobst  <monkey@jpobst.com>
3733         * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
3734         paint cell borders if we haven't calculated where they go yet.
3735         [Fixes bugs #82040 and #82041]
3737 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3739         * ListView.cs: In Details view, set the location of item_control
3740         in the (0,0) position (and the header_control is thus on the
3741         item_control). This way the Bounds of the Items are relative to the
3742         ListView control (before this, they had a Bounds value without the
3743         header_control offset, which wasn't matching .Net). Fixes #82004.
3745 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3747         * ListControl.cs: When DataSource is set to null, pass an empty
3748         array of object to SetItemsCore. This is done to clean the items
3749         in the ListContol children. Fixes #81788.
3751 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
3753         * ListControl.cs: Add 2.0 stuffs.
3755 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
3757         * Label.cs: Finish up 2.0 stuffs.  Replace calls to Refresh with Invalidate,
3758         Refresh is overkill for just about every repaint request.
3760 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
3762         * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
3763         so remove my custom Get method and fix the property getter.
3765 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
3767         * Label.cs: DefaultMargin for 2.0.
3769 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
3771         * ComboBox.cs: Override IsInputCharInternal and return true.  Fixes 
3772         reported issue where other controls with mnemonics would steal strokes
3773         from a selected ComboBox.
3775 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
3777         * ScrollOrientation.cs: Make internal for 1.1.
3778         * ScrollEventArgs.cs: Add 2.0 stuffs.
3780 2007-07-05  Jonathan Pobst  <monkey@jpobst.com>
3782         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
3783         ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
3784         ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
3786 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3788         * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
3790 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3792         * ListView.cs: Implement the so-incredibly broken 2.0 
3793         VirtualItemsSelectionRangeChanged event.
3795 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3797         * ListView.cs: When enter is pressed and selection is non empty,
3798         an OnItemActivate event must be fired.
3800 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3802         * ListView.cs: Store the FocusedItem information as an
3803         int instead of a ListViewItem (needed by VirtualMode).
3804         Update the calls to SetFocusedItem to pass an index instead of
3805         an item.
3806         * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
3807         the Focused state from the owner ListView. 
3809 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3811         * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
3812         property. Also, invalidate previous focused item in the mentioned
3813         property (match .Net).
3815 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3817         * ListView.cs: Implement 2.0 FocusedItem property setter.
3819 2007-07-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3821         * ListView.cs: Implement 2.0 TopItem property setter.
3823 2007-07-03  Jonathan Pobst  <monkey@jpobst.com>
3825         * StatusStrip.cs: The default renderer is System.
3826         * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it 
3827         if the user specifies it.
3828         * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
3829         if we are ManagerRenderMode.
3830         * ToolStripMenuItem.cs: Calculate our text color better.
3831         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
3832         from Professional to the base class based off working with the System renderer.
3833         * ToolStripSystemRenderer.cs: Added.
3835 2007-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3837         * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
3839 2007-07-02  Jonathan Pobst  <monkey@jpobst.com>
3841         * ToolTip.cs: Implement 2.0 Tag property.
3843 2007-06-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3845         * ListView.cs: Implement 2.0 HitTest methods.
3847 2007-06-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3849         * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
3850         item is under the pointer or not (sugar). Also remove the TODO
3851         regarding to the cursor changes in OneClick activation.
3852         * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
3853         the subitems use the parent's HotFont if UseItemStyleForSubItems is
3854         true; otherwise don't show the underline style.
3856 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3858         * ListView.cs: In ItemControl.ItemsMouseMove, refactor
3859         the code to retrieve the item at position only one time. Also
3860         change cursor when Activation is ItemActivation.OneClick as well
3861         as invalidate the item if HotTracking is true (to show/hide the
3862         underline style). Add an internal HotItemIndex property to retrieve
3863         the current hot item's index.
3864         * ListViewItem.cs: Add an internal HotFont property to cache the
3865         font used when HotTracking is true and the pointer moves within the
3866         item's borders.
3867         * ThemeWin32Classic.cs: When drawing the item's text, use Font or
3868         HotFont depending on the hot state of the item.
3870 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3872         * ListView.cs: Implement 2.0 HotTracking property.
3874 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
3876         * ToolStripControlHost.cs: If our hosted control never got created,
3877         don't try to dispose it.  [Fixes bug #81909]
3879 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
3881         * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
3883 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
3885         * TableLayoutPanel.cs: Implement CellBorderStyle.  [Fixes bug #81884]
3887 2007-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3889         * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for 
3890         Details view.
3891         * DrawListViewColumnHeaderEventArgs.cs:
3892         * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
3893         using the DrawText () methods.
3895 2007-06-19  Jonathan Pobst  <monkey@jpobst.com>
3897         * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
3898         background which got erased in my changes yesterday.
3900 2007-06-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3902         * ListViewItem.cs: Actually set bounds for subitems in Details view
3903         (2.0 feature).
3904         * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
3905         can invoke from the owner draw routines if we need it. Also, add
3906         support for Owner draw in Details view.
3908 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
3910         * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
3911         ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
3912         ShowImageMargin setting, properly align text in a ToolStripLabel
3913         hosted on a ToolStripDropDown.
3915 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
3917         * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
3918         ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
3920 2007-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3922         * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
3924 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
3926         * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
3927         location to match ToolStripMenuItems.
3929 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3931         * DrawListViewColumnHeaderEventArgs.cs:
3932         * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
3933         column headers in ListView. 
3935 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
3937         * UserControl.cs: Implement AutoSize.
3939 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3941         * DrawListViewItemEventArgs.cs:
3942         * ListView.cs:
3943         * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
3944         ListView.
3946 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
3948         * ToolStripDropDownItemAccessibleObject.cs: Added.
3949         * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
3950         ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
3951         ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
3952         ToolStripTextBox.cs: corcompare work.
3954 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
3956         * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
3957         TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
3958         ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
3959                 corcompare.
3961 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
3963         * OSFeature.cs: Add IsPresent.
3964         * PrintPreviewControl.cs: Add RightToLeft.
3965         * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
3966         * SplitterPanel.cs: Add AutoSizeMode.
3968 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
3970         * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
3971         * MdiClient.cs: Add 2.0 ScaleControl.
3972         * NativeWindow.cs: Implement 2.0 interface IWin32Window.
3973         * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
3975 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
3977         * Form.cs: Implement some scaling methods, stub some RTL methods,
3978         corcompare work.
3980 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
3982         * Control.cs: corcompare work.
3983         * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
3985 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
3987         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
3988         ControlPaint 2.0 stuffs.
3990 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
3992         * ThreadExceptionDialog.cs: Add 2.0 stuffs.
3994 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
3996         * UpDownBase.cs: Add 2.0 stuffs.
3998 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
4000         * NumericUpDown.cs: Add 2.0 stuffs.
4002 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
4004         * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
4006 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
4008         * ErrorProvider.cs: Implement 2.0 stuffs.
4010 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
4012         * DomainUpDown.cs: Implement 2.0 stuffs.
4014 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
4016         * CheckedListBox.cs: Fix RefreshItems signature.
4018 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
4020         * PictureBox.cs: Implement 2.0 stuffs.
4022 2007-06-12  Andreia Gaita  <avidigal@novell.com>
4023         
4024         * TabControl.cs: Check if there are tabpages before checking
4025         the selected index - fix #81802 (font changes raise a ResizeTabs
4026         call on controls.add, which blew up nicely with no tabpages)
4028 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4030         * ListView.cs:
4031         * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
4033 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4035         * ListView.cs:
4036         * ListViewItem.cs: In VirtualMode the selection information
4037         resides in the ListView, rather than in the Items. Also, throw
4038         InvalidOperationExceptions when VirtualMode is being used and
4039         CheckedItemCollection is accessed.
4041 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
4043         * ComboBox.cs: Add ScaleControl.
4045 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
4047         * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
4049 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
4051         * GroupBox.cs: Add 2.0 stuffs.
4053 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
4055         * Panel.cs: Add autosize properties/event.
4057 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
4059         * Control.cs:
4060         - When we remove a control, remove it from the collection before performing the layout.
4061         - Setup an internal property for explicit_bounds.
4062         - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
4063         - Perform a layout when we set a new AutoSizeMode.
4065 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
4067         * ScrollableControl.cs: Add 2.0 stuffs.
4069 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
4071         * ScrollBar.cs: Add 2.0 stuffs.
4073 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
4075         * Splitter.cs: Add 2.0 stuffs.
4077 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
4079         * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
4080         to have BindingContext simply use base implementation.
4082 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
4084         * ColumnHeader.cs: corcompare fix.
4086 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
4088         * Button.cs: corcompare fixes.
4089         * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
4091 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
4093         * Button.cs: Override GetPreferredSizeCore.
4094         * ButtonBase.cs: PerformLayout after changing properties that can affect
4095         AutoSize.  Simplify some mouse/keyboard code.
4096         * Control.cs: PerformLayout after changing Padding if AutoSize = true.
4097         * MouseEventArgs.cs: Make Location internal for 1.1.
4098         * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
4099         * Theme.cs: Add CalculateButtonAutoSize.
4100         * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
4102 2007-06-05  Miguel de Icaza  <miguel@novell.com>
4104         * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
4106 2007-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4108         * ListViewItem.cs: We can't cache Bounds in VirtualMode 
4109         since we can get different item instances every time we retrieve it.
4111 2007-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4113         * ListView.cs: Work around for #81602, since an unkown an pretty
4114         infrequent condition appears only in some systems (old linux boxes, it
4115         seems).
4117 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
4119         * Button.cs: Completely reformat and a little refactor to bring
4120         this closer to Mono circa 2007.
4122 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
4124         * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
4125         to be ButtonBase.Invalidate.
4127 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
4129         * ButtonBase.cs: GetPreferredSize is 2.0 only.  Fixes build.
4131 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
4133         * ButtonBase.cs: Completely reformat and a little refactor to bring
4134         this closer to Mono circa 2007.
4136 2007-06-01  Everaldo Canuto  <ecanuto@novell.com>
4138         * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
4139         values for autosize. Fixes #80137.
4141 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
4143         * Control.cs: Don't perform layout when AutoSize changes.
4144         * Form.cs: Perform layout in AutoSize override.  Don't set ClientSize
4145         directly when autosizing, use SetBounds with BoundsSpecified.None.
4146         Fixes unit tests my last commit broke.
4148 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
4150         * Control.cs: Perform layout when AutoSize changes.
4151         * Form.cs: Implement AutoSizing.
4153 2007-06-01  Chris Toshok  <toshok@ximian.com>
4155         * DataGrid.cs: remove the XXX'ed check at the top of
4156         ProcessGridKey.  fixes #80464.
4158 2007-06-01  Chris Toshok  <toshok@ximian.com>
4160         * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
4161         adding idempotent (add/remove in Edit()), and also make sure we
4162         don't add it until after we set the text, so it's not tripped in
4163         Edit().  Fixes unit test regression.
4165 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
4167         * Control.cs: In UpdateBounds, only recalculate anchor distances if the
4168         change is user explicit, not when the layout engine moves stuff.  Fixes
4169         anchoring to bottom and right.  [Fixes bug #81790]
4171 2007-06-01  Andreia Gaita  <avidigal@novell.com>
4173         * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
4175 2007-06-01  Andreia Gaita  <avidigal@novell.com>
4177         * ContainerControl.cs: 
4178         Fire enter event for common ancestor if it is not a ContainerControl.
4179         Send focus to the active_control and not the 'value', the active 
4180         control might have been changed in one of the events fired.     
4181         Definitely fixes #80159.
4183 2007-06-01  Andreia Gaita  <avidigal@novell.com>
4185         * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
4187 2007-06-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4189         * PropertyGrid.cs: Anchor the help description to the bottom of the
4190           help panel and refactor SelectGridItem into a
4191           SelectGridItemInternal that can be set to null (and update it to
4192           clear the help texts when it is set to null). Set root item to null
4193           when there's no SelectedObject. Fixes #80438.
4194         * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
4195           when we're recalculating after a resize (only).
4197 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4199         * ListView.cs: Implement 2.0 RedrawItems method.
4201 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4203         * ListControl.cs: Disconnect PositionChanged and ItemChanged
4204         handlers from previous data manager when DataSource is set to
4205         null. Fixes #81771.
4207 2007-05-31  Jackson Harper  <jackson@ximian.com>
4209         * TextBoxBase.cs: These seem to be the correct values.
4211 2007-05-31  Everaldo Canuto  <ecanuto@novell.com>
4213         * FileDialog.cs: When close dialog with ok set filterindex using combobox
4214         value. Fixes #81784.
4216 2007-05-31  Jonathan Pobst  <monkey@jpobst.com>
4218         * Control.cs: Implement 2.0 scaling methods.
4220 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4222         * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
4223           MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
4224           corcompare issues.
4226 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4228         * ProgressBar.cs: Implemented missing 2.0 members.
4230 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4232         * Control.cs: Corcompare issues.
4233         * MessageBox.cs: Implemented missing 2.0 functions.
4235 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4237         * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
4238           Implemented more 2.0 members.
4240 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4242         * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
4243           null (strange, but it seems to happen when running unit tests).
4245 2007-05-30  Andreia Gaita  <avidigal@novell.com>
4247         * ContainerControl.cs: Set active_control even earlier, before 
4248         firing any events, and undo it if validation returns false.
4250 2007-05-30  Andreia Gaita  <avidigal@novell.com>
4252         * ContainerControl.cs: Raise Validation and Enter/Leave events
4253         even if there is no Form and set active_control earlier, just
4254         before firing Enter events (toshok's patches). Fixes #80647.
4256 2007-05-30  Jackson Harper  <jackson@ximian.com>
4258         * TextControl.cs: Redid the pageup/pagedown a little to simplify
4259         things and fix bug #81311.
4261 2007-05-30  Jackson Harper  <jackson@ximian.com>
4263         * X11Dnd.cs: Now that we have our own event loop, we need to
4264         cancel when we get a mouseup but it won't be accepted.
4266 2007-05-30  Chris Toshok  <toshok@ximian.com>
4268         * DataGrid.cs (set_CurrentCell): guard against negative
4269         column/row.
4271         * DataGridColumnStyle.cs (CheckValidDataSource): just use the
4272         array index syntax instead of looping over the property names.
4274         * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
4275         and set IsInEditOrNavigateMode to false there.
4277 2007-05-30  Jackson Harper  <jackson@ximian.com>
4279         * TreeView.cs: Make sure we don't get a bad visible order when
4280         setting to the top node.  Fixes some misc crashing in
4281         ControlInspector.
4283 2007-05-30  Andreia Gaita  <avidigal@novell.com>
4285         * UserControl.cs: Add 2.0 AutoSizeMode
4287 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
4289         * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
4291 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
4293         * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
4294         lines. Fixes #80285. 
4296 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
4298         * DataGridColumnStyle.cs: Add char trimming column header text format. 
4300 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
4302         * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name. 
4303         Fixes #80147.
4305 2007-05-29  Jackson Harper  <jackson@ximian.com>
4307         * TreeNode.cs: Fix off by one on calculating whether or not a node
4308         is visible.
4310 2007-05-29  Jonathan Pobst  <monkey@jpobst.com>
4312         * Control.cs: ResumeLayout(false) should recalculate anchor distances.
4313         * ScrollableControl.cs: Force an UpdateDistances when we move the
4314         scrollbars.
4315         [Fixes bug #80605]
4317 2007-05-29  Andreia Gaita  <avidigal@novell.com>
4319         * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
4320         update the page setup screen.
4322 2007-05-29  Andreia Gaita  <avidigal@novell.com>
4324         * PageSetupDialog.cs: Fix landscape mode.
4326 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4328         * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
4329         IconSizeHorizontalSpacing.
4331 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4333         * ListView.cs: The declaration of prev_tooltip_item should be inside
4334         a NET_2_0 conditional (avoid a warning).
4336 2007-05-28  Andreia Gaita  <avidigal@novell.com>
4338         * PageSetupDialog.cs: Implement PrintPreview control to display
4339         the preview thumbnail. Change unit conversion to use 
4340         PrinterUnitConvert methods.
4341         
4342         Note: there is a huge bug in ms.net where the default margins are 
4343         interpreted as centimeters (?), when in fact they are set in inches. When 
4344         loading the page setup dialog initially (ms.net), the default margins 
4345         are set to 1 inch, and the dialog shows them with value 10, when in fact 
4346         it should be 25 (properly converted). Our dialog doesn't have this bug.
4347         
4348         * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for 
4349         RectangleF.
4350         * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
4352 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4354         * ListView.cs:
4355         * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
4356         items.
4358 2007-05-28  Andreia Gaita  <avidigal@novell.com>
4360         * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
4361         an IntPtr on csc (it builds fine on mcs, could it be a compiler
4362         bug?), convert the ptr to Int32 first.
4364 2007-05-28  Jackson Harper  <jackson@ximian.com>
4366         * X11Dnd.cs: Add a timer, so after drop, if a finish is not
4367         recieved, we will exit the dnd tracking loop.
4369 2007-05-28  Jackson Harper  <jackson@ximian.com>
4371         * X11Dnd.cs: Keep tracking until the xdnd finished event is
4372         recieved. TODO: I should probably stick a timer on the dropped
4373         event, and finish the drag if the XDND Finished event never shows
4374         (because some apps don't seem to send it).
4376 2007-05-28  Everaldo Canuto  <ecanuto@novell.com>
4378         * ToolBar.cs: Fix toolbar default width for button with image. Fixes
4379         #81733.
4381 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4383         * MonthCalendar.cs: Only mark the keypresses we actually handle as
4384           handled.
4386 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4388         * MonthCalendar.cs: Set the size after initializing all the relevant
4389           variables. Fixes #81742.
4391 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4393         * KeyEventArgs.cs: Fix typo.
4395 2007-05-28  Gert Driesen  <drieseng@users.sourceforge.net>
4397         * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
4398         to match MS. Fixed MinDate to only accept value less than or equal
4399         to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
4400         Removed TODO's that are now verified by unit tests.
4402 2007-05-27  Gert Driesen  <drieseng@users.sourceforge.net>
4404         * TreeNodeCollection.cs: Minor corrections to exceptions to match
4405         MS.
4407 2007-05-25  Jackson Harper  <jackson@ximian.com>
4409         * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
4410         it's own message loop.
4411         * XplatUIX11.cs: Remove some of the dnd hooks
4413 2007-05-25  Gert Driesen  <drieseng@users.sourceforge.net>
4415         * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
4416         instead of MinimizedWindowSize.
4418 2007-05-25  Jackson Harper  <jackson@ximian.com>
4420         * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
4422 2007-05-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4424         * KeyEventArgs.cs: Added SuppressKeyPress.
4425         * Control.cs: Added support for SuppressKeyPress.
4427 2007-05-24  Andreia Gaita  <avidigal@novell.com>
4429         * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
4430         problems with PieChart. suppress_validation should not be a counter,
4431         if there are several BeginInit calls, the first EndInit will 
4432         activate validation. Fix exceptions thrown by set_Value.
4433         * UpDownBase.cs: ValidateText only if it's the user editing it.
4435 2007-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4437         * ListControl.cs: FilterItemOnProperty should return the filtered
4438         item proeprty even if DataSource is null. The same applies for
4439         GetItemText. Fixes #80427.
4441 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
4443         * Control.cs: If a control doesn't have a parent when it's Dock is
4444         set, but it has children, it needs to do a layout.  Fixes some nested
4445         controls issues.  [Fixes bug #81199]
4447 2007-05-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4449         * ComboBox.cs: If there are few items in the drop down list, make it
4450           the exact size the items need, no bigger. Fixes #81612.
4452 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
4454         * Application.cs: When we have captured the keyboard for a menu,
4455         check for mouse down events in case we need to close the menu.
4456         * Control.cs, Form.cs: Remove mouse down checks for menus.
4458 2007-05-24  Jackson Harper  <jackson@ximian.com>
4460         * TextControl.cs: Handle tabs in non multiline mode a little
4461         differently.
4463 2007-05-24  Jackson Harper  <jackson@ximian.com>
4465         * TextControl.cs: We need to manually break apart tabbed text and
4466         move the tabs, since the system.drawing tabbing mechanism relies
4467         on tab stops.
4468         * TextBoxBase.cs: Move the caret properly when the user enters a
4469         tab.
4471 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
4473         * ContainerControl.cs: Don't check CanSelect before calling
4474         ProcessMnemonic.
4475         * ToolStrip.cs: Only do implicit mnemonics on MenuStrips.  Don't
4476         release a KeyboardActive on click if it's not ours.
4478 2007-05-23  Andreia Gaita  <avidigal@novell.com>
4480         * ColumnHeader.cs: Add TypeConverter
4482 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
4484         * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
4486 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
4488         * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
4490 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
4492         * LinkLabel.cs: Implement public Padding property.
4494 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
4496         * LinkLabel.cs: Implement public FlatStyle.
4498 2007-05-23  Jonathan Pobst  <monkey@jpobst.com>
4500         * Control.cs: Apply patch from George to call parent.PerformLayout
4501         when Visible is changed.  [Fixes bugs #81118, 81718]
4503 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
4505         * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
4507 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
4509         * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
4511 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
4513         * ContextMenu.cs: Implement Collapse.
4515 2007-05-23  Rolf Bjarne Kvinge <RKvinge@novell.com>
4517         * ToolBarButton.cs: Implement Name.
4519 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
4521         * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
4522         use current_item, it prevents some NRE. Fixes #81675.  
4524 2007-05-22  Andreia Gaita  <avidigal@novell.com>
4526         * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
4527         without updating the text.
4529 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
4531         * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
4532         without calling DeleteObject.  [Should fix bug #81709]
4534 2007-05-22  Jackson Harper  <jackson@ximian.com>
4536         * RichTextBox.cs: Set the line endings correctly, when flushing
4537         RTF text.
4539 2007-05-22  Gert Driesen  <drieseng@users.sourceforge.net>
4541         * XplatUIX11.cs: MinimumWindowSize on X11 is actually
4542          {Width=0,Height=0}.
4544 2007-05-22  Jackson Harper  <jackson@ximian.com>
4546         * TreeView.cs: Setting top with a null node should set to the very
4547         top.
4549 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4551         * Form.cs: ShowDialog: destroy the handle when message loop is
4552           finished, matches MS behaviour. Refactor parts of WmClose into
4553           RaiseCloseEvents, that only raises events if they haven't already
4554           been raised. Fixes #81688 and #81521.
4555         * Application.cs: Don't call close on the form when exiting a modal
4556           loop, it will raise all the (Form)Closed/Closing events again if
4557           WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
4558           which doesn'r raise any events it they have been raised before.
4560 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
4562         * Control.cs: Add OnPrint.
4563         * ToolStrip.cs: Add GetChildAtPoint.
4564         * ToolStripContainer.cs: Add OnRightToLeftChanged.
4565         * ToolStripRenderer.cs: Make CreateMirrorImage internal.
4567 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
4569         * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.  
4571 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4573         * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
4574           isn't visible anymore. Fixes #81651.
4576 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4578         * Control.cs: WmShowWindow: Update children's z-order after setting
4579           their parent. SetParent may show the window, thereby corrupting
4580           z-order, since the window will be shown on top.
4581         * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
4582           multiple (and redundant) WM_SHOWWINDOW messages.
4583         * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
4584           event has already been raised.
4585         * Form.cs: Change is_changing_visible_state to a counter, since
4586           SetVisibleCore can be called recursively. CreateHandle: when
4587           creating mdi children, send (De)Activated events.
4588         * MdiClient.cs: Update use of is_changing_visible_state.
4589         * Application.cs: OnThreadException: Surround exception handling with
4590           try/finally to ensure we always reset the error-handling state
4591           before leaving.
4593 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4595         * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
4596           (#81704).
4598 2007-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4600         * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
4601         SmallIcon views, now that we have a standarized horizontal spacing.
4603         * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
4604         4, just like the other views (Match .Net).
4606 2007-05-21  Jonathan Pobst  <monkey@jpobst.com>
4608         * Control.cs: Delay calculating anchor distances until we actually layout.
4609         Always query the WM for the actual size and location it put us at instead of
4610         only when we send negative values.
4611         [Fixes bugs #81694, 81695]
4613 2007-05-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4615         * Application.cs: Avoid a possible stack overflow when trying to exit
4616           the application.
4618 2007-05-19  Marek Safar  <marek.safar@gmail.com>
4620         * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
4621         enum value.
4623 2007-05-19  Andreia Gaita  <avidigal@novell.com>
4625         * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
4626         * NumericUpDownAcceleration.cs, 
4627           NumericUpDownAccelerationCollection.cs: Added 2.0
4628           implementation.
4630 2007-05-19  Gert Driesen  <drieseng@users.sourceforge.net>
4632         * RichTextBox.cs: Recalculate the document after the ScrollBars
4633         property is changed. Fixes bug #81681.
4635 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
4637         * DataObject.cs: Implement 2.0 methods.
4639 2007-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4641         * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
4642         in the center of the checkbox, not in the left-top corner. 
4643         Fixes #80037.
4645 2007-05-18  Jackson Harper  <jackson@ximian.com>
4647         * RichTextBox.cs: Recalculate the document after the scrollbars
4648         property is changed.
4649         * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
4650         81486.
4652 2007-05-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4654         * CreateParams.cs: Make HasWindowManager marginally faster.
4655         * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
4656           into Hwnd so that other drivers can use it as well.
4657         * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
4658           the default location from Hwnd. Fixes MDI client windows always
4659           showing up at (0,0) in Windows (Win32 won't set the default
4660           location since the window styles aren't correct).
4662 2007-05-18  Gert Driesen  <drieseng@users.sourceforge.net>
4664         * TreeView.cs: Modified DoubleBuffered to just use the base
4665         implementation.
4667 2007-05-18  Jackson Harper  <jackson@ximian.com>
4669         * TreeView.cs: Set the top node to the last child node when
4670         expanding all
4671         - When we get focus, if there is no selected node, use the top
4672         node.
4674 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
4676         * KeysConverter.cs: Add CanConvertTo.
4677         * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
4678         * LinkConverter.cs: Added.
4680 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
4682         * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
4683         it prevents error when file dont have write access. Fixes #81669 and #81667.  
4685 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
4687         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar 
4688         button text. Fixes #79640.  
4690 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
4692         * Control.cs: According to MSDN controls created in the designer theres 
4693         keyboard accelerators visible by default. So included check for design
4694         in ShowKeyboardCuesInternal.  
4696 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
4698         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox 
4699         text. Fixes #81621.  
4701 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
4703         * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
4704         for 1.0, becuse ShowKeyboardCues is protected on 1.0.  
4706 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
4708         * Control.cs: Finish implementation of UI State using WmChangeUIState
4709         to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
4710         in some controls to check for show_keyboard_cues to draw accell keys "_".  
4712 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4714         * ListBox.cs: When calculating the horizontal scrollbar
4715         in single column mode, don't use values less than 0 for
4716         Maximum. Fixes #81474.
4718 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4720         * ListBox.cs: Throw the some missing exceptions in
4721         ListBox.ObjectCollection methods.
4723 2007-05-17  Jackson Harper  <jackson@ximian.com>
4725         * TextBoxBase.cs: Recalculate the document when the word wrap
4726         value has changed. This fixes 81488.
4728 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
4730         * Clipboard.cs: Implement missing GetText overload.
4732 2007-05-17  Chris Toshok  <toshok@ximian.com>
4734         * Control.cs (CheckDataBindings): remove the binding_context arg
4735         to binding.Check.
4737         * CurrencyManager.cs (OnItemChanged): fix this now that
4738         BindingManagerBase is fixed. also remove the comment telling where
4739         the fix should go.  We set transfering_data to true/false around
4740         the call to PushData to keep UpdateIsBinding from being called.
4741         (ListChangedHandler): remove the extra OnMetaDataChanged call for
4742         PropertyDescriptorAdded in the 1.1 case.  The extra call is
4743         actually generated by System.Data generating 2 metadata changed
4744         events of its own per column add.  The fix should go there.  Add a
4745         comment to that affect in our test's Assert.Ignore.
4747         * BindingManagerBase.cs: Rework PullData and PushData slightly.
4748         we keep a boolean flag (transfering_data) that keeps us from
4749         calling UpdateIsBinding multiple times if we re-enter either of
4750         them.
4752         * ControlBindingsCollection.cs (AddCore): remove the
4753         binding_context arg to binding.Check.
4755         * Binding.cs (IsBinding): don't check if we're binding here, just
4756         return our cached value.  we update it in UpdateIsBinding.
4757         (Check): don't take the binding_context arg, we'll just use our
4758         control's.  Also, for some reason MS doesn't use the data member
4759         field when getting the bindingmanager for this binding.  it just
4760         uses the datasource.  Make this method callable multiple times,
4761         and only do the is_null_desc stuff if manager.Position != -1 (so
4762         we don't get an exception accessing manager.Current).
4763         (UpdateIsBinding): move the code from IsBinding here.
4764         (PositionChangedHandler): call Check here to we can initialize
4765         things that require a non- -1 position.
4767 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
4769         * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
4770         control.
4772 2007-05-17  Andreia Gaita  <avidigal@novell.com>
4774         * TabControl.cs: Add 2.0 methods and events, including
4775         OnEnter / OnLeave and raises it for tabpages (fixes #79869)
4776         * TabPage.cs: Add 2.0 methods
4778 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
4780         * Control.cs: Implement WmUpdateUIState, show_focus_cues and
4781         keyboard_cues is properly handled by message method.  
4783 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
4785         * TreeViewImageIndexConverter.cs: Add 2.0 methods.
4787 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
4789         * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
4791 2007-05-16  Everaldo Canuto  <ecanuto@novell.com>
4793         * Control.cs: 
4794         - WmUpdateUIState added to handle state changes, it make call to
4795         OnChangeUICues event.
4796         - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
4797         SystemInformation.
4799 2007-05-16  Jonathan Pobst  <monkey@jpobst.com>
4801         * ImageKeyConverter.cs: Added.
4802         * TreeViewImageKeyConverter.cs: Added.
4804 2007-05-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4805         
4806         * ToolTips.cs: Update Text if SetToolTip is called for a control
4807         already showing the tooltip, as well as restarting its timer; show
4808         tooltip if we are inside the control bounds by the time of calling
4809         SetToolTip. Inside ShowTooltip remove the check to not show the 
4810         tooltip again for the active control (it is allowed by .Net to 
4811         show the tooltip on the same control multiple times).
4813 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4815         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
4817 2007-05-16  Andreia Gaita <avidigal@novell.com> 
4819         * ContainerControl.cs: only process tab key if there are no 
4820         modifier keys present, otherwise the control does the 
4821         tab processing, if it needs to. Fixes #81622
4822         * TabControl.cs: Fixes calculation for which tab to select on
4823         shift+ctrl+tab.
4825 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4827         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
4829 2007-05-15  Jonathan Pobst  <monkey@jpobst.com>
4831         * Control.cs: Make IsInputCharInternal to allow controls to
4832         override it and still match MS API.
4833         * TextBoxBase.cs: Override IsInputCharInternal and always
4834         return true.
4835         [Fixes bug #81616]
4837 2007-05-15  Jackson Harper  <jackson@ximian.com>
4839         * TextBox.cs: Disable some of the menu options when using a
4840         readonly textbox.
4842 2007-05-15  Jackson Harper  <jackson@ximian.com>
4844         * TextBox.cs:
4845         * TextBoxBase.cs:
4846         * RichTextBox.cs: Some new 2.0 methods
4848 2007-05-15  Gert Driesen  <drieseng@users.sourceforge.net>
4850         * FileDialog.cs: On 1.0 profile, do not support multidotted 
4851         extensions.
4853 2007-05-14  Jackson Harper  <jackson@ximian.com>
4855         * TextBoxBase.cs: Implement some of the new 2.0 methods.
4856         * RichTextBox.cs: We need to override these methods on 2.0.
4857         * MaskedTextBox.cs: These are implemented now
4858         * TextControl.cs: This was off by one.
4860 2007-05-14  Jackson Harper  <jackson@ximian.com>
4862         * TextControl.cs: Because the line endings are including in the
4863         text, we don't need to add them in anymore.
4865 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
4867         * ToolBar.cs: Fix autosize and get it working only after hadle is created,
4868         also prevent redraw in set_autosize if handle is not created. Fixes #81523.
4870 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
4872         * ToolBar.cs: Adjust size to default size when button theres no text and
4873         image, it fixes remaining issues from #81524.
4875 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
4877         * ToolBar.cs: 
4878         - When not flat call redraw to recalculate sizes on creare handle to match
4879         win32 behavior.
4880         - Revert 77220 because it causes some regressions in toobar
4881         button.
4883 2007-05-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4885         * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
4886           now actually enters a usable state.
4888 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
4890         * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
4891         calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
4892         3 buttons.
4894 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
4896         * ToolBar.cs: Save default_size on create handle to use later for buttons
4897         without text, needed to mimic win32 behavior.
4899 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
4901         * ToolBar.cs: Fix button layour to best fit width or height according to
4902         vertical or not. Fixes #81524.
4904 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
4906         * ToolBarButton.cs: When change style call ToolBar.Redraw to update
4907         toolbar size info because different styles theres different sizes.
4908         Fixes #81522.
4910 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4912         * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
4913         if we are using checkboxes, checked is true, and we have less
4914         than two images in StateImageList; for the 1.1 in the same scenario
4915         draw the first image if we have at least one image in StateImageList.
4916         Fixes part of #81191.
4918 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
4920         * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
4921         the owner's Items collection on merge.
4923 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
4925         * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
4926         * ToolStripItemCollection.cs: Lots of fixes to when events get called
4927         and parent/owner gets changed based on gert's unit tests.
4929 2007-05-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4931         * MaskedTextBox.cs: Started implementing parts of it.
4933 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4935         * ListView.cs: When clicking the checkbox on the items
4936         take into account the double clicks even if we have only
4937         one image in StateImageList (only for 1.0/1.1). Also 
4938         generate an extra change of checked state when we receive
4939         the second click on checkbox (match .Net behaviour). 
4940         Fixes part of #81191.
4942 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
4944         * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
4946 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
4948         * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
4949         even if OnLoad is overriden and base.OnLoad is not called.
4950         [Fixes bug #81582]
4952 2007-05-10  Andreia Gaita  <avidigal@novell.com>
4954         * TableLayoutSettings.cs: A big doh! fix and bowing down of head in 
4955         shame. (I blame my ever-persisting and annoying cold)
4957 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
4959         * ListView.cs: Don't eat navigation keys.  Let them flow through to
4960         KeyDown/KeyPress routines.  [Fixes bug #81569]
4962 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
4964         * ListView.cs: When handling keys for selecting the item based off
4965         keyboard input, do not consider keys pressed with Alt or Control.  Also,
4966         correctly handle keys when the Shift key is down. [Fixes bug #81578]
4968 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
4970         * Control.cs: When using UseWaitCursor, we have to store the requested
4971         Cursor to use when UseWaitCursor is turned off.
4973 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
4975         * Control.cs: Implement PreProcessControlMessage.  Default IsInputChar
4976         to false.
4977         * Application.cs: Use PreProcessControlMessage instead of
4978         PreProcessMessage.
4979         * PreProcessControlMessage.cs: Make internal for 1.1.
4981 2007-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4983         * Control.cs: Add InternalContains focus property, which hast the same
4984         functionality of ContainsFocus, but also including implicit controls.
4985         * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
4986         since we need to know if the focus is contained in our implicit
4987         ItemControl when calculating Layout. Fixes part of #80888.
4989 2007-05-08  Everaldo Canuto  <everaldo@simios.org>
4991         * ToolTip.cs: Remove center form string alignment as it must be align to
4992         left.
4994 2007-05-08  Jonathan Pobst  <monkey@jpobst.com>
4996         * ToolStripItemCollection.cs: Set the new item's parent and owner
4997         in Insert like we do in Add.  [Fixes bug #81568]
4999 2007-05-08  Jackson Harper  <jackson@ximian.com>
5001         * TreeView.cs: GotFocus differences between 1.1 and 2.0.
5002         - Off by one error in SetTop
5003         - Disable DoubeBuffering
5004         
5005 2007-05-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5007         * ScrollableControl.cs: ScrollIControlntoView: we now only move the
5008           control as much as necessary in order to make it entirely visible,
5009           instead of centering the control in the container (matches MS
5010           behaviour). CalculateCanvasSize: we need to take the current scroll
5011           position into account when calculating the maximum canvas,
5012           otherwise the following scenario will fail: resize so that the
5013           scrollbars appear, use the scrollbars to scroll, resize again
5014           smaller, and now the canvas size is too small. Recalculate: when
5015           showing scrollbars make sure they start off at 0, and try to scroll
5016           the active control into view. Fixes #79540. HandleScrollBar: don't
5017           scroll anywhere if the scrollbar isn't visible.
5019 2007-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5021         * ListView.cs: When focus changed, call Layout/Invalidate
5022         in the focused item to update the selected state (should show
5023         entire label when ListView is focused, and a part of it if is not).
5024         * ListViewItem.cs: When doing layout for LargeIcon, take into account
5025         for displaying the entire label not only the Focused state of the
5026         item, but also the Focused state of the ListView (match .Net
5027         behaviour).
5029 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
5031         * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
5032         Implement UseWaitCursor. 
5034 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
5035         Applying contributed patch from Sergey Volk.
5037         * Clipboard.cs: Implement SetDataObject retry logic and new overload
5038         of SetDataObject.
5039         * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
5041 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
5043         * Control.cs: Implement DrawToBitmap.
5045 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
5046         Applying contributed patch from Stefan Noack.
5047         
5048         * Control.cs: Add [Get|Set]AutoSizeMode.
5050 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
5052         * MdiClient.cs: Unmerge menus when the last child is closed.
5054 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
5056         * ToolStrip.cs: Do not call BeginMerge on DropDowns.
5057         * ToolStripManager.cs: Call Merge on DropDowns.
5058         [Fixes bug #81477]
5060 2007-05-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5062         * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
5063           uints.
5064         * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
5065           visibility. We can't create forms visible, since we have to set the
5066           owner before making the form visible (otherwise Win32 will do
5067           strange things with task bar icons). The problem is that we set the
5068           internal is_visible to true before creating the control, so
5069           is_changing_visible_state is the only way of determining if we're
5070           in the process of creating the form due to setting Visible=true -
5071           this works because SetVisibleCore explicitly makes the form
5072           visibile afterwards anyways. Fixes #80775.
5074 2007-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5076         * ThemeWin32Classic.cs: When drawing ListViewItems,
5077         use StringTrimming.EllipsisCharacter if the view is Tile, Details,
5078         or LargeIcon _and_ item is not focused (match .Net behaviour).
5080 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
5082         * Control.cs, Form.cs: Fix some obsolete method warnings.
5084 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
5086         * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
5087         * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
5089 2007-05-04  Andreia Gaita  <avidigal@novell.com>
5091         * ContainerControl.cs: Fix active_control attribution when going
5092         up the parent chain so that the first parent container gets the control
5093         and the rest of the parent containers get the child containers (skips
5094         non-containers). Fixes #80729
5096 2007-05-04  Randolph Chung  <tausq@debian.org>
5098         * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
5099         [Fixes bug #81499]
5101 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5103         * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
5104           takes a size parameter, since the CreateParam's size isn't true for
5105           minimized forms. Fixes #81518,
5107 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5109         * Form.cs: Add OnDeactivateInternal.
5110         * MdiClient.cs: Raise Deactivate event. Fixes #81409.
5112 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5114         * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
5115           accessing the parent. Fixes #81508.
5117 2007-05-03  Chris Toshok  <toshok@ximian.com>
5119         * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
5120         2.0 block, pass listposition + 1 to ChangeRecordState when a row
5121         was added before the current listposition.  Fixes the
5122         TestInsertRowBeforeCurrent unit test.
5124 2007-05-03  Jonathan Pobst  <monkey@jpobst.com>
5126         * Application.cs: Add RaiseIdle.
5127         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
5128         XplatUIX11.cs: Implement RaiseIdle.
5130 2007-05-02  Jonathan Pobst  <monkey@jpobst.com>
5131         corcompare work: N - Z
5132         * NotifyIcon.cs
5133         * ProgressBar.cs
5134         * RadionButton.cs
5135         * ScrollableControl.cs
5136         * SplitContainer.cs
5137         * SplitterPanel.cs
5138         * StatusBar.cs
5139         * SystemInformation.cs
5140         * TabControl.cs
5141         * TableLayoutControlCollection.cs
5142         * TableLayoutPanel.cs
5143         * TabPage.cs
5144         * ToolBar.cs
5145         * ToolBarButton.cs
5146         * ToolStrip.cs
5147         * ToolStripComboBox.cs
5148         * ToolStripContainer.cs
5149         * ToolStripContentPanel.cs
5150         * ToolStripDropDown.cs
5151         * ToolStripDropDownItem.cs
5152         * ToolStripDropDownMenu.cs
5153         * ToolStripItem.cs
5154         * ToolStripItemCollection.cs
5155         * ToolStripMenuItem.cs
5156         * ToolStripPanel.cs
5157         * ToolStripSplitButton.cs
5158         * ToolTip.cs
5159         * TreeNode.cs
5160         * TreeNodeCollection.cs
5161         * TreeNodeMouseHoverEventArgs.cs
5162         * TreeView.cs
5164 2007-05-01  Everaldo Canuto  <everaldo@simios.org>
5166         * ContextMenu.cs: Add public method Show with alignment property to 2.0
5167         stuff. Thanks aatdark for the patch. 
5169 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
5171         * GridItem.cs: Implement 2.0 Tag property.
5173 2007-05-01  Frederik Carlier <frederik.carlier@carlier-online.be> 
5175         * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
5176         count instead of Nodes.Length.  [Fixes bug #81448]
5178 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
5180         * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
5181         [Fixes bug #81506]
5183 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
5184         corcompare work: A - M
5185         * BindingNavigator.cs
5186         * Button.cs
5187         * ButtonBase.cs
5188         * CheckBox.cs
5189         * Control.cs
5190         * FlowLayoutPanel.cs
5191         * Form.cs
5192         * Label.cs
5193         * LinkLabel.cs
5194         * ListView.cs
5196 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
5198         * Application.cs: Give toolstrips a chance to process mnemonics.
5199         * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
5200         ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
5201         ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
5203 2007-05-01  Jackson Harper  <jackson@ximian.com>
5205         * TextBoxBase.cs: Better preferred height, FixedSingle gets the
5206         wider area too.
5207         - Don't set the BoundsSpecified
5209 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
5211         * Application.cs: When using the toolstrip shortcut mechanism, allow the
5212         message to pass through to a regular control if it hosted by a toolstrip.
5213         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
5214         ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
5216 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
5218         * TextRenderer.cs: Use the flags argument when using the MeasureString
5219         fallback algorithm.
5221 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
5223         * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
5224         the MDI menu item.  [Fixes bug #81483]
5226 2007-04-30  Gert Driesen  <drieseng@users.sourceforge.net>
5228         * DataGridViewColumn.cs: Initialize value of headercell to zero-length
5229         string. When setting Name to null, use zero-length string instead.
5231 2007-04-29  Andreia Gaita  <avidigal@novell.com>
5233         * TabControl.cs: Implement missing 2.0 methods (SelectTab, 
5234         DeselectTab). Implement missing 2.0 TabPageCollection methods
5235         (Add, ContainsKey, RemoveByKey, IndexOfKey)
5237 2007-04-29  Pedro Martínez Juliá  <pedromj@gmail.com>
5239         * DataGridViewColumn.cs: Make HeaderText take preference over Name.
5241 2007-04-29  Gert Driesen  <drieseng@users.sourceforge.net>
5243         * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
5244         Fixes bug #81479. Include details of exception when LoadFile fails.
5246 2007-04-28  Alan McGovern <alan.mcgovern@gmail.com>
5248         * DrawListViewSubItemEventArgs.cs: Added missing setter
5250 2007-04-27  Andreia Gaita  <avidigal@novell.com>
5252         * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and 
5253         Hide methods (not complete). Implement missing 2.0 OnPopup event.
5255 2007-04-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5257         * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
5258         removed in ly last commit (it was breaking the Label edit feature).
5260         * ThemeWin32Classic.cs: When drawing a ListViewItem use
5261         StringAlignment.Near for LineAlignment (match .Net).
5263 2007-04-27  Andreia Gaita  <avidigal@novell.com>
5265         * TabControl.cs: Change SetTab so it adds the tabpage to the list
5266         of controls if it isn't already there - was blowing up when doing
5267         tabcontrol.TabPages[i]=new TabPage(). 
5268         SetTab now does a replace by removing the page at the index. 
5269         Add a new InsertTab method that inserts a page in a given index 
5270         instead of replacing. 
5271         Implements TabPageCollection.Insert(int, TabPage).
5273 2007-04-27  Chris Toshok  <toshok@ximian.com>
5275         * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
5276         internal handler that can be invoked from our subclasses.)  Also,
5277         add a comment to PushData about how we need to fix it.
5279         * CurrencyManager.cs: tons of changes here.  trying to get things
5280         matching the behavior of .net wrt event orders (ItemChanged,
5281         CurrentChanged, PositionChanged.)  I've implemented a private .net
5282         symbol (ChangeRecordState) that appears in stack traces because
5283         it's actually easier to do this than to effective inline all its
5284         various behaviors at every call site.
5286         * RelatedPropertyManager.cs: guard against an exception here by
5287         not using parent.Current if the position is set to -1 (if the
5288         parent datasource is cleared, for instance).
5290         * Binding.cs: don't parse data in PushData (this might be wrong,
5291         but it jives with MS's behavior.)  Also, don't call PushData when
5292         we get a CurrentChanged event.
5294 2007-04-27  Andreia Gaita  <avidigal@novell.com>
5296         * WebBrowser.cs,
5297           WebBrowserBase.cs,
5298           WebBrowserSiteBase.cs,
5299           HtmlDocument.cs: Added stubbed out classes, no real implementations 
5300           yet.
5302 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
5304         * MainMenu.cs: In draw method without parameters call draw method with 
5305         PaintEvent, another one (just rect) adjust rectangle and we dont need it
5306         as Rect property is already adjusted. Fixes #80694.
5308 2007-04-27  Jonathan Pobst  <monkey@jpobst.com>
5310         * Application.cs: Need to handle keyboard menu deselection here.
5311         * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
5312         navigation, allowing keyboard to work on X11.
5313         * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
5315 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
5317         * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
5318         menu bar. It fixes some drawing issues in menu bar.
5320 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
5322         * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before 
5323         Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
5324         when <alt> key is pressed.
5326 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
5328         * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries,     Gtk as 
5329         example just set visible to false and make this prevent from other problems.
5330         In SystrayAdd always remove pending expose. Fixes #81072.
5332 2007-04-26  Marek Safar  <marek.safar@gmail.com>
5334         * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
5335         value is set.
5337 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
5339         * ListView.cs: Added three missing 2.0 events and corresponding
5340         EventHandlers. Added the OwnerDraw property.
5341         * DrawListViewColumnHeaderEventHandler.cs: fixed typo
5343 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
5345         * DrawListViewItemEventArgs.cs
5346         * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
5348 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
5350         * TextControl.cs: Fixed typo in constructor
5352 2007-04-26  Jonathan Pobst  <monkey@jpobst.com>
5354         * Application.cs: Create a shortcut path so that currently selected
5355         MenuStrips can intercept keyboard events without having focus.
5356         * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
5357         * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
5358         ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
5359         keyboard navigation (arrows, tab, enter, esc) on Windows.  Still need to
5360         generate WM_SYSCOMMAND message in X11 for other platforms.
5361         * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
5362         in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
5363         * ToolStripSplitButton.cs: Add DefaultItem property.
5364         
5365 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
5367         * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
5368         fixes some menu draw problem on Windows with border diferent from default
5369         it also fixes #81403.
5371 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5373         * Form.cs: Refactor WndProc into separate methods, just like Control is
5374           doing it.
5376 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5378         * Control.cs: set_Text: move the call to the driver into a seperate
5379           virtual method so that Form can override it.
5380         * MaskedTextBox.cs: Corcompare fixes.
5381         * Form.cs: Override UpdateWindowText and only update the styles if the
5382           form has been shown (fixes #81405).
5384 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
5386         * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
5387         WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
5388         WM_ACTIVATEAPP.  This fixes menus not disappearing on X11 when
5389         the form lost focus or another control was clicked.
5391 2007-04-25  Gert Driesen  <drieseng@users.sourceforge.net>
5393         * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
5394         fixed.
5396 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5398         * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
5399           DrawListViewItemEventHandler.cs,
5400           DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
5401           Added.
5402         * X11Structs.cs: More ToString implementation.
5404 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
5406         * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
5407         * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
5409 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5411         * Control.cs: Only raise OnVisibleChanged if we're not recreating the
5412           handle.
5413         * FormCollection.cs: Don't add a form if it's already in the
5414           collection.
5415         * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
5416           according to behaviour and MSDN. The ownerWin32 is the active
5417           window at the moment when we call ShowDialog, not the context's
5418           main form (the context's main form may open another form that opens
5419           a form with ShowDialog, the win32 owner is the second form). Add
5420           and remove forms to the Application.OpenForms in other places to
5421           better match MS behaviour. Add an IsActive property that raises
5422           On(de)Activated only if the active state has changed (we were
5423           raising OnDeactivated before OnActivated while creating forms).
5424         * Application.cs: Refactor Enabling/Disabling of windows for modal
5425           dialog loops out to separate methods, and restore the thread
5426           context when we quit the method. Fixes #81407.
5428 2007-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5430         * ListView.cs: In ItemControl.HandleClicks, also fire 
5431         2.0 MouseClick or MouseDoubleClick events on the parent,
5432         not only the Click/DoubleClick events.
5434 2007-04-24  Andreia Gaita  <avidigal@novell.com>
5436         * TableLayoutSettings.cs: 
5437         - Added a GetControls method and a support structure to help the 
5438         TypeConverter to enumerate the controls for     serialization. 
5439         - Added a new serialization constructor. 
5440         - Added a isSerialized flag initialized to true on the 
5441         serialization constructor so that the TableLayoutPanel.LayoutSettings 
5442         setter does not throw the designed NotSupportedOperation exception
5443         when the object is built through deserialization.
5444         - Implemented GetObjectData
5445         
5446         * TableLayoutPanel.cs: Added check on LayoutSettings.
5448 2007-04-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5450         * ListView.cs: Report Click and DoubleClick events to the parent
5451         from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
5452         from breaking the click count state when using dialog forms (Control
5453         reports the clicks in a similar fashion). In the previous behaviour
5454         the last WM_LBUTTONUP message in a  double click was sent to the
5455         ListView's form, instead of the ListView, which was breaking the click
5456         count for it. Fixes #80387.
5458 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
5460         * BindingNavigator.cs : fixed bugs revealed by new nunit tests
5462 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
5464         * ToolStripDropDownItem.cs: Lazy initialize the DropDown.  This prevents
5465         us from created dropdowns for menu items that do not have subitems.
5466         * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
5467         Check HasDropDownItems before calling DropDown so a dropdown will not be
5468         created if it isn't needed.
5470 2007-04-24  Jackson Harper  <jackson@ximian.com>
5472         * TreeView.cs: Set the first node to the selected node when we get
5473         focus if there is no selected node.
5475 2007-04-24  Andreia Gaita  <avidigal@novell.com>
5477         * MimeIcon.cs: remove using blocks so that image streams are
5478         not disposed of. Fixes #80151
5480 2007-04-24  Jackson Harper  <jackson@ximian.com>
5482         * TextBoxBase.cs: Fixup the height of textboxes when the control
5483         is created.
5485 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
5487         * ToolStrip.cs: Fully implement GetNextItem.  Call OnParentRightToLeftChanged
5488         for each ToolStripItem when the parent's RightToLeftChanged is called.
5490 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5492         * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
5493           Fixes #80163.
5494         * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
5495           property, so that the setter can be overriden too.
5496         * TextBox.cs: Change GetContextMenuInternal() to use
5497           ContextMenuInternal.
5499 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5501         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
5502           #81406.
5504 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5506         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
5507           #81406.
5509 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5511         * MaskedTextBox.cs: Commit this so nobody else starts working on it and
5512           avoid duplicate work. Mostily skeleton code, it's not working at
5513           all yet.
5515 2007-04-20  Leszek Ciesielski <skolima@gmail.com>
5517         * NotifyIcon.cs : stub for MouseClick event
5518         * Application.cs: stub for SetUnhandledExceptionMode
5520 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
5522         * BindingNavigator.cs : Initial (partial) implementation
5524 2007-04-23  Jackson Harper  <jackson@ximian.com>
5526         * TreeView.cs: Do not create the treeview's handle when setting
5527         the scroll position.
5528         - ExpandAll needs to compute the scrollbars so it knows which
5529         position to set the bar too.
5530         * TreeNode.cs: 
5531         * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
5533 2007-04-23  Jackson Harper  <jackson@ximian.com>
5535         * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
5536         key. Fixes #81408.
5538 2007-04-23  Jonathan Pobst  <monkey@jpobst.com>
5540         * ToolStripItem.cs: Make GetImageSize internal.
5541         * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
5542         need to draw an item.  Fixes a reported issue where images on menus
5543         that were not 16x16 were drawing incorrectly.
5545 2007-04-21  Miguel de Icaza  <miguel@novell.com>
5547         * Padding.cs: Use the converter, fixes the resgen2 issue with
5548         XMLNotePad. 
5550 2007-04-21  Jackson Harper  <jackson@ximian.com>
5552         * TreeView.cs: Dont try to unhighlight the selected node if there
5553         isn't a selected node.
5555 2007-04-21  Jackson Harper  <jackson@ximian.com>
5557         * UpDownBase.cs:
5558         * TextBoxBase.cs:
5559         * ListView.cs:
5560         * ListBox.cs:
5561         * TreeView.cs: Use the InternalBorderStyle property to set the
5562         initial border style, this forces the client rectangle to be sized
5563         correctly.
5565 2007-04-20  Jackson Harper  <jackson@ximian.com>
5567         * TreeView.cs: Simplify scrolling to the last node after expanding
5568         all.
5569         - Fix some off by ones with setting the bottom.
5571 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
5573         * Control.cs: Use DefaultSize for Size, calculate ClientSize from
5574         that.  We were incorrectly doing it the other way around.  Also,
5575         update ClientSize if we change the BorderStyle before the control
5576         is created.
5578 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
5580         * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
5581         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
5582         XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
5583         * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
5584         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
5585         Caption to CaptionHeight.
5586         * XplatUIX11.cs: Renamed Caption to CaptionHeight.
5587         * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
5588         and FixedFrameBorderSize to return value from current XplatUI driver.
5589         * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
5590         CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
5591         and FixedFrameBorderSize using win32 API. Renamed Caption to
5592         CaptionHeight.
5593         * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
5594         * SystemInformation.cs: Fixed typo in BorderSize.
5596 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
5598         * XplatUI.cs: Added MenuAccessKeysUnderlined.
5599         * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
5600         * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
5601         returning false.
5602         * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
5603         value from XplatUI driver.
5604         * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
5605         SystemParametersInfo.
5606         * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
5607         override.
5608         * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
5609         returning false.
5611 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5613         * XplatUIX11.cs, Hwnd.cs: Remove warnings.
5615 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5617         * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
5619 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
5621         * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
5622         MenuStrips that contain ToolStripSeparators.
5624 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5626         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
5627           DefineStdCursorBitmap.
5628         * Cursor.cs: Add an internal constructor so that the Cursor knows if it
5629           has been created off a standard cursor. This is used to get a
5630           bitmap of the standard cursor when Draw or DrawStretched is called
5631           in order to draw the cursor.
5632         * X11Structs.cs: Added XcursorImage and XcursorImages.
5633         * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
5634           DefineStdCursorBitmap.
5635         * Cursors.cs: Update all relevant creations of Cursor to use the new
5636           internal constructor.
5638 2007-04-19  Jackson Harper  <jackson@ximian.com>
5640         * TextBox.cs: Move the has_been_focused into the base control, so
5641         some of the text adding methods can manipulate it (probably time
5642         for a better name for this flag too).
5643         - Call a new version of selectall that doesn't scroll
5644         * TextBoxBase.cs: When we append text, if the document is empty,
5645         don't scroll.  If the document has text already, we scroll to the
5646         end of the appended text.
5647         - When the text is changed, we reset the has_been_focused, so the
5648         next time the control gets focused, all the text is selected.
5650 2007-04-19  Jackson Harper  <jackson@ximian.com>
5652         * TextControl.cs: Move the margins to the document, add a method
5653         so the margin sizes can be updated.
5654         * TextBoxBase.cs: When the border style is changed, update the
5655         border sizes.
5657 2007-04-19  Jonathan Pobst  <monkey@jpobst.com>
5659         * Control.cs: Respect DefaultPadding.
5660         * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
5661         padding into account.
5662         * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.        
5664 2007-04-19  Jackson Harper  <jackson@ximian.com>
5666         * TextControl.cs: Oops, we need to use the ClientRect not the
5667         bounds here.
5669 2007-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5671         * ListView.cs: In ItemControl.ItemsMouseDown, take into
5672         account the double clicks when CheckBoxes are used and
5673         the pointer is inside the checkbox. Fixes part of #81191.
5675 2007-04-18  Jackson Harper  <jackson@ximian.com>
5677         * TextControl.cs: Pressing the end key shouldn't move the caret
5678         past the line ending.
5679         * TextBoxBase.cs: We can still delete if we are in the line
5680         ending and the combine will just kill the existing line ending.
5682 2007-04-18  Jackson Harper  <jackson@ximian.com>
5684         * TextControl.cs: We can't move lines, then invalidate their
5685         bounds, we need to get the old bounds and combine that with the
5686         new bounds.
5687         * TextBoxBase.cs: Before combining two lines for a delete, we need
5688         to invalidate the area of the old line, since that will be moved
5689         in the combine operation.
5691 2007-04-18  Everaldo Canuto  <everaldo@simios.org>
5693         * LinkLabel.cs: In OnPaint invoke draw background to fix problems
5694         with transparent background. Fixes #80482.
5696 2007-04-18  Jonathan Pobst  <monkey@jpobst.com>
5698         * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
5699         * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
5700         [Fixes bug #81391]
5702 2007-04-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5704         * CreateParams.cs: Add a couple of helper methods and do a less string
5705           concatenation in ToString.
5706         * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
5707           overload that takes a Control parameter, since this method may be
5708           called before a control is assigned to the hwnd (from
5709           CreateWindow), and update CreateWindow to use the new overload. In
5710           GetMenuOrigin subtract the title bar from the y position if the
5711           form has a window manager (since we're painting it and not X).
5712         * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
5713           CreateParams to calculate the origin (since border sizes may vary).
5714           In ScreenToMenu only subtract the title height if we actually have
5715           a title.
5716         * MdiWindowManager.cs: Override MenuHeight to always return 0, since
5717           mdi children never have menus of themselves.
5718         * InternalWindowManager.cs: Implement menu handling like form does.
5719           Added GetMenuOrigin to calculate the menu origin, can't use the
5720           CreateParams from the form like normally since it's lying.
5721         * Hwnd.cs: Implement GetBorderSize better (in the sense more
5722           windows-like) and add Inflate and comparison operators to the
5723           Borders type. When calculating MenuOrigin and it's a form with a
5724           window manager, use the window manager to calculate it.
5726 2007-04-17  Chris Toshok  <toshok@ximian.com>
5728         * Control.cs (CreateControl): turns out in 2.0 we don't need this
5729         OnBindingContextChanged thing here.  It's only generated from
5730         ContainerControl.OnCreateControl.  Fixes a newly written unit test
5731         - BindingTest.BindingContextChangedTest4.
5732         
5733 2007-04-17  Jackson Harper  <jackson@ximian.com>
5735         * ScrollBar.cs: When setting values, make sure the current
5736         position stays within the new values range.
5738 2007-04-17  Chris Toshok  <toshok@ximian.com>
5740         * Control.cs (CreateControl): talk about a bizarre corner case.
5741         Don't emit OnBindingContextChanged here if we're a parentless
5742         control (i.e. if we're a form.).  Fixes
5743         BindingTest.BindingContextChangedTest2.
5745 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
5747         * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior 
5748         from win32. Fixes #81255.
5750 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
5752         * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
5753         already present in CalculateButtonTextAndImageLayout.
5755 2007-04-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5757         * XplatUIX11.cs: When setting min/max size for a window we need to
5758           translate the coordinates to x coordinates. Create an overload of
5759           SetWindowMinMax that takes a CreateParams handling this, and change
5760           SetWMStyles to call this function (can't use Control.FromHandle in
5761           the SetWindowMinMax to get the control/CreateParams from the handle
5762           because the handle might not have been assigned to the control
5763           yet). Fixes #81371.
5765 2007-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5767         * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
5768         if StateImageList is non-null and it has less than two items (match MS
5769         behaviour). Also, in HandleNavKeys handle the Space key, calling
5770         the new ToggleItemsCheckState method, which tries to change the
5771         checked state of the selected items. Fixes part of #81191.
5773 2007-04-16  Jackson Harper  <jackson@ximian.com>
5775         * RichTextBox.cs: namespace cleanup.
5777 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
5779         * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
5781 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
5783         [Fixes #79447]
5784         * Control.cs: Call invalidate in set_Region.
5786         * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
5787         it dont works here.
5789 2007-04-16  Jackson Harper  <jackson@ximian.com>
5791         * TextBoxBase.cs: When enter is pressed, we need to update all
5792         lines below the current.
5794 2007-04-16  Jonathan Pobst  <jpobst@monkey.com>
5796         * MdiClient.cs: Implement implicit menu merging for MDI
5797         children.  When a child form is active, if it has a menustrip
5798         and the parent form has a MainMenuStrip, automatically merge
5799         the menus.
5801 2007-04-15  Andreia Gaita  <avidigal@novell.com>
5803         * TabControl.cs: Refactored sizing methods to not repeat
5804         code all over the place. Tab bounds are now calculated
5805         as if alignment is top and single line, and only when 
5806         setting the bounds are the positions adjusted according
5807         to alignment. Replaced hardcoded positions, spacings and
5808         paddings by getting the values the ThemeEngine. 
5809         Fixes #79619.
5810         
5811         * Theme.cs: Change TabControl properties and methods so
5812         that all start with TabControl*. Added more properties
5813         to help remove hardcoded values on tabcontrol.
5814         Add CPDrawBorder3D declaration so the Theming classes
5815         can access it.
5816         
5817         * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
5819         * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
5820         on the Theming namespace, and call the appropriate methods here.
5821         Change CPDrawBorder3D to public.
5823 2007-04-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5825         * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
5826         the control after firing the OnMouseUp event, instead of sending
5827         the message before the mentioned event. This is so we can match the
5828         MS behaviour. Fixes part of #80385.
5830 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
5832         * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
5833         RightToLeft property.
5835 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
5837         * ToolStrip.cs: Add properties and internal methods to support merging.
5838         * ToolStripItem.cs: Add MergeAction and MergeIndex.
5839         * ToolStripItemCollection.cs: Add Insert and Remove methods that do
5840         not trigger reparenting or layouts.
5841         * ToolStripManager.cs: Add Merge and RevertMerge methods.
5842         * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
5843         is hosting the overflow menu.
5845 2007-04-13  Jackson Harper  <jackson@ximian.com>
5847         * TextControl.cs: Set the line ending correctly for the first
5848         inserted line.
5850 2007-04-13  Sebastien Pouliot  <sebastien@ximian.com>
5852         * Theme.cs: Update GetMethod to get the new definition for 
5853         KnownColors.Update (and fix theme color updates).
5855 2007-04-12  Everaldo Canuto  <everaldo@simios.org>
5857         * MessageBox.cs: Fix some test and button position.
5859 2007-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5861         * Form.cs: Consider the implicit controls in
5862         GetRealChildAtPoint. We need it since this method
5863         is called on Form when handling the some messages in
5864         WndProc, and need to consider those implicit ones too.
5865         Fixes #80385.
5867 2007-04-12  Jonathan Pobst  <monkey@jpobst.com>
5869         * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
5870         if there are no ShortcutKeys set.
5871         * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
5872         set, use it when painting.
5874 2007-04-12  Jackson Harper  <jackson@ximian.com>
5876         * TextControl.cs: Fix some off-by-one issues in line duplication
5877         and insertion in the undo manager. Also, overwrite the first tag
5878         of a line on insert, if it is just a zero lengthed tag. This
5879         prevents us from getting an extra stranded tag at the beginning of
5880         the first line.
5882 2007-04-11  Everaldo Canuto  <everaldo@simios.org>
5884         * Label.cs: Remove check for handle created in CalcAutoSize, we need 
5885         to calculated proper size including when handle was not created yet.
5887 2007-04-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5889         * MdiWindowManager.cs: When moving a form, allow the form to be moved
5890           when the mouse is outside of it's parent's client rectangle. Fixes
5891           #79982 (take 3, part 2).
5893 2007-04-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5895         * X11Structs.cs: Add a few ToString() overrides.
5896         * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
5897           the window location in a window-manager independent way. Reworked
5898           FrameExtents, it now actually works. Reworked AddConfigureNotify
5899           and ReparentNotify handling to use GetTopLevelWindowLocation
5900           instead of the earlier, more hacky solution. Reworked SetWMStyles,
5901           hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
5902           windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
5903           for all other windows (fixes #81281 part 1), a toolwindow is hidden
5904           from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
5905           and generally refactored to do as few calculations as possible
5906           inside the lock.
5908 2007-04-09  Sebastien Pouliot  <sebastien@ximian.com>
5910         * Theme.cs: Change "reflective-contract" between MWF and SD to 
5911         minimize # of calls, avoid Color serialization and avoid updating 
5912         every "known colors" each time a single one is updated.
5914 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
5916         * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
5917         when not readonly and the text is explicitly set. Code style updates.
5918         * DataGridTableStyle.cs: Removed extra line.
5919         * DataGrid.cs: Code style updates. Removed extra whitespace.
5920         * DataGridColumnStyle.cs: Code style updates. Removed extra 
5921         whitespace.
5923 2007-04-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5925         * XplatUIX11.cs: Added comment that "fixes" #80021.
5927 2007-04-09  Jackson Harper  <jackson@ximian.com>
5929         * TextControl.cs: We don't need this -1 on the line count anymore.
5931 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
5933         * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
5934         entered value to underlying type, and convert it back to a string to
5935         apply formatting. Modified GetFormattedValue to use TypeConverter
5936         if available.
5938 2007-04-08  Gert Driesen  <drieseng@users.sourceforge.net>
5940         * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
5941         Use SubItems property when we want to ensure there's at least one
5942         subitem. Modified SubItems property to ensure there's always at least
5943         one subitem. Avoid using ListViewSubItemCollection.AddRange to match
5944         the NRE's reported by MS.
5946 2007-04-07  Gert Driesen  <drieseng@users.sourceforge.net>
5948         * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
5949         ResetForeColor override on 2.0. Fixed a few API compatibility issues.
5950         Spaces to tabs. Removed extra tabs.
5952 2007-04-06  Jonathan Pobst  <monkey@jpobst.com>
5954         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
5955         infinite loop.  (Forgot to copy to the horizontal toolstrip case.)
5957 2007-04-06  Jackson Harper  <jackson@ximian.com>
5959         * TextBoxBase.cs: When a delete removes a line, recalculate all
5960         lines below that line (they need to get offsets setup correctly)
5961         and invalidate.
5963 2007-04-05  Jackson Harper  <jackson@ximian.com>
5965         * TextControl.cs: We need to invalidate across the width of the
5966         document when we are invalidating multiple lines.
5967         * TextBoxBase.cs: Don't delete into the line ending.
5969 2007-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5971         * ListView.cs: Restore the check for the MouseHover event
5972         in ListView. It looks like the ListView fires more than one MouseHover
5973         event when HoverSelection is true  _only_ in weird-corner scenarios, but
5974         in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
5975         event.
5977 2007-04-05  Mike Kestner  <mkestner@novell.com>
5979         * ListView.cs : raise MouseDown before updating selection.
5980         [Fixes #80373 tab 1&3]
5982 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
5984         * ToolStripRenderer.cs: Add static method to mirror image.
5985         * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
5986         and RightToLeftAutoMirrorImage.
5987         * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
5989 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
5991         * ToolStripSplitStackLayout.cs: Support Alignment property.
5992         * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
5994 2007-04-05  Jackson Harper  <jackson@ximian.com>
5996         * TextControl.cs: Move around the line endings when crossing line
5997         boundaries.
5998         - When combining lines, strip the ending text off the first line.
6000 2007-04-05  Jackson Harper  <jackson@ximian.com>
6002         * TextControl.cs:
6003         * TextBoxBase.cs: Try to never move the cursor into the line
6004         ending.
6005         
6006 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
6008         * ToolStripItem.cs: Make sure we aren't firing mouse events when
6009         the item is disabled.  Also add a few missing methods.
6011 2007-04-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6013         * ListView.cs: We don't need the MouseEnter/MouseLeave check
6014         to fire just one MouseHover event when HoverSelection is true, since
6015         .Net does fire more than one MouseHover event in that scenario. Also,
6016         fix the selection in HoverSelection, by invoking UpdateMultiSelect
6017         if MultiSelect is true, instead of only setting ListViewItem.Selected.
6018         Finally, we need to reset the Hover logic in MouseMove, even when we
6019         don't have a selected item.
6021 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
6023         * ToolStrip.cs: Add several missing methods, properties, and events.
6025 2007-04-04  Chris Toshok  <toshok@ximian.com>
6027         * DataGridTextBoxColumn.cs: set the bounds of the text box to
6028         (0,0,0,0) in Commit, as MS does.
6030         * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
6031         make sure we set CurrentRow on a row header click *before* calling
6032         Select.  This moves the current cell (and the textbox) to the new
6033         row.  The call to Select then hides the textbox, giving us the
6034         correct behavior.  Fixes #80362.
6036         * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
6037         (ListChangedHandler): reorder the position/current changed events,
6038         and call UpdateIsBinding in the ItemAdded case.
6040         * GridColumnStylesCollection.cs: add some columns events, one of
6041         which raises the CollectionChanged event.
6043 2007-04-04  Jackson Harper  <jackson@ximian.com>
6045         * TextControl.cs: When we delete multiple selection lines
6046         invalidate the selection area, don't need to do that for single
6047         lines because the final update view will handle it.
6049 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
6051         * Control.cs: When we CreateControl, we need to also create all of the
6052         control's children.  The child's OnLoad must also fire before the parent's
6053         OnLoad.  Fixes the toolbox size in PDN.
6055 2007-04-04  Jackson Harper  <jackson@ximian.com>
6057         * TextBoxBase.cs: When the user presses enter, insert a line
6058         ending into the text. (Maybe this would be a good spot for
6059         Environment.NewLine).
6060         * TextControl.cs: Remove undo manager hack, line endings get
6061         inserted properly now.
6062         
6063 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
6065         * MenuAPI.cs: 
6066         - Remove unneeded parameters in UpdateCursor.
6067         - Fix UpdateCursor to check if menu is active.
6068         - Call UpdateCursor when menu deactivate my click.
6069         [Fixes remaining issues from #80410]
6071 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
6073         * Control.cs: GetRealChildAtPoint method added, it make an
6074         recursive child control search for the point. 
6076         * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
6077         menu.
6079         * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
6081 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
6083         * Form.cs: Fix mouse position when send back mouse event after closes
6084         menu.
6086 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
6088         * Form.cs: Simplify the BUTTONDOWN for active tracker.
6090 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
6092         * Control.cs: Fix an issue where if a user resized a control inside
6093         a sizing method like OnResize, we would overwrite their explicit
6094         value.  Also, only call DefaultSize once in the constructor instead
6095         of 4 times.  Also, do not call SetBoundsCore from SetBounds if 
6096         nothing actually changed.
6098 2007-04-03  Jackson Harper  <jackson@ximian.com>
6100         * TextControl.cs: Don't attempt to copy text for lines with no
6101         text in them (technically this shouldn't happen, but we aren't
6102         always inserting line endings when we should be).
6104 2007-04-03  Jackson Harper  <jackson@ximian.com>
6106         * TextBoxBase.cs: Calculate the scrollbars before calculating the
6107         document, because this sets some of the document size properties
6108         that are needed.
6110 2007-04-03  Jackson Harper  <jackson@ximian.com>
6112         * TextBoxBase.cs: We need to calculate maximums even if this is
6113         not a multiline control, because the maxs are used for scrolling.
6114         - Display the caret after doing a page up/down, we need to
6115         manually display it because a proper CaretMoved event isn't
6116         triggered (this is because of the way the math is done to
6117         determine how far to scroll).
6119 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
6121         * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
6122         (ToolBar was relying on SetBoundsCore to default the values sent 
6123         base off of BoundsSpecified.)
6125 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6127         * DateTimePicker.cs: Change Text so that when a null value or empty
6128           string is assigned to the test we always raise ValueChanged and
6129           TextChanged (earlier implementation would only raise ValueChanged
6130           if the current date value was different from DateTime.Now).
6132 2007-04-03  Andreia Gaita <avidigal@novell.com> 
6134         * ButtonBase: Call update after invalidation, fixes #80194
6136 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6138         * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
6139           #79335.
6141 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6143         * XplatUIX11.cs: SetWMStyles: If the control is a form with
6144           FormBorderStyle = None, don't give the window any decorations.
6145           Fixes #81276.
6147 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6149         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
6150         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
6151           to check for is a mix of several styles (such as WS_CAPTION for
6152           instance).
6153         * Control.cs: Don't paint an area bigger than the client area when
6154           painting the background colour. Add an internal GetCreateParams.
6155           Update calls to XplatUI.CalculateWindowRect due to API change.
6156         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
6157           window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
6158           the size if it hasn't been handled by any windows. When creating
6159           and moving windows, X wants the location of the entire window, but
6160           the size of the client window, so add
6161           TranslateClientRectangleToXClientRectangle,
6162           TranslateWindowSizeToXWindowSIze and
6163           TranslatedXWindowSizeToWindowSize to cope with this, and call them
6164           before every window creation and move. Update CalculateWIndowRect
6165           to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
6166           In AddConfigureNotify don't do anything if the hwnd is a zombie
6167           (fixes the BadWindow we were getting while running the tests),
6168           always calculate the offsets when it's a parentless window, not
6169           only when reparented, and translate the window size, since we're
6170           getting the client size of the whole window, excluding entire
6171           window.
6172         * Theme.cs: Added BorderSizableSize.
6173         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
6174           anymore. Update calls to XplatUI.CalculateWindowRect due to API
6175           chang
6176         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
6177           change. Fake the window styles here instead of in XplatUIWin32 so
6178           that all back-ends get the same window styles (and it's Form that's
6179           deciding when to use wm, not the Win32 backend anyways)
6180         * Hwnd.cs: Completely reworked GetWindowRectangle and
6181           GetClientRectangle - they are now passed a CreateParams and they
6182           only use Style and ExStyle to determine the rectangles (they should
6183           now work just like Win32AdjustWindowRectEx - though quite a few
6184           special cases are probably missing). They should also be 100%
6185           complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
6186           == rect), and all numbers (borders, menu sizes) are taken from the
6187           current theme. Added a GetBorders helper function that will return
6188           the borders for any given CreateParams (including captions and
6189           menus), and GetBorderSize that returns the given border size only.
6190         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
6191           Hwnd.GetClientRectangle.
6193 2007-04-02  Chris Toshok  <toshok@ximian.com>
6195         * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
6196         logic between the values we present to the user and the values
6197         which are stored in the column's property.  Also, don't call
6198         GetPreferredSize - it's virtual. Along the way, fix bug #80965.
6200 2007-04-02  Jackson Harper  <jackson@ximian.com>
6202         * TextBoxBase.cs: Scroll faster!
6204 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
6206         * StatusStrip.cs: Layout fixes for PDN.
6207         * ToolStrip.cs: Set item's available to true, and placement to main when
6208         added.
6209         * ToolStripItem.cs: Fix an Available issue, check that Parent is really
6210         changing in setter before doing any work, add InternalVisible.
6211         * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
6212         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
6213         infinite loop.
6215 2007-04-02  Jackson Harper  <jackson@ximian.com>
6217         * TextBox.cs: LBUTTON does not make the textbox select all of it's
6218         text on focus.
6220 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6222         * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
6223           Makes ToolStripComboBoxes show up again.
6225 2007-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6227         * ListView.cs: Add a hover_pending field in ListView
6228         to fire just one OnMouseHover event for each MouseEnter/MouseLeave
6229         cycle (we are resetting the MouseHover logic in XplatUI
6230         to handle HoverSelection). Fixes #80429.
6232 2007-04-02  Jackson Harper  <jackson@ximian.com>
6234         * TextControl.cs: Make sure the attributes get set on the last
6235         tag.
6236         - Still have to do the end tag if we have stepped all the ways to
6237         the end.
6239 2007-04-02  Sebastien Pouliot  <sebastien@ximian.com>
6241         * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
6242         on an internal libgdiplus call when the information is already 
6243         available via the public API.
6245 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6247         * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
6248           control is removed from a control collecftion.
6249         * XplatUIX11.cs: The first location for toplevel form is (22, 22).
6250           Fixes FormPropertyTest (failed on rare occasions).
6251         * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
6252           of Win32SetParent (when changing from no parent to a parent it
6253           might add the new parent's location in screen coordinates to this
6254           window's location).
6255         * Form.cs: Rework ChangingParent once again, now the handle is
6256           recreated whenever a FormWindowManager is added or removed (that is
6257           whenever a normal form is parented or abandoned). Also change
6258           CreateParams so that all non-toplevel windows always get the
6259           specified sice (StartupPosition is never considered for
6260           non-TopLevel forms).
6261         * ContainerControl.cs: Add ChildControlRemoved, the container control
6262           needs to be notified when a control is removed from it's
6263           collection, in the case the removed control is the active control.
6265 2007-04-02  Jackson Harper  <jackson@ximian.com>
6267         * RichTextBox.cs: Use the new methods for setting the font and
6268         color, these methods set the specified attribute without
6269         overriding the other attributes.
6271 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
6273         * ToolStripPanel.cs: Fixes for better layouts in PDN.
6275 2007-03-31  Gert Driesen  <drieseng@users.sourceforge.net>
6277         * TextBox.cs: Added internal ChangeBackColor method to special-case
6278         Color.Empty. Added check for invalid ScrollBars value.
6279         * TextBoxBase.cs: Added internal ChangeBackColor method.
6280         * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
6281         internal ChangeBackColor method to special-case Color.Empty. Added
6282         check for invalid ScrollBars value.
6284 2007-03-30  Everaldo Canuto  <everaldo@simios.org>
6286         * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
6288 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
6290         * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
6291         * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
6292         [Based on submitted patch from Olivier Duff.]
6294 2007-03-30  Jackson Harper  <jackson@ximian.com>
6296         * TextBox.cs: Only select all on initial focus if the user has not
6297         specified a selection area.
6299 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
6301         * UserControl.cs: Override CreateParams.
6303 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6305         [ Fixes #80995 ]
6307         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
6308         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
6309           check for is a mix of several styles (such as WS_CAPTION for instance).
6310         * Control.cs: Don't paint an area bigger than the client area when painting
6311           the background colour. Add an internal GetCreateParams. Update calls to
6312           XplatUI.CalculateWindowRect due to API change.
6313         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
6314           size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
6315           hasn't been handled by any windows. When creating and moving windows, X
6316           wants the location of the entire window, but the size of the client
6317           window, so add TranslateClientRectangleToXClientRectangle,
6318           TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
6319           to cope with this, and call them before every window creation and move.
6320           Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
6321           removing DeriveStyles). In AddConfigureNotify don't do anything if the
6322           hwnd is a zombie (fixes the BadWindow we were getting while running the
6323           tests), always calculate the offsets when it's a parentless window, not
6324           only when reparented, and translate the window size, since we're getting
6325           the client size of the whole window, excluding entire window.
6326         * Theme.cs: Added BorderSizableSize.
6327         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
6328           anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
6329         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
6330           Fake the window styles here instead of in XplatUIWin32 so that all
6331           back-ends get the same window styles (and it's Form that's deciding when
6332           to use wm, not the Win32 backend anyways)
6333         * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
6334           they are now passed a CreateParams and they only use Style and ExStyle
6335           to determine the rectangles (they should now work just like
6336           Win32AdjustWindowRectEx - though quite a few special cases are probably
6337           missing). They should also be 100% complimentary (i.e. GetWindowRectangle
6338           (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
6339           sizes) are taken from the current theme. Added a GetBorders helper
6340           function that will return the borders for any given CreateParams
6341           (including captions and menus), and GetBorderSize that returns the given
6342           border size only.
6343         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
6344           Hwnd.GetClientRectangle.
6346 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6348         * Form.cs: Don't layout mdi children on MdiParent creation, the initial
6349           layout of the mdi children is handled by CreateParams. Fixes
6350           #79964,
6352 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
6354         * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
6355         processed.
6357         * Form.cs: When active tracker mouse down is not processed, send event 
6358         back to control inside mouse position. [Fixes #81227]
6360 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
6362         * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
6363         remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
6364         stealing focus from the active form on Windows.  (Control will be made
6365         visible in ShowWindow.)
6367 2007-03-29  Mike Kestner  <mkestner@novell.com>
6369         * ImageList.cs : add internal Changed event.
6370         * ListView.cs : hook up to StateImageList.Changed to perform
6371         invalidations when the the state icon list changes. [Fixes #81191]
6373 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
6375         * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
6376         to prevent tooltips from stealing focus from the active form on Windows.
6378 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
6380         * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon. 
6382         * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
6384 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
6386         * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
6387         balloons.
6389 2007-03-29  Jackson Harper  <jackson@ximian.com>
6391         * TextControl.cs: When deleting text from non multiline textboxes,
6392         we need to update the entire document, because line offsets will
6393         be shifting.
6395 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
6397         * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
6398         added to theme, now we can create themes that uses diferent notify engines
6399         like notification-daemon from galago project or growl for Mac OS.
6401 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
6403         * NotifyIcon.cs: Prevent Balloon to show in task bar.
6405 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
6407         * XplatUIX11.cs: Prevent system to open more than one balloon.
6409         * NotifyIcon.cs: Prevent system to open more than one balloon and remove
6410         some compiler warning messages.
6412 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
6414         [Fixes #79149]
6416         * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
6418         * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect 
6419         implemented, this methods is used by NotifyIcon.BalloonWindow class.
6421         * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11 
6422         systems.
6424 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6426         * ListViewItem.cs: Forgot to make Invalidate internal.
6428 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6430         * ListView.cs: Add a InvalidateSelection method to
6431         invalidate methods which are currently selected, and call
6432         it when setting FullRowSelect and HideSelection, instead of
6433         calling Redraw.
6435 2007-03-28  Chris Toshok  <toshok@ximian.com>
6437         * XplatUIX11.cs (UnmapWindow): reindent this block.
6439         * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
6440         the selection_start if we're moving the selection (that is, not
6441         extending it). Fixes bug #80461.
6443 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
6445         * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
6446         * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
6447         create private ControlCollection.
6449 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
6451         * Control.cs: We need to call OnVisibleChanged for our implicit
6452         children as well as our normal children.  Fixes scrollbars in
6453         comboboxes not showing up.
6455 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
6457         * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
6458         the check for IsHandleCreated first.  The check in CreateHandle is not
6459         good enough because CreateHandle can be overriden, and the override 
6460         should not be called if the handle is already created.
6462 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
6464         * ToolStrip.cs: Remove MonoTODO for tooltips.
6465         * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
6466         * ToolStripContainer.cs: Add custom ControlCollection class.
6467         * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
6468         * ToolStripDropDown.cs: Add some missing properties/methods.
6469         * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
6470         * ToolStripItem.cs: Remove MonoTODO for tooltips.
6471         * ToolStripManager.cs: Add IsShortcutDefined.
6472         * ToolStripOverflow.cs: Override LayoutEngine.
6473         * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
6474         * ToolStripSeparator.cs: Add ImageKey.
6476 2007-03-28  Jackson Harper  <jackson@ximian.com>
6478         * TextControl.cs: If a char delete removes a line ending, we need
6479         to update the ending style.
6480         - Make sure the line ending calcs get called.
6482 2007-03-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6484         * XplatUIX11.cs: CreateWindow: Remove old default form location code,
6485           it was making the new code not work. Fixed a typo in the new code
6486           as well. Fixes #79826.
6488 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
6490         * XplatUIWin32.cs:
6491         - NIF_STATE and NIF_INFO added to NotifyIconFlags.
6492         - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
6493         - SystrayBalloon method implemented.
6494         [Add support for notifyicon balloon on win32, #79149]
6496 2007-03-27  Mike Kestner  <mkestner@novell.com>
6498         * ThemeWin32Classic.cs : update StateImageList selection to mirror
6499         the ms behavior when only one image is added to the list.
6500         [Fixes #81191]
6502 2007-03-27  Jackson Harper  <jackson@ximian.com>
6504         * TextControl.cs: Improvements to non multiline line ending
6505         drawing/measuing.
6507 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
6509         * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon. 
6511 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
6513         * NotifyIcon.cs: 
6514         - Balloon message handling added.
6515         - Call XplatUI.SystrayBalloon in ShowBalloonTip. 
6517         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
6518         XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed 
6519         to SystrayBalloon to me like other Systray method, also a
6520         handle parameter added.
6522 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6524         * ListView.cs: Show scrollbars even when items.Count == 0
6525         but the columns Width is bigger than the ListView.Width.
6526         Also, when columns.Count == 0 set layout_wd and layout_ht
6527         to the ClientRectangle values, so we don't show any scrollbar
6528         in that case.
6530 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
6532         * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
6534 2007-03-27  Jackson Harper  <jackson@ximian.com>
6536         * RichTextBox.cs: The RTF library decodes the text properly for us
6537         now.
6539 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6541         * ListView.cs: Display HeaderControl even when columns.Count == 0.
6542         * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
6543         ListView header (HeaderControl), instead of Control.BackColor.
6545 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
6547         * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
6548         Fixes tab control issues where controls would not show up because they
6549         never received their OnVisibleChanged call.
6551 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
6553         * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
6554         BalloonTipShown).
6556 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
6558         * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
6559         is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
6560         * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
6561         are max or min.  Remove WS_VISIBLE from CreateParams unless we are recreating
6562         the handle.  Fix WindowState by using the internal variable until we are 
6563         sure that we've been shown.
6564         * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
6565         max or min.
6566         [Fixes bug #81198]
6568 2007-03-27  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6570         * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
6571           (at least borders). Fixes #79386 on Linux (with a small difference
6572           in behaviour: when trying to resize a caption-less window metacity
6573           shows the sysmenu. Resizing is still possible though).
6574         * XplatUIWin32.cs: When setting window styles send request an extra
6575           WM_NCCALCSIZE when it's a form without title (due to no text and no
6576           caption), since Win32 seems to calculate it wrong the first time we
6577           get the message, though the second time things work as they should.
6578         * Form.cs: Reorder a few statements in ChangingParent, otherwise the
6579           newly reparented window might show up unparented. Update
6580           CreateParams to exclude WS_DLGFRAME if ControlBox is false and
6581           there's no title text. Fixes #79386.
6583 2007-03-27  Mike Kestner  <mkestner@novell.com>
6585         * ListBox.cs : don't perform invalidations if the handle hasn't been
6586         created.  [Fixes #80753]
6588 2007-03-27  Mike Kestner  <mkestner@novell.com>
6590         * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
6591         [Fixes #80428]
6593 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
6595         * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields 
6596         needed to implement Balloon.
6598 2007-03-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6600         * ListViewItem.cs: In the constructors that take
6601         an array of strings, don't use ListViewSubItemCollection.AddRange
6602         method to add items, since we need to have a different behaviour (in
6603         the constructors we add an item for each null string, opposed to
6604         the behaviour of AddRange, which adds nothing).
6606 2007-03-26  Andreia Gaita  <avidigal@novell.com>
6608         * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
6610 2007-03-26  Jackson Harper  <jackson@ximian.com>
6612         * TextControl.cs: Draw and measure line endings when in non
6613         multiline mode.
6614         - When searching the text, count the end of the last line as a
6615         word boundary.
6617 2007-03-26  Jackson Harper  <jackson@ximian.com>
6619         * RichTextBox.cs: The selection_start and selection_end don't
6620         really track the correct tags for the selection. So we'll manually
6621         compute the correct tag here.
6623 2007-03-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6625         * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
6626           and Continuous styles. Fixes #79469.
6628 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
6630         * ToolStrip.cs: Implement Tooltips.
6631         * ToolStripItem.cs: Create internal method for determining tooltip.
6633 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
6635         * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
6637 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
6639         * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
6640         it prevents a problem thak keeps icon visible after application 
6641         closes on win32.
6643 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
6645         * NotifyIcon.cs: Balloon properties and methods created.
6647         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
6648         XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
6650 2007-03-25  Jonathan Pobst  <monkey@jpobst.com>
6652         * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
6654 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
6656         * Control.cs: Make SetBoundsCore match MS better.  The BoundsSpecified
6657         parameter indicates which aspects were explicit/user-set.
6658         * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
6660 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
6662         * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
6663         * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
6664         SmallChange, and Value (2.0).
6665         * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
6667 2007-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6669         * ListView.cs: Always set item_control.Width in LayoutDetails
6670         if View is Details. Setting it later in CalculateScrollBars
6671         in a not-so-corner scenario (the sum of columns width is
6672         not bigger than the ListView width when handle is created, and then
6673         that sum gets bigger by increasing the width of the columns)
6674         causes a very weird recursion path (which shouldn't be happening,
6675         since header_control sets it in CalculateScrollBars too). This bug
6676         appeared after Chris' fixes for handle created issues, so probably
6677         it's related to some handle-creation time.
6679 2007-03-23  Chris Toshok  <toshok@ximian.com>
6681         * DataGrid.cs (GetVisibleRowCount): increase the row count in the
6682         case where there's an add row, just so we don't end up in a case
6683         where it's not displayed (this happens when the row is partially
6684         obscured).  Fixes bug #79574.
6686 2007-03-23  Jackson Harper  <jackson@ximian.com>
6688         * TextControl.cs:
6689         * TextBoxBase.cs:
6690         * RichTextBox.cs: Preserve line endings in the lines text buffer,
6691         also added an enum that represents the line ending type. 
6693 2007-03-23  Andreia Gaita  <avidigal@novell.com>
6695         * NumericUpDown.cs: Fix logic so Text and Value properties are not
6696         messed with in every method call, but only from DownButton, 
6697         UpButton, UpdateEditText() and ValidateText. Fixes #80346
6699 2007-03-23  Chris Toshok  <toshok@ximian.com>
6701         * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
6702         format objects if the format spec is "".  Fixes bug #80889.
6704 2007-03-22  Miguel de Icaza  <miguel@novell.com>
6706         * ToolStripPanel.cs (Join): added stubs to build PDN3
6708         * Control.cs (AutoScrollOffset): Add.
6710         * SystemInformation.cs (MouseWheelScrollDelta): Expose this
6711         property, its only implemented for Win32, on X11 it defaults to
6712         some hardcoded value.
6714         * ToolStripItem.cs (AllowDrop): Add property
6716 2007-03-22  Mike Kestner  <mkestner@novell.com>
6718         * ListView.cs : in FullRowSelect Details mode, only enable box
6719         selection if the user clicks over the "item" column outside of the
6720         text area.  Mmmmm, compatibility.  [Fixes #80374 subpart 7]
6722 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6724         * Control.cs: ChangeParent: Call Form's ChangingParent even if the
6725           handle is not created yet.
6726         * Form.cs: Select: Don't call CreateHandle if the handle is already
6727           created, avoids a stack overflow on Windows when we are recreating
6728           controls.
6729         * ScrollableControl.cs: Set the correct z-order for the scrollbars when
6730           they are made visible, and override AfterTopMostControl to keep
6731           them on top when other controls are brought to front.
6732           CalculateCanvas: Scrollbars are only visible if auto_scroll is true
6733           or force_*scroll_visible is true (old implementation always shows
6734           scrollbars when needed, no matter what auto_scroll was set to).
6735         * InternalWindowManager.cs: UpdateWindowDecorations: Add a
6736           IsHandleCreated check.
6738 2007-03-22  Andreia Gaita  <avidigal@novell.com>
6740         * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
6741         row or col separator.
6742         * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
6744 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
6746         * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
6748 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
6750         * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
6751         cursor for child controls. In ShowWindow and HideWindow now call SetCursor 
6752         every time. Fixes #80410.
6754 2007-03-22  Chris Toshok  <toshok@ximian.com>
6756         * BindingSource.cs (AddNew): partially implement.
6758         remove a couple of NotImplementedException's
6759         to get bug #81148 closed.
6761 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
6763         [Fixes #80380]
6764         
6765         * Control.cs:
6766         - UpdateCursor method added to update the screen cursor.
6767         - GetAvailableCursor method added to return cursor for enabled tree,
6768         it searches for cursor on control and it's parent's for enabled control.
6769         - Call UpdateCursor method on setter of Cursor property.
6770         - On setter of Enabled call UpdateCursor when it is false, we need to
6771         change cursor to normal (or to this parent cursor) because cursor 
6772         setting theres no effect to disabled controls.
6773         - Some minor source changes to follow the coding style guidelines.
6775         * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled 
6776         controls.
6778 2007-03-22  Chris Toshok  <toshok@ximian.com>
6780         * XplatUIX11.cs: ignore the BadPicture errors cairo+render
6781         generates.
6783 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6785         * XplatUIX11.cs: Implement default locations for forms.
6786         * Form.cs: Completely rework startup location for forms. Fixes #79964.
6787         * Hwnd.cs: Add previous_child_startup_location (to track the current
6788           startup location for any child forms of the current form) and
6789           previous_main_startup_location (to track the startup location for
6790           the current toplevel form).
6792 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
6794         * Control.cs: Don't trigger a layout if an implicit control is added
6795         that isn't visible.  Also, don't notify the owner when an implicit control
6796         is added.  (Owners shouldn't even know about their implicit controls.)
6798 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
6800         * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
6801         to save some re-layouts.
6803 2007-03-21  Everaldo Canuto  <everaldo@simios.org>
6805         * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
6806         [Fixes #81203]
6808 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
6810         * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
6811         ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
6813 2007-03-21  Mike Kestner  <mkestner@novell.com>
6815         * ListView.cs : disable selection update for non-left button clicks
6816         with mods and over selected items.  [Fixes #80524]
6818 2007-03-20  Jackson Harper  <jackson@ximian.com>
6820         * TextControl.cs:
6821         * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
6822         \r\r\n, \n.
6824 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6826         * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
6827           very probably a more complicated calculation there. Update the
6828           textbox' ForeColor and BackColor when the ComboBox' colors are
6829           changed. Change the border change in LayoutComboBox to only affect
6830           the textbox, not all the calculations there. Seems to fix most of
6831           #79436.
6833 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6835         * ComboBox.cs: Handle Home and End keys as well as all combinations of
6836           modifiers + navigation keys as input keys, enables advanced text
6837           selection in the combobox (like Shift+Left Arrow for instance).
6838           ComboTextBox now overrides Focused and returns whatever
6839           ComboBox.Focused returns, since it really should be focused
6840           whenever the ComboBox is. Fixes #80795. Also make the border around
6841           the text box one pixel bigger, as mentioned in #79436.
6843 2007-03-20  Jackson Harper  <jackson@ximian.com>
6845         * TreeView.cs: Don't offset the images, this was causing some
6846         artifacts when expanding/collapsing with images that were the
6847         exact height of the treenode.
6849 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6851         * TrackBar.cs: Query the theme for the correct value when the mouse
6852           moves and the thumb is pressed. 
6853         * Theme.cs: Added TrackBarValueFromMousePosition
6854         * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
6855           implementation was updating the trackbar value when drawing, now
6856           the drawing methods only draw. Fixes #80900. Refactored the
6857           calculations out to TrackBarValueFromMousePosition and
6858           GetTrackBarDrawingInfo, so that TrackBar can get the correct value
6859           according to the mouse position whenever it wants to. Changed the
6860           light coloured pen when drawing the thumb from ControlLight to
6861           ControlLightLight, because the ControlLight is the same colour as
6862           the background so the 3D effect is lost. 
6864 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
6866         * Form.cs: In ShowDialog uses MainForm as transient form when no form is
6867         defined. Fixes #80784.
6869 2007-03-20  Marek Habersack  <mhabersack@novell.com>
6871         * ContextMenuStrip.cs: align with the change introduced in
6872         revision 74664.
6874 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
6876         * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs, 
6877         XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner 
6878         in SetTopmost.
6880 2007-03-19  Chris Toshok  <toshok@ximian.com>
6882         * Control.cs (WmPaint): don't make use of the Handle property
6883         after an event is emitted, as the user could have closed the
6884         form/destroyed the control.  Store the Handle in a local variable
6885         and make use of that.  Fixes bug #80768.
6887 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
6889         * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
6890         behavior in X11 environments.
6892 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
6894         * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
6895         because on setter of topmost we dont call SetTopmost when handle is not
6896         created.
6898 2007-03-20  Jackson Harper  <jackson@ximian.com>
6900         * TextControl.cs: Need to use SelectionLength () not
6901         selection_length, since that var is reset to -1.
6902         - Draw the caret when we don't have focus.
6903         * TextBox.cs: The selectall actually doesn't occur until the first
6904         focus.
6905         * TextBoxBase.cs: Need to update the caret position after a
6906         selectall.
6907         
6908 2007-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6910         * ListView.cs: Enable scrolling when using Tile view.
6912 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
6914         [Fixes #80902]
6916         * XplatUIDriver.cs: Abstract SetOwner method created.
6918         * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method 
6919         must be implemented and was masked as todo.
6921         * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with 
6922         GWL_HWNDPARENT.
6924         * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but 
6925         cheking for null owner to remove transient. The SetTopmost will be change
6926         on a decond step.
6928         * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
6929         SetTopmost. Now owned forms will work properly in win32 and X11.
6931 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6933         * MdiWindowManager.cs: Update function name.
6934         * Form.cs: After closing a form MdiParent is always null.
6935         * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
6936           better what it should do: necessary book-keeping when the form is
6937           closed, it should not close the form itself.
6939 2007-03-19  Andreia Gaita  <avidigal@novell.com>
6941         * ListViewItem.cs: Fix back and fore color. The subitems only
6942         use their own colors if they are set, otherwise use the listview's
6943         colors. Don't set default colors on constructor for subitem.
6944         Fixes #79315.
6946 2007-03-19  Mike Kestner  <mkestner@novell.com>
6948         * ListView.cs : make box selection for Details views with 
6949         FullRowSelect conform to MS behavior when clicking in the "item" 
6950         column and clicking outside the defined columns.
6951         [Fixes case 5-6 of #80374]
6953 2007-03-19  Chris Toshok  <toshok@ximian.com>
6955         * ScrollableControl.cs: create the controls from within the ctor,
6956         but don't actually add them until our handle is created.  this
6957         fixes a NRE possibility jpobst found (if you override OnLayout in
6958         a subclass, it's called before your ctor).  Also, add a
6959         IsHandleCreated guard to UpdateSizeGripVisibility as well.
6961 2007-03-19  Jackson Harper  <jackson@ximian.com>
6963         * TextBox.cs: Reduce the amount of invalidation we do.
6964         * TextBoxBase.cs: Make shortcuts enabled true by default, at least
6965         some of them are true by default on MS.
6966         - Add some functions to reduce the amount of invalidates we do.
6967         * TextControl.cs: Less invalidation.
6969 2007-03-19  Chris Toshok  <toshok@ximian.com>
6971         [ Fixes #81773, and *seems* to fix #81553 as well ]
6973         * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
6974         AccumulateDestroyedHandles.  We need to do it *after* we send
6975         WM_DESTROY, as the user's code can access Control.Handle in
6976         OnHandleDestroyed, and this shouldn't cause a recreation.  Also,
6977         move the WM_DESTROY/zombie handling to before the call to
6978         XDestroyWindow.  For some reason without this ordering
6979         FormTest.RecreateHandle hangs.  This ordering is semantically
6980         equivalent, however, as XDestroyWindow is async anyway.
6982 2007-03-19  Gert Driesen  <drieseng@users.sourceforge.net>
6984         * RichTextBox.cs: Reset backcolor_set after setting default.
6986 2007-03-19  Chris Toshok  <toshok@ximian.com>
6988         * ScrollableControl.cs: the scroll position should not effect the
6989         canvas size.  commit patch from georgegiolfan@yahoo.com, which
6990         fixes some really bizarre behavior on resizing.  Fixes bug #80778.
6991         
6992 2007-03-19  Chris Toshok  <toshok@ximian.com>
6994         * ScrollableControl.cs: clean this up a bit.  create the
6995         scrollbars in the ctor and just show/hide them as needed.  Also,
6996         make hscroll_visible/vscroll_visible internal to Recalculate, and
6997         just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
6998         everywhere else.  This seems to fix the scrollbars appearing
6999         beneath the content for me (i have *no* idea why that is,
7000         however.)
7002 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
7004         * ToolStrip.cs: Don't call DoAutoSize when we change Dock.  Also, remove
7005         some redundacy for stuff in Anchor and Dock that base will take care of.
7006         [Fixes #80762]
7008 2007-03-19  Mike Kestner  <mkestner@novell.com>
7010         * ListView.cs : make box selection for Details views without 
7011         FullRowSelect dependent on the text bounds, not item bounds.
7012         * ListViewItem.cs : add an internal property to obtain the TextBounds
7013         in Details view.  [Fixes case 1-4 of #80374]
7015 2007-03-19  Andreia Gaita  <avidigal@novell.com>
7017         * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
7018         we're < 2.0. #78448 && #80316
7020 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
7022         * FontDialog.cs: Don't crash when we switch to a new font that doesn't
7023         have the same style available as the previously selected one.  Also,
7024         support FixedPitchOnly property.  [Fixes bugs #80918, #80947]
7026 2007-03-19  Jackson Harper  <jackson@ximian.com>
7028         * TextControl.cs: Add an alignment property that all new lines
7029         will be given.
7030         - Make sure to use the align shift when calculating the line's X
7031         position.
7032         * TextBox.cs: Set the alignment on the document as well as on all
7033         the document lines.
7035 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7037         * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
7038           throw if setting the parent of an mdichild that already has an
7039           mdiparent. Update signature for 2.0 profile. ProductName: If there's no
7040           AssemblyProductAttribute in the assembly, use the type's namespace (as
7041           MS seems to do). CreateControl: don't create the handle if the control
7042           is not visible (according to MS behaviour and spec).  SetTopLevel: Only
7043           create handle if the control is not a form. Change FocusInternal to
7044           virtual so that it can be overriden by Form.
7045         * TextBox.cs: Update call to FocusInternal.
7046         * Form.cs: Always create the handle when calling Focus on a MdiChild. The
7047           form is not a toplevel form when it's a mdi child, so update is_toplevel
7048           accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
7049           hasn't been created. Show (IWin32Window): Don't allow this overload for
7050           toplevel windows. CenterToParent/CenterToScreen/Select: create the
7051           handle as MS does. SetVisibleCore: if called on a MdiChild and the
7052           parent isn't visible yet, save the visibility and restore it when the
7053           parent is made visible.
7054         * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
7055           methods, since the visibility of the scrollbars can be changed from
7056           several places, not only from AutoScroll.
7057           [Fixes #81179]
7059 2007-03-19  Jackson Harper  <jackson@ximian.com>
7061         * RichTextBox.cs: Enable shortcuts by default.
7062         * TextBoxBase.cs: Add conditional shortcuts.  
7064 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
7066         * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).  
7068 2007-03-19  Chris Toshok  <toshok@ximian.com>
7070         [ Fixes bug #80604]
7071         
7072         * XplatUIX11.cs (WaitForHwndMessage): change this to actually
7073         swallow the message we're waiting on, instead of delivering it, as
7074         this is only used for the WM_SHOWWINDOW raised from
7075         MapWindow/UnmapWindow, and the message needs to be generated
7076         (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
7077         before doing the Map/Unmap.  Also make sure that the Hwnd is still
7078         alive after the message has been handled.
7080         *before* the window is shown.
7082         * Control.cs (CreateControl): guard a few more things inside the
7083         if (!is_created) block, as we might end up being called again -
7084         yay .net.
7085         (WmShowWindow): call CreateControl if we're showing the control.
7087 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7089         * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
7090           controls without a handle if they have any parent with a handle. In
7091           Dispose add a check whether the handle is created or not before
7092           calling BeginInvoke, this removes the need of the extra disposing
7093           parameter (which was bogus anyway since it didn't prevent the
7094           invoke from happening, it only skipped the check for an existing
7095           handle, meaning that the invoke would call on an inexistent
7096           handle).
7098 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
7100         * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
7101         appears in taskbar.
7103 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
7105         * MessageBox.cs:
7106         - Fixed a problem that dont show help button for messages with 3 buttons.
7107         - Refactory button size and position calculations, now dont use fixed 
7108         values, also fixed button sizes (#80043) and form's border space.
7109         - AddButton method created, now all other AddButton methods call this one.
7110         - Some other source code cosmetic changes.
7112 2007-03-18  Jackson Harper  <jackson@ximian.com>
7114         * RichTextBox.cs: Don't do this all fonts must match check if
7115         there is only one char selected.
7117 2007-03-18  Jackson Harper  <jackson@ximian.com>
7119         * TreeView.cs: ScrollWindow works properly now, so we don't need
7120         to screw around with the scroll area.  This fixes some artifacts
7121         when expanding and collapsing.
7123 2007-03-18  Jackson Harper  <jackson@ximian.com>
7125         * TextBoxBase.cs: Allow updating the selection position when the
7126         cursor is outside the textarea, but we have a capture.
7127         * TextControl.cs: A special case for when the cursor is outside
7128         the bounds of the TB.
7129         
7130 2007-03-18  Jackson Harper  <jackson@ximian.com>
7132         * TextBoxBase.cs: Remove image pasting code for now.  There is no
7133         way to get an image on the clipboard right now anyways.
7134         * TextControl.cs:
7135         * RichTextBox.cs: Use the new RTF Picture class for pictures.
7137 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
7139         * MessageBox.cs:
7140         - Set window properties in constructor intead of on CreateParams.
7141         - Remove topmost from Window ExStyle.
7142         - Set ShowInTaskbar to false.
7143         - Set form border to FixedDialog.
7144         - Some cosmetic changes and remove unneeded comments.
7145         - It fixes itens 2,3 and 4 of bug #80043.
7147 2007-03-18  Gert Driesen  <drieseng@users.sourceforge.net>
7149         * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
7150         none was explicitly set. Fixes part of bug #79949.
7152 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
7154         * ToolStripComboBox.cs: Add AutoComplete*.
7156 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
7158         * ToolStripComboBox.cs: Add FlatStyle.
7160 2007-03-16  Jonathan Pobst  <monkey@jpobst.com>
7162         * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
7163         ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
7165 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7167         * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
7168           CheckBox.cs, RadioButton.cs, BindingSource.cs,
7169           DataGridColumnStyle.cs: Remove warnings.
7171 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7173         * Menu.cs: MergeMenu: Check menu argument for null before looping over
7174           it.
7175         * MdiWindowManager.cs: Add IsVisiblePending to track the pending
7176           visibility of mdi child forms. FormSizeChangedHandler: update the
7177           maximized size if size has changed while maximized.
7178         * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
7179           creating the handle.
7180         * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
7181           avoid creating the handle if not created.
7182         * XplatUI.cs: Update debug output.
7183         * XplatUIStructs.cs: Added ToString's for a couple of structs.
7185 2007-03-16  Jonathan Pobst <monkey@jpobst.com>
7187         * ContainerControl.cs: Give ToolStripManager the opportunity to handle
7188         ProcessCmdKey().
7189         * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs, 
7190         ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
7191         Implement keyboard shortcuts.
7193 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
7195         * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
7196         Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog, 
7197         ColorDialog and all derived classes.
7199 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
7201         [ Fixes bug #79828 ]
7203         * ToolBar.cs:
7204         - Rename ToolBarButtonInfor to ToolBarItem.
7205         - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
7206         - Maintain an array of ToolBarItem, used instead of ToolBarButton
7207         collection to be able add same button more than one time on a toolbar.
7208         - Refactory all properties and methods to use ToolBarItem. 
7210         * ToolBarButton.cs: 
7211         - Remove all propeties and methods that is now in ToolBarItem.
7212         - Rectangle propery now gets the rectangle from first ToolBarItem to
7213         mimic win32 behavior.
7214         - Size calculation and layout methods also removed.
7216         * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
7217         ToolBarItem instead of ToolBarButton to right drawing buttons when
7218         same button/separator was added more than one time to ToolBar.
7220         * ThemeNice.cs: Same as above. 
7222 2007-03-15  Andreia Gaita  <avidigal@novell.com>
7224         * XplatUIX11.cs: Fire extra MouseMove events right after
7225         MouseDown and MouseUp, emulating win32's <censored> behaviour
7226         for apps that rely on it.
7228 2007-03-15  Jackson Harper  <jackson@ximian.com>
7230         * TextControl.cs:
7231         * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
7232         it is drawn on the controls client window and there is no NC
7233         area.
7234         - Set the background color to gray on 2.0 when we are readonly.
7236 2007-03-15  Chris Toshok  <toshok@ximian.com>
7238         [ Fixes bug #81144 ]
7239         
7240         * XplatUIX11.cs: implement VirtualScreen independently of
7241         WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
7242         property.
7244 2007-03-15  Chris Toshok  <toshok@ximian.com>
7246         * Hwnd.cs: add an internal field for the cached_window_state.
7248         * XplatUIX11.cs: cache the window state, invalidating the cache
7249         (and thus re-querying the X server) only when we see an update to
7250         the _NET_WM_STATE property.
7252 2007-03-15  Chris Toshok  <toshok@ximian.com>
7254         * BindingSource.cs: get a lot of the unit tests working.
7256 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
7258         * Control.cs: Modify UpdateStyles to store distances when bounds >=
7259         0 instead of just bounds > 0.  [Fixes bug #80912]
7261 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
7263         * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
7264         and methods.
7266 2007-03-15  Ivan N. Zlatev <contact@i-nz.net>
7267         
7268         * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
7269         XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
7270         XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
7271         WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
7273 2007-03-15  Chris Toshok  <toshok@ximian.com>
7275         [ Fixes #81101 ]
7276         
7277         * Control.cs: add Ivan's fix for 81101, with a slight modification
7278         - you can set control.Target to null.
7280 2007-03-14  Jonathan Pobst  <monkey@jpobst.com>
7282         * ToolStripItem.cs: If our OwnerItem is null, we can't use 
7283         HideDropDown, use Hide instead to prevent an NRE.
7284         [Fixes bug #81147]
7286 2007-03-14  Jackson Harper  <jackson@ximian.com>
7288         * TextBoxBase.cs: Mess with the creation stuff a little. We need
7289         to calculate the document before the handle is created, in some
7290         cases. (Actually just one case).
7292 2007-03-14  Jackson Harper  <jackson@ximian.com>
7294         * TextBoxBase.cs: Need to display the caret after letting the base
7295         wndproc handle the focus methods, because the caret display
7296         methods check the focus state.
7297         - Try to display the caret after updating it's position with SelectWord.
7298         - Don't need to do an immediate update on this recalc, since there
7299         will be an invalidate anyways.
7301 2007-03-14  Jackson Harper  <jackson@ximian.com>
7303         * TreeView.cs: Some workarounds so that we can match event order a
7304         little better.
7306 2007-03-14  Gert Driesen  <drieseng@users.sourceforge.net>
7308         * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
7309         #80803. Avoid NullReferenceException when Control does not have
7310         parent. Fixed different blinkstyle issues. Only subscribe to Tick
7311         event a single time. Only draw error icon when control is created and
7312         visible. Fixes failing unit tests.
7314 2007-03-14  Andreia Gaita  <avidigal@novell.com>
7316         * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
7317         Selecting events. Fire Leave and Enter events when changing tabs.
7319 2007-03-14  George Giolfan  <georgegiolfan@yahoo.com>
7321         * TreeView.cs: Add TreeViewNodeSorter.
7322         * TreeNodeCollection.cs: Add sorter parameter to Sort method.
7324 2007-03-14  Chris Toshok  <toshok@ximian.com>
7326         * Form.cs: go ahead and remove the RecreateHandles that jpobst
7327         removed earlier and I had him add back it.  It turns out metacity
7328         *does* in fact handle the MOTIF_WM_HINTS property changing, it
7329         just doesn't redraw the window titlebar until you resize the
7330         window.  This also means we aren't recreating the entire window
7331         hierarchy on X when you change this property.  And it looks better
7332         on windows, too.
7334 2007-03-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7336         * ListViewItem.cs:
7337         * ListView.cs: Collecting selection information
7338         is now done in SelectedIndexCollection rather than in
7339         SelectedListViewItemCollection. This is done so we can
7340         have the selection information code in one single place
7341         (virtual mode selection information entirely depends on
7342         SelectedIndexCollection).
7344 2007-03-13  Miguel de Icaza  <miguel@novell.com>
7346         * ErrorProvider.cs: Add stubs for ISupportInitialize
7348 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7350         * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
7351         in the right order with the right values, from the Checked property, 
7352         just as MS does (instead of triggering them from ListView).
7354         * ListView.cs: Make OnItemCheck and OnItemChecked internal.
7356 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7358         * ListView.cs: Implement ItemChecked 2.0 event. Also cast to 
7359         the correct handler in OnItemCheck method (ItemCheckEventHandler 
7360         instead of EventHandler). This used to throw an InvalidCastException.
7362 2007-03-13  Jackson Harper  <jackson@ximian.com>
7364         * TextBoxBase.cs: Calculate the document before the handle is
7365         created, so there isn't an extra invalidate called.
7367 2007-03-13  Jonathan Pobst  <monkey@jpobst.com>
7369         * Form.cs: Don't set owner in ShowDialog until we are sure
7370         that we aren't going to throw an exception.  [Fixes bug #80773]
7372 2007-03-12  George Giolfan  <georgegiolfan@yahoo.com>
7374         * TreeView.cs: Make it compile.
7376 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
7378         * Control.cs: Another place we don't call SizeFromClientSize.
7379         * Form.cs: Another place we don't call SizeFromClientSize.
7380         [Fixes bug #81125]
7382 2007-03-12  Jackson Harper  <jackson@ximian.com>
7384         * TreeView.cs: Basically emulating some strangness here with
7385         exanding nodes and setting node positions when windows aren't
7386         created.
7387         - Also attempting to walk the node tree less than previously, and
7388         just use visible order calculations for determining offsets.
7389         - oops made scrolling backwards.
7390         * TreeNode.cs: We need to start nodes with a zero visible order,
7391         because the order calcs are based on the first nodes order.
7393 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
7395         * Form.cs: Don't exit the program if RecreateHandle is called on
7396         the main form.
7398 2007-03-12  Chris Toshok  <toshok@ximian.com>
7400         * XEventQueue.cs: remove the use of PostQuitState.
7402         * XplatUIX11.cs: remove the use of PostQuitState.  If we get a
7403         WM_QUIT message in GetMessage, return false (and if we're in the
7404         nested WaitForHwndMessage, repost the WM_QUIT message).
7406 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
7408         * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
7409         or the MaximizeBox properties.  [Part of bug #80640]
7411 2007-03-12  Everaldo Canuto  <everaldo@simios.org>
7413         * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
7414         no links.
7416 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
7418         * ToolStripItem.cs: Fix some tests I broke by checking Visible
7419         instead of visible.
7421 2007-03-12  Gert Driesen  <drieseng@users.sourceforge.net>
7423         * FileDialog.cs: Use text of File name combobox to determine what
7424         files the user selected. Added tokenizer to parse the file names.
7425         Fixes bug #81123.
7427 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
7429         * Control.cs: We can't call SizeFromClientSize in the constructor,
7430         but we still need to do the same work, so make an internal version.
7431         [Fixes bug #80621]
7433 2007-03-12  Jackson Harper  <jackson@ximian.com>
7435         * TreeView.cs:
7436         * TreeNode.cs:
7437         * OpenTreeNodeEnumerator: Match MS better for IsVisible and
7438         IsExpanded.
7440 2007-03-12  Jackson Harper  <jackson@ximian.com>
7442         * TextBoxBase.cs: Now that the handles are being created a little
7443         later, we need to make sure that the document is recalculated when
7444         the handle is created.
7446 2007-03-11  Everaldo Canuto  <everaldo@simios.org>
7448         * Theme.cs: GetLinkFont abstract method added.
7449         
7450         * LinkLabel.cs: 
7451         - Remove CalcTrimRectangle, no longer needed.
7452         - Factor also remove, position issues must be fixed in libgdiplus.
7453         - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
7454         - GetPieceFont, CreateLinkFont and link_font removed, theme must be 
7455         care about font used to draw links.
7456         - Set TabStop to true when control is "Selectable", control is selectable
7457         when have one or more links. Fixes #80501 (test case is also added).
7458         - Set the LinkArea values after links change, LinkArea values must be
7459         based in first link position and size, a test case was created.
7460         - Fix ControlStyles.Selectable value, now is based on LinkArea value, 
7461         the attribute must be true LinkArea.Length > 0. The same was applied to
7462         TabStop.
7463         
7464         * ThemeWin32Classic.cs: 
7465         - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used 
7466         in draw method.
7467         - Use CPDrawStringDisabled to draw disabled text instead of hard code 
7468         color change.
7469         - Draw focus rectangle for every parts focused, including parts that 
7470         is on another line, its because regions returns various rectangles
7471         and not only one. Needed to mimic W32 look.
7472         - Uses Graphics.Clip to delimite region painted, it mean that now 
7473         complete text is passed to DrawString, with this we solve layout
7474         issues without create another text renderer.
7475         - Uses Region.Intersect to fix some flickers problems, now only needed
7476         parts will redrawed.
7477         - This changes fixes #79614 and some other unreported issues, on Linux 
7478         some layout problems still remain, the problem is under 
7479         MeasureCharacterRanges but it is an libgdiplus bug.
7481 2007-03-10  Gert Driesen  <drieseng@users.sourceforge.net>
7483         * TextBox.cs: Set for foreground color.
7484         * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
7485         this is already done in Control.
7487 2007-03-10  Jackson Harper  <jackson@ximian.com>
7489         * TextBox.cs: Set the background color, but reset the
7490         backcolor_set flag which is just for the user setting the
7491         background color.
7493 2007-03-09  Chris Toshok  <toshok@ximian.com>
7495         * Control.cs: really remove the call to XplatUI.SetVisible from
7496         CreateHandle(), like I said I did when I merged the branch.
7498         * BindingSource.cs: implement some more of this stuff.
7500 2007-03-09  Jackson Harper  <jackson@ximian.com>
7502         * TextBox.cs: Don't explicitly set our background colors.
7503         * TextControl.cs:
7504         * TextBoxBase.cs: Draw readonly text.
7505         - Need to invalidate when backcolor or readonly are changed.
7506         
7507 2007-03-09  Jackson Harper  <jackson@ximian.com>
7509         * TextBoxBase.cs: Don't set the forecolor until the handle is
7510         created.
7511         - Do not raise OnPaint, and removed some old debug code.
7513 2007-03-09  George Giolfan  <georgegiolfan@yahoo.com>
7515         * ScrollableControl.cs: Fix mouse wheel scrolling.
7517 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
7519         * Control.cs: Wire up MouseDoubleClick event.
7521 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
7523         * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
7524         top or bottom.
7525         * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
7526         * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
7527         item is added.  This logic was moved to ToolStrip.OnItemAdded.
7528         [Fixes bug #81090]
7530 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7532         * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
7534 2007-03-08  Jackson Harper  <jackson@ximian.com>
7536         * TreeView.cs: Show the correct image for selected node (this used
7537         to work, not sure how the code got deleted). Also implemented 2.0 feature
7538         SelectedImageKey.
7540 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7542         * ListView.cs:
7543         * ListViewItem.cs: Cache index in items when retrieving them
7544         in VirtualMode.
7546 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
7548         * ToolStripItem.cs: Don't return the explicit_size if we are using 
7549         AutoSize.  Fixes invalidation issue when user has explicitly set a
7550         size and has AutoSize = true.
7552 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
7554         * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
7556 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
7558         * DataGridView.cs: Remove event handler from DataView when a
7559         DataTable is used as DataSource.
7561 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
7563         * Control.cs: Create internal setter for client_size to allow it to be
7564         set without triggering resizing code.
7565         * Form.cs: Calculate client_size in constructor, only change client_size
7566         in FormBorderStyle property if Handle has been created.
7567         [Fixes #80574, #80791]
7569 2007-03-08  George Giolfan  <georgegiolfan@yahoo.com>
7571         * SystemInformation.cs: Add TerminalServerSession.
7573 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
7575         * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
7576         TreeView code.
7578 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
7580         * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
7581         Handle before we were supposed to.  Now checks ActivateOnShow property
7582         in Control.
7583         * Control.cs: Add internal ActivateOnShow property.
7584         * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
7585         for ActivateOnShow.
7586         * Hwnd.cs Remove no longer needed no_activate field.
7588 2007-03-07  Jackson Harper  <jackson@ximian.com>
7590         * TreeView.cs: Implement owner draw tree nodes.  And a couple more
7591         2.0 properties
7592         * DrawTreeNodeEventHandler.cs: Add
7593         * DrawTreeNodeEventArgs.cs: Correct default value.
7594         
7595 2007-03-07  Chris Toshok  <toshok@ximian.com>
7597         * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
7598         to be called before NativeWindow.WndProc.  Put the HwndCreating
7599         magic there to hook up our Hwnd's to handles.
7601 2007-03-07  Gert Driesen  <drieseng@users.sourceforge.net>
7603         * DataGridView.cs: Comment out debug code.
7605 2007-03-07  Chris Toshok  <toshok@ximian.com>
7607         [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
7608         to make the rest of the world happy]
7610         * Control.cs (CreateHandle): there's no need to call
7611         XplatUI.SetVisible here, it's effectively done by
7612         XplatUI.CreateWindow on X now, and always was on windows.
7614         * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
7615         shortcircuit out of the loop if we have a message loop running on
7616         this thread.
7618         [Changelog from merge]
7620         2007-03-05  Chris Toshok  <toshok@ximian.com>
7622                 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
7623                 causes handle creation.
7625         2007-02-28  Chris Toshok  <toshok@ximian.com>
7627                 * ApplicationContext.cs: Add a flag to make sure we only raise the
7628                 ThreadExit event once (ExitThreadCore can be indirectly called
7629                 from a few places.)  I don't like the additional flag, but it
7630                 makes the event ordering/count correct.
7632                 * Application.cs (MWFThread.LoopCount): don't use an enumerator
7633                 without locking the collection.  An enumerator doesn't give us any
7634                 protection from modification anyway.  Lock the thread hash and
7635                 replace the complicated enumerator loop with a foreach.
7636                 (Application.CloseForms): make internal so it can be called from
7637                 ApplicationContext.  This should probably be moved to MWFThread.
7638                 (Application.ExitThread): don't call MWFThread.Current.Exit()
7639                 here.  just call XplatUI.PostQuitMessage.  We'll exit the thread
7640                 when the runloop exits (in response to WM_QUIT.)
7641                 (Application.RunLoop): add a comment (and check) for
7642                 context.MainForm being null after setting context.MainForm.Visible
7643                 = true.  This is because you're perfectly free to dispose of a
7644                 form in VisibilityChanged.  Chalk this up to another case where we
7645                 need to synchronously generate WM_ACTIVATE from Control.Show.
7646                 Also, add handling for WM_QUIT here so we'll exit the loop.
7647                 
7648                 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit.  The
7649                 fact that we don't wait if we're only unmapping the whole_window
7650                 makes me a bit nervous, but it doesn't seem to cause any problems
7651                 yet.
7653                 also, add a comment about the stupid, broken and wrong resetting
7654                 of PostQuitState to false in GetMessage().
7656                 In PostQuitMessage, we need to add a WM_QUIT message to the
7657                 thread's queue.  We use the FosterParent to get the right
7658                 handle/hwnd/queue.
7660                 Lastly, in SetVisible, we need to unmap both windows, since the
7661                 waiting only happens when we're unmapping the client window.  So
7662                 now, the *only* time we unmap just the whole_window is in the hack
7663                 for resizing a control to 0,0.
7664                 
7665         2007-02-21  Chris Toshok  <toshok@ximian.com>
7667                 * Application.cs (CloseForms): rewrite this so that we don't
7668                 modify the list while we're traversing it.
7670         2007-02-20  Chris Toshok  <toshok@ximian.com>
7672                 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
7673                 of OnHandleCreated.
7674                 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
7675                 handle is created.  otherwise we'll create it here.
7676                 (VerticalScrollEvent): same here.
7678                 * Application.cs (CloseForms): call Form.Dispose, don't post
7679                 WM_CLOSE_INTERNAL.
7681                 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
7682                 here. Application should Dispose() of the Form's.
7684                 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
7685                 WM_DESTROY as well.
7686                 (MapWindow,UnmapWindow): only actually do the waiting for
7687                 SHOWWINDOW if the control we're dealing with is a Form.
7688                 (CreateWindow): if the control isn't a form, SendMessage
7689                 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
7691                 * Control.cs (SetVisibleCore): always use is_visible here, not
7692                 value.  If we use value, we can end up re-setting something
7693                 visible if, for instance, you do Control.Hide() in a delegate
7694                 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
7696         2007-02-20  Chris Toshok  <toshok@ximian.com>
7698                 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
7699                 the message we need.  PeekMessage returning false should not be a
7700                 condition under which we exit the loop.
7702         2007-02-15  Chris Toshok  <toshok@ximian.com>
7704                 * Control.cs (Refresh): only refresh if we've got a handle and are
7705                 visible.
7706                 (CreateAccessibilityInstance): CreateControl() here.
7707                 (UpdateChildrenZOrder): complicate the code loop even more by
7708                 taking into account controls that haven't had their handle
7709                 created, and those that aren't visible.  But on the flip side,
7710                 simplify the code by splitting it into two loops.  one which
7711                 builds up the list of child controls we're interested in, and the
7712                 other that sets the z order of those children.
7714         2007-02-14  Chris Toshok  <toshok@ximian.com>
7716                 * Control.cs: Control.AccessibilityObject causes the control to be
7717                 created, not just the handle.
7719         2007-02-14  Chris Toshok  <toshok@ximian.com>
7721                 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
7722                 problem on X where a window might have its handle created (and be
7723                 visible) while the window is unmapped.  calling XConfigureWindow
7724                 on an unmapped window is bad, and generates X errors.
7726         2007-02-13  Chris Toshok  <toshok@ximian.com>
7728                 * Control.cs (CreateHandle): don't loop over our children setting
7729                 their parent here.  do it when in WndProc when we're shown.
7730                 (UpdateChildrenZOrder): make this internal so we can call it from
7731                 ScrollableControl.
7732                 (WndProc): for WM_SHOWWINDOW, reparent the child control after
7733                 creating its handle.  Also, remove the calls to PerformLayout from
7734                 here.  they're done in ScrollableControl.OnVisibleChanged.  Also,
7735                 OnVisibleChanged only seems to be called directly here for the
7736                 toplevel control.  It's propagated down the window hierarchy by
7737                 calls to child.OnParentVisibleChanged.
7738                 (OnVisibleChanged): don't do layout here - it's done (oddly
7739                 enough, according to a glance at stack traces on ms.net..) in
7740                 ScrollableControl.
7741                 
7742                 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
7743                 z order of our children before calling PerformLayout.
7745         2007-02-12  Chris Toshok  <toshok@ximian.com>
7747                 [big change, fixes #80020]
7748                 
7749                 * AccessibleObject.cs: we need to make owner internal again to fix
7750                 some of ControlAccessibleObject.
7752                 * Control.cs: lots of changes here.  add support for WM_CREATE,
7753                 for which we generate OnHandleCreated.  Remove the OnHandleCreated
7754                 call from CreateHandle.  Also add support for WM_SHOWWINDOW where
7755                 we create child controls.  leave the MonoTODO's for the
7756                 accessibility calls, but fix the exceptions so the tests pass.
7758                 Add the InvalidOperationExceptions to Invoke methods, and remove a
7759                 couple of InvokeInternal methods we aren't using.
7760                 
7761                 Also, add a couple of CreateHandle calls in places where we know
7762                 the handles are being created but our code doesn't reference
7763                 .Handle.
7765                 Make SetVisibleCore call OnVisibleChange if the handle isn't
7766                 created.  If the handle is created, we rely on XplatUI.SetVisible
7767                 generating the event synchronously.
7768                 
7769                 Lastly, make sure we don't use this.Handle inside CreateHandle,
7770                 because we can call back into client (and that code can dispose of
7771                 the control).
7773                 * XplatUIStructs.cs: misc/cleanup.
7775                 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
7776                 although we don't populate the wParam properly.
7777                 (CreateWindow): generate WM_CREATE.
7778                 (MapWindow,UnmapWindow): make these calls synchronous, at great
7779                 performance expense (particularly in the unmap case), to match
7780                 win32 behavior.
7782                 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
7783                 to call it.
7784                 (set_MdiParent): don't recreate the handle unless it's been
7785                 created already.
7786                 
7787                 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
7788                 it's created.
7790                 * NativeWindow.cs: this is probably the weirdest part of the
7791                 patch.  We need a way to link up the window being created to the
7792                 WM_CREATE message.  Since we can only be creating one window at a
7793                 time on a given thread, we keep track of a per-thread reference so
7794                 we can dispatch it properly.  We also need to keep track of the
7795                 Hwnd currently being created so that the win32 backend doesn't
7796                 have problems.
7797                 
7798                 * XplatUIWin32.cs: a similar change to the one we made in
7799                 NativeWindow.cs.
7801 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
7803         * ToolStripItem.cs: Make CalculatePreferredSize virtual.
7804         * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
7805         to draw the menu shortcut string.
7807 2007-03-07  Jackson Harper  <jackson@ximian.com>
7809         * TreeNode.cs: Add the 2.0 collapse method.
7811 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
7813         * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
7815 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
7817         * DataGridView.cs: Change DataSource will clear column and row
7818         lists. Call Invalidate() to reflect DataSource change.
7820 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
7822         * DataGridView.cs: Add rows when DataSource is System.Data.DataView
7823         and a new row is added to it.
7825 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
7827         * DataGridView.cs: Add columns when DataSource is en empty list but
7828         is a System.Data.DataView (from a System.Data.DataTable).
7830 2007-03-06  Andreia Gaita  <avidigal@novell.com>
7832         * Label.cs: Implement AutoEllipsis (2.0)
7834 2007-03-06  Jackson Harper  <jackson@ximian.com>
7836         * TreeView.cs: Implement 2.0 TopNode setter property.
7837         - Use a local var instead of the skipped_nodes field for computing
7838         how many nodes to skip.  Otherwise we won't scroll because the
7839         valuechanged handler checks if skipped_nodes is equal to the new
7840         value.
7841         - Implement 2.0 Sort method.
7842         - Add useless 2.0 DoubleBuffer property
7843         - Implement 2.0 LineColors property.  Lets you change the color of
7844         the lines in the tree. Terribly useful for creating non cohesive
7845         desktops.
7846         - Implement 2.0 image key feature.
7848 2007-03-06  Jackson Harper  <jackson@ximian.com>
7850         * TreeView.cs: We can't get the bounds of the nodes before raising
7851         the AfterSelect event, because that event could change the node's
7852         bounds (scrolling, font change, etc).
7854 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7856         * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
7857         * Form.cs: Don't recreate handle when creating FormWindowManager, just
7858           update window styles. In CreateParams us VisibleInternal instead of
7859           VIsible to get the actual visible flag set for this form.
7860         * FormWindowManager.cs: Activate the form whenever the mouse clicks on
7861           the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
7862           handle the case when the form is already maximized, in which case
7863           it should be restored. Fixes #81043.
7865 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7867         * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
7869 2007-03-05  Jackson Harper  <jackson@ximian.com>
7871         * TreeViewHitTestInfo.cs: implement.
7873 2007-03-05  Jackson Harper  <jackson@ximian.com>
7875         * InternalWindowManager.cs: class status fix.
7877 2007-03-05  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7879         * InternalWindowManager.cs: All windows that have a parent
7880         are confined to their parent when they're being moved.
7881         Fixes #80822.
7883 2007-03-04  Gert Driesen  <drieseng@users.sourceforge.net>
7885         * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
7886         on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
7888 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7890         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
7891           buttons invisible before deciding which ones should be visible
7892           (fixes minimize/maximize buttons showing up in toolwindows). Remove
7893           an unused variable.
7894         * InternalWindowManager.cs: Remove warning.
7896 2007-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7898         * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
7899         to throw an InvalidOperationException is virtual mode is being used.
7901 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
7903         * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
7904         ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
7905         ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
7906         ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
7907         ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
7908         ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
7910 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7912         * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
7913           driver.KeyboardDelay from XplatUI.KeyboardDelay 
7914         * XplatUIW      in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
7915           (patch by Sergey Volk)
7917 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7919         * ToolWindowManager.cs: Added, contains logic for
7920           tool windows.
7921         * CreateParams.cs: Add a few helper methods and an
7922           internal variable to know which control the CreateParams belongs
7923           to.
7924         * Control.cs: Call Form.ChangingParent when the
7925           parent is about to be changed.
7926         * XplatUIX11.cs: DeriveStyles (): Set
7927           caption_height for all windows that have captions and are children.
7928           Update to use ToolWindowManager instead of InternalWindowManager
7929           for ToolWindows.
7930         * XplatUIWin32.cs: Set fake window styles for all
7931           windows that have window managers.
7932         * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
7933           now duplicated for mdi windows when they are
7934           maximized, first for the buttons the window itself has, then for
7935           the buttons that appear in the menu bar. Makes things a little
7936           easier). Updated UpdateWindowDecorations, SetWindowState and the
7937           mouse eventhandlers accordingly.
7938         * Form.cs: Add ChangingParent (), contains the
7939           logic of what should happen when the parent changes. In MdiParent
7940           don't set things that ChangingParent () is doing. When handling
7941           WM_CLOSE, we can close the form if there are any other modal forms
7942           and the current form is a descendent of the modal form.
7943         * InternalWindowManager.cs: A lot of refactoring,
7944           the title buttons are now extracted to a separate container class
7945           that takes care of all button code (clicks, tooltips, etc). Moved
7946           Iconic|Maximized|Normal Bounds properties to this class from
7947           MdiWindowManager, so that the window state logic can succeed for
7948           other than mdi wm's. Implemented general window state change logic.
7949           Moved CreateButtons to ThemeWin32Classic, since the theme might
7950           override which buttons are available when as well as the exact
7951           location.
7952         * FormWindowManager.cs: Added, contains logic for
7953           normal forms.
7954         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
7955           which buttons go where (and if they are at all visible). 
7956           Removed special handling of maximized windows, since they aren't special. 
7957           In DrawManagedWindowDecorations don't try to draw the text if it is
7958           empty.
7959         * MdiClient.cs: ArrangeIconicWindows: Don't  calculate any sizes, 
7960           use whatever the wm gives us.
7962 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
7964         * ButtonBase.cs: Add 2.0 properties.
7965         * Button.cs: Override Draw for 2.0.
7966         * Control.cs: Add Entered and Selected properties.
7967         * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
7968         TextRenderer.cs: Make internal for 1.1 to unify drawing code.
7969         * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
7970         buttons.
7971         * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
7973 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
7975         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code.  :/
7977 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
7979         * XplatUIWin32.cs: Register a new class with Windows each time we get
7980         a new ClassStyle.  [Fixes bugs #79432, #80817]
7981         * Controls.cs: Set the correct ClassStyle in CreateParams.
7982         * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
7984 2007-03-01  Gert Driesen  <drieseng@users.sourceforge.net>
7986         * ListView.cs: Add fireEvent argument to ReorderColumn since the
7987         ColumnReordered event must not be signaled when modifying DisplayIndex
7988         of a ColumnHeader. Added internal ReorderColumns method which takes
7989         care of drawing, and updating the internal DisplayIndex of the
7990         ColumnHeader. Added AddColumn method which is invoked from
7991         ColumnHeaderCollection when adding or inserting columns, and which
7992         ensures that reorder_columns_indices is kept in sync. Avoid redrawing
7993         after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
7994         Recalculated dispay indices after removing a ColumnHeader.
7995         * ColumnHeader.cs: Save DisplayIndex separately from ListView to
7996         match MS. Allows last display index to be returned after ListView
7997         is disposed. Update actual location of ColumnHeader when DisplayIndex
7998         is modified.
8000 2007-03-01  Everaldo Canuto  <everaldo@simios.org>
8002         * LinkLabel.cs: Improve CalcTrimRectangle.
8003         
8004         * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
8006 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
8008         * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
8009         get rectangle as a result value.
8011 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
8013         * LinkLabel.cs: Theres some diferences between rectangle return from 
8014         MeasureCharacterRanges and the area used for DrawString to fix this 
8015         CalcMeasurementFactor method was created, it calcules the diferences
8016         to be use later to adjust rectangle in draw operations. Fixes #80473.
8017         
8018         * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
8019         to adjust draw rectangle.
8021 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
8023         * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
8024         text and some other changes to reduce and optimize source code.
8026 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
8028         * RadioButton.cs: Implement 2.0 event.
8029         * RelatedImageListAttribute.cs: Implement new class.
8031 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
8033         * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
8035 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
8037         * CheckBox.cs: Implement 2.0 functionality.
8039 2007-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8041         * ListView.cs: Refactor Add and AddRange methods of
8042         ListViewItemCollection, to not update the ListView
8043         everytime an item is added in AddRange. Also move the update
8044         code to a new CollectionChanged method, and call it
8045         from other methods that need it as well (this should also fix some
8046         bugs when Sorting is used).
8048 2007-02-27  Jackson Harper  <jackson@ximian.com>
8050         * TextControl.cs: Try to never let the caret stay in a non-text
8051         tag.
8052         * TextBoxBase.cs: Update the caret.
8054 2007-02-26  Jonathan Pobst  <monkey@jpobst.com>
8056         * XplatUIStructs.cs: Add some convenience methods for POINT structure.
8057         * XplatUIWin32.cs: Add some convenience methods for RECT structure,
8058         delete POINT structure, duplicate of one in XplatUIStructs.
8059         * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
8061 2007-02-26  Gert Driesen  <drieseng@users.sourceforge.net>
8063         * ListView.cs: Initialize LabelEditEventArgs after setting Text of
8064         edit box since otherwise the Label would immediately be set (even if
8065         the user did not modify the label). In OnKeyDown set Handled to true
8066         if Return or Escape was pressed. In ColumnHeaderCollection unlink
8067         columns that are to be removed. In ListViewItemCollection unlink items
8068         that are to be removed.
8070 2007-02-24  Jonathan Pobst  <monkey@jpobst.com>
8072         * TextRenderer.cs: If we set a GDI clip region, we need to clear
8073         it when we are done.  [Fixes bug #80949]
8075 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
8077         * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
8079 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8081         * ListView.cs: I forgot to commit the changes for ListView 
8082         in my previous patch.
8084 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
8086         * Clipboard.cs: Partially implement an overload of SetDataObject.
8087         * Form.cs: Implement ShowWithoutActivation.
8088         * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
8090 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8092         This is a first set of changes to make the Virtual mode works,
8093         by avoiding the retrieval of ListViewItem instances until
8094         draw time.
8096         * ListView.cs: Store item position in the ListView instead of the
8097         ListViewItem, this way we don't request the Bounds property of
8098         ListViewItem inside the ListView calculations, as well as cache the item
8099         size in item_size field. Store indexes instead of ListViewItem
8100         instances in the matrix used by icon view. Add a ItemMatrixLocation
8101         struct to hold the row and col info of the matrix info.
8103         * ListViewItem.cs: Don't store the location anymore, and only cache
8104         the rectangles for GetBounds. Use the ListView.GetItemLocation
8105         method to retrieve the actual location.
8107 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
8109         * TextRenderer.cs: Add clipping support, thanks to George.
8110         [Fixes bug #80949]
8112 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
8114         * ListViewItem.cs: Cancel label edit when item is removed from 
8115         ListView.
8116         * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
8117         event before the edit textbox is displayed.  Added CancelEdit method
8118         which is used end to editing while ignoring the value set by the
8119         user. In EndEdit, set focus to ListView to avoid losing focus to
8120         other controls. In ListViewItemCollection.Clear, cancel editing of
8121         any of the items.  In Remove, cancel editing of item being removed.
8122         Avoid udplicate code by modifing RemoveAt to invoke Remove.
8124 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
8126         * FileDialog.cs: Update FSEntry when move is successful. Fixes
8127         bug #80948.  
8129 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
8131         * MainMenu.cs: Change Draw method to take care about MenuOrigin to be 
8132         compatible with non X11 systems. Fixes #80901.
8134 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
8136         * ListView.cs: Added bool argument to UpdateMultiSelection to specify
8137         whether the item should be unselected and reselect. We do no want this
8138         when we're starting to edit the label. Do not fire the 
8139         SelectedIndexChanged event from ListView when its already been fired
8140         by modifying ListViewItem.Selected. Fixes bug #80943.
8142 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
8144         * TextRenderer.cs: Previos commit logic was backwards.
8146 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
8148         * TextRenderer.cs: Don't add padding on MeasureText if we were
8149         sent the NoPadding flag.
8151 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
8153         * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
8154         after DrawButton. To prevent image overlaps button borders SetClip and 
8155         ResetClip added before and after draw image. Fixes #79129.
8157 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
8159         * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify 
8160         window size, it fix problem when you run under win32 that theres
8161         Size diferent than ClientSize. Also fix controls size and positions
8162         to mimic Win32. Fixes #80837.
8164 2007-02-22  Everaldo Canuto  <everaldo@simios.org>
8166         * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on 
8167         menu area to fix some problems for non X11 systems. Fixes #80613.
8169 2007-02-22  Jackson Harper  <jackson@ximian.com>
8171         * TreeNode.cs: When a node is expanded, set its is_expanded flag
8172         even if it doesn't have any children.
8174 2007-02-22  Jackson Harper  <jackson@ximian.com>
8176         * TreeView.cs: Calculate the top node 'on the fly', this
8177         eliminates issues where you need to click on the tree before
8178         scrolling it to get the top node computed correctly.
8179         * TreeNodeCollection.cs: We don't need to mess with the top node
8180         anymore.
8182 2007-02-22  Jackson Harper  <jackson@ximian.com>
8184         * DataGridViewRow.cs: Fix typo so height can actually be set.
8185         Patch by Peter Grimm.
8187 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
8189         * FileDialog.cs: Fixed support for renaming files and directories.
8190         * ListView.cs: Do not lose focus when edit is canceled. Process
8191         Escape as regular key (to prevent closing of dialogs).
8193 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
8195         * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
8196         spaces. Changed spaces to tabs. Removed unnecessary init of bools.
8198 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
8200         * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
8201         did not modify label.
8202         * ListView.cs: Only set LabelEditEventArgs.Label if user actually
8203         modified the text. Reset Label when user presses Escape in edit mode.
8204         Move focus to ListView after having cancelled or finished editing the
8205         label.
8207 2007-02-21  Gert Driesen  <drieseng@users.sourceforge.net>
8209         * ComboBox.cs: Removed unnecessary initializations. Marked items field
8210         private. Clear textbox when Text is set to null and SelectedIndex is
8211         already -1.
8212         * FileDialog.cs: Removed unnecessary initializations. Removed 
8213         workarounds for ComboBox bugs that are now fixed. Modified
8214         DefaultExt, InitialDirectory and Title property to change null to
8215         zero-length string in getters. Avoid directly accessing fields.
8217 2007-02-20  Jackson Harper  <jackson@ximian.com>
8219         * TextControl.cs: Remove RecalAlignments call, that was some
8220         debugging leftovers.
8221         - Don't use the line indent when we shouldn't.
8222         * RichTextBox.cs: Add support for paragraph left indents.
8224 2007-02-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8226         * Control.cs: Fix BeginInvoke signature for 2.0 profile.
8227         Seems like the class status pages doesn't catch params differences.
8229 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
8231         * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
8233 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
8235         * ComboBox.cs: Setting Text should have no effect if item text of
8236         selected item exactly matches value. First lookup text using
8237         case-sensitive comparison, and fallback to case-insensitive comparison.
8238         FindString(Exact) returns -1 if search string is null. On 2.0 profile, 
8239         allow startIndex to be last index. Changed ArgumentOutOfRangeException
8240         paramname to match MS. Restart from first item if string is not found
8241         after startIndex. Fixed paramname of ArgumentNullException that is
8242         thrown for null value in ObjectCollection.Contains.
8244 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
8246         * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
8248 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8250         * ListControl.cs: In SelectedValue use value.Equals to compare for
8251         equality instead of ==, otherwise it will fail for strings.
8252         Fixes #80794.
8254 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8255         
8256         * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
8257         since the caret won't show up unless ShowSelection is true. 
8258         Fixes #80795.
8260 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8262         * Application.cs: When disabling all forms but the main form, do not
8263           disable any descendants of the main form (such as mdi children or
8264           other parented forms). Fixes #80822 on Windows.
8265         * Form.cs: If we have a parent, set the WS_CHILD style.
8266         * Control.cs: Update the window styles if the control whose parent has
8267           changed is a form (the WS_CHILD style has to be switched).
8269 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
8271         * XplatUIStructs.cs: MsgUIState structure added.
8273 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
8275         * FileDialog.cs: Removed need for separate fileName field. On 2.0
8276         profile, do not check filename(s) for illegal character if filename(s)
8277         were set non-interactively but always check on 1.0 profile. Fixed NRE
8278          in DefaultExt and only strip off first leading dot. Improve exception
8279         message when invalid Filter is set. Do not ignore InitialDirectory if
8280         it does no exist. Store specified Title, and if empty use default
8281         title (depending on type of dialog). Added an internal DialogTitle 
8282         property for retrieving dialog title. Fixed logic of displayed dir to
8283         more closely match MS. Avoid setting ComboBox.Text to a zero-length 
8284         string as its buggy.
8285         * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
8286         FileName is a zero-length string (it can never be null). Override 
8287         DialogTitle property to set default title of dialog box.
8288         * SaveFileDialog.cs: Override DialogTitle property to set default
8289         title of dialog box.
8291 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
8293         * FileDialog.cs: Modify default text of filename and filetype labels
8294         to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
8295         after we've updated the SelectedIndex. Fixes part of bug #80887.
8296         * SaveFileDialog.cs: Set text of filetype label.
8298 2007-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8300         * LabelEditEventArgs.cs: New internal SetLabel method, to set the
8301         label field. Needed by latest Jackson's fixes for ListView.
8303 2007-02-16  Andreia Gaita  <avidigal@novell.com>
8305         * PrintPreviewControl/PrintPreviewDialog: Properly dispose of 
8306         print preview images.
8308 2007-02-16  Jackson Harper  <jackson@ximian.com>
8310         * ListView.cs: Make AfterLabelEdit work correctly.
8311         * FileDialog.cs: After changing the name of the folder, we have to
8312         make sure that it is created, or that we pop up an error because
8313         it already exists.
8315 2007-02-16  Jackson Harper  <jackson@ximian.com>
8317         * X11Dnd.cs: Implement aliases on mime handlers, so things like
8318         System.String are mapped to text.
8319         - Handle dataobjects, getting all the possible formats out of them
8320         - We dont need the drag event args before we give feedback. This
8321         allows feedback cursors to be immediate before selections have
8322         been converted.
8324 2007-02-16  Jackson Harper  <jackson@ximian.com>
8326         * TextBoxBase.cs: Modified the method for inserting images to
8327         taking a line and position instead of tag and position.
8328         * RichTextBox.cs: Handle PngBlip data by inserting the png image
8329         into the RTF file.
8330         * TextControl.cs: Allow images to be inserted as the first tag of
8331         a line.
8332         - Fix some off by one issues when we assume the first tag is a
8333         text tag, not an image tag.
8335 2007-02-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8337         * ListView.cs: Set focus to ListView when ItemControl gets a
8338         WM_RBUTTONDOWN message, to mimic .Net behaviour. 
8339         Fixes part of #80467.
8341 2007-02-15  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8343         * DateTimePicker.cs: Call RecreateHandle if the Format changes and
8344           validate Text input (if null or empty string reset Value to default
8345           value). Fixes #80830.
8347 2007-02-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8349         * ListView.cs: Set owner as null for columns and items when
8350         Dispose is invoked. Fixes #80607.
8352 2007-02-14  Jonathan Pobst  <monkey@jpobst.com>
8354         * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
8355         showing DropDowns, don't show a Grip when doing Flow layout.
8356         [This fixes the toolbox in PDN 2.72.]
8357         * ToolStripItem.cs: Add Anchor property and some internal properties to
8358         reduces needed changes to FlowLayout.
8359         * ToolStripOverflow.cs: Remove unused variable.
8360         * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
8361         use it in the layout calculations.
8363 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
8365         * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
8366         reported in #79640.
8367         
8368         * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
8369         size calculation.
8371 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
8373         * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from 
8374         MeasureString format, it can make button very large in some cases, it is
8375         strange but is what win32 do.
8377 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
8379         * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string 
8380         size calculation.
8382         * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
8383         rendering, the value is based on MenuAccessKeysUnderlined.
8385 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
8387         * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
8388         for most themes.
8389         
8390         * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
8391         
8392         * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
8393         and use MenuAccessKeysUnderlined instead.
8395 2007-02-13  Andreia Gaita  <avidigal@novell.com>
8397         * ContainerControl.cs: Focus fix for nunit treeview selection bug.
8398         A selected control would not get a Focus call if:
8399                 - the default active control of the container is the same as
8400                   the one that was selected
8401                 - we are switching from one container to another
8402         Under these conditions, the container being selected already has
8403         an active_control, which is the same as the one being activated, 
8404         so set_ActiveControl would always return and not send the Focus
8405         call. Fix to check if the currently active control of the container
8406         is actually focused.
8408 2007-02-13  Jonathan Pobst  <monkey@jpobst.com>
8410         * StatusStrip.cs: Implement the spring layout.
8411         * ToolStripControlHost.cs: Make sure the hosted control's visibility
8412         always matches the host.
8413         * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
8414         and TextAfterImage.
8416 2007-02-13  Andreia Gaita  <avidigal@novell.com>
8418         * Control.cs: Code reorganization only.
8419           - Reorganize the WndProc cases so that each case has it's own handling method, 
8420           to help with the no-line-numbering stack traces.
8421           - Formatting changes (it's vstudio's fault, really :p)
8423 2007-02-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8425         * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
8426           Thread.CurrentUICulture to match DateTimePicker's (and MS)
8427           behaviour.
8429 2007-02-12  Jackson Harper  <jackson@ximian.com>
8431         * RichTextBox.cs:
8432         * TextBox.cs: By default we have a non multiline document
8433         - use the multiline property instead of the internal variable
8434         * TextBoxBase.cs: Treat multiline and non multiline the same in
8435         most places.
8436         - Use the documents multiline flag instead of tracking it ourself
8437         * TextControl.cs: Attempt at getting multiline to match MS
8438         behavior.  Lines now track an offset, which is either their X or Y
8439         offset depending on whether or not we are in multiline mode.
8440         - Update all the methods to understand that lines have an X value.
8441         - Fix crash in Undo::Duplicate when empty lines are deleted.
8443 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
8445         * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and 
8446         code moved to properties PreferredHeight and PreferredWidth. It solve the
8447         all problems when preferred sizes must be recalculated. Fixes #80801.
8449 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
8451         * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
8452         font height when compatible_text_rendering is false. Partially fix #80801.
8454 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
8456         * Form.cs: Fixed typo in exception message. Fixes bug #80779.
8458 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
8460         * Form.cs: Improved exception messages in ShowDialog.
8462 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
8464         * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
8465         PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
8466         if not set. Fixes bug #80764. Avoid accessing current_settings field
8467         directly.
8469 2007-02-08  Everaldo Canuto  <everaldo@simios.org>
8471         * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
8472         false.
8474         * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
8475         public in 2.0 and for easy maintenance and dont break compatibility it is 
8476         internal in 1.1.
8477         
8478 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
8480         * ToolStripItem.cs: Implement using images from ImageList.
8482 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8484         * DateTimePicker.cs: Change default date-formatting culture from
8485           CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
8486           seems to be the way MS does it.
8488 2007-02-08  Andreia Gaita  <avidigal@novell.com>
8490         * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image 
8491         (the 6 was cut off on the right side)
8493 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
8495         * Form.cs: Tell MenuStrips to close when the form is clicked.
8496         * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs, 
8497         ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
8498         ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
8499         ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add 
8500         support for Overflow, where items that do not fit are automatically
8501         reparented to a drop down menu.
8502         * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
8503         Also: fixes bug #80747.
8505 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8507         * ComboBox.cs: Remove warning (unused code).
8508         * ScrollableControl.cs: Remove warning for 1.1 profile.
8510 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8512         * Form.cs: Remove a warning.
8514 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8516         * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
8517           'g' specifier, not documented anywhere, but seems to always show up
8518           as a single space (might have something to do with the DateTime 'g'
8519           specifier, which is the era format, but since DateTimePicker can't
8520           go earlier than 1753 it wouldn't matter) . Fixed quote handling,
8521           won't crash if the format has an unmatched quote. Now shows
8522           single-character formats correctly. Fixes #80744.
8524 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
8526         * StatusStrip.cs: Stretch property needs to call base.Stretch,
8527         not this.Stretch to fix stack overflow. [Fixes bug #80760]
8529 2007-02-07  Chris Toshok  <toshok@ximian.com>
8531         * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
8532         background color.  it overwrites the background image we've
8533         already painted.  Fixes #80599.
8535 2007-02-07  Chris Toshok  <toshok@ximian.com>
8537         * DataGrid.cs: return immediately from Edit() when there are no
8538         columns.  Fixes #80662.
8540 2007-02-07  Chris Toshok  <toshok@ximian.com>
8542         * MessageBox.cs: fix #80625.  don't always show the Help button in
8543         2.0.  use the displayHelpButton parameter to determine if we
8544         should show it. Also, make the internal show_help field private.
8546 2007-02-07  Chris Toshok  <toshok@ximian.com>
8548         * Control.cs (SetVisibleCore): check in the proposed patch for
8549         80604, and set is_visible before calling CreateControl.
8551 2007-02-07  Jonathan Pobst  <monkey@jpobst.com>
8553         * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to 
8554         MonoInternalNote.  This is added automagically by VS2005, so let's not crash
8555         on it.
8557 2007-02-06  Everaldo Canuto  <everaldo@simios.org>
8559         * MenuAPI.cs: hotkey_active internal field added, it is required because
8560         we need to know when hotkeys must be draw, before this change a keystate
8561         Navigating was used but we can have menu in navigating state without
8562         hotkeys. Fixes #80694.
8563         
8564         * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
8566 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8568         * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
8569           corresponding events and methods to be internal for 1.1 profile and
8570           public for 2.0 profile (required by SizeGrip).
8571         * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
8572           implicit control list). Don't set the size nor the location of the
8573           SizeGrip anymore as it's not needed.
8574         * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
8575           draw directly on the captured control (fixes #80656). Removed
8576           ShowGrip (it wasn't used anywhere), redraw (always true), added
8577           GetDefaultSize and GetDefaultRectangle to calculate defaults.
8578         * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
8579           be called from SizeGrip.
8581 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8583         * Timer.cs: Throw ArgumentException if Interval <= 0.
8585 2007-02-05  Jackson Harper  <jackson@ximian.com>
8587         * TreeView.cs: We need to check scrollbar visibility when window
8588         visibility is updated, because non visible trees don't ever add
8589         scrollbars.
8590         * Cursor.cs: We want the override cursor to be reset to NULL when
8591         we set current cursor to the default cursor.
8593 2007-02-05  Jackson Harper  <jackson@ximian.com>
8595         * TextControl.cs: Don't have crlfs when we are non multiline.
8596         - Consolidate the line position.
8598 2007-02-05  Jackson Harper  <jackson@ximian.com>
8600         * X11Keyboard.cs: BACK+CTRL gets a special char code.
8602 2007-02-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8604         * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
8605           handling LeaveNotify->NotifyUngrab in order to send
8606           WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
8607           after calling XUngrabPointer, so we call WindowUngrabbed directly
8608           from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
8609         * Control.cs: Handle WM_CAPTURECHANGED in order to raise
8610           MouseCaptureChanged correctly. Also create handles if changing
8611           Capture (matches MS behaviour).
8613 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8615         * SizeGrip.cs: Make the last change 2.0 only.
8617 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8619         * SizeGrip.cs: If resizing and the capture is lost, revert any size
8620           changes to initial size (fixes #80597).
8622 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8624         * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
8626 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8628         * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
8629           background) and only allow dragging if enabled. This way the
8630           sizegrip can be used to fill the open square that otherwise would
8631           have been shown in the bottom right corner of ScrollableControl
8632           when ScrollableControl is not suppose to support sizing.
8633         * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
8634           sizegrip is shown and enabled, and hook up with necessary events.
8636 2007-02-01  Chris Toshok  <toshok@ximian.com>
8638         * DataGridTextBoxColumn.cs: clean up the
8639         GetFormattedString/GetColumnValueAtRow combination of functions.
8640         Also fix UpdateUI, and the initial state of
8641         IsInEditOrNavigateMode.
8643         * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
8644         aren't supposed to scroll the textbox here, we're supposed to
8645         scroll the datagrid.
8647 2007-02-01  Chris Toshok  <toshok@ximian.com>
8649         * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
8650         setting the position.
8652 2007-02-01  Chris Toshok  <toshok@ximian.com>
8654         * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
8655         here, since the most recent focus fixes keep us from generating
8656         the Leave event when our textbox gets focus.
8657         (Edit): we should be passing null for the column style's
8658         instantText parameter.
8659         
8660 2007-02-01  Jonathan Pobst  <monkey@jpobst.com>
8662         * ToolStripDropDownItem.cs: Make sure DropDownOpening event is 
8663         raised.  Fixes menu text/icons not showing up in PDN.
8665 2007-02-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8667         * Control.cs: Remove code in constructor that makes every
8668         control with WS_CHILD set have initial location -1, -1.
8670 2007-01-31  Jackson Harper  <jackson@ximian.com>
8672         * X11Dnd.cs: Take the keyboard on init to reduce coupling with
8673         XplatUIX11.
8674         * XplatUIX11.cs: Give teh keyboard to teh dnd.
8676 2007-01-31  Jackson Harper  <jackson@ximian.com>
8678         * X11Dnd.cs: Use IDataObject instead of the DataObject class.
8679         - Remove some debug code.
8681 2007-01-31  Jackson Harper  <jackson@ximian.com>
8683         * XplatUIX11.cs: If you set the override cursor during a grab, it
8684         should actually override the grab cursor.  This comes into play
8685         when you are setting custom cursors in a DND feedback method.
8687 2007-01-31  Jackson Harper  <jackson@ximian.com>
8689         * X11Dnd.cs: Add support for handling the QueryContinue and
8690         GiveFeedback events.
8691         - Cancel drag and drop actions when the escape key is clicked.
8692         * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
8693         can handle the ESCAPE key.
8694         - Allow dnd to swallow BUTTONUP messages if it needs to.  This is
8695         done when dnd events are continued after the button is released.
8696         - Add a new helper method so that dnd can translate key events.
8698 2007-01-31  Alexander Olk  <alex.olk@googlemail.com>
8700         * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
8701         make it more obvious what is happening.
8703 2007-01-30  Jackson Harper  <jackson@ximian.com>
8705         * XplatUIX11.cs: Don't break when handling button release in drag
8706         and drop operations. We need that BUTTONUP message to get through
8707         so capture is released.
8708         * X11Dnd.cs: We don't need to manually grab the pointer anymore,
8709         this is handled automatically when the mouse is down.
8711 2007-01-30  Jackson Harper  <jackson@ximian.com>
8713         * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
8714         is closed, so we need to make sure that we aren't changing the
8715         dialog result when the OK (Open or Save) button has been clicked
8716         and we are closing the window ourselves.  Note we don't need to
8717         worry about the cache being written in this case, because it was
8718         already done in the previous FilOk call.
8720 2007-01-30  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8721         
8722         * DateTimePicker.cs: Remove a warning.
8723         * ComboBox.cs: Remove a couple of warnings.
8725 2007-01-29  Chris Toshok  <toshok@ximian.com>
8727         * XplatUIX11.cs: don't crash, and remove the icon if the user has
8728         set one, if SetIcon is passed a null icon.
8730 2007-01-29  Andreia Gaita  <avidigal@novell.com>
8732         * TextBox.cs: Redraw when the password characters changes
8733         * TextControl.cs: Check if textbox has a password char and draw 
8734         a line of password chars instead of the text in the line. LineTag gets 
8735         an extra Draw() method which allows document.Draw to override the text 
8736         that will be drawn. Removes 1024 char limitation on length of passworded 
8737         lines.
8739 2007-01-29  Jackson Harper  <jackson@ximian.com>
8741         * TextBoxBase.cs: Deleting sections of text is undoable.  Deleting
8742         single chars is not.
8744 2007-01-28  Jonathan Pobst  <monkey@jpobst.com>
8746         * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
8747         one pixel.  Fix a StackOverflowException caused by an overload wrongly
8748         calling itself.
8750 2007-01-26  Everaldo Canuto  <everaldo@simios.org>
8752         * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
8753         also remove ProcessArrowKey and put the code inside ProcessKeys.
8755 2007-01-26  Jonathan Pobst  <monkey@jpobst.com>
8757         * PaddingConverter.cs: Added.
8759 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8760         
8761         * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
8762         ShowPanels is false (fixes #80600). Only draw up to 127 characters
8763         of text (fixes #80601). For panels clip the text to draw to the
8764         panel (fixes #80603).
8766 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8768         * ComboBox.cs: Fixed implementation of ResetText.
8770 2007-01-25  Jackson Harper  <jackson@ximian.com>
8772         * TextControl.cs: For the last char of a line we need to use the
8773         line size, not that chars width, since it won't actually be
8774         computed since the right side of a char is based on the start of
8775         the left side of the next char, and the next char does not exist.
8777 2007-01-25  Chris Toshok  <toshok@ximian.com>
8779         * Splitter.cs: fix the new unit tests, and reindent some switch
8780         statements.
8782 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8784         * ComboBox.cs: Implemented 2.0 methods and events.
8785         * TextBoxBase.cs: Added OnTextUpdate, so that
8786         ComboBox.ComboTextBox can inform ComboBox of it.
8788 2007-01-25  Jackson Harper  <jackson@ximian.com>
8790         * TextControl.cs: Respect ShowSelection when deciding whether or
8791         not to display the caret, this allows comboboxes to have carets
8792         when the combotextbox does not have focus.
8794 2007-01-25  Jackson Harper  <jackson@ximian.com>
8796         * TextControl.cs: Add a Suspend/Resume for updating, basically the
8797         same as the Suspend/Resume for recalc, except this will do actual
8798         Invalidates.
8799         - New Undo manager, works much like the MS version.
8800         - Implemented Redo
8801         * TextBoxBase.cs: The Cut operation is undoable.
8803 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8804         
8805         * TextBoxBase.cs: Don't antialias text. Makes it look way better
8806         on Windows (no difference on Linux).    
8808 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8810         * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
8811         we don't want to activate any windows. Fixes #79433.
8813 2007-01-25  Jonathan Pobst  <monkey@jpobst.com>
8815         - ButtonBase.cs: Fix capitalization of parameter: disposing.
8816         [Fixes bug #80609]
8818 2007-01-25  Alexander Olk  <alex.olk@googlemail.com>
8820         * FileDialog.cs:
8821         - Move to using System.ComponentModel.EventHandlerList
8822         - Replace Refresh with Invalidate
8823         - Clear the mime filecache on closing
8824         - Some other memory reducing work. After beeing closed FD now uses
8825           only about 300 KB for the fdo mime stuff plus the memory of the
8826           cached icons.
8827         * Mime.cs: Changed coding style and removed unnecessary commented
8828         code. Some more memory memory reducing work.
8830 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8832         * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
8833         a few other missing 2.0 properties.
8834         * Theme.cs: Added DrawFlatStyleComboBox.
8835         * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
8837 2007-01-24  Chris Toshok  <toshok@ximian.com>
8839         * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
8840         wake_waiting flag, not just when there's data to be read.  if we
8841         don't, then future wakeup's won't reach us and we'll be doomed to
8842         wait for the entire 1 second timeout forever (unless there are X
8843         events to be had).
8845 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
8847         * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
8848         until you pass Items.Count, not Items.Count - 1 like 1.1.
8850 2007-01-24  Gert Driesen  <drieseng@users.sourceforge.net>
8852         * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
8854 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
8856         * ToolStripContainer.cs: The recent Dock fix exposed that I was
8857         adding the panels in the wrong order.
8859 2007-01-24  Jackson Harper  <jackson@ximian.com>
8861         * TextBoxBase.cs: When we move the caret we also need to move the
8862         selection, this fixes some random crashing after doing select
8863         text, unselect, delete a char, paste.
8865 2007-01-24  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8867         * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
8869 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
8871         * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
8872         OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553. 
8873         * ToolBar.cs: Force redraw in BackgroundImageChanged.
8875 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
8877         * ToolBar.cs:
8878         - Implement support for vertical toolbars. Fixes #80539;
8879         - Call LayoutToolBar when resize, it fix some other problems in layout.
8880         - Rename requested_height to requested_size, as we can have width on it
8881         when toolbar is vertical.
8882         - Create a private property "Vertical" that uses Dock to verify when 
8883         toolbar is vertical or not.
8884         - Set ControlStyles when change Dock property.
8885         - Refactory in LayoutToolBar to have better variables names and to support
8886         vertical toolbars.
8887         - Fixes default value for ButtonSize when button count is equal zero, size
8888         must be (39, 36) test case writed.
8890 2007-01-23  Chris Toshok  <toshok@ximian.com>
8892         * Control.cs: fix the checks so that they work correctly for mdi
8893         parents/children.
8895 2007-01-23  Chris Toshok  <toshok@ximian.com>
8897         * Control.cs: ControlCollection seems to have super-secret
8898         abstraction breaking knowledge of Mdi containers.  allow MdiClient
8899         to add toplevel controls.
8901 2007-01-23  Chris Toshok  <toshok@ximian.com>
8903         * Control.cs: throw an ArgumentException if a toplevel control is
8904         added to our control collection from ControlCollection.Add, as
8905         well as from ControlCollection.IList.Add.  This fixes the
8906         ControlSetTopLevelTest.TestTopLevelAdd unit test.
8908         Also, in ControlCollection.IList.Add, don't through an
8909         ArgumentNullException, throw an ArgumentException, when value ==
8910         null.  This matches MS.
8912 2007-01-23  Chris Toshok  <toshok@ximian.com>
8914         * BindingSource.cs: initial, incomplete, implementation of
8915         BindingSource.
8917 2007-01-23  Jackson Harper  <jackson@ximian.com>
8919         * TextControl.cs:
8920         * TextBoxBase.cs: Checking in some pieces of the undo stuff so
8921         that I can fix a broken unit test (TextBoxTest::ClearUndo)
8922         
8923 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
8925         * ToolBar.cs: Add status fields to ToolBarButtonInfo.
8927 2007-01-23  Andreia Gaita  <avidigal@novell.com>
8929         * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
8930         * TreeNodeCollection.cs: New Add() methods, ContainsKey and
8931         IndexOfKey() for 2.0
8933 2007-01-23  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8935         * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
8936         to prevent it from changing z-order.
8937         * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
8938         leave UI updates in MdiWindowManager.
8939         * InternalWindowManager.cs: Check for 0 sized nc areas and make them
8940         1 sized (NC handling goes weird on Linux otherwise).
8941         * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
8942         necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
8943         remove a few NCRequestRecalcs. Changed calculations in IconicBounds
8944         to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
8945         and SetWindowState(s) to allow for changing the size of an activated child
8946         before activating it (reduces a lot of flicker).
8948 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
8950         * Form.cs: Changing FormBorderStyle has different semantics based
8951         on whether the Form is visible or not.  If not visible, don't change
8952         the Size.  But InvalidateNC needs to be called to force the window
8953         to pick up the changes and redraw itself.  [Fixes bug #80574]
8955 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
8957         [Moma work]
8958         * ContainerControl.cs: ProcessCmdKey.
8959         * ErrorProvider.cs: new constructor.
8960         * Form.cs: fix AutoValidateEvent compiler warning.
8961         * Label.cs: fix OnAutoSizeChanged compiler warning.
8962         * MenuStrip.cs: fix CanOverflow compiler warning.
8963         * TabControl.cs: SelectTab, OnSelected methods, Selected event.
8964         * TextBox.cs: Dispose.
8965         * ToolStrip.cs: CanOverflow, re-enable double buffering.
8966         * ToolStripControlHost.cs: fix CausesValidation compiler warning.
8967         * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
8968         * ToolStripItem.cs: Overflow, RightToLeft properties.
8970 2007-01-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8972         * Form.cs: Move the layout of the main form to MdiWindowManager.
8973         * MdiWindowManager.cs: If WindowState changes from or to Maximized,
8974         do a layout of the main window to update MdiClient's client area to
8975         the right area. Fixes #80533. Remove the calculation of nc size, 
8976         it was just wrong and the correct one is the same as for 
8977         InternalWindowManager. 
8979 2007-01-20  Jonathan Pobst  <monkey@jpobst.com>
8981         * Control.cs: Setting Anchor or Dock needs to reset the other
8982         to its default.  [Fixes bug #80556]
8984 2007-01-20  Chris Toshok  <toshok@ximian.com>
8986         * CheckedListBox.cs: class status changes.
8988         * ScrollableControl.cs: same.
8990         * RichTextBox.cs: same.
8992         * ContainerControl.cs: same.
8994         * ListView.cs: same.
8996         * NotifyIcon.cs: same.
8998         * MenuStrip.cs: same.
9000         * RadioButton.cs: same.
9002         * CheckBox.cs: same.
9004         * PrintPreviewDialog.cs: same.
9006         * Form.cs: same.
9008 2007-01-19  Jonathan Pobst  <monkey@jpobst.com>
9010         * TreeNode.cs: Apply Alan's patch for Name property.
9012 2007-01-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9013         
9014         * Form.cs: Implemented SizeGripStyle.
9015         * SizeGrip.cs: Check for minimum and maximum size for the
9016         control being resized and only resize if size has actually
9017         changed.
9019 2007-01-19  Chris Toshok  <toshok@ximian.com>
9021         * DataGridColumnStyle.cs: stop setting _readonly in the
9022         PropertyDescriptor setter.  fixes a unit test failure.
9024         also, rename ParentReadOnly to TableStyleReadOnly, and have it
9025         just consult our table style (if we have one).  We don't need to
9026         consult the datagrid readonly attribute because that's passed in
9027         as the _ro arg to Edit.  this simplifies things a little.
9028         
9029         * DataGrid.cs: use CurrentColumn instead of
9030         current_cell.ColumnNumber just to simplify some of the code.
9032         switch the order of some things in the CurrentCell setter to keep
9033         the previous cell from getting a textbox again -
9034         EnsureCellVisibility causes scrolling to happen, which calls Edit.
9035         So we need to set the new cell before calling it.
9036         
9037         call Edit in OnEnter, as does Microsoft.
9038         
9039         also, make sure the current table style isn't the one we create
9040         initially when checking to see if it's different than the one
9041         we're setting it to in BindColumns (this fixes #80421).
9043         * GridTableStylesCollection.cs: table styles can have "" for a
9044         mapping name.  part of the fix for #80421.
9046         * DataGridTextBoxColumn.cs: simplify the readonly calculation in
9047         Edit significantly.
9049 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
9051         * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
9052         and less GDI object leaky-er.
9054 2007-01-18  Andreia Gaita  <avidigal@novell.com>
9056         * LinkLabel.cs: Add opaque control style
9058 2007-01-18  Jackson Harper  <jackson@ximian.com>
9060         * TextControl.cs: Calculate width properly.
9061         - Don't store the tag's X offset, this can be figured out very
9062         easily.
9063         - When getting the caret tag make sure to get the last empty tag.
9065 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
9067         * Form.cs: Recalculate our size after setting a new FormBorderStyle.
9068         [Fixes bug #79959]
9070         * Control.cs: Color.Empty shouldn't count for previous transparent
9071         redraw changes.
9073 2007-01-18  Jackson Harper  <jackson@ximian.com>
9075         * TextBox.cs:
9076         * RichTextBox.cs:
9077         * TextControl.cs: Starting to merge in some pieces of my older
9078         undo work.  Basically just some slight cleanup of the undo API.
9080 2007-01-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9082         * TrackBar.cs: Fix signature of RightToLeftLayout.
9083         * StatusBar.cs: Implemented missing 2.0 methods and attributes.
9084         * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
9085         * Application.cs: Implemented UseWaitCursor.
9087 2007-01-18  Jackson Harper  <jackson@ximian.com>
9089         * TextControl.cs: We can't skip tags if any part of the tag is
9090         visible.
9092 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
9094         * ContainerControl.cs: Override OnLayout.
9096 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
9098         * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
9100         * ContextMenuStrip.cs: Make sure context menu is shown on top of 
9101         everything else.
9103 2007-01-18  Chris Toshok  <toshok@ximian.com>
9105         * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
9106         (leftover from the container_selected days, I'd wager).  fixes bug
9107         #80546.
9109 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
9111         * Control.cs: Apply patch from George to fix the new testcase on
9112         bug #80451.  We can't just check for Color.Transparent, we need 
9113         to check if the back color's alpha channel is < 255.
9115 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
9117         * Form.cs: Move setting show_icon = true to before the constructor
9118         so that the base constructor has that information when it calculates
9119         the form's size.  Was causing forms to be (6, 6) bigger than they
9120         were supposed to be.  Thanks for catching this Rolf!
9122 2007-01-18  Jackson Harper  <jackson@ximian.com>
9124         * TextControl.cs: When replacing a selection we need to invalidate
9125         from the initial selection start, because selection start is moved
9126         to the end of the replacement.
9128 2007-01-18  Andreia Gaita  <avidigal@novell.com>
9130         * LinkLabel.cs: Missing ControlStyles. Fixes #80482
9132 2007-01-18  Chris Toshok  <toshok@ximian.com>
9134         * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
9135         I just added.
9137 2007-01-17  Everaldo Canuto  <everaldo@simios.org>
9139         * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every 
9140         layout methods and properties from ToolBarButton must be available
9141         into ToolBarButtonInfo.
9143 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
9145         * Control.cs: If the control has a transparent background, we
9146         need to refresh it when it moves and when it's parent's background
9147         image changes.  [Fixes bug #80451]
9149 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
9151         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code!  Doh!
9153 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
9155         * XplatUIWin32.cs: Implement proper double buffering for Windows.
9156         [Fixes bug #80447, and probably speeds up things as well]
9158 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9160         * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
9161         * XplatUIWin32.cs: We need to recalculate NC size after changing 
9162         window style to toolwindow (otherwise the client rectangle will be
9163         3 pixels to small for some reason).
9164         * MdiWindowManager.cs: Revert NC size calculations to match how
9165         they are calculated only based on window styles (to match
9166         Win32AdjustWindowRectEx, since otherwise when setting size or 
9167         location, Control will call Win32AdjustWindowRectEx to update client 
9168         size, which would provoke a paint, then we'd get a NCCALCSIZE and 
9169         calculate a different value of client size causing another paint 
9170         (and flickering))
9171         * InternalWindowManager.cs: When moving or resizing a window only
9172         update size or location if they actually changed.
9173         * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
9174         (seems to match Windows behaviour better). Cleaned up 
9175         ManagedWindowDecorations to draw what's needed and nothing else
9176         (was drawing borders and lines where they shouldn't be)
9177         * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
9178         (style = 0xFFFF) and takes into account caption height when 
9179         calculating window rectangle.   
9181 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
9183         * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button 
9184         can be added to toolbar multiple times, we need to maintain a list of 
9185         button information for each positions.
9187 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
9189         * ToolBar.cs: Some small stetic changes.
9191 2007-01-16  Jackson Harper  <jackson@ximian.com>
9193         * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
9194         that allow us to have nested recalc = false blocks.
9195         - Add paste support for images in the RichTextBox
9196         * RichTextBox.cs: flush the text after the color is changed, so
9197         the change takes effect.
9198         - Use SuspendRecalc
9199         - Some extra debugging info
9200         * TextControl.cs: Tags no longer track their length, it is just
9201         computed from the next tags length, this makes things a little
9202         simpler and reduces places that we have to track length changes.
9203         - Refactored the linetag class a little so we could make it
9204         a base class for different kinds of tags
9205         - Created a image tag, a tag that can have a single image inserted
9206         into it
9207         - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
9208         that we can call suspend multiple times.
9209         - Add some debugging methods
9211 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9213         * MdiClient.cs: Add ActivatePreviousChild for 
9214         mdi child window navigation.
9215         * Form.cs: Use MdiClient.ActivateNextChild/
9216         ActivatePreviousChild instead of Form.SelectNextControl
9217         to select the next/previous child since 
9218         SelectNextControl doesn't do it in the same order
9219         as mdi children should do it.
9221 2007-01-16  Chris Toshok  <toshok@ximian.com>
9223         * Control.cs: remove container_selected field.
9225 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9227         * MdiClient.cs: Update main form's ActiveChild when
9228         updating keyboard focus for the mdi child.
9230 2007-01-16  Jonathan Pobst  <jpobst@novell.com>
9232         * Control.cs: PreferredSize fix.
9234         * Form.cs: Add several 2.0 events, properties, and methods.
9236 2007-01-16  Gert Driesen  <drieseng@users.sourceforge.net>
9238         * Form.cs: Provide meaningful message when MdiParent is assigned a
9239         Form that is not an MdiContainer.
9241 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9243         * MdiClient.cs: Update main form's ActiveChild when
9244         activating a mdi child.
9246 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9248         * MdiWindowManager.cs: Fix NRE when merging menus and main form
9249         doesn't have a menu.
9251         * Form.cs: Request NCRecalc after creating a mdi child window.
9252         Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab, 
9253         Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
9254         
9255         * MdiClient.cs: Add new method SendFocusToActiveChild that either
9256         sends keyboard focus to the active child, or to the MdiClient
9257         if there are no child forms.
9258         
9259 2007-01-15  Chris Toshok  <toshok@ximian.com>
9261         * ListView.cs: drop the *Internal overrides, just do our work in
9262         ItemControl's WndProc instead.
9264         * UpDownBase.cs: a few large changes.  Fix up the Selectable state
9265         of the various controls, and forward the events properly (in the
9266         same manner as MS) from the textbox to the UpDown.  Also the
9267         ActiveControl of the UpDownBase gets set properly now.  Finally,
9268         we don't call UpdateEditText from the ctor.  Fixes bug #79957.
9270         * NumericUpDown.cs: set Text in the ctor.
9272         * DomainUpDown.cs: call UpdateEditText in the ctor.
9273         
9274         * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
9275         so even a Selectable = false textbox can be focused if you click
9276         in it.  Go figure.
9278         * Control.cs: remove On{Got,Lost}FocusInternal.  Subclasses can
9279         just add their handling in their respective WndProc's.  Also add
9280         an explicit FocusInternal method that doesn't consult CanFocus
9281         before calling Select(this).
9283         * TextBoxBase.cs: deal with removal of the FocusInternal calls -
9284         do our work in WndProc instead.
9286         * TabControl.cs: same.
9288         * ComboBox.cs: same.
9290 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
9292         * Menu.cs: implement MergeItems and Replace for MenuMerge method.
9293         Fixes #80006.
9295 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
9297         * ListViewItem.cs:
9298         * ThemeWin32Classic.cs: Don't draw the item text outside
9299         item bounds in Details view, as well as use trimming.
9300         Fixes bug #80376.
9302 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
9304         * Form.cs: Implement Form.ShowIcon.
9305         
9306         * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
9307         null, which when combined with the DlgModalFrame window style removes
9308         the icon from the title bar.
9310 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
9312         * Control.cs: Call OnMouseClick after OnClick. (2.0)
9314 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
9316         * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
9317         menu when mdi child windows theres a menu, uses insert to get icon
9318         at first position. Partially fix #80006.
9320 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
9322         * Clipboard.cs: Implement 2.0 methods.
9324 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
9326         * Menu.cs: Implement Insert method of MenuItemCollection class
9327         to fix MenuMerge.
9329 2007-01-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9331         * ListView.cs: Implement 2.0 FindItemWithText method.
9333 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
9335         * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
9336         to calculate menu bar size. Fixes #80290.
9338 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
9340         * ThemeWin32Classic.cs: Fix position of menuitem check mark.
9342 2007-01-11  Chris Toshok  <toshok@ximian.com>
9344         * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
9345         initial form.
9347 2007-01-11  Chris Toshok  <toshok@ximian.com>
9349         * LinkLabel.cs: make sure to call base.Select in our Select method
9350         if it turns out we're going to be selected (i.e. if we have a link
9351         that is going to receive focus).  That way our container's
9352         ActiveControl is updated properly.
9354 2007-01-11  Chris Toshok  <toshok@ximian.com>
9356         * LinkLabel.cs: turns out that LinkLabels are only Selectable if
9357         they have 1 or more links.  this fixes the crash gert reported.
9359 2007-01-11  Andreia Gaita  <avidigal@novell.com>
9361         * ContainerControl.cs: Remove ContainerSelected flag, not needed
9362         anymore.
9364         * Control.cs (Controls.Add): Check if control to be added to the collection
9365         is a top level control, and throw an ArgumentException if it is.
9366         Remove ContainerSelectedFlag, not needed anymore.
9368         * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
9369         top most control doesn't activate the form. This fixes a problem in the
9370         MessageBox, where the default button wouldn't get focus because the form
9371         was activated before being Loaded - when the Owner is set, SetTopMost is
9372         called, and it would activate it.
9374 2007-01-11  Jonathan Pobst  <jpobst@novell.com>
9376         * Button.cs: When clicked and setting the parent form's DialogResult,
9377         use FindForm instead of Parent, since parent could be a container
9378         control and not the Form.  Fixes bug #80495.
9380 2007-01-10  Chris Toshok  <toshok@ximian.com>
9382         * Form.cs: move the call to SendControlFocus into the same
9383         is_loaded check.
9385 2007-01-10  Chris Toshok  <toshok@ximian.com>
9387         * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
9388         It breaks in the face of the new ActiveControl stuff, and should
9389         be unnecessary.
9391         * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
9392         activecontrol's focus if it's not already set, after we set
9393         ActiveControl, but before we call OnActivated.  Re-fixes #79667
9394         after the previous focus/active control fixes regressed it.
9396         * Control.cs: reindent some code.
9397         
9398 2007-01-10  Chris Toshok  <toshok@ximian.com>
9400         * Splitter.cs: clearing some outstanding changes from my tree.
9401         Replace all accesses (not writes) to the internal dock_style field
9402         with the Dock property.
9404 2007-01-10  Chris Toshok  <toshok@ximian.com>
9406         * Control.cs: make FireEnter, FireLeave, FireValidating, and
9407         FireValidated virtual.
9409         * Form.cs: override and don't chain up calls to FireEnter and
9410         FireLeave.
9412 2007-01-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9414         * ListView.cs: Add more text padding space when using
9415         auto resize for columns (the previous value didn't work fine).
9417         * ThemeWin32Classic.cs: Update text position inside columns,
9418         to match the appeareance of .Net.
9420         * ColumnHeader.cs: When using auto resize, only the Width should
9421         depend on the sub items, not the Height. Also, set width after
9422         auto resizing (the value of Width should never remain as -1 or -2).
9424 2007-01-10  Chris Toshok  <toshok@ximian.com>
9426         * Application.cs: fix compilation errors when debug is enabled.
9428 2007-01-10  Chris Toshok  <toshok@ximian.com>
9430         * ContainerControl.cs (set_ActiveControl): rework this a bit (and
9431         add some nice ascii art pictures and explanation of the process).
9432         (GetMostDeeplyNestedActiveControl): new utility function we need
9433         because our ActiveControl can refer to a child container with its
9434         own ActiveControl.
9436         * Form.cs (OnActivated): remove the call to SelectActiveControl
9437         from here, since you can override this method and not chain up,
9438         and winforms still sets the active control.
9439         (OnCreateControl): also remove the unnecessary SelectActiveControl
9440         call from here.
9441         (WndProc): it's actually called from the WM_ACTIVATE block, just
9442         before calling OnActivated.
9444         * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
9445         inside the else.  the ActiveControl setter will end up setting
9446         focus on @control.  This keeps us from setting it again (and
9447         generating an extra LostFocus/GotFocus pair).
9448         (Select (bool, bool)): reindent.
9450 2007-01-10  Jonathan Pobst  <jpobst@novell.com>
9452         * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
9453         StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
9454         ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
9455         ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
9456         ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
9457         ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
9458         ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
9459         ToolStripTextBox.cs: Another wave of corcompare work.
9461 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9463         * ColumnHeader.cs: Implement 2.0 AutoResize method using
9464         the Width property.
9466         * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
9467         methods by callling Column.AutoResize method on columns.
9469 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
9471         * Control.cs: Provide proper implementations of PreferredSize
9472         and GetPreferredSize (2.0).
9474 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
9476         * Form.cs: Remove one character (!) to make my previous OnClosing
9477         stuff work for modal windows like MessageBox.
9479 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9481         * ListView.cs:
9482         * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
9483         ListView.Columns to get the last displayed column. Fixes #80452.
9485 2007-01-09  Everaldo Canuto  <everaldo@simios.org>
9487         * Label.cs, LinkLabel.cs: Source code identation fixes.
9489 2007-01-08  Everaldo Canuto  <everaldo@simios.org>
9491         * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
9492         we dont need to invalidate only borders because when we invalidate four
9493         border lines the invalidate's generates a complete redraw of button, 
9494         because it now invalidate a complete rect some other redraws operations
9495         are fixed. Fixes #80196.
9496         
9497         * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
9498         Remove ToolBarInvalidateEntireButton as it is not used.
9500 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
9501         
9502         * Form.cs: Make sure that both OnClosing and OnFormClosing are
9503         called for 2.0 profile.
9504         * CloseReason.cs: Make class internal for 1.1.
9506 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
9508         * ToolStripManager.cs: Implement FindToolStrip functionality.
9509         * ToolStrip.cs: Register and unregister with ToolStripManager.
9511 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
9513         * Control.cs: This was messy.  2.0 moves much of ControlCollection
9514         to ArrangedElementCollection.  Implemented this with as few #if's as 
9515         possible (which is still too many).
9517 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
9519         * Control.cs: Implement SizeFromClientSize() [2.0].
9521 2007-01-07  Everaldo Canuto  <everaldo@simios.org>
9523         * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
9524         use Theme.BorderSize to calculate area instead of static value 1, 
9525         by the way use new BorderStaticSize instead     Border3DSize when 
9526         border_static is true. Fixes #79537.
9527         
9528         * XplatUIOSX.cs: Fix call to GetClientRectangle. 
9529         
9530         * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
9531         it is not needed.
9533 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
9535         * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
9537 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
9539         * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
9540         WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
9541         
9542         * Hwnd.cs: 
9543         - border_static field added, it will used to define when a control 
9544         theres 3D border but it must be static (thin).
9545         - In GetWindowRectangle use Theme.BorderSize to calculate area 
9546         instead of static value 1, by the way use new BorderStaticSize instead
9547         Border3DSize when border_static is true.
9549         * XplatUIX11.cs, XplatUIOSX.cs: 
9550         - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
9551         
9552         * Theme.cs: BorderStaticSize field added.
9554 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
9556         * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
9558 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
9560         * Control.cs: Under InternalBorderStyle call RecreateHangle to 
9561         mimic same behavior than win32 that set border only in CreateParams,
9562         it fix problems under CreateParams overrides. Fix #79442 and partial
9563         fix #79537.
9564         
9565         * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
9566         of thi control you must call recreate handle. 
9567         
9568         * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
9569         need to do anything as RecreateHangle will take care about borders.
9571 2007-01-05  Mike Kestner  <mkestner@novell.com>
9573         * ListView.cs: hack to eliminate Lost/Got focus notifications on
9574         cycles between the ItemControl and parent.  Fixes #80388.
9576 2007-01-05  Gert Driesen  <drieseng@users.sourceforge.net>
9578         * Control.cs: Lazy init layout engine. Do not directly use 
9579         layout_engine since LayoutEngine may be overridden (on 2.0 profile).
9581 2007-01-05  Chris Toshok  <toshok@ximian.com>
9583         * DataGrid.cs: don't forceably rebind columns in SetDataSource
9584         unless our list manager has changed (i.e. unless we have reason to
9585         believe our columns have changed).  Fixes #80422.
9586         
9587         also, disable the call do BindColumns in
9588         OnListManagerMetaDataChanged.  this breaks this test in 2.0 (in
9589         1.1 the event isn't raised in response to a column addition on a
9590         table.)
9592 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
9594         * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
9595         that inheritors can not call it if they choose.  Fixes bug #80456.
9597 2007-01-05  Andreia Gaita  <avidigal@novell.com>
9599         * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it 
9600         doesn't blow up with a null exception on marshalling.
9601         
9602 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
9604         * Control.cs: Implement several 2.0 protected properties and methods.
9605         Ensure that all necessary events are being called when properties
9606         are set.
9608 2007-01-05  Mike Kestner  <mkestner@novell.com>
9610         * ListView.cs: implement PgUp/PgDn for Details view.  Also
9611         fixes First/LastVisibleIndex to use the item_control.ClientRect 
9612         instead of the parent control.  Fixes #80378.
9614 2006-01-05  Atsushi Enomoto  <atsushi@ximian.com>
9616         * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
9617           determine whether to use yard-pound or not (bug #78399).
9619 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
9621         * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
9622         problems. So it is time to bring back the old popupbutton colors.
9624 2006-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9626         * ColumnHeader.cs:
9627         * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
9628         property by using the internal information of the
9629         columns order in ListView.
9631 2007-01-04  Jonathan Pobst  <monkey@jpobst.com>
9633         * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
9634         Add 2.0 Tag properties.
9636         * LinkArea.cs: Add 2.0 ToString method.
9638 2007-01-03  Chris Toshok  <toshok@ximian.com>
9640         * DataGrid.cs: the Alt+0 handling was wrong, it should have been
9641         Ctrl+0.  Fixes bug #80367.  Also, don't eat the Delete keypress
9642         when we're editing, which fixes #80047.
9644 2007-01-03  Chris Toshok  <toshok@ximian.com>
9646         * Form.cs: apply patch contributed by Dominik Seichter.  fixes
9647         #80404.
9649 2007-01-03  Jonathan Pobst  <monkey@jpobst.com>
9651         * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
9652         property and implementation.
9654         * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
9655         for MdiWindowListItem property.
9657         * ToolStripDropDown.cs: Don't consider hidden menu items while
9658         laying out the menu.
9660 2007-01-03  Andreia Gaita  <avidigal@novell.com>
9662         * SendKeys.cs: window handle is not needed in win32, so just
9663         get the active window for X after parsing keys and don't use
9664         it when building the message; it is passed by parameter to the 
9665         Xplat method and used there to build the message instead. Also,
9666         wait for events to be processed on SendWait, as opposed to Send,
9667         which doesn't wait :) Playing with threads and Send() completely 
9668         hangs on ms.net, only SendWait() works.
9669         
9670         XplatUIX11.cs
9671         X11Display.cs: Check for valid window handle.
9673 2007-01-03  Jackson Harper  <jackson@ximian.com>
9675         * TextControl.cs: Need to prevent wrap calculations when replacing
9676         text (this was there before i removed it accidently).
9677         - Don't update the cursor during the positioning, just set it to
9678         selection_start at the end of the operaion.
9680 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9682         * Control.cs:
9683         * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
9684         
9685 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9687         * MonthCalendar.cs: Added Click and DoubleClick events again,
9688         but this time they only hide Control's Click and DoubleClick.
9689         
9690 2007-01-03  Gert Driesen  <drieseng@users.sourceforge.net>
9692         * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
9693         System.Drawing assembly. Spaces to tabs. Removed extra tabs.
9695 2007-01-02  Jackson Harper  <jackson@ximian.com>
9697         * TextBoxBase.cs: We move the caret with the split now, so we
9698         don't need to explicitly move the caret after splitting.  This
9699         fixes the caret bumping down an extra line on Enter.
9701 2007-01-02  Miguel de Icaza  <miguel@novell.com>
9703         * ContainerControl.cs: Add AutoValidateChanged event (for PDN
9704         2.72). 
9706         * ScrollableControl.cs: Add Scroll event.
9708 2007-01-02  Mike Kestner  <mkestner@novell.com>
9710         * ListView.cs: one more try with help from georgegiolfan@yahoo.com 
9711         to fix all hdr height padding codepaths.  Fixes #80207.
9713 2007-01-02  Chris Toshok  <toshok@ximian.com>
9715         * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
9716         setting it to the Control defaults anyway, and it being after the
9717         Dock set was screwing up layout.
9718         (set_Dock): don't short circuit out of setting base.Dock.  Also,
9719         no need to call UpdateStatusBar here, as it'll be re-layed out if
9720         it needs to be.
9722 2007-01-02  Mike Kestner  <mkestner@novell.com>
9724         * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
9725         to header height for width == -1. Fixes the rest of #80207.
9727 2007-01-02  Mike Kestner  <mkestner@novell.com>
9729         * ListView.cs: rework the mouse event forwarding everaldo added
9730         to translate the coordinates to the parent control not
9731         raise the parent events until after we've done our work. Hover
9732         needs more work, in the case where HoverSelection is on, because
9733         the item control receives more than one MouseHover per Enter
9734         event, so we need to ensure only the "first" hover gets forwarded.
9735         Opening a minor bug for that.
9737 2007-01-02  Gert Driesen  <drieseng@users.sourceforge.net>
9739         * CheckedListBox.cs: Fixed SelectionMode to match MS.
9740         * ListControl.cs: Implemented AllowSelection property. Removed extra
9741         tabs.
9742         * ListBox.cs: Implemented AllowSelection property.
9744 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
9746         * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
9747         SelectedItem, it prevent for errors when you must disable item
9748         before perform click. Fixes #80409.
9750 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
9752         * MenuAPI.cs: Prevent second level and beyond submenus to close
9753         until first level when move out side of popup.
9754         
9755 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
9757         * MenuAPI.cs:
9758         - Down submenu positin in three pixels.
9759         - Closes sub menu when mouse leaves from menu. Fixes #80402.
9761 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
9763         * ThemeWin32Classic.cs:
9764         - Fix popup menu size adding one pixel on the top.
9765         - Down menu item border from two to one to mimic Win32.
9766         - Some source identation fixes. 
9768 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
9770         * ThemeWin32Classic.cs: Use float numbers to calculate size and
9771         position of menu arrows, it fix wrong arrow size.
9773 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
9775         * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
9776         instead of line, it simplify draw operation and fix it using 3D
9777         borders to mimic Win32.
9779 2007-01-01  Jonathan Pobst  <monkey@jpobst.com>
9781         * StatusStrip.cs: Add implementation of the sizing grip.
9783         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
9784         StatusStrip rendering.
9786 2006-12-31  Chris Toshok  <toshok@ximian.com>
9788         * ToolBar.cs: don't assign to dock_style in the .ctor.  it doesn't
9789         override the layout style (anchor/dock) of the control.  assign to
9790         Dock instead.  Fixes bug #80416.
9792         * ToolStrip.cs: same.
9794 2006-12-31  Andreia Gaita  <avidigal@novell.com>
9796         * ContainerControl.cs: Use ContainerSelected flag to check if 
9797         a Container is directly selected, or if Select is called on a 
9798         non-container. If a container is directly selected, focus events 
9799         should not be raised.
9800         Apply #80411 patch to throw exception on set_ActiveControl if 
9801         control is the same as the current one.
9802         
9803         * Control.cs: Use ContainerSelected flag (see above).
9804         Add invalidation check to raise event but not invalidate if 
9805         dimensions are 0.       
9806         Apply #80411 patch.
9807         
9809 2006-12-31  Everaldo Canuto  <everaldo@simios.org>
9811         * MenuAPI.cs: After click, dont close popup menu when menu is
9812         ContextMenu. Fixes #80399.
9814 2006-12-30  Chris Toshok  <toshok@ximian.com>
9816         * ContainerControl.cs: make sure we throw the exception if the
9817         container control doesn't contain the control we're setting
9818         ActiveControl to.
9820 2006-12-30  Chris Toshok  <toshok@ximian.com>
9822         * Control.cs (SetTopLevel): fix the exception raised by
9823         SetTopLevel for child controls.
9824         (set_Anchor): call UpdateDistances when setting the anchor type.
9825         This fixes bug #80336.
9827 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
9829         * Theme.cs: For now, revert back to 8pt font.
9831 2006-12-29  Everaldo Canuto  <everaldo@simios.org>
9833         * MenuAPI.cs: Set popup as active when open a ContextMenu. 
9834         Fixes #80395.
9836 2006-12-29  Chris Toshok  <toshok@ximian.com>
9838         * Control.cs: reorder the code in OnResize to give the same event
9839         ordering as MS.
9841 2006-12-29  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9843         * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
9844         TileHorizontally and TileVertically.
9845         
9846 2006-12-29  Alexander Olk  <alex.olk@googlemail.com>
9848         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
9849         FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
9850         SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
9851         Corrected copyright and email adress.
9853 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
9855         * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
9856         of Exception in FullPath property if no TreeView is associated with
9857         the TreeNode.
9859 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
9861         * Theme.cs: Marked default_font as private, and initialize it in ctor
9862         with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
9863         on 2.0 profile.
9864         * ThemeGtk.cs: Removed default_font intialization.
9865         * ThemeWin32Classic.cs: Removed default_font initialization.
9867 2006-12-28  Chris Toshok  <toshok@ximian.com>
9869         * Control.cs: fix a couple of place where we were creating handles
9870         more aggressively than we should be.  Fixes ControlRefresh unit
9871         tests.
9873 2006-12-28  Chris Toshok  <toshok@ximian.com>
9875         * Control.cs: contrary to what the comment said, Control.Dock does
9876         not supercede Control.Anchor - the last one you assign to decides
9877         the layout behavior.  so we need to keep track of which was the
9878         last set.  Also, fix some of the affected property arguments in
9879         PerformLayout calls, and remove an redundant parent.PerformLayout
9880         call in OnResized.
9882         Add a VisibleInternal property, which returns is_visible.  We
9883         can/should get rid of all the usage of this field elsewhere.
9885 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9886         
9887         * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
9888         control style, not DoubleBuffer. Added UseDoubleBuffering property
9889         that indicates whether doublebuffering is enabled and supported.
9890         (comment from and code based on Gert Driesen's patch in #80324).
9891         Fixes #80324.
9893 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9894         
9895         * Control.cs: Fixed a NRE.
9897 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9899         * TrackBar.cs: Fix SmallChange and LargeChange exceptions
9900         for 2.0.
9902 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9904         * Control.cs: Rewrote double buffering, now a seperate
9905         class handles all the buffering, no Graphics is disposed of
9906         until the painting is finished (earlier implementation 
9907         would crash if the control was resized in the OnPaint, 
9908         since it would cause the double buffer to be recreated
9909         and the old one disposed), a separate Graphics is 
9910         created for every paint (MS behaviour and anyways the state
9911         of the Graphics would have to be saved and restored otherwise)
9912         
9913         * XplatUIDriver.cs: 
9914         * XplatUIX11.cs:
9915         * XplatUI.cs: Added and implemented GetOffscreenGraphics 
9916         so that we can get the graphics for the back buffer without
9917         having to create a new one and remove the offscreen_dc parameter
9918         from CreateOffscreenDrawable and DestroyOffscreenDrawable.
9919         
9920 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9922         * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
9923         Also make virtual all the key-related methods.
9925         * ListViewItem.cs: Make virtual the key related methods for
9926         ListViewSubItemCollection.
9928 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9930         * ListView.cs:
9931         * ListViewItem.cs:
9932         * ThemeWin32Classic.cs:
9933         * Theme.cs: Initial support for Tile view in ListView,
9934         as well as the implementation of the required bits for it (Item
9935         and Subitem).
9937 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
9939         * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
9940         of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
9941         Provide useful exception messages.
9943 2006-12-27  Rolf Bjarne Kvinge  <RKvinge@novell.com>
9945         * TrackBar.cs: Remove a warning.
9946         * MonthCalendar.cs: Moved back to using Capture to hide the calendar
9947         when used by DateTimePicker, fixes #80287. This also requires that 
9948         MonthCalendar implements it's own drawing for the yearly updown control,
9949         otherwise the Capture tracking would be too complicated. Removed the Click 
9950         and DoubleClick events (according to comments they were hiding the base class
9951         event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
9952         raise these events, not that they cannot be raised. It is possible to raise 
9953         them by calling OnClick and OnDoubleClick). Added two internal fields in 
9954         HitTestInfo in order to track give more tracking info needed by MonthCalendar.
9955         * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
9956         * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
9957         event, no longer needed.
9958         
9959 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
9961         * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
9962         true if new value differs from current value.
9964 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
9966         * Control.cs: ControlCollection.Count must be public. Fixed build of
9967         unit tests.
9969 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
9971         * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
9973 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
9975         * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
9977 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
9979         * Control.cs: Invalidates control including when Width and Height is 
9980         equal zero or is not visible, only Paint event must be care about 
9981         this. Fixes #79913.
9983 2006-12-26  Chris Toshok  <toshok@ximian.com>
9985         * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
9986         more corcompare work.
9988         * DataGridView.cs: fix compiler warning.
9990         * ColumnHeader.cs: some corcompare work, and also take the
9991         opportunity to make the internal fields private.
9993         * ListView.cs: fix the fallout from the above field change.
9995 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
9997         * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
9998         ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
9999         ToolStripTextBox.cs: Fixes to events and corcompare.
10001 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
10003         * ListView.cs: Call owner.OnMousexx event to propagate events from
10004         item to ListView. Fixes #80367.
10006 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
10008         * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
10009         if value is less than one. ItemHeight should not be set to a value
10010         less than 1, and throw ArgumentOutOfRangeException on 2.0 profile. 
10011         Removed extra tabs.
10013 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
10015         * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
10016         * ToolStripStatusLabel.cs: Add Spring for Moma.
10018 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
10020         * DataGridView.cs: Fixed several NullReferenceException in On* methods.
10021         Fixed code formatting. Removed debug code.
10022         * DataGridViewTextBoxEditingControl.cs: Removed debug code.
10024 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
10026         * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
10027         RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
10028         ArgumentOutOfRangeException if ColumnCount is negative. In 
10029         ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
10030         less than 4 or higher than 32768.
10031         * DataGridViewCellStyle.cs: Fixed default value for NullValue.
10032         Fixed FormatProvider to return CurrentCulture unless explicitly set.
10033         Fixed IsFormatProviderDefault to return true if FormatProvider has
10034         not been explicitly set.
10036 2006-12-25  Chris Toshok  <toshok@ximian.com>
10038         * Application.cs: add a couple of 2.0 events.
10040 2006-12-25  Chris Toshok  <toshok@ximian.com>
10042         * Control.cs: fix compiler warning.
10044         * AxHost.cs: corcompare fixes.
10046         * ApplicationContext.cs: corcompare fixes.
10048 2006-12-25  Chris Toshok  <toshok@ximian.com>
10050         * Control.cs: only update dist_right/dist_bottom if the
10051         width/height is > 0.  this fixes anchored controls being resized
10052         smaller until they disappear and then resized larger again.
10054 2006-12-25  Chris Toshok  <toshok@ximian.com>
10056         * Control.cs: a couple of changes.  Remove dist_left and dist_top,
10057         since they're nothing more than X/Left and Y/Top, respectively.
10059         Also, move back to a per-control Bitmap/Graphics for
10060         DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
10061         MT case.  Go with a tiny bitmap though, 1x1, instead of Width x
10062         Height.
10064 2006-12-25  Miguel de Icaza  <miguel@novell.com>
10066         * MessageBox.cs: Implemented overload that takes a new "bool
10067         displayHelpButton" by adding a new internal field "show_help".
10068         When clicked this will raise the HelpRequested on the owner or the
10069         main form. 
10071         From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
10072         From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
10074         * ListView.cs: Add support ColumnWidthChanged and
10075         ColumnWidthChanging. 
10077         Add support for ColumnReordered event.
10078         (ReorderColumn): Add NET_2_0 specific support for cancelling the
10079         reorder.
10081         Very nice codebase!
10083         * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
10085         This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
10087 2006-12-24  Chris Toshok  <toshok@ximian.com>
10089         * GridTablesFactory.cs: 2.0 corcompare work.
10091         * ToolStripContainer.cs: add "override" to
10092         ContextMenuStripChanged, and remove the local event object.
10094         * ToolStripDropDown.cs: same with a couple properties.
10096         * ToolStripPanel.cs: same with AutoSizeChanged event.
10098         * TextBoxBase.cs: add "override" to AutoSizeChanged.
10100         * Form.cs: add the remaining 2.0 events, and do some corcompare
10101         attribute work.
10103         * DateTimePicker.cs: add "new" to padding.
10105         * ButtonBase.cs: use Control's use_compatible_text_rendering.
10107         * ToolStripContentPanel.cs: use base.AutoSizeChanged.
10109         * DataGridView.cs: PaddingChanged is overridden.
10111 2006-12-24  Chris Toshok  <toshok@ximian.com>
10113         * Control.cs: corecompare work here too.
10115         * DataGridViewElement.cs, DataGridView.cs,
10116         DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
10117         DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
10118         DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
10119         DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
10120         work.
10122 2006-12-24  Miguel de Icaza  <miguel@novell.com>
10124         * Control.cs: Switched the error message on the console for a
10125         todo.  A review of the code will have to cope with this anyways
10126         (since its a large feature, it is in our radar) and it was
10127         producing too much output when running PDN.
10129         * ToolStripComboBox.cs: Set the text when the SelectedIndex
10130         changes.  Applications depend on this (PDN 2.72)
10132 2006-12-23  Chris Toshok  <toshok@ximian.com>
10134         * TableLayoutSettings.cs: finish up the corcompare work for this
10135         class.
10137 2006-12-23  Chris Toshok  <toshok@ximian.com>
10139         * Control.cs: make SetImplicitBounds internal, do some futzing
10140         with LayoutEngine so that it's available in 1.1, and remove the
10141         entire duplicated code mess from PerformLayout.  Use
10142         System.Windows.Forms.Layout.DefaultLayout instead.
10144         * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
10146 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
10148         * Form.cs: Add MainMenuStrip property.
10150 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
10152         * Control.cs: Add ContextMenuStrip property and implementation.
10153         Fix ContextMenu implementation to show menu centered on control when
10154         activated using the keyboard instead of showing at screen (0,0).
10156         * ToolStripDropDown.cs: Fix needed overload of Show ().
10158 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
10160         * Menu.cs: Name property added for 2.0 profile.
10161         
10162 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
10164         * Menu.cs: Update information about FindMenuItem, method to be
10165         implemented soon.
10167 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
10169         * MenuAPI.cs: When deselect items deselect also selected subitems.
10170         
10171 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
10173         * MenuAPI.cs: When hides menu set Wnd to null, it prevents
10174         FindSubItemByCoord to found itens that is not active, also an
10175         cheking added to FindSubItemByCoord to search for items only 
10176         in visible popup windows. Fixes #80274.
10178 2006-12-22  Everaldo Canuto  <everaldo@simios.org>
10180         * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
10181         internal property, it be care about change ExStyle. 
10183 2006-12-22  Andreia Gaita  <avidigal@novell.com>
10185         * ContainerControl.cs: set activeControl for parent forms up the 
10186         tree when the new activecontrol is a container.
10187         When validating the active control, if it is a container, also
10188         raise up the validation for it's active control. Fixes #80280
10189         
10190         * Control.cs: Add internal property flag and check to prevent
10191         Focus events from getting raised when Select() is called for
10192         a ContainerControl. There are still too many focus events being
10193         raised at the moment though.
10194         Cleaned up the code a bit.
10196 2006-12-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10198         * Control.cs: Added all missing 2.0 events.and
10199         fixed a couple of corcompare issues.
10200         * TrackBar.cs: Implemented missing 2.0 bits.
10201         * MonthCalendar.cs, 
10202         * DateTimePicker.cs, 
10203         * MdiClient.cs: Fixed some corcompare issues.
10205 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
10207         * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
10208         SplitterPanel.cs: corecompare work.
10210 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
10212         * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
10213         Clean up warnings for BackgroundImageChanged and PaddingChanged
10214         events now that they are implemented in Control.cs.
10216 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
10218         * Control.cs: Make sure layout_engine isn't null before using it (2.0).
10219         
10220         * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
10221         TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
10222         of TableLayoutPanel and supporting cast.
10224 2006-12-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10226         * XplatUIWin32.cs: 
10227         - GrabWindow now confines the mouse pointer to the confine window.
10228         - Added Win32ClipCursor and Win32GetClipCursor.
10230         * Control.cs: 
10231         - Added CaptureWithConfine to be able to capture and confine 
10232         mouse pointer.
10233         
10234         * InternalWindowManager.cs: 
10235         - Call CaptureWithConfine instead of Capture if we're an
10236         MdiChild (fixes #79982).
10238 2006-12-21  Chris Toshok  <toshok@ximian.com>
10240         * DataGrid.cs: guard against the initial state of selection, where
10241         selection_start == -1.  make sure we only select from index >= 0.
10242         Fixes bug #80291.
10244 2006-12-21  Chris Toshok  <toshok@ximian.com>
10246         * Control.cs: we don't need to be so draconian with
10247         UpdateDistances, and we thusly don't need to call it before
10248         calling PerformLayout in ResumeLayout.  Fixes bug #80289.
10250 2006-12-21  Daniel Nauck  <dna@mono-project.de>
10252         * ComboBox.cs,
10253         TextBox.cs: Implemented AutoComplete properties.
10255 2006-12-20  Chris Toshok  <toshok@ximian.com>
10257         * DataGridView*.cs: some corecompare work.
10259 2006-12-20  Jackson Harper  <jackson@ximian.com>
10261         * XplatUIX11.cs: We need to hide the caret when deleting it,
10262         otherwise you get carets left lying around everywhere.
10263         * TextBoxBase.cs: Kill then redraw the caret when scrolling.  This
10264         prevents getting some weird half drawn caret tracers when
10265         scrolling.
10266         * TextControl.cs: Attempt to reduce the number of times we need to
10267         recreate the caret.
10269 2006-12-20  Gert Driesen  <drieseng@users.sourceforge.net>
10271         * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
10273 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10275         * DateTimePicker.cs:
10276         - Implemented missing 2.0 bits.
10277         - Changed some default values to match MS.
10278         
10279 2006-12-20  Jackson Harper  <jackson@ximian.com>
10281         * TextBoxBase.cs: When changing the font across the document we
10282         can't recalculate after changing each line, since that will cahnge
10283         the line count.
10284         - PreferredHeight is a little different than i thought.
10285         - When backspacing, move the caret before we do the actual char
10286         delete, because when that delete crosses a wrap boundary the
10287         positional information will change.
10289 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10291         * Control.cs: Added some missing 2.0 bits: 
10292         BackgroundImageLayout, BackgroundImageLayoutChanged, 
10293         OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and 
10294         add IBindableComponent and IDropTarget implementation.
10295         
10296         * MonthCalendar.cs: 
10297         - Added all missing 2.0 features:
10298         BackgroundImageLayout, RightToLeftLayout, 
10299         OnHandleDestroyed, RightToLeftLayoutChanged, 
10300         BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
10301         PaddingChanged.
10302         - Rewrote all the BoldDate code, it was completely broken.
10303         - Fixed all the tests (the tests can now be re-enabled, the
10304         problems were not with the tests, but with the control, it was
10305         mostly broken).
10306         
10307         * DateTimePicker.cs: Changed the location where the 
10308         MonthCalendar is shown.
10309         
10310 2006-12-19  Chris Toshok  <toshok@ximian.com>
10312         * DataGridView.cs: add IDropTarget implementation.
10314         * ToolStripPanel.cs: add IDropTarget implementation.
10316 2006-12-19  Jackson Harper  <jackson@ximian.com>
10318         * TextControl.cs: soft now means something different than what it
10319         used to mean, we want to move the caret regardless of whether or
10320         not this break was soft (would we really have wanted the caret
10321         to not move with the break in the old context?)
10322         * TreeView.cs: Make sure we factor in the vert scrollbar when
10323         calculating the horizontal scrollbar's maximum.
10325 2006-12-19  Andreia Gaita  <avidigal@novell.org>
10327         * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
10328         check for keywords in alternate casing, close bug #80049.
10330 2006-12-19  Chris Toshok  <toshok@ximian.com>
10332         * ToolStripItem.cs: add the implementation of the 4 IDropTarget
10333         methods (which all do nothing).
10335         * IDropTarget.cs: add the 4 missing methods.
10337 2006-12-19  Chris Toshok  <toshok@ximian.com>
10339         * TableLayoutRowStyleCollection.cs: corcompare work.
10340         
10341         * TableLayoutSettings.cs: same.
10343         * TableLayoutStyle.cs: same.
10345         * TableLayoutColumnStyleCollection.cs: same.
10347 2006-12-19  Jonathan Pobst  <monkey@jpobst.com>
10349         * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
10350         TableLayoutPanel I've had in my local tree for way too long.
10352 2006-12-19  Miguel de Icaza  <miguel@novell.com>
10354         * TableLayoutSettings.cs: Finish the public API (still needs all
10355         the logic to update on changes). 
10357         * TableLayoutPanelCellPosition.cs: new file.
10358         
10359         * TableLayoutRowStyleCollection.cs,
10360         TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
10361         TableLayoutSettings.cs: Track the final 2.0 table api.
10363 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10365         * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
10366         and Image List 2.0 members for ColummnHeader.
10367         * ListView.cs: Add key-related 2.0 methods for
10368         ColumnHeaderCollection.
10370 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
10372         * ListViewItem.cs: Changed AddRange overloads to match MS: throw
10373         ArgumentNullException if items argument is null. Ignore null item in
10374         arrays. Removed extra tabs.
10376 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
10378         * MonthCalendar.cs: Fixed InvalidCastException.
10380 2006-12-19  Jackson Harper  <jackson@ximian.com>
10382         * TextControl.cs: Don't increment the position here.
10383         - When calculating char positions only add in the line break size
10384         for hard line breaks.
10386 2006-12-19  Andreia Gaita  <avidigal@novell.org>
10388         * SendKeys.cs: Changed some things to match ms.net behaviour
10389         when parsing shifted capital letters.
10390         
10391         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX: 
10392         Add window handle as parameter to SendInput. X11 needs the 
10393         window handle, and the handle being passed      to it in the keys 
10394         queue is the active control handle (which windows needs), not 
10395         the window handle.
10396         
10397         XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput 
10398         to support SendKeys on X.       
10399         
10400         * X11Keyboard: Implement helper method to lookup a linux keycode
10401         given the virtual keycode. Added table of keycode-2-virtualkey
10402         values to support this.
10404 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10406         * ListView.cs: Add support for SelectedIndexCollection
10407         and SelectedItemCollection 2.0 methods. Implement support
10408         for ImageKey too.
10409         * ListViewItem.cs: Add support for ListViewSubItemCollection
10410         2.0 methods. Also, fix an incorrect behavior of AddRange method
10411         (it shouldn't call Clear).
10412         * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
10414 2006-12-19  Jackson Harper  <jackson@ximian.com>
10416         * RichTextBox.cs: 
10417         * TextBoxBase.cs: New args for FormatText
10418         * TextControl.cs: Rewrote the main drawing method, this version
10419         feels a little easier to understand and debug to me.  Hopefully it
10420         does to others also
10421         - Fix FormatText to OR in the new formating values.  Added
10422         FormatSpecified param, basically this works in the same way as
10423         BoundsSpecified in Control.
10424         - Set the caret properties when the caret is positioned.
10425         - When wrapping text make sure that we calculate the width of the
10426         last character
10427         - when calculating alignments we might have wrapped down to the
10428         next line, so don't search for an individual tag, search for the
10429         end of the line
10430         - We need to invalidate the selection area when we replace the
10431         selection.
10432         
10433 2006-12-19  Daniel Nauck  <dna@mono-project.de>
10435         * Application.cs: add Restart () 2.0 support
10437 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
10439         * MenuItem.cs: Invalidate menu item rectangle after change Enable
10440         property. Fixes #80268.
10441         
10442 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
10444         * MenuAPI.cs: Dont trigger select event when closes top menu
10445         item. Fixes #80270.
10447 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
10449         * MenuAPI.cs: When you click on menuitem only trigger onselect
10450         event for top menu itens. Fixes #80271.
10451         
10452 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10454         * MdiWindowManager.cs: Make IconicBounds depend on
10455         the bottom of MdiClient, not the top (fixes #80267)
10456         
10457 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10459         * MdiClient.cs: Added missing 2.0 attribute
10461 2006-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10463         * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
10464         as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
10466 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
10468         * MenuAPI.cs: Fix click when menuitem is not popup,
10469         this regression was caused by last commit (#80272).
10471 2006-12-17  Everaldo Canuto  <everaldo@simios.org>
10473         * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
10474         fire click event or close menu. Fixes #80272.
10476 2006-12-17  Daniel Nauck  <dna@mono-project.de>
10478         * ListViewHitTestInfo.cs: add
10480 2006-12-17  Daniel Nauck  <dna@mono-project.de>
10482         * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
10483         * FlatButtonAppearance.cs: add
10484         * DockingAttribute.cs: add
10486 2006-12-17  Chris Toshok  <toshok@ximian.com>
10488         * DataGrid.cs: hook up MetaDataChanged event on the list manager,
10489         and rebind our columns when it does - this way, if you make
10490         changes to the DataTable (or set the Table attribute on a DataView
10491         after setting it as the DataGrid's DataSource, the changes are
10492         made visible.)  Fixes bug #80107.
10494 2006-12-17  Daniel Nauck  <dna@mono-project.de>
10496         * ListViewGroup.cs: add internal Location property for layouting.
10497         * Theme.cs: add abstract ListViewGroupHeight function.
10498         * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
10500 2006-12-16  Andreia Gaita  <avidigal@novell.com>
10502         * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
10503         Added reset of selected index to 0 when adding first tab page.
10504         Fixes #80264
10505         
10506         * NumericUpDown.cs: Fix NET_2_0 check
10508 2006-12-16  Daniel Nauck  <dna@mono-project.de>
10510         * ListViewGroup.cs: fixed DefaultValueAttribute value
10512 2006-12-16  Daniel Nauck  <dna@mono-project.de>
10514         * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
10516 2006-12-15  Miguel de Icaza  <miguel@novell.com>
10518         * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
10519         TextBoxBase.cs, ListView.cs, ContainerControl.cs,
10520         ScrollableControl.cs: Add a handful of methods that are
10521         overwritten in 2.0 
10523 2006-12-15  Chris Toshok  <toshok@ximian.com>
10525         * XplatUIWin32.cs: initial implementation of the Reversible
10526         drawing functions.  there are some problems.  DrawReversibleFrame
10527         doesn't seem to work at all for Dashed FrameStyle, and in the
10528         Thick case there are drawing errors at the corners (we probably
10529         need to bind Rectangle instead of doing moveto/lineto's.)
10531 2006-12-16  Andreia Gaita  <avidigal@novell.com>
10532         
10533         * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput, 
10534         to send blocks of key messages. Send accumulates keys to send with Flush, 
10535         while SendWait sends all keys immediately.
10536                 
10537         * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, 
10538         XplatUIX11.cs,  XplatUIX11-new.cs:
10539         - Define SendInput and stubs for OSX and X11, implements Win32 with a call
10540         to Win32 SendInput.
10541         - Added INPUT support structures to XplatUIWin32 for Win32SendInput
10542         
10543         Tests:  It seems ms.net is hooking the keyboard to implement this, so doing unit
10544         testing for ms.net on this class is very tricky, as the tests run too fast 
10545         to allow the hook to release, essentially freezing the keyboard and the 
10546         test. So, barring a win32 miracle, they'll be commited in the ms-notworking     
10547         category :p
10549 2006-12-16  Daniel Nauck  <dna@mono-project.de>
10551         * Padding.cs: fixed serialization compability to MS ("_var" field names),
10552                         added missing attributes.
10554 2006-12-15  Daniel Nauck  <dna@mono-project.de>
10556         * ListViewGroup.cs: Added missing attributes.
10557         * ListViewGroupCollection.cs: Added missing attributes.
10559 2006-12-15  Daniel Nauck  <dna@mono-project.de>
10561         * ListViewItem.cs: fixed ListViewSubItem text property.
10563 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10564         
10565         * Control.cs: Added missing 2.0 attributes
10566         
10567 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10568         
10569         * MdiClient.cs: Added missing 2.0 attribute.
10570         * MonthCalendar.cs: Added some missing 2.0 attributes 
10571         and properties.
10572         
10573 2006-12-15  Daniel Nauck  <dna@mono-project.de>
10575         * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
10577 2006-12-15  Jonathan Pobst  <monkey@jpobst.com>
10579         * MainMenu.cs: Add the new 2.0 constructor to help out people
10580         using the MainMenu in VS2005.
10582 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10583         
10584         * MdiChildContext.cs: Removed it, no longer used.
10585         * MdiClient.cs: Added missing 2.0 attributes.
10586         
10587 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10588         
10589         * InternalWindowManager.cs: Fix a NullRef with previous 
10590         changes for toolwindows.
10591         
10592 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10594         * Control.cs: 
10595         - Added AfterTopMostControl to allow for certain controls 
10596         to always stay on top when normal controls are brought to 
10597         front.
10598         
10599         * XplatUIWin32.cs: 
10600         - (DrawInversibleRectangle): Get window rectangle from Win32 
10601         in stead of from control, since Win32 doesn't calculate
10602         screen coords correctly from control's Location if it 
10603         have docked siblings.
10604         
10605         * MdiWindowManager.cs:
10606         - Correct the control menu popup location when clicked on
10607         the maximized form icon. (fixes #80223.1)
10608         - Don't show moving rectangle if mouse hasn't moved from
10609         the original clicked point.
10610         - Removed FormGotFocus handler (not used).
10611         - Calculate the control buttons location from the main
10612         window's size and not client size (fixes #79770).
10613         - Form is now closed when the form icon is double-clicked
10614         (fixes #79775). 
10615         - Correct NCCalcSize numbers a little bit (fixes #80223.2)
10616         
10617         * InternalWindowManager.cs:
10618         - Moved some MDI-only methods to MdiWindowManager.
10619         - Removed unused properties and methods.
10620         - Unified method naming for methods handling wm messages.
10621         - Moved all message handling to seperate methods for
10622         each message.
10623         
10624         * ThemeWin32Classic.cs:
10625         - DrawManagedWindowDecorations now draws the title bar 
10626         with a gradient brush.
10627         - Add a CPDrawButtonInternal that allows us to specify
10628         light, normal and dark colors for the buttons (control 
10629         buttons for MDI children were drawn with the same light
10630         color as the background, therefore loosing the 3D effect).
10631         
10632         * SizeGrip.cs:
10633         - Add a CapturedControl property that is used to 
10634         determine the control to resize (defaults to parent). 
10635         Needed for MdiClient, since its SizeGrip's parent is
10636         MdiClient, but the control to resize is the main form.
10637         
10638         * MdiClient.cs:
10639         - Set SizeGrip's CapturedControl to the main form in order
10640         to resize the main form and not the MdiClient.
10641         - Override AfterTopMostControl to leave the scrollbars 
10642         always on top.
10644 2006-12-15  Daniel Nauck  <dna@mono-project.de>
10646         * ListView.cs: fixed ListViewItemCollection AddRange and
10647                         implemented ListViewItemCollection AddRange 2.0 support.
10649 2006-12-15  Daniel Nauck  <dna@mono-project.de>
10651         * ListViewGroup.cs: Add.
10652         * ListViewGroupCollection.cs: Add
10653         * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
10654         * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
10655                                 stub for ImageKey 2.0 support.
10657 2006-12-14  Mike Kestner  <mkestner@novell.com>
10659         * ListView.cs: add text padding to the autocalculation for columns
10660         of width -2.  Fixes #80207.
10662 2006-12-14  Mike Kestner  <mkestner@novell.com>
10664         * ListView.cs: add some index guarding for partial row navigation 
10665         logic.  Fixes #80250.
10667 2006-12-14  Mike Kestner  <mkestner@novell.com>
10669         * ListView.cs: throw ArgumentExceptions when parented ListViewItems
10670         are added or inserted to the collection.  Fixes #81099.
10672 2006-12-13  Everaldo Canuto  <everaldo@simios.org>
10674         * MenuAPI.cs: Closes menu when right click out side of popup
10675         it fix problem in ContextMenu and MainMenu. Fixes #80252.
10677 2006-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10679         * ListViewItem.cs: Fix dumb error.
10681         * ListView.cs: Add Find and ContainsKey methods in 
10682         ListViewItemCollection, and also return true for IsReadOnly
10683         and IsFixedSize (changes for 2.0). 
10685 2006-12-13  Gert Driesen  <drieseng@users.sourceforge.net>
10687         * Control.cs: Allow Region to be set to null.
10689 2006-12-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10691         * MdiWindowManager.cs: Remove unused (commented out) code.
10692         * Form.cs: When the MdiChild is maximized, the form needs 
10693         WM_NCMOUSELEAVE, so request it.
10694         * InternalWindowManager.cs: 
10695         - Added tooltips to control buttons.
10696         - Removed duplicated control button handling code.
10697         - Removed unused (commented out) code.
10698         
10699 2006-12-12  Everaldo Canuto  <everaldo@simios.org>
10701         * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor 
10702         was used because we must set cursor without trigger ChangeCursor event
10703         and without change Cursor control property. Fixes #79963.
10705 2006-12-12  Andreia Gaita  <avidigal@novell.com>
10706         
10707         * Control.cs: Check if Region setter value is null, and ignore
10709 2006-12-12  Jackson Harper  <jackson@ximian.com>
10711         * TextControl.cs: We were almost always drawing one more line then
10712         needed, since the GetLineByPixel will return the last line found
10713         at that pixel. In most cases though, we were invalidating up to
10714         the junction between two lines.
10715         - Improve debug code.
10717 2006-12-12  Chris Toshok  <toshok@ximian.com>
10719         * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
10720         and FillReversibleRectangle.
10722         * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
10723         and FillReversibleRectangle.
10725         * XplatUIWin32.cs: add stubs which do nothing for
10726         DrawReversibleFrame, DrawReversibleLine, and
10727         FillReversibleRectangle.
10729         * XplatUIOSX.cs: add stubs which raise NIE for
10730         DrawReversibleFrame, DrawReversibleLine, and
10731         FillReversibleRectangle.
10733         * XplatUIX11.cs: add working implementation for
10734         DrawReversibleFrame, DrawReversibleLine, and
10735         FillReversibleRectangle.
10736         
10737         * ControlPaint.cs: implement DrawReversibleFrame,
10738         DrawReversibleLine, and FillReversibleRectangle, by calling into
10739         the appropriate XplatUI method.
10741 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10743         * Form.cs: Make MdiClient have the focus even if it's
10744         not selectable, since it should receive WM_KEY* and WM_MOUSE 
10745         messages. Fixes #79907.
10746         
10747 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10749         * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
10750         queried after the window is created.
10751         
10752         * XplatUIX11.cs: Added SendParentNotify to implement 
10753         WM_PARENTNOTIFY logic. Fixes #79965.
10754         
10755         * Control.cs: Added MakeParam.
10756         
10757 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10759         * MdiClient.cs: Resume Layout before setting window
10760         states (fixes #80201).
10762 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
10764         * MenuAPI.cs: Deselect a menu item after performing
10765         the click (fixes #80197).
10767 2006-12-11  Jackson Harper  <jackson@ximian.com>
10769         * TextBoxBase.cs: We need to cap this value, since Maximum -
10770         ViewPortHeight can be less than zero.
10771         - Only do selection with the left mouse button.
10772         * TextBox.cs: Don't tell the world that we have a context menu.
10773         * Control.cs: New method so that we can control whether or not the
10774         context menu is visible outside MWF.
10776 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
10778         * ToolBarButton.cs: Fix text positon. 
10780 2006-12-11  Miguel de Icaza  <miguel@novell.com>
10782         * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
10784         * Control.cs (DoubleBuffered): Add implementation.
10786         * Application.cs (OpenForms): Add.
10788 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
10790         * Form.cs: Use opacity instead of Opactiy to determine if we need
10791         to set the WS_EX_LAYERED bit.  [Fixes bug #80185]
10793 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
10795         * Control.cs: Fix NRE if Control.Site was set to null.
10797 2006-12-11  Chris Toshok  <toshok@ximian.com>
10799         * Control.cs: ControlCollection.Remove should return if the arg is
10800         null, and ControlCollection.SetChildIndex should raise a ANE.
10802 2006-12-11  Gert Driesen  <drieseng@users.sourceforge.net>
10804         * Control.cs: Verify value set for Dock property. Code formatting
10805         updates.
10807 2006-12-11  Jackson Harper  <jackson@ximian.com>
10809         * TextControl.cs: Draw the caret and the selection when a flag is
10810         set on the owner.
10811         * TextBoxBase.cs: We want to draw the caret and the selection for
10812         TextBox but not for TextBoxBase.
10813         - If the window is resized and scrolling is no longer needed (the
10814         whole doc is visible) set the scroll position to zero.
10815         - The default SelectWord (the one TextBox uses) should move the
10816         caret to the end of the word.
10817         - SelectAll moves the caret to the end of the selection.
10818         * TextBox.cs: We don't selectall on focus, we just do it when the
10819         control is created.
10820         
10821 2006-12-11  Mike Kestner  <mkestner@novell.com>
10823         * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
10825 2006-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10827         * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer 
10828         2.0 support.
10829         * ListViewItem.cs: Add Name 2.0 property.
10831 2006-12-11  Andreia Gaita  <avidigal@novell.com>
10833         * TabControl.cs: Set visibility on selected or default tab 
10834         when tabcontrol handle is created, so that it's contents
10835         actually show up (duh). Fixes #80193
10836         Don't redraw the control if there is no handle created, as
10837         the selected index might be completely invalid. Added some tests
10838         to check for this.
10840 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
10842         * ToolBar.cs: Uses maximun width and height of all buttons as 
10843         button rectangle when ButtonSize specified, it looks strange but
10844         is what happens in Win32. Fixes #80189.
10846 2006-12-11  Jackson Harper  <jackson@ximian.com>
10848         * TextControl.cs: Need to track undo levels ourself, since
10849         compound actions will mess them up.
10851 2006-12-10  Andreia Gaita  <avidigal@novell.com>
10853         * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
10854         SelectedIndex value is changed (even if it's not valid).
10855         Reset SelectedIndex to 0 when the handle is created and if
10856         the current index is invalid.
10857         Fixes SelectdeIndex unit tests and #80128
10859 2006-12-08  Chris Toshok  <toshok@ximian.com>
10861         * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
10862         calls EndEdit, it needs to be called before we set current_cell to
10863         its new value.  Otherwise, we end up committing the value in the
10864         textbox to the new cell as well.  Fixes bug #80160.
10866 2006-12-08  Chris Toshok  <toshok@ximian.com>
10868         * Form.cs (set_CancelButton): if the button's DialogResult is
10869         None, set it to Cancel.  Fixes bug 80180.
10871 2006-12-08  Jackson Harper  <jackson@ximian.com>
10873         * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
10874         to watch ourselves when setting the canvas size and setting the
10875         scrollbar values.
10877 2006-12-08  Chris Toshok  <toshok@ximian.com>
10879         * DataGrid.cs: comment out the two MakeTransparent calls for the
10880         time being so people using trunk (and not 1.2.2) on windows can
10881         actually use the datagrid.  This deals with bug #80151.
10883 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
10885         * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
10886         Graphics.DrawImage (image, int, int, int, int) overload instead
10887         of Graphics.DrawImage (image, int, int).  GDI+ can't figure out
10888         the dpi difference and was blurring images it drew.
10889         [Fixes bug #79960]
10891 2006-12-08  Chris Toshok  <toshok@ximian.com>
10893         * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
10894         rowcnt is 0 (such as with an empty datasource), and make sure we
10895         initialize not_usedarea.Y to cells.Y, so we don't draw over the
10896         other areas (caption, parent row, etc, etc).  Fixes bug #80095.
10898 2006-12-08  Chris Toshok  <toshok@ximian.com>
10900         * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
10901         grid.
10903 2006-12-08  Chris Toshok  <toshok@ximian.com>
10905         [ Fixes bug #80167 ]
10906         
10907         * ThemeWin32Classic.cs: don't draw the image if the button's flat
10908         style is FlatStyle.System.
10910         * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
10911         ButtonBase.flat_style private, and switch uses of it to the public
10912         property.
10913         
10914 2006-12-08  Chris Toshok  <toshok@ximian.com>
10916         [ Fixes bug #80121 ]
10917         
10918         * ThemeWin32Classic.cs: center the caption text in the datagrid
10919         when we draw it.
10921         * DataGrid.cs: lessen the amount we add to the caption height from
10922         6 to 2.  6 was making it huge.
10924 2006-12-08  Andreia Gaita  <avidigal@novell.com>
10926         * UpDownBase: Handle MouseWheel call directly instead of capturing
10927         the inner textbox's OnMouseWheel. Fixes #80166
10929 2006-12-08  Jackson Harper  <jackson@ximian.com>
10931         * TextControl.cs: We need to invalidate the textbox when we empty
10932         it (how had this not been discovered before?)
10934 2006-12-08  Jackson Harper  <jackson@ximian.com>
10936         * TextBoxBase.cs: Reworked the mouse down code so I could get it
10937         to behave like MS, we now ignore the eventargs.Click and just
10938         track state ourself, which we were already doing anyways.
10939         - Constrain the double click handler to the double click size.
10940         
10941 2006-12-08  Chris Toshok  <toshok@ximian.com>
10943         * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
10944         direction if that scrollbar isn't shown.  fixes bug #80158.
10946 2006-12-08  Andreia Gaita  <avidigal@novell.com>
10948         * NumericUpDown.cs: Update value on getter. Fixes #79950
10950 2006-12-08  Chris Toshok  <toshok@ximian.com>
10952         * MenuItem.cs: add back in the event cloning code.  I didn't know
10953         how to do it in the face of the EventHandlerList work i'd done
10954         last week.  Fixes bug #80183.
10956 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
10958         * Control.cs: Add an invalidate to the BackgroundImage setter.
10959         [Fixes 80184]
10961 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
10963         * ToolStrip*: Add some small properties reported by MoMA, fix event
10964         firing and default properties based off of unit tests, and add some
10965         attributes based off of the class status page.
10967 2006-12-07  Jackson Harper  <jackson@ximian.com>
10969         * TextBoxBase.cs: Take HideSelection into account when determining
10970         whether or not to show the selection.
10971         * RichTextBox.cs: After inserting the RTF into the document move
10972         the cursor to the beginning of the document.
10974 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
10976         * Control.cs: Remove static ArrayList "controls" which maintained
10977         a reference to every control created.
10978         * Application.cs: Create a static FormCollection to maintain a reference
10979         to every form created.  Use it in places that formerly enumerated through
10980         the controls one looking for forms.
10981         * Form.cs: Add and remove self from above FormCollection.
10983 2006-12-07  Alexander Olk  <alex.olk@googlemail.com>
10985         * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
10986           not libgdk (though it makes me wonder why I didn't have any
10987           problems)
10989 2006-12-07  Chris Toshok  <toshok@ximian.com>
10991         [ you had to know this was coming after that last commit...]
10992         
10993         * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
10994         XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
10995         DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
10996         XCopyArea).
10998 2006-12-07  Chris Toshok  <toshok@ximian.com>
11000         * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
11001         DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
11002         all the behavior we need for double buffering.
11004         * XplatUIDriver.cs: implement the 3 double buffer methods using a
11005         client side Bitmap, just like the old Control-based double buffer
11006         code did.  The methods are virtual, so each XplatUI driver
11007         subclass can replace the implementation to use a faster, platform
11008         specific approach.
11010         * Control.cs: make use of the 3 Offscreen XplatUI calls in the
11011         double buffer code, and clean things up a bit in the process.
11013 2006-12-06  Chris Toshok  <toshok@ximian.com>
11015         * Control.cs: reindent WndProc.
11017 2006-12-06  Chris Toshok  <toshok@ximian.com>
11019         [ I wanna be like BenM when I grow up ]
11020         
11021         * Hwnd.cs: create a single static Graphics object on the static
11022         Bitmap we create.  use this for our text measurements.
11024         * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
11025         This was causing us to allocate a backbuffer for every control,
11026         even when it wasn't flagged as double buffered.  Instead use the
11027         single graphics instance.  This might have implications for
11028         multithreaded applications.  If we run into problems we can switch
11029         to creating 1 Graphics per control, on the static Hwnd bitmap.
11031         this change nets us a 7M savings in private dirty mappings when
11032         running FormsTest.exe.
11034 2006-12-06  Chris Toshok  <toshok@ximian.com>
11036         * ListView.cs: the BackgroundImage override is just to set
11037         attributes.  chain up to base.BackgroundImage.
11039         * RichTextBox.cs: same.
11041         * ToolBar.cs: same, but we need to also redraw the toolbar when it
11042         changes, so instead a handler for BackgroundImageChanged.
11043         
11044         * Control.cs: make background_image private.
11046 2006-12-06  Chris Toshok  <toshok@ximian.com>
11048         * ScrollBar.cs: change the assignment of cursor to Cursor.  not
11049         sure we even need this assignment, but roll with it for now.
11051         * Control.cs: make the cursor field private.
11053 2006-12-06  Chris Toshok  <toshok@ximian.com>
11055         * Form.cs: we don't need to explicitly set ImeMode to
11056         ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
11057         behavior in the face of ImeMode.Inherit.
11059         * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
11060         change the ctor's assignment to use ImeMode instead of ime_mode.
11062         * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
11063         ImeModeInherit.  Only check for the parent's imemode (and return
11064         NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
11065         This fixes the button unit test, which sets both ImeMode and
11066         DefaultImeMode to ImeMode.Disable.
11068         also make the ime_mode field private.
11070 2006-12-06  Chris Toshok  <toshok@ximian.com>
11072         * Control.cs: make control_style private.
11074         * TextBoxBase.cs: fix the HandleClick override.  it was explicitly
11075         setting the styles to true, then setting them to false instead of
11076         reverting to their previous values.
11078         also, call SetStyle on the scrollbars instead of using
11079         control_style directly.
11081 2006-12-06  Jonathan Pobst  <monkey@jpobst.com>
11083         * FormCollection.cs: Implement. [2.0]
11085 2006-12-06  Chris Toshok  <toshok@ximian.com>
11087         * Control.cs: make tab_stop private.
11089         * Label.cs: set TabStop, not tab_stop.  reformat some event
11090         add/remove methods to make them more compact.
11092 2006-12-06  Chris Toshok  <toshok@ximian.com>
11094         * RadioButton.cs: fix TabStop handling.
11096 2006-12-06  Chris Toshok  <toshok@ximian.com>
11098         * TextBox.cs: remove the explicit assignments to has_focus.
11099         Control does that.
11101         * ButtonBase.cs: remove the assignment to has_focus.  Control will
11102         manage that.
11103         
11104 2006-12-06  Chris Toshok  <toshok@ximian.com>
11106         * ButtonBase.cs: remove all uses of is_enabled from this code.
11107         it's always true when any of the code containing the checks is
11108         executed.
11110 2006-12-06  Chris Toshok  <toshok@ximian.com>
11112         * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
11113         with different semantics (some are present in both 1.1 and 2.0
11114         profiles) so that we match MS's behavior in our unit tests.
11116 2006-12-06  Jackson Harper  <jackson@ximian.com>
11118         * TextControl.cs: Make this operation undoable.
11119         * TextBoxBase.cs: Factor the border width into the preferred
11120         height.
11121         - implement Modified as per the spec.
11123 2006-12-06  Chris Toshok  <toshok@ximian.com>
11125         * Timer.cs, Control.cs, Menu.cs: make control_tag private.
11127 2006-12-06  Chris Toshok  <toshok@ximian.com>
11129         * Control.cs: make right_to_left and context_menu fields private.
11131 2006-12-06  Chris Toshok  <toshok@ximian.com>
11133         * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
11134         XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
11135         Control.child_controls private.  switch all uses over to
11136         Control.Controls.
11138 2006-12-06  Chris Toshok  <toshok@ximian.com>
11140         * System.Windows.Forms/GroupBox.cs,
11141         System.Windows.Forms/AccessibleObject.cs,
11142         System.Windows.Forms/ErrorProvider.cs,
11143         System.Windows.Forms/Control.cs,
11144         System.Windows.Forms/UpDownBase.cs,
11145         System.Windows.Forms/ScrollBar.cs,
11146         System.Windows.Forms/DateTimePicker.cs,
11147         System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
11148         System.Windows.Forms/ToolTip.cs,
11149         System.Windows.Forms/RadioButton.cs,
11150         System.Windows.Forms/LinkLabel.cs,
11151         System.Windows.Forms/Splitter.cs,
11152         System.Windows.Forms/TextBoxBase.cs,
11153         System.Windows.Forms/ToolStripTextBox.cs,
11154         System.Windows.Forms/ContainerControl.cs,
11155         System.Windows.Forms/ThemeWin32Classic.cs,
11156         System.Windows.Forms/SizeGrip.cs,
11157         System.Windows.Forms/ToolStripDropDown.cs,
11158         System.Windows.Forms/ScrollableControl.cs: Make Control.parent
11159         private.  switch all uses over to Control.Parent.
11161 2006-12-06  Chris Toshok  <toshok@ximian.com>
11163         * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
11164         Control does this before calling emitting these events.
11166         * TabControl.cs: same.
11168         * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
11169         Control.client_rect.
11171         * ButtonBase.cs: use the ClientSize property instead of the
11172         client_size field.
11174         * ScrollableControl.cs: same.
11176         * Control.cs: another pass at making properties private.  also,
11177         move the initialization of tab_stop to the ctor.
11179 2006-12-05  Andreia Gaita <avidigal@novell.com>
11181         * TabControl.cs: Let the selected index be set freely if the 
11182         control handle is not yet created.
11184 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
11186         * Control.cs: Revert dist_top, dist_right, and dist_bottom to 
11187         internal until I can rewrite DefaultLayout.
11188         * ToolStrip.cs: Fix build error and some general cleaning.
11189         * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
11190         Fix build errors caused by making some of Control's fields private.
11192 2006-12-05  Jackson Harper  <jackson@ximian.com>
11194         * TextControl.cs: Redo Insert a little so that it use IndexOf
11195         instead of Split, this prevents it from messing up on things like
11196         \n\n\n. Also more effecient since the split array doesn't need to
11197         be created.
11198         * TextBoxBase.cs: AppendText doesnt handle multiline and non
11199         multiline text differently, this is the first of many fixes that
11200         will make multiline/non-multiline the same thing as far as the
11201         TextBoxBase is concerned.
11202         - Don't split the text and insert lines, this can lose some line
11203         endings (like is the last line a soft or hard break). Instead use
11204         the new Insert.
11205         - Fix an off by one when combining all the lines in the Text
11206         getter.
11207         - Remove separate multiline handling from the Text getter/setter.
11209 2006-12-05  Chris Toshok  <toshok@ximian.com>
11211         * ButtonBase.cs: a few changes:
11213         - don't reinitialize internal Control fields in the ctor when they
11214         have the same values as Control sets them.
11216         - don't set has_focus in OnGotFocus/OnLostFocus.  Control does
11217         this before calling those methods.
11219         - we don't need to call Refresh for anything.  use Invalidate
11220         instead.
11222         - OnEnabledChanged doesn't need to redraw at all - Control.cs
11223         calls Refresh in its OnEnabledChanged.
11224         
11225         - several of the events we were registered for in the ctor to
11226         redraw ourselves already include calls to Invalidate in the
11227         property setters that raise the events.  remove the extra
11228         invalidation.
11230         - reformat a switch statement that was 83274658 columns wide.
11231         
11232 2006-12-05  Mike Kestner  <mkestner@novell.com>
11234         * ComboBox.cs: fix a unit test regression from a TextBox
11235         SelectionLength return of -1 when there's no selection.  
11237 2006-12-05  Chris Toshok  <toshok@ximian.com>
11239         * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
11240         ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
11241         cleaning up some of the internal Control fields being used by
11242         subclasses.
11244 2006-12-05  Mike Kestner  <mkestner@novell.com>
11246         * ComboBox.cs: fix some Simple mode regressions.  Set Visible on the
11247         listbox after AddImplicit calls since it defaults to hidden. Add a 
11248         hack to preserve requested heights across DropDownStyle changes.
11250 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
11252         * PropertyGrid.cs: Hide FindFirstItem method from public API.
11254 2006-12-05  Chris Toshok  <toshok@ximian.com>
11256         * DataGridView.cs: fix compiler warnings.
11258         * PrintControllerWithStatusDialog.cs: same.
11260         * ToolBar.cs: same.
11262         * FolderBrowserDialog.cs: same.
11264         * Splitter.cs: same.
11266         * DataGridViewComboBoxCell.cs: same.
11268         * XplatUIWin32.cs: same.
11270         * PictureBox.cs: same.
11272         * Win32DnD.cs: same.
11274         * PageSetupDialog.cs: same.
11276         * FileDialog.cs: same.
11278         * PrintDialog.cs: same.
11280         * DataGridTextBoxColumn.cs: same.
11282         * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
11284 2006-12-05  Chris Toshok  <toshok@ximian.com>
11286         * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
11287         MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
11288         System.ComponentModel.EventHandlerList work.
11290 2006-12-05  Jonathan Chambers  <joncham@gmail.com>
11292         * DrawTreeNodeEventArgs.cs: Added.
11294 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11295         
11296         * InternalWindowManager.cs: Remove an unused field.
11297         
11298 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11300         * InternalWindowManager.cs:
11301         - Save the point where the title bar is clicked.
11302         
11303         * MdiWindowManager.cs:
11304         - Only allow moving of the window as long as the 
11305         clicked point on the title bar does not get out of
11306         MdiClient's rectangle. Fixes #79982.
11307         
11308         * MdiClient.cs:
11309         - Added Horizontal/VerticalScrollbarVisible.
11310         - Simplified the scrollbar sizing algorithm.
11311         - Cache the difference in scrolled value in
11312         H/VBarValueChanged and move the calculation out
11313         of the for loop.
11315 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11317         * Control.cs: Make the Console.WriteLine in WndProc 
11318         write more info.
11320 2006-12-05  Chris Toshok  <toshok@ximian.com>
11322         * ToolStripManager.cs, ToolStripButton.cs,
11323         ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
11324         ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
11325         ToolStripSplitButton.cs, ToolStripSeparator.cs,
11326         ToolStripRenderer.cs, ToolStripDropDownItem.cs,
11327         ToolStripProgressBar.cs, ToolStripContainer.cs,
11328         ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
11329         to using System.ComponentModel.EventHandlerList.
11331 2006-12-04  Chris Toshok  <toshok@ximian.com>
11333         * LinkLabel.cs: fix up compiler warnings.
11335         * TableLayoutSettings.cs: same.
11337         * TreeView.cs: same.
11339         * ToolBar.cs: same.
11341         * TabControl.cs: same.
11343         * RichTextBox.cs: same.
11345         * ListViewItem.cs: same.
11347         * PropertyGrid.cs: same.
11349         * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
11351         * ToolTip.cs same.
11353         * TextRenderer.cs: fix up compiler warnings.
11355         * Label.cs: same.
11357         * Form.cs: corcompare fixes.
11359         * PictureBox.cs: fix up compiler warnings.
11361         * ImageListStreamer.cs: same.
11363         * TrackBar.cs: corcompare fix.
11365         * Control.cs: fix up compiler warnings.
11367         * SplitterPanel.cs: same.
11369         * NumericTextBox.cs: same.
11371         * ImageList.cs: same.
11373         * StatusStrip.cs: same.
11375         * ProgressBar.cs: corcompare fix.
11377         * ToolStripButton.cs: fix up compiler warnings.
11379         * ToolStripStatusLabel.cs: same.
11381         * ToolStripSplitButton.cs: same.
11383         * ToolStripSeparator.cs: same.
11385         * ToolStripProgressBar.cs: same.
11387         * ToolStripDropDownMenu.cs: same
11389         * ToolStripDropDown.cs: same.
11391         * ToolStripDropDownButton.cs: same.
11393         * ToolStrip.cs: same.
11395         * ToolStripControlHost.cs: same.
11397         * ToolStripContentPanel.cs: same.
11399         * ToolStripDropDown.cs: same.
11401         * ToolStripContainer.cs: same.
11403         * ToolStripPanel.cs: same, and add "new" where we need it to work
11404         with the new ArrangedElementCollection.
11406         * ToolStripItemCollection.cs: add "new" where we need it to work
11407         with the new ArrangedElementCollection.
11409 2006-12-04  Andreia Gaita <avidigal@novell.com>
11411         * TabControl.cs: Fix default tab selection to after TabControl
11412         gets focus and not before. Fixes #80128
11414 2006-12-04  Chris Toshok  <toshok@ximian.com>
11416         * DataGridTableStyle.cs: remove the gross calling of
11417         datagrid.Refresh from here.  It's a broken idea and it doesn't
11418         work anyway.
11420         * DataGrid.cs: instead, just register/unregister from the
11421         DataGridTableStyle events in CurrentTableStyle.  we play it
11422         conservatively and EndEdit + CalcAreasAndInvalidate on any event,
11423         even though some would most likely not require it.  Fixes bug
11424         #80115 (and one portion of #80117 as a side effect).
11426 2006-12-04  Chris Toshok  <toshok@ximian.com>
11428         * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
11429         so the textbox (if any) goes away.  Fixes bug #80117.
11431 2006-12-04  Chris Toshok  <toshok@ximian.com>
11433         * DataGridColumnStyle.cs: set the column's readonly property
11434         initially based on the property descriptor's IsReadOnly.  Fixes
11435         bug #80044.
11437 2006-12-04  Chris Toshok  <toshok@ximian.com>
11439         * ComboBox.cs: wrap the dropdown style changing work in
11440         SuspendLayout/ResumeLayout.  Fixes bug #79968.
11442 2006-12-04  Jackson Harper  <jackson@ximian.com>
11444         * TextBoxBase.cs: Fix off by one, since these are one-based.
11445         * TextBox.cs: Select all the text when we get focus.  The TextBox
11446         does this but the RTB does not.
11448 2006-12-04  Chris Toshok  <toshok@ximian.com>
11450         * DataGridTextBoxColumn.cs: remove some spew.
11452         * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
11453         but some part of me is saying "it shouldn't be here.."  At any
11454         rate, it fixes bug #80046.  Call IEditableObject.EndEdit after
11455         setting the value.
11457 2006-12-04  Chris Toshok  <toshok@ximian.com>
11459         * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
11460         to reassign the propertydescriptor.
11462 2006-12-04  Jackson Harper  <jackson@ximian.com>
11464         * TextBoxBase.cs:
11465         * TextControl.cs: Remove some unused variables.  Maybe this will
11466         patch things up between mike and I.
11467         - don't split lines less then one char wide, if the viewport is
11468         that small text won't be visible anyways.
11469         
11470 2006-12-04  Jackson Harper  <jackson@ximian.com>
11472         * TextBoxBase.cs: Default selection length is -1, need to do some
11473         more testing on windows to see when this is used for the property.
11474         - Redid the Lines [] property to that we properly remove soft line
11475         breaks
11476         - added support for preserving carriage returns
11477         -  CanUndo is not a variable like 'is undo enabled' it just returns
11478         true if there is undo operations available.
11479         - AppendText doesn't need to grab the last tag itself anymore,
11480         this happens automatically when we move the cursor.
11481         * TextControl.cs: Add CompoundActions to the undo class. This
11482         allows combining the other operations into one big option.  ie a
11483         paste will combine { delete old, insert new, move cursor }
11484         - Add InsertString undo operation
11485         - New method for deleting multiline text
11486         - Add carriage returns to lines. So we can preserve carriage
11487         returns when text is 'roundtripped'
11489 2006-12-04  Chris Toshok  <toshok@ximian.com>
11491         * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
11492         minimum 0.  Fixes the scrollbar exception in bug #80136.
11494 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11496         * MdiClient.cs: 
11497         * MdiWindowManager: Removed unused fields and methods.
11498         
11499 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11500         
11501         * StatusBar.cs: Update all panels when a AutoSize=Contents
11502         panel needs updating.
11503         
11504         * StatusBarPanel.cs: Remove twidth and only use initialize.
11505         Fixes #80031.
11506                 
11507 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11509         * Form.cs: When a form's MdiParent is set add it directly
11510         on top of the z-order in stead of relying on MdiClient's
11511         ActivateChild to do it. Fixes #80135.
11512         
11513         * MdiClient.cs: 
11514         - Remove original_order, mdi_child_list is already doing
11515         the same thing.
11516         - Create mdi_child_list on construction in
11517         stead of first use (avoids a few null checks).
11519         * MenuItem.cs: Use an already existing list of mdi children
11520         to get the correct order of children and remove the other
11521         redundant list.
11523 2006-12-04  Chris Toshok  <toshok@ximian.com>
11525         * PropertyGridView.cs: cached_splitter_location is only used in
11526         !DOUBLEBUFFER code.
11528         * PropertyGrid.cs: implement the ComComponentNameChanged event
11529         using Events, hoping that would fix the warning.  Looks like a
11530         compiler bug instead (#80144).
11532         * PropertyManager.cs: remove unused method.
11534 2006-11-04  Everaldo Canuto  <everaldo@simios.org>
11536         * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar, 
11537         include parentesis to fix expression evaluation. Fixes #79634.
11539 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
11540         
11541         * MenuAPI.cs:
11542         - Changes to fix behavior in Menu control, some reported in #80097
11543         and other detected during behavior refactory like a select event
11544         problems.
11545         - Remove unneded "if's" conditions.
11546         - Created an internal to flag when popup is active in control, we need 
11547         it because in .NET you can have menu active but without popup active
11548         when you active menu using popup without visible items.
11549         - Mimic win32 behavior for Select and Popup events.  
11550         - Dont open popup menu when you dont have visible subitems.
11551         - Do nothing when click on disabled menu item.
11552         - Some small changes to follow the coding style guidelines.
11553         - Unselect menu only when another control gives focus. Fixes #80097.
11554         - Remove unused code.
11555         
11556         * MenuItem.cs: internal VisibleItems method to check if menu
11557         theres visible subitems, it will be usefull to fix some 
11558         behavior in Menu control.
11559         
11560 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
11561         
11562         * Timer.cs: Tag property for 2.0 profile.
11563         
11564 2006-12-01  Chris Toshok  <toshok@ximian.com>
11566         [ after removing all warning suppressions, this cleans up over 100 warnings. ]
11567         
11568         * Win32DnD.cs: comment out some unused fields.
11570         * XplatUIWin32.cs: comment out some unused pinvokes, and remove
11571         some unused properties/methods.
11573         * XplatUIX11.cs: fix MousePosition so we override the base class's
11574         property instead of conflicting with it.
11576         * PictureBox.cs: comment out some unused fields
11578         * OSXStructs.cs: make some struct fields public.
11580         * XplatUIOSX.cs: comment out some unused pinvokes, and fix
11581         MousePosition so we override the base class's property instead of
11582         conflicting with it.
11584         * X11Dnd.cs: comment out some unused fields
11586         * X11DesktopColors.cs: fix some struct field visibility to quiet
11587         the compiler.
11589         * X11Dnd.cs: remove some debug code.
11591         * ThemeClearlooks.cs: comment out unused field.
11593         * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
11595         * ThemeGtk.cs: comment out some unused pinvokes.
11597         * Timer.cs: remove some unused fields.
11599         * ThemeClearlooks.cs: comment out unused field.
11601         * UpDownBase.cs: comment out unused field.
11603         * DataObject.cs: comment out unused field.
11605         * DataGridBoolColumn.cs: reomve unused field.
11607         * DataGrid.cs: remove unused field.
11609         * Cursor.cs: remove old ToBitmap code.
11611         * ControlPaint.cs: remove unused method.
11613         * ScrollBar.cs: remove unused fields.
11615         * ComboBox.cs: remove unused field, and chain up to
11616         AccessibleObject ctor.
11618         * ListBox.cs: remove unused field.
11620         * ButtonBase.cs: wrap a couple fields in NET_2_0.
11622         * GridEntry.cs: remove unused fields.
11624         * Binding.cs: remove unused fields.
11626         * AxHost.cs: remove unused method.
11628         * ContainerControl.cs: remove unused field.
11630         * ScrollableControl.cs: remove unused fields.
11632 2006-12-01  Chris Toshok  <toshok@ximian.com>
11634         * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
11635         the Where/WhereString stuff.  it's easy enough to CWL
11636         Environment.StackTrace.
11638         * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
11639         unused private fields.
11641 2006-12-01  Jackson Harper  <jackson@ximian.com>
11643         * TextControl.cs: Do not update the view while inserting multiline
11644         text. If we update the view we might wrap lines, before entering
11645         the new lines, which causes the new line insertion calculations to
11646         be totally fubared.
11647         - Remove an old TODO
11648         - Make debug output a little nicer
11649         
11650 2006-12-01  Chris Toshok  <toshok@ximian.com>
11652         * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
11654 2006-12-01  Chris Toshok  <toshok@ximian.com>
11656         [ fix the majority of the CS0108 warnings we've been suppressing ]
11657         
11658         * TreeView.cs: mark BackgroundImageChanged as 'new'.
11660         * ToolBar.cs: ImeMode just passes stuff to Control.  Rename Layout
11661         to "LayoutToolBar" to quiet mcs.
11662         
11663         * TabControl.cs: mark our ControlCollection class as 'new'.
11665         * TextBoxBase.cs: mark some events as 'new'.
11667         * Splitter.cs: TabStop is 'new'.
11669         * ControlBindingsCollection.cs: mark a few methods as new since
11670         they change the visibility from protected to public.
11672         * RadioButton.cs: DoubleClick -> base class, and remove unused
11673         HaveDoubleClick.
11675         * MonthCalendar.cs: ImeMode property -> base class, and mark many
11676         events as new.
11678         * NumericUpDown.cs: TextChanged -> base class.
11680         * CheckedListBox.cs: mark our ObjectCollection class as new to
11681         quiet mcs.
11683         * FolderBrowserDialog.cs: make HelpRequest event new and have it
11684         muck with the base class.
11686         * StatusBar.cs: fix some mcs warnings about Update being the same
11687         name as a base class method.
11689         * RichTextBox.cs: mark some events as new, and make them do things
11690         to the base class impl.
11692         * UserControl.cs: mark TextChanged as new, and have it manipulate
11693         base.TextChanged.
11695         * UpDownBase.cs: mark some things new.
11697         * CheckBox.cs: mark DoubleClick "new", and add some text about
11698         what we need to look at.
11700         * Panel.cs: make the events "new", and manipulate the base
11701         version.  these are just here for attributes.
11703         * AccessibleObject.cs: make owner private.
11705         * Control.cs: deal with AccessibleObject.owner being private.
11706         cache our own copy if we need it.
11708         * Button.cs: add "new" to the DoubleClickEvent.
11710         * ListBox.cs: no need to track our own has_focus here.  let
11711         Control.has_focus do it for us.  Also some other work to clear up
11712         warnings about not overriding base class methods of the same name.
11713         
11714         * ComboBox.cs: clear up some warnings about not override base
11715         class methods of the same name.
11717 2006-12-01  Chris Toshok  <toshok@ximian.com>
11719         * Form.cs: flag a few things as "new" to quiet some of the mcs
11720         warnings.
11722         * AxHost.cs: same.
11724         * PrintPreviewDialog.cs: same.
11726         * DataGridView.cs: fix a ton of corcompare warnings.  not all, but
11727         now DGV isn't so horrible on the class status page.  also, move
11728         all events to using System.ComponentModel.EventHandlerList.  my
11729         wrists hurt.
11731 2006-12-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11733         * MdiWindowManager.cs:
11734         - Set form to active mdi child if shown,
11735         and update the active mdi child to the next 
11736         remaining child in the z-order if the form is hidden.
11738         * Form.cs: 
11739         - Track if the form has been visible and if its 
11740         visibility is beeing changed, so that the MdiClient
11741         can properly decide the ActiveMdiChild. The MdiClient 
11742         cannot track this since the form can change visibility 
11743         before MdiClient is created.
11745         * MdiClient.cs:
11746         - Don't activate anything of the parent form is changing
11747         its visibility.
11748         - Rework ActiveMdiChild to only return visible mdi 
11749         children and take into account several other corner 
11750         cases.
11752 2006-12-01  Chris Toshok  <toshok@ximian.com>
11754         * IBindableComponent.cs: new 2.0 interface.
11756 2006-12-01  Gert Driesen  <drieseng@users.sourceforge.net>
11758         * DataGrid.cs: Font for caption area is bold by default.
11760 2006-12-01  Everaldo Canuto  <everaldo@simios.org>
11762         * Menu.cs: Tag property for 2.0.
11763         
11764 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
11766         * ThemeWin32Classic.cs: Adjust menu separator drawing. 
11767         
11768 2006-12-01  Chris Toshok  <toshok@ximian.com>
11770         * TreeView.cs: doh, the Begin* events should be
11771         TreeViewCancelEventHandler.
11773 2006-12-01  Chris Toshok  <toshok@ximian.com>
11775         * Form.cs: Form.ControlCollection already stores off the
11776         form_owner field.  don't access the base class's internal "owner"
11777         field.
11779         * Control.cs: make all the fields in Control.ControlCollection
11780         private.  there's no need for any internal fields here.
11782 2006-12-01  Chris Toshok  <toshok@ximian.com>
11784         * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
11785         OnHandleCreated.  Fixes bug #80109.
11787 2006-12-01  Chris Toshok  <toshok@ximian.com>
11789         * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
11790         SplitContainer.cs, Control.cs, StatusStrip.cs,
11791         DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
11792         NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
11793         DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
11794         DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
11795         Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
11796         LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
11797         MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
11798         TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
11799         PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
11800         DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
11802         do most of the work to convert our code over to use
11803         System.ComponentModel.Component.Events for
11804         adding/removing/dispatching events.
11807 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
11809         * DataGridView.cs: Fix an ArgumentNullException reported 
11810         twice today in IRC.
11812 2006-11-30  Mike Kestner  <mkestner@novell.com>
11814         * ComboBox.cs: fix the scrollbar mouse event forwarding in the 
11815         grabbed listbox.  Fixes #80036 and #80101.
11817 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
11819         * Message.cs: Changed ToString() to match MS.
11820         
11821 2006-11-30  Jackson Harper  <jackson@ximian.com>
11823         * TextBoxBase.cs: You can still change the selected text on a read
11824         only textbox.
11825         * TextControl.cs: Lower magic number for wrap calculations. This
11826         lets text get closer to the right (far) edge.
11828 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
11830         * Control.cs: Tweak 2.0 layout properties.
11831         * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
11832         * TextRenderer.cs: Add a new overload.
11833         * ToolStrip*: Huge amount of changes and new features.
11835 2006-11-30  Mike Kestner  <mkestner@novell.com>
11837         * ComboBox.cs: fixes for LargeChange and Maximum to get the 
11838         scroll range correct.  Fixes #79994.
11840 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
11842         * MdiWindowManager.cs: Update main form's text when
11843         a form is closed. (fixes #80038)
11844         
11845 2006-11-30  Everaldo Canuto  <everaldo@simios.org>
11847         * ToolBar.cs:
11848         - Fix an regression in ButtonSize.
11849         - Get ImeMode default value change to "Disable".
11850         - Get ShowTooltips default value change to true, default value is 
11851         "false" but after make a test in .NET we get "true" result as default.
11852         
11853 2006-11-29  Jonathan Pobst  <monkey@jpobst.com>
11855         * ToolStripDropDown.cs: Fix for SupportsTransparency change.
11857 2006-11-29  Chris Toshok  <toshok@ximian.com>
11859         * XplatUIWin32.cs (GetWindowTransparency): check return value of
11860         GetLayeredWindowAttributes.  if it's 0, return 1.0, as
11861         SetWindowTransparency hasn't been called.
11863 2006-11-29  Chris Toshok  <toshok@ximian.com>
11865         * Form.cs (set_TransparencyKey): only call SetWindowTransparency
11866         if it's supported.
11867         (set_AllowTransparency): reorder things a little so that the
11868         WS_EX_LAYERED style is removed properly.
11870 2006-11-29  Chris Toshok  <toshok@ximian.com>
11872         [ totally cosmetic eye-candy feature, fixes bug #80089 ]
11873         
11874         * Form.cs: only call the XplatUI transparency method (get/set) if
11875         SupportsTransparency says it's supported. Otherwise fallback to
11876         doing nothing (in the set case) or returning the instance field we
11877         cache (in the get case).
11879         * XplatUIStructs.cs: add TransparencySupport flag enum.
11880         
11881         * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
11882         change to SupportsTransparency.
11884         * XplatUIOSX.cs: stub out GetWindowTransparency, and return
11885         TransparencySupport.None from SupportsTransparency.
11887         * XplatUIX11.cs: Stub out GetWindowTransparency, and return
11888         TransparencySupport.Set from SupportsTransparency.
11890         * XplatUIWin32.cs: implement GetWindowTransparency calling
11891         GetLayeredWindowAttributes, and implement SupportsTransparency by
11892         checking whether or not both
11893         GetWindowTransparency/SetWindowTransparency are available
11894         entrypoints.  We need to do this since SetWindowTransparency is
11895         available as of win2k, but GetWindowTransparency requires winxp.
11896         yay win32 api.
11898         * XplatUI.cs: Add GetWindowTransparency, and change
11899         SupportsTransparency to allow for either/both Get/Set.
11901 2006-11-29  Chris Toshok  <toshok@ximian.com>
11903         * DataGrid.cs: keep from going into an infinite loop redrawing a
11904         datagrid that has no datasource.  Fixes bug #80033.
11906 2006-11-29  Chris Toshok  <toshok@ximian.com>
11908         * MenuItem.cs: fix the NRE when we assign text (and therefore call
11909         Invalidate) before the mainmenu has been assigned to a control.
11911 2006-11-29  Chris Toshok  <toshok@ximian.com>
11913         * DataGrid.cs: detect when we should be double the double click
11914         row/column autosize stuff, although that codepath has yet to be
11915         written.  part of the work for bug #79891.
11917 2006-11-29  Chris Toshok  <toshok@ximian.com>
11919         * Binding.cs (SetControl): fix unit test.
11921 2006-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11923         * PageSetupDialog.cs: Validate the margins and set them in
11924         PageSettings. 
11925         * NumericTextBox.cs: New class to mimic the behavior of the
11926         textboxes used in the printing dialogs.
11928 2006-11-29  Andreia Gaita  <avidigal@novell.com>
11929         
11930         * Form.cs: Revert previous change (remove call UpdateBounds
11931         from form constructor), because it messes with the handle creation
11932         order, and that one needs lots and lots of love.
11933         * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
11934         for valid printer and throw InvalidPrinterException if document
11935         is set but printer not valid), adding a MonoTODO. Once 
11936         handle creation is done properly, we can put this back in.
11938 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
11940         * MenuItem.cs: Create a invalidate method for menu item, to be
11941         calling from set text, it make text changes to imadiate update
11942         on screen. Fixes #80013. 
11943         
11944 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
11946         * ToolBar.cs: Fixes and simplify toolbar button layout, it 
11947         fixes bug #80070 and some other problem on toolbar buttons
11948         layout.
11950 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
11952         * ThemeWin32Classic.cs: Paint toolbar toggle button background 
11953         with dotted brush.      Fixes #79564
11954         
11955 2006-11-28  Andreia Gaita  <avidigal@novell.com>
11957         * Form.cs: Removed call to UpdateBounds on Form
11958         constructor, it was causing a call to CreateHandle
11959         before it was supposed to.
11960         * PrintControllerWithStatusDialog: Applied patch
11961         by Chris Toshok to hide controller when there are
11962         no printers available.
11963         PrintDialog.cs: initialize printer settings to 
11964         null - correct DefaultValues test #5
11965         * PrintPreviewControl.cs: Move PrintController
11966         initialization to GeneratePreview
11967         * PrintPreviewDialog.cs: 
11968         - Remove Preview generation     from Document_set(). It is 
11969         called on OnPaint
11970         - Throw InvalidPrinterException on CreateHandle if
11971         a Document is set but there are no printers or 
11972         printer is not valid.
11973         * ThemeWin32Classic: don't paint PrintPreviewControl
11974         if there is nothing to paint    
11976 2006-11-28  Miguel de Icaza  <miguel@novell.com>
11978         * Form.cs: Add another popular method.
11980         * TabPage.cs: ditto.
11982 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11984         * MenuItem.cs: Fixed a warning.
11985         * InternalWindowManager: Fixed a warning.
11987 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11989         * MenuItem.cs:
11990         - When cloning a menu also clone MdiList and clone the 
11991           window menu items properly (as the forms and menuitems
11992           are kept in an internal hashtable, these need updating 
11993           as well)
11994         - Rewrote the window menu code, menu items are added in the
11995           order the forms were added to their parent, and they are
11996           updated every time the window menu is shown (before the
11997           list was only generated once, in the current order of the
11998           forms, and would never be updated). A checkmark is shown
11999           next to the item corresponding to the active mdi child.
12001 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12003         * XplatUIStructs.cs: 
12004         - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
12005         
12006         * XplatUIWin32.cs: 
12007         - Added TME_NONCLIENT to TMEFlags.
12008         - Handles WM_NCMOUSEMOVE in GetMessage to 
12009           generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
12011         * MdiWindowManager:
12012         - Now merges mdi child menu to parent menu when maximized.
12013         - Recalculate NC areas of both mdi child and mdi parent. 
12014           Fixes #79757 (4).
12015           on window state and size changes.Fixes #79844 (3).
12016         - Handle WM_NCCALCSIZE to properly calculate borders.
12018         * Form.cs:
12019         - Add/remove to the mdi containers list of mdi children 
12020           in the order they are added.
12021         - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE 
12022           to the maximized mdi child.
12023         
12024         * InternalWindowManager.cs:
12025         - Only execute a click on the control buttons on the mouse up,
12026           not on the mouse down. Show the state of the button 
12027           (was only showing Normal state, never Pressed state). The
12028           pressed button now follows the mouse (if you click the Close 
12029           button and move the mouse over the Maximize button, the 
12030           Maximize button will be shown as pressed). Since Win32 does
12031           not generate WM_NCLBUTTONUP if you release the button outside
12032           of the nc area, we need to handle WM_NCMOUSELEAVE and treat
12033           it as a mouse up.
12034         
12035         * ThemeWin32Classic.cs:
12036         - Draw a missing border around mdi child forms. Fixes #79844 (2).
12038         * MdiClient.cs:
12039         - Added a list of forms which contains the order the forms are
12040           added to the mdi parent.
12041         - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
12042         - Handle WM_NCCALCSIZE to properly calculate the 3D border.
12043         - If the active form changes set the scrollbars to the top
12044           of the Z order, otherwise the form could hide them.
12045         - Scrollbars are now sized according to ClientSize, not 
12046           to Size, and they take into account the other scrollbar
12047           to determine maximum.
12048         
12049 2006-11-28  Rolf Bjarne Kvinge <RKvinge@novell.com>
12050         
12051         * XplatUI.cs:
12052         * XplatUIDriver.cs:
12053         * XplatUIX11.cs:
12054         * XplatUIWin32.cs:
12055         * XplatUIOSX.cs:
12056         - Added RequestAdditionalWM_NCMessages for windows to 
12057           opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
12058           Currently only implemented in XplatUIWin32.
12060 2006-11-27  Chris Toshok  <toshok@ximian.com>
12062         * Hwnd.cs: only add the hwnd to the windows hash in
12063         set_WholeWindow and set_ClientWindow if whole_window/client_window
12064         are not IntPtr.Zero.  also, remove the unused SetObjectWindow.
12066 2006-11-27  Mike Kestner  <mkestner@novell.com>
12068         * ComboBox.cs: remove redundant OnDropDown call.  It is called
12069         from the ComboListBox.ShowWindow code. Fixes #79969.
12071 2006-11-27  Chris Toshok  <toshok@ximian.com>
12073         * Hwnd.cs: remove the setters for ExposePending and
12074         NCExposePending - noone uses them.
12076 2006-11-27  Jackson Harper  <jackson@ximian.com>
12078         * TextControl.cs: new param for ReplaceSelection which determines
12079         whether we select the new selection, or set the cursor to the end
12080         of the new selection.
12081         * TextBoxBase.cs: Use new param for ReplaceSelection.  When
12082         pasting, select the new text.
12083         * RichTextBox.cs: Use new param for ReplaceSelection.
12085 2006-11-27  Jackson Harper  <jackson@ximian.com>
12087         * TextBoxBase.cs: Set the selection to the caret after the caret
12088         is moved, otherwise they get out of sync.
12090 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
12092         * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
12093         it fixes #80015
12095 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
12097         * ThemeWin32Classic.cs: 
12098         - Fix toolbar drop down arrow position.
12099         - Fix drop down appearance when ToolBar.Appearance is normal,
12100         it fixes #80018.
12101         
12102 2006-11-26  Gert Driesen  <drieseng@users.sourceforge.net>
12104         * ProgressBar.cs: GetStyle fixes for 2.0 profile.
12105         * Control.cs: Same.
12106         * UpDownBase.cs: Same.
12107         * ButtonBase.cs: Same.
12108         * ScrollBar.cs: Same.
12109         * TrackBar.cs: Same.
12110         * PictureBox.cs: Same.
12111         * UserControl.cs: Same.
12112         * Label.cs: Same.
12113         * ListControl.cs: Same.
12114         * TextBoxBase.cs: Same.
12115         * ListView.cs: Same.
12116         * RichTextBox.cs: Same.
12117         * TreeView.cs: Same.
12119 2006-11-25  Jordi Mas i Hernandez <jordimash@gmail.com>
12121         * PrintDialog.cs:
12122         - Text label for where 
12123         - Text label comment was not shown
12125 2006-11-23  Everaldo Canuto  <everaldo@simios.org>
12127         * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
12129 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
12131         * InternalWindowManager.cs: 
12132         - Handle WM_PARENTNOTIFY to activate the form
12133         if any child control is clicked.
12134         - The form is only sizable if not minimized.
12136         * MdiWindowManager.cs:
12137         - Save the IconicBounds if the form is moved.
12138         - Rework SetWindowState, now the window bounds 
12139         are stored only if the old window state is Normal.
12140         
12141         * MdiClient.cs:
12142         - In SetWindowStates store the old window state if 
12143         the window is maximized and restore window state if
12144         the window looses focus.
12145         - Don't handle any scrollbar value changes if 
12146         initializing the scroll bars. Fixes #79771.
12147         - Reworked ArrangeIconicWindows. Current algorithm
12148         tests bounds agains all other minimized windows, if
12149         any intersections create new bounds (going left to 
12150         right, bottom to top) and then test again. When 
12151         successful the bounds are saved and never computed
12152         again. Fixes #79774.
12154 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
12156         * InternalWindowManager.cs: Added HandleTitleBarUp.
12158 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
12160         * NumericUpDown.cs: In .NET 1.1, user entered text is still
12161         hexadecimal in ParseUserEdit.
12163         
12164 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
12166         * MdiWindowManager.cs: 
12167         - Handle a click on the form's icon to show the 
12168         system menu (when maximized). Fixes #79775.
12169         - Change the existing click handler for the form's
12170         icon when not maximized to show on MouseUp.
12171         Fixes #79776.
12173         * Form.cs: In OnResize only layout the mdi child's
12174         parent if it actually has a parent. Might not if
12175         the window is closing.
12178 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
12180         * MdiClient.cs: Ignore active MDI client for text of parent, if
12181         child has no text set.
12183 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
12185         * ToolBar.cs: Fixed ToString to match MS.
12187 2006-11-22  Andreia Gaita  <avidigal@novell.com>
12189         * NumericUpDown: 
12190         - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to 
12191         update inner values on set. Fixes #79966.
12192         - Override OnLostFocus to update value on NET 2. Fixes #79950.
12193         - Fix hexadecimal parsing.
12194         
12195         * UpDownBase: Override OnGotFocus and OnLostFocus to notify 
12196         parent. Fixes #79957
12198 2006-11-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12200         * Control.cs: After calling SetWindowsPos in SetBoundsCore 
12201         the actual size has to be queried, since if height /
12202         width is negative Win32 changes it to 0. 
12203         Fixes #79999 on Windows.
12204         
12205         * XplatUIX11.cs: Set height / width to 0 if negative
12206         in SetWindowPos. Fixes #79999 on Linux.
12207         
12208 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
12210         * ThemeWin32Classic.cs: Fix text redenring when button is
12211         pressed.
12213 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
12215         * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
12216         and later navigate by mouse. Fixes #79528.
12218 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
12220         * ToolBar.cs: Set default value for TabStop to false in
12221         constructor, it fixes remaining behavior of bug #79863.
12223 2006-11-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12225         * MdiWindowManager.cs:
12226         * InternalWindowManager.cs:
12227         - Moved a few methods specific to Mdi from 
12228         InternalWindowManager to MdiWindowManager.
12229         Fixes #79996.
12230         
12231 2006-11-21  Chris Toshok  <toshok@ximian.com>
12233         * XplatUIOSX.cs: stub out InvalidateNC.
12235         * XplatUIWin32.cs: implement InvalidateNC using the call I found
12236         at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
12238         * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
12240         * XplatUIDriver.cs: add InvalidateNC abstract method.
12242         * XplatUI.cs: add InvalidateNC.
12244 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
12246         * ToolBar.cs: Invalidate complete button area when pressed status 
12247         was changed.
12248         * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
12249         * ThemeWin32Classic.cs: Increase vertical and horizontal position 
12250         by 1 when button is pressed.
12252 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
12254         * ToolButton.cs: Invalidate middle of DropDown button when
12255         ToolBar theres DropDownArrows.
12256         * ThemeWin32Classic.cs: Change position of DropDown arrow and
12257         fix DropDown drawing operations.
12259 2006-11-20  Chris Toshok  <toshok@ximian.com>
12261         * NativeWindow.cs: fix the formatting of functions ('{' on the
12262         following line), and enable the thread exception dialog.
12264         * Application.cs: remove the duplicate exception catching from
12265         here.
12267 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
12269         * Toolbar.cs: Triggers button click event when click on icon
12270         of dropdown ToolBarButton. Fixes #79912.
12271         
12272 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12274         * Theme.cs:
12275         * ThemeWin32Classic.cs:
12276         - Added a property WindowBorderFont to enable themeing
12277           of mdi child windows' Text.
12278           
12279 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12281         * InternalWindowManager.cs:
12282         * Form.cs:
12283         * MdiClient.cs:
12284         * MdiWindowManager.cs: 
12285         - If mdi child is maximized, set mdi parent's
12286           text to "Parent - [Child]". Fixes #79770.
12287         - If there is any maximized mdi child windows, only the active 
12288           window (and any new windows) is maximized, the rest are normal.
12289         - On a WindowState change only save mdi child's window bounds 
12290           if the old window state was normal. Fixes #79774.
12291         - The scroll bars are now calculated on hopefully all
12292           necessary events. Fixed #79771 / #79844->6 / #79906.
12293         - MdiClient.SizeScrollBars() now takes into account docked 
12294           controls in the parent when calculating available space.
12295         - InternalWindowManager now always repaints the entire title
12296           area. Fixes #79844->1/4/5.
12297         - Added RequestNCRecalc on mdi child windowstate changes.
12298           Fixes #79772.
12300 2006-11-20  Mike Kestner  <mkestner@novell.com>
12302         * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
12303         in the MouseUp handler of the listbox and move the return handling
12304         code to FireMouseUp to avoid scrolling on ups.  Fixes #79952.
12306 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
12308         * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855. 
12310 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
12312         * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
12313           working in 1.2.x anymore. So, updated.
12315 2006-11-19  Gert Driesen  <drieseng@users.sourceforge.net>
12317         * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
12318         NumberGroupSeparator of current culture instead of assuming en-US.
12319         Fixed bug #79967.
12321 2006-11-17  Mike Kestner  <mkestner@novell.com>
12323         * Control.cs: Add the concept of implicit bounds setting so that
12324         dock/undock round trips preserve explicitly set size/locations.
12325         Fixes #79313.
12327 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
12329         * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
12330           can't handle those filters. (Fixes bug #79961)
12332 2006-11-17  Chris Toshok  <toshok@ximian.com>
12334         [ fixes the exit/crashes associated with #79835.  it's clearly
12335         suboptimal though, we need to figure out a better way to solve
12336         this. ]
12337         
12338         * PrintPreviewControl.cs: deal with the new invalid printer
12339         exceptions.
12341         * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
12342         and return false (so CommonDialog.ShowDialog doesn't actually show
12343         the form.)
12345         * PrintDialog.cs: enable/disable the Ok button depending on
12346         whether or not the printer is valid.
12348         * CommonDialog.cs (ShowDialog): only actually show the form if
12349         RunDialog returns true.
12351 2006-11-17  Jackson Harper  <jackson@ximian.com>
12353         * TextControl.cs: When soft splitting a line, mark it as a soft
12354         split line. Also carry over the current line break to the next
12355         line.
12357 2006-11-17  Chris Toshok  <toshok@ximian.com>
12359         * XplatUIX11.cs: when scrolling a window with an invalid area, we
12360         only want to shift the part of the invalid area that overlaps the
12361         area we're scrolling.  we also don't want to clear the invalid
12362         area unless the invalid area was entirely contained within the
12363         scrolling area.
12365 2006-11-16  Chris Toshok  <toshok@ximian.com>
12367         * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
12368         also make sure to free the memory returned by XGetWindowProperty
12369         in GetText().
12371         * X11Structs.cs: remove the TimerEvent stuff, it's unused.
12373 2006-11-16  Chris Toshok  <toshok@ximian.com>
12375         * XplatUI.cs: add a new super secret way to get at the totally
12376         unsupported X11 backend.
12378 2006-11-16  Gert Driesen  <drieseng@users.sourceforge.net>
12380         * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
12382 2006-11-16  Jackson Harper  <jackson@ximian.com>
12384         * TreeView.cs: Allow more explicit setting of top node position
12385         for scrollbars. Slower algo, but more accurate.
12386         - CollapseAll should maintain the current top node.
12387         * TextBoxBase.cs: When positioning the caret, use the line, pos
12388         method, since the x, y method does not grab the correct tag, and
12389         the caret height never gets set correctly. (Maybe I should just do
12390         away with the caret having its own height, and always use the
12391         carets current tag for height).
12393 2006-11-16  Jonathan Pobst  <monkey@jpobst.com
12395         [Fixes 79778, 79923]
12397         * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
12398         Parent to the FosterParent instead.
12400 2006-11-16  Jackson Harper  <jackson@ximian.com>
12402         * TreeView.cs: Need to recalc the topnode when we expand or
12403         collapse. The scrolling methods can't handle this on their own,
12404         since they use differences between the last scroll position, and
12405         those difference get completely messed up since we are expanding
12406         nodes.  This problem should probably be fixed in the scrolling
12407         methods, so they can figure out exactly where they are, but this
12408         will slow things down a little.
12409         * ThemeWin32Classic.cs: Special case for groupboxes with empty
12410         strings, makes nunit-gui look a lot nicer.
12412 2006-11-16  Chris Toshok  <toshok@ximian.com>
12414         * XplatUIX11.cs: nasty, nasty, nasty changes required because of
12415         the broken multithreaded event handling we have in here.  File
12416         this entry under "Why we should move to the new X11 backend".
12418         Any thread can make it into UpdateMessageQueue, which gets events
12419         from the X socket - some of which could belong to hwnds being
12420         managed by a different thread.  We can also have multiple threads
12421         in UpdateMessageQueue at the same time, with each one reading from
12422         the X socket.  This leads to many problems, with the following
12423         solutions:
12425         We can't use hwnd.Queue.Enqueue anywhere in here and must use
12426         EnqueueLocked.
12428         The MotionNotify compression we do can't work across threads
12429         (without locking the entire queue, perhaps) since we call
12430         hwnd.Queue.Peek, so we just punt and don't compress motion events
12431         unless the owning thread is the one which got the X event.
12433         ConfigureNotify is another fun one, since it modifies the hwnd's
12434         bounds and then enqueues the event.  We add a lock to Hwnd which
12435         is held when setting configure_pending to true (and enqueuing the
12436         event).
12438         There is a race wrt the wake socket.  we need to make sure that
12439         only 1 thread is waiting on that socket, or else a thread could
12440         sleep waiting for data that never comes.  It's difficult (but not
12441         impossible) to make happen, because it seems to require something
12442         like the following:
12444             1. Thread 1 polls on wake_receive
12445         
12446             2. poll returns saying there's data to be read on
12447                wake_receive.
12448         
12449             3. Thread 2 polls on wake_receive and immediately returns
12450                saying there's data to be read.
12452             4. Thread 2 reads the wakeup byte from wake_receive
12454             5. Thread 1 attempts to read the wakeup byte from
12455                wake_receive.
12457             6. Thread 2 exits (due to a form closing, perhaps).
12459             7. Thread 1 blocks forever.
12460         
12461         Fun, eh?
12463         Fixing the Expose handling isn't done yet, and the races inherent
12464         in that piece of code are responsible for the drawing mistakes you
12465         see when generating expose events in a MT app (like NPlot).  This
12466         one is the likely to be the hardest to bandaid, and it doesn't
12467         appear to cause anything but drawing problems.  The other issues
12468         caused apps to exit or hang.
12470         * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
12471         called from a different thread than the one that should be calling
12472         these functions.
12474         * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
12476 2006-11-15  Chris Toshok  <toshok@ximian.com>
12478         * Application.cs: null out the context's MainForm when we exit
12479         RunLoop.  Fixes a newly checked in unit test as well as the last
12480         ODE from bug #79933.
12482 2006-11-15  Chris Toshok  <toshok@ximian.com>
12484         * Form.cs (set_Owner): allow a null value so we can clear the
12485         form's owner.
12486         (Dispose): set all our owned_form's Owner properties to null, and
12487         clear the owned_forms collection.
12488         (WM_CLOSE): clean up this a little bit.. still not right though.
12490         * ApplicationContext.cs: OnMainFormClosed should only call
12491         ExitThreadCore if the main form isn't recreating.  Fixes unit
12492         test.
12494 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
12496         [Fixes 78346]
12498         * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
12500 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
12502         [Fixes 79433]
12504         * Hwnd.cs: Add a flag to show a window, but not activate it, to 
12505         keep popup window types from stealing focus from the main form
12506         on Windows.
12508         * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
12510         * MenuAPI.cs: Set above flag to true.
12512 2006-11-15  Chris Toshok  <toshok@ximian.com>
12514         * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
12515         the button being released is not in wParam.
12517 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
12519         * Form.cs: Add the released button to MouseEventArgs.Button
12520         for the OnMouseUp call to the MenuTracker.  Fixes menu clicking
12521         on Win32.
12523 2006-11-15  Chris Toshok  <toshok@ximian.com>
12525         * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
12526         GetText().  untested because it's unused in our implementation.
12527         Control.Text always caches the text, even if
12528         ControlStyles.CacheText is not set.
12530         fixes bug #79939.
12532 2006-11-15  Chris Toshok  <toshok@ximian.com>
12534         [ fixes #79933 ]
12535         
12536         * Form.cs: in Close() don't do anything after we send the WM_CLOSE
12537         message.  no hiding, no disposing.
12539         in the WM_CLOSE handler, hide the form if it's modal.
12541 2006-11-15  Chris Toshok  <toshok@ximian.com>
12543         * XplatUIX11.cs: use AddExpose instead of sending a message.
12544         fixes textbox border drawing.
12546 2006-11-15  Chris Toshok  <toshok@ximian.com>
12548         * PropertyGridView.cs: keep from crashing on mouse move/down when
12549         the property grid is empty.
12551 2006-11-14  Jackson Harper  <jackson@ximian.com>
12553         * TextControl.cs: Make PageUp and PageDown more like the MS
12554         versions.
12555         * TextBoxBase.cs: When we set the text property position the
12556         cursor at the beginning of the document.
12558 2006-11-14  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12560         * Form.cs: if a mdi child's WindowState has changed
12561         before it's creation, it would display wrong control
12562         buttons.
12563         
12564 2006-11-14  Alexander Olk  <alex.olk@googlemail.com>
12566         * TreeView.cs: De-uglify TreeView checkbox checkmarks.
12567           (Fixes bug #79927)
12569 2006-11-14  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12571         * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that 
12572         the window gets to paint its borders even if the window is
12573         getting smaller.
12574         
12575         * Form.cs: on a WM_NCPAINT invalidate the entire menu, 
12576         otherwise the old control buttons would still be painted 
12577         if the window gets bigger.
12578         
12579         * PaintEventArgs.cs: add an internal method so that the clip 
12580         rectangle can be changed.
12581         
12582 2006-11-13  Chris Toshok  <toshok@ximian.com>
12584         [ fixes bug #79745 ]
12585         
12586         * NotifyIcon.cs: lots of cleanup.
12588         * X11Structs.cs: add an enum for XEMBED messages.
12590         * XplatUIX11.cs: reindent one of the giant switch statements, it
12591         was taking up an additional tab stop, and this file is already way
12592         too wide for my laptop's screen.
12594         Also, add handling for the XEmbed EMBEDDED_NOTIFY message.  When
12595         we get it, resize the hwnd to the WMNormalHints max_width/height.
12597 2006-11-13  Jackson Harper  <jackson@ximian.com>
12599         * TextBoxBase.cs: Compute the value changes for the mouse wheel
12600         teh simple way.
12602 2006-11-13  Chris Toshok  <toshok@ximian.com>
12604         * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
12605         #79898.  force a reference to the Region to stick around so the
12606         unmanaged object isn't collected (rendering our handle in the MSG
12607         stale).
12609 2006-11-13  Chris Toshok  <toshok@ximian.com>
12611         * XplatUIX11.cs: fix #79917 for window managers which support
12613         using XStoreName on the raw utf8, and we need to convert to
12614         COMPOUND_TEXT if it's non-latin1.
12616 2006-11-13  Chris Toshok  <toshok@ximian.com>
12618         * Form.cs (set_DialogResult): we need to set closing to false if
12619         we're setting our result to None.  fixes bug #79908.
12621 2006-11-13  Jackson Harper  <jackson@ximian.com>
12623         * TextControl.cs: When formatting text, compute the adjusted tag
12624         lengths correctly, using FindTag for the end tag instead of trying
12625         to figure it out outselves.
12626         * TreeNode.cs: Use ActualItemHeight, which is the actual height of
12627         the item, ItemHeight doesn't work, because trees with large
12628         imagelists use those for their height
12629         * TreeView.cs: ActualItemHeight factors in the image height
12630         - compute left edge of checkboxes correctly
12631         - when expanding/collapsing move the bottom down one pixel, so we
12632         aren't moving part of the node
12634 2006-11-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12636         * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
12637         stack in PaintEventStart so that it won't get disposed by the gc
12638         before reaching PaintEventEnd.
12640 2006-11-13  Jackson Harper  <jackson@ximian.com>
12642         * TextBoxBase.cs: Don't select the word if we are on a line with
12643         no text.
12644         - We don't need to position the caret on mouse up, since the mouse
12645         move handler should be doing this
12646         - When double clicking a blank line, the caret is advanced to the
12647         next line.
12649 2006-11-13  Gert Driesen  <drieseng@users.sourceforge.net>
12651         * TreeNodeCollection.cs: Avoid duplicating indexer code.
12653 2006-11-12  Gert Driesen  <drieseng@users.sourceforge.net>
12655         * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
12656         Fixes part of bug #79910.
12658 2006-11-11  Alexander Olk  <alex.olk@googlemail.com>
12660         * ColorDialog.cs: Fix a NRE when adding a color to custom colors
12661           (bug #79903). Some minor string updates to match ms.
12663 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
12665         * FileDialog.cs: Don't add an extension if the filename
12666           already ends with that extension.
12668 2006-11-10  Jackson Harper  <jackson@ximian.com>
12670         * TreeView.cs: Use the currently highlighted node for the
12671         BeforeSelect event.
12672         * TextBoxBase.cs: There is no need to expand selection on
12673         MouseMove.
12674         - CanUndo means 'is there any undo operations', not 'is undo
12675         allowed on this textcontrol. Fixed ClearUndo unit test.
12677 2006-11-10  Andreia Gaita  <shana.ufie@gmail.com>
12679         * Button.cs: only perform click when button is Selectable (so as 
12680         not to activate default buttons when they're disabled)
12681         
12682         * Control.cs: Rewrite of the SelectNextControl and related 
12683         methods. HandleClick now selects next control if the current one
12684         is being disabled.
12685         
12686         * Form.cs: OnActivated selects next active control only if Load 
12687         has already occurred. If Load hasn't run, there's no point in 
12688         selecting here, Load might change the state of controls.
12689         
12690         * FocusTest.cs: Tests marked as working again for these fixes
12692 2006-11-10  Chris Toshok  <toshok@ximian.com>
12694         * XplatUIX11.cs: a couple of fixes.
12696         - use XInternAtoms with almost all the atoms we need to register,
12697         instead of many, many calls to XInternAtom.  should help a bit on
12698         startup time, at the expense of making the code look a little
12699         worse.
12701         - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
12702         isn't reparented (which seems to be a clue that we're running fon
12703         compiz) and they have an Owner form.  This fixes the tool windows
12704         in paint.net when running under compiz.
12706         - when setting the opacity of a window, support both the case
12707         where the window has been reparented and also when it hasn't been.
12708         Since compiz/beryl doesn't seem to reparent windows, and these are
12709         the only window managers which support translucency, I'm not sure
12710         why we need the hwnd.reparented case at all.. but leave it in.
12711         now we get translucent windows in paint.net under compiz/beryl.
12713 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
12715         * FileDialog.cs: Always return the value for FilterIndex that
12716           was set. Internally convert it to values that make sense.
12718 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
12719         
12720         * ThemeWin32Classic.cs: Fix drowp down arrow borders.
12722 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
12724         * Toolbar.cs: Change default value of DropDownArrows to true, the 
12725         signature still using false to make it compatible with MS but the 
12726         initial value is true. Fixes #79855.
12728 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
12730         * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
12731           only available on Linux.
12733 2006-11-09  Everaldo Canuto  <everaldo@simios.org>
12735         * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
12736         reduce number of calls to redraw method during toolbar creation.
12738 2006-11-09  Mike Kestner  <mkestner@novell.com>
12740         * ListView.cs : raise SelectedIndexChanged when an item is selected
12741         programmatically via the Item.Selected property.  Gert's nice 
12742         ListViewSelectedIndexChanged test fixture now runs clean.
12744 2006-11-09  Mike Kestner  <mkestner@novell.com>
12746         * ListView.cs : raise SelectedIndexChanged when a selected item is
12747         removed from the item collection using Remove or RemoveAt.
12749 2006-11-09  Mike Kestner  <mkestner@novell.com>
12751         * ListView.cs : raise SelectedIndexChanged once per selected item
12752         for compat with MS.  Fixes #79849+.
12754 2006-11-09  Chris Toshok  <toshok@ximian.com>
12756         * TabControl.cs: initialize row_count to 0, and set it to 1 when
12757         we need to (if we have any tab pages).  Fixes unit test.
12759 2006-11-09  Chris Toshok  <toshok@ximian.com>
12761         * Label.cs (CalcPreferredWidth): if Text == "", our preferred
12762         width is 0, not 3.  Fixes a unit test.
12764 2006-11-09  Mike Kestner  <mkestner@novell.com>
12766         * ListView.cs : use Implicit scrollbars so that focus isn't 
12767         stolen from the listview when they are clicked. Fixes #79850.
12769 2006-11-09  Chris Toshok  <toshok@ximian.com>
12771         * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
12772         have a root item.  Fixes #79879.
12774 2006-11-09  Alexander Olk  <alex.olk@googlemail.com>
12776         * FileDialog.cs:
12777           - Fix ToString ()
12778           - An ArgumentException is now thrown if a wrong filter
12779             is applied (matches ms). The previous filter doesn't change
12780             anymore if an exception is thrown.
12781           - Changing the FileName property also affects FileNames
12782         * ColorDialog.cs: The length of the CustomColors array is always
12783           16. It doesn't matter if we use a smaller array or null to update
12784           or change the custom colors property.
12785         * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
12786           for RootFolder if we get a undefined value.
12788 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12790         * StatusBarPanel.cs: 
12791         - Width is set to MinWidth if Width is smaller than
12792         MinWidth. Fixes #79842.
12793         - MinWidth now always overrides Width (MSDN says MinWidth
12794         is set to Width when AutoSize = None, but they do not 
12795         behave like that).
12796         - Style has now the the correct default value.
12797         
12798 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12800         * TrackBar.cs: 
12801         - The control is completely invalidated on 
12802         Got/LostFocus to draw the focus rectangle correctly.
12803         - When AutoSize then height is always 45 (width for 
12804         vertical controls).
12805         
12806         * ThemeWin32Classic.cs: The TrackBar thumb is now centered
12807         on the mouse when moved and it doesn't move when grabbed
12808         until the mouse moves as well. Also fixed some wrong 
12809         calculations when clicking on the thumb (control thought
12810         click was outside of thumb and didn't grab it).
12811         Fixes some of the issues in #79718.
12813 2006-11-08  Everaldo Canuto  <everaldo@simios.org>
12815         * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
12817 2006-11-08  Chris Toshok  <toshok@ximian.com>
12819         * PropertyGridView.cs: only call ToggleValue if the item is not
12820         readonly.
12822 2006-11-08  Jackson Harper  <jackson@ximian.com>
12824         * TextBoxBase.cs: The RichTextBox and textbox have very different
12825         word selection methods.  Implement the textbox's simple word
12826         selection here, and let the RichTextBox override and provide it's
12827         own.
12828         - Don't do extra selection on mouseup
12829         * RichTextBox.cs: Use the documents word selection algorithm, I
12830         think ideally, this function will be pulled into the
12831         RichTextBox.cs code someday.
12833 2006-11-08  Chris Toshok  <toshok@ximian.com>
12835         * RootGridEntry.cs: new class to represent GridItemType.Root.
12837         * CategoryGridEntry.cs: reformat, and add boilerplate.
12838         
12839         * GridEntry.cs: remove the UIParent stuff - turns out .Parent
12840         returns the UI parent anyway, and we need special handling to
12841         implement the GetTarget method in the face of it.  Also, implement
12842         Select().
12844         * PropertyGrid.cs, PropertyGridView.cs: a number of fixes.  create
12845         a root grid item, and use that instead of PropertyGrid.grid_items.
12846         Also, make use of TypeConverters (and add limitted support for
12847         ICustomTypeDescriptors) when initially populating the grid.
12848         Arrays now show up more or less properly.
12850 2006-11-08  Chris Toshok  <toshok@ximian.com>
12852         * Application.cs: set the modal dialog to non modal after we close
12853         it.  Fixes bug #79866.
12855 2006-11-08  Jackson Harper  <jackson@ximian.com>
12857         * TextControl.cs: When combining lines carry over the line end
12858         style from the end line.
12859         - Invalidate the selected area when setting it, if it is visible.
12860         * TextBoxBase.cs: Only rich text box can do full line selects.
12861         - Make sure to set the cursor position when there is a click,
12862         otherwise two clicks in separate areas could cause a large chunk
12863         to be selected.
12865 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
12867         * Toolbar.cs: Release flat button borders when Toolbar lost focus. 
12868         Fixes #79863.
12870 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
12872         * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
12873         time. Remove tooltips when ToolButton click events.  Fixes #79856.
12875 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
12877         * MenuAPI.cs: Ignore right click for menu actions and fixes
12878         menu border when clicked.  Fixes #79846.
12880 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
12882         * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
12883         MouseState after create wParam for message, this fixes mouse button 
12884         equal none in mouse up events.
12885         
12886 2006-11-07  Andreia Gaita  <shana.ufie@gmail.com>
12888         * Control.cs : Focus() now calls Select to set the Container's
12889         Active Control and to give it focus. To avoid infinite recursion
12890         (because ActiveControl also calls Focus at one point), a check 
12891         is made in Focus with the help of a new internal variable
12892         is_focusing.
12894 2006-11-07  Mike Kestner  <mkestner@novell.com>
12896         * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
12897         if there's a selection.  Fixes #79849.
12899 2006-11-07  Gert Driesen  <drieseng@users.sourceforge.net>
12901         * PropertyGrid.cs: Avoid fixed height of help description label.
12902         Fixes part of bug #79829.
12904 2006-11-07  Chris Toshok  <toshok@ximian.com>
12906         * XplatUIX11.cs: fix #79790 again, by using the
12907         _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
12909 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
12911         * ToolBar.cs: Fix left click checking.
12913 2006-11-07  Chris Toshok  <toshok@ximian.com>
12915         * ProgressBar.cs: fix a typo in ToString().  fixes a unit test.
12917 2006-11-07  Chris Toshok  <toshok@ximian.com>
12919         * RelatedPropertyManager.cs: set property_name in our ctor.  fixes
12920         PropertyManager unit tests.
12922         * PropertyManager.cs: make property_name internal.
12924 2006-11-07  Chris Toshok  <toshok@ximian.com>
12926         * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
12927         pass a unit test.  Also, don't set image_index to anything in
12928         response to setting the ImageList property.
12930 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
12932         * ToolBar.cs: Ignore click events when mouse button is not a
12933         left button, only accepts other button for dropdown menus.  
12934         Fixes #79854.
12936 2006-11-07  Chris Toshok  <toshok@ximian.com>
12938         * DataGrid.cs: make the back and parent row buttons a little less
12939         ugly.
12941 2006-11-07  Jackson Harper  <jackson@ximian.com>
12943         * TextBoxBase.cs: When converting to Text don't put line breaks in
12944         for soft line breaks.
12945         * TextControl.cs: There is an initial "fake" line in the document,
12946         this is now a soft break line, so that an extra line feed doesn't
12947         get added to the end of documents.
12949 2006-11-07  Chris Toshok  <toshok@ximian.com>
12951         [ fix bug #79778 ]
12952         
12953         * CurrencyManager.cs: if the list is readonly, don't bother
12954         checking if IBindingList.AllowNew is true.
12956         * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
12957         for non-DataRowView datasources..  or rather, make it not crash.
12958         (DataGridPaintRelationRow): make sure we limit the row painting to
12959         the area not covered by the row header, and make our cell width at
12960         least large enough to cover the relation area.  This allows grids
12961         that have relations but no rows to render correctly.
12962         (DataGridPaintRowContents): same type of changes here.
12963         (SetDataSource): move back to always calling
12964         CalcAreasAndInvalidate.  this fixes a crash/drawing problem when
12965         navigating back through relations.
12966         (HitTest): handle the case where we have no cells but have
12967         relations.  Right now we generate a hit in cell 0 of whatever the
12968         row is, not sure if this is strictly correct, but it works for our
12969         purposes.
12970         
12971         * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
12972         bother doing anything.
12974 2006-11-07  Jonathan Pobst  <monkey@jpobst.com>
12976         * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
12977         early version of StatusStrip.  Not responsible for eaten
12978         application or firstborn children.
12980 2006-11-06  Chris Toshok  <toshok@ximian.com>
12982         * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
12983         call GetTabRect with a -1 index.  Fixes #79847.
12985 2006-11-06  Jackson Harper  <jackson@ximian.com>
12987         * TreeNodeCollection.cs: Update scrollbars after clearing.
12989 2006-11-06  Chris Toshok  <toshok@ximian.com>
12991         * NumericUpDown.cs: fix the ToString method for some unit test
12992         love.
12994 2006-11-06  Chris Toshok  <toshok@ximian.com>
12996         * PropertyGrid.cs:
12997         - set the initial SelectedGridItem if we can.
12999         - Exclude non-mergable properties only if we're merging > 1
13000         object.  Merging 1 object isn't really merging, obviously.
13002         - Handle PropertySort.NoSort just like Alphabetical, which is
13003         wrong of course, but at least gets things on the screen.
13004         
13005         * PropertyGridView.cs:
13006         - Add method "FindFirstItem" which finds the first property grid
13007         item, so we can select it by default.
13009         - make use of GridEntry.CanResetValue.
13011         - Don't call RedrawBelowItemOnExpansion here anymore, the
13012         individual GridEntry's will do that.
13014         - Remove the ITypeDescriptorContextImpl internal class.
13015         
13016         * GridEntry.cs:
13017         - this class needs to implement ITypeDescriptorContext, as it's
13018         what MS's PropertyDescriptorGridEntry does, which means we can
13019         remove the ITypeDescriptorContextImpl internal class from
13020         PropertyGrid.cs.  This fixes the crashing portion of bug #79829.
13022         - keep a reference to our PropertyGridView, and move the call to
13023         RedrawBelowItemOnExpansion here from PGV.  This means
13024         programmaticly setting Expanded actually does something visible.
13026         - add a CanResetValue() function which takes into account our
13027         possibly multiple "selected_objects" in the merged case.  Shifting
13028         PropertyGridView to use this method fixes another unreported
13029         crasher found running the test for #79829.
13031         - when Top or Bounds is updated, make sure the PropertyGridTextBox
13032         is updated to reflect this.
13034         * CategoryGridEntry.cs: the ctor takes the PGV now.
13035         
13036 2006-11-06  Jackson Harper  <jackson@ximian.com>
13038         * TextControl.cs: These are 1 based.
13039         * TextBoxBase.cs: When setting the selected text, don't change the
13040         selected text tags, this is done by ReplaceText, just position the
13041         cursor at the end of the new text.
13043 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
13045         * ListView.cs: Allow label edit only when, when LabelEdit is
13046           set to true.
13048 2006-11-06  Jackson Harper  <jackson@ximian.com>
13050         * TextControl.cs: If a suitable wrapping position isn't found,
13051         just wrap right in the middle of a word.
13053 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
13055         * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
13056           bug #79820.
13058 2006-11-06  Jackson Harper  <jackson@ximian.com>
13060         * TreeView.cs: Can't use the VisibleCount property when setting
13061         scrollbar heights, because this doesn't take into account whether
13062         or not the horz scrollbar just came visible.
13064 2006-11-05  Everaldo Canuto  <everaldo@simios.org>
13066         * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
13067         activated.  Fixes #79369, #79832.
13069 2006-11-05  Alexander Olk  <alex.olk@googlemail.com>
13071         * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
13072           had to remove support for links that point to a directory. FileInfo
13073           returns no usefull information (means, the directory they point to)
13074           for such links. Replaced some empty string ("") with String.Empty.
13076 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
13078         * TreeNodeCollection.cs: To match MS, in 1.0 profile throw 
13079         NullReferenceException when attempting to remove node that is not in
13080         collection. Throw NullReferenceException when null is passed to 
13081         Remove. Allow first element of the collection to be removed. Fixes
13082         bug #79831.  In GetEnumerator ().Current return null if positioned 
13083         before the first element of the collection. In GetEnumerator ().Reset,
13084         position before first element of the collection.
13086 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
13088         * PropertyGrid.cs: To match MS, remove default title and description
13089         for panel. Fixed tooltips for Categorized and Alphabetic toolbar
13090         buttons.
13092 2006-11-04  Chris Toshok  <toshok@ximian.com>
13094         * Theme.cs: add a Clamp method, just for kicks.
13096         * ThemeWin32Classic.cs: clamp all color components to [0..255].
13098 2006-11-04  Chris Toshok  <toshok@ximian.com>
13100         * Form.cs: if the form isn't visible, Close() does nothing.
13102 2006-11-03  Chris Toshok  <toshok@ximian.com>
13104         * Form.cs (Close): if the form is modal, don't Dispose of it, only
13105         Hide it.
13106         (WndProc): don't Dispose after handling the WM_CLOSE message.
13108         * Application.cs (RunLoop): toplevels is a list of Forms, so treat
13109         them as such, instead of using casts from Control to Form.  Also,
13110         don't Dispose of the modal dialog when we fall out of the loop -
13111         Close() it instead.
13113         fixes bug #79813.
13115 2006-11-03  Chris Toshok  <toshok@ximian.com>
13117         * Control.cs (Dispose): only go through the dispose thing if we're
13118         @disposing, and we haven't already been disposed.  Fixes bug
13119         #79814.
13121         * Form.cs: no reason to call "base.Dispose()" here instead of
13122         "Dispose()".
13124 2006-11-03  Mike Kestner  <mkestner@novell.com>
13126         * ComboBox.cs : use ToString instead of casts in AddItem for
13127         sorting functionality.  Fixes #79812.
13129 2006-11-03  Chris Toshok  <toshok@ximian.com>
13131         * Application.cs: pave the way for actually using the thread
13132         exception dialog.  it's ifdefed out at the moment.
13134 2006-11-03  Chris Toshok  <toshok@ximian.com>
13136         * ThreadExceptionDialog.cs: until we get a better layout, actually
13137         hide the details textbox and label when we shouldn't see them.
13139 2006-11-03  Jackson Harper  <jackson@ximian.com>
13141         * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
13142         multiline textboxes anymore.  This method also determines the
13143         width/height of a textboxes canvas area.
13144         - Sorta a revert of the last patch.  For multiline just position
13145         the controls, then bail.  This way the scrollbar width won't be
13146         altered.
13148 2006-11-03  Everaldo Canuto  <everaldo@simios.org>
13150         * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
13151         it dont need.  Fixes #79537.
13153 2006-11-02  Jackson Harper  <jackson@ximian.com>
13155         * X11Dnd.cs: We always allow copy, since XDND implies Copy.  Also
13156         send the status after firing the DndOver event.
13158 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13160         * TrackBar.cs: Now orientation only switches height / width if
13161         the control's handle is created (Win32 does it like this). Also 
13162         fixed a typo in ToString() for a test to pass, changed the 
13163         exception thrown in set_LargeChange and set_SmallChange to 
13164         match Win32 behaviour, and added TrackBar tests to the unit 
13165         tests.
13167 2006-11-02  Chris Toshok  <toshok@ximian.com>
13169         * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
13170         not _NET_WM_STATE_NO_TASKBAR.
13172 2006-11-02  Jackson Harper  <jackson@ximian.com>
13174         * TextControl.cs: Increment count by one, since in the update view
13175         count - 1 is used.
13177 2006-11-02  Jackson Harper  <jackson@ximian.com>
13179         * TextBoxBase.cs: Use client rectangle not bounds for checking if
13180         the mouse is in the client rectangle (duh).
13182 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13183         
13184         * TrackBar.cs: Fixed trackbar jumping around when clicking
13185         on it - the trackbar was not detecting correctly at which
13186         side of the thumb the click was done. (fixes #79718)
13188 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
13190         * ListBox.cs: scroll visible area when change SelectedIndex to
13191         a non visible area.  Fixes #79481.
13193 2006-11-01  Jackson Harper  <jackson@ximian.com>
13195         * TextControl.cs: When replacing the selection move the selection
13196         start/end/anchor to the end of the new text.
13198 2006-11-01  Jackson Harper  <jackson@ximian.com>
13200         * XplatUIWin32.cs: When setting the parent change the controls
13201         visibility to it's visibility flag, not to it's old parents
13202         visibility (.Visible walks the parent chain).
13204 2006-11-01  Chris Toshok  <toshok@ximian.com>
13206         * XplatUIX11.cs: revert the #79790 fix, as the simple.
13207         XSetTransientForHint fix breaks paint .net's tool windows.  more
13208         work needed for that one.
13210 2006-11-01  Chris Toshok  <toshok@ximian.com>
13212         * ScrollBar.cs: throw ArgumentException instead of Exception in
13213         LargeChange/SmallChange setters.  fixes unit tests.
13215 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
13217         * ContainerControl.cs: reverted rev.67183 (which was itself
13218         a reversion of rev.66853... eh).
13219         
13220         * Control.cs: Fixes Reflector hang by changing Focus() call
13221         to what it was before rev.66643 (calling Select() here sets 
13222         ActiveControl, which in some situations calls back Focus and 
13223         eventually does a stack overflow). Temp fix.    
13224         Changes to GetNextControl() to not look for children to select when
13225         parent cannot be selectable (so it looks for siblings instead)  
13226         
13227 2006-10-31  Mike Kestner  <mkestner@novell.com>
13229         * CheckedListBox.cs : off by one error in returned index from
13230         ObjectCollection.Add.  Fixes #79758.
13232 2006-10-31  Chris Toshok  <toshok@ximian.com>
13234         * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
13235         calls for the textbox/spinner, to keep from recursing to the point
13236         where we crash.  Fixes #79760.
13238 2006-10-31  Chris Toshok  <toshok@ximian.com>
13240         * ListControl.cs (set_SelectedValue): don't throw exceptions on
13241         null/"" value, just return.  matches ms's behavior and fixes some
13242         failing tests.
13244 2006-10-31  Chris Toshok  <toshok@ximian.com>
13246         * Control.cs (set_Capture): make a logic a little easier to
13247         follow.
13249         * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
13250         if it's being destroyed.  A necessary fix surely, but a bandaid
13251         also, to fix the stuck capture problem in bug #78413.
13253 2006-10-31  Chris Toshok  <toshok@ximian.com>
13255         * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
13256         convention of clearing hwnd.ClientRect when we set the
13257         width/height (so it'll be recalculated by Hwnd).
13259 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
13261         * ContainerControl.cs: reversed Contains check from
13262         ActiveControl due to hanging problems. This fix
13263         partly regresses #79667 (button does not have
13264         initial focus), so this might be a symptom for 
13265         a larger parenting problem (set_ActiveControl
13266         is being called but the child control does
13267         not have the parent set yet?)   
13268         
13269 2006-10-31  Mike Kestner  <mkestner@novell.com>
13271         * MenuAPI.cs : fix keynav when menu is click activated.
13273 2006-10-31  Jonathan Pobst  <monkey@jpobst.com>
13275         * ToolStrip*: Version 0.2.
13277         * MenuStrip.cs: Version 0.1.
13279         * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
13281 2006-10-30  Chris Toshok  <toshok@ximian.com>
13283         [ fixes the oversized notify icon issue in bug #79745 ]
13284         
13285         * NotifyIcon.cs: scale the icon down to the size we're given by
13286         the XplatUI layer (this would be faster if we did it once instead
13287         of whenever we paint..)  Also, remove the WM_NCPAINT handling,
13288         since it's never invoked.
13290         * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
13291         pixels high by default, so let's hardcode our systray icon to that
13292         size.  The SYSTEM_TRAY protocol should really have a way for
13293         client apps to query for the correct icon size.. but oh well.  A
13294         couple of patches to deal with the screwy client_window ==
13295         whole_window notifyicon stuff (we don't want to PerformNCCalc, for
13296         instance, and also make sure we don't XSelectInput twice).
13298 2006-10-30  Chris Toshok  <toshok@ximian.com>
13300         * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
13301         recreating forms.  Control recreation is the bane of my existence.
13302         Fix it in a way that keeps everyone happy.
13304 2006-10-30  Chris Toshok  <toshok@ximian.com>
13306         * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
13307         just non-CHILD ones.  otherwise sometimes scrollbars end up with
13308         client_windows not being resized to the proper size (ReportBuilder
13309         shows this extremely well).
13311 2006-10-30  Chris Toshok  <toshok@ximian.com>
13313         * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
13314         for non-WS_EX_APPWINDOW windows.  This is what keeps them from
13315         showing up in the gnome taskbar.  Fixes bug #79790.
13317 2006-10-30  Chris Toshok  <toshok@ximian.com>
13319         * ApplicationContext.cs: guard against a NRE.
13321         * Application.cs: null out the old MainForm for the context, so we
13322         don't try to use it again once it's disposed.  Fixes bug #79783.
13324 2006-10-30  Chris Toshok  <toshok@ximian.com>
13326         * DataGrid.cs (set_DataSource, set_DataMember): if we have a
13327         BindingContext, set the data source directly, otherwise do the
13328         lazy approach - the actual ListManager will be created when we get
13329         a BindingContext. Fixes bug #79700.
13331 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
13333         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
13334           XplatUIX11.cs: Remove old 2 parameter SetVisible.
13336         * Control.cs: Use the new 3 parameter SetVisible with activate = true.
13338 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
13340         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
13341         of SetVisible that allows a window to be shown, but not activated.
13342         This is needed on Windows for MenuStrip, and can probably be used
13343         with MainMenu and ComboBox to fix the focus stealing issues on
13344         Windows.
13346         * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
13348 2006-10-30  Alexander Olk  <alex.olk@googlemail.com>
13350         * PictureBox.cs: Fix the output of the ToString method.
13352 2006-10-29  Chris Toshok  <toshok@ximian.com>
13354         * Control.cs (get_TopLevelControl): fix bug #79781.
13356 2006-10-29  Chris Toshok  <toshok@ximian.com>
13358         * ListControl.cs (set_DataSource): throw Exception here, not
13359         ArgumentException, to match MS behavior.
13361 2006-10-29  Chris Toshok  <toshok@ximian.com>
13363         * Form.cs: remove the try-catch's around calls to GetWindowState.
13364         We can just check the return value.
13366         * XplatUIX11.cs: don't throw exceptions from GetWindowState.
13367         Instead return -1.
13369         * XplatUI.cs: Add note about additional return value for
13370         GetWindowState.
13372 2006-10-29  Chris Toshok  <toshok@ximian.com>
13374         * Control.cs (CreateHandle): when we create our handle, we also
13375         create the handles of our child controls.  Fixes one of the
13376         Control unit tests (CH11).
13378 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
13380         * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
13382 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
13384         * ThemeClearlooks.cs: A little speedup.
13386 2006-10-27  Chris Toshok  <toshok@ximian.com>
13388         * Control.cs: implement Control.FromChildHandle in a way that
13389         matches the docs (and fixes the failed test.)
13391 2006-10-27  Chris Toshok  <toshok@ximian.com>
13393         * DataGridTableStyle.cs: reproduce buggy MS behavior (with
13394         comments).
13396         * DataGrid.cs: implement ResetForeColor such that the tests
13397         succeed.
13398         
13399 2006-10-27  Chris Toshok  <toshok@ximian.com>
13401         * ToolBarButton.cs: setting text/tooltiptext to null results in it
13402         being set to "".  Fixes bug #79759.
13404 2006-10-27  Jackson Harper  <jackson@ximian.com>
13406         * TextControl.cs: We need to clear the entire selection area when
13407         setting the start, otherwise multiline selections are still
13408         visible.
13410 2006-10-26  Chris Toshok  <toshok@ximian.com>
13412         * PropertyGridView.cs: 
13414         - ifdef all the code specific to the double
13415         buffer case, and provide some alternatives in the non-doublebuffer
13416         code, which makes heavy use of XplatUI.ScrollWindow to move things
13417         around without having to invalidate (and cause flicker).  There
13418         are still some drawing problems in the non-doublebuffered case, so
13419         DOUBLEBUFFER is defined by default.
13421         - Fix the way dropdowns are handled.  now we explicitly watch for
13422         the events which might cause the dropdown to close, and break out
13423         of the nested event loop there.  This gets rid of all Capture
13424         code, at the expense of the Msg special casing.  Seems to work,
13425         though, and fixes bug #79743.
13427 2006-10-27  Rolf Bjarne Kvinge <RKvinge@novell.com>
13428         * Control.cs: SetIsRecreating now recreates implicitly added
13429         child controls as well. Finally fixes #79629. The flag passed to 
13430         SetIsRecreating has also been removed since it wasn't used.
13431         
13432 2006-10-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13434         * PageSetupDialog.cs: Clean some code, fix some bits, 
13435         add some checks, and add a printer sub-dialog.
13437 2006-10-26  Chris Toshok  <toshok@ximian.com>
13439         * PropertyGrid.cs: make set_SelectedObject call
13440         set_SelectedObjects, and move the duplicate logic to the
13441         SelectedObjects setter.  Also, raise SelectedObjectsChanged.
13443         * PropertyGridView.cs: hide the textbox when we get a
13444         SelectedObjectsChanged event.
13446         Fixes bug #79748.
13448 2006-10-26  Chris Toshok  <toshok@ximian.com>
13450         * PropertyGridView.cs: deal with the type converter not supporting
13451         GetStandardValues() or GetStandardValues() returning null, which
13452         is does in the default case.  Fixes #79742.
13454 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
13456         * CheckedListBox.cs: nunit no longer crashes when selecting 
13457         Project/Edit menu option
13458         
13459 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
13461         * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
13462         is no menu selected. fixes #79739
13464 2006-10-25  Chris Toshok  <toshok@ximian.com>
13466         * PropertyGridView.cs: factor out the splitter invalidation code
13467         into the SplitterPercent setter, and for kicks implement the
13468         Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
13469         amount in either direction.
13471 2006-10-25  Chris Toshok  <toshok@ximian.com>
13473         * PropertyGridView.cs: do some cleanup of the brush used to draw
13474         text - read only fields should be grayed out.  not sure how to do
13475         this with the textbox, though.  but the textbox's should also be
13476         readonly now at least.  Also, hide/show the textbox when resizing
13477         the control.
13478         
13479         * CursorConverter.cs: use System.Reflection when getting the
13480         properties of Cursors, as TypeDescriptor.GetProperties isn't
13481         returning static properties.
13483 2006-10-25  Chris Toshok  <toshok@ximian.com>
13485         * PropertyGridView.cs: factor out the up/down handling, and reuse
13486         it for page up/down.  also add End/Home support.
13488 2006-10-25  Chris Toshok  <toshok@ximian.com>
13490         * PropertyGridView.cs:
13492         - ensure the selected grid item is visible in the scrolled area,
13493         fixes bug #79572.
13495         - fix Keys.Down handling when you're on the last item in the
13496         propertygrid.
13498 2006-10-25  Mike Kestner  <mkestner@novell.com>
13500         * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup 
13501         clicks too.  Fixes #79725.
13503 2006-10-24  Chris Toshok  <toshok@ximian.com>
13505         * PropertyGrid.cs: use property.Converter instead of
13506         TypeDescriptor.GetConverter(property.PropertyType), so we catch
13507         TypeConverters declared on the property as well as on the
13508         PropertyType.  Fixes bug #79678.
13510 2006-10-24  Alexander Olk  <alex.olk@googlemail.com>
13512         * MimeIcon.cs, Mime.cs:
13513           Fallback to the default platform handler if no shared mime info
13514           stuff exists (fixes #79693).
13516 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
13517         * ContainerControl.cs: Incorrect contains check in ActiveControl 
13518         from previous fix (duh).
13520 2006-10-20  Chris Toshok  <toshok@ximian.com>
13522         * PropertyGridView.cs: the dropdown should be MIN(number of items
13523         in list, 15).  Fixes #79551.
13525 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
13526         Fixes #79384, #79394, #79652, #79667
13527         * Application.cs: 
13528         
13529         - Modal windows are now destroyed in the proper order for windows
13530         
13531         * ContainerControl.cs:
13532         
13533         - ActiveControl setter has more conditions on when to return:
13534                 - if we're reselecting the active control, but it actually
13535                 didn't have focus (window hidden or some such), it runs
13536                 - if the active control being selected doesn't actually 
13537                 exist in the container, it returns
13538         
13539         * Form.cs
13540         
13541         - The ShowDialog now gets the current form as the owner when
13542         invoking without parameters, and correctly activates the owner 
13543         when returning
13544         
13545         * MessageBox.cs
13546         
13547         - MessageBox now catches the Escape key to exit
13549 2006-10-20  Chris Toshok  <toshok@ximian.com>
13551         * PropertyGridView.cs: fix a number of issues (bug #78565, and
13552         most of bug #79676):
13554         - you can navigate around the property grid with the arrow keys.
13556         - the dropdown is sized properly when the pg has a vertical
13557         scrollbar.
13559         - fix the indentation for subentries, and properly select the
13560         entire label rect.
13562         - fix the gray bar's drawing (only draw it to the last element,
13563         not for the height of the control.  Also make sure we draw that
13564         last horizontal grid line.
13566         - use the same mechanism the datagrid uses wrt the editing textbox
13567         when scrolling/resizing/etc.  Namely, we hide it first, do the
13568         operation, then show it again (if it's still visible).
13569         
13570         - aggressively remove a lot of unnecessary refreshes (and also
13571         calls to Invalidate(). call more limited variants, and only redraw
13572         what we need.)
13573         
13574         * PropertyGrid.cs:
13576         - when we're populating the merged collection, fill in the UI
13577         parent with either the passed in item, or the category item we
13578         create.
13580         - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
13582         * GridItem.cs: drop some fully qualified names.
13583         
13584         * GridEntry.cs: add a "UIParent", which is basically the parent
13585         treenode.
13587         * GridItemCollection.cs: add an IndexOf method.
13589 2006-10-20  Mike Kestner  <mkestner@novell.com>
13591         * MainMenu.cs : go back to Draw in OnMenuChanged.  Until we get
13592         a working win32 NC invalidation mechanism, we can't invalidate
13593         menus.  [Fixes #79705]
13595 2006-10-20  Mike Kestner  <mkestner@novell.com>
13597         * ListBox.cs : don't update the VScrollbar if the list is empty,
13598         just hide it.  [Fixes #79692]
13600 2006-10-20  Jackson Harper  <jackson@ximian.com>
13602         * RichTextBox.cs: Handle some special chars better, and don't skip
13603         the entire group when we encounter a special char that we don't
13604         handle correctly.
13606 2006-10-18  Chris Toshok  <toshok@ximian.com>
13608         * PropertyGridView.cs: address a number of issues from bug #79676,
13609         mostly of the cosmetic variety.
13611         - The highlight rectangle for indented items not extends all the
13612         way to the left.
13614         - Indented items aren't indented so much.
13616         - the dropdown is properly sized width-wise if the pg has a
13617         vertical scrollbar.
13619 2006-10-18  Chris Toshok  <toshok@ximian.com>
13621         * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
13622         systray stuff is rather convoluted to begin with.
13624         systray icons are a single window for some reason (that I haven't
13625         figured out yet), and for them, client_window == whole_window.
13626         Given the way the tests are structured elsewhere to determine
13627         which paints are pending (client vs. nc), that situation will
13628         always yield PAINT, not NCPAINT.  So, if we have a pending
13629         nc_expose and no pending expose, remove the hwnd from the paint
13630         queue, and also set nc_expose_pending to false, to keep us from
13631         blocking further expose's adding the hwnd to the paint queue.
13633         phew.  like i said, a rather convoluted change.  Fixes the
13634         notifyicon repaint issues in bug #79645.
13636 2006-10-18  Chris Toshok  <toshok@ximian.com>
13638         * Form.cs: when getting the backcolor of the form, don't get
13639         base.BackColor, as this allows parents to influence the background
13640         color.  This breaks mdi forms.  Instead, if the background_color
13641         is empty, return the default.
13643 2006-10-18  Chris Toshok  <toshok@ximian.com>
13645         * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
13646         to being private instead of internal static.
13648         * Control.cs: remove all the stupid ParentWaitingOnRecreation
13649         crap, it wasn't working for more deeply nested controls anyway,
13650         and we already have the is_recreating flag - use that instead.
13651         Before calling DestroyHandle in RecreateHandle, recurse through
13652         the control tree setting it to true.  this returns the recreate
13653         code to much of its original simplicity, while now guaranteeing we
13654         actually recreate everything we're supposed to.  This change gets
13655         fyireporting actually showing mdi children.
13657 2006-10-17  Chris Toshok  <toshok@ximian.com>
13659         * Form.cs: remove some debug spew, and collapse some duplicate
13660         code at the end of SetClientSizeCore.
13662         * XplatUIX11.cs: 
13663         - add some more debug spew here too wrt Destroy handling.
13664         - don't call hwnd.Dispose in DestroyWindow, it's effectively done
13665         in Control's handling of WM_DESTROY.
13666         - Remove the handling of zombie window DestroyNotifies from the
13667         event loop - we don't need it.  Now the only DestroyNotifies we
13668         actually handle are ones generated by X.
13669         - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
13670         match gtk's (functioning) handling of this. This keep metacity
13671         from leaving droppings in the form of wm borders with no window
13672         contents all over the place.
13674         * Control.cs:
13675         - add a bunch of debug spew wrt control recreation.
13676         - fix a bug where we weren't tracking Visible properly on
13677         recreated hwnds.
13678         - fixed the WM_PAINT double buffer handling to support re-entrant
13679         calls (yes, i know it's gross, but it's happening to us).
13681 2006-10-17  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
13682         * ThemeWin32Classic.cs: changed drawing of selected days
13683         to make them look better.
13685 2006-10-16  Chris Toshok  <toshok@ximian.com>
13687         * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
13688         drawing_stack.  Nuke the ClientDC/NonClientDC properties.
13690         * XplatUIX11.cs: move away from using hwnd.client_dc and
13691         hwnd.non_client_dc and on to a stack of dc's (and in window's
13692         case, PAINTSTRUCT's), so we can deal with nested Paint calls
13693         without puking or not disposing of Graphics objects.
13695         * XplatUIOSX.cs: same.
13697         * XplatUIWin32.cs: same.
13699 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
13701         * FileDialog.cs: Don't call on_directory_changed inside
13702           OnSelectedIndexChanged (it changes the SelectedIndex too).
13703           Instead move it to OnSelectionChangeCommitted.
13705 2006-10-13  Chris Toshok  <toshok@ximian.com>
13707         * XplatUIX11.cs: more Destroy work.  the current code does the
13708         following things, in order:
13710         1. Enumerates all handles of all controls at or below the one
13711         being destroyed, in pre-order.  As it is doing this, it marks the
13712         handles as zombie and clears all references to them.
13713         
13714         2. calls XDestroyWindow on the window passed in.
13716         3. SendMessage's WM_DESTROY to all he handles in the accumulated
13717         list.
13719 2006-10-13  Chris Toshok  <toshok@ximian.com>
13721         * XplatUIX11.cs: set hwnd.zombie to true before calling
13722         SendMessage (WM_DESTROY).  this keeps us from marking the new
13723         window a zombie, and also keeps us from calling sendmessage at
13724         all.
13726 2006-10-13  Jackson Harper  <jackson@ximian.com>
13728         * TextControl.cs: Do not show the caret and selection at the same
13729         time.  Reduces ugliness by 35%.
13731 2006-10-13  Chris Toshok  <toshok@ximian.com>
13733         * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
13734         zombie after we do the recursive call, so we actually do call
13735         SendMessage on the children controls.
13736         (GetMessage): if we find a pending paint event for a zombie hwnd,
13737         remove the hwnd from the paint queue, or else it will always be
13738         there (and we'll effectively loop infinitely)
13740 2006-10-13  Mike Kestner  <mkestner@novell.com>
13742         * MenuItem.cs : add Selected format under keynav too.
13743         Fixes #79528.
13745 2006-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
13747         * PropertyGrid.cs: Fixed some NRE's and small difference between our
13748         implementation and that of MS.
13750 2006-10-13  Chris Toshok  <toshok@ximian.com>
13752         * Control.cs (OnInvalidated) only futz with the invalid_region if
13753         the control is double buffered.  this fixes the apparent hang in
13754         the ListView unit tests.  Someone needs to make the
13755         BeginEndUpdateTest not call OnInvalidated 15004 times, though..
13757 2006-10-13  Chris Toshok  <toshok@ximian.com>
13759         * PropertyGridView.cs:
13761         - do a little refactoring so that only one place calls
13762         dropdown_form.Hide, and that is CloseDropDown.  make everywhere
13763         else call that.  Also make it Refresh, since there are redraw bugs
13764         otherwise (we should take a look at that...)
13766         - do a little more refactoring work to share the body of code
13767         involved with the drop down.  it was duplicated in the code
13768         dealing with the listbox handling and in the code dealing with the
13769         UITypeEditors.
13771         - add a Capture to the dropdown form's control once it's
13772         displayed, and add a MouseDown handler that checks to make sure
13773         the position is inside the control.  If it's not, close the
13774         dropdown.  This fixes #78190.
13776         - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
13777         if the value is different than the initial value.
13778         
13779 2006-10-13  Andreia Gaita  <shana.ufie@gmail.com>
13781         * Control.cs: see #78650
13782         - Fixed GetNextControl for several cases:
13783                 - Changed FindFlatForward to return 
13784                 correct sibling control when more than one
13785                 control has same TabIndex as the currently 
13786                 focused one.
13787                 - Changed FindFlatBackward to loop children
13788                 from last to first and apply same logic as in
13789                 FindFlatForward
13790                 - Changed FindControlForward to search for
13791                 children when control is not a container
13792                 but has children, or search for siblings if
13793                 control is a container...
13794                 - Changed FindControlBackward   to continue
13795                 searching for child controls when hitting 
13796                 Panel-like parents
13797                 
13798         - Fixed Focus method to update ActiveControl
13799         (FocusTest.FocusSetsActive failure)
13800         
13801         * TabControl.cs:
13802         - Focus rectangle now refreshes when gaining
13803         or losing focus
13804         - Removed grab for Tab key on IsInputKey that 
13805         was keeping tab navigation from working (#78650)
13807 2006-10-13  Chris Toshok  <toshok@ximian.com>
13809         * PropertyGridView.cs:
13810         - Rewrite SetPropertyValue to loop over SelectedGridItem's
13811         SelectedObjects.
13813         - Deal with GridItem.Value == null a few places.
13815         * PropertyGrid.cs: 
13816         - replace the PopulateGridItemCollection with a pair of methods
13817         which compute the intersection of all the properties in the
13818         SelectedObjects array.  Fixes #79615.
13820         - Throw ArgumentException from set_SelectedObjects if there's a
13821         null in the array.
13823         - Add GetTarget method which can be used to traverse up the
13824         GridItem.Parent chain.  It depends on the assumption that
13825         selected_objects for different GridEntries are always in the same
13826         order (a safe assumption).  Use this method and loop over all the
13827         selected objects in the entry when calling RemoveValueChanged and
13828         AddValueChanged.
13829         
13830         * GridEntry.cs: Make this handle multiple selected objects.
13831         .Value returns null if not all the selected objects share the same
13832         value.
13834 2006-10-12  Jonathan Pobst  <monkey@jpobst.com>
13835         * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
13836           ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
13837           ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
13838           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
13839           ToolStripTextBox.cs: Add accessibility, fix attributes/API and
13840         add additional functionality.
13842 2006-10-12  Mike Kestner  <mkestner@novell.com>
13844         * ErrorProvider.cs : new ToolTipWindow ctor sig.
13845         * HelpProvider.cs : new ToolTipWindow ctor sig.
13846         * ToolTip.cs : remove ToolTip param from Window sig since it is
13847         not used.
13848         * ToolBar.cs : add tooltip support.  Fixes #79565.
13850 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
13852         * ComboBox.cs: move the events in set_SelectedIndex to 
13853         after the call to HighlightIndex in order to avoid 
13854         possible recursion and subsequent problems with the call
13855         to HighlightIndex and include a range check in 
13856         set_HighlightIndex. Fixes #79588
13857         
13858 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
13860         * MonthCalendar.cs: When FirstDayOfWeek is default set firstday 
13861         to ui thread's settings instead of sunday. 
13862         * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
13864 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
13866         * DateTimePicker.cs
13867         * MonthCalendar.cs
13868         * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
13869         and implement missing functionality (selecting different parts 
13870         of the date and edit them individually with the keyboard).
13871         
13872 2006-10-11  Chris Toshok  <toshok@ximian.com>
13874         * Control.cs (OnInvalidated): fix NRE relating to last change.
13876 2006-10-11  Chris Toshok  <toshok@ximian.com>
13878         * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
13879         atoms in _NET_WM_STATE here if the window is maximized.  We need
13880         to do this because we're *replacing* the existing _NET_WM_STATE
13881         property, so those atoms will be lost otherwise, and any further
13882         call to GetWindowState will return Normal for a window which is
13883         actually maximized.  Fixes #79338.
13885 2006-10-11  Jackson Harper  <jackson@ximian.com>
13887         * TextControl.cs: Special case for setting selection end to
13888         selection start, we basically kill the anchor.
13889         - some todo comments.
13891 2006-10-11  Chris Toshok  <toshok@ximian.com>
13893         * Control.cs: switch to using an "invalid_region" to track which
13894         parts of the image buffer need updating.  This is more code than
13895         the simple fix from r66532.  That version just attempted to always
13896         fill the entire buffer on redraw, which turns out to be
13897         inefficient when invalidating small rectangles.  This version
13898         simply adds the invalid rectangle to the invalid region.  When we
13899         get any WM_PAINT message we see if it can be filled using the
13900         image buffer, and if it can't (if the paint event's clip rectangle
13901         is visible in the invalid region) we first fill the image buffer.
13902         So, the image buffer is still a cache, we just fill it lazily.
13904         * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
13905         need it any longer.
13907 2006-10-11  Chris Toshok  <toshok@ximian.com>
13909         * XplatUIX11.cs (SetWindowPos): we need to update both position as
13910         well as size after calling XMoveResizeWindow.  This keeps us from
13911         ignoring future SetWindowPos calls.  Fixes the disappearing
13912         DateTimePicker in the ToolBarDockExample from bug #72499.
13914 2006-10-11  Chris Toshok  <toshok@ximian.com>
13916         * TextBoxBase.cs: reorder things a bit when it comes to
13917         resizing-causing-recalculation.  we were recalculating the
13918         document when our position was changed, which shouldn't happen.
13919         We only care about size changes.  Clear up some more redundant
13920         recalculation calls while I'm at it.  This makes the toolbar dock
13921         example snappy when you're just dragging toolbars around (since it
13922         causes a relayout whenever you move one.)
13924 2006-10-11  Chris Toshok  <toshok@ximian.com>
13926         * ToolBarButton.cs (get_Rectangle): this only returns
13927         Rectangle.Empty if Visible == false, or Parent == null.
13928         Parent.Visible doesn't matter.
13930 2006-10-10  Chris Toshok  <toshok@ximian.com>
13932         * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
13933         by .net 1.1, so switch to an internal method instead.
13935 2006-10-10  Chris Toshok  <toshok@ximian.com>
13937         * Control.cs (WM_PAINT): when a control is double buffered we draw
13938         initially to the ImageBuffer and then copy from there.  But when a
13939         parent control which has child controls is double buffered, the
13940         initial drawing doesn't encompass the entire ClientRectangle of
13941         the parent control, so we end up with uninitialized bits (this is
13942         easily seen by dragging the top toolbar in
13943         wf-apps/ToolBarDockExample to the right, quickly).  The fix is to
13944         manually set the ClipRectangle of the paint_event (only the one we
13945         use to populate the ImageBuffer) to ClientRectangle.  Fixes more
13946         of the nastiness in bug #72499.
13948         * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
13949         which we use in Control.cs's WM_PAINT handling.
13951 2006-10-10  Jackson Harper  <jackson@ximian.com>
13953         * TextBoxBase.cs: Finish off the autoscrolling stuff.
13955 2006-10-10  Chris Toshok  <toshok@ximian.com>
13957         * Cursor.cs: Apply a slightly different patch to the one suggested
13958         in #79609.
13960 2006-10-10  Jackson Harper  <jackson@ximian.com>
13962         * MenuItem.cs: Make sure to put the mdi child in the hashtable,
13963         not the parent form.
13964         * TextControl.cs: use difference in old line count vs new count to
13965         calculate how many lines were added, this takes into account soft
13966         line breaks properly.
13968 2006-10-10  Chris Toshok  <toshok@ximian.com>
13970         * LinkLabel.cs: don't call MeasureCharacterRanges against a
13971         rectangle located at 0,0 and the size of the text.  Use
13972         ClientRectangle instead.  This fixes rendering of non-left aligned
13973         link labels.
13975 2006-10-10  Jackson Harper  <jackson@ximian.com>
13977         * TextBoxBase.cs: When we set the selection start position the
13978         caret.
13979         * TextControl.cs: Need to update the caret when we decrement it to
13980         zero.
13981         - Make sure that the selection_visible flag gets reset to false if
13982         the selection isn't visible.  Before this you could get it set to
13983         visible by changing the selection start, then changing the end to
13984         equal the start.
13986 2006-10-09  Jackson Harper  <jackson@ximian.com>
13988         * TreeView.cs: Don't update scrollbars when we aren't visible.
13989         * TreeNodeCollection.cs: Only need to update scrollbars if being
13990         added to an expanded visible node or the root node.
13992 2006-10-09  Chris Toshok  <toshok@ximian.com>
13994         * XplatUIX11.cs (SendMessage): fix NRE.
13996 2006-10-09  Jackson Harper  <jackson@ximian.com>
13998         * TextBoxBase.cs: Implement horizontal autoscrolling.
13999         * TextControl.cs: Add a movement types that allows moving forward
14000         and backwards without wrapping.
14002 2006-10-09  Mike Kestner  <mkestner@novell.com>
14004         * ListViewItem.cs : layout changes for wrapped LargeIcon labels
14005         with focus "expansion" of labels.  Fixes #79532 and then some.
14006         * ThemeWin32Classic.cs : add LineLimit to ListView label format
14007         when wrapping.
14009 2006-10-09  Jackson Harper  <jackson@ximian.com>
14011         * TextBoxBase.cs: Set the default max values to MaxValue since
14012         we use the scrollbar for autoscrolling and the default value is
14013         100.  If we don't do this the caret won't keep up with typing
14014         after about 18 characters.
14015         * TextControl.cs: Make sure the selection is offset by the
14016         viewport x.  This fixes selection when using auto scrolling.
14018 2006-10-07  Andreia Gaita <shana.ufie@gmail.com>
14019         
14020         * Form.cs: The active control should be selected after the 
14021         OnLoad so that any child control initialization that affects
14022         the selection is done. Fixes #79406
14024 2006-10-06  Chris Toshok  <toshok@ximian.com>
14026         * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
14027         to have no evil effects.
14029         - Stop selecting StructureNotifyMask on non-toplevel windows.
14031           The only way children should be resized is by using the SWF api,
14032           and we already send WM_WINDOWPOSCHANGED messages in those cases.
14033           Toplevel windows can be interacted with via the window manager,
14034           and so we keep the input mask there.
14036           The other event StructureNotifyMask gives us (that we care
14037           about) is DestroyNotify.  The code is already structured such
14038           that it assumes we won't be getting a DestroyNotify event for
14039           the window we pass to XDestroyWindow (which is what
14040           StructureNotifyMask is supposed to guarantee.)  So, that code
14041           shouldn't be affected by this either.
14043         - Stop selecting VisibilityChangeMask altogether.
14045           We weren't doing anything with the resulting events anyway.
14046         
14047         This vastly reduces the number of X requests and events we see
14048         when resizing/laying out a large ui.
14050 2006-10-06  Chris Toshok  <toshok@ximian.com>
14052         * ScrollableControl.cs (DisplayRectangle): we need to take into
14053         account the DockPadding regardless of whether or not auto_scroll
14054         == true.  rework this slightly to this effect, and fix bug #79606,
14055         and part of #72499 (you can now see the drag handles and drag
14056         toolbars around).
14058 2006-10-06  Gert Driesen  <drieseng@users.souceforge.net>
14060         * ListViewItem.cs: Collections of selected and checked items are now
14061         dynamically rebuilt. Whenever an item is (un)checked or (de)selected
14062         we mark the collection "dirty".
14063         * ListView.cs: Marked collections readonly. Modified UpdateSelection
14064         to only clear SelectedItems when a new item is selected and MultiSelect
14065         is enabled. CheckedItems and SelectedItems now subscribe to Changed
14066         event of ListViewItemCollection, and mark its list dirty whenever
14067         that event is fire. This allows us to return selected/checked items 
14068         in the same order as they are in the Items collection. This matches
14069         the MS behavior.
14071 2006-10-06  Chris Toshok  <toshok@ximian.com>
14073         * NotifyIcon.cs (HandleMouseUp): only show the context menu on
14074         right mouse clicks.  Fixes bug #79593.
14076 2006-10-06  Chris Toshok  <toshok@ximian.com>
14078         * Splitter.cs: doh, fix splitters that don't want to cancel the
14079         movement when you drag them.  Also, impose the limits on the
14080         values we send to the SplitterMovingEvent.  Fixes #79598.
14082 2006-10-06  Jackson Harper  <jackson@ximian.com>
14084         * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
14085         since we use this for auto scrolling also.
14087 2006-10-05  Chris Toshok  <toshok@ximian.com>
14089         * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus.  I'm
14090         beginning to think that most datagrid column types don't need this
14091         method.  Fixes bug #79392.
14093 2006-10-05  Chris Toshok  <toshok@ximian.com>
14095         * DataGrid.cs: move back to a more lazy scheme for creating the
14096         CurrencyManager, so we aren't updating it every time you set
14097         either DataSource or DataMember.  Also, don't call
14098         RecreateDataGridRows if the currency manager hasn't changed.
14100 2006-10-05  Chris Toshok  <toshok@ximian.com>
14102         * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
14103         emitted, SelectedIndex should already be updated.  Fixes bug
14104         #78929.
14106 2006-10-05  Jonathan Pobst  <monkey@jpobst.com>
14108         * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
14109           ToolStripTextBox.cs: Initial commit.
14110         * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
14112 2006-10-05  Jackson Harper  <jackson@ximian.com>
14114         * TabControl.cs: We need to invalidate the tab control area when
14115         new ones are added (duh).
14117 2006-10-03  Chris Toshok  <toshok@ximian.com>
14119         * Form.cs (ProcessDialogKey): if the focused control is in this
14120         form and is a button, call its PerformClick method here.  Fixes
14121         #79534.
14123 2006-10-04  Jackson Harper  <jackson@ximian.com>
14125         * TabPage.cs: Ignore setting of Visible, and add an internal
14126         method for setting the controls visibility.  TabPage's Visible
14127         property is a little strange on MS, this seems to make us
14128         compatible, and fixes cases where people set all the tab pages to
14129         visible.
14130         * TabControl.cs: Use the new internal setting on tab pages
14131         visibility.
14133 2006-10-03  Mike Kestner  <mkestner@novell.com>
14135         * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
14137 2006-10-03  Mike Kestner  <mkestner@novell.com>
14139         * ListView.cs : use is_visible instead of Visible to check if 
14140         scrollbars should be placed/sized.  Also some max_wrap_width
14141         love for LargeIcon view.  [Fixes #79533]
14143 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
14145         * TextControl.cs :
14146           Make set_TextAlign() do actually update the align. Fixed #78403.
14148 2006-10-03  Chris Toshok  <toshok@ximian.com>
14150         * DataGrid.cs: fix a crash when switching datasources if the
14151         vertical scrollbar is at someplace other than Value = 0.  Also,
14152         reduce the number of recalculation passes we do in SetDataSource
14153         from 2 to 1.
14155 2006-10-03  Jackson Harper  <jackson@ximian.com>
14157         * TextBoxBase.cs: Move the if value the same bail check up, we
14158         don't want to empty the document if it is already empty, this
14159         seems to severly mess up the caret.  TODO: I should probably fix
14160         the empty statement to update teh caret somehow.
14162 2006-10-03  Chris Toshok  <toshok@ximian.com>
14164         * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
14165         incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
14166         reflection, an internal row type, properties on said type, etc.)
14167         will work with our datagrid.  Fixes #79531.
14169 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
14171         * FileDialog.cs: Don't crash if a path is not accessible
14172           (System.UnauthorizedAccessException). Fixes #79569.
14173         * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
14174           a ':' too. Return unknown icon for those paths/files.
14176 2006-10-03  Sebastien Pouliot  <sebastien@ximian.com>
14178         * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when 
14179         GetContainerControl returns null.
14181 2006-10-02  Chris Toshok  <toshok@ximian.com>
14183         * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
14184         call to XGetWindowAttributes instead of "handle".  fixes an X
14185         error using notifyicon after the NotifyIconWindow to Form base
14186         class switch.
14188 2006-10-02  Chris Toshok  <toshok@ximian.com>
14190         * XplatUIX11.cs (QueryPointer): new function, encapsulating the
14191         server grab and looping we need to do to get down to the most
14192         deeply nested child window.
14193         (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
14194         QueryPointer again after the WarpPointer so we can generate a
14195         proper (fake) MotionNotify event to be enqueued in the destination
14196         window's queue.
14197         (GetCursorPos): call QueryPointer.
14199         Fixes #79556.
14201 2006-10-02  Jackson Harper  <jackson@ximian.com>
14203         * NotifyIcon.cs: Derive the notify icon from a form, so things
14204         like FindForm work on it.
14205         - Swallow the WM_CONTEXTMENU message, since that is generated on
14206         mouse down, and context menu is a mouse up kinda guy.  I believe
14207         the correct fix here is probably to make the notify icon entirely
14208         NC area, but this seems to work fine for anyone not manipulating
14209         WndProc.
14211 2006-10-02  Jonathan Pobst  <monkey@jpobst.com>
14213         * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
14214           ToolStripItemCollection.cs, ToolStripLabel.cs,
14215           ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
14216           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
14217           Initial implementation.
14218         * TextRenderer.cs: Provide padding to MeasureText.
14220 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
14222         * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
14223         of ButtonBaseAccessibleObject. Fix bug #79552.
14225 2006-10-02  Jackson Harper  <jackson@ximian.com>
14227         * MdiWindowManager.cs: When maximizing use the containers client
14228         rect, not it's bounds, so nc area is accounted correctly.
14229         - Use the parent form's size for the menu position, since the
14230         client isn't always the full form size.
14232 2006-10-01  Chris Toshok  <toshok@ximian.com>
14234         * ScrollableControl.cs: make sure neither right_edge or
14235         bottom_edge are < 0, since they're used as LargeChange for the
14236         horiz/vert scrollbars respectively.  Fixes #79539.
14238 2006-10-01  Chris Toshok  <toshok@ximian.com>
14240         * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
14241         the xplatuix11 code can cause us to destroy/recreate our handle.
14243         * XplatUIX11.cs
14244         (SystrayAdd):
14245         - this code can be invoked many times for the same Hwnd.  Make
14246           sure we only destroy the client window once (the first time this
14247           method is called).  This fixes bug #79544.
14248         - Remove the call to the improperly bound XSync.  why we had two
14249           bindings to this, I will never know, but this call resulted in
14250           events being discarded from the queue(!).
14251         - correct a misunderstanding of _XEMBED_INFO - the second atom is
14252           not our current state but the state we wish to be in.  So, 0 if
14253           we don't want to be mapped.  Change it to 1.
14254         (SystrayRemove): The XEMBED spec makes mention of the fact that
14255         gtk doesn't support the reparent of client windows away from the
14256         embedder.  Looking at gtksocket-x11.c seems to agree with this.
14257         The only avenue we have for removing systray icons is to destroy
14258         them.  We don't want the handle to go away for good, though, so
14259         call InternalRecreateHandle on the NotifyIconWindow.  Fixes
14260         #79545.
14261         
14262 2006-10-01  Chris Toshok  <toshok@ximian.com>
14264         * Form.cs (WndProc): inline the native_enabled variable usage into
14265         the cases in which it's used.  Fixes #79536.
14267 2006-09-29  Mike Kestner  <mkestner@novell.com>
14269         * ListView.cs : toggle the selection state for ctrl clicks in 
14270         multiselect mode. [Fixes #79417]
14272 2006-09-29  Mike Kestner  <mkestner@novell.com>
14274         * ListView.cs : kill CanMultiSelect and refactor the selection
14275         code to support multiselection in the absence of mod keys. Steal
14276         arrow/home/end keys by overriding InternalPreProcessMessage to
14277         restore regressed keynav behavior.
14278         [Fixes #79416]
14280 2006-09-29  Jackson Harper  <jackson@ximian.com>
14282         * MdiClient.cs: Repaint the titlebars when the active window is
14283         changed.
14285 2006-09-29  Chris Toshok  <toshok@ximian.com>
14287         * Application.cs: when entering a runloop with a modal, make sure
14288         the hwnd is enabled.  Fixes #79480.
14290 2006-09-29  Chris Toshok  <toshok@ximian.com>
14292         * DataGrid.cs (CurrentCell): if we try to navigate to the add row
14293         when ListManager.CanAddRows == false, bump us back one.
14295         * DataGridColumnStyle.cs (ParentReadOnly): remove the
14296         listmanager.CanAddRows check.  This makes ArrayLists uneditable
14297         using a datagrid, which is not right.
14298         (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
14299         is an IEditable, but call property_descriptor.SetValue regardless.
14300         fixes #79435.
14302 2006-09-29  Chris Toshok  <toshok@ximian.com>
14304         * DataGridBoolColumn.cs: we need to test equality in the face of
14305         possible null values (as is the case with the default NullValue).
14306         This patch keeps us from crashing in that case.
14308 2006-09-29  Jackson Harper  <jackson@ximian.com>
14310         * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
14311         here, since it will get called for every node collection in the
14312         tree. This is now done in the treeview once the sorting is
14313         finished.
14314         * TreeView.cs: Recalculate the visible order, and update the
14315         scrollbars after sorting, set the top nope to the root so that the
14316         recalc actually works.
14318 2006-09-29  Chris Toshok  <toshok@ximian.com>
14320         * LinkLabel.cs: more handling of the default link collection in
14321         the face of LinkArea manipulation.  The default link collection
14322         contains 1 element (start=0,length=-1).  If the user sets LinkArea
14323         to anything and the links collection is the default, clear it.
14324         Then only add the link if its nonempty.  Fixes #79518.
14326 2006-09-29  Chris Toshok  <toshok@ximian.com>
14328         * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
14329         piece correctly when we hit a '\n'.  Fixes #79517.
14331 2006-09-29  Chris Toshok  <toshok@ximian.com>
14333         * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
14334         change the binding of gdk_init_check to take two IntPtr's, and
14335         pass IntPtr.Zero for both of them.  Fixes #79520.
14337 2006-09-29  Mike Kestner  <mkestner@novell.com>
14339         * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
14340         [Fixes #78779]
14342 2006-09-28  Jackson Harper  <jackson@ximian.com>
14344         * XplatUIX11.cs: When translating NC messages make sure we go from
14345         whole window to screen, not client window to screen.
14346         * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
14347         method doesn't exist
14348         - Skip over controls that aren't forms when arranging.
14350 2006-09-28  Jackson Harper  <jackson@ximian.com>
14352         * XplatUIWin32.cs: Clip the rect to the parent window.
14353         * XplatUIStructs.cs: Add clipping modes struct.
14354         * InternalWindowManager.cs: New private method that factors title
14355         bar heights in when calculating the pos of an NC mouse message.
14356         - Use SendMessage to force a paint when the form's size is changed
14357         instead of painting the decorations immediately.
14358         - Don't let the NC button click messages get to DefWndProc,
14359         because they will attempt to handle windowing themself, and this
14360         messes up z-order (it will put them in front of the scrollbars).
14361         * XplatUIX11.cs: Make sure that we don't reset window managers if
14362         we already have one (ie the window is an MDI window).
14364 2006-09-28  Chris Toshok  <toshok@ximian.com>
14366         * MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
14367         menu code really needs going over.
14369 2006-09-27  Chris Toshok  <toshok@ximian.com>
14371         * XplatUIX11.cs (SetWMStyles): more metacity wonderment.  turns
14372         out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
14373         window is maximizable.  So, we need to make sure that even if we
14374         clear the border/wm frame of those functions, they're still
14375         available (basically, we remove the decoration without removing
14376         the function).  Half the fix for #79338.
14378 2006-09-27  Chris Toshok  <toshok@ximian.com>
14380         * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
14381         Fixes bug #79515.
14383 2006-09-27  Chris Toshok  <toshok@ximian.com>
14385         * Splitter.cs: reorder things a bit so that we don't actually
14386         draw/move the splitter until after calling OnSplitterMoving.  This
14387         lets users cancel/disallow the movement by explicitly setting
14388         event.SplitX/SplitY.  Fixes #79372.
14390 2006-09-27  Jackson Harper  <jackson@ximian.com>
14392         * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
14393         because it is most likely on a window being destroyed, and that
14394         will give us an X11 error.
14396 2006-09-27  Chris Toshok  <toshok@ximian.com>
14398         * PropertyGridView.cs: half of the fix for #78190.  Clicking on
14399         the dropdown button now toggles between showing and hiding the
14400         dropdown.  Also, get rid of dropdown_form_showing and just use
14401         dropdown_form.Visible.  We still don't do a grab, but I'll leave
14402         that part to someone who has handled Capture-fu before.
14404 2006-09-27  Chris Toshok  <toshok@ximian.com>
14406         * DataGrid.cs: return false if alt isn't pressed when '0' is
14407         pressed.  this keeps the '0' key from being swallowed, and fixes
14408         bug #79350.
14410 2006-09-27  Chris Toshok  <toshok@ximian.com>
14412         * ComboBox.cs: use Invalidate when scrolling the dropdown list.
14413         Calling Refresh (in response to a scrollbar event) screws up the
14414         scrollbar painting.  Fixes bug #78923.
14416 2006-09-27  Chris Toshok  <toshok@ximian.com>
14418         * Theme.cs (SystemResPool): make the "if hashtable[key] == null
14419         then insert into hashtable" blocks threadsafe.
14421 2006-09-27  Chris Toshok  <toshok@ximian.com>
14423         * MessageBox.cs (CreateParams): the styles should be |'ed with our
14424         baseclass's, since otherwise the
14425         ControlBox/MinimizeBox/MaximizeBox assignments above have no
14426         effect.  This gets the close button back in messageboxes.
14428 2006-09-27  Chris Toshok  <toshok@ximian.com>
14430         * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
14431         flag, not just != 0.  this makes flags that are actually multiple
14432         bits (like WS_CAPTION) work.  fixes bug #79508.
14434 2006-09-27  Jordi Mas i Hernandez <jordimash@gmail.com>
14436         * PageSetupDialog.cs: add support for getting and settings the 
14437         paper size, source and orientation.
14439 2006-09-26  Chris Toshok  <toshok@ximian.com>
14441         * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
14442         and caption == "", we need to remove the resize handles as well as
14443         the title bar.
14445         * Control.cs (set_Text): turns out that setting Text on a form
14446         should change the WM styles on the window, since if ControlBox ==
14447         false, the only way to get a window border is to have a non-""
14448         Text property.  check winforms/forms/text.cs for an example.  so,
14449         call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
14450         update both window styles and title.  This fixes a lot of dialogs
14451         (including the preferences dialog in MonoCalendar.)
14453 2006-09-26  Chris Toshok  <toshok@ximian.com>
14455         * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
14456         control isn't a Form), call Win32ShowWindow to hide the window,
14457         but don't update the control Visible property.  When we reparent
14458         back to a parent control, call SetVisible in order for the
14459         window's visibility to be reinstated.
14461         * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
14462         the FosterParent.
14464         * Control.cs (ControlCollection.Remove): remove that value.Hide()
14465         call for good, since it breaks MonoCalendar (and other things I'm
14466         sure.) Also, set all_controls to null *after* the owner calls,
14467         which end up regenerating it.
14468         (ChangeParent): allow new_parent to be == null, passing
14469         IntPtr.Zero down to XplatUI.
14471         this fixes #79294 the right way.
14473 2006-09-26  Mike Kestner  <mkestner@novell.com>
14475         * GridEntry.cs : internal SetParent method.
14476         * PropertyGrid.cs : attach to property changed on the proper
14477         target if we have a hierarchical grid with subobjects. Setup
14478         GridItem.Parent for hierarchical items.
14479         * PropertyGridView.cs : Set value on the correct target for
14480         hierarchical grids. [Fixes #78903]
14482 2006-09-26  Chris Toshok  <toshok@ximian.com>
14484         * Control.cs (ChildNeedsRecreating): this should return true if
14485         either we're being recreated and the child is in our list, or our
14486         parent is waiting for our recreation.
14488 2006-09-26  Chris Toshok  <toshok@ximian.com>
14490         * Control.cs (ControlCollection.Remove): reinstate the
14491         value.Hide() call as suggested in bug #79294.
14493 2006-09-26  Sebastien Pouliot  <sebastien@ximian.com>
14495         * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
14496         coordinates (versus a relative move).
14498 2006-09-26  Chris Toshok  <toshok@ximian.com>
14500         * Control.cs: rework child recreation a little bit.  It turns out
14501         that we race between the DestroyNotify the WM_DESTROY message.  If
14502         the parent gets its DestroyNotify before the child gets the
14503         WM_DESTROY message, the child ends up not recreating (since the
14504         parent finishes its recreation on DestroyNotify, and the child
14505         checks ParentIsRecreating.)
14507         So, instead we store off a list of all the child controls which
14508         need to be recreated when the parent control starts to recreate
14509         itself.  Then, when child controls get their WM_DESTROY message we
14510         check to see if they're in the parent's pending recreation list,
14511         and if so, we recreate.  This removes all dependency on ordering
14512         from the code and fixes the initial MonoCalendar upgrade dialog.
14513         
14514 2006-09-26  Jackson Harper  <jackson@ximian.com>
14516         * TextControl.cs: Use the Line to get the length of the line,
14517         since soft line breaks can change the end line.
14519 2006-09-26  Chris Toshok  <toshok@ximian.com>
14521         * Control.cs (ControlCollection.AddImplicit): don't add the
14522         control again if it's already in one of our lists.  This keeps us
14523         from adding controls over and over again for comboboxes when their
14524         handle gets recreated (as the combobox adds implicit controls in
14525         OnHandleCreated).  Fixes the X11 errors in bug #79480.
14527 2006-09-26  Jackson Harper  <jackson@ximian.com>
14529         * TextControl.cs: When deleting characters make sure that any
14530         orphaned zero lengthed tags get deleted.
14531         - Fix ToString for zero lengthed tags.
14533 2006-09-25  Jackson Harper  <jackson@ximian.com>
14535         * TextControl.cs: When getting a tag at the location there can be
14536         multiple tags at the same spot, these are 0-lengthed tags that
14537         appear when extra formatting has been stuck in a location.  We
14538         need to pull out the last of these 0 lengthed tags.
14540 2006-09-25  Jackson Harper  <jackson@ximian.com>
14542         * TextControl.cs: Fix print out in debug method.
14543         * TextBoxBase.cs: When text is set bail if we are setting to the
14544         previous value.
14545         
14546 2006-09-24  Alexander Olk  <alex.olk@googlemail.com>
14548         * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
14549           It is now possible to change the selected index in a FontXXXListBox
14550           with the up and down arrow keys from the FontXXXTextBoxes.
14551           Also, send the FontXXXTextBox mouse wheel event to the corresponding
14552           FontXXXListBoxes to match ms.
14554 2006-09-22  Sebastien Pouliot  <sebastien@ximian.com>
14556         * SystemInformation.cs: Return a clone of the theme's MenuFont because
14557         anyone can dispose it, anytime. All other properties returns enums, 
14558         structs or basic types so they don't need such tricks.
14560 2006-09-22  Jackson Harper  <jackson@ximian.com>
14562         * XplatUI.cs:
14563         * XplatUIWin32.cs:
14564         * Clipboard.cs:
14565         * DataFormats.cs:
14566         * XplatUIOSX.cs:
14567         * XplatUIDriver.cs: Update interface to add a primary selection
14568         flag, so the driver can use the primary selection buffer if
14569         needed.
14570         * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
14572         * RichTextBox.cs: We need to supply the data object to paste now
14573         (so we can choose to supply CLIPBOARD or PRIMARY).
14574         * TextBoxBase.cs: Supply data object to paste (see above).
14575         - Middle click uses the primary selection data object.
14576         
14577 2006-09-21  Chris Toshok  <toshok@ximian.com>
14579         * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
14580         of SetWMStyles.  It's still a rat's nest and is largely
14581         order-dependent which I dislike immensely.  This also fixes the X
14582         button disappearing from toplevel forms.
14584 2006-09-21  Mike Kestner <mkestner@novell.com>
14586         * ListBox.cs: move Jordi's click/dblclick raising code to the
14587         mouse up handler.
14589 2006-09-21  Jordi Mas i Hernandez <jordimash@gmail.com>
14591         * ListBox.cs: Fixes 79450
14593 2006-09-21  Mike Kestner <mkestner@novell.com>
14595         * TreeView.cs: guard against disposed conditions in UpdateScrollbars
14596         to deal with people updating the TreeNodeCollection after the tree
14597         is disposed.  "Fixes" 79330.
14599 2006-09-20  Jackson Harper <jackson@ximian.com>
14601         * TextControl.cs: Push the cursor record onto the undo stack
14602         before the delete action. This fixes 78651.
14604 2006-09-20  Jonathan Chambers  <joncham@gmail.com>
14606         * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
14607         CreateParams. Fixes 79329.
14609 2006-09-19  Chris Toshok  <toshok@ximian.com>
14611         * XplatUIX11.cs: a couple of blanket code massage passes to clean
14612         things up a bit.  First, get rid of the NetAtoms array (and the NA
14613         enum), and just embed the atoms as static fields.  Also, add a
14614         couple of functions (StyleSet and ExStyleSet) to clean up all the
14615         bitmask testing of styles.
14617         * X11Structs.cs: remove the NA enum, not needed anymore.
14618         
14619 2006-09-19  Chris Toshok  <toshok@ximian.com>
14621         * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
14622         (mapping them to _NET_WM_WINDOW_TYPE_UTILITY).  and add a little
14623         added cleanup to get MessageBox titles appearing again, which were
14624         broken by my earlier fix for caption-less/ControlBox-less windows.
14626 2006-09-18  Jonathan Pobst <monkey@jpobst.com>
14628         * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
14629           ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
14630           ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
14631           ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
14632           ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
14633           ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
14634           ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
14635           ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
14636           ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
14637           ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
14638           ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
14639             Inital import.
14640         * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
14641           ToolStripButton.cs: Stubs needed for above.
14642         * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
14644 2006-09-15  Chris Toshok  <toshok@ximian.com>
14646         * XplatUIX11.cs:
14647         - make the MessageQueues hashtable Synchronized.
14648         
14649         - SendMessage: if the Hwnd is owned by a different thread, use the
14650         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
14651         thread.  Fixes bug #79201.
14653 2006-09-15  Chris Toshok  <toshok@ximian.com>
14655         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
14656         ControlBox == false, we disallow maximize/minimize/close.  If the
14657         form Caption is "" we also disallow move (and get rid of the Title
14658         decoration).  Unfortunately, regardless of how things are set,
14659         we're stuck with the Title and WM menu.
14661 2006-09-15  Chris Toshok  <toshok@ximian.com>
14663         * Application.cs: add locking around the static message_filters
14664         ArrayList, part of #79196.
14666 2006-09-15  Chris Toshok  <toshok@ximian.com>
14668         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
14669         Form.ControlBox == false, the window has no titlebar nor resize
14670         handles.  fixes bug #79368.
14672 2006-09-15  Chris Toshok  <toshok@ximian.com>
14674         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
14675         >= 0.  Fixes bug #79370.
14677 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
14678         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
14679         * Control.cs:
14680             Add properties: LayoutEngine, Margin, DefaultMargin.
14681             Add method: GetPreferredSize.
14682             Move layout logic from PerformLayout to layout engines. 
14684 2006-09-13  Chris Toshok  <toshok@ximian.com>
14686         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
14687         fix for #79326 broke #78718, so this change addresses that.
14689         - in SendWMDestroyMessages remove the call to
14690         CleanupCachedWindows, since we might be recreating the control and
14691         need to maintain the references to right Hwnd handles.  Also, set
14692         the zombie flag to true for each of the children in the hierarchy
14693         instead of calling hwnd.Dispose.  This will cause GetMessage to
14694         ignore all events for the window except for DestroyNotify.
14696         - In GetMessage, ignore messages except for DestroyNotify for
14697         zombie hwnds.
14698         
14699         * Control.cs: revert the is_recreating fix from the last
14700         ChangeLog.  It's definitely "right", but it breaks switching from
14701         an MDI form to a non-MDI form.  Will need to revisit that.
14703         * Hwnd.cs: add a zombie flag, which means "the
14704         client_window/whole_window handles are invalid, but we're waiting
14705         for the DestroyNotify event to come in for them".  Set the flag to
14706         false explicitly if setting WholeWindow/ClientWindow, and also
14707         when Disposing.
14708         
14709 2006-09-13  Chris Toshok  <toshok@ximian.com>
14711         * XplatUIX11.cs: rework window destruction slightly.
14713         - when destroying the windows associated with a control, we don't
14714         need 2 separate XDestroyWindow calls.  Just the one for the
14715         whole_window (or for client_window if whole_window is somehow
14716         IntPtr.Zero -- can this happen?) is enough.
14718         - reworked SendWMDestroyMessages slightly, so we always dispose
14719         the child control hwnd's after sending the messages.
14720         
14721         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
14722         the two places it was used (one was even using hwnd.Handle and the
14723         other hwnd.client_window.  ugh), adding another call in
14724         SendWMDestroyMessages.  We need this new call because now the
14725         DestroyNotify events in the queue will be ignored for the child
14726         controls (as their hwnd's were disposed, and the window id's
14727         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
14729         - this fixes bug #79326.
14731 2006-09-13  Chris Toshok  <toshok@ximian.com>
14733         * Control.cs: don't always set is_recreating to false at the end
14734         of RecreateHandle, since sometimes we're not done (and won't be
14735         until WndProc handles the WM_DESTROY message).  Also, set
14736         is_recreating to false in the WM_DESTROY handling code.  Part of
14737         the fix for bug #79326.
14739 2006-09-13  Miguel de Icaza  <miguel@novell.com>
14741         * X11DesktopColors.cs: Start the droppage of debugging messages.
14743         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
14745 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
14747         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
14749 2006-09-12  Chris Toshok  <toshok@ximian.com>
14751         * DataGrid.cs (get_ListManager): if the list_manager is null, try
14752         to create it using SetDataSource.  Fixes bug #79151.
14754 2006-09-11  Chris Toshok  <toshok@ximian.com>
14756         * XEventQueue.cs: add a DispatchIdle property.
14758         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
14759         either the queue is null, or the queue has DispatchIdle set to
14760         true.
14761         (DoEvents): set queue.DispatchIdle to false around the
14762         peek/translate/dispatch message loop in this method.  This keeps
14763         Application.Doevents from emitting idle events.  Part of the fix
14764         for #78823.
14766 2006-09-11  Chris Toshok  <toshok@ximian.com>
14768         * DataGrid.cs (set_DataSource): make this work for both the
14769         winforms/datagrid test and ReportBuilder.  It seems as though when
14770         we've created a ListManager (or maybe it's if we have a
14771         BindingContext?), when we set the DataSource it clears the
14772         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
14773         #79333.
14775 2006-09-11  Chris Toshok  <toshok@ximian.com>
14777         * XplatUIX11.cs: deal with queue being null, which happens in all
14778         the Clipboard functions.  Fixes one of the two problems mentioned
14779         in #78612.
14781 2006-09-11  Chris Toshok  <toshok@ximian.com>
14783         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
14784         button on various spots (including outside the menu) works closer
14785         to MS, and doesn't crash.  Fixes #79343.
14787 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
14789         * ListView.cs: Do not initialize item_sorter in init. To match MS,
14790         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
14791         and the internal comparer is set. When a new ListViewItemSorter is set,
14792         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
14793         was specified. No further processing is necessary if SortOrder is set
14794         to it's current value. If Sorting is modified to None, and View is
14795         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
14796         (either custom or our internal ItemComparer) to null, on 1.0 profile
14797         only set item_sorter to null if its our internal IComparer. If Sorting
14798         is modified to Ascending or Descending, then use our internal IComparer
14799         if none is set, and if the current IComparer is our internal one then:
14800         on 2.0 profile always replace it with one for new Sorting, and on 1.0
14801         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
14802         Enum.IsDefined to verify whether a valid View value is specified in
14803         its setter. Automatically sort listview items when listview is
14804         created. In Sort, do nothing if ListView is not yet created, or if
14805         no item_sorter is set (no Sorting was set, Sorting was explicitly set
14806         to None or ListViewItemSorter was set to null). Added Sort overload
14807         taking a bool to indicate whether the ListView should be redrawn when
14808         items are sorted (we use this in ListViewItemCollection to avoid double
14809         redraws). Modified our internal IComparer to take the sort order into
14810         account. In Add and AddRange methods of ListViewItemCollection, also
14811         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
14812         view), but use overload with noredraw option to avoid double redraw.
14813         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
14814         true when View is Tile, and do the same when attempting to set View to
14815         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
14816         for selected/checked indices, as it involves overhead when sorting is
14817         done while these collections are not used all that often. Instead
14818         we'll build the indices on demand. Modified IList implementation of
14819         CheckedIndexCollection to use public methods if object is int.
14820         Modified CheckedListViewItemCollection to hide checked items if
14821         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
14822         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
14823         IList implementation in SelectedIndexCollection to use public methods
14824         if object is int. Modified SelectedListViewItemCollection to hide
14825         selected items if listview is not yet created.
14826         * ListViewItem.cs: CheckedIndices list no longer needs to be
14827         maintained separately (see ListView changes). Also clone font, fixes
14828         test failure.
14830 2006-09-11  Mike Kestner  <mkestner@novell.com>
14832         * ComboBox.cs: if we are updating the contents of the currently
14833         selected index, refresh the control or the textbox selection.
14834         [Fixes #79066]
14836 2006-09-11  Mike Kestner  <mkestner@novell.com>
14838         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
14839         the 'specified' logic has been moved there.  This seems like a bug 
14840         in Control.cs, since our current SetBoundsCore completely ignores 
14841         the specified parameter.  Peter's commit seems to indicate that is 
14842         the way the MS control implementation works.  [Fixes #79325]
14844 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
14846         * XplatUI.cs: Set default_class_name to be composed
14847         of current domain id. This allows MWF to be loaded in multiple
14848         domains on Win32.
14850 2006-09-09  Miguel de Icaza  <miguel@novell.com>
14852         * X11Keyboard.cs: If we are unable to obtain the input method, do
14853         not call CreateXic to create the input context.   Should fix
14854         #78944/79276.
14856 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
14858         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
14859           Simplified gnome support by adding more pinvokes to get the
14860           icon for a file or mime type.
14862 2006-09-08  Jackson Harper  <jackson@ximian.com>
14864         * MenuAPI.cs: Deslect popup context menu items before closing the
14865         window, so that you don't see the previously selected item
14866         selected when you reopen the menu.
14867         * TextControl.cs: Update the cursor position even if we don't have
14868         focus.  This fixes typing in things like the ComboBox.  I'm not
14869         totally sure we should always set the visibility if we don't have
14870         focus, but couldn't find any corner cases where the cursor showed
14871         up when it shouldn't.
14873 2006-09-08  Chris Toshok  <toshok@ximian.com>
14875         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
14876         our arrays are length 256.  & 0xff before indexing.  Fixes the
14877         crash in bug #78077.
14878         
14879 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14881         * ThemeWin32Classic.cs: 
14882         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
14883         is true. Handle that check box too.
14885 2006-09-07  Chris Toshok  <toshok@ximian.com>
14887         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
14888         79244.
14890 2006-09-07  Chris Toshok  <toshok@ximian.com>
14892         * Control.cs: in set_BackColor only do the work if
14893         background_color != value.
14895         * XplatUIX11.cs: move the clearing of invalid areas (both client
14896         and nc) to the same block of code where we set (nc_)expose_pending
14897         to false.  That is, move it from PaintEventEnd to PaintEventStart,
14898         so things that cause invalidates from within OnPaint will trigger
14899         another call to OnPaint.  Fixes bug #79262.
14901 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
14903         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
14904         * FileDialog.cs: Fix typo
14906 2006-09-07  Jackson Harper  <jackson@ximian.com>
14908         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
14909         for tab pages if they have any.
14911 2006-09-06  Mike Kestner  <mkestner@novell.com>
14913         * Splitter.cs: use the "current" rect when finishing drag handle
14914         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
14916 2006-09-06  Mike Kestner  <mkestner@novell.com>
14918         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
14919         support offset splitters. [Fixes #79298]
14921 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
14923         * Mime.cs: Fixed a bug that could override the global mime type
14924           result.
14926 2006-09-05  Jackson Harper  <jackson@ximian.com>
14928         * TabControl.cs: Better calculation method for setting the slider
14929         pos. Prevents crashes on really wide tabs.
14930         - Draw Image on tab pages if an image list is used.
14932 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14934         * MonthCalendar.cs: When Font changes, the Size should be
14935         updated to fit the new font's space requirements.
14937 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
14939         * ListBox.cs: If the items are cleared with Items.Clear set
14940           top_index to 0.
14942 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14944         * MonthCalendar.cs: Handle arrow keys as input keys. Also
14945         fire DateChanged event instead of DateSelected event when
14946         the date was changed by keyboard interaction.
14948 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14950         * DateTimePicker.cs: Handle DateChanged for the associated
14951         month_calendar control, and set month_calendar.Font from 
14952         OnFontChanged method, as well as resize the height of the
14953         control when needed. Make PreferredHeight proportional.
14955 2006-09-01  Chris Toshok  <toshok@ximian.com>
14957         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
14958         properties.
14960         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
14962 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
14964         * FileDialog.cs: Set ClientSize instead of window size, to allow space
14965           for decorations (Fixes #79219)
14967 2006-09-01  Mike Kestner  <mkestner@novell.com>
14969         * ComboBox.cs: first stab at sorting plus some selection handling
14970         fixes to bring us more in line with MS behavior.  Also switches back
14971         to index based selection.  Alternative patches for index-based 
14972         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
14973         and latency@gmx.de on bug 78848.  I assume they were similar to this
14974         code I've had simmering in my tree forever.
14975         [Fixes #78848]
14977 2006-09-01  Chris Toshok  <toshok@ximian.com>
14979         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
14980         when setting list position guard against ending up with a -1 index
14981         (the other part of the fix for #78812).  Should probably make sure
14982         we don't need the analogous fix in the ItemDeleted case.
14984         * DataGrid.cs:
14985         - in SetDataSource, work around the fact that the way
14986         OnBindingContextChanged is invoked will cause us to re-enter this
14987         method.  I'll remove the hack once I investigate
14988         OnBindingContextChanged.
14990         - fix the logic in set_DataSource and set_DataMember (basically
14991         what to do if the other of the two is null.)
14992         
14993         - in OnListManagerItemChanged, we need to take into account the
14994         edit row when deciding whether or not to call RecreateDataGridRows
14995         (part of the fix for #78812).
14997 2006-09-01  Jackson Harper  <jackson@ximian.com>
14999         * Splitter.cs: Don't do anything if there is no control to affect
15000         (prevents us from crashing in weird tet cases).
15001         * TreeView.cs: Bounding box for the mouse movement reverting
15002         focus/selection back to previously selected node.  This matches
15003         MS, and makes the tree a lot more useable.
15004         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
15005         use clipping so they are not drawn.  This fixes when the control
15006         is set to have a transparent background, or if it was over an
15007         image.
15009 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
15011         * MimeIcon.cs: Improved handling for reading default icons when
15012           using gnome (2.16 made it necessary). Check and read svg icons
15013           first, then 48x48 and then 32x32 icons.
15015 2006-08-31  Chris Toshok  <toshok@ximian.com>
15017         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
15018         visible.
15020         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
15021         ProcessKeyPreview.  Fixes part of #77806.
15023         * DataGrid.cs: big patch.
15025         - revert the queueing up of DataSource/DataMember if inside
15026         BeginInit/EndInit calls.  That's not the way the datagrid achieves
15027         its delayed databinding.  Instead, call SetDataSource in
15028         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
15029         #78811.
15031         - Also, it wasn't mentioned in #78811, but the test case exhibits
15032         behavior that was lacking in our datagrid implementation - Columns
15033         that have mapping names that don't exist in the datasource's
15034         properties aren't shown.  Yuck.  To fix this I added the bound
15035         field to the column style, and basically any calculation to figure
15036         out anything about columns uses a loop to find the bound columns.
15037         still need to investigate if I can cache an array of the bound
15038         columns or if the indices must be the same.
15040         - When setting CurrentCell, we no longer abort if the cell being
15041         edited was in the add row.  This fixes the other part of #77806.
15043         - The new code also fixes #78807.
15044         
15045         * ThemeWin32Classic.cs: perpetrate the same disgusting
15046         column.bound field hack, and only render bound fields.
15048 2006-08-31  Chris Toshok  <toshok@ximian.com>
15050         * DataGridColumnStyle.cs: add bound field.  this field is true if
15051         the datasource has a property corresponding to the mapping name.
15053         * DataGridTableStyle.cs: set the bound field on the column styles
15054         depending on whether or not we have a column for that property.
15056 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
15058         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
15059           splitter control (fixes #79228)
15061 2006-08-31  Chris Toshok  <toshok@ximian.com>
15063         * DataGridColumnStyle.cs: we need to delay the assignment of
15064         property descriptor until the last possible moment due to the lazy
15065         databinding stuff in the datagrid.  Also, fix the exceptions
15066         thrown by CheckValidDataSource to match MS.
15068 2006-08-31  Jackson Harper  <jackson@ximian.com>
15070         * Form.cs: When activated select the active control, if there is
15071         no active control, we select the first control.
15072         * XplatUIX11.cs: If there is no focus control when we get a
15073         FocusIn event, find the toplevel form and activate it.  This
15074         occurs when you popup a window, it becomes the focus window, then
15075         you close that window, giving focus back to the main window.
15077 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15079         * MonthCalendar.cs: 
15080         * ThemeWin32Classic.cs: Cache Font in bold style, as well
15081         as StringFormat with Center alignments in MonthCalendar,
15082         instead of creating new ones when drawing the control. 
15083         Also, draw the month name in bold style.
15085 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
15087         * Control.cs:
15088           - PerformLayout(): It would seem MS performs the fill even if the 
15089             control is not visible (part of #79218 fix)
15090           - ResetBackColor(): Use the setter to reset the color, to allow
15091             overriders to catch the change.
15092         * Form.cs:
15093           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
15094           - CreateHandle(): dito (part of $79218 fix)
15095           - Don't set an icon if we have a dialog
15096         * ScrollableControl.cs:
15097           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
15098           - ScrollIntoView(): No need to scroll if control is already visible
15099             (resolves fixme and fixes #79218)
15101 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15103         * MonthCalendar.cs: Change proportions in SingleMonthSize
15104         to match the aspect of the original control.
15106 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
15108         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
15109           get updated when they get maximized.
15111 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
15113         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
15115 2006-08-29  Chris Toshok  <toshok@ximian.com>
15117         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
15119 2006-08-29  Jackson Harper  <jackson@ximian.com>
15121         * TreeView.cs: Need to track selected node and highlighted node,
15122         they aren't always the same thing, when the mouse is down on a
15123         node it is hilighted, but not selected yet.
15124         - Do the HideSelection stuff right
15125         - Need to focus on rbutton mouse down. And redraw selection when
15126         right click is mouse upped.
15128 2006-08-29  Mike Kestner  <mkestner@novell.com>
15130         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
15131         when SubItems.Count < Columns.Count.  [Fixes #79167]
15133 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
15135         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
15137 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
15139         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
15140           from X. Only send based on ConfigureNotify if we don't have the
15141           correct location in hwnd (if the window manager moved us)
15143 2006-08-28  Mike Kestner  <mkestner@novell.com>
15145         * ListView.cs: remove a TODO. 
15146         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
15147         [Fixes ListView part of #79166]
15149 2006-08-28  Mike Kestner  <mkestner@novell.com>
15151         * ListView.cs: move wheel handler to parent since it is focused
15152         instead of the item_control now.  [Fixes #79177]
15154 2006-08-28  Mike Kestner  <mkestner@novell.com>
15156         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
15157         when the control is focused. [Fixes #79171]
15159 2006-08-28  Mike Kestner  <mkestner@novell.com>
15161         * ListView.cs: size the item and header controls for empty and
15162         unscrollable views.
15163         * ThemeWin32Classic.cs: draw disabled backgrounds.
15164         [Fixes #79187]
15166 2006-08-28  Chris Toshok  <toshok@ximian.com>
15168         * Form.cs: remove unused "active_form" static field.
15170         * Hwnd.cs: lock around accesses to static windows collection.
15172         * Application.cs: lock threads in Exit ().
15174 2006-08-28  Chris Toshok  <toshok@ximian.com>
15176         * NativeWindow.cs: lock around accesses to window_collection.
15177         
15178 2006-08-28  Chris Toshok  <toshok@ximian.com>
15180         * Control.cs: err, fix this the right way, by locking on controls
15181         when using it.  not by making it synchronized.
15183 2006-08-28  Chris Toshok  <toshok@ximian.com>
15185         * Control.cs: make the static "controls" field synchronized, as it
15186         gets updated from multiple threads.
15188 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
15190         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
15191           Prevent other threads from exiting when calling thread sets quit state.
15192         * XEventQueue.cs: Added PostQuitState property
15194 2006-08-27  Chris Toshok  <toshok@ximian.com>
15196         * AsyncMethodData.cs: add a slot for the window handle.
15198         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
15199         window (the destination control's window, not the foster window).
15201         * Control.cs (BeginInvokeInternal): store the window's handle in
15202         the AsyncMethodData.
15203         
15205 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
15207         * XplatUIX11.cs:
15208           - PostQuitMessage: Removed resetting S.D display handle, we might have
15209             another loop started after calling PostQuitMessage (Fixes #79119)
15210           - Created destructor to reset S.D handle
15212 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
15214         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
15216 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
15218         * TextControl.cs (Insert): Update the caret position even if we don't
15219           have a handle yet, just don't call the driver in that case.
15220         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
15221           to the end of the new selection text (Fixes #79184)
15223 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
15225         * Form.cs (Activate): Only activate if the handle is created)
15226         * Control.c:
15227           - Mark window as invisible when it's disposed
15228           - Check if window handle is created when setting window visible, 
15229             instead of relying just on the is_created variable
15230           - Check if object is disposed when creating the control (Fixes #79155)
15232 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
15234         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
15235           when allowing layout again. Otherwise we re-generate the anchoring 
15236           distance to the border again and actually alter what the user wanted
15237           This is ugly, it'd be better if we used DisplayRectangle instead of
15238           ClientRectangle for Control.UpdateDistances, but that causes us to
15239           have other problems (initial anchoring positons would be wrong)
15240           (Fixes #78835)
15242 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
15244         * Control.cs:
15245           - The size and location setters shouldn't go directly to 
15246             SetBoundsCore, but to SetBounds, which triggers layout on the
15247             parent, then calls SetBoundsCore. (Related to fix for #78835)
15248           - SetBounds: Moved actual location update code into this function
15249             from SetBoundsCore, to match MS. Added call to PerformLayout if
15250             we have a parent (to trigger resizing of anchored parents if the 
15251             child size has changed (see testcase for #78835) 
15252         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
15253           new control code
15254         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
15256 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
15258         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
15259           System.Drawing when a toplevel window gets closed; there might
15260           be other toplevel windows belonging to the same app (Fixes #78052)
15262 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
15264         * FileDialog.cs: After reading FileDialog settings from mwf_config
15265           use Desktop prefix only if a real folder doesn't exist anymore.
15266         * FontDialog.cs: Added char sets.
15267           It is now possible to select the font, size or style with the
15268           textboxes.
15270 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
15272         * PrintPreviewDialog.cs: Use assembly name constants.
15274 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
15276         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
15277           scrollbar from whacking it's buttons)
15279 2006-08-24  Chris Toshok  <toshok@ximian.com>
15281         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
15282         in this patch (aggregating setting Left/Top/Width/Height to
15283         setting Bounds on the scrollbars), but the crux of the fix is in
15284         Recalculate, where we scroll by the remaining scroll_position if
15285         we're hiding a scrollbar.  The 2*$5 reward in the comment is
15286         serious.
15288 2006-08-24  Jackson Harper  <jackson@ximian.com>
15290         * MdiClient.cs:
15291         * MdiWindowManager.cs: If the form is made a non-mdi window we
15292         need to remove the form closed event so that closing forms works
15293         correctly.
15295 2006-08-24  Jackson Harper  <jackson@ximian.com>
15297         * Control.cs: Make IsRecreating internal so that the driver can
15298         check it
15299         - Temporarily remove the Hide when controls are removed, its
15300         making a whole bunch of things not work because visibility isn't
15301         getting reset elsewhere correctly
15302         * Form.cs: Need to do a full handle recreation when the mdi parent
15303         is set.
15304         * XplatUIX11.cs: If we are recreating handles don't dispose the
15305         HWNDs.  What was happening is the handles were being recreated in
15306         SendWMDestroyMessages, but then flow continued on in that method
15307         and destroyed the new handles.
15309 2006-08-23  Jackson Harper  <jackson@ximian.com>
15311         * Form.cs: MdiClient is always at the back of the bus
15312         * Control.cs: When the order of items in the collection is changed
15313         we need to reset the all_controls array
15314         - do the same sorta setup thats done when adding a control when a
15315         control is set on the collection.
15317 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
15319         * TextBoxBase.cs (get_Text): Return an empty array if our document
15320           is empty (fixes #79052)
15322 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
15324         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
15325           on WM_SYSCHAR messages (fixes #79053)
15327 2006-08-23  Chris Toshok  <toshok@ximian.com>
15329         * DataGrid.cs: fix flickering when scrolling vertically.
15331 2006-08-23  Chris Toshok  <toshok@ximian.com>
15333         * DataGrid.cs (EndEdit): only invalidate the row header when we
15334         need to.
15336 2006-08-23  Chris Toshok  <toshok@ximian.com>
15338         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
15339         methods.  fixes the flicker when scrolling around.
15341 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
15343         * FileDialog.cs: Making sure the control is created before we get a 
15344           chance to use it with BeginInvoke (Fixes #79096)
15346 2006-08-23  Chris Toshok  <toshok@ximian.com>
15348         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
15349         width to use when painting the rows.
15351 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
15353         * TextBoxBase.cs:
15354           - Throw ArgumentException if a negative value is passed to SelectionLength
15355           - Update the selection end if start is moved. end needs to be always
15356             after start. (Fixes #79095)
15357           - Track selection length; MS keeps the selection length even if start
15358             is changed; reset on all other operations affection selection
15360 2006-08-22  Jackson Harper  <jackson@ximian.com>
15362         * TreeView.cs: Make sure both scrollbars get displayed and sized
15363         correctly when the other bar is visible.
15364         - Use the original clip rectangle for checking if the area between
15365         the two scrollbars is visible, not the viewport adjusted clipping
15366         rectangle.
15368 2006-08-22  Jackson Harper  <jackson@ximian.com>
15370         * Binding.cs: We don't use IsBinding because it requires the
15371         control to be created, which really shouldn't be necessary just to
15372         set a property on the control.
15374 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15376         * ComboBox.cs: Some CB.ObjectCollection methods must throw
15377         ArgumentNullReferenceException when the argument is null.
15379 2006-08-21  Jackson Harper  <jackson@ximian.com>
15381         * Timer.cs: Track the thread that the timer is started in (NOT
15382         CREATED), this way messages for it will only be triggered on its
15383         queue.
15384         * XEventQueue.cs: Track the timers here, this makes timers per
15385         thread, like MS.
15386         * XplatUIX11.cs: The timers are moved to the XEventQueue.
15388 2006-08-19  Chris Toshok  <toshok@ximian.com>
15390         * XplatUIX11.cs: after further communication with pdb, we get the
15391         best of both worlds.  SetZOrder working for un-Mapped windows, and
15392         no X errors for un-mapped windows.
15394 2006-08-19  Chris Toshok  <toshok@ximian.com>
15396         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
15397         as it was causing pdn toolbars to not have the correct stacking.
15399 2006-08-18  Mike Kestner  <mkestner@novell.com> 
15401         * ListView.cs : guard against negative ClientArea.Width in scrollbar
15402         calculation.  Not sure why control should ever be setting a negative
15403         width though.  Fixes #78931.
15405 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15407         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
15408         null items in ObjectCollection class.
15409         * ListBox.cs.: Likewise.
15411 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
15413         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
15414           as the base method in ThemeWin32Classic should work fine.
15415           Fixed bug #78607.
15417 2006-08-18  Jackson Harper  <jackson@ximian.com>
15419         * Binding.cs: When validating if the value entered doesn't convert
15420         properly reset to the old value.
15421         * RadioButton.cs: Don't fire click when we get focus.
15423 2006-08-18  Jackson Harper  <jackson@ximian.com>
15425         * FileDialog.cs: Paint the selection on the directory combobox the
15426         same way as on MS. 
15428 2006-08-17  Jackson Harper  <jackson@ximian.com>
15430         * ErrorProvider.cs: Don't allow the error control to be selected.
15431         * Control.cs: Don't send the SetFocus messages, the control
15432         activation will do this, and if we do it blindly here validation
15433         does not work.
15435 2006-08-17  Jackson Harper  <jackson@ximian.com>
15437         * Control.cs:
15438         * ContainerControl.cs: Make validation events fire in the correct
15439         order.  TODO: For some reason the first validation event is not
15440         getting fired.
15442 2006-08-17  Mike Kestner  <mkestner@novell.com> 
15444         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
15446 2006-08-17  Mike Kestner  <mkestner@novell.com> 
15448         * ComboBox.cs : implement scroll wheel support for popped-down
15449         state. Fixes #78945. 
15451 2006-08-17  Jackson Harper  <jackson@ximian.com>
15453         * TreeView.cs: Specify treeview actions (old patch that didn't get
15454         committed for some reason).
15455         - Don't let the mouse wheel scroll us too far.  Just want to make
15456         the bottom node visible, not scroll it all the ways to the top.
15458 2006-08-17  Jackson Harper  <jackson@ximian.com>
15460         * XplatUIX11.cs: Mouse wheel events go to the focused window.
15462 2006-08-17  Mike Kestner  <mkestner@novell.com> 
15464         * ComboBox.cs : don't do mouseover selection in simple mode.
15466 2006-08-16  Jackson Harper  <jackson@ximian.com>
15468         * Form.cs: Fire the closing events for all the mdi child windows
15469         when a window is closed.  If the cancel args are set to true, the
15470         main window still gets the event fired, but it doesn't not close.
15471         * MdiWindowManager.cs: Do this closing cleanup in a Closed
15472         handler, instead of when the button is clicked, so cancelling the
15473         close works correctly.
15474         * ComboBox.cs: Send the mouse down to the scrollbar.
15476 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15478         * ListBox.cs: When passing 'null' to SelectedItem,
15479         set SelectedIndex to -1, to unselect items. This is the
15480         observed behaviour in .Net.
15482 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
15484         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
15485           MS flags saying there won't be any. (fixes #78800)
15486         * Control.cs (HandleClick): Made virtual
15488 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
15490         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
15491           cultures. Fixed bug #78399.
15493 2006-08-16  Jackson Harper  <jackson@ximian.com>
15495         * Form.cs: Use the MdiClients MdiChildren property to access
15496         MdiChildren instead of creating the array from the child controls.
15497         * MdiClient.cs: Maintain a separate array of the mdi children, so
15498         that insertion order is maintained when the Z-order is changed.
15500 2006-08-16  Mike Kestner  <mkestner@novell.com> 
15502         * ListView.cs : add an ItemComparer and default to it for sorting.
15503         Fixes #79076, but sorting needs a complete overhaul to be compat with
15504         MS.
15506 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
15508         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
15510 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
15512         * Hwnd.cs (Mapped): Properly traverse the tree
15514 2006-08-15  Chris Toshok  <toshok@ximian.com>
15516         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
15517         pass manager.Current.GetType() to ParseData.  It has to be the
15518         property type.  So, hold off doing the ParseData until we're in
15519         SetPropertyValue where we know the type.  This fixes the crash in
15520         #78821 but the textbox is still empty.
15522 2006-08-15  Chris Toshok  <toshok@ximian.com>
15524         * DataGrid.cs:
15525         - when we're scrolling, only call Edit() again if the
15526         current cell is still unobscured. Fixes bug #78927.
15527         - when handling mousedown on a cell, ensure the cell is visible
15528         before calling Edit.
15529         - remove the properties from DataGridRow, and remove the
15530         DataGridParentRow class altogether.
15531         
15533 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
15535         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
15536           fire OnTextChanged by ourselves. There's no point calling base,
15537           we don't set the base value anywhere else. Fixes #78773.
15539 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15541         * ListBox.cs: Call CollectionChanged when modifying
15542         an item from Items indexer, to update the actual items
15543         in the list box.
15545 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15547         * PrintDialog.cs: Small fixes for focus and a pair of checks,
15548         to match .Net behaviour.
15550 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
15552         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
15554 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
15556         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
15558 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
15560         * MessageBox.cs: Prevent potential NRE exception.
15561         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
15563 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
15565         * MessageBox.cs: Calculate the owner of a messagebox, also make
15566           it topmost. Fixes #78753
15568 2006-08-14  Chris Toshok  <toshok@ximian.com>
15570         * XplatUIX11.cs: A couple of fixes so that metacity will let us
15571         programmatically move windows.  first, set the PPosition hint as
15572         well as the USPosition hint.  Second include some code from pdb
15573         that sets the window type to NORMAL when we set the transient for
15574         hint.  This is because, in the absence of a window type, metacity
15575         thinks any window with TransientFor set is a dialog, and refuses
15576         to let us move it programmatically.  fascists.
15578 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
15580         * XplatUIX11.cs: When setting normal hints, take into consideration
15581           an different hints previously set so we don't delete them (fixes #78866)
15583 2006-08-12  Chris Toshok  <toshok@ximian.com>
15585         * ToolBarButton.cs: make Layout return a boolean, if something to
15586         do with the button's layout changed.
15588         * ToolBar.cs:
15589         - add another parameter to Redraw, @force, which all existing
15590           calls set to true.
15591         - make the Layout function return a boolean which is true if the
15592           layout has actually changed.  Redraw now uses this (and @force)
15593           to determine when to invalidate.  At present the only place
15594           where @force can be false is the call from OnResize, when
15595           background_image == null.  So, resizing a toolbar when the
15596           layout doesn't change results in no drawing.
15598 2006-08-12  Chris Toshok  <toshok@ximian.com>
15600         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
15601         the VScrollBar and HScrollbar reversed.  oops.
15603         * DataGrid.cs: fix the logic that assigns sizes to the implicit
15604         scrollbars.  we were assigning them twice (once in
15605         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
15606         therefore causing two scrollbar resizes (and redraws?) to happen
15607         per grid resize.
15609 2006-08-12  Chris Toshok  <toshok@ximian.com>
15611         * ToolBarButton.cs: redraw the entire button if the theme tells us
15612         to.
15614         * Theme.cs: add ToolBarInvalidateEntireButton.
15616         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
15617         buttons, just the border.
15619         * ThemeNice.cs: redraw the entire toolbar button since we need to
15620         draw the highlight image.
15622         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
15623         we need to redraw the entire button (not just the border).
15625 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
15627         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
15628           for vertical bars. Fixes the mismatches shown by #78513
15630 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
15632         * FileDialog.cs: If a saved/remembered path doesn't exist
15633           anymore, fall back to "Desktop".
15635 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
15637         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
15638           parent. It's apparently legal to not have one
15639         * XplatUIX11.cs:
15640           - SetZOrder: Don't try to set Z-Order on an unmapped window
15641           - CreateWindow: 0,0 are legal coordinates for a window. don't move
15642             it unless the coordinates are negative
15644 2006-08-10  Mike Kestner  <mkestner@novell.com>
15646         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
15647         when setting to null per msdn docs.  Fixes #78854.
15649 2006-08-10  Chris Toshok  <toshok@ximian.com>
15651         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
15652         flickering by setting a clip rectangle on the Graphics when we
15653         need to redraw just a particular menuitem.  Also, rename "OnClick"
15654         to "OnMouseDown" to reflect what it actually is.
15655         
15656         * Form.cs: track the OnMouseDown change.
15658 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
15660         * CommonDialog.cs: Properly inherit the CreateParams from the form
15661           and only change what we need. Fixes #78865
15663 2006-08-10  Chris Toshok  <toshok@ximian.com>
15665         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
15666         flickering in flat mode (and most of the flickering in general) by
15667         only invalidating the button border (and not the entire rectangle)
15668         when the state changes.  A couple of cases still flicker:
15669         ToggleButtons, and the dropdown arrow case when the user mouse
15670         ups.
15672 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
15674         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
15675           for german keyboards. Numlock state shouldn't affect the behaviour
15676           of the Del key. Fixes bug #78291.
15678 2006-08-10  Chris Toshok  <toshok@ximian.com>
15680         * ListControl.cs: remove the items.Clear line from BindDataItems,
15681         as this is the first thing done by both subclasses in their
15682         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
15683         passed -1, refresh the list.  This gets databinding working when
15684         the datasource is set on the list before the datasource is
15685         populated (as in wf-apps/ReportBuilder.)
15687         * ComboBox.cs: remove the argument to BindDataItems.  This call
15688         should really go away, and be initiated by the ListControl code.
15690         * ListBox.cs: same.
15692 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
15694         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
15695           if no data is in the document when the control is displayed
15697 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
15699         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
15700           yes (fixes #78806)
15701         * TextControl.cs: 
15702           - PositionCaret: Allow positioning of caret but don't call methods 
15703             requiring a handle if the window isn't created yet
15704           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
15705           - owner_HandleCreated: Don't position the caret, just update it's 
15706             location. User might have already set a different position
15708 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
15710         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
15711           windows. Screws up the returned coordinates for child windows. 
15712           Fixes #78825. I'm hoping this doesn't break something, since the
15713           code was explicitly put in 8 months ago, but no bug was attached.
15714           Menus still seem to work properly.
15716 2006-08-08  Chris Toshok  <toshok@ximian.com>
15718         * DataGrid.cs: make BeginInit/EndInit actually do what they're
15719         supposed to do - delay data binding until the EndInit call.  Also,
15720         make the table style collection's CollectionChangeAction.Refresh
15721         work properly.
15723         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
15724         (with action = Refresh) when a consituent table's MappingName is
15725         changed.
15727 2006-08-08  Chris Toshok  <toshok@ximian.com>
15729         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
15730         Invalidate, since changing the text can change the size of the all
15731         toolbar buttons.
15733 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
15735         * Form.cs (AddOwnedForm): Still need to add the form to our listif
15736           we don't have it yet
15738 2006-08-08  Chris Toshok  <toshok@ximian.com>
15740         * PrintControllerWithStatusDialog.cs: don't .Close() the status
15741         dialog, as this causes X errors later on, since we actually
15742         destroy the window.  Instead, .Hide() it.
15744 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
15746         * ComboBox.cs: Added focus reflection for popup window
15747         * XplatUIX11.cs: 
15748           - Removed transient setting for non-app windows for now, not sure it
15749             was needed
15750           - Fixed logic checking if we have captions when deciding 
15751             override_redirect, WS_CAPTION is two bits and a 0 check was not
15752             sufficient
15753           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
15754             complicated
15755         * Form.cs: 
15756           - AddOwnedForm: Don't just add the form to the list, call the property
15757             to ensure the driver is informed about the ownership as well
15758           - CreateHandle: Set the TopMost status in the driver if we have an owner
15759         * XplatUI.cs: Fixed debug statement
15761 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
15762         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
15763           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
15764           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
15765           TrackBarRenderer.cs: Make constructor private.
15766         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
15767         * ProfessionalColorTable.cs: Make properties virtual.
15769 2006-08-06  Duncan Mak  <duncan@novell.com>
15771         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
15772         is not changing.
15774 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
15775         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
15776           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
15777           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
15778           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
15779           Initial import of new 2.0 classes.
15781 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
15782         * Application.cs: Add 2.0 VisualStyles properties.
15784 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
15785         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
15786           XplatUIX11.cs: Create property to allow access to existing private
15787           variable "themes_enabled"
15789 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
15791         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
15792         file size, as otherwise our class libraries fail using windows. Fixes
15793         bug #78759.
15795 2006-08-04  Jackson Harper  <jackson@ximian.com>
15797         * Form.cs:
15798         * XplatUIX11.cs: Move the toolwindow window manager creation into
15799         the X11 driver, this way on win32 we can let windows create/handle
15800         the toolwindows.
15802 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15804         * PrintDialog.cs: Remove some redundant checks, add some others,
15805         clean some code, and move the focus to the text boxes when the
15806         values are incorrect.
15808 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
15810         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
15812 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
15814         * NumericUpDown.cs: Setting the Minimum and Maximum is now
15815           handled correctly. Fixes bug #79001.
15817 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15819         * PrintDialog.cs: The "Copies" numeric up down must have
15820         set the Minimum property to 1; only if the value is bigger
15821         than 1, activate "Collate" check box. This is the behaviour of .Net.
15822         Also modify the Document elements only if it is not null.
15824 2006-08-03  Jackson Harper  <jackson@ximian.com>
15826         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
15827         length. (We have a larger array then actual node count).
15828                 
15829 2006-08-03  Jackson Harper  <jackson@ximian.com>
15831         * ComboBox.cs: Don't show selection by default.
15832         - The SelectAll isn't needed here, since the focus code should do
15833         that
15834         - DDL style lists to manual selection drawing, so when they
15835         get/lose focus they have to invalidate.
15837 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
15839         * TextBoxBase.cs: Don't always show all selections by default.
15841 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
15842         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
15843           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
15844           Fixed various typos.
15846 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
15848         * Control.cs: Removing the controls in a ControlCollection with
15849           Clear now hides the controls as expected. Fixes bug #78804. 
15851 2006-08-03  Jackson Harper  <jackson@ximian.com>
15853         * Control.cs: Revert previous focus patch, it breaks reflector.
15855 2006-08-03  Jackson Harper  <jackson@ximian.com>
15857         * ComboBox.cs: Cleanup selection and focus with the combobox.
15858         This also eliminates some duplicated keyboard code, since now
15859         everything is handled by the main class.
15860         - Make list selection work on mouse up instead of down, to match
15861         MS.
15863 2006-08-02  Jackson Harper  <jackson@ximian.com>
15865         * Control.cs: Setting focus needs to go through the whole
15866         selection mechanism.
15868 2006-08-02  Chris Toshok  <toshok@ximian.com>
15870         * PrintPreviewDialog.cs: change MinimumSize to use
15871         base.MinimumSize so it works.
15873 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
15875         * TextControl.cs:
15876           - UpdateCaret: Added sanity check in case caret isn't defined yet
15877           - Line.Delete: Now updating selection and caret markers if we're
15878             transfering a node (Properly fixes #78323)
15879           - SetSelectionEnd: Added sanity check
15880         * TextBoxBase.cs: Removed broken attempt to fix #78323
15882 2006-08-01  Chris Toshok  <toshok@ximian.com>
15884         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
15885         Close() call is handled in Form, not here.
15887 2006-08-01  Chris Toshok  <toshok@ximian.com>
15889         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
15890         layout/rendering.
15892         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
15893         for sizes < 100% zoom.  The code now aggressively attempts to keep
15894         from calling document.Print (), and tries not to use the scaling
15895         g.DrawImage whenever possible (it still does if you scale to >
15896         100%, since usually that involves huge images).
15898         * PrintPreviewControl.cs: hook up the close button.
15900 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
15901         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
15902           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
15903           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
15904           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
15905           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
15906           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
15907           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
15908           Removed [Serializable] for 2.0 Event Handlers.
15910 2006-07-31  Jackson Harper  <jackson@ximian.com>
15912         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
15913         * TextControl.cs: Uncomment out the body of this method.
15915 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
15917         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
15918           standard cursors.
15920 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
15922         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
15923           that embed TextBox and need selections visible even if textbox is not
15924           focused to enforce that behaviour.
15925         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
15926           selection drawing
15928 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
15930         * TextControl.cs:
15931           - Added new SetSelectionStart/SetSelectionEnd overloads
15932           - Fixed viewport width assignment to be accurate
15933           - Adjusted alignment line shift calculations to allow cursor on right
15934             aligned lines to be always visible at the right border (like MS)
15935         * TextBoxBase.cs:
15936           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
15937           - TextBoxBase_SizeChanged: recalculating canvas on size changes
15938           - CalculateScrollBars: Use ViewPort size instead of window size, to
15939             properly consider space occupied by the border and scrollbars 
15940             (Fixes #78661)
15941           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
15942             calculations; no longer leaves artifacts
15943           - CaretMoved: Adjusted window scrolling to match MS and fixed several
15944             calculation bugs (Still missing right/center align calculations)
15946 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
15948         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
15949           use of both scroll rect and clip rect, as they do the same.
15951 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
15953         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
15954           in the event handler (fixes #78912)
15956 2006-07-31  Chris Toshok  <toshok@ximian.com>
15958         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
15959         grid.ListManager.Count, since grid.ListManager might be null.
15960         This of course begs the question "why are we drawing rows for a
15961         grid with no list manager (and therefor no rows)?"  Fixes the
15962         crash in bug #78929.
15964 2006-07-31  Chris Toshok  <toshok@ximian.com>
15966         * RelatedPropertyManager.cs: Don't always chain up to the parent
15967         ctor.  instead, call SetDataSource if the parent's position is !=
15968         -1.  Fixes the crash in #78822.
15970 2006-07-31  Chris Toshok  <toshok@ximian.com>
15972         * DataGrid.cs (get_ListManager): use field instead of property
15973         accessors for datasource and datamember.
15974         (RowsCount): make internal again.
15975         (OnMouseDown): end edits before resizing columns/rows.
15976         (OnMouseUp): restart edits after resizing columns/rows.
15978 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
15980         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
15981           This fixes the situation where the last set cursor is displayed
15982           whenever the mouse is over scrollbars.
15984 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15986         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
15987         Document properties, as well as initial values.
15989 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
15991         * XplatUIWin32.cs (SetBorderStyle): Setting both border
15992           and ClientEdge results in a 3-pixel border, which is
15993           wrong.
15995 2006-07-28  Jackson Harper  <jackson@ximian.com>
15997         * TreeNodeCollection.cs: Fix the clear method.
15998         - Fix the Shrink also
16000 2006-07-27  Jackson Harper  <jackson@ximian.com>
16002         * TreeView.cs: Make sure the visible order is computed when we
16003         attempt to size the scrollbars (for trees that mess with the
16004         scrolling when they shouldn't.
16005         - Make sure to give the scrollbars valid values.
16007 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
16009         * XplatUIX11.cs: Move motion compression code to where it
16010           has less performance impact
16012 2006-07-26  Jackson Harper  <jackson@ximian.com>
16014         * UpDownBase.cs: When the control is selected make the child
16015         controls non selectable, so that a click on them won't do a
16016         focus/unfocus cycle.
16017         - Don't give focus to the text box when the spinner is selected.
16018         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
16020 2006-07-26  Chris Toshok  <toshok@ximian.com>
16022         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
16023         satisfied with this solution.  If the bitmaps are small, we should
16024         just cache them in the PrintPreviewDialog and draw them here.
16025         Also, the layout is broken for the 2-up and 3-up cases.
16027         * Theme.cs: add PrintPReviewControlPaint.
16029         * PrintPreviewDialog.cs: first pass implementation.
16031         * PrintPreviewControl.cs: first pass implementation.  No
16032         scrollbars yet.
16034         * PrintDialog.cs: only validate fields if that particular portion
16035         of the UI is enabled.  Also, set the document's controller to a
16036         PrintControllerWithStatusDialog wrapping the document's print
16037         controller.
16039         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
16040         bring up a SaveFileDialog (i hope we don't want to match the
16041         behavior of the crappy windows file entry) and set the
16042         PrinterSettings.PrintFileName accordingly.
16044 2006-07-26  Jackson Harper  <jackson@ximian.com>
16046         * ContainerControl.cs: Add a field that disables auto selecting
16047         the next control in a container when the container is activated.
16048         * UpDownBase.cs: Don't select the text box when the up down is
16049         selected.
16051 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
16053         * XEventQueue.cs: Added methods for peeking (used for compression
16054           of successive events)
16055         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
16056           mouse move events (fixes #78732)
16058 2006-07-25  Jackson Harper  <jackson@ximian.com>
16060         * UpDownBase.cs: Use an internal class for the textbox so that we
16061         can control focus.  the updown control should always have focus,
16062         if either the text area or the buttons are clicked.
16063         - Send the key messages to the textbox, since it never actually
16064         has focus
16065         - Activate and decativate the textbox caret.
16067 2006-07-24  Jackson Harper  <jackson@ximian.com>
16069         * Control.cs: Use the directed select when selecting a control,
16070         this way the container controls override will get called and the
16071         whole ActiveControl chain will get triggered.  TODO: probably need
16072         to make sure this gets done everywhere instead of the old
16073         Select(Control).
16074         * ContainerControl.cs: Implement the directed Select method to
16075         find and activate the correct child control.    
16076         
16077 2006-07-22  Mike Kestner  <mkestner@novell.com>
16079         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
16080         menu handling code so that clicks without a grab work too.
16081         [Fixes #78914]
16083 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
16085         * FileDialog.cs: Enable the BackButton when dirstack has one element.
16086           Added some small optimizations.
16088 2006-07-21  Matt Hargett  <matt@use.net>
16090         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
16092 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
16094         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
16095           tests pass and match MS in some strange border cases.
16097 2006-07-21  Chris Toshok  <toshok@ximian.com>
16099         * ThemeWin32Classic.cs: handle drawing of the relation links and
16100         parent row buttons.
16102         * Theme.cs: change args to DataGridPaintParentRow.
16104         * DataGrid.cs: Don't use controls for the relation links and
16105         parent buttons, so we have to handle all their interactions in
16106         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
16107         when we're navigating through child tables, so we can reinstate
16108         selection, expanded state, current cell, etc.
16110 2006-07-20  Chris Toshok  <toshok@ximian.com>
16112         * ToolBar.cs: When we redraw a button, for whatever reason,
16113         there's no reason to redraw the entire toolbar.  Also, don't call
16114         Control.Refresh from within Redraw, as it's much heavier than
16115         Invalidate (which is really what we want).
16117 2006-07-20  Chris Toshok  <toshok@ximian.com>
16119         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
16120         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
16121         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
16122         traces from within a debug IBindingList datasource
16123         (in mono/winforms/datagrid) for *days*, I've finally gotten things
16124         to work in a similar fashion.
16126 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16128         * ListBox.cs: Don't call Sort () when setting 
16129         the Sorted property to false (avoid an unnecessary sort).
16131 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16133         * ListControl.cs: DataSource should throw an ArgumentException
16134         instead of a normal exception when the argument is not of the 
16135         correct type.
16137 2006-07-20  Mike Kestner  <mkestner@novell.com>
16139         * Control.cs: add InternalPreProcessMessage to allow us to steal
16140         key events before MWF gets its paws on them.  Adapted from a
16141         suggestion by eno.
16142         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
16143         up/down/left/right navigation. Override the new internal control
16144         method to steal the events since they never make it to WndProc.
16145         * ToolBarButton.cs: don't worry about pushed when setting hilight
16146         since the drawing code prefers pushed to hilight. Invalidate on 
16147         Hilight changes. Fixes #78547 and #78525.
16149 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
16151         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
16152           the canvas size. Fixes #78868
16154 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
16156         * Splitter.cs: Track requested split position until first layout
16157           is performed. Fixes #78871
16159 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
16161         * Application.cs: Removed code that forces 1.x for the version
16162           number if the version started with 0. Not sure why that code was
16163           there and I couldn't find any bugs that indicated we needed it.
16164           Fixes #78869
16166 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
16168         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
16169           ResetDefaults(), just write some output to the console until it's
16170           implemented. Fixes bug #78907 for now. Eliminated two warnings.
16172 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
16174         * PropertyGridView.cs: set StartPosition of drop down forms
16175         so they appear in correct initial spot.  Fixes #78190.
16177 2006-07-19  Mike Kestner  <mkestner@novell.com>
16179         * ThemeWin32Classic.cs: use parent background color when drawing
16180         flat toolbars.  Restructure the conditionals to make sure non-flat
16181         non-Divider toolbars are filled too.  Fixes #78837.
16183 2006-07-19  Mike Kestner  <mkestner@novell.com>
16185         * ListBox.cs: Sort on collection changes even if the handle
16186         isn't created yet.  Fixes #78813.
16188 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16190         * ListControl.cs: DisplayMember should never be null,
16191         and now we assign String.Empty when null is passed to it (this
16192         is the .Net way).
16194 2006-07-17  Mike Kestner  <mkestner@novell.com>
16196         * ListViewItem.cs: restructure Font and subitem Font handling 
16197         to hold a specific font and refer back to owner on null.
16198         Fixes #78761.
16200 2006-07-17  Mike Kestner  <mkestner@novell.com>
16202         * ToolBar.cs: bandaid for side-effect of previous patch which was
16203         discarding explicit heights for non-AutoSize toolbars.  Need to
16204         extend my format tester to deal with AutoSize=false. Fixes #78864.
16206 2006-07-15  Jackson Harper  <jackson@ximian.com>
16208         * LabelEditTextBox.cs:
16209         * TreeView.cs: Use a new LabelEdit class for node editing, this
16210         class automatically 'closes' itself when it gets the enter key or
16211         loses focus.
16212         - Use the client rectangle when setting the trees scrollbars, so
16213         border style is taken into account.
16214         
16215 2006-07-14  Jackson Harper  <jackson@ximian.com>
16217         * TreeNode.cs:
16218         * TreeView.cs: Make the editing work similar to MSs, firing the
16219         events correctly and ending edits correctly.
16221 2006-07-14  Mike Kestner  <mkestner@novell.com>
16223         * ToolBarButton.cs:
16224         * ToolBar.cs: layout restructuring and redraw enhancements to support
16225         formatting changes gracefully, like setting TextAlign, ImageList, 
16226         ButtonSize, and Appearance.  Handles explicit button sizing quirks
16227         of the MS controls.  Things like flat toolbars ignoring button size
16228         but becoming constant sized at the largest button's size.  Normal
16229         toolbars with an image set cannot be shrunk smaller than the image,
16230         but text can be clipped/ignored.
16231         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
16232         is zero.  Seems like DrawString should be smart enough to not put
16233         anything on screen though. Also trim labels and ellipsize at the char
16234         boundary, not word.
16235         Fixes #78711 and #78483.
16237 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
16239         * FolderBrowserDialog.cs: Disable "New Folder" button and
16240           "New Folder" contextmenu menuitem if a folder like "My Computer"
16241           is selected.
16243 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
16245         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
16246         * FolderBrowserDialog.cs:
16247           - Use MWFConfig to store and read size and position settings
16248           - Added code to create a new folder (button or context menu).
16249             Use TreeView labeledit to change the name of the new folder.
16251 2006-07-14  Jackson Harper  <jackson@ximian.com>
16253         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
16254         when the tree is scrolled we end editing.
16256 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
16258         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
16259           Down arrows
16261 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
16263         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
16264         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
16265         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
16266         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
16267         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
16268         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
16269         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
16270         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
16271         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
16272         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
16273         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
16274         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
16275         ListViewItemSelectionChangedEventHandler.cs,
16276         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
16277         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
16278         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
16279         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
16280         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
16281         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
16282         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
16283         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
16284         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
16285         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
16286         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
16287         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
16288         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
16289         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
16290         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
16291         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
16292         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
16293         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
16294         WebBrowserNavigatingEventHandler.cs, 
16295         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
16297 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
16299         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
16300         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
16301         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
16302         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
16303         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
16304         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
16305         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
16306         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
16307         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
16308         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
16309         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
16310         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
16311         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
16312         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
16313         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
16314         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
16315         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
16316         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
16317         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
16318         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
16319         ListViewItemStates.cs, MaskFormat.cs: Added
16321 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
16323         * PropertyGridView.cs: Fix keyboard navigation of drop down.
16324         Patch from eno for bug 78558.
16325         
16326 2006-07-13  Jackson Harper  <jackson@ximian.com>
16328         * TreeView.cs: When an edit is finished make sure that the
16329         selected node is visible.
16330         - When setting the top/bottom use the scrollbars is_visible, so
16331         everything will be set correctly even if the tree isn't visible
16332         yet.
16334 2006-07-13  Jackson Harper  <jackson@ximian.com>
16336         * ComboBox.cs: Revert the item->index part of my previous patch.
16337         * TreeView.cs: Use LostFocus instead of Leave for detecting when
16338         the edit box has lost focus (duh).
16339         - Just make the edit box not visible when we get return, that will
16340         take the focus, which will call EndEdit
16341         * TreeNode.cs When we start editing, notify the treeview.
16343 2006-07-12  Jackson Harper  <jackson@ximian.com>
16345         * ComboBox.cs: Clear out old items before setting the item list.
16346         This prevents databound controls from having their items added
16347         twice.
16348         - Switch the combobox to use indices whereever possible instead of
16349         using Item's.  This allows usto navigate through lists that have
16350         more then one item with the same string value (ie a, b, b, a).
16351         - Scroll the listboxes scrollbar when a non visible item is
16352         highlighted
16353         - Allow keypress to cycle through all the possible values. For
16354         example if you have b1, b2, b3 and hold down the B key all the
16355         values will be cycled through.
16356         
16357 2006-07-12  Jackson Harper  <jackson@ximian.com>
16359         * TextBoxBase.cs:
16360         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
16361         this using the internal methods.
16362         * Control.cs: Add OnGotFocusInternal.  A new method that allows
16363         controls to "override" OnGotFocus and change focus behavior if
16364         needed.
16365         - Same thing for LostFocus
16366         * ComboBox.cs: Pass off focus to the text control properly.
16368 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
16370         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
16371         * FolderBrowserDialog.cs: Almost a complete rewrite.
16372           - Better support for Environment.Specialfolders
16373           - Added support for MWFVFS
16374           - Made setting SelectedPath work
16376 2006-07-12  Jackson Harper  <jackson@ximian.com>
16378         * Control.cs: Optimze getting all the controls.
16380 2006-07-11  Jackson Harper  <jackson@ximian.com>
16382         * ContainerControl.cs: Override SETFOCUS in the container control,
16383         so that it is not selected on mouse click.
16385 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
16387         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
16388           Hopefully we will have a better way once all of focus is complete.
16390 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
16392         * ThemeWin32Classic.cs: Commented out some debug code and fixed
16393           a compile error with csc.
16395 2006-07-11  Jackson Harper  <jackson@ximian.com>
16397         * Control.cs: When hiding a control only select the next control
16398         if the current control was focused.
16399         - Don't handle enter/leave when setting/killing focus, this is
16400         done by the container control.
16401         - Remove is_selected, it's not needed anymore.
16402         - Add utility methods for selecting a child control, and for
16403         firing the Enter/Leave events.
16404         * ContainerControl.cs: When a control is activated fire the
16405         enter/leave events.
16406         - Don't wrap when processing the tab key, so that focus can be
16407         moved outside of the container.
16408         - Use the correct active control
16410 2006-07-11  Jackson Harper  <jackson@ximian.com>
16412         * ComboBox.cs: Remove some debug code that was blinding me.
16413         * UpDownBase.cs: These controls actually aren't implicit, they are
16414         visible to the user.
16416 2006-07-10  Chris Toshok  <toshok@ximian.com>
16418         * DataGrid.cs: move back to the is_adding boolean field.  god i
16419         hate this is_editing/is_adding/is_changing stuff.
16421 2006-07-10  Chris Toshok  <toshok@ximian.com>
16423         * DataGridTableStyle.cs: just check if the property type is bool.
16424         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
16425         Don't use CanRenderType.
16427         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
16428         if our text == NullText.  Remove CanRenderType.
16430         * DataGridBoolColumn.cs: nuke CanRenderType.
16432         * DataGrid.cs: reenable some code to end the current edit inside
16433         of set_CurrentCell.  This fixes the other 1.1.16 regression.
16434         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
16435         Also, remove the visible_row_count arg from CalcRowHeaders, since
16436         we don't need to worry about the actual height of the area.
16438 2006-07-10  Chris Toshok  <toshok@ximian.com>
16440         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
16441         mode, just return.
16443         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
16444         the real sense of the IsInEditOrNavigateMode property (true =
16445         navigate, false = edit).  Also, update OnKeyPress to reflect this.
16447         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
16448         column style exists, we still need to set its property descriptor
16449         to match up with our list manager.
16451 2006-07-10  Chris Toshok  <toshok@ximian.com>
16453         * ThemeWin32Classic.cs: implement the new row/header painting
16454         approach.  The parent row painting will likely go away and
16455         replaced with label controls, but the rest seems to work ok (and
16456         efficiently).
16458         * Theme.cs: change the way we draw datagrid rows.  we don't draw
16459         the row headers as a block now.  Instead we draw them in the
16460         normal draw-row loop.  Add some calls for drawing parent rows and
16461         relation rows.
16463         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
16464         a default table style.  Set the defaults from ThemeEngine.Current,
16465         not SystemColors.  Fix lots of misc issues with property setters.
16467         * DataGrid.cs: move loads of style information out of this class
16468         as it's being duplicated with DataGridTableStyle.  keep track of a
16469         special DataGridTableStyle for the properties we used to mirror
16470         here.  Switch all the style properties to access this table style
16471         instead of instance fields of this class.  Also add a internal
16472         class to represent parent rows (more needs to be stored here, like
16473         the selection state from the parent table, as well as the
16474         expansion state.)  Also, for datasources with relations, do the
16475         right thing for collapse/expand, and add support for the
16476         navigation/parent row buttons.
16478         Lastly, fix the crash in the 1.1.16 build.
16480         * GridTableStylesCollection.cs: make the explicit interface
16481         implementations call the class's methods as opposed to duplicating
16482         them.
16484         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
16485         0 so the text doesn't jump around when we move the cursor.
16487 2006-07-10  Jackson Harper  <jackson@ximian.com>
16489         * TextBoxBase.cs:
16490         * ListBox.cs: Match MS's ToString (this makes debugging focus
16491         stuff infinitely easier).
16493 2006-07-10  Jackson Harper  <jackson@ximian.com>
16495         * Control.cs (SelectNextControl): When checking the control's
16496         parent use this instead of ctrl.parent so that null can be passed
16497         to SelectNextControl. (I have unit tests for this).
16498         - Remove unused var.
16500 2006-07-10  Chris Toshok  <toshok@ximian.com>
16502         * CurrencyManager.cs: correct one regression, the removal of the
16503         finalType field.  Also, add a MonoTODO on CanAddRows, implement
16504         Refresh() correctly, and fix some event emission in
16505         ListChangedHandler.
16507 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
16509         * FileDialog.cs: Don't use brackets for new folders if they exist
16510           under *nix. Instead use -(number of existing folders +1).
16512 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
16514         * FileDialog.cs:
16515           - Fixed really nasty bug #78771
16516           - Don't block the whole GUI when reading directories with a lot of
16517             entries. Use an other thread instead and call BeginInvoke to
16518             update the ListView in MWFFileView
16520 2006-07-07  Chris Toshok  <toshok@ximian.com>
16522         * Control.cs (Dispose): release any Capture when disposing.
16524 2006-07-07  Chris Toshok  <toshok@ximian.com>
16526         * LinkLabel.cs (Select): if we chain up to the parent, set
16527         focused_index to -1 so we'll search for the first available link
16528         the next time the user tabs into us.  Also, if the direction is
16529         backward and focused_index == -1, start the search from the last
16530         element.
16532 2006-07-07  Chris Toshok  <toshok@ximian.com>
16534         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
16535         is beyond the end of the text, don't do anything.
16536         (CreateLinkPieces): set our ControlStyles.Selectable based on
16537         whether or not we have any links.
16538         (Link.Invalidate): use a loop instead of foreach.
16539         (Link.set_Start): null out owner.sorted_links so it'll be
16540         recreated by CreateLinkPieces.
16542 2006-07-06  Chris Toshok  <toshok@ximian.com>
16544         * LinkLabel.cs: revert the SetStyle change.
16546 2006-07-06  Chris Toshok  <toshok@ximian.com>
16548         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
16549         (OnEnableChanged): s/Refresh/Invalidate
16550         (OnGotFocus): if we have a focused index already, refocus it (so
16551         if we mouse out/in to the window it'll focus the right link).
16552         (OnKeyDown): move the tab handling out of here.
16553         (OnLostFocus): don't set focused_index to -1, so we can refocus it
16554         when we lose focus.
16555         (OnMouseDown): don't Capture here - Control handles it.  Also,
16556         focus the active link.
16557         (OnMouseUp): don't deal with Capture.
16558         (OnPaintBackgroundInternal): remove.
16559         (OnTextAlignChanged): CreateLinkPieces before calling the
16560         superclass's method.
16561         (OnTextChanged): call CreateLinkPieces before calling superclass's
16562         method.
16563         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
16564         move around.
16565         (Select): implement this, moving the selection between different
16566         links, and call parent.SelectNextControl if we don't have another
16567         link to focus in the given direction.
16568         (CreateLinkPieces): call Invalidate instead of Refresh.
16569         
16570 2006-07-06  Chris Toshok  <toshok@ximian.com>
16572         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
16573         new LinkLabel internals.
16575         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
16576         over pieces looking for active/focused/etc links.  also, deal with
16577         runs of text (and links) with embedded \n's in them, and use
16578         MeasureCharacterRanges instead of MeasureString to figure out the
16579         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
16580         two-step.
16582 2006-07-04  Jackson Harper  <jackson@ximian.com>
16584         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
16585         XKB or key auto repeat, do it manually.  Without key auto repeat,
16586         when a key is held down we get key press, key release, key press,
16587         key release, ... with auto repeat we get key press, key press, key
16588         press ..., and then a release when the key is actually released.
16590 2006-07-03  Jackson Harper  <jackson@ximian.com>
16592         * TabControl.cs:
16593         * ThemeWin32Classic.cs: Tabs do not obey normal background color
16594         rules, they are always control color regardless of the background
16595         color.
16597 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
16599         * FileDialog.cs: Added internal class MWFConfig.
16600           Removed Registry support and replaced it with support for the new
16601           MWFConfig class. See MWFConfig comments for more information.
16603 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
16605         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
16606           rectangle. Added some patches from eno from bug #78490 and fixed
16607           the arrow position for small up and down CPDrawScrollButtons.
16609 2006-06-30  Jackson Harper  <jackson@ximian.com>
16611         * InternalWindowManager.cs: Remove some debug code.
16612         * Form.cs: When an MdiParent is set to null, the window is
16613         "detatched" and becomes a normal window.
16614         * MdiClient.cs: Don't bring the new child form to the front until
16615         it is activated (setting it as active does this), this makes the
16616         previously active forms titlebar get redrawn as inactive.
16618 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
16620         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
16621           with later controls
16623 2006-06-29  Mike Kestner  <mkestner@novell.com>
16625         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
16626         arrow in keynav state.  Fixes #78682.
16628 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
16630         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
16631           order (fixes #78393)
16633 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
16635         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
16636           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
16637           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
16638           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
16639           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
16640           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
16641           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
16642           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
16643           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
16644           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
16645           enumerations (FlagsAttribute, SerializableAttribute, added/removed
16646           values)
16648 2006-06-28  Mike Kestner  <mkestner@novell.com>
16650         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
16652 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
16654         * PropertyGrid.cs,
16655           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
16656           item lines from other area (It also makes BackColor consistent and
16657           compatible with .NET). Fixed bug #78564.
16659 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
16661         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
16662         Patch from Eno for #78555.
16664 2006-06-27  Chris Toshok  <toshok@ximian.com>
16666         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
16668         * DataGridColumnStyle.cs: same.
16670         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
16671         
16672         * DataGridDrawingLogic.cs: nuke.
16674 2006-06-27  Chris Toshok  <toshok@ximian.com>
16676         * DataGridTableStyle.cs: clean up the constructors, and build the
16677         list of child relations for this table.  I have no idea if this is
16678         where we should be doing it (it probably isn't), but since we're
16679         already iterating over the properties..
16681         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
16682         struct and array for keeping track of row information, similar to
16683         what's shown in a hack on
16684         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
16686         * Theme.cs: be consistent about the naming of DataGrid methods,
16687         prefering ColumnWidths and RowHeights over columnsWidths and
16688         RowsHeights.
16690         * ThemeWin32Classic.cs: same, and also add support for variable
16691         sized rows (and the +/- expansion icons for related rows).
16693 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
16695         * TextBoxBase.cs: Applied Eno's patch from #78660
16697 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
16699         * Form.cs (ScaleCore): We don't want to scale our form if it's
16700           state is minimized or maximized, but we still need to scale our
16701           child windows. Also, added try/finally block to ensure layout
16702           gets reset (Fixes #78697)
16704 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
16706         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
16708 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
16710         * Form.cs: Fixed c+p error and added check to resize form if minimum
16711           size is bigger than current size (Fixes #78709)
16713 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
16715         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
16717 2006-06-26  Mike Kestner  <mkestner@novell.com>
16719         * ComboBox.cs: only do Keypress handling in the combo when there  
16720         are items in the collection. Fixes #78710.
16722 2006-06-26  Chris Toshok  <toshok@ximian.com>
16724         * Binding.cs: make this work bi-directionally.  also, clear up
16725         other mixups between Push/Pull Data (e.g. we're supposed to pull
16726         data when validating).
16728         * BindingManagerBase.cs: trim some fully qualified collection
16729         types.
16731         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
16733 2006-06-23  Chris Toshok  <toshok@ximian.com>
16735         * PropertyManager.cs: It appears (according to the unit tests)
16736         that PropertyManager doesn't use
16737         PropertyDescriptor.AddValueChanged to track propery value changes
16738         in its datasource, but uses the same scheme as Binding, where it
16739         looks for a <Property>Changed event and binds to it.
16741         Also, according to the docs, IsSuspended always returns false for
16742         a property manager with a non-null datasource.
16744 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
16746         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
16747           need to update the actual DialogResult. (Fixes #78613)
16749 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
16751         * Form.cs (ShowDialog): Release any captures before running the
16752           new message pump (fixes #78680)
16754 2006-06-22  Mike Kestner  <mkestner@novell.com>
16756         * ListView.cs: Layout column widths properly in details mode even 
16757         if HeaderStyle.None is set.  Fixes #78691.
16759 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
16761         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
16763 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
16765         * Control.cs (ContainsFocus): Using new driver method to get focused
16766           window, instead of trying to use internal tracking var, which can
16767           recursion issues (Fixes #78685)
16768         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
16769           XplatUIWin32.cs: Added GetFocus method to return focused window
16771 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
16773         * ColorDialog.cs: when the mouse button is pressed inside the color
16774         matrix, don't let the cursor move out of it until the button is
16775         released, which is the behavior on windows. Changed 'colours' by
16776         'colors' to use the same word consistently.
16778 2006-06-21  Chris Toshok  <toshok@ximian.com>
16780         * DataGrid.cs: add in some basic navigation stuff (navigating to a
16781         child relation and back, using a stack).  Also, remove
16782         GetDataSource and the code that calls it - it's not needed.  Also,
16783         track CurrencyManager.ListName's removal.
16785 2006-06-21  Chris Toshok  <toshok@ximian.com>
16787         * CurrencyManager.cs: push some of the original type checking from
16788         BindingContext.CreateBindingManager to here, and remove some of
16789         the finalType stuff.  Need more tests to make sure I've got the
16790         ListName part right, and we might need more in SetDataSource.
16792         * PropertyManager.cs: add a ctor that takes just the datasource,
16793         and no property name.  Make SetDataSource work with a null
16794         property_name, and make Current return the data_source if the
16795         property descriptor is null.  this makes 'string foo = "hi";
16796         BindingContext[foo].Current' return "hi" as it should.
16798         * RelatedCurrencyManager.cs: make this code more generic - there's
16799         no reason the parent manager has to be CurrencyManager, and
16800         there's no reason to pass the DataRelation.  It suffices to use a
16801         BindingManagerBase and PropetyDescriptor.
16803         * RelatedPropertyManager.cs: make a similar change here.
16804         
16805         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
16806         flower I knew it could be.
16808 2006-06-20  Chris Toshok  <toshok@ximian.com>
16810         * PropertyManager.cs: the PropertyChangedHandler is invoked when
16811         data in the source has changed and we need to update the control,
16812         so s/PullData/PushData.
16814         * CurrencyManager.cs: Refresh is meant to update the control from
16815         data in the datasource.  So, s/PullData/PushData.
16817         * BindingContext.cs: add more ugliness (we weren't handling the
16818         case where data_source = DataTable and data_member = column_name).
16820         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
16821         from the perspective of the datasource.  PullData pulls from the
16822         control, PushData pushes to the control.
16824 2006-06-20  Chris Toshok  <toshok@ximian.com>
16826         * BindingContext.cs: rewrite the CreateBindingManager code to
16827         handle navigation paths more or less properly.  This could
16828         definitely stand some more work, in particular to push the
16829         recursion up to the toplevel.  But that relies on fixes in other
16830         places (System.Data comes to mind).
16832         Also, move to a flat hashtable (and encode the twolevel nature of
16833         the dictionary into the hash key).  This lets us implement the
16834         IEnumerable.GetEnumerator method.
16836         * RelatedCurrencyManager.cs: new class.  Update our view based on
16837         our relation and our parent CurrencyManager's position.
16839         * CurrencyManager.cs: split out some logic from the ctor into
16840         SetView, so it can be called from the new RelatedCurrencyManager
16841         subclass.
16843         * RelatedPropertyManager.cs: new class.  Update our datasource
16844         based on the position of our parent CurrencyManager.
16846         * PropertyManager.cs: split out some logic from the ctor into
16847         SetDataSource, so it can be called from the new RelatedDataSource
16848         subclass.  Also, make the Current getter return the value
16849         of the PropertyDescriptor, not the data_source.
16851         * Binding.cs: no need to duplicate the string splitting code here.
16853 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
16855         * Control.cs:
16856           - set_Enabled: OnEnabledChanged is not called if the inherited state 
16857             of the control is not altered, even though  we might be changing the
16858             internal state of the control (#78458)
16859           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
16860             OnEnabledChanged, to allow easy altering of any child window state
16861           - OnEnabledChanged: Added code to enable/disable driver window state
16862           - OnParentEnabledChanged: Instead of firing the event, call 
16863             OnEnabledChanged, which will fire the event and also a) set driver
16864             window state and pass the enabled state to any grandchildren (#78458)
16866 2006-06-19  Jackson Harper  <jackson@ximian.com>
16868         * InternalWindowManager.cs: We don't set the cursor explicitly
16869         thats done via the response to NCHITTESTs.
16870         - Don't need to adjust for titlebar heights anymore, the
16871         coordinates are coming in the correct coordinates now (see peters
16872         last patch).
16875 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
16877         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
16878           being translated relative to whole window, instead of client window.
16879           That caused broken offsets on mouseclick (and caused gas for our
16880           InternalWindowManager)
16882 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
16884         * TextControl.cs:
16885           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
16886           - Undo(): Added replay of cursor move on DeleteChars action; added
16887             calling Undo() again if a recorded cursor move is invalid (to
16888             ensure that some action is performed on Undo)
16889         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
16891 2006-06-16  Jackson Harper  <jackson@ximian.com>
16893         * MdiClient.cs: Instead of just sizing maximized windows when
16894         there is a resize we also have to adjust the Y of minimized
16895         windows, so they stay pinned to the bottom of the mdi container.
16896         - Eliminate separate tracking of the active control, we can just
16897         get this from the controls collection.
16898         - Paint the decorations for the newly activated titlebar so we get
16899         a pretty blue bar.
16900         * InternalWindowManager.cs:
16901         * ThemeWin32Classic.cs: Minimized windows get all three buttons
16902         even if they are a tool window.
16903         
16904 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
16906         * TextControl.cs (Undo): Handle non-existent cursor locations in the
16907           undo buffer, these can happen when text was deleted and the cursor
16908           was recorded first. Since we will also have a recorded cursor
16909           after the delete this is not an issue. (Fixes #78651)
16911 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
16913         * AccessibleObject.cs: Remove dependence on Control.is_selected;
16914           instead properly track control states internally (allows us to
16915           remove is_selected from Control)
16917 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
16919         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
16920         whose width is not a multiple of 8.
16922 2006-06-13  Jackson Harper  <jackson@ximian.com>
16924         * MdiClient.cs:  Only maximize the next child if the current one
16925         is maximized.
16927 2006-06-13  Chris Toshok  <toshok@ximian.com>
16929         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
16930         modified.  Also, guard against grid or grid_drawing being null in
16931         Invalidate.
16933         * DataGrid.cs: Reformat tons of getters/setters.  In the
16934         DataMember setter, just call SetNewDataSource instead of
16935         duplicating some of its functionality.  In SetNewDataSource, don't
16936         check ListManager for null, since the property getter creates the
16937         object if needed.
16939         * DataGridTableStyle.cs: don't set TableStyle or call
16940         SetDataGridInternal on the column here, it's done in
16941         GridColumnStylesCollection.Add.
16943         * GridColumnStylesCollection.cs: fix all the explicit interface
16944         implementations to just call our methods.  Nuke AddInternal() and
16945         move the body of it to Add().  Also, add a call to
16946         column.SetDataGridInternal to Add().
16948         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
16949         base()+duplicate code.  Also, use the Format property instead of
16950         format to generate an Invalidate ala MS.  Lastly, create the
16951         textbox here, unconditionally.
16952         (set_Format): call Invalidate.
16953         (get_TextBox): no need to call EnsureTextBox.
16954         (Commit): remove the message box.
16955         (Edit) remove the call to EnsureTextBox.
16956         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
16957         (EnterNullValue): no need to check textbox for null.
16958         (HideEditBox): no need to check textbox for null.
16959         (SetDataGridInColumn): add the textbox to the grid's controls.
16960         (EnsureTextBox): nuke.
16961         
16962 2006-06-13  Jackson Harper  <jackson@ximian.com>
16964         * MdiWindowManager.cs: Hook up to the maximized menus paint event
16965         and redraw the buttons when needed. Unhook when the window is
16966         unmaximized.
16967         * MainMenu.cs: Add an internal Paint event, the mdi window manager
16968         needs this so that it can redraw its buttons when the menu is
16969         repainted.
16970         * InternalWindowManager.cs:
16971         * Form.cs: The method order has changed for DrawMaximizedButtons,
16972         so that it can be a PaintEventHandler.
16973         
16974 2006-06-13  Jackson Harper  <jackson@ximian.com>
16976         * MdiClient.cs: When we close a maximized mdi window, the next mdi
16977         window is activated and maximized, even if it wasn't before.
16978         - When  a new window is activated repaint the decorations of the
16979         old one, so that it no longer has the Active "look" (the blue
16980         titlebar).
16981         * InternalWindowManager.cs: Open up CreateButtons to base classes
16982         so they can recreate the buttons on state changes.
16983         - If a window is maximized give it all three buttons
16984         * MdiWindowManager.cs: Create the titlebar buttons when the state
16985         is changed, this is needed because a toolwindow will not have all
16986         three buttons until it is maximized.
16988 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
16990         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
16991           Fixed bug #78609.
16993 2006-06-12  Jackson Harper  <jackson@ximian.com>
16995         * KeysConverter.cs: Make sure we handle the Ctrl special case
16996         if its the only key.
16997         
16998 2006-06-12  Jackson Harper  <jackson@ximian.com>
17000         * Theme.cs: Add a method to get the size of a managed window
17001         toolbar button.
17002         * InternalWindowManager.cs: Remove the ButtonSize property, this
17003         should be retrieved from the theme.
17004         * MdiWindowManager.cs: Get the button size from the theme
17005         * ThemeWin32Classic.cs: Make the method to get the managed window
17006         titlebar button size public.
17007         - Handle the different button sizes of maximized toolwindows
17008         (should match any maximized window).
17009         - Get the titlebar height from the theme, not the WM (which gets
17010         it from the theme).
17012 2006-06-12  Jackson Harper  <jackson@ximian.com>
17014         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
17015         event down to the mdi window manager.
17016         - Expose some extra stuff to base classes
17017         - Make sure to end the Capture on an NC Mouse up, so that we can
17018         get double clicks properly, and the sizing doens't stick.
17019         - When doing PointToClient contain it in the workable desktop
17020         area, this prevents windows from changing size when the cursor is
17021         pulled outside of the working area while sizing.
17022         * MdiWindowManager.cs: When we get a double click maximize the
17023         window.
17024         - Reset the cursor after handling mode changes.
17026 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
17028         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
17029           current desktop, instead of just assuming a 0, 0 origin. This
17030           is needed for our internal window manager, to know the top
17031           margin of the desktop
17033 2006-06-12  Chris Toshok  <toshok@ximian.com>
17035         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
17036         we need this to get rid of the selected background in the bool
17037         column.
17038         (CancelEditing): move the ConcedeFocus call to above the Abort
17039         call.  Also, set is_changing to false and invalidate the row
17040         header if we were changing before.
17041         (ProcessKeyPreviewInternal): remove, since noone outside this
17042         class calls it anymore.  Roll the code into ProcessKeyPreview.
17043         (EndEdit): remove the internal version.
17044         (InvalidateCurrentRowHeader): make private.
17046         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
17047         Keys.Escape handling (and with it the last call to
17048         DataGrid.EndEdit from outside the class.)
17051 2006-06-12  Chris Toshok  <toshok@ximian.com>
17053         * DataGridTextBox.cs (.ctor): isedit defaults to false.
17054         (OnKeyPress): set isedit to true.
17055         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
17056         already handled by the grid.
17058         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
17059         right.  ugh.
17060         (set_DataSource): SetDataSource always returns true, so stop
17061         putting it in an if statement.
17062         (EndEdit): get rid of some {}'s
17063         (ProcessGridKey): return true in case Keys.Escape.
17064         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
17065         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
17066         PositionChanged, stopped connecting to CurrentChanged.
17067         (GetDataSource): simplify this a bunch.
17068         (SetDataSource): change return type from bool to void.
17069         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
17070         to this, and make sure we don't set ListManager.Position inside
17071         set_CurrentCell.
17072         (OnListManagerItemChanged): if we're passed an actual index,
17073         redraw that row.
17075         * CurrencyManager.cs (set_Position): don't call PullData here.
17077 2006-06-09  Jackson Harper  <jackson@ximian.com>
17079         * TreeNode.cs:  Recalculate the visible order before doing the
17080         Expand/Collapse Below calls, because those calls generate an
17081         expose.
17082         - Reduce calls to the TreeView property, which is mildly expensive
17083         by using a local var.
17084         * Form.cs: Layout the MDI child windows when creating the parent
17085         form.
17086         - Don't use the internal constructor anymore
17087         * MdiClient.cs: use the parent form width/height (if available)
17088         when laying out the child windows, we do this because the
17089         mdiclient isn't docked yet when the initial layout is done.
17090         - Don't need an internal constructor anymore.
17092 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17094         * FileDialog.cs: handle access errors when trying to create a folder
17095         or changing to a directory. No need to initialize out parameters.
17097 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
17099         * FileDialog.cs: Append a number when creating a new folder if the
17100           folder already exists (use parenthesis instead of square brackets)
17102 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
17104         * FileDialog.cs:
17105           - Disabled registry support for windows and added better registry
17106             error checking for other systems (need to investigate why it
17107             works perfectly on my system)
17108           - If a folder already exist show an error MessageBox instead of
17109             trying to create an indexed name.
17110           - Fixed a non intentional typo.
17112 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17114         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
17116 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
17118         * FileDialog.cs: When creating a new folder don't crash if the
17119           folder already exists.
17121 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
17123         * FileDialog.cs: Allmost a complete rewrite.
17124           - added a "virtual" file system that handles the differences
17125             between unix and windows file systems (especially the directory
17126             structure). Moved most of the directory and file handling code
17127             into the vfs.
17128             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
17129             UnixFileSystem and FSEntry.
17130           - Recently used folder/directory, size, location and used file names
17131             (file name ComboBox) are now stored in the registry and get read
17132             before the dialog shows up (fixes part 6 of bug #78446).
17133           - Creation of new folders/directories is now possible (context menu
17134             or ToolBar). Added TextEntryDialog for this that fills in the gap
17135             until ListView.LabelEdit works.
17136           - Fixed cursor handling (bug #78527) and focus handling for
17137             PopupButtonPanel
17138           - Various "Search in" ComboBox enhancements. The content of the
17139             dropdown listbox now almost matches ms.
17140           - Changed the behaviour when the user switches to SpecialFolder
17141             Recent to show the ListView in View.Details.
17142           - Beside using the ToolBar to change the View property of the
17143             file ListView it is now possible to use the context menu too.
17145 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
17147         * ComboBox.cs: Don't create a new ObjectCollection when an item
17148           gets inserted. Just insert the item in the existing object_items
17149           ArrayList.
17151 2006-06-08  Jackson Harper  <jackson@ximian.com>
17153         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
17154         that the treeview and root node checks are done also, this fixes a
17155         regression i caused in the unit tests.
17157 2006-06-07  Wade Berrier <wberrier@novell.com> 
17159         * RichTextBox.cs: More ISO8859-1 -> unicode
17161 2006-06-07  Mike Kestner  <mkestner@novell.com>
17163         * ComboBox.cs : use items to hold highlight/selection so that
17164         collection insertions don't require synchronization.
17166 2006-06-07  Jackson Harper  <jackson@ximian.com>
17168         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
17169         routine.  We now always keep the sized edge at the cursor instead
17170         of computing movement and adjusting rects.  There is one buglet
17171         with this method though when the cursor is moved over area that
17172         the window can not expand too (such as the toolbars on the desktop).
17174 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17176         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
17177         here. Fixes crash on startup in AlbumSurfer.
17179 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
17181         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
17182           values
17184 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17186         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
17187         statement to avoid calling XNextEvent which will block if another thread
17188         took the event that we were expecting. Fixes bug #78605.
17190 2006-06-07  Mike Kestner  <mkestner@novell.com>
17192         * ListView.cs : isolated checkbox clicking from the selection logic.
17193         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
17195 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17197         * Form.cs: Check that the value passed to Form.DialogResult
17198         is a valid enum value.
17200 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17202         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
17203         Computer'. Clicking it in the network view goes to 'My Computer'.
17204         Added CIFS filesystem type. Display the mount point of filesystems.
17205         Avoid duplicate mount points (happens for me with CIFS);
17207 2006-06-06  Jackson Harper  <jackson@ximian.com>
17209         * InternalWindowManager.cs: Draw the maximized windows buttons
17210         when resizing.
17212 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17214         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
17215         all other dialogs. Fixes bug #78585.
17217 2006-06-06  Mike Kestner  <mkestner@novell.com>
17219         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
17220         Only invalidate checkbox on checkstate changes to avoid flicker.
17221         * ListBox.cs : avoid unselect/select when clicking selected item.
17222         avoid reselection flicker for already multiselected items.
17223         Fixes #78382.
17225 2006-06-06  Jackson Harper  <jackson@ximian.com>
17227         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
17228         the parent form so that the menu is removed if needed.
17230 2006-06-06  Mike Kestner  <mkestner@novell.com>
17232         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
17233         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
17235 2006-06-06  Mike Kestner  <mkestner@novell.com>
17237         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
17240 2006-06-06  Jackson Harper  <jackson@ximian.com>
17242         * Control.cs: Use the property (instead of the field) to get the
17243         default cursor so it is instantiated correctly.
17244         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
17245         resizes so we need to manually repaint the window decorations here.
17246         - Set the titlebar button locations as soon as they are created,
17247         otherwise they are not set correctly on win32.
17248         
17249 2006-06-06  Chris Toshok  <toshok@ximian.com>
17251         * CurrencyManager.cs (set_Position): call PullData before
17252         OnCurrentChanged.
17253         (AddNew): after calling IBindingList.AddNew, update our
17254         listposition, and call OnCurrentChanged/OnPositionChanged (without
17255         calling PullData).
17256         (OnCurrentChanged): remove the call to PullData from here.
17257         (OnItemChanged): remove the call to PushData from here.
17258         (OnPositionChanged): change the test from == null to != null to
17259         match the other methods.
17260         (ListChangedHandler): the grossest part of the patch.  Implement
17261         this such that it passes the unit tests in CurrencyManagerTest and
17262         the output more or less matches that of MS's implementation.
17264 2006-06-06  Mike Kestner  <mkestner@novell.com>
17266         * ListView.cs : only update check state on single click.
17267         * ThemeWin32Classic.cs : fix focus drawing for details view without
17268         fullrowselect.  Fixes #78454.
17269         * XplatUIX11.cs : fix for double click emission.
17271 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
17273         * PropertyGridView.cs : Applied Atsushi's patch to fix
17274         font dialog bug  (#78197).
17276 2006-06-05  Jackson Harper  <jackson@ximian.com>
17278         * TreeNode.cs: Compute the next node for expanding/collapsing
17279         correctly. We now factor in nodes without a NextNode
17280         correctly. (Fixes somes cases in nunit-gui).
17281         * InternalWindowManager.cs: Set the bounds when updating the
17282         virtual position of a tool window.
17283         
17284 2006-06-05  Chris Toshok  <toshok@ximian.com>
17286         * DataGrid.cs: rename cached_currencymgr to list_manager.
17287         (set_CurrentCell): move SetCurrentCell code here, and clean it up
17288         some.
17289         (CurrentRow, CurrentColumn): single accessors so we can make the
17290         cursor movement code a lot easier to understand.
17291         (CurrentRowIndex): implement this in terms of CurrentRow.
17292         (BeginEdit): clean this up a bit.
17293         (CancelEditing): sort out the is_editing/is_changing/is_adding
17294         stuff a little.
17295         (EndEdit): minor changes.
17296         (OnKeyDown): add a comment about a (most likely) unnecessary
17297         check.
17298         (OnMouseDown): cancel editing when we click on a row header.  And
17299         use the CurrentRow setter, not CurrentCell.
17300         (ProcessDialogKey): directly call ProcessGridKey.
17301         (UpdateSelectionAfterCursorMove): factor out this common block of
17302         code (it's used everywhere that we move the cursor by updating row
17303         or column).
17304         (ProcessGridKey): pretty substantial overhaul.  Use the
17305         CurrentRow/CurrentColumn properties to make the code a lot more
17306         readable.  Only use the CurrentCell property when we have to
17307         modify both row and column at once.  Tab behavior is still broken,
17308         and Delete is untested.
17309         (Select): if we have no selected rows, set selection_start to
17310         @row.
17311         (EditCurrentCell): rename EditCell this.  It was only ever invoked
17312         with CurrentCell as the arg, so drop the arg and rename it.
17314         * DataGridColumnStyle.cs: clean up the constructors a little, and
17315         drop CommonConstructor().
17317         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
17318         actually get notified when the user hits it.
17319         (ProcessKeyMessage): *substantially* simplify this method.
17320         There's no reason (that I can see) for the textbox to be making
17321         calls into the datagrid at all.  Remove all of them but the ones
17322         for Enter handling.  those will take some more work.
17324         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
17325         calling HideEditBox.
17326         (HideEditBox): if we have an active textbox, render it invisible
17327         without causing a re-layout of the datagrid.
17329 2006-06-05  Mike Kestner  <mkestner@novell.com>
17331         * ListView.cs : fix NRE crasher when focuseditem is cleared by
17332         collection changes by resetting it to Items[0].  Fixes #78587.
17334 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17336         * MessageBox.cs: if the height of the text is larger than the icon_size,
17337         use that. Fixes bug #78575.
17339 2006-06-05  Jackson Harper  <jackson@ximian.com>
17341         * TreeView.cs: Fix line drawing when scrolling.  To do this each
17342         node is basically responsible for drawing its entire horizontal
17343         area.  When drawing a node it draws its parent node lines if
17344         needed.
17345         - Adjust the clip area to the viewport rectangle
17346         - Fix Left/Right key handling to match MS. (It expand/collapses
17347         and moves to parents/first child but does not move selection to
17348         sibling nodes).
17349         - Fix SetTop to work with new bound calculation code
17350         - When scrollbars are no longer needed we need to reset scrolling
17351         vars and recalculate the visible order so the redraw is correct
17352         * TreeNode.cs: We can't expand/collapse nodes with no children.
17354 2006-06-03  John Luke  <john.luke@gmail.com> 
17356         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
17357         so the colors work without dev packages
17358         
17359 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
17361         * Control.cs 
17362           - Select: Implemented to just use activate. Seems to match MS 
17363             behaviour closest. Documented to only do actual control walking 
17364             based on it's parameters if in a container control so I moved 
17365             the code there.
17366           - Removed selection check logic from our internal Select() method
17367         * ContainerControl.cs:
17368           - Select: Moved selection logic from Control here, since MS documents
17369             that containers obey the bool arguments. No longer calling base
17371 2006-06-02  Jackson Harper  <jackson@ximian.com>
17373         * TreeView.cs: If the selected node isn't changed when we get
17374         focus update the previously selected node so that we see the
17375         selection box.
17377 2006-06-02  Mike Kestner  <mkestner@novell.com>
17379         * ComboBox.cs: restructure grab and general mouse event handling.
17380         Make the composite control raise mouse events like it was a single
17381         control for leaves/enters/motion/up/down events.  fix dropdown list
17382         coordinate mangling and refactor it into the scrollbar subclass to
17383         reduce code duplication.  Fixes #78282 #78361 and #78457.
17385 2006-06-02  Mike Kestner  <mkestner@novell.com>
17387         * ScrollBar.cs: remove Capture setting/clearing, as it happens
17388         automatically in the Control.WndProc.
17390 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17392         * FileDialog.cs: fix crash when running SharpChess, which sets the
17393         FilterIndex to 2 with only one Filter.
17395 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17397         * ToolBar.cs: add SizeSpecified property.
17398         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
17399         try to figure out our real size, otherwise fallback to what the
17400         container says.
17402 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
17404         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
17405         * Control.cs (WndProc): MS always calls the DefWndProc to pass
17406           up the event
17408 2006-06-01  Mike Kestner  <mkestner@novell.com>
17410         * ListView.cs: revamp the focus management in ListView.  It still
17411         causes churn of LostFocus/GotFocus emissions on clicks, but it's
17412         better than not handling focus at all.  Will revisit when pdb feels
17413         the general focus handling is solid.  Fixes #78526.
17415 2006-06-01  Jackson Harper  <jackson@ximian.com>
17417         * TreeView.cs: Set the default border style in the constructor.
17418         - Move painting to use OnPaintInternal instead of capturing
17419         WM_PAINT, this is the correct way of doing things
17420         - UpdateBelow shouldn't invalidate the scrollbar area
17421         - Cap the top on update below in case the node was above the top
17422         of the viewport rectangle.
17423         - ExpandBelow and Collapse below need to obey Begin/End Update.
17424         * TreeNode.cs: Make is_expanded internal so the treenode
17425         collection can change it without firing the whole event chain.
17426         * TreeNodeCollection.cs: When clearing all the child nodes make
17427         sure to recalc the visible order.
17428         - Improve algo for remove the top node
17430 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
17432         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
17433           SendMessage directly calling window procedures, which in turn might
17434           call SetFocus()
17436 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
17438         * Control.cs: Don't handle WM_SETFOCUS if the same window already
17439           has focus (works around X11 sending a FocusIn after our SetFocus)
17440         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
17442 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
17444         * Mime.cs: Fix for the NET_2_0 build.
17445           NameValueCollection needs StringComparer now.
17447 2006-05-31  Chris Toshok  <toshok@ximian.com>
17449         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
17450         return (via an out parameter) the starting X of the column.
17451         (UpdateVisibleColumn): track change to FromPixelToColumn.
17452         (HitTest): add a ColumnResize case here.
17453         (DrawResizeLine): new function, probably poorly named.
17455         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
17456         only need to keep one reference.
17457         (set_ListManager): same.
17458         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
17459         Also, add support for HitTestType.ColumnResize.
17460         (OnMouseMove): add column resize behavior here, and change the
17461         cursor to the correct one as we move around the datagrid.
17462         (OnMouseUp): terminate the column resize if we're resizing.
17463         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
17464         for the current cell.
17465         (ConnectListManagerEvents): use cached_currencymgr.
17466         (DisconnectListManagerEvents): fill this in, using
17467         cached_currencymgr.
17468         (SetCurrentCell): remove cached_currencymgr_events handling.
17469         (SetDataMember): only call DisconnectListManagerEvents if
17470         cached_currencymgr is != null.
17471         (SetDataSource): same.
17472         (OnListManagerCurrentChanged): cached_currencymgr_events ->
17473         cached_currencymgr.
17475 2006-05-31  Jackson Harper  <jackson@ximian.com>
17477         * BindingManagerBase.cs: Remove somedebug code that creeped into
17478         SVN.
17479         * TreeNode.cs: We get the indent level dynamically right now, so
17480         don't track it as a member.
17481         * TreeNodeCollection.cs: Make sure all nodes added to the list
17482         have parents, treeviews/topnodes setup properly.
17483         - Don't attempt to track indent level.
17485 2006-05-30  Jackson Harper  <jackson@ximian.com>
17487         * BindingContext.cs: Create the currency manager tables here.
17488         This allows us to more easily create null tables (when bad data
17489         members are used), and more easily create related currency
17490         managers.
17491         * CurrencyManager.cs: All the table creation stuff is done by the
17492         binding context now.
17493         - Current should throw an exception if listposition is -1.
17494         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
17495         been bound yet.
17497 2006-05-30  Mike Kestner  <mkestner@novell.com>
17499         * ListView.cs: allow reexpansion of zero-width column headers.
17500         Fixes #78528.
17502 2006-05-28  Chris Toshok  <toshok@ximian.com>
17504         * CurrencyManager.cs (get_Current): after the late binding
17505         listposition = -1 fix, we need to guard against it here and return
17506         null, otherwise we raise an exception (which is swallowed
17507         elsewhere, and breaks datagrid databinding.)
17509 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
17511         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
17512           than WM_SYSKEY, don't throw if get something unexpected (#78507)
17514 2006-05-26  Jackson Harper  <jackson@ximian.com>
17516         * ControlPaint.cs:
17517         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
17518         values, it's faster and it's all we care about (we don't care if
17519         the names aren't equal).
17520         * KeyboardLayouts.cs: Eliminate some dead code.
17521         - Lazy init things
17522         * X11Keyboard.cs: Lazy init keyboard detection.
17523         - Cleanup access modifiers a little.
17525 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
17527         * XplatUIX11.cs: Once again, attempting to get layout just right.
17529 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
17531         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
17532           the sizes of each link section, that will result in sizes that
17533           match DrawString's layout (Fixes #78391)
17535 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
17537         * FileDialog.cs: If AddExtension property is true autocomplete the
17538           extensions in SaveFileDialog correctly. Fixes bug #78453.
17539           Set MyNetwork and MyComputer to "C:\" for windows. This should
17540           fix part 8 of bug #78446 for now.
17542 2006-05-26  Chris Toshok  <toshok@ximian.com>
17544         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
17545         invalidate the current row header if we need to, but presumably
17546         we'll invalidate the row corrsponding to the bounds or
17547         editingControl.
17548         (GridHScrolled): switch back to this method, as it's part of the
17549         public api.  *sigh*.
17550         (GridVScrolled): same.
17551         (OnMouseWheel): hack up something that more or less works.  Call
17552         GridHScrolled/GridVScrolled directly, instead of duplicating much
17553         of their code here.
17554         (EnsureCellVisibility): reinstate a bunch of this code, since we
17555         can't just set the scrollbar Value and expect to do all the work
17556         in the ValueChanged handler.  Also, Call Update() after scrolling
17557         in one direction so the other XplatX11.ScrollWindow call has the
17558         proper stuff in the proper places.
17559         (EditCell): set is_editing to true before calling .Edit.
17561         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
17562         don't bother comparing first.
17563         (OnKeyPress): call grid.ColumnStartedEditing before calling
17564         base.OnKeyPress.  this will set is_changing and invalidate the row
17565         header if necessary.
17566         (ProcessKeyMessage): for WM_CHAR messages, call
17567         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
17568         and WM_KEYDOWN.
17569         
17570         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
17571         it's done in the DataGrid.
17572         (NextState): call grid.ColumnStartedEditing, which takes care of
17573         invalidating the row header (and setting is_changing).
17575         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
17576         here.  it's done in the DataGrid.
17578 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17580         * Control.cs: allow changing the cursor when the mouse position is
17581         out of bounds but Capture is set.
17582         * LinkLabel.cs: handle the case when the mouse button is pressed on the
17583         linklabel but released somewhere else.
17585 2006-05-25  Jackson Harper  <jackson@ximian.com>
17587         * TreeView.cs: When we get focus if there is no selected node make
17588         it the top node
17589         - Remove some uneeded setup code from Draw.
17590         * TreeNodeCollection.cs: If the tree doesn't have a top node when
17591         a new node is inserted make the new node the top.
17592         * XplatUIX11.cs:
17593         * Timer.cs: Use Utc time so that no local time zone stuff needs to
17594         be used (should be faster).
17595         
17596 2006-05-25  Chris Toshok  <toshok@ximian.com>
17598         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
17599         problem with the last commit.
17601 2006-05-25  Chris Toshok  <toshok@ximian.com>
17603         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
17604         need the invalidate call here, while scrolling right-to-left via
17605         the left arrow key (i.e. moving the editing cell while scrolling).
17607         * DataGrid.cs (.ctor): remove the initialization of
17608         ctrl_pressed/shift_pressed.  We no longer track them using key
17609         up/down handlers, but by using Control.ModifierKeys.  Also, switch
17610         to using ValueChanged handlers on the scrollbars instead of
17611         Scrolled event handlers.  This simplifies a bunch of the scrolling
17612         code.
17613         (GridHValueChanged): rename from GridHScrolled, and change it to
17614         work with the new event args.
17615         (GridVValueChanged): same.
17616         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
17617         (OnMouseWheel): actually scroll the datagrid.  Don't change the
17618         selected cell.
17619         (ProcessGridKey): correct all the keyboard navigation stuff I
17620         could find.  Ctrl up/down/left/right/home/end work now.
17621         (EnsureCellVisibility): correct method name spelling.  Also,
17622         simplify this a touch by not explicitly calling the
17623         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
17624         scrollbar value.
17625         (OnKeyUpDG): no need for this method now.
17626         
17627 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17629         * LinkLabel.cs: display the OverrideCursor when hovering the label.
17630         Fixes bug #78392.
17632 2006-05-25  Chris Toshok  <toshok@ximian.com>
17634         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
17635         r61019.
17637 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
17639         * Application.cs: Moved setting of is_modal and closing to before
17640           we create the control, to allow the event handlers called as a
17641           result of creation affect closing. Also removed Gonzalo's previous
17642           change to setting DialogResult, the behaviour has been moved to 
17643           Form.ShowDialog()
17644         * Form.cs: 
17645           - ShowDialog(): Removed explicit creation of the form, let RunLoop
17646             handle it instead
17647           - ShowDialog(): If no dialog result is set, we need to return Cancel
17648           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
17649             the close is cancelled
17651 2006-05-25  Jackson Harper  <jackson@ximian.com>
17653         * StatusBar.cs: We only need to update the sizes of the other
17654         panels when we have auto size contents.  Also we are only updating
17655         the contents of the panel, not the borders, so compensate for the
17656         border width (TODO: get this width from the theme somehow).
17657         * TreeView.cs: Scrollable is true by default
17658         - Use invalidate instead of refresh where needed
17659         - Factor the scrollable value into scrollbar updating
17660         - Update the scrollbars if the Scrollable property is altered
17661         - Update the selected node if its ImageIndex is changed
17662         - Handle null nodes in UpdateNode (mainly so we don't have to
17663         check if selected is null when updating it
17664         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
17665         are factored into the visible count
17666         - Use VisibleCount for clarity in the code
17667         - When the font is changed we need to recurse through all the
17668         nodes and invalidate their sizes
17669         
17670 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17672         * Application.cs: set the DialogResult to fixed when the main form is
17673         hidden or destroyed while being modal.
17675 2006-05-25  Miguel de Icaza  <miguel@novell.com>
17677         * Theme.cs: Use Tangoified messagebox icons. 
17679         (GetSizedResourceImage): Also cope with width = 0 and do not
17680         trigger a warning in that case (0 means "give me your icon from
17681         the resouce, no special size needed).
17683 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
17685         * Application.cs: Leave runloop if the the main modal form is 
17686           hidden (fixes #78484)
17688 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
17690         * BindingContext.cs : reject null datasource in Contains() and
17691           Item[].
17692         * CurrencyManager.cs : check data_member validity when data_source
17693           is dataset. When it is late binding, the initial position is -1.
17695 2006-05-24  Jackson Harper  <jackson@ximian.com>
17697         * TreeNodeCollection.cs: Dont't recalculate the visible order on
17698         inserted nodes that aren't visible.  This changes the
17699         max_visible_order which confuses scrollbar settings.
17700         - Use the enumerator to get the prev node instead of duplicating
17701         code.
17702         * TreeView.cs: Use new method for setting scrollbar values
17703         - Don't set the bounds every time the scrollbar is updated
17704         - When updating below the root node use an invalidate instead of a
17705         refresh to prevent the child controls (scrollbars) from being
17706         refreshed. (UpdateBelow still needs to be reworked anyways).
17707         - Reenable SetBottom now that visible orders are set correctly,
17708         added some debug code incase we ever get bad values there again.
17709         - Set the scrollbar max to 2 less then the max value, this
17710         compensates for the max value being one above the node count, and
17711         for scrollbars adding one extra "notch".
17712         - When drawing image nodes if there is an imagelist we draw the
17713         first image in the list if the supplied image index is out of the
17714         image list's bounds.
17715         
17716 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
17718         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
17719           we receive a size change from the WM (Fixes #78503)
17721 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
17723         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
17724           rectangle (Fixes #78501)
17726 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
17728         * ButtonBase.cs: 
17729           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
17730             as a bitfield.
17731           - Fixed MouseMove to no longer switch pressed state unless the left
17732             mouse button is pressed. Atsushi provided the original patch (#78485)
17733           
17734 2006-05-24  Jackson Harper  <jackson@ximian.com>
17736         * ScrollBar.cs: New internal methods that allow us to change a
17737         couple values on the scrollbar (the most common case is maximum
17738         and large change) without getting multiple invalidates.
17740 2006-05-24  Chris Toshok  <toshok@ximian.com>
17742         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
17743         (Edit): save off the original state in oldState, and set
17744         grid.is_editing to true.
17745         (OnKeyDown): abort editing if escape is pressed.  also, call
17746         NextState if space is pressed.
17747         (OnMouseDown): call NextState.
17748         (NextState): factor out shared code from OnKeyDown and OnMouseDown
17749         here.  Also, only invalidate the row header once (on the initial
17750         is_changing switch) to save on redraws.
17752 2006-05-24  Chris Toshok  <toshok@ximian.com>
17754         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
17755         if the value in the cell is different than it was before.  This
17756         keeps us from triggering a layout when we move around a datarid
17757         with a highlighted cell.
17758         (Edit): suspend layout when creating/positining the text box, and
17759         resume passing false so we don't ever actually re-layout.
17760         (ReleaseHostedControl): same.
17761         (EnsureTextBox): reformat slightly, and set WordWrap to false.
17763         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
17764         control-key sequences should go to the datagrid - remove that
17765         lock.  Also, modify the conditions under which we move between
17766         cells when moving the cursor within a cell, and remove the "this"
17767         and "base" from field accesses.  We weren't even consistent, given
17768         they all were in the base class.
17770 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
17772         * Binding.cs : (.ctor)
17773           An obvious NRE fix for BindingTest.CtorNullTest().
17775 2006-05-23  Chris Toshok  <toshok@ximian.com>
17777         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
17778         them between lines.  This fixes some quirks editing cells in the
17779         datagrid.
17781 2006-05-23  Jackson Harper  <jackson@ximian.com>
17783         * TreeView.cs: Use begin/end update when doing expand/collapse all
17784         so that we don't get flicker on the scrollbar.
17786 2006-05-23  Jackson Harper  <jackson@ximian.com>
17788         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
17789         treenode calculations to be independant of the painting code. To
17790         do this nodes track a visible order which is calculated by the
17791         treeview.
17792         - Call new methods for expanding/collapsing nodes.  These methods
17793         use scrollwindow so we don't have to update everything below the
17794         node.
17795         * TreeView.cs: Refactored drawing and scrolling code.  We don't
17796         need to update nodes when drawing anymore or calculate scrollbar
17797         stuff.
17798         - Added new methods for expanding/collapsing nodes. These methods
17799         use ScrollWindow so as to not have to redraw all the nodes below.
17800         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
17801         we add/remove nodes or sort.
17802         - Handle removing the selected and the top node properly.
17804 2006-05-23  Chris Toshok  <toshok@ximian.com>
17806         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
17807         maybe this should actually happen in the datagrid code?
17808         (EndEdit): no need to invalidate anything, given that
17809         ReleaseHostedControl causes the datagrid to relayout, which
17810         invalidates everything anyway.
17812         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
17813         in SetCurrentCell).
17814         (set_SelectionBackColor): call InvalidateSelection instead of
17815         Refresh.
17816         (set_SelectionForeColor): same.
17817         (BeginEdit): Flesh this out a bit.
17818         (CancelEditing): only do any of this if we're editing/adding.
17819         (EndEdit): same.
17820         (OnMouseDown): there's no need to cancel editing here, it's done
17821         in SetCurrentCell.
17822         (SetCurrentCell): only invalidate the current row header if it's a
17823         different row than the new one.
17824         (ShiftSelection): fix this to work like MS does.
17825         (ResetSelection): factor out the invalidation of selected_rows to
17826         InvalidateSelection.
17827         (SetDataSource): cancel any editing that's going on.
17829         * DataGridColumnStyle.cs
17830         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
17831         call the non-interface version.
17833         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
17834         header rectangle with the clip rectangle so we don't redraw the
17835         entire header for just a small area.  Gets rid of the last flicker
17836         when horizontally scrolling.
17837         (DataGridPaintRow): same.
17839 2006-05-23  Mike Kestner  <mkestner@novell.com>
17841         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
17842         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
17843         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
17844         Critical bug report.
17846 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
17848         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
17849           and this fixes #78493
17851 2006-05-23  Miguel de Icaza  <miguel@novell.com>
17853         * Theme.cs (GetSizedResourceImage): Scale images if the proper
17854         size is not found.  
17855         
17856         * FileDialog.cs: Do not change the background for the side bar as
17857         it wont work nicely with the theme, and also reduces the artifacts
17858         in rendering the icons (which I want to fix too).
17860         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
17861         resources, not resgen resources. 
17863         (PlatformDefaultHandler): Pull images using the new API.
17865 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
17867         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
17868           a reference to the hwnd and will not remove it unless there are
17869           no pending exposures (fixes #78341)
17870         * XplatUI.cs: Improved debug
17872 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
17874         * MenuAPI.cs : don't handle OnClick event when it was not the left
17875           button. Fixed bug #78487.
17877 2006-05-23  Mike Kestner  <mkestner@novell.com>
17879         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
17880         prefer submenus to the top menu for item lookup, to avoid popping down
17881         top-row items.
17883 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
17885         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
17886           Graphics.FillRectangle as the visual results are really bad (even
17887           on win). We now draw perfect arrows (and perfect shadows when the
17888           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
17889           Pen.DashPattern to draw the dots of each line.
17891 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
17893         * FileDialog.cs: Update the filename combobox when navigating through
17894           the ListView with the cursor keys. Fixes part 7 of bug #78446.
17896 2006-05-22  Mike Kestner  <mkestner@novell.com>
17898         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
17899         Fixes #78463.
17901 2006-05-22  Mike Kestner  <mkestner@novell.com>
17903         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
17904         requests. Fix a misspelled parameter and a copy paste exception error
17905         in Select.
17907 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
17909         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
17910           to get the same width/height (5/13) on X11 as the default font has on
17911           win32. This means that our DefaultFont emSize is smaller than the 
17912           the MS SWF equivalent (even thought the width/height stays the same)
17914 2006-05-20  Jackson Harper  <jackson@ximian.com>
17916         * MdiClient.cs:
17917         * MdiWindowManager.cs:
17918         * InternalWindowManager.cs: Make sure to use the border width from
17919         the theme.
17921 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
17923         * PrintDialog.cs: Implements printer details
17925 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
17927         * FileDialog.cs: Added focus handling for PopupButtonPanel.
17928           Fixes part 1 and 2 of bug #78446
17930 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
17932         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
17933           instead of sticking to the first ever calculated value
17935 2006-05-19  Mike Kestner  <mkestner@novell.com>
17937         * ComboBox.cs: fix mouse motion selection to use MousePosition and
17938         PointToClient, since Capture is set. Fixes #78344.
17940 2006-05-19  Mike Kestner  <mkestner@novell.com>
17942         * ListView.cs: match MS behavior in Details view where items are not
17943         drawn if Columns.Count == 0. 
17944         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
17945         Use a separate pen to draw the check, since changing the width affects
17946         the box as well.  Fixes #78454.
17948 2006-05-18  Miguel de Icaza  <miguel@novell.com>
17950         * ListView.cs: ArgumentOutOfRangeException, single versions of the
17951         exception should throw the name of the invalid argument.
17953         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
17954         there are no files listed. 
17956 2006-05-18  Jackson Harper  <jackson@ximian.com>
17958         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
17959         up.
17961 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
17963         * Control.cs: Brought back our old UpdateZOrder method as a private
17964           function and switched our calls from UpdateZOrder to the new one.
17965           This fixes the Paint.Net canvas disappearing bug.
17967 2006-05-18  Jackson Harper  <jackson@ximian.com>
17969         * Theme.cs:
17970         * ThemeWin32Classic.cs:
17971         * InternalWindowManager.cs: Move the drawing into the theme,
17972         expose everything the theme should need from the window manager.
17974 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
17976         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
17977           from the call to NativeWindow to avoid walking up the parent chain
17978           further than needed (speeds up setting cursors and avoids setting
17979           the wrong cursor if a parent has another cursor defined)
17980         * Cursor.cs: When loading an icon as cursor, MS uses the center of
17981           the icon as hotspot, not what's contained as hotspot in the icon
17982           file. This fixes the perceived drawing offset seen with Paint.Net
17983         
17984 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
17986         * XplatUIX11.cs: 
17987           - Store the calculated rectangle in Hwnd object and use it when 
17988             setting the client size
17989           - Force Toolwindows to always be type Dock, to ensure they're on top
17991 2006-05-18  Mike Kestner  <mkestner@novell.com>
17993         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
17994         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
17995         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
17996         Substantial refactoring to remove confusing nested classes. Coding
17997         standard and Get+Set->property refactorings.  Shift to index based
17998         highlighting in ComboListBox instead of constantly using IndexOf and
17999         Items[]. Add invalidations on resize for DropDownList to fix ugliness
18000         in FileDialog growth.  Draw borders manually since Simple mode needs
18001         to look like two independent controls.  Make listbox border
18002         conditional to DropDownStyle.  Improved OwnerDraw support.
18004 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
18006         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
18007         Don't set the disposed graphics to null, so we can throw the "right"
18008         exception if the graphics is reused later (added a flag to avoid 
18009         double disposing). Some behaviours are different under 2.0 and are
18010         filled under bug #78448.
18012 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
18014         * Control.cs: When double-buffering is enabled, we need to reset
18015           our graphics context between paint calls. Otherwise, any 
18016           transformations and other alterations on the context will 
18017           become cumulative (#77734)
18019 2006-05-18  Mike Kestner  <mkestner@novell.com>
18021         * ListView.cs: do focused item selection like MS on clicks. 
18022         Rework focus handling for ItemControl so LostFocus invalidates as
18023         well.
18024         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
18025         the ListView ItemControl has focus.
18027 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
18029         * XplatUIX11.cs: If client_window ends up being width or height zero
18030           due to border settings, move it off window inside whole_window (#78433)
18032 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
18034         * Mime.cs: Shrink the mime file cache correctly.
18036 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
18038         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
18040 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
18042         * XplatUIX11.cs (AddExpose): More sanity checks
18044 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
18046         * XplatUIX11.cs:
18047           - AddExpose: Don't add expose ranges outside the size of our
18048             window
18049           - Cast opacity values to Int32 to avoid crashes with certain
18050             values
18051           - Added disabled code paths that protect against illegal cross-
18052             thread painting (Developers.exe)
18054 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
18056         * ProgressBar.cs: Invalidate the control when it's resized
18057           since block size is based on control size. (#78388)
18059 2006-05-16  Miguel de Icaza  <miguel@novell.com>
18061         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
18062         of setting the incoming argument to the "reset" value, we set the
18063         this.datamember to string.empty (before we were invalidating the
18064         incoming data).   
18066         Fixes 78420
18068 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
18070         * Form.cs: Only apply transparency settings after the form
18071           is created. (Fixes #77800)
18073 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
18075         * ApplicationContext.cs: Grab the HandleDestroyed event so
18076           we know when to fire OnMainFormClosed 
18078 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
18080         * Application.cs: Introduced sub-class to allow tracking of
18081           threads and centralized triggering of the event mess for
18082           ThreadExit, AppExit, etc..  (#76156)
18084 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
18086         * MimeIcon.cs:
18087           - Do not return a null icon index value for a mime subclass.
18088             Instead try the main mime type class too.
18089           - Seems that some newer distributions don't have a link to some
18090             gnome default icons anymore. So check the default gnome dir too.
18091           
18093 2006-05-16  Jackson Harper  <jackson@ximian.com>
18095         * MdiClient.cs: Don't paint the parent background image if we have
18096         our own background image.
18098 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
18100         * Control.cs:
18101           - PerformLayout: Do not shrink space filled by DockStyle.Fill
18102             controls, all filled controls are supposed to overlap (#78080)
18103           - UpdateZOrder is supposed to update the control's z-order in the
18104             parent's z-order chain. Fixed to behave like that
18105           - BringToFront: Removed obsolete code
18106           - SendToBack: Simplyfied
18107           - SetChildIndex: Trigger layout calculations when Z-order changes
18108             since layout is done by z-order
18110 2006-05-16  Chris Toshok  <toshok@ximian.com>
18112         [ fixes bug #78410 ]
18113         * DataGrid.cs (set_AlternatingBackColor): use
18114         grid_drawing.InvalidateCells instead of Refresh().
18115         (set_BackColor): call grid_drawing.InvalidateCells.
18116         (set_BackgroundColor): use Invalidate instead of Refresh.
18118         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
18119         invalidate the cell area.
18121 2006-05-15  Chris Toshok  <toshok@ximian.com>
18123         [ fixes bug #78011 ]
18124         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
18125         on to DataGridPaintRow.
18126         (DataGridPaintRow): take a clip argument, and only draw the cells
18127         which intersect it.  same with the not_usedarea.
18129         * Theme.cs (DataGridPaintRow) add @clip parameter.
18131         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
18132         XplatUI.ScrollWindow.
18133         (ScrollToRow): same.
18135         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
18136         with last column which was causing a gray swath to appear with the
18137         XplatUI.ScrollWindow code.
18139 2006-05-15  Chris Toshok  <toshok@ximian.com>
18141         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
18142         use XplatUI.ScrollWindow.
18143         (VerticalScrollEvent): use XplatUI.ScrollWindow.
18145 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
18147         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
18149 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
18151         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
18152           file since there are no equivalent X11 cursors
18154 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
18156         * MonthCalendar.cs : DateTimePicker should reflect selected date
18157           on mouse*up*, not mouse*down*. Fixed originally reported part of
18158           bug #76474.
18160 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
18162         * TabControl.cs : When argument index is equal or more than tab
18163           count, just ignore. Fixed bug #78395.
18165 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
18167         * Control.cs: Dispose all child controls when control is diposed (#78394)
18169 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
18171         * ColorDialog.cs: Finally it is possible to select the color with
18172           the text boxes
18174 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
18176         * PrintDialog.cs: Fix typo
18178 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
18180         * PrintDialog.cs: PrintDialog is not resizable
18181         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
18182           color. Made some ToolBar drawing methods protected virtual.
18184 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
18186         * PrintDialog.cs: Implementation of the PrintDialog
18188 2006-05-12  Chris Toshok  <toshok@ximian.com>
18190         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
18191         thumb, instead use MoveThumb.  This has the side effect of making
18192         most of the other thumb moving machinery use MoveThumb as well.
18193         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
18194         need to actually invalidate the rectangle where the new thumb will
18195         go.
18196         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
18197         We force an Update() after, so it's not as fast as it could be,
18198         but at least there's zero flicker and no droppings.
18199         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
18200         (UpdateThumbPos): add another argument (dirty), which says whether
18201         or not to calculate/add dirty regions which we later invalidate.
18202         For cases where we know we're going to use MoveThumb, we pass
18203         false for this.  Otherwise, pass true.
18205 2006-05-12  Jackson Harper  <jackson@ximian.com>
18207         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
18208         the status bar.
18209         
18210 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
18212         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
18213           and GetClipRegion methods and UserClipWontExposeParent property.
18214         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
18215           overriding UserClipWontExposeParent property, setting to false, since
18216           Win32 handles the required expose messages to draw our clipped parent
18217           areas internally
18218         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
18219           PaintEventStart to set the user clip region if set.
18220         * Control.cs: 
18221           - Now internally tracking the Region for the control since we need to
18222             store it if the handle is not yet created and only set it when it
18223             becomes created. Before setting the region forced handle creation
18224           - Added code to draw the parents underneath a user-clipped region
18225         * Hwnd.cs: Added UserClip property
18227 2006-05-12  Chris Toshok  <toshok@ximian.com>
18229         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
18230         (set_Maximum): same.
18231         (set_Minimum): same.
18232         (set_SmallChange): same.
18233         (OnMouseUpSB): remove the call to refresh when releasing the
18234         thumb.  We shouldn't need it.
18235         
18236 2006-05-12  Miguel de Icaza  <miguel@novell.com>
18238         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
18239         AutoSize set to None, we do not need to relayout everything, we
18240         just need to invalidate the current region.
18242         (Draw): Do not draw the entire ClientArea, just redraw the
18243         clip area being passed.
18245         * MdiClient.cs: Make MdiClient constructor with the Form argument
18246         internal. 
18248 2006-05-12  Jackson Harper  <jackson@ximian.com>
18250         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
18251         parents background image,  but strangely not their own.
18252         - (DrawStatusBarPanel): Take into account horizontal alignment
18253         when drawing the strings and icons.
18255 2006-05-12  Mike Kestner  <mkestner@novell.com>
18257         * ListBox.cs: avoid invalidations for focus when the collection is
18258         empty. 
18260 2006-05-12  Chris Toshok  <toshok@ximian.com>
18262         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
18263         invalidate the entire thumb area.  Call InvalidateDirty which
18264         limits the redraw to the thumb itself and surrounding pixels.
18266         * XplatUIX11.cs (ScrollWindow): optimize copying.
18267         
18268 2006-05-12  Chris Toshok  <toshok@ximian.com>
18270         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
18271         Figure out the positioning/layout in a single pass instead of
18272         multiple recursive invocations.  Speeds up the initial display of
18273         the data grid.  Also, make many things private that were
18274         originally public but unused outside this class.
18276 2006-05-11  Jackson Harper  <jackson@ximian.com>
18278         * MdiClient.cs: Improved layout code.
18280 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
18282         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
18283           not SelectedObject.
18285 2006-05-11  Chris Toshok  <toshok@ximian.com>
18287         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
18288         union of that will always be {0,0,width,height}.
18290 2006-05-11  Jackson Harper  <jackson@ximian.com>
18292         * Form.cs: Match MS's DefaultSize for forms (they must have
18293         changed the size in sp2).
18295 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
18297         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
18299 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
18301         * TextControl.cs : Fixed bug #78109. This incorrect position
18302           comparison caused crash on automatic line split.
18303         * TextBoxBase.cs : reduce duplicate code.
18305 2006-05-10  Jackson Harper  <jackson@ximian.com>
18307         * MdiClient.cs: Active form is only sent to the back when using
18308         the Next form functionality, when a form is clicked the current
18309         active shouldn't be sent to the back.
18310         - Layout the mdi windows when the container is first made visible.
18311         * Form.cs: Give the MdiClient a ref to the containing form when we
18312         create it.
18313         
18314 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
18316         * LinkLabel.cs : link_font could be uninitialized, so populate one
18317           before actual use. Fixed bug #78340.
18319 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
18321         * XplatUIX11.cs : clipboard format native value is IntPtr.
18322           Fixed bug #78283.
18324 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
18326         * Control.cs: 
18327           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
18328             which is passed up the parent chain by DefWndProc
18329           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
18330             to DefWndProc (#77956)
18331         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
18333 2006-05-10  Jackson Harper  <jackson@ximian.com>
18335         * MdiClient.cs: We need to remove the controls from the mdi
18336         collection, when we close the window.
18337         * MdiWindowManager.cs: Special handling of closing mdi windows.
18338         * InternalWindowManager.cs: Make the close method virtual so the
18339         mdi window manager can handle it specially.
18341 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
18343         * DataGrid.cs:
18344           - Recalculate grid when the data source has changed
18345           - Matches styles provided by user from all data sources types
18346         * DataGridTableStyle.cs: For columns that provided by the user set the
18347         with the preferred value is there was unassigned.
18348         * CurrencyManager.cs: throw OnItemChanged event
18350 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
18352         * PictureBox.cs: Don't animate until handle is created. Start animation
18353           when handle is created.
18355 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
18357         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
18358           current codebase.
18359         * XEventQueue.cs: We don't need to provide the extra info
18361 2006-05-10  Jackson Harper  <jackson@ximian.com>
18363         * MdiClient.cs: If the mdi clients parent form has a background
18364         image set, we draw that background image for the mdi area's
18365         background.
18367 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
18369         * TextBoxBase.cs: Set IBeam cursor (#78347)
18371 2006-05-10  Mike Kestner  <mkestner@novell.com>
18373         * ToolBar.cs: fix some text padding issues with ButtonSize
18374         calculation. Update the default size to match MS documentation.
18375         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
18376         button size. Fixes #78296.
18378 2006-05-10  Mike Kestner  <mkestner@novell.com>
18380         * ListBox.cs: use is_visible for scrollbar positioning in case the
18381         control isn't on screen yet.  Fix off by one with Right vs Width
18382         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
18383         
18384 2006-05-10  Jackson Harper  <jackson@ximian.com>
18386         * X11Dnd.cs: Drop to a control with another control on top of it.
18387         * ToolBar.cs: Work on a copy of the buttons list, so that it can
18388         be modified in click handlers. TODO: Look for similar problems in
18389         other controls.
18391 2006-05-09  Jackson Harper  <jackson@ximian.com>
18393         * Form.cs: Window managers need the old window state when setting
18394         window state now.
18395         * InternalWindowManager.cs: Allow the base mdi window manager to
18396         handle more of the MDI only stuff (like maximize buttons).
18397         * MdiWindowManager.cs: Fix some snafus in changing the window
18398         state.  Add all the menu functionality, for both popup and
18399         maximized menus.
18400         * MdiClient.cs: When a new form is selected the currently
18401         activated form is sent to the back, this matches MS.
18402         - Implement a new method to activate the next mdi child window.
18404 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
18406         * Control.cs: 
18407           - Added new InternalCapture method to allow controls to prevent
18408             the capture behaviour on the click handlers
18409           - Switched to use InternalCapture
18410         * ComboBox.cs:
18411           - Using InternalCapture to prevent mouse captures from being released
18412             on mouse button release (Fixes #78100)
18413         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
18414           returns Form borders if a caption is present. (Fixes #78310)
18416 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
18418         * TreeNode.cs: Changed serialization .ctor to not require every field
18419           to be present. (#78265)
18420         * OwnerDrawPropertyBag.cs: Added serialization .ctor
18422 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
18424         * MimeIcon.cs: for is faster than foreach for strings.
18426 2006-05-05  Mike Kestner  <mkestner@novell.com>
18428         * CheckedListBox.cs: update check handling code to not use selected.
18429         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
18430         behavior for visual feedback, motion response, shift/ctrl handling,
18431         and properly deal with all 4 selection modes. Updates to bounds
18432         handling logic.  Add scroll wheel support. [Fixes #77842]
18434 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
18436         * ListView.cs:
18437           - Moved adding of Implicit controls into .ctor. That way, subsequent
18438             creation of the controls will not cause them to think they are 
18439             toplevel windows (fixes #78200 header problem)
18440           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
18441           - Switched visibility setting of header control to use internal field
18442             to avoid triggering handle creation
18443           - Now checking if handle is created before causing a refresh when items
18444             are added (This makes us now match handle creation time with MS)
18445         * Splitter.cs: Removed loading of private splitter cursor, switched to
18446           Cursors version now that that is loading the right ones
18447         * Cursors.cs: Load proper splitter cursors from resources
18448         * Cursor.cs: Added second method of loading resource cursors for the 
18449           VS.Net users amongst us
18451 2006-05-05  Mike Kestner  <mkestner@novell.com>
18453         * ListView.cs: give header_control a minimum size based on the
18454         ListView size.
18456 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
18458         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
18459           window seems to do that with metacity, so set that type. (#78120)
18461 2006-05-05  Mike Kestner  <mkestner@novell.com>
18463         * ListViewItem.cs: fix Details mode checkbox layout bug.
18464         * ThemeWin32Classic.cs: draw a ListView column header for unused space
18465         at the end of the header, if it exists. [Fixes for #78200]
18467 2006-05-04  Jackson Harper  <jackson@ximian.com>
18469         * MdiClient.cs: Add a helper property to get the container form.
18470         * MdiWindowManager.cs: We have to make sure to use the menu origin
18471         when drawing the icons and buttons, this fixes maximized window
18472         icons/buttons on win32.
18473         * InternalWindowManager.cs: Reset the restore captions when a
18474         window goes from Maximized to Minimized and vice versa. Move the
18475         DrawMaximizedButtons into the MdiWindowManager source, tool
18476         windows can't be maximized. NOTE: This could use a little
18477         refactoring if time ever permits.
18478         
18479 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
18481         * TextBox.cs: Add MWFCategoryAttributes
18482         * TextBoxBase.cs: Add MWFCategoryAttributes
18483         * Form.cs: Add MWFCategoryAttributes
18485 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
18487         * Control.cs: Add MWFCategoryAttributes
18488         * ScrollableControl.cs: Add MWFCategoryAttributes
18490 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
18492         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
18493           Divider is true. Fix a little glitch in PropertyToolBar
18494           drawing code
18496 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
18498         * Control.cs:
18499           - Dispose: Call base.Dispose, this causes the disposed event
18500             to be fired (and probably other, more important stuff)
18501           - SetVisibleCore: Set is_visible to true after creating the
18502             window so that the window still gets created invisible (if
18503             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
18504             to generate a WM_ACTIVE message
18505         * Form.cs: Call Dispose when we want to destroy the window, instead of
18506           just destroying the handle (Dispose will do that for us)
18507         * XplatUIX11.cs:
18508           - RootWindow also needs a queue, so we can properly process the
18509             property change events from RootWindow (like Activate)
18510           - Generatic synthetic WM_ACTIVE message when the active window is
18511             being destroyed
18513 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
18515         * LinkLabel.cs: Trigger a recalc of our label dimensions when
18516           bounds are changed
18518 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
18520         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
18521           for determining width and height (image might not be assigned if
18522           we're drawing an imagelist)
18524 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
18526         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
18527         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
18528           height from system
18529         * Theme.cs: No longer returns hardcoded menu height, instead calls
18530           new driver method
18531         * Form.cs (OnLoad): Scaling happens before triggering Load events 
18532           on MS (# 78257)
18534 2006-05-01  Mike Kestner  <mkestner@novell.com>
18536         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
18538 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
18540         * TextBoxBase.cs: Removed Fixme
18541         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
18543 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
18545         * XplatUIX11.cs:
18546           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
18547             the rectangle relative to the parent, considering borders. We
18548             don't really want that.
18549           - ScrollWindow: Fixed warning to be more understandable
18550         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
18551           scrollbars and scroll only the visible area
18552         * RichTextBox.cs: Removed debug output
18554 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
18556         * NumericUpDown.cs (Text): Just use base
18557         * UpDownBase.cs: Ensure txtView is created before using it
18559 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
18561         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
18562           casting to IntPtr to avoid 64bit overflow errors
18564 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
18566         * Control.cs:
18567           - AllowDrop: Don't force handle creation.
18568           - CreateHandle: Added call to tell driver if we're allowed to drop
18570 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
18572         * FileDialog.cs: Remember the last directory not only for the
18573           current instance but also for new FileDialog instances.
18575 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
18576         
18577         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
18578           broke sending async messages
18580 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
18582         * XplatUIX11.cs:
18583           - ScrollWindow: Fixed method. We finally generate expose events again
18584             for scrolled areas. This was causing 'garbage' when scrolling
18585             textbox and other controls that used ScrollWindow
18586           - Switched from using the regular queue for paint events to the MS 
18587             model of 'generating' paint events when the queue is empty.
18588             We use the new XQueueEvent.Paint subclass to store which windows
18589             need painting.
18590           - AddExpose now takes the x/y/width/height of the exposed area
18591             and inserts the window into the paint queue if not already there
18592           - InvalidateWholeWindow: Switched to use new AddExpose method
18593           - UpdateMessageQueue: Added which queue to monitor for paint events
18594           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
18595             the unlikely case nothing above handles it. We reset the expose
18596             pending states to get them off the queue.
18597           - GetMessage: Now pulls a paint event if no other events are in the
18598             queue
18599           - Invalidate: Switched to new AddExpose method
18600           - PeekMessage: Updated to understand pending paint events
18601           - UpdateWindow: Fixed logic bug. We were only updating if the window
18602             didn't need updating. Also switched to sending WM_PAINT directly,
18603             like MS does.
18604         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
18605           and random access Remove(). The random access is needed to handle
18606           UpdateWindow() where a WM_PAINT is sent directly without accessing
18607           the queue.
18608         * ScrollBar.cs: Added Update() calls to cause immediate updates to
18609           allow for better feedback when scrolling. Scrollbars are small and
18610           the immediate update should make it 'feel' more responsive without
18611           slowing things down. ScrollBar still needs it's invaliate logic
18612           updated to not always invalidate the whole bar on certain changes.
18614 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
18616         * Control.cs:
18617         (BackColor): if the control does not support a transparent background,
18618         return the default backcolor when the parent backcolor is transparent.
18620 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
18622         * Application.cs: Updated to new StartLoop/GetMessage API
18623         * RichTextBox.cs: Provide some output on RTF parsing errors
18624         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
18625           new queue_id argument to GetMessage and PeekMessage to allow faster
18626           handling of per-thread queues in drivers.
18627         * Hwnd.cs: Added Queue tracking and property
18628         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
18629         * XEventQueue.cs: Added thread trackingA
18630         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
18631         * XplatUIX11.cs:
18632           - Implemented new per-thread queue
18633           - GetMessage: Fixed return/break behaviour on several cases. We were
18634             returning stale messages in some cases, instead of just processing
18635             the next message
18637 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
18639         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
18641 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
18643         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
18644           fixed off-by-one comparisons between Width/Height and Right/Bottom.
18646 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
18648         * PropertyGridView.cs: Fix drop down width.
18650 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
18652         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
18653           a mess in DrawToolBar, so I removed one of them.
18655 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
18657         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
18658           needed (clip). Otherwise we get artifacts.
18660 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
18662         * FixedSizeTextBox.cs: Added constructor to allow specifying which
18663           dimension is fixed
18664         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
18665           and switched FixedSizeTextBox to only be fixed vertical (#78116)
18666         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
18667           if it matches the scale base font (avoids unneeded scaling)
18669 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
18671         * X11DesktopColors.cs: One gtk_init_check should be enough
18673 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
18675         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
18676           match MS behaviour
18678 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
18680         * TextBoxBase.cs: 
18681           - Generate OnTextChanged for Backspace even if we're only deleting
18682             the current selection
18683           - When setting the Text property, only select all text if the
18684             control does not have focus when it is being set. Otherwise
18685             just place the cursor at the beginning of the control
18687 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
18689         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
18690           Added a little helper to draw PropertyGrid ToolBar with a different
18691           border and a different BackColor.
18692         * PropertyGrid.cs: Some background parts didn't get painted with the
18693           correct background color. Added a class that helps us to draw the
18694           correct border for PropertyGridView and a class that helps us to
18695           draw ToolBars with a different backcolor
18696         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
18698 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
18700         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
18701         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
18703 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
18705         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
18706           into the palette entries. Also, since we're working on a copy
18707           we needed to copy the palette back onto the bitmap.
18708         * Cursor.cs: Same fix as XplatUIWin32.cs.
18710 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
18712         * ImageListStreamer.cs: Need to read the var (or we're off)
18714 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
18716         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
18717           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
18718           TextBoxBase.cs: Unused var fixes
18719         * AxHost.cs: Small 2.0 fix
18720         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
18721           as it seems that is what at least Metacity expects. This will make
18722           icons show up on 64bit platforms. We still have some 64bit size
18723           issues, though, since the startup app window size still won't match.
18725 2006-04-25  Mike Kestner  <mkestner@novell.com>
18727         * *.cs: cleanup newly reported exception var unused warnings.
18729 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
18731         * ThemeWin32Classic.cs: Button image alignment now matches exactly
18732           ms
18734 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
18736         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
18737           image. The image position is always the same, no matter if the
18738           button is pressed or not.
18740 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
18742         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
18743           selection and set the correct filename for SaveFileDialog.
18744           Patch by Emery Conrad.
18746 2006-04-24  Mike Kestner  <mkestner@novell.com>
18748         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
18749         check for item.X outside the ClientRect instead of item.Y. Fixes
18750         #78151.
18752 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
18754         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
18755         trust that value blindly and do some sanity check. Fixes bug #77814.
18757 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
18759         * ImageListStreamer.cs: save the mask as a 1bpp image.
18761 2006-04-21  Mike Kestner  <mkestner@novell.com>
18763         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
18764         pass Checked and Indeterminate to the Theme Engine. Improve
18765         encapsulation with ListBox.
18766         * ListBox.cs: Keep a StringFormat instead of calculating it every item
18767         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
18768         nested types.  Move all CheckState functionality to CheckedListBox.
18769         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
18770         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
18771         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
18772         single base list. Fix scrollbar sizing and placement to mirror MS.
18773         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
18774         used.
18775         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
18776         for CheckedListBox by using new DrawItemState info.  Center the
18777         checkboxes on the items. Use new StringFormat property.
18779 2006-04-18  Jackson Harper  <jackson@ximian.com>
18781         * Form.cs: MdiChildren don't do default locations the same way as
18782         regular forms.  This prevents a crash when trying to position the
18783         mdi windows.
18785 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
18787         * PropertyGridTextBox.cs: Formatting, copyright
18788         * PropertiesTab.cs: Formatting
18789         * PropertyGrid.cs: Formatting
18790         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
18791           click toggling of values
18792           
18793 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
18795         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
18796         * Control.cs (.ctor): verify_thread_handle is static, don't reset
18797           every time a control is created
18798         * Application.cs: Removed obsolete EnableRTLMirroring method
18800 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
18802         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
18803         SelectedIndex to -1. Fixes bug #78121.
18805 2006-04-17  Jackson Harper  <jackson@ximian.com>
18807         * Binding.cs: Handle null values for Current and BindingContext.
18808         This occurs when binding is a little delayed.
18809         * CurrencyManager.cs: return null for Current when there are no
18810         items in the list.
18811         - Hookup to the listchanged event on the DataView and update
18812         bindings when the list is changed.  This fixes late binding of
18813         controls.
18815 2006-04-17  Jackson Harper  <jackson@ximian.com>
18817         * X11Dnd.cs:
18818         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
18819         Ringenbach.
18821 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
18823         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
18824           place
18825         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
18826           with the correct ButtonState
18828 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
18830         * XplatUIX11.cs: Improved distinguishing between window types to
18831           tell the WM a type closer to what the app wants (Fixes #78107)
18833 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
18835         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
18836           GrabHandle
18838 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
18840         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
18841           drawing code to reflect the size grip changes
18843 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
18845         * ImageListStreamer.cs: fix handling of the mask that follows the main
18846         bitmap when deserializing and serialize it properly. The generated mask
18847         should better be a 1bpp image, but I'll do that later.
18849 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
18851         * FileDialog.cs: Show something in the DirComboBox on *nix if the
18852           path doesn't fit into some of our Current.Places
18854 2006-04-13  Jackson Harper  <jackson@ximian.com>
18856         * ComboBox.cs: Use borders instead of drawing our own decorations,
18857         try to obey correct rules for heights.
18858         * Theme.cs:
18859         * ThemeNice.cs:
18860         * ThemeClearLooks.cs:
18861         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
18862         this is now handled by borders.
18863         - Remove unused DrawListBoxDecorationSize method.
18864         
18865 2006-04-13  Mike Kestner  <mkestner@novell.com>
18867         * MenuAPI.cs: null guarding for the disbled click check fixes crash
18868         reported by Alex.
18870 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
18872         * ThemeWin32Classic.cs: 
18873           - Fixed CPDrawStringDisabled
18874           - Corrected drawing of disabled menu items
18875           - Fixed drawing of disabled radio buttons (bug #78095)
18876           - Draw check in a disabled CheckBox with color ControlDark 
18878 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
18880         * Form.cs: Use the provided width when calculating the menu size;
18881           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
18882           and ClientSize.Width won't be updated yet
18883         * Application.cs: Use Visible instead of Show() to make form visible,
18884           this way we create the handle later and menusize is considered
18886 2006-04-12  Mike Kestner  <mkestner@novell.com>
18888         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
18889         reporting.
18891 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
18893         * TextBox.cs: Implemented context menu
18895 2006-04-12  Mike Kestner  <mkestner@novell.com>
18897         * ListView.cs: implement box selection. fixes #77838.
18898         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
18900 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
18902         * XplatUIX11.cs: Added setting of window type when transient window
18903           is created (metacity would move it otherwise)
18904         * X11Structs.cs: Added WINDOW_TYPE atoms
18905         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
18906           background (the control is Opaque but still wants transparent
18907           backgrounds)
18909 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
18911         * Control.cs: Added OnPaintBackgroundInternal to allow controls
18912           that set Opaque but don't mean it (like all ButtonBase-derived
18913           controls) to still draw their background
18914         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
18915           the background
18917 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
18919         * Control.cs (PaintControlBackground): Set the graphics object
18920           on our PaintEvent to null to prevent it from being disposed
18921           when the PaintEvent gets disposed
18923 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
18925         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
18926         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
18928 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
18930         * Control.cs: 
18931           - Added transparency check to BackColor property. Transparent
18932             backgrounds are only allowed if the control styles permit it
18933           - Added recursive painting of parent control background and
18934             foreground if a control with a transparent backcolor is drawn
18935             (Thanks to Tim Ringenback for providing his 'hack' as a base
18936              for this patch) Fixes #77985 and #78026.
18937           - Added Opaque style check before calling OnPaintBackground, no
18938             need to draw the background if the control is opaque
18939           - Removed ControlAccessibleObject owner variable (inherited from
18940             base, no need to define again)
18941           - Added some documentation links explaining the drawing events
18942             and styles
18944 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
18946         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
18947           that the affected control is the located at the left border of our
18948           parent (Fixes #77936)
18950 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
18952         * TextBoxBase.cs: When rendering disabled or readonly controls,
18953           draw the background with 'Control' instead of 'Window' color as
18954           long as the user hasn't specifically set a color
18956 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
18958         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
18959           since that won't be updated if the user types text (only if it's
18960           programatically set)
18962 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
18964         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
18965           layout changes do to app-triggered resizes will have the proper
18966           display rectangle for layout
18968 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
18970         * ThemeWin32Classic.cs:
18971           - Make use of the SystemBrushes and SystemPens wherever possible
18972           - Corrected some highlight colors
18973           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
18974             drawing
18975         * Theme.cs: Added Empty field to CPColor struct
18977 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
18979         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
18980           is displayed when calculating the display rectangle. Thanks to Mike
18981           for teaching me the err of my ways.
18983 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
18985         * ScrollableControl.cs:
18986           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
18987             (instead of 0,0) and we now return the real width/height instead of
18988             just the clientrectangle, adjusted for padding. The rectangle is
18989             now cached and created by the new CalculateDisplayRectangle method.
18990           - Created new CalculateDisplayRectange method, which basically does
18991             what get_DisplayRectangle() did originally, but now using the 
18992             right edge instead of DisplayRectangle to determine the size of
18993             our scrollbars
18994           - get_Canvas(): Fixed it to properly calculate canvas for 
18995             right/bottom controls which seem to be placed to the right/bottom
18996             of any controls that have a fixed location
18997           - Removed TODO that's taken care of
18998           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
18999             and SetDisplayRectLocation according to new MSDN2 docs
19000           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
19001             event when that is called, this is added for compatibility
19002           - ScrollControlIntoView(): Implemented.
19003           - Switched scrollbars to be implicit, they shouldn't be selectable
19004         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
19005           call it when the active control is set/changed
19006         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
19007         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
19008           implicit_control variable (used for native Win32 message generation)
19009         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
19010           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
19011         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
19012         * XplatUIStructs.cs: Added ScrollBarCommands enum
19014 2006-04-10  Jackson Harper  <jackson@ximian.com>
19016         * ButtonBase.cs:
19017         * CheckedListBox.cs:
19018         * ComboBox.cs:
19019         * DataGrid.cs:
19020         * DataGridView.cs:
19021         * Form.cs:
19022         * GroupBox.cs:
19023         * ListBox.cs:
19024         * PrintPreviewControl.cs:
19025         * ProgressBar.cs:
19026         * PropertyGrid.cs:
19027         * Splitter.cs:
19028         * StatusBar.cs:
19029         * TrackBar.cs:
19030         * UpDownBase.cs: Fixup base event overrides.
19031         
19032 2006-04-06  Mike Kestner  <mkestner@novell.com>
19034         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
19035         all user-initiated value changes to min <= value <= max-thumbsz+1.
19036         (set_Value): check for vert/horiz when calculating new thumb position.
19037         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
19038         like MS does.
19039         (OnMouseMoveSB): refactor the thumb dragging code and refine
19040         invalidation logic to reduce flicker.
19041         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
19042         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
19043         (UpdateThumbPosition): small code readability cleanup
19045 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
19047         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
19048           different
19050 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
19052         * ThemeNice.cs: Use a better graphics effect when a button is pressed
19054 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
19056         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
19057         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
19058           This dramatically reduces the number of Pen.Dispose calls. 
19059           Where possible call ResPool methods only once instead of calling it
19060           over and over again (for example for the same color).
19062 2006-04-06  Mike Kestner  <mkestner@novell.com>
19064         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
19065         Also remove an unused private field on the collection. Fixes #77972.
19067 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
19069         * ThemeNice.cs: Added ToolBar drawing code
19071 2006-04-06  Mike Kestner  <mkestner@novell.com>
19073         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
19074         I'm assuming that means we need to look up the toplevel for the
19075         provided control. Fixes the crash trace in #77911 but exposes another
19076         crash in some strange reflection usage in NDocGui.
19078 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
19080         * ThemeNice.cs: Gave it a little silver touch and added Images
19081           method
19082         * FontDialog.cs: FontDialog is not resizable
19083         * FileDialg.cs: Added SizeGripStyle.Show
19085 2006-04-05  Jackson Harper  <jackson@ximian.com>
19087         * KeyboardLayouts.cs: Remove warning.
19089 2006-04-05  Jackson Harper  <jackson@ximian.com>
19091         * Control.cs: Enable OnPaintInternal so we can use it for drawing
19092         all of our controls instead of Paint +=.
19093         * ListBox.cs:
19094         * ListView.cs:
19095         * MenuAPI.cs:
19096         * MessageBox.cs:
19097         * NotifyIcon.cs:
19098         * ProgressBar.cs:
19099         * ScrollBar.cs:
19100         * Splitter.cs:
19101         * StatusBar.cs:
19102         * TabControl.cs:
19103         * TextBoxBase.cs:
19104         * ToolBar.cs:
19105         * TrackBar.cs:
19106         * UpDownBase.cs:
19107         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
19108         use OnPaintInternal. Remove Width/Height and Visible checks in
19109         paint handler, this is done at a higher level now.
19110         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
19111         * PaintEventArgs.cs: Add a handled flag so controls that don't
19112         want anymore painting after OnPaintInternal can make sure OnPaint
19113         isn't called.
19115 2006-04-05  Mike Kestner  <mkestner@novell.com>
19117         * Form.cs: fix the menu WndProc hacks to respect the native enabled
19118         state of the form, so that we don't process events when Modal dialogs
19119         are up. Fixes #77922.
19121 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
19123         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
19124           checking is done.
19126 2006-04-05  Mike Kestner  <mkestner@novell.com>
19128         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
19130 2006-04-05  Mike Kestner  <mkestner@novell.com>
19132         * ListView.cs (HeaderMouseMove): null guarding for the over column
19133         when setting up the drag_to_index.  Fixes #78015.
19135 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
19137         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
19138           in the taskbar. Transient windows seem to accomplish that.
19140 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
19142         * Form.cs:
19143           - Re-enabled CreateParams.X/Y code for FormStartPosition
19144           - Added code for manual placement when creating the Control
19145           - Incomplete patch to treat MDI forms differently when
19146             setting the ClientSizeCore. (Still need to figure out handling
19147             x/y coords there)
19148         * XplatUIX11.cs:
19149           - When we're explicitly setting the X/Y position of a non-Child
19150             window, let the WM know. Metacity really wants this.
19152 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
19154         * ThemeNice.cs: Added CPDrawButton
19156 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
19158         * ThemeNice.cs: Changed the color for focused buttons and activated
19159           the arrows for small scroll buttons.
19161 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
19163         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
19164           anymore. Changed some method modifiers to protected (virtual)
19165         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
19166           changes
19167         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
19168           Updated drawing of menus, buttons and progressbars; added
19169           CPDrawBorder3D 
19171 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19173         * ImageListStreamer.cs: implemented serialization/deserialization
19174         of the images.
19176 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
19178         * ThemeWin32Classic.cs:
19179           - Removed all the DrawFrameControl stuff; CPDrawButton,
19180             CPDrawCheckBox and CPDrawRadioButton are now handled directly
19181             inside the methods
19182           - Updated and corrected the drawing code of CPDrawButton,
19183             CPDrawCheckBox and CPDrawRadioButton to better match ms
19184           - Updated theme checkbox and radiobutton code to use the CP*
19185             methods
19187 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
19189         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
19190           bug is fixed
19192 2006-03-31  Jackson Harper  <jackson@ximian.com>
19194         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
19195         sometimes.
19196         * UpDownBase.cs: Don't CreateGraphics manually, use a
19197         Refresh. Ideally we would invalidate the correct areas here.
19199 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
19201         * XplatUIX11.cs: 
19202           - We now track the mapping state of windows. If a window (or 
19203             one of it's parents) is not mapped we no longer permit
19204             WM_PAINT messages to be generated since we'd otherwise get 
19205             lots of BadMatch X errors. Jackson did all the work figuring
19206             out the problem.
19207           - Destroying the caret if the window it's contained in is 
19208             destroyed. Can't use regular DestroyCaret method since it
19209             might fall into a drawing function (trying to remove the
19210             caret) and with that generate new BadMatch errors. Again,
19211             Jackson tracked this down.
19212           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
19213             make sure we send the messages to all windows. (The old code
19214             would send the WM_DESTROY to the window, and then all child
19215             windows would be 'gone' because the WM_DESTROY handle lookup
19216             would no longer find the destroyed window)
19217         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
19218         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
19220 2006-03-31  Jackson Harper  <jackson@ximian.com>
19222         * ScrollableControl.cs: Dont recalc if we are not visible.
19224 2006-03-31  Mike Kestner  <mkestner@novell.com>
19226         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
19227         the visibility branch.
19229 2006-03-31  Jackson Harper  <jackson@ximian.com>
19231         * ScrollBar.cs: Cap values when incrementing/decrementing.
19233 2006-03-31  Mike Kestner  <mkestner@novell.com>
19235         * MenuAPI.cs: setup menu.tracker for popup/context menus.
19236         * ToolTip.cs: guard against timer expirations with no active control.
19237         Not sure why it happened.
19239 2006-03-31  Mike Kestner  <mkestner@novell.com>
19241         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
19242         text.
19243         * ToolTip.cs: Position the tooltip based on where the cursor is at
19244         popup time, not at MouseEnter time.  Add a Down state so that we don't
19245         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
19246         positioning offset. Lookup DisplaySize at positioning time, since it
19247         can theoretically change during invocation.
19248         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
19249         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
19251 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
19253         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
19254           Fixes behaviour when the Text property of the box is String.Empty
19256 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
19258         * XplatUIX11.cs: Only send mouseleave for our client windows, not
19259           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
19260           a window)
19262 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
19264         * FileDialog.cs: Visual enhancement for the popup buttons in 
19265           PopupButtonPanel
19267 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
19269         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
19270           code
19272 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
19274         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
19275           highlighted menu items to match ms
19277 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
19279         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
19281 2006-03-30  Mike Kestner  <mkestner@novell.com>
19283         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
19284         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
19285         go active to account for HotLight to Selected transition.
19286         * MenuItem.cs: add internal Selected prop. Fill out the Status
19287         property by calculating it from item info. Add HotLight,
19288         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
19290 2006-03-30  Mike Kestner  <mkestner@novell.com>
19292         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
19294 2006-03-29  Jackson Harper  <jackson@ximian.com>
19296         * Form.cs: Implement TODO.
19298 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
19300         * PrintPreviewDialog.cs: Implemented missing methods and events; still
19301           missing proper dialog setup in the constructor
19303 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
19305         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
19306         * Control.cs:
19307           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
19308           - Fixed ResetBindings and removed TODO
19309           - Added check for cross-thread calls to get_Handle()
19310           - Added Marshaller attribute for set_Font to satisfy class status
19311         * FontDialog.cs: Removed TODOs that seemed implemented
19312         * UpDownBase.cs: Removed unneeded TODO and Fixme
19313         * MessageBox.cs: Implemented support for Default button and removed TODO
19314         * FileDialog.cs: Removed obsolete TODO
19315         * DomainUpDown.cs: Removed obsolete TODO
19316         * ButtonBase.cs: Removed obsolete TODO
19317         * XplatUIWin32.cs: Removed obsolete TODO
19318         * Form.cs:
19319           - Removed obsolete TODO
19320           - Calling CheckAcceptButton when the acceptbutton is changed to allow
19321             internal status updates
19322           - Making sure the active control is selected when the control is created
19323         * CurrencyManager.cs: Removed obsolete TODO
19325 2006-03-29  Mike Kestner  <mkestner@novell.com>
19327         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
19328         of PrintPreviewDialog and RichTextBox.
19330 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
19332         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
19333           DarkDark, Light and LightLight colors for a specific color
19334         * ThemeWin32Classic.cs:
19335           - Use Button drawing code to draw RadioButtons and CheckBoxes with
19336             Appearance = Button 
19337           - Make use of the new ResPool helper CPColor
19338           - Draw ProgressBar and StatusBar with correct 3D borders
19340 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
19342         * ColorDialog.cs: Return selected color. Fixes bug #77940.
19344 2006-03-28  Mike Kestner  <mkestner@novell.com>
19346         * ListView.cs: fix Icon layout to plan for scrollbar widths when
19347         calculating col/row counts.
19349 2006-03-28  Mike Kestner  <mkestner@novell.com>
19351         * ColumnHeader.cs:
19352         * ListView.cs:
19353         * ListViewItem.cs:
19354         * Menu.cs: 
19355         switch to explicit interface method implementation for some methods
19356         corcompare identifies as inconsistent with MS.
19358 2006-03-28  Mike Kestner  <mkestner@novell.com>
19360         * MainMenu.cs: 
19361         * Menu.cs:
19362         add a few missing methods from the class status output.
19364 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
19366         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
19367           correct.
19369 2006-03-28  Mike Kestner  <mkestner@novell.com>
19371         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
19373 2006-03-27  Mike Kestner  <mkestner@novell.com>
19375         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
19376         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
19378 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
19380         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
19382 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
19384         * ThemeWin32Classic.cs:
19385           - GroupBox: Inserted a little gap between the text and the lines
19386             on the right side
19387           - Made the code in CPDrawBorder3D more readable
19388           - Corrected the drawing location of the up and down arrows in 
19389             CPDrawScrollButton
19391 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
19393         * ControlPaint.cs: Corrected line widths in DrawBorder for
19394           ButtonBorderStyle Inset and Outset
19396 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
19398         * ThemeWin32Classic.cs:
19399           - Rewrote the totally broken CPDrawBorder3D method. That was
19400             one of the main problems for the terrific ThemeWin32Classic
19401             look
19402           - Updated and corrected Button drawing
19403           - Correct the dimensions of the SizeGrip to match ms ones
19404           - Removed a small drawing glitch in DrawComboBoxEditDecorations
19405         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
19406           Border3DStyle.Sunken to match ms.
19408 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
19410         * ThemeWin32Classic.cs: First small part of the "de-uglify
19411           ThemeWin32Classic" effort, SizeGrip
19413 2006-03-24  Jackson Harper  <jackson@ximian.com>
19415         * XplatUIX11.cs: Give a max idle time of one second, this matches
19416         MS and forces an Idle event every second when there are no other
19417         events in the queue.
19419 2006-03-24  Mike Kestner  <mkestner@novell.com>
19421         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
19422         * ListView.Item.cs: fix layout issues with null image lists and images
19423         smaller than checkbox size.
19424         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
19425         mode like MS does.  It's weird, but consistent.  ;-)
19426         Fixes #77890.
19428 2006-03-24  Mike Kestner  <mkestner@novell.com>
19430         * ListView.cs: Scroll wheel support for the item control.  Fixes
19431         #77839.
19433 2006-03-23  Jackson Harper  <jackson@ximian.com>
19435         * ScrollableControl.cs: Special case negative sized areas, not
19436         zero.
19437         * MonthCalendar.cs: Save the rect of the clicked date so we can
19438         use it for invalidation.
19439         - Try to cut down on the number of invalidates
19440         - Invalidate the rect the mouse is over and was over when moving
19441         the mouse, so we get the focus box following the cursor.
19443 2006-03-23  Mike Kestner  <mkestner@novell.com>
19445         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
19446         focus rectangle drawing. Fixes #77835.
19448 2006-03-23  Mike Kestner  <mkestner@novell.com>
19450         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
19451         the if and else if and reverting back to the original == check on the
19452         None conditional.
19454 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
19456         * FontDialog.cs: Update the example panel if the selected index of
19457           the fontListBox changes.
19459 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
19461         * FileDialog.cs: Make FileDialog remember which directory it was in
19462           last in the same execution.
19464 2006-03-22  Mike Kestner  <mkestner@novell.com>
19466         * FileDialog.cs: make the DropDownMenu on the toolbar display
19467         RadioChecks since they are mutually exclusive and that's what MS does.
19469 2006-03-22  Mike Kestner  <mkestner@novell.com>
19471         * Theme.cs: add Color param to CPDrawMenuGlyph.
19472         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
19473         checks and radio marks and arrows are visible on highlighted items.
19474         * ControlPaint.cs: update to use new Theme signature.
19476 2006-03-22  Mike Kestner  <mkestner@novell.com>
19478         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
19479         is active. Fixes #77870.
19481 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
19483         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
19484           to be focused/selected after startup
19486 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
19488         * ColorDialog.cs: 
19489           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
19490             CustomColors and ShowHelp properties
19491           - Some internal rewrites to get better results when using the
19492             ColorMatrix
19494 2006-03-22  Mike Kestner  <mkestner@novell.com>
19496         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
19497         HoverSelection.  Fixes #77836.
19499 2006-03-22  Mike Kestner  <mkestner@novell.com>
19501         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
19502         ToggleButtons.  (De)Sensitize the Back button around a stack count of
19503         1, not 0.  Update ButtonSize based on a pixel count of the win32
19504         control.  Adjust the toolbar size/location for new button size.
19506 2006-03-22  Jackson Harper  <jackson@ximian.com>
19508         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
19509         true.
19510         * ScrollBar.cs: When doing increments and decrements we need to
19511         set the Value property so that ValueChanged gets raised. A
19512         possible optimization here would be to make an internal SetValue
19513         that doesn't invalidate immediately.
19514         * ToolTip.cs: Tooltips get added to their container (when
19515         supplied) so they get disposed when the container is disposed.
19516         - Don't create tooltips for String.Empty. This prevents all these
19517         little 2-3 pixel windows from showing up when running nunit-gui
19518         and driving me mad.
19519         * Form.cs: Don't set topmost when setting the owner if the handles
19520         haven't been created yet.  The topmost set will happen when the
19521         handles are created.
19523 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
19525         * XplatUIX11.cs:
19526           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
19527           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
19528             visible (to allow them to recalculate their sizes)
19530 2006-03-21  Mike Kestner  <mkestner@novell.com>
19532         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
19533         methods. Removed a ton of redundant code.  Still not really happy with
19534         the border rendering, but I think that's mainly because of the
19535         ControlDarkDark being black instead of a dark grey. Depending on how 
19536         close we want to be, we might want to revisit those color choices.
19537         Among the new features added during the refactor were DropDownArrow
19538         pressed rendering, Disabled image rendering.  Proper flat appearance
19539         boundary rendering.  Removed the Divider and Wrapping dividers since I
19540         can't figure out any combination of themes and conditions to make the
19541         MS control draw a horizontal line on a toolbar despite what the
19542         Divider property docs indicate.
19543         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
19544         conditions and incorrect layout.  Updated to coding standard.
19545         * ToolBarButton.cs: refactored layout and positioning code from
19546         ToolBar to here.  Invalidate wherever possible instead of forcing
19547         redraws of the whole toolbar. 
19548         (Known remaining issues: explicit ButtonSize smaller than provided
19549         images.)
19551 2006-03-21  Mike Kestner  <mkestner@novell.com>
19553         * ContextMenu.cs (Show): use the position parameter instead of just
19554         showing at the MousePosition.
19556 2006-03-21  Jackson Harper  <jackson@ximian.com>
19558         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
19559         control handle this.
19560         * TreeNodeCollection.cs: If we are clearing the root node we need
19561         to reset top_node so calcs can still happen.
19562         * ThemeWin32Classic.cs: This is a Flags so we need to check
19563         properly.
19564         
19565 2006-03-21  Jackson Harper  <jackson@ximian.com>
19567         * DataGrid.cs: Create columns when the binding context has been
19568         changed.
19569         * X11Structs.cs: Keysyms are uints.
19570         - Add size to fix build.
19572 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
19574         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
19575           XplatUIOSX.cs: 
19576           - Added ResetMouseHover method to allow controls to retrigger
19577             hovering if they need it more than once
19578           - Implemented MouseHoverTime and MouseHoverSize properties
19579         * Timer.cs: Start() must reset the interval
19580         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
19581           properties
19583 2006-03-21  Jackson Harper  <jackson@ximian.com>
19585         * X11Keyboard.cs: improved layout detection. Move the nonchar
19586         tables into this file.
19587         * KeyboardLayouts.cs: Move the tables into resource files.
19589 2006-03-21  Mike Kestner  <mkestner@novell.com>
19591         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
19593 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
19595         * Mime.cs: Various speed optimizations. Looking up mime types
19596           is now 2 times faster than before
19598 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
19600         * CreateParams.cs: Added internal menu field
19601         * Control.cs: 
19602           - Switched call order for UpdateBounds; now we always call
19603             the one that also takes ClientSize, and we're calculating the 
19604             client size via driver method in the others. The previous
19605             method of tracking client size by difference wasn't working
19606             for forms where even the starting client size wouldn't match
19607             the overall form size (due to borders) (Part of fix for #77729)
19608           - CreateParams(): Do not use parent.Handle unless the handle is
19609             already created. Causes havoc with Nexxia and throws off our
19610             creation of controls
19611         * XplatUIX11.cs:
19612           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
19613           - Switched handling of ConfigureNotify over to new PerformNCCalc 
19614             method (consolidates code)
19615           - Changed RequestNCRecalc to use new PerformNCCalc method
19616           - Added calls to RequestNCRecalc when menus and borders are changed
19617             to allow app to set NC size. (Part of fix for #77729) This matches
19618             when MS send a WM_NCRECALC on Win32 windows.
19619           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
19620             (Part of fix for #77729). This matches what MS does, they also
19621             send that message when the form is made visible.
19622           - XException.GetMessage: Improved usability of X errors by including
19623             a translation of the window into Hwnd and Control class
19624           - Improved debug info for window creation, reparenting and destruction
19625           - Created helper method WindowIsMapped() [Currently not used]
19626         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
19627         * Form.cs:
19628           - CreateParams: Now setting our menu on the new internal menu field
19629           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
19630             avoid calculating the same property twice
19631         * Hwnd.cs:
19632           - Improved usability of ToString() for debugging purposes
19633           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
19634             determine the height of the menu, instead of just the font. This
19635             required to also create a graphics context and to keep a bmp 
19636             around (for performance reasons)
19638 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
19640         * MenuAPI.cs: Added OnMouseUp method
19641         * Form.cs:
19642           - Now remembering the requested client size, avoids size errors
19643           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
19644             instead of base if the menu is active. This is required due to
19645             control now capturing and releasing on down/up and it would
19646             prematurely release our menu capture
19648 2006-03-17  Jackson Harper  <jackson@ximian.com>
19650         * KeyboardLayouts.cs: Add the czech layouts.
19652 2006-03-16  Jackson Harper  <jackson@ximian.com>
19654         * Control.cs: Use the viewport space when sizing not the controls
19655         client size, so things like ScrollableControl that effect the
19656         viewport size (when scrollbars are added) are computed correctly.
19657         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
19658         of ManagerEntrys.
19659         - Handle creating BindingManagers for null data sources.
19660         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
19661         source, otherwise when rows are added they are added to the 'fake'
19662         datasource and we will crash when trying to set the position in
19663         those rows.
19664         - Use Implicit scrollbars on the datagrid so they arent
19665         selectable.
19666         
19667 2006-03-16  Jackson Harper  <jackson@ximian.com>
19669         * Binding.cs:
19670         * InternalWindowManager.cs:
19671         * MdiWindowManager.cs:
19672         * X11Keyboard.cs: I really want Mike to love me again (fix
19673         compiler warnings).
19675 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
19677         * DataGrid.cs:
19678           - OnMouseDown: Switch to editing mode when clicking on the cell
19679                          even if we're clicking on the cell that's currently 
19680                          selected
19681           - ProcessGridKey: Left/Right now wrap like MS.Net does
19682           - ProcessGridKey: Tab now knows to add a new row when tab is
19683                             pressed in the cell of the last column of the 
19684                             last row
19685           - ProcessGridKey: Enter now adds another row  if pressed in the last
19686                             row and selectes the new row, same column cell
19687           - ProcessGridKey: Home/End navigate columns, not rows, like 
19688                             originally implemented
19689           - Broke ProcessKeyPreview code out into an extra Internal method
19690             so it can be called from the edit code
19691         * DataGridTextBox.cs (ProcessKeyMessage):
19692           - Switched to accept Tab keypresses
19693           - Added F2 handling to allow jumping to the end of the edited cell
19694           - Added logic to allow moving caret left/right inside edited cell
19695             and making the edited cell jump when the caret hits cell borders
19696           - Tab and Enter are now passed to the datagrid after being handled
19697         * TextBoxBase.cs:
19698           - Removed capture code now that Control handles it
19699           - set_SelectionStart now ensures caret is visible
19701 2006-03-16  Jackson Harper  <jackson@ximian.com>
19703         * TrackBar.cs: Debackwards the increment/decrement for handling
19704         mouse clicks on the bar with vertical trackbars.
19705         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
19706         bottom to match MS.
19708 2006-03-16  Mike Kestner  <mkestner@novell.com>
19710         * ListView.cs: make shift/ctrl keyboard and mouse selection 
19711         consistent with the MS control. Fix a bug in
19712         SelectedListViewItemCollection.Clear that was pissing me off for the
19713         better part of a day because the collection was being altered
19714         underneath us as we walked the list.
19716 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
19718         * Control.cs: Not sure how we could miss this so long, but it seems
19719           that MS.Net has Capture set all the way from before calling 
19720           OnMouseDown through sending the mouse events until after
19721           OnMouseUp. This will fix DataGrid's selection being set to end
19722           at the location of the MouseUp.
19724 2006-03-15  Jackson Harper  <jackson@ximian.com>
19726         * BindingContext.cs: Check the binding after its added so that it
19727           can initialize the binding managers and hookup to events.
19728         * Binding.cs: Data members seem to sometimes include rows/cols in
19729           the format Row.Column we now take this into account.
19730           - Hookup to the position changed event so we can update the
19731           control when the position has changed in the data set.
19732         * CurrencyManager.cs: Take into account the row/col naming
19733           convention when creating dataset tables.
19734         * BindingContext.cs: Using a newer better way of storing
19735           datasource/datamember pairs.  Hopefully this better matches MS for
19736           looking up binding managers.
19739 2006-03-15  Jackson Harper  <jackson@ximian.com>
19741         * BindingContext.cs: The currency manager needs the data member
19742         name, if the member is a data set we use the name to find the
19743         correct table.
19744         * CurrencyManager.cs: When creating the list prefer an IList over
19745         an IListSource.
19746         - Attempt to create a DataTable from a DataSet (TODO: might need
19747         some better error checking here, although MS doesn't seem to have much)
19748         - If we have a DataTable create a view and use it as our list.
19750 2006-03-15  Mike Kestner  <mkestner@novell.com>
19752         * ListView.cs: keep a matrix of the icon mode layout to facilitate
19753         keyboard navigation. Support Up/Down/Left/Right selection correctly
19754         for all 4 View modes.
19755         * ListViewItem.cs: add internal row/col fields for icon layouts.
19757 2006-03-15  Jackson Harper  <jackson@ximian.com>
19759         * TabControl.cs: Redraw the tabs when we resize so their newly
19760         calculated sizes are drawn on screen.
19761         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
19762         composite characters.
19763         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
19764         - filter events so that composite characters can be created
19765         patches by peter
19766         * X11Structs.cs: Add XIMProperties enum.
19768 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
19770         * Control.cs (BringToFront, SendToBack): Don't use window or handle
19771           unless it's created
19773 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
19775         * Control.cs (PerformLayout): We don't need to consider visiblity
19776           for anchoring, only for docking. This fixes 'whacky' alignment
19777           in listbox and other controls that use implicit scrollbars after
19778           the previous PerformLayout patch
19779         * ListBox.cs: Switched to use implicit scrollbars
19780           
19781 2006-03-14  Mike Kestner  <mkestner@novell.com>
19783         * ToolBar.cs: 
19784         * VScrollBar.cs:
19785         - chain up the "new event" overrides to base and use
19786         OnEvent to raise them.  Part of fix for bug #76509.
19788 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
19790         * FileDialog.cs: Do not select an item in the parent directory
19791           on backspace
19793 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
19795         * Control.cs (PerformLayout): It would seem that we considered
19796           invisible windows for our layout. Not quite the right thing
19797           to do. Now we don't any longer, thereby fixing bug #76889.
19799 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
19801         * Control.cs (CanFocus): I goofed. A control can have focus 
19802           even though it's not selectable. Made it match MS docs.
19804 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
19806         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
19807           center by default (fixes #76895)
19808         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
19809           all uses of Border3DSides.All with the explicit ORd together
19810           Left|Right|Top|Bottom because I assume that nobody was aware 
19811           that All also implies a center fill. Most places I checked had
19812           a fill right above.
19813         * ProgressBarStyle.cs: Added
19815 2006-03-13  Mike Kestner  <mkestner@novell.com>
19817         * ListView.cs: fix breakage in drag shadow header positioning 
19818         from Peter's csc compilation fix.
19820 2006-03-13  Mike Kestner  <mkestner@novell.com>
19822         * ListView.cs: fix NRE produced by backspacing twice in a focused
19823         FileDialog.
19825 2006-03-13  Mike Kestner  <mkestner@novell.com>
19827         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
19829 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
19831         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
19832           be changed
19833         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
19834           the allowed size before making programmatic size changes
19836 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
19838         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
19839           set, metacity is broken and will still use the emty sizes in 
19840           the struct. (Fix for #77089)
19842 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
19844         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
19845           WindowExStyles and marked both enums as Flags
19846         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
19847           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
19848           to match WindowStyles split
19849         * XplatUIX11.cs:
19850           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
19851           - Updated to match WindowStyles split
19852         * XplatUIWin32.cs:
19853           - Fixed FosterParent creation, was using ExStyle on the Style field
19854             (This should help with Popup focus issues)
19855           - Updated to match WindowStyles split
19857 2006-03-13  Jackson Harper  <jackson@ximian.com>
19859         * MdiWindowManager.cs: Use the system menu height. Fixes some
19860         strange sizing issues.
19862 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
19864         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
19865         * TextBoxBase.cs:
19866           - Scroll to caret after inserting text (#77672)
19867           - Make scroll range one pixel higher, fixes off-by-one error (and
19868             makes underlines visible on the last line)
19870 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
19872         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
19873           the keyboard state from being stuck with keys in 'pressed' state when
19874           focus is switched away via keyboard
19875         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
19876           reset the keyboard if no X11 KeyUp events are expected to come
19877         * X11Structs.cs: Switched type of Visible to bool to match driver
19879 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
19881         * TextControl.cs:
19882           - Switched caret to be just 1 pixel wide, matches MS and looks less
19883             clunky
19884           - Moved caret display 1 pixel down from the top of the control
19885             to improve view
19886           - InsertCharAtCharet: Update the selection start if moving the caret
19887             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
19888           - No longer always creating the caret when the caret methods are
19889             called. Only the actual ShowCaret/HideCaret will do that now
19890           - Only setting caret visible if the owner control has focus
19891           - UpdateView: Added invalidation-shortcut logic for center and right 
19892             aligned text. Previously we'd update all according to the left
19893             logic which caused drawing errors. Also fixed height of invalidated
19894             areas, now properly invalidating the whole area (was off-by-one)
19895           - owner_HandleCreated: Always generate the document when the
19896             handle is created; this ensures that 
19897         * TextBoxBase.cs:
19898           - Fixed situation where caret would disappear under the right
19899             window border, also improved scrolling behaviour on left-
19900             aligned textboxes
19901           - Fixed right-aligned textboxes to have a border to the
19902             right instead of the caret being under the right border
19903         * XplatUIX11.cs:
19904           - Switched from 'nested' to simple visible/not visible tracking 
19905             for caret (part of fix for #77671)
19906           - No longer passing through translated FocusIn/FocusOut messages
19907             since we were notifying too often and the wrong windows. Instead
19908             we just notify our focussed window of receiving or loosing focus
19909         * XplatUIWin32.cs: Switched from 'nested' show/hide 
19910           counting for caret to simple visible yes/no behaviour (part of 
19911           fix for #77671)
19913 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
19915         * Mime.cs: Remove debug code...
19917 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
19919         * MimeGenerated.cs: Removed
19920         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
19921           and subclasses) from /usr/(local/)share/mime and
19922           $HOME/.local/share/mime.
19924 2006-03-10  Jackson Harper  <jackson@ximian.com>
19926         * MdiWindowManager.cs: Recalc the NC area when a window is
19927         maximized/restored so that the menu area is drawn on forms that
19928         don't have a menu.
19930 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
19932         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
19933           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
19934           us to force a WM_NCCALCRESIZE message being sent. This is needed
19935           for MDI maximizing.
19937 2006-03-10  Jackson Harper  <jackson@ximian.com>
19939         * Form.cs: We need to use the ActiveMenu when calculating menu
19940         height.
19941         - Fix nullref when the window manager hasn't been created yet.
19942         * Control.cs: Fix nullref when we try to bring a control to the
19943         front that has no parent.
19944         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
19945         height.
19946         - Add a dummy item to the maximized menu so it always has the
19947         correct height. Otherwise when there are no menus we don't get our
19948         icon and buttons.
19949         
19951 2006-03-10  Jackson Harper  <jackson@ximian.com>
19953         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
19954         stuff.
19955         * Form.cs: Make the window_state internal so the window managers
19956         can track it.
19957         - When an MDI child is maximized let its window manager create the
19958         main menu (so it can add its icon).
19959         - Notify the window managers of state changes
19960         - Let the window manager paint its buttons and handle button
19961         clicks on the menu when it is maximized.
19962         * InternalWindowManager.cs: Move the prev_bounds into the mdi
19963         window manager, since tool windows don't use it, only mdi windows.
19964         - Tell the main form that we don't want it to handle NCPAINT
19965         itself to avoid extra painting.
19966         - Handle clicks on a maximized windows menu.
19967         - Handle window state changes
19968         - Handle minimize/maximize clicks correctly by setting the window state.
19969         * MdiWindowManager.cs: Add an icon menu that (the menu you get
19970         when clicking on the forms icon).
19971         - New method to create a forms maximized menu. This is its normal
19972         menu + an icon.
19973         - Handle window state changes.
19974         - Handle sizing of maximized windows.  Maximized windows are just
19975         drawn bigger then the parent visible area. All controls are still
19976         there, they are just outside the visible area (this matches windows).
19977         * MdiClient.cs: No scrollbars when a child window is maximized.
19978         - Let the children windows figure out how big they should be when
19979         sizing maximized windows.
19980         - Implement a version of ArrangeIconicWindows somewhat similar to
19981         Windows version.  There are some little differences, but I don't
19982         think any app will rely on the layout of minimized mdi windows.
19984 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
19986         * Padding.cs: Several fixes to allow compiling with csc 2.0
19988 2006-03-09  Jackson Harper  <jackson@ximian.com>
19990         * Menu.cs:
19991         * MenuItem.cs: Cheap hack so we can add items to the list without
19992         the events being raised.  This allows adding mdi items during
19993         drawing. TODO: Should probably find a better time to add the items.
19995 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
19997         * ThemeWin32Classic.cs:
19998           - CheckBox_DrawText: Added logic to not wrap if not enough space
19999             is available (Fix for bug #77727)
20000           - RadioButton_DrawText: Added logic not to wrap if not enough
20001             space is available (Fix for bug #77727). Also removed some
20002             duplicate code, DrawString always drawing the regular text
20003             before hitting the if statement.
20005 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
20007         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
20009 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
20011         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
20012         * ContainerControl.cs: Partial implementation of some 2.0 scaling
20013           methods. Moved the new 2.0 properties into alphabetical order with
20014           other properties and added MonoTODO tags
20016 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
20018         * AutoScaleMode.cs: Added. Fix build.
20020 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
20022         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
20023           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
20024           and was requiring premature handle creation for calls from above
20025         * Form.cs, Control.cs: Removed handle arguments from calls to
20026           CalculateClientRect()
20028 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
20030         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
20031           drag_column.column_rect is MarshalByRef and can't be used that way
20033 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
20035         * AxHost.cs: Added deserialization constructor for 
20036           AxHost+State (fixes 77743)
20038 2006-03-09  Mike Kestner  <mkestner@novell.com>
20040         * ListView.cs: 
20041         - Added column drag reordering for details view.
20042         - fixed behavior when mouse is dragged off column and
20043         AllowColumnReorder is false.
20044         * ColumnHeader.cs: clone the format too in Clone.
20045         * Theme.cs: add DrawListViewHeaderDragDetails method.
20046         * ThemeWin32Classic.cs:
20047         - impl new method for drawing drag column shadows and targets.
20048         - support column offset for details mode in DrawListViewItem.
20050 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
20052         * TextControl.cs: Reset the char_count when the document is cleared
20053           (Fixes bug reported on mono-winforms mailing list)
20055 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
20057         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
20058           of calling base we simply process the key ourselves, since both
20059           DefWindowProc and the handled method would set m.Result. 
20060           (Fixes #77732)
20062 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
20064         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
20065           method also moves the window; instead implemented a copy of
20066           Control.ScaleCore (Part of fix for #77456)
20067         * TextBoxBase.cs: 
20068           - Created new CreateGraphicsInternal method to allow providing
20069             a graphics context when no handle is created without triggering
20070             handle creation. (Part of fix for #77456)
20071           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
20072         * TextControl.cs: 
20073           - Switched Constructor to require TextBoxBase instead of Control (to
20074             allow uncast access to CreateGraphicsInternal)
20075           - Safeguarded use of owner.Handle property. No longer accessing it
20076             unless the handle is already created.
20077           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
20078           - Now triggering a recalc when owning control becomes visible
20079         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
20080           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
20081           premature handle creation (Part of fix for #77456)
20082         * Control.cs:
20083           - We now only destroy our double-buffering buffers when the
20084             control is resized or disposed, but not when visibility
20085             changes. (The code even re-created them twice every time)
20086           - Now requiring a redraw of the buffer on visibility changes
20087             (fixes bug 77654 part 2)
20088           - Not passing OnParentVisibleChanged up unless the control
20089             is visible
20090           - CanFocus: Fixed to match MS documentation
20091           - Focus: Fixed to return actual focus state and to check if
20092             setting focus is legal before setting it
20094 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
20096         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
20097           when to draw focus rectangle by looking at parent focus and
20098           selected state instead. This fixes TabPages on Linux sometimes
20099           having none or multiple focus rectangles.
20100         * XplatUIX11.cs (SetFocus): 
20101           - Don't set the focus if the same window already has focus
20102           - Use SendMessage instead of PostMessage (like it's Win32
20103             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
20104             to match MS behaviour
20105         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
20106           are not selectable.
20108 2006-03-07  Jackson Harper  <jackson@ximian.com>
20110         * PictureBox.cs: Revert line I accidently committed last week.
20112 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
20114         * Control.cs: 
20115           - Added new IsRecreating and ParentIsRecreating properties to
20116             allow testing if RecreateHandle has been called on ourselves
20117             or one of our parents
20118           - WndProc(WM_DESTROY): If our control handle is being recreated
20119             we immediately need to create the handle when receiving the
20120             destroy, that way our child windows find a valid parent handle
20121             when they themselves are being recreated upon WM_DESTROY receipt
20122             (fix for bug #77654 part 1)
20123         * XplatUIX11.cs:
20124           - DestroyWindow: WM_DESTROY must be sent to our own window before
20125             notifying any child windows. MS documents that child windows
20126             are still valid when WM_DESTROY is received. (Control now relies on
20127             this behaviour)
20128           - Added some fine-grain debug options
20130 2006-03-06  Jackson Harper  <jackson@ximian.com>
20132         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
20133         box and base calculations off this.
20134         * MdiChildContext.cs:
20135         * MdiWindowManager.cs: Don't need to ensure scrollbars here
20136         anymore.
20137         
20138 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
20140         * Splitter.cs: In situations where the affected control is added
20141           to the parent's control list after the splitter, we would not
20142           populate affected. Now we try populating it on mousedown, if
20143           it's not already set, and force it to be re-set whenever our
20144           parent changes.
20146 2006-03-03  Matt Hargett  <matt@use.net>
20148         * Control.cs: implement Control.Padding
20149         * Padding.cs: -Padding.All returns -1 when constructing with the
20150         implicit default ctor
20151         -Padding.ToString() matches MS.NET
20152         * ContainerControl.cs: implement
20153         ContainerControl.AutoScaleDimensions
20154         * ListControl.cs: implement ListControl.FormattingEnabled
20155         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
20156         * ButtonBase.cs:
20157         * TabPage.cs: Implement UseVisualStyleBackColor.
20158         * PictureBox.cs: Implement PictureBox.InitialImage.
20160 2006-03-03  Mike Kestner  <mkestner@novell.com>
20162         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
20163         event declarations to proxy to base event.
20164         * ListViewItem.cs: update to use ItemControl.
20165         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
20166         * ThemeWin32Classic.cs: update to new ListView theme API and fix
20167         column header label rendering for 0 width columns.
20169 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
20171         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
20172           that causes the control to be created. Fixes #77476.
20174 2006-03-02  Jackson Harper  <jackson@ximian.com>
20176         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
20177         expose_pending.
20179 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
20181         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
20182           passed in for the EventArgs (fixes #77690)
20184 2006-03-01  Jackson Harper  <jackson@ximian.com>
20186         * ScrollBar.cs: Refresh afterbeing resized.
20188 2006-02-28  Mike Kestner  <mkestner@novell.com>
20190         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
20191         Clean up a tracker compile warning.
20192         * MenuItem.cs: add internal PerformPopup method.
20193         [Fixes #77457]
20195 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
20197         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
20198           implicit expose) when the text is set to null
20200 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
20202         * RichTextBox.cs (FlushText): When newline is true, we always
20203           need to split the line, even if no text is on it and we may
20204           never eat newlines. (Fixes #77669)
20206 2006-02-28  Mike Kestner  <mkestner@novell.com>
20208         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
20209         and set Selected instead.
20210         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
20211         collections.
20213 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
20215         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
20217 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
20219         * FontDialog.cs:
20220           - Got rid of the panel. All controls are now directly added to
20221             the dialog form
20222           - It is now possible to set a font with the Font property
20223           - MinSize and MaxSize property do now what they should
20224           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
20225           - Searching and selecting a font with the font textbox works now,
20226             the same applies to the style and size textbox
20227           - Draw the correct 3D border in the example panel
20228           - Fixed a little mem leak (unused fonts didn't get disposed)
20229           - Many other internal updates/rewrites...
20230           - Fix typo
20232 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
20234         * TextControl.cs: 
20235           - InsertRTFFromStream: Added 'number of characters inserted' argument
20236           - set_SelectedRTF: Now using the number of characters to calculate
20237             the new location for the selection and cursor (x/y cannot be used
20238             due to potentially already wrapped text)
20240 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
20242         * TextControl.cs: Added property and implemented means to allow 
20243           disabling recalculation of a document (can be used to speed up
20244           multiple inserts and is needed to make RTF inserts predictable, see
20245           bug #77659)
20246         * RichTextBox.cs: Using the new NoRecalc property of Document to
20247           keep x/y insert locations predictable. Also makes it faster inserting
20248           large chunks of RTF
20250 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
20252         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
20253           it's easier for a child control to handle the other messages without
20254           having to duplicate the special functionality
20255         * TextBoxBase.cs
20256           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
20257             code to handle processing the key ourselves, in order to get 
20258             access to the result of KeyEventArgs.Handled. We now only call 
20259             ProcessKey if they key hasn't been handled already. Fixes #77526.
20260           - set_Text: If null or empty string is given, just clear the 
20261             document. Fixes part of #77526
20263 2006-02-27  Jackson Harper  <jackson@ximian.com>
20265         * SizeGrip.cs: Paint the background color before painting the grip
20266         so things look right.
20267         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
20269 2006-02-27  Mike Kestner  <mkestner@novell.com>
20271         * ListView.cs:
20272           - Restructure layout and invalidation model to remove a ton of
20273           flicker from the control and speed up performance in general.
20274           - Add manual column resize, flickers like crazy, but I already have
20275           some ideas on how I'll fix that. (#76822)
20276           - Merge the three Icon-based views into a single layout method.
20277           - Move item selection interaction logic from the item since 
20278           interaction with the collections is more appropriate to the view.
20279           - Deselection on non-item clicks.
20280         * ListViewItem.cs:
20281           - Encapsulate most of the layout. Add some internal props to trigger
20282           layout.  Move to a model where Items invalidate themselves instead
20283           of just invalidating the whole control every time something changes.
20284           - Invalidate on Text/Caption changes.
20285           - switch to an offset based layout model to avoid having to absolute
20286           position every element on item moves.
20287           - correct checkbox layout to conform to MS layout.
20288         * ThemeWin32Classic.cs:
20289           - refactor some column header drawing code.
20290           - fix string justification for column headers (#76821)
20291           - make SmallIcon labels top justified for compat with MS impl.
20292         * ThemeClearlooks.cs:
20293           - adjust to new ListViewItem internal checkbox bounds api.
20295 2006-02-27  Jackson Harper  <jackson@ximian.com>
20297         * Control.cs:  Change where implicit controls fall in the zorder.
20298         They are now on top of all children.
20299         - Synced AddImplicit code with Add
20300         - Removed unused enumerator.
20301         * SizeGrip.cs: Remove the TODO as its been TODONE.
20303 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
20305         * TextControl.cs(Insert): Combine the last lines unless the insertion
20306           string ends with \n\n, otherwise we leave one line too many (Fixes
20307           something I noticed with the testapp for #77526; the bug itself was
20308           already fixed in the previous checkin)
20310 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
20312         * RichTextBox.cs:
20313           - SelectionColor and SelectionFont methods no longer set absolute
20314             styles. Instead, the keep font or color respectively (This 
20315             resolves a long-standing FIXME in the code)
20316           - When flushing RTF text, the insert code now considers text trailing
20317             behind the insertion point (Fixes the bug where when replacing
20318             the selected text via SelectedRTF the remainder of the line behind 
20319             the selection would stay on the first insertion line)
20320         * TextBoxBase.cs:
20321           - AppendText now updates the selection points after inserting text
20322           - AppendText now ensures that the last tag (sometimes 0-length) of
20323             the document is used for the style information (Fixes part of 
20324             bug #77220)
20325         * TextControl.cs:
20326           - Created new FontDefiniton class to allow describing partial style
20327             changes
20328           - StreamLine() now takes a lines argument, to allow it to decide
20329             whether an encountered zero-length tag is the last in the document
20330             (which must be kept to not loose the font/color contained in it,
20331             for later appends)
20332           - Created Combine() and Split() methods for Marker structs, to 
20333             support marker updates due to reformatted documents (soft line
20334             wraps)
20335           - Implemented Document.CaretTag setter
20336           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
20337             of the last line (Not the cause, but also exposed by bug #77220)
20338           - Added LineTag argument to InsertString method, to allow callers
20339             to force a certain tag to be used (required to force use of the
20340             trailing zero-length tag of a document)
20341           - Now updating markers in Combine(), to avoid stale tag markers
20342           - Added some method descriptions to aid maintenance
20343           - Implemented new FormatText concept, allowing additive/subtractive
20344             formatting by only specifying the components that are to be 
20345             changed. This was needed for resolving the RTB.SelectedColor/
20346             RTB.SelectedFont fixmes
20347           - Added Break() support method to allow breaking up linetags (used
20348             for partial formatting)
20349           - Added GenerateTextFormat() method. It is used for partial 
20350             formatting and allows to generate a full font/color from given
20351             attributes and an existing tag.
20353 2006-02-26  Jackson Harper  <jackson@ximian.com>
20355         * XplatUIX11.cs:  Use the correct caption height.
20356         - Translate hittest coordinates to screen coords to match MS.
20357         * XplatUIWin32.cs: When we create MDI windows we need to reset
20358         some of the style flags, so we get a nice blank window, and can
20359         draw all the decorations ourselves.
20360         - Set a clipping rectangle on the non client paint event, the
20361         window manager drawing code needs one.
20362         * Form.cs: The window manager needs to know when the window state
20363         has been updated.
20364         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
20365         don't need to factor in border and title sizes in these
20366         methods. TODO: Remove the args and fix the call points.
20367         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
20368         properly.
20369         - Let the driver set the cursors.
20370         - Improve active window handling
20371         - Correct sizes for title bars and buttons.
20372         - Match MS drawing better
20373         * MdiWindowManager.cs: We don't need to handle border style
20374         updates specially anymore.
20375         - Check for scrollbars when windows are done moving
20376         - Handle Active properly.
20377         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
20378         correctly. I am spewing the exception though, so we don't hide the
20379         bugs.
20380         
20381 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
20383         * DataGridViewRowPostPaintEventArgs.cs,
20384           DataGridViewCellPaintingEventArgs.cs,
20385           DataGridViewRowCollection.cs,
20386           DataGridViewRowPrePaintEventArgs.cs,
20387           DataGridViewCell.cs: Clear a few warnings and implement a few
20388           exceptions that should be thrown.
20390 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
20392         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
20393           'inheriting' our parent's (non-default) cursor. (Part of
20394            the fix for #77479)
20396 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
20398         * XplatUIX11.cs: Fixed cast to make csc happy
20400 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
20402         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
20403           it's for the client area (part of fix for #77479 and needed
20404           for MDI window cursor handling)
20405         * XplatUIX11.cs
20406           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
20407             the appropriate default cursors and also passing the message
20408             up the parent chain 
20409           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
20410             for non-client areas
20412 2006-02-15  Jackson Harper  <jackson@ximian.com>
20414         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
20415         is a real MDI window
20417 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
20419         * X11DesktopColors.cs: Instead of checking the desktop session
20420           string for "KDE" check if it starts with "KDE"
20422 2006-02-10  Jackson Harper  <jackson@ximian.com>
20424         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
20425         systems).
20427 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
20429         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
20430           errors
20431         * ColorDialog.cs:
20432           - Got rid of the panel. All controls are now directly added to
20433             the dialog form
20434           - Changed to mono coding style
20436 2006-02-10  Jackson Harper  <jackson@ximian.com>
20438         * InternalWindowManager.cs: We don't need the set visibility to
20439         false hack anymore now that peter has written beautiful shutdown
20440         code.
20442 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
20444         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
20445           where already explicitly destroyed
20447 2006-02-10  Jackson Harper  <jackson@ximian.com>
20449         * MdiClient.cs: Handle the case where windows are too high or to
20450         the left and we need scrollbars.
20452 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
20454         * MimeIcon.cs: Added some icons
20455         * FileDialog.cs:
20456           - Fixed bug #77477
20457           - Got rid of the panel. All controls are now directly added to
20458             the dialog form
20459           - Changed to mono coding style
20460           - On Linux "My Computer" and "My Network" will now show some
20461             more usefull information. A new class, MasterMount, gathers
20462             this information from /proc/mount. Updated MWFFileView to make
20463             use of this information
20464           - Fixed a bug that caused FileDialog to crash when
20465             ".recently_used" file had a zero size
20466           - FilterIndex does now what it should
20467           - Some Refactoring
20468         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
20469             FileDialog changes
20471 2006-02-09  Jackson Harper  <jackson@ximian.com>
20473         * ComboBox.cs: Don't touch if null.
20475 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
20477         * Cursor.cs: 64bit safeness fix
20478         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
20480 2006-02-09  Jackson Harper  <jackson@ximian.com>
20482         * Form.cs: If a form is made into an MDI form update the styles so
20483         all the props can get set correctly.
20484         - Kill the mdi_container when we dont need it anymore.
20485         * InternalWindowManager.cs: Add missing NOT
20487 2006-02-08  Jackson Harper  <jackson@ximian.com>
20489         * InternalWindowManager.cs: Respek clipping when drawing MDi
20490         decorations.
20492 2006-02-08  Jackson Harper  <jackson@ximian.com>
20494         * Hwnd.cs: Add bits to track non client expose events.
20495         * XplatUIX11.cs: Track non client expose events on the hwnd. This
20496         gives us a proper invalid rect and will allow for some nice
20497         optimizations with NC client drawing
20498         - MDI windows are children windows, so move their style handling
20499         into the child window block.
20500         * InternalWindowManager.cs: Remove a state reset that was
20501         getting invoked at the wrong time. Fixes managed windows getting
20502         into a 'stuck' captured state.
20504 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
20506         * TextControl.cs (Document.ctor): Now initializing 
20507           selection_anchor. Fixes #77493
20509 2006-02-07  Jackson Harper  <jackson@ximian.com>
20511         * TrackBar.cs: The increment/decrements were backwards.
20513 2006-02-07  Mike Kestner  <mkestner@novell.com>
20515         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
20516         to the instance itself.
20518 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
20520         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
20521           on ulongs and pointers, the size differs between 32bit and 64bit
20522           systems. 
20524 2006-02-07  Mike Kestner  <mkestner@novell.com>
20526         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
20527         for 64 bit platforms to work around a metacity bug. 
20529 2006-02-07  Jackson Harper  <jackson@ximian.com>
20531         * TrackBar.cs: Process the input keys we need, and hookup to
20532         KeyDown instead of using WndProc, so we get key messages.
20534 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
20536         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
20537           machine we're on. 
20538         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
20539           we need to translate the XdndVersion atoms array before sending it
20541 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
20543         * XplatUIX11.cs: 
20544           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
20545             number of bits for the property, not the number of bytes. The
20546             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
20547             but would not crash since it specified 8 bits instead of 4 bits)
20548           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
20549             defined as XID -> long in the C headers)
20550           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
20551             references since those are now IntPtr to begin with
20552           - Switched all Atom.XXX 'int' casts to IntPtr casts
20553           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
20554           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
20555           - Added XChangeActivePointerGrab DllImport (for X11DnD)
20556         * X11Structs.cs:
20557           - Changed 'int' type for Atoms in XEvent structures to IntPtr
20558           - Changed atom in HoverStruct to be IntPtr
20559         * X11DnD.cs:
20560           - Removed local DllImports, switched code to use those from XplatUIX11
20561           - Removed/fixed casts related to the switch of Atom to be a IntPtr
20563 2006-02-06  Mike Kestner  <mkestner@novell.com>
20565         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
20566         method signatures in the import region.  There may still be some
20567         lingering struct marshaling issues, as I didn't drill down into those.
20568         Yet.
20570 2006-02-06  Jackson Harper  <jackson@ximian.com>
20572         * ComboBox.cs: Dont manually set the top_item, this is computed
20573         when the scrollbar position is set.
20575 2006-02-06  Mike Kestner  <mkestner@novell.com>
20577         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
20578         startup crashes on amd64.  There's other fixes needed.  All pinvoke
20579         usage of Atom needs to be mapped to IntPtr for example.  And there are
20580         likely other int/long issues to be addressed.
20582 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
20584         * FileDialog.cs: One more...
20586 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
20588         * FileDialog.cs: Next try
20590 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
20592         * FileDialog.cs: First part of fix for #77464
20594 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
20596         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
20597           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
20598           AcceptButton border drawing.
20600 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
20602         * Form.cs: Moved positioning of form after auto scaling is applied,
20603           otherwise it would possibly use wrong form size.
20605 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
20607         * Control.cs (RecreateHandle): No need to re-create any child
20608           controls, the child windows will get destroyed automatically by
20609           the windowing system or driver, and re-created when the handle
20610           is being accessed the first time. Fixes #77456
20611         * Form.cs: No longer setting the form to closing if the handle is 
20612           being recreated. This seems like the right thing to do, don't
20613           have a bug or testcase for this, though.
20615 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
20617         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
20618           controls to avoid unwanted side effects
20620 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
20622         * Control.cs: 
20623           - ScaleCore needs to scale the bounds, not the ClientSize of the 
20624             control. Fixes #77416.
20625           - DefaultSize is 0,0 for control
20626         * TextBoxBase.cs: 
20627           - DefaultSize is 100, 20
20628           - SetBoundsCore: Now enforcing the height, no matter if the provided
20629             height is more or less than the preferred one, as long as AutoSize
20630             is on
20631         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
20633 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
20635         * Control.cs:
20636           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
20637             call unless both performLayout is true *and* we have a pending
20638             layout change
20639           - ResumeLayout: MS does not completely nest Suspend and Resume,
20640             they bottom out at 0, fixed our code to match that.
20641           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
20642             SetBoundsCore, we were updating even when we shouldn't. This fixes
20643             swf-anchors mis-anchoring when resizing the app fast and lots.
20644           - UpdateDistances: Now only setting the left and top distance if 
20645             we have a parent and are not suspended, this is based on
20646             a suggestion by Don Edvaldson in bug #77355.
20647           - OnVisibleChanged: Fixed logic when to create the control. We may
20648             not create the control if we have no parent or if it's not visible;
20649             switched to using Visible property instead of is_visible field 
20650             since the property also considers parent states. This fixes a bug
20651             when starting Paint.Net
20653 2006-02-02  Jackson Harper  <jackson@ximian.com>
20655         * Form.cs: If the forms handle hasn't been created yet don't call
20656         into xplatui to make it top most, just set the topmost flag on the
20657         form in CreateParams
20658         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
20660 2006-02-01  Jackson Harper  <jackson@ximian.com>
20662         * ScrollableControl.cs: Refactored the Recalculate method a
20663         little, this wasn't handling all the variants of bottom and right
20664         bars needed to be added and added/removed based on their
20665         counterparts being added/removed (which changes the drawable
20666         size). Also we special case client widths and heights of 0 and
20667         don't add the scrollbar for those.
20669 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
20671         * XplatUIX11.cs: 
20672           - Added method to get AbsoluteGeometry(); currently unused, but might
20673             be used in the future, if we try again to figure out toplevel
20674             coordinates with some more crappy window managers
20675           - Added FrameExtents() method to retrieve the WM set decoration size
20676           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
20677             to deal with at least KDE, FVWM and metacity (Fixes #77092)
20678         * Hwnd.cs: 
20679           - Added whacky_wm tracking var for metacity
20680           - Added logic to have default menu height if the actual menu height
20681             has not yet been calculated (part of fix for #77426)
20682         * Form.cs: Keep track whether client size has been set and re-set 
20683           it if a menu is added/removed afterwards (Fixes #77426)
20685 2006-01-31  Jackson Harper  <jackson@ximian.com>
20687         * Control.cs: When a new Site is set on the component attempt to
20688         pull the AmbientProperties from it.
20690 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
20692         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
20693           in the background of the owning form. Fixes #77332
20695 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
20697         * MimeIcon.cs: Fix for #77409
20699 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
20701         * XplatUIX11GTK.cs: Initial import
20703 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
20705         * FixedSizeTextBox: fixes class signature
20707 2006-01-30  Jackson Harper  <jackson@ximian.com>
20709         * FixedSizeTextBox.cs: New internal class that represents a
20710         textBox that will not be scaled.
20711         * TreeView.cs:
20712         * ComboBox.cs:
20713         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
20714         standard TextBox.
20715                 
20716 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
20718         * XplatUIX11.cs: Retrieve default screen number instead of
20719           assuming 0. Attempted fix for #77318
20721 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
20723         * XplatUIWin32.cs: 
20724           - GetWindowPos: When a window is parented by FosterParent, use 
20725             the desktop instead of FosterParent as the base to get coordinates
20726           - CreateWindow: Don't make FosterParent the parent window for Popups
20727             if we don't want a taskbar entry, Popups automatically don't get one
20728         * Hwnd.cs: Need to call remove to actually remove the key from the
20729           hash table
20731 2006-01-30  Mike Kestner  <mkestner@novell.com>
20733         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
20735 2006-01-30  Jackson Harper  <jackson@ximian.com>
20737         * TreeView.cs:
20738         * TreeNode.cs: Raise events no matter how the treenode is
20739         checked. Patch by Don Edvalson.
20741 2006-01-30  Jackson Harper  <jackson@ximian.com>
20743         * TreeNode.cs: Signature fix.
20745 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
20747         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
20749 2006-01-20  Mike Kestner  <mkestner@novell.com>
20751         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
20752         event forwarding when menus are active.
20753         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
20754         Most of the patch is pdb's with a little rework.
20756 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
20758         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
20759           Removed GetMenuDC and ReleaseMenuDC methods; replaced
20760           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
20761         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
20762         * InternalWindowManager.cs: Added use of PaintEventStart/End to
20763           handling of WM_NCPAINT message, now passing the PaintEventArgs to
20764           the PaintWindowDecorations method
20765         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
20766         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
20767         * MenuAPI.cs: Made tracker window invisible
20768         * XplatUIWin32.cs:
20769           - Removed GetMenuDC and ReleaseMenuDC methods
20770           - Implemented the client=false path for PaintEventStart and
20771             PaintEventEnd
20773 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
20775         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
20776         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
20777           styles
20778         * Form.cs: 
20779           - MaximizeBox, MinimizeBox: Recreate the handle when setting
20780             the style
20781           - CreateParams: Reworked the styles to match MS look'n'feel,
20782             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
20783             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
20785 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
20787         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
20788           window is not mapped, since otherwise every form that's being 
20789           created is considered minimized, which is wrong.
20790         * Form.cs: Catching the exception and returning our internal value
20791           instead
20793 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
20795         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
20796           SetWindowMinMax() to have means to tell the driver about the minimum,
20797           maximum and maximized state window sizes. (Part of the fix for #76485)
20798         * Form.cs:
20799           - Implemented tracking of minimum and maximum window size, now calling
20800             new SetWindowMinMax() driver method to tell the driver (Part of the
20801             fix for #76485)
20802           - Finished handling of WM_GETMINMAXINFO method, now setting all values
20803             (Completes fix for #76485)
20804           - Calling new SetWindowMinMax driver method when the handle for a 
20805             form is created, to make sure the driver knows about it even if
20806             the values have been set before the window was created
20807           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
20808             to avoid messing up our anchoring calculations (partial fix
20809             for #77355)
20810         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
20811         * XplatUIX11.cs:
20812           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
20813           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
20814             (and presumably other freedesktop.org compliant WMs). Left the
20815             assumption unmapped=minimized, needed for SetVisible to work.
20816           - Now setting the window state when creating windows
20817           - Fixed SetVisible to consider/set the window state when mapping
20818             a Form. We cannot set the state before it's mapped, and we cannot
20819             use Form.WindowState once it's mapped (since it would ask the
20820             driver and get 'normal'. Therefore, we grab the state before
20821             mapping, map, and then set state.
20822           - Implmemented SetWindowMinMax method; Metacity does not seem to
20823             honor the ZoomHints, though.
20824         * XplatUIWin32.cs:
20825           - Removed MINMAXINFO (moved to XplatUIStructs)
20826           - Added SetWindowMinMax stub (on Win32 the only way to set that
20827             information is in response to the WM_GETMINMAXINFO message, which
20828             is handled in Form.cs)
20829           - Added logic to SetVisible to set the proper window state when a 
20830             form is made visible (fixes #75720)
20832 2006-01-26  Jackson Harper  <jackson@ximian.com>
20834         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
20835         same way we handle them with Invoke.
20837 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
20839         * Form.cs:
20840           - Added tracking of window state so CreateParams can return
20841             the appropriate style
20842           - Moved setting of WS_CAPTION style in CreateParams to allow
20843             styles without caption
20844         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
20845           control if the TextBox property is accessed. Fixes #77345
20846         * Control.cs:
20847           - get_Created: now uses is_disposed and is_created to determine
20848             return value (suggested by Jackson)
20849           - CreateHandle: No longer exits if the handle is being recreated
20850           - RecreateHandle: If the handle is not yet created call the 
20851             appropriate method to create either control or handle. If the
20852             control is already created CreateHandle will simply exit instead
20853             of just creating the handle
20854         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
20855           now SendMessage WM_DESTROY directly to the control when DestroyWindow
20856           is called.
20857         * XplatUIX11.cs: 
20858           - When DestroyWindow is called, instead of waiting for the 
20859             DestroyNotification from X11, we directly post it to the WndProc
20860             and immediately dispose the hwnd object.
20861             Same applies to DestroyChildWindows, and this obsoletes the
20862             expose_pending tracking. Contrary to Win32 behaviour we destroy our
20863             child windows before our own, to avoid X11 errors.
20864           - Removed the direct sending of WM_PAINT on UpdateWindow
20865         * XplatUIWin32.cs:
20866           - Reworked DoEvents and GetMessage to allow access to internal queue
20867             even when trying non-blocking access to the queue.  Fixes #77335. 
20868             Based on a patch suggestion by Don Edvalson. The new private
20869             GetMessage can now also be used as a backend for a PeekMessage
20870             frontend version.
20871         * XplatUI.cs: Improved debug output for CreateWindow
20873 2006-01-25  Jackson Harper  <jackson@ximian.com>
20875         * Help.cs: Allow param to be null. Patch by Don Edvalson.
20877 2006-01-24  Jackson Harper  <jackson@ximian.com>
20879         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
20880         when we have a MaxDropItems lower then the selected index.
20882 2006-01-24  Jackson Harper  <jackson@ximian.com>
20884         * Control.cs: Don't allow selection of non visible controls, allow
20885         selection of controls without parents.
20887 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
20889         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
20890         * DataGridDrawingLogic.cs: Add editing row only when is necessary
20892 2006-01-23  Jackson Harper  <jackson@ximian.com>
20894         * UpDownBase.cs: Make the textbox handle all the selection and
20895         tabbing. This fixes tabing to updown controls.
20897 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
20899         * TextBoxBase.cs: fixes exception thown the object was null
20901 2006-01-23  Jackson Harper  <jackson@ximian.com>
20903         * ButtonBase.cs: Just use the base CreateParams. They set
20904         visibility and enabled correctly.
20905         * ComboBox.cs:
20906         * TrackBar.cs:
20907         * MonthCalendar.cs: Lets let the base set as much of the
20908         createparams as possible so we don't have duplicate code all over
20909         the place.
20911 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
20913         * ThemeGtk.cs: Added TrackBar and some experimental code to
20914           get double buffering back
20916 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
20918         * DataGrid.cs: Allows row number set internally higher than the last
20919         when creating a new row. Restores the editing functionality.
20921 2006-01-20  Mike Kestner  <mkestner@novell.com>
20923         * MimeIcon.cs: delay Image creation until the icons are accessed
20924         instead of creating 190 scaled images on GnomeHandler startup.
20926 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
20928         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
20929           first call base before processing the event. Fixes #77279
20931 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
20933         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
20934           that the stride for the GDI bitmap would match the stride of
20935           a DIB or a Cursor.
20937 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
20939         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
20941 2006-01-19  Jackson Harper  <jackson@ximian.com>
20943         * ComboBox.cs: Hookup the text controls keydown event so we get
20944         those when the text control has the focus.
20946 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
20948         * Label.cs: Now using the base events instead of defining new ones;
20949           this allows us to just call the base properties without having to
20950           duplicate all base property logic 
20952 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
20954         * Label.cs: A label by default is not a tabstop (Fixes one of our
20955           failing nunit tests)
20957 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
20959         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
20960         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
20962 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
20964         * Cursor.cs: Reimplemented creating cursor bitmaps without using
20965           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
20966           This fixes #77218
20967         * XplatUIWin32.cs: 
20968           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
20969             constructor creates images that can't be saved. Part of the fix
20970             for #76103
20971           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
20972           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
20973             bug fix for handling window state in forms properly)
20975 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
20977         * ThemeGtk.cs: Simplify ScrollBar drawing
20979 2006-01-18  Jackson Harper  <jackson@ximian.com>
20981         * Splitter.cs: Set the default dock style for the splitter control
20982         in the constructor.
20984 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
20986         * ThemeGtk.cs: Corrected StateType and ShadowType for
20987           gtk_paint_box
20989 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
20991         * Control.cs: Make use of Theme.DoubleBufferingSupported
20992         * ThemeGtk.cs:
20993           - Added drawing for flat style buttons
20994           - Added ScrollBar drawing
20996 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
20998         * ThemeClearlooks.cs: Removed some unneeded code.
20999         * ThemeGtk.cs: First part of ThemeGtk enhancements.
21001 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
21003         * LinkLabel.cs: We need to update the hover drawing when
21004           leaving the control as well.
21006 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
21008         * DataGrid.cs: Clicking on non empty areas in the columns
21009            area was giving an exception
21011 2006-01-17  Jackson Harper  <jackson@ximian.com>
21013         * ThemeWin32Classic.cs:
21014         * ListView.cs: Do not draw/clip the headers when the header style
21015         is None.
21017 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
21019         * DataGrid.cs: Fixes 77260
21020         
21021 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
21023         * DataGrid.cs: Clicking on a column on a empty grid was giving
21024           an exception
21026 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
21028         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
21029           or any keypress will crash the grid.
21031 2006-01-17  Mike Kestner  <mkestner@novell.com>
21033         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
21034         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
21035         invisible/previously-visible items.
21036         [Fixes #76909]
21038 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
21040         * ThemeClearlooks.cs:
21041         - Added CL_Draw_Button method; now other theme controls that are 
21042           not derived from button or do not have a button can draw buttons
21043           too
21044         - Updated ComboBox drawing
21045         - Beautified RadioButton drawing
21046         - Corrected drawing of bottom and left tabs
21047         - Beautified DateTimePicker and MonthCalendar
21048         - Added CPDrawButton and CPDrawRadioButton
21050 2006-01-16  Jackson Harper  <jackson@ximian.com>
21052         * ComboBox.cs: Set the initial value of the scrollbar to the
21053         current index. Reduce the numbers of refreshs and IndexOfs called.
21055 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
21057         * FileDialog.cs: When the file listview is focused hitting the
21058           backspace key moves the fileview to the parent directory
21060 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
21062         * Form.cs: 
21063           - Added RecreateHandle call when changing taskbar visibility to 
21064             trigger reparenting in Win32 driver (Fixes #75719)
21065           - If a window has minimize or maximize buttons, it cannot have
21066             a help button
21067         * XplatUIWin32.cs:
21068           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
21069             the toplevel form with FosterParent (A toolwindow not on the
21070             taskbar) (Fixes #75719)
21071           - Made FosterParent a toolwindow
21073 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
21075         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
21077 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
21079         * ToolTip.cs: If SetToolTip is called from a control and the mouse
21080           is currently over that control, make sure that tooltip_window.Text
21081           gets updated
21083 2006-01-13  Mike Kestner  <mkestner@novell.com>
21085         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
21087 2006-01-13  Jackson Harper  <jackson@ximian.com>
21089         * TreeView.cs: On MS GetNodeAt never actually factors in the X
21090         value passed.  Also redraw the selected node when we recieve
21091         focus, so tabbing between trees works correctly.
21093 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
21095         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
21096           ~/.gconf/%gconf-tree.xml, so use
21097           .gconf/desktop/gnome/interface/%gconf.xml
21099 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
21101         * TextControl.cs: Draw text in gray if control is disabled
21103 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
21105         * TreeView.cs: Draw the focus rectangle outside the highlight, to
21106           make sure it's always visible. Fixes #76680.
21108 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
21110         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
21112 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
21114         * PageSetupDialog.cs: Added.
21115         * PrintDialog.cs: Attributes.
21116         * PrintPreviewControl.cs: Updates.
21117         * PrintPreviewDialog.cs: Updates.
21118         
21119 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
21121         * Control.cs: Undid my selection check fix, since it's not needed
21122         * TextBoxBase.cs:
21123           - Now considering the presence of hscroll/vscroll when sizing
21124             vscroll/hscroll respectively. Fixed bug #77077
21125           - Added Left/Up/Down/Right to IsInputKey list to prevent
21126             ContainerControl from stealing them. This fixes what I broke
21127             with my last checkin.
21129 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
21131         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
21132           I finally understand how the property can be set without a setter :-)
21134 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
21136         * Application.cs:
21137           - Switched RunLoop to use static Message.Create to create a 
21138             Message object
21139           - Added PreProcessMessage call in runloop for keyboard events; this
21140             is part of the fix for #77219, I overlooked this originally in the
21141             MSDN doc for PreProcessMessage
21142         * Control.cs:
21143           - Removed call to PreProcessMessage from handling of keyboard 
21144             messages; it's supposed to be done in the message pump
21145           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
21146             per MSDN documentation.
21147           - IsInputChar: All chars are input chars by default; removed the 
21148             parent calling chain, MS does not document that
21149           - PreProcessMessage: If IsInputChar is true, we want to return false
21150             to allow dispatching of the message
21151           - When selecting the next control, now also check that we're not
21152             selecting ourselves again and therefore return a false positive.
21153         * TextBoxBase.cs:
21154           - Tried to match return values for IsInputKey and ProcessDialogKey
21155             to what MS returns; moved processing of our special keys outside
21156             ProcessDialogKey since MS does not seem to return true on those.
21157           - Moved code that previously was in ProcessDialogKey into new private
21158             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
21159           - Reworked handling of WM_CHAR to not have to duplicate code from
21160             Control.cs anymore, instead we simply call down to base.
21161            
21162 2006-01-12  Jackson Harper  <jackson@ximian.com>
21164         * ComboBox.cs: We always need to refresh the text area when
21165         EndUpdate is called. Fixes the combobox in the file dialog.
21166         * Control.cs: Don't create the creator_thread until the controls
21167         handle is created.  Also in InvokeRequired we check if the
21168         creator_thread is null. This gives the effect of InvokeRequired
21169         returning true if the controls handle is not created yet, and
21170         matches MS.
21172 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
21174         * XplatUI.cs:
21175           - Added StartLoop() driver method. This is used to allow drivers to
21176             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
21177             loop for a particular thread
21178           - Added EndLoop() driver method. This is called once the message
21179             pump for the thread is shut down
21180           - Added SupportsTransparency method to allow the driver to indicate
21181             opacity support for windows
21182         * Form.cs:
21183           - Removed TODO attribute, completed AllowTransparency property
21184           - Added documented logic to Opacity
21185         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
21186           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
21187           versions of CompatibleTextRendering
21188         * X11Structs.cs: Added opacity atom to our atom enumeration
21189         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
21190           of a form might be set before it's reparented by the WM, and we need
21191           the opacity value without calling up to Form)
21192         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
21193           SupportsTransparency() driver methods
21194         * Application.cs: Now calling StartLoop and EndLoop driver methods
21195         * XplatUIX11.cs:
21196           - Added opacity atom registration
21197           - Added StartLoop()/EndLoop() methods. They're empty right now but
21198             will need to get implemented when we switch to a per-thread queue
21199           - Implemented SupportsTransparency() method
21200           - Implemented SetWindowTransparency() method
21201           - Added support for setting the opacity value when a window is
21202             reparented (since the opacity needs to be set on the WM frame)
21203         * XplatUIOSX.cs, XplatUIWin32.cs:
21204           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
21206 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
21208         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
21210 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
21212         * FileDialog.cs: Added ToolTip for MWFFileView
21213         * MimeIcon.cs: Rewrote GnomeHandler.
21214           - Get currently used gnome icon theme from
21215             ($HOME)/.gconf/%gconf-tree.xml
21216           - Make use of inherited icon themes
21217           - Support SVG icon themes like Tango via librsvg
21219 2006-01-12  Miguel de Icaza  <miguel@novell.com>
21221         Revert's Jackson's revert which broke 2.0 builds.   Fix both
21222         builds. 
21223         
21224         * Application.cs: Move the use_compatible_text_rendering outside
21225         the NET_2_0 define.  If we ever need to use the
21226         use_compatible_text_rendering on the individual controls they will
21227         access the variable from the common shared code paths.
21229 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
21231         * XplatUI.cs:
21232           - Added more granular debug options
21233           - Added method to print both window text and id
21234           - Switched debug output to use new Window() debug method
21235           - Added IsEnabled() driver method
21236           - Added EnableWindow() driver method
21237         * Form.cs:
21238           - Removed end_modal; no longer needed, new loop handles termination
21239             via 'closing' variable
21240           - If form is modal, setting DialogResult will now initiate loop
21241             termination via 'closing' variable
21242           - Added support for is_enabled/WS_DISABLED to CreateParams
21243           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
21244             does all the work
21245           - Removed code that's now in RunLoop from ShowDialog()
21246           - Added various documented sanity checks to ShowDialog()
21247           - Added handling of WM_DESTROY message; we set 'closing' on getting
21248             the message to indicate the message pump to terminate
21249           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
21250             send by the Application.ExitThread method. (We send the message
21251             to destroy the window after all other events have been
21252             processed through the queue, instead of destroying the handle 
21253             directly)
21254           - Moved code from Close() method to WM_CLOSE handler; added logic
21255             to only send close-related events if the form is not displayed
21256             modal
21257         * Splitter.cs (..ctor): Fixed typo in resource name
21258         * Control.cs:
21259           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
21260             brush now
21261           - set_Cursor: Now only setting calling into XplatUI if the handle for
21262             the control is already created; this avoids implict handle creation
21263             or crashes if it's not created
21264           - set_Enabled: Now setting the enabled state via the new driver method
21265             instead of just tracking it
21266           - CreateParams: Added logic to set WS_DISABLED based on enabled state
21267           - CreateControl: Reordered event firing and method calls to more
21268             closely fire events in the order MS does. Now setting the
21269             enabled state in the driver when creating the control.
21270           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
21271             match MS order
21272         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
21273           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
21274         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
21275         * Hwnd.cs:
21276           - Added tracking of window enabled state (get_Enabled/set_Enabled)
21277           - Added EnabledHwnd property to easily allow a driver to find the
21278             handle of the first enabled window in the parent chain (this is
21279             used by drivers to pass up input events of disabled windows)
21280         * XplatUIDriver.cs: Added IsEnabled() method
21281         * Application.cs:
21282           - Removed crude and obsolete exiting tracking variable
21283           - Removed internal ModalRun(); replaced by RunLoop()
21284           - Implemented private CloseForms() method to allow closing all 
21285             windows owned by a particular (or all) threads
21286           - Exit() now properly closes all windows without forcing the message
21287             pump to quit
21288           - Removed obsolete InternalExit() method
21289           - Changed Run() methods to use new RunLoop() message pump
21290           - Implemented new RunLoop() method for both modal and non-modal forms
21291         * CommonDialog.cs:
21292           - get_CreateParams: Added setting of WS_DISABLED
21293           - Simplified ShowDialog(); now all the work is done in RunLoop(),
21294             invoked via Form.ShowDialog()
21295         * NativeWindow.cs: We don't remove the window from the collection when
21296           the handle is destroyed; there might still be messages for it in the
21297           queue (mainly the resulting WM_DESTROY); instead it will be removed
21298           when Control calls InvalidateHandle in the WM_DESTROY handler
21299         * XplatUIX11.cs:
21300           - CreateWindow: Added logic to handle the WS_DISABLED window style
21301           - EnableWindow: Implemented based on Hwnd.Enabled
21302           - GetMessage: Reset PostQuitState so the method can be called again
21303           - Implemented support for disabled windows (passing messages to the
21304             first enabled parent) in handling all input messages
21305           - Added optimizations for handling Expose events
21306           - Implemeted new driver method IsEnabled()
21307           - Now always resetting paint pending tracking vars when we start paint
21308           - Re-implemented UpdateWindow via just sending a WM_PAINT message
21309         * XplatUIOSX.cs: Added IsEnabled method stub
21310         * XplatUIWin32.cs: Implemented new IsEnabled() method
21312 2006-01-11  Jackson Harper  <jackson@ximian.com>
21314         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
21315         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
21316         variables a little.
21317         * ColorDialog.cs: Clear out the old form before adding the new
21318         panel.  
21320 2006-01-11  Jackson Harper  <jackson@ximian.com>
21322         * X11Dnd.cs: Make sure to add all the text formats when adding
21323         strings to the data object.
21324         * TreeNodeCollection.cs: When adding to a sorted tree we need to
21325         do some redrawing too.  Also change the UpdateNode to an
21326         UpdateBelow so the newly added node gets painted.
21327         
21328 2006-01-11  Miguel de Icaza  <miguel@novell.com>
21330         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
21331         LinkLabel.cs, PropertyGrid.cs: Implement the
21332         UseCompatibleTextRendering property for 2.x
21334         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
21336 2006-01-11  Jackson Harper  <jackson@ximian.com>
21338         * TreeView.cs: Use the property for setting the selected node so
21339         the correct events get raised.
21340         * TreeNode.cs: Update the tree when the fore/back colours of a
21341         node are set.
21343 2006-01-10  Jackson Harper  <jackson@ximian.com>
21345         * TreeView.cs: Allow setting SelectedNode to null.
21347 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
21349         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
21351 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
21353         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
21355 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
21357         * PrintDialog.cs: Added attributes and set default property values.
21359 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
21361         * PrintControllerWithStatusDialog.cs: 
21362         Added PrintControllerWithStatusDialog.
21364 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
21366         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
21367         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
21369 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
21371         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
21373 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
21375         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
21376         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
21378 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
21380         * MimeIcon.cs: Added internal class SVGUtil.
21382 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
21384         * FileDialog.cs: Don't crash if there are two files with the
21385           same name but different locations.
21387 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
21389         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
21390         dates across multiple month grids. Used to not highlight entire 
21391         month, but does now.
21392         
21393 2006-01-06  Jackson Harper  <jackson@ximian.com>
21395         * MonthCalendar.cs: Removed DoEvents call to prevent a running
21396         message loop. Change timer intervals to numbers that seem more
21397         natural.
21399 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
21401         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
21402           object for location info since screen object is now implemented.
21404 2006-01-05  Jackson Harper  <jackson@ximian.com>
21406         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
21407         * AsyncMethodResult.cs: We no longer use a WeakReference for the
21408         AsyncMethodResult, this is because we ALWAYS want the
21409         ManualResetEvent to get set.
21410         * Control.cs: When disposing use an async invoke to call shutdown
21411         code, so that thigns don't block on the finalizer thread.  Also
21412         check if we even have a message loop before trying to send
21413         messages, if we don't then don't bother sending messages.
21414         - No more weak references for async methods
21415         * XplatUIDriver.cs: No more weak references for async methods.
21417 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
21419         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
21420           returns two FontFamily with the same name
21422 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
21424         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
21425           drawing disabled text. Instead using the ColorGrayText color
21427 2006-01-04  Jackson Harper  <jackson@ximian.com>
21429         * TreeNode.cs: redraw the node when its image index is changed.
21431 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
21433         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
21434           time I checked there are no others like it.
21436 2006-01-04  Jackson Harper  <jackson@ximian.com>
21438         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
21439         this gives the behavoir I was looking for.
21440         * Control.cs: Special case Invoking EventHandlers, this matches MS
21441         and fixes part of bug #76326.
21443 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
21445         * ThemeClearlooks.cs, FileDialog.cs:
21446           - Reflect the latest Theme class changes
21447           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
21448             with DateTime
21449             
21450 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
21452         * Theme.cs: Cache UI resource images and resize them if needed
21454 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
21456         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
21457           is called. This fixes the crash in Nexxia when setting the font
21458           attributes in the chat. [However, RTF needs a look-over to make sure
21459           that all SelectionXXX methods handle the special case that selection
21460           is empty and therefore the change must be applied to all text starting
21461           at the cursor/selection start]
21463 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
21465         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
21466           XplatUIOSX.cs: Added SendMessage and PostMessage methods
21467         * X11Keyboard.cs: Switched to new way of calling PostMessage
21469 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
21471         * Theme.cs: Added theme interface for images to allow the theme to
21472           control what images are used for things like FileDialog, MessageBox
21473           icons, etc.
21474         * MessageBox.cs: Now uses the new Theme icon/image interfaces
21476 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
21478         * FileDialog.cs:
21479           - Removed some dead code
21480           - Opening a recently used file does work now
21481           - Small UI enhancements
21482           - Refactoring
21484 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
21486         * FileDialog.cs: Forgot too add __MonoCS__
21488 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
21490         * FileDialog.cs: We are able to read recently used files now let's
21491           go on and write them.
21493 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
21495         * FileDialog.cs: Breathe some life into "last open"/"recently used"
21496           button
21497         * MimeIcon.cs: Do a check for the top level media type also
21499 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
21501         * ThemeClearlooks.cs:
21502           - Added CPDrawStringDisabled
21503           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
21504             some chars if the text doesn't fit into text_rect
21505           - DrawListViewItem: If View = View.LargeIcon center the image;
21506             rewrote the drawing of ListViewItem.Text if View = 
21507             View.LargeIcon
21509 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
21511         * MimeIcon.cs: Use default KDE icon theme if there is no
21512           "48x48" directory for the current icon theme, fixes #77114
21513         * Mime.cs: Disable not working and actually not used code. 
21514         * ThemeWin32Classic.cs:
21515           - Replace "new SolidBrush" in GetControlBackBrush and
21516             GetControlForeBrush with ResPool.GetSolidBrush
21517           - Changed DrawListViewItem from private to protected virtual
21518         * FileDialog.cs:
21519           - Added form.MaximizeBox = true
21520           - Don't throw an exception if there is a broken symbolic link
21522 2005-12-23  Jackson Harper  <jackson@ximian.com>
21524         * TabControl.cs: Give the panels focus, keyboard navigation is
21525         fixed so this works correctly now.
21526         - We need these key events also.
21527         * ToolBar.cs: Remove some of the poor mans double buffering.
21528         
21529 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
21531         * ComboBox.cs: The internal TextBox now returns the focus.
21533 2005-12-23  Jackson Harper  <jackson@ximian.com>
21535         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
21537 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
21539         * Control.cs: Removed debug code
21540         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
21541           implicit children
21543 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
21545         * Control.cs: When creating the control, update the Z-order after
21546           all it's children are created, too. (Fixes nexxia not showing
21547           picturebox bug)
21549 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
21551         * Control.cs: Do not update the anchoring distances if layout is
21552           suspended, instead do it once layout is resumed
21554 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
21556         * Control.cs: 
21557           - After many hours of debugging, for both Jackson and
21558             myself, it turns out that it helps to set the parent of a control
21559             if you want to actually see it onscreen. In the spirit of that
21560             discovery, we're now setting the parent of the control and
21561             it's children when the control's handle is created. This fix
21562             will make Lutz Roeder's Reflector run happily. 
21563           - now just creating the handle instead of the whole control when
21564             getting a graphics context for the control.
21566 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
21568         * ScrollableControl.cs: When calculating the canvas, don't consider
21569           the scrollbar widths. Instead, predict if horizontal scrollbar
21570           will affect canvas when deciding on vertical display and vice versa.
21572 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
21574         * RichTextBox.cs: Set default RTF font for documents that don't
21575           have a font table (Fixes #77076)
21577 2005-12-22  Jackson Harper  <jackson@ximian.com>
21579         * TextBoxBase.cs: It's difficult to do, but you can have an empty
21580         clipboard. This prevents a NullRef in that case.
21581         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
21582         clipboard. PRIMARY is for the currently selected text only. (We
21583         should implement PRIMARY at some point.
21585 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
21587         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
21588           a Unicode function with a structure that was defined in Ansi way.
21589           This fixes #76942.
21591 2005-12-21  Jackson Harper  <jackson@ximian.com>
21593         * StatusBar.cs: Statusbar handles its fore/back colours on it's
21594         on. Because thats how it rolls. (and this avoids it using ambient
21595         colours).
21596         * ThemeWin32Classic.cs: Use the proper back color for filling.
21597         * Menu.cs: Use the system menu bar color for drawing menu
21598         bars. Using the window back color will bring ambient colours into
21599         the picture.
21601 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
21603         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
21604           Bitmaps were created and not disposed.
21606 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
21608         * Control.cs (CreateControl): Don't do anything if the control is
21609           already created, otherwise we'd fire the OnCreated event more than
21610           once
21612 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
21614         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
21615           will always match. Instead return -1. Fixes #76464.
21617 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
21619         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
21620           neither the beginning nor the end of the line (Fixes bug #76479)
21622 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
21624         * Control.cs:
21625           - ControlNativeWindow.ControlFromHandle(): Now handling situation
21626             where handle is invalid
21627           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
21628             instead of slower linear search
21629         * NativeWindow.cs: Don't remove the window from the hashtable until
21630           after the driver has destroyed it (since the driver might use
21631           Control.FromHandle to lookup the control object
21632         * Hwnd.cs: Added DestroyPending property to track if a window is 
21633           already destroyed as far as the driver is concerned and only hasn't
21634           yet notified the control
21635         * XplatUIX11.cs:
21636           - Activate(): Check if the window is still valid before using the 
21637             handle
21638           - Implemented DestroyChildWindow() method to mark child windows as
21639             destroyed when a window is destroyed. This prevents situations 
21640             where we might call an X method based on queued events for a
21641             window that already has been destroyed but we haven't yet pulled
21642             the destroy method from the queue.
21643           - Added a call to the new DestroyChildWindow() method to the drivers
21644             DestroyWindow code. Also now marking the destroyed window itself
21645             as pending
21647 2005-12-20  Jackson Harper  <jackson@ximian.com>
21649         * StatusBar.cs:
21650         * StatusBarPanel.cs: Don't calculate panel sizes on draw
21651         anymore. Just do them when needed, also track the rects of panels
21652         so that we can optimize refreshing more in the future.
21654 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
21656         * ColorDialog.cs: Fixed focus drawing in small color controls
21658 2005-12-19  Jackson Harper  <jackson@ximian.com>
21660         * InternalWindowManager.cs:
21661         * MdiWindowManager.cs: Cleanup some coordinate system changes so
21662         moving windows works properly.
21664 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
21666         * Control.cs: 
21667           - Removed call to InitLayout() from SetBoundsCore(); doc says
21668             it's only called when a control is added to a container
21669           - Split InitLayout logic, moved to separate UpdateDistances() method
21670             since we need to perform those calculations more often than just
21671             when adding the control to a container. (Needed to fix #77022)
21672           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
21673           - Reduced the OnBindingContextChanged events count, don't send them
21674             unless the control is created, we still aren't totally matching
21675             MS, but I can't quite figure out some of their rules
21677 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
21679         * ThemeClearlooks.cs: Corrected distance between ProgressBar
21680           stripes
21682 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
21684         * ThemeClearlooks.cs:
21685           - Updated ProgressBar drawing
21686           - Corrected drawing of ScrollBars and scroll buttons
21687           - Some temporary fixes for minor pixel artefacts
21689 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
21691         * Control.cs:
21692           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
21693             cause events to be sent in the same order as MS does.
21694           - Added ChangeParent() method to trigger various OnXXXChanged events
21695             that need to be fired when a parent changes (This is a reworking
21696             of the patch from r54254, with the X11 errors fixed)
21697           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
21698             since on MS we get OnLayoutChanged events when calling Clear()
21699           - Changed Enabled property to consider parent state as well, if a
21700             parent is not enabled, the control will not be either
21701           - Changed Parent property to simply call Controls.Add() since that
21702             now does all the work required, this way we avoid code duplication
21703           - Threw in a few OnBindingsContextChanged calls to try and match
21704             when MS sends them. We seem to send a few too many, though.
21705           - Added call to CreateControl when adding the control to a parent.
21706             We were never calling CreateControl. Still needs some work, in
21707             some places we treat HandleCreated and ControlCreated as equal, 
21708             which is wrong
21709           - Removed obsolete commented out code from UpdateZOrder()
21711 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
21713         * ThemeClearlooks.cs: Updated TrackBar drawing.
21715 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
21717         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
21719 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
21721         * FileDialog.cs: Add the Help button and the open readonly
21722           checkbox only if needed
21724 2005-12-16  Jackson Harper  <jackson@ximian.com>
21726         * Control.cs: Make sure we have an active menu before trying to
21727         process commands on it. Prevents menu-less forms from crashing
21728         when Alt is pressed.
21729         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
21730         Dieter Bremes.
21731         * RichTextBox.cs: Expand statement to help out gmcs and fix the
21732         2.0 build.
21734 2005-12-16  Jackson Harper  <jackson@ximian.com>
21736         * InternalWindowManager.cs: Don't translate tool windows screen
21737         coordinates. This fixes windows 'bouncing' around when being moved.
21739 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
21741         * TextBoxBase.cs:
21742           - MaxLength now treats 2^31-1 equal to unlimited length (this is
21743             not quite MS compatible, MS uses that number only for single line
21744             and 2^32-1 for multi-line, but I figure it won't hurt keeping
21745             the limit at 2GB)
21746           - Now enforcing the MaxLength limit when entering characters
21747           - Added argument to internal Paste() method to track if it's called
21748             from programatically or via keyboard, since keyboard driven pastes
21749             need to enforce max-length
21750           - Added logic to Paste to only paste as many chars as MaxLength 
21751             allows
21752         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
21753         * TextControl.cs:
21754           - Added Length property to return number of characters in document
21755           - Added private CharCount property which only tracks actual chars
21756             in the document (no linefeeds) and fires event when CharCount
21757             changes
21758           - Added tracking of character count to all methods that alter it
21759           - Added LengthChanged event to allow applications to subscribe
21760             to any changes to the document
21762 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
21764         * TextBox.cs: 
21765           - Removed local password_char field (moved to TextBoxBase)
21766           - Now setting the document's password var when password is
21767             set
21768         * TextBoxBase.cs:
21769           - Added password_char field (needed here so MultiLine can
21770             access it)
21771           - Added logic to MultiLine property setter to set the document's
21772             variable when password display is allowed
21773           - Removed debug code and made some debug code conditional
21774         * TextControl.cs:
21775           - Added RecalculatePasswordLine() method to handle special password
21776             char only lines
21777           - Added PasswordChar property, also added related tracking vars
21778           - Draw() method now uses local text var for grabbing text to draw,
21779             this var is set to line.text unless we're doing password display,
21780             then it is set to the pre-generated all-password-chars line
21781           - Added calling RecalculatePasswordLine() method for password lines
21783 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
21785         * Hwnd.cs: 
21786           - Added Reparented property to allow tracking of Window Manager
21787             reparenting actions (which affect X/Y calculations of toplevel 
21788             windows)
21789           - Made ToString() print window handles in hex
21790         * XplatUIX11.cs:
21791           - AddConfigureNotify(): Now uses reparented state off Hwnd to
21792             determine if X/Y needs offsetting
21793           - AddConfigureNotify(): Fixed offset calculations
21794           - Now adds ReparentNotify messages into the queue
21795           - Now processes ReparentNotify messages and causes a 
21796             WM_WINDOWPOSCHANGED message to be sent upstream if a window
21797             is reparented (as most likely it's X/Y coordinates are changed
21798             due to that)
21800 2005-12-14  Jackson Harper  <jackson@ximian.com>
21802         * XplatUIX11.cs: Tool windows still need to respek focus.
21804 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
21806         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
21807           have a working release
21809 2005-12-13  Jackson Harper  <jackson@ximian.com>
21811         * Form.cs: Update styles after setting the border style regardless
21812         of whether or not the window is using a window manager.
21814 2005-12-13  Jackson Harper  <jackson@ximian.com>
21816         * Form.cs: We now hook into an internal window manager instead of just an
21817         MDI subsystem, this is so we can have properly behaving tool windows.
21818         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
21819         * InternalWindowManager.cs: New internal class that acts as a
21820         window manager for tool windows and as a base for mdi windows.
21821         * MdiWindowManager.cs: New class that acts as a window manager for
21822         mdi windows.
21824 2005-12-12  Jackson Harper  <jackson@ximian.com>
21826         * Control.cs: Updates so we match behavoir for for implicit
21827         controls. Fixes explosions in MDI.
21829 2005-12-12  Jackson Harper  <jackson@ximian.com>
21831         * Control.cs: Implement Invalidate (Region).
21833 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
21835         * Control.cs: 
21836           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
21837             the same events as MS does. MS fires events for each property 
21838             except, for unknown reasons, Cursor, when the control is reparented. 
21839             I can't seem to totally match add/remove since MS also fires some 
21840             VisibleChanged events, which makes no sense. Consolidated the
21841             parenting code into a separate method so it can be called from
21842             both Add and Remove. set_Parent no longer needs any special logic
21843             as it calls the parent's add method which implicitly fires
21844             all events
21845           - Removed some obsolete code and debug output
21846           - Enabled state is inherited from parents, if this is enabled
21848 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
21850         * Form.cs: Removed commented out code
21852 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
21854         * Control.cs:
21855           - Added internal version of Invoke, with additional argument 
21856             indicating if we're calling it from a Dispose() handler. That
21857             way we can avoid BeginInvoke throwing an exception if we're
21858             calling for an already destroyed window.
21859           - Added a dispose argument to BeginInvokeInternal, and made the
21860             check if a valid window handle chain exists conditional on
21861             it not being a dispose call
21862           - Removed code in DestroyHandle to destroy our children. Since we
21863             now handle the WM_DESTROY message we will catch all our children
21864             being destroyed.
21865           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
21866         * Form.cs:
21867           - Added a field to track the application context of the form.
21868           - No need to set closing variable as response to WM_CLOSE, instead
21869             we destroy the window. We also call PostQuitMessage if the form
21870             has an application context (which makes it the main app form,
21871             which, when closed terminates the app)
21872         * XplatUI.cs:
21873           - Dropped Exit() method, it's naming was confusing
21874           - Added PostQuitMessage() which causes GetMessage to return false
21875             once the message queue is empty
21876         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
21877           PostQuitMessage()
21878         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
21879           no longer a valid XplatUI method, but left it in since it's used
21880           internally. Added empty PostQuitMessage() method.
21881         * MenuAPI.cs: Replaced call to Exit() with call to
21882           PostQuitMessage, even though this is probably no longer needed.
21883         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
21884         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
21885         * Application.cs:
21886           - Replaced call to XplatUI.Exit() with PostQuitMessage()
21887           - Removed old debug code that would call XplatUI for exception
21888             display, enabled standard exception handling (Still not enabled
21889             though, until NativeWindow's ExternalExceptionHandler define
21890             is removed
21891         * NativeWindow.cs:
21892           - Added internal method to allow control to update NativeWindow
21893             after a window has been destroyed
21894           - Added handling of already destroyed windows when calling i
21895             DestroyWindow
21896           - Added removal of handle from list on ReleaseHandle
21897         * XplatUIX11.cs:
21898           - Dropped GetMessageResult var and related code
21899           - Added PostQuitState to field to track if PostQuitMessage has been
21900             called
21901           - Dropped Exit() method
21902           - Added PostQuitMessage() method
21903           - GetMessage now will return false if PostQuitState is set and no
21904             more messages are in the queue.
21905           - Expose handler will no longer generate WM_PAINT messages if we are
21906             in PostQuitState since it's very likely any windows have already
21907             been destroyed, and since Hwnd won't get updated until we have
21908             processed the DestroyNotify we'd be causing X errors.
21909         
21910 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
21912         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
21913           Thanks to Mike for pointing out the err of my ways.
21915 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
21917         * Control.cs(PreProcessMessage): Moved menu handling back, but
21918           after all other key handling, to match MS (who handles Menu in
21919           DefWndProc)
21920         * Menu.cs (WndProc): Removed my brainfart
21922 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
21924         * Control.cs(PreProcessMessage): Removed special menu handling 
21925         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
21927 2005-12-07  Mike Kestner  <mkestner@novell.com>
21929         * Control.cs : special case SYSKEYUP so that we can adjust keynav
21930         state according in tracker.
21931         * Menu.cs : promote tracker field to base class and provide a tracker
21932         lookup capability.  Add/Remove shortcuts dynamically if the top menu
21933         has a tracker. Unparent items that are removed from the collection.
21934         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
21935         * Theme*.cs: add always_show_hotkeys field to support configurability
21936         of mnemonic display.  win32 doesn't show mnemonics until Alt is
21937         pressed.
21939 2005-12-07  Jackson Harper  <jackson@ximian.com>
21941         * MdiChildContext.cs: Use Control.ResetCursor.
21942         * Control.cs: ResetCursor needs to set the property so that the
21943         correct XplatUI call gets made.
21945 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
21947         * Control.cs: More fixes to make our key events match MS. We
21948           were not setting the modifier state on KeyData, and we were
21949           not generating any events when Alt was pressed with a key
21950           since handling of WM_SYSxxx was missing for the OnKey methods.
21952 2005-12-07  Jackson Harper  <jackson@ximian.com>
21954         * MdiChildContext.cs: reenable the sizing code.
21955         - When the mouse leaves a window reset its cursor.
21957 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
21959         * ThemeClearlooks.cs: Reflect latest Hwnd changes
21961 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
21963         * Hwnd.cs: Now using the theme 3d bordersize to calculate
21964           widths of Fixed3D borders
21966 2005-12-07  Jackson Harper  <jackson@ximian.com>
21968         * MdiClient.cs: Fix warnings. Earn Mike's love.
21970 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
21972         * ThemeClearlooks.cs:
21973           - Adjusted mouse over button color
21974           - Added first parts of CheckBox drawing
21975           - Added correct color for selected text background
21976           - Fixed ComboBox drawing
21977           - Added CPDrawBorder3D and CPDrawBorder
21979 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
21981         * XplatUIX11.cs: Added call to XBell for AudibleAlert
21983 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
21985         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
21986           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
21987           alert users via sound. We could add an enum arg with different
21988           types of alerts in the future
21990 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
21992         * Control.cs: Fix behaviour problems pointed out by Mike
21994 2005-12-05  Mike Kestner  <mkestner@novell.com>
21996         * StatusBarPanel.cs: add Invalidate method and hook it into all the
21997         prop setters.  Calls parent.Refresh for now, but could be maybe be
21998         optimized with an internal method on StatusBar at some point.
21999         [Fixes #76513]
22001 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
22003         * RichTextBox.cs: Implemented get_SelectionColor
22005 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
22007         * ThemeClearlooks.cs:
22008           - Removed dead code
22009           - Draw black button border only if button is Form.AcceptButton
22010           - Draw correct button color for pressed RadioButton if the mouse 
22011             has entered the button
22012           - Updated ProgressBar drawing!
22013           - Updated CPDrawSizeGrip drawing
22014           - Updated StatusBarPanel drawing
22016 2005-12-05  Mike Kestner  <mkestner@novell.com>
22018         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
22019         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
22021 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
22023         * ThemeClearlooks.cs: Initial check-in, activate with
22024           export MONO_THEME=clearlooks
22025         * ThemeEngine.cs: Added ThemeClearlooks
22027 2005-12-03  Mike Kestner  <mkestner@novell.com>
22029         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
22030         [Fixes #76897]
22032 2005-12-02  Jackson Harper  <jackson@ximian.com>
22034         * Form.cs: If the child form has no menu the default main menu is
22035         used as the active menu.
22037 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
22039         * ListBox.cs: Check if any items exist before trying to resolve 
22040           coordinates into items
22042 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
22044         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
22045           as the second color for the background hatch
22047 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
22049         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
22050         * RichTextBox.cs: FormatText position arguments are 1-based, now making
22051           sure that what we pass to FormatText is always 1-based. Fixes #76885
22053 2005-11-29  Miguel de Icaza  <miguel@novell.com>
22055         * NumericUpDown.cs (EndInit): When we are done initializing,
22056         reflect any updates on the UI.
22058 2005-12-02  Jackson Harper  <jackson@ximian.com>
22060         * ImplicitHScrollBar.cs:
22061         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
22062         their container controls.
22063         * TreeView.cs: Use the new implicit scrollbars.
22065 2005-12-02  Jackson Harper  <jackson@ximian.com>
22067         * TreeView.cs: Make top_node internal so the TreeNodeCollections
22068         can play with it.
22069         * TreeNodeCollection.cs: If we remove the topnode we need to
22070         update topnode to the next node in line.
22071         - When clearing nodes go through the same process as removing
22072         them, so they get depareneted and checked if they are top node.
22074 2005-12-01  Jackson Harper  <jackson@ximian.com>
22076         * TreeView.cs: When imagelists are used the image area is
22077         selectable as well as the text.
22078         - If there are no selected nodes select the first one.
22079         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
22080         so don't do it more then we need to.
22082 2005-12-01  Jackson Harper  <jackson@ximian.com>
22084         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
22085         that arrows can be scaled.
22087 2005-12-01  Jackson Harper  <jackson@ximian.com>
22089         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
22090         fail. Patch by Dieter Bremes
22092 2005-11-30  Jackson Harper  <jackson@ximian.com>
22094         * Form.cs: Property is 2.0 only
22095         * PrintDialog.cs: Signature fix.
22097 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
22099         * TextControl.cs: 
22100           - No longer artificially moves text 2 pixels down (now that we have
22101             borders this is no longer needed)
22102           - Added calcs for left, hanging and right indent
22104 2005-11-23  Mike Kestner  <mkestner@novell.com>
22106         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
22108 2005-11-30  Jackson Harper  <jackson@ximian.com>
22110         * MdiChildContext.cs: Set the cloned menus forms, as these don't
22111         get cloned as part of CloneMenu ().
22112         * Menu.cs: Make sure the parent of the items get set correctly
22113         when they are added.  And the owners are notified of the changes.
22114         * Form.cs: Create an ActiveMenu property, so that when MDI is used
22115         we can change the menu being displayed/handled by the form without
22116         changing the menu assosciated with the form.
22117         - Don't let Mdi children draw/handle menus.
22118         
22119 2005-11-30  Jackson Harper  <jackson@ximian.com>
22121         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
22122         a MenuChanged event. Just to make the API a little more
22123         consistent.
22124         * MainMenu.cs:
22125         * MenuItem.cs: Use the new OnMenuChanged
22126         * MdiChildContext.cs: Handle menu merging.
22127         * Form.cs: Implement MergedMenu.
22128         
22129 2005-11-30  Jackson Harper  <jackson@ximian.com>
22131         * Menu.cs: We were misusing Add. Add goes behind the specified
22132         index according to the docs, and does not replace the specified
22133         index. So I added an Insert method.
22135 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
22137         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
22138           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
22139           is for Jackson
22140         * RichTextBox.cs: Added calls to base for DnD events
22142 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
22144         * TextControl.cs:
22145           - Fixed drag-selection related crash; style fixes
22146           - Implemented undo class
22147             o Implemented method to capture document state for specified
22148               range in document tree
22149             o Implemented method to restore captured document state
22150             o Implemented cursor tracking
22151             o Implemented basic undo stack
22152           - Added undo cursor tracking to methods altering cursor location
22153           - Added undo tracking to selection deletion (still missing
22154             other text-altering hookups)
22155         * RichTextBox.cs:
22156           - Added SelectionLength property
22157           - Implemented CanPaste()
22158           - Implemented Paste()
22159           - Added missing protected methods
22160           - Fixed RTF->Document conversion; now uses font index 0 and color 
22161             index 0 as the default font for the parsed text
22162           - Fixed RTF<->Document font size translation
22163           - Fixed RTF generation, now properly handles cross-tag boundaries
22164             for single line selection
22165           - No longer always appends blank line to generated RTF
22166           - Removed TODOs
22167           - Added missing attributes
22168           - Hooked up undo-related methods
22169         * TextBoxBase.cs:
22170           - Implemented Copy()
22171           - Implemented Paste()
22172           - Implemented Cut()
22173           - Fixed caret mis-behaviour on backspace across line-boundaries
22175 2005-11-29  Jackson Harper  <jackson@ximian.com>
22177         * MdiClient.cs: Add a method for activating mdi children. Very
22178         basic right now. I imagine someday it might need more girth.
22179         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
22180         children windows names are added to the menu item.
22181         * ThemeWin32Classic.cs: Draw the arrow if the item is an
22182         mdilist. This happens regardless of whether or not there are any
22183         mdi windows to see in the list, and according to my tests happens
22184         before the items are even added. Also happens if there isn't even
22185         an mdi client to get windows from.
22187 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
22189         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
22190         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
22192 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
22194         * DataGridTableStyle.cs:
22195           - Create always the styles for the missing columns even if they are
22196             provided by the user (not default table style)
22197         * DataGrid.cs:
22198           - Fixes bug 76770
22199           - Fixes SetDataBinding (always re-attach source)
22200           - Fixes SetNewDataSource (only clear styles if they are not for 
22201             this source)
22202          -  Expands OnTableStylesCollectionChanged to handle style refresh 
22203             and remove properly
22205 2005-11-29  Jackson Harper  <jackson@ximian.com>
22207         * FileDialog.cs: Implement missing bits, remove some dead
22208         code.
22209         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
22210         creation of the panel so that the options set on the dialog are
22211         seen when the panel is created.
22212         * TreeView.cs: raise a click when items are clicked.
22213         
22214 2005-11-29  Jackson Harper  <jackson@ximian.com>
22216         * MdiClient.cs: Pass some signature methods through to base.
22218 2005-11-28  Jackson Harper  <jackson@ximian.com>
22220         * ListView.cs: Raise the click event when items are clicked.
22222 2005-11-28  Jackson Harper  <jackson@ximian.com>
22224         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
22225         a nullref.
22227 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
22229         * ThemeNice.cs: - Removed 1 pixel bitmaps
22230           - Use SmoothingMode.AntiAlias where it makes sense
22231             (ScrollButton arrow for example)
22232           - Enhanced Button focus drawing
22233           - Fixed ComboBox drawing (no artefacts anymore, focus
22234             rectangle is back again, reduced size of ComboButton, etc.)
22235           - Fixed RadioButton focus drawing for Appearence.Button
22236           - Slight ScrollButton redesign
22237           - Some LinearGradientBrush size fixes
22238           - GroupBoxes have now rounded edges
22239           - Fixed StatusBar drawing
22241 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
22243         * ThemeNice.cs: - Remove dead code
22244           - use correct background colors for menus, etc.
22245           - Fake pixel drawing with 1 pixel bitmaps
22247 2005-11-24  Jackson Harper  <jackson@ximian.com>
22249         * MdiClient.cs: Size the scrollbars when resizing the window.
22250         - Resize the maximized windows when the client is resized
22251         * Form.cs: Make the child context available
22252         
22253 2005-11-23  Jackson Harper  <jackson@ximian.com>
22255         * MdiChildContext.cs: Don't size windows if they are maximized.
22257 2005-11-23  Mike Kestner  <mkestner@novell.com>
22259         * ContextMenu.cs: use MenuTracker.
22260         * Control.cs: remove menu handle usage.
22261         * Form.cs: remove menu handle usage.
22262         * Hwnd.cs: remove menu handle usage.
22263         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
22264         motion and clicks to the new Tracker handlers.
22265         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
22266         and handle usage.
22267         * MenuAPI.cs: refactored to combine popup and menubar event handling.
22268         Killed the MENU and MENUITEM data types and associated collections
22269         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
22270         MenuTracker class that exposes the leftovers from the old MenuAPI
22271         static methods. Restructured Capture handling so that only one grab is
22272         done for the entire menu hierarchy instead of handing off grabs to
22273         submenus. Tracker now has an invisible control to Capture when active.
22274         * MenuItem.cs: add sizing accessors, kill Create
22275         and handle usage.
22276         * Theme.cs: remove menu handle and MENU(ITEM) usage.
22277         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
22278         MENU(ITEM). remove menu handle usage, use Menu directly.
22279         * XplatUIDriver.cs: remove menu handle usage.
22280         * XplatUIOSX.cs: remove menu handle usage.
22281         * XplatUIWin32.cs: remove menu handle usage.
22282         * XplatUIX11.cs: remove menu handle usage.
22284 2005-11-22  Jackson Harper  <jackson@ximian.com>
22286         * Hwnd.cs: Don't compute the menu size for
22287         DefaultClientRectangle.
22288         - Reenable menu sizes being computed for GetClienRectangle.
22289         * Form.cs: Remove comment of trechery
22290         
22291 2005-11-22  Jackson Harper  <jackson@ximian.com>
22293         * Hwnd.cs: The adjustments for the menu bar are made when it is
22294         attached to the form.
22296 2005-11-19  Jackson Harper  <jackson@ximian.com>
22298         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
22299         (just like on windows).
22301 2005-11-19  Jackson Harper  <jackson@ximian.com>
22303         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
22304         use real buttons anymore because they are in non client area. The
22305         one TODO here is that I need to somehow invalidate a section of
22306         the non client area.
22308 2005-11-18  Jackson Harper  <jackson@ximian.com>
22310         * Control.cs: Put the enum check back in now that MDI doesnt have
22311         to use this to set border styles.
22312         * Form.cs: Only set mdi child windows borders if the handle has
22313         been created.
22314         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
22315         this directly on to the driver.
22316         - Get the move start position before adjusting for the titlebar
22317         height, this fixes the windows "skipping" when they are first
22318         moved.
22320 2005-11-18  Jackson Harper  <jackson@ximian.com>
22322         * XplatUIX11.cs: Just compute the mdi borders separately as they
22323         don't totally match up with normal form borders.
22325 2005-11-18  Jackson Harper  <jackson@ximian.com>
22327         * Control.cs: Set WS_ styles for borders, so that the driver does
22328         not have to retrieve the control instance to figure out what kind
22329         of borders it should have.
22330         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
22331         driver can know its an mdi child easily.
22332         * XplatUIX11.cs: Get the border styles and whether the window is
22333         MDI from the Styles and ExStyles params instead of having to get a
22334         control. This prevents a chicken and egg problem.       
22336 2005-11-18  Jackson Harper  <jackson@ximian.com>
22338         * MdiClient.cs: Fix typo so scrollbars show up correctly.
22340 2005-11-18  Jackson Harper  <jackson@ximian.com>
22342         * MdiClient.cs: Calculate when to add and remove scrollbars
22343         correctly.
22344         * MdiChildContext.cs: Adjust the y position to take the titlebar
22345         into account.
22346         - No height for FormBorderStyle.None
22348 2005-11-18  Jackson Harper  <jackson@ximian.com>
22350         * Control.cs: Allow non enum values to be used for
22351         InternalBorderStyle.  MDI does this to set a special border style.
22352         - New utility methods for converting points to/from client coords
22353         - Add the newly created control to the Controls collection before
22354         updating its style. This way UpdateStyle can walk the control
22355         heirarchy to find the control if needed.
22356         so I don't need to create a new Point object all the time.
22357         * Form.cs: Let MDI windows handle their border styles.
22358         - Set styles on MDI windows so the correct title style is derived.
22359         * MdiChildContext.cs: Move all the painting and window handling
22360         into the non client area.
22361         - Use correct sizing and put correct buttons on frames based on
22362         the FormBorderStyle.
22363         - Notify the mdi client about scrolling
22364         - Need to handle the buttons ourselves now, because they are all
22365         in non client areas and we can't add controls there.
22366         * MdiClient.cs: Halfway to scrolling, this implementation is
22367         somewhat broken though, we need to check to make sure other
22368         windows aren't causing scrolling before removing the bars. Also
22369         the bars need to be drawn on top, maybe I can switch implicit
22370         controls to be on top.
22371         * Hwnd.cs: caption_height and tool_caption_height are now
22372         properties of an hwnd, this way they can be set by the driver
22373         based on the type of window they are.  In X11 the window manager
22374         handles the decorations so caption_height is zero unless its an
22375         MDI window.
22376         - Add 3 pixel borders for MDI windows (0xFFFF).
22377         - Get rid of some code duplication, have DefaultClientRectanle
22378         just call GetClientRectangle.
22379         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
22380         Hwnd now.
22381         - Set border styles differently for mdi windows.
22382         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
22383         Hwnd now.
22384         
22385 2005-11-15  Mike Kestner  <mkestner@novell.com>
22387         * Menu.cs: when adding an item to the collection, if item is already 
22388         parented, remove it from the parent.
22390 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
22392         * X11DesktopColors.cs: Added KDE support
22394 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
22396         * XplatUIWin32.cs: 
22397           - Clipboard methods now can translate Rtf format
22398           - No longer removes clipboard contents whenever a new format is added
22399             to allow placing multiple formats on the clipboard
22400         * Clipboard.cs: Clipboard now supports getting a IDataObject and
22401           will place all formats contained in it onto the clipboard. Also
22402           now cleans the clipboard before placing a new object onto it
22403         * RichTextBox.cs:
22404           - Implemented set_Rtf
22405           - Implemented set_SelectedRtf
22406           - Created InsertRTFFromStream() method to allow single code base
22407             for all properties and methods that insert RTF into document
22408           - Removed debug output
22409         * TextControl.cs:
22410           - Fixed Delete(int) to fix up line numbers
22411           - Fixed ReplaceSelection to combine start and end line
22412           - Fixed serious DeleteChars bug that would leave the document tree
22413             broken
22414           - Improved DumpTree with several logic checks to detect broken
22415             document trees
22416           - Removed debug lines
22417           - Fixed Caret.WordForward/WordBack moving code, now always also 
22418             updates caret.tag (fixes crash when word-selecting across tag
22419             boundaries via keyboard)
22420           - Added Insert() method for inserting multiline text into documents
22421           - Fixed DeleteChars() calculation errors that would cause a broken
22422             tag chain with multiple tag lines
22423           - DeleteChars() no longer crashes on multi-tag lines if not all tags
22424           - Split() no longer moves caret if split is at caret location
22425           - ReplaceSelection() now updates the cursor and re-displays it
22426           - ReplaceSelection() now uses new Insert() method to avoid code
22427             duplication
22428           - FormatText() can now handle formatting partial lines
22429         * TextBoxBase.cs:
22430           - Append now uses new TextControl.Insert() method (this avoids 
22431             duplicate code)
22432           - Implemented Ctrl-X (Cut) (
22433           - Implemented Ctrl-C (Copy)
22434           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
22435             regeneration when pasting text; roundtripping Copy&Paste within
22436             edit control still fails due to some calculation bugs in GenerateRTF)
22437           - The Delete key will now remove the current selection if it is visible
22438         * TextBox.cs: Removed debug lines
22439         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
22440           driver to be initialized and can't therefore be done via a static ctor)
22442 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
22444         * TextControl.cs: Added backend code for finding char arrays and strings
22445         * TextBoxBase.cs:
22446           - Added mouse wheel scroll support
22447           - Added support for VScroll and HScroll events
22448         * RichTextBox.cs:
22449           - Implemented all seven Find() variants
22450           - Implemented GetCharFromPosition()
22451           - Implemented GetCharIndexFromPosition()
22452           - Implemented GetLineFromIndex()
22453           - Implemented GetPositionFromCharIndex();
22454           - Implemented SaveFile for PlainText and UnicodeText
22455           - Fixed set_Font, now setting a new font applies that font to
22456             the whole document
22457           - Implemented generic Document to RTF converter
22458           - Implemented SaveFile for RichText format (still missing unicode
22459             conversion for non-ansi chars)
22460           - Implemented get_Rtf
22461           - Implemented get_SelectedRtf
22463 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
22465         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
22466           to allow any captures to be released before triggering OnClick. This
22467           way a click handler may capture the mouse without interference.
22468         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
22469           This way we send them even though X may not allow a grab (if the window
22470           isn't visible, for example)
22472 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
22474         * DataGridViewRowEventArgs.cs: DataGridView implementation
22475         * DataGridViewElement.cs: DataGridView implementation
22476         * DataGridViewComboBoxCell.cs: DataGridView implementation
22477         * DataGridViewDataErrorContexts.cs: DataGridView implementation
22478         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
22479         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
22480         * ImageLayout.cs: DataGridView implementation
22481         * DataGridViewComboBoxColumn.cs: DataGridView implementation
22482         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
22483         * DataGridViewSelectionMode.cs: DataGridView implementation
22484         * IDataGridViewEditingControl.cs: DataGridView implementation
22485         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
22486         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
22487         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
22488         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
22489         * DataGridViewColumnSortMode.cs: DataGridView implementation
22490         * DataGridView.cs: DataGridView implementation
22491         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
22492         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
22493         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
22494         * Padding.cs: DataGridView implementation
22495         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
22496         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
22497         * DataGridViewRowEventHandler.cs: DataGridView implementation
22498         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
22499         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
22500         * DataGridViewButtonCell.cs: DataGridView implementation
22501         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
22502         * DataGridViewEditMode.cs: DataGridView implementation
22503         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
22504         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
22505         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
22506         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
22507         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
22508         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
22509         * DataGridViewCellEventHandler.cs: DataGridView implementation
22510         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
22511         * DataGridViewCellStyleConverter.cs: DataGridView implementation
22512         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
22513         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
22514         * DataGridViewColumnEventArgs.cs: DataGridView implementation
22515         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
22516         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
22517         * QuestionEventArgs.cs: DataGridView implementation
22518         * IDataGridViewEditingCell.cs: DataGridView implementation
22519         * DataGridViewTriState.cs: DataGridView implementation
22520         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
22521         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
22522         * DataGridViewColumnCollection.cs: DataGridView implementation
22523         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
22524         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
22525         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
22526         * DataGridViewColumn.cs: DataGridView implementation
22527         * DataGridViewCellBorderStyle.cs: DataGridView implementation
22528         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
22529         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
22530         * DataGridViewRow.cs: DataGridView implementation
22531         * DataGridViewImageCellLayout.cs: DataGridView implementation
22532         * DataGridViewImageCell.cs: DataGridView implementation
22533         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
22534         * DataGridViewCheckBoxCell.cs: DataGridView implementation
22535         * DataGridViewHeaderCell.cs: DataGridView implementation
22536         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
22537         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
22538         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
22539         * DataGridViewTextBoxColumn.cs: DataGridView implementation
22540         * QuestionEventHandler.cs: DataGridView implementation
22541         * DataGridViewCellStyleScopes.cs: DataGridView implementation
22542         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
22543         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
22544         * DataGridViewCell.cs: DataGridView implementation
22545         * DataGridViewCellEventArgs.cs: DataGridView implementation
22546         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
22547         * DataGridViewCellStyle.cs: DataGridView implementation
22548         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
22549         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
22550         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
22551         * TextFormatFlags.cs: DataGridView implementation
22552         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
22553         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
22554         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
22555         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
22556         * DataGridViewButtonColumn.cs: DataGridView implementation
22557         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
22558         * HandledMouseEventArgs.cs: DataGridView implementation
22559         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
22560         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
22561         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
22562         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
22563         * DataGridViewRowCollection.cs: DataGridView implementation
22564         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
22565         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
22566         * DataGridViewHitTestType.cs: DataGridView implementation
22567         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
22568         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
22569         * DataGridViewColumnEventHandler.cs: DataGridView implementation
22570         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
22571         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
22572         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
22573         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
22574         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
22575         * DataGridViewContentAlignment.cs: DataGridView implementation
22576         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
22577         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
22578         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
22579         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
22580         * DataGridViewPaintParts.cs: DataGridView implementation
22581         * DataGridViewCellCollection.cs: DataGridView implementation
22582         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
22583         * DataGridViewImageColumn.cs: DataGridView implementation
22584         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
22585         * DataGridViewElementStates.cs: DataGridView implementation
22586         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
22587         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
22588         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
22589         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
22590         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
22591         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
22592         * DataGridViewRowHeaderCell.cs: DataGridView implementation
22593         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
22594         * DataGridViewTextBoxCell.cs: DataGridView implementation
22595         * DataGridViewBand.cs: DataGridView implementation
22596         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
22597         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
22598         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
22599         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
22600         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
22601         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
22602         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
22603         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
22604         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
22605         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
22606         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
22608 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
22610         * ThemeWin32Classic.cs: 
22611           - Draw the outside focus rectangle around buttons
22612           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
22613             doesn't use end caps for every dash of a line anymore. This
22614             workaround ignores the forecolor.
22616 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
22618         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
22619           endian safe.
22621 2005-11-07  Jackson Harper  <jackson@ximian.com>
22623         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
22625 2005-11-07  Jackson Harper  <jackson@ximian.com>
22627         * ScrollableControl.cs: Calculate the maximum and change vars
22628         (more) correctly so that scrollbars appear as a sensible size.
22630 2005-11-04  Jackson Harper  <jackson@ximian.com>
22632         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
22633         collection.
22634         * TreeView.cs: When the tree is sorted null out the top_node so
22635         that it is recalculated.
22636         - Use dotted lines instead of dashed lines to match MS better.
22638 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
22640         * ListView.cs: 
22641           - Implements key search for items. Useful when browsing files with FileDialog
22642           - When changing view mode or when clear the items reset scrollbar positions
22644 2005-11-04  Jackson Harper  <jackson@ximian.com>
22646         * CurrencyManager.cs: Implement the MetaDataChanged event, the
22647         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
22648         as to what the method may do as there is no real way of creating a
22649         derived CurrencyManager and calling the method. 
22651 2005-11-03  Jackson Harper  <jackson@ximian.com>
22653         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
22654         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
22655         method which seems to just be used internally to refresh the tabs.
22657 2005-11-03  Jackson Harper  <jackson@ximian.com>
22659         * TabControl.cs: Implement the remove method. Fix some broken
22660         comments.
22662 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
22664         * DateTimePicker.cs:
22665           - Added missing DateTimePickerAccessibleObject class
22666           - Added missing events
22667           - Added OnFontChanged method
22668         * Form.cs: Added missing attributes
22669         * TreeView.cs: Added missing attributes
22671 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
22673         * GridItemCollection.cs: Fix signatures
22675 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
22677         * XplatUI.cs: Updated build rev/date
22678         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
22679           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
22680         * Application.cs: Trigger context-specific ExitThread events
22682 2005-11-03  Jackson Harper  <jackson@ximian.com>
22684         * Menu.cs:
22685         * MainMenu.cs:
22686         * GridTableStylesCollection.cs:
22687         * Timer.cs:
22688         * TabPage.cs:
22689         * HelpProvider.cs:
22690         * StatusBar.cs:
22691         * MonthCalendar.cs: Signature fixes
22693 2005-11-03  Jackson Harper  <jackson@ximian.com>
22695         * TreeNodeCollection.cs: Remove should not be virtual.
22696         * TreeView.cs: Implement the last of the missing methods.
22698 2005-11-03  Jackson Harper  <jackson@ximian.com>
22700         * TreeNodeConverter.cs: Implement to get off my class-status back.
22702 2005-11-03  Jackson Harper  <jackson@ximian.com>
22704         * TreeView.cs: Hookup the bits for drag and drop.
22705         * TreeNode.cs: Don't cache the tree_view or index anymore, now
22706         that nodes can be moved from tree to tree easily this just causes
22707         all sorts of problems.
22708         * TreeNodeCollection: Don't need to give treenodes an index and
22709         treeview anymore when they are added, these are computed on the
22710         fly. Also make sure to remove a node before its added.
22712 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
22714         * TextControl.cs:
22715           - Added CaretSelection enum
22716           - Added comparison methods to Marker struct, makes selection code
22717             more readable
22718           - Added SelectionStart and SelectionEnd as 'moveable' location for
22719             the CaretDirection enum and handler
22720           - Added selection_prev variable to track optimized invalidation for
22721             word and line selection
22722           - Added SelectionVisible property (returns true if there is a valid 
22723             selection)
22724           - Switched CaretHasFocus to only display the caret if there is no
22725             visible selection
22726           - Avoiding StringBuilder.ToString to retrieve a single char, instead
22727             using the direct character index; should be much faster
22728           - Added various conditional debug statements
22729           - Fixed invalidation calculation for selection ranges
22730           - Added ExpandSelection() method to support word and line selection
22731           - Switched SetSelectionToCaret to use new Marker compare overloads
22732           - Added central IsWordSeparator() method to determine word 
22733             separators/whitespace and FindWordSeparator() to streamline common
22734             usage of IsWordSeparator()
22735         * TextBoxBase.cs:
22736           - Removed unneeded grabbed variable, it was just mirroring
22737             Control.Capture
22738           - No longer firing OnTextChanged event when Text setter is called,
22739             since the base will fire the event for us
22740           - Added handling of Ctrl-Up/Down selection
22741           - Added handling of Shift-Cursorkey selection
22742           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
22743             words
22744           - Added handling of Shift and Ctrl-Shift-Home/End selection
22745           - Removed some debug output
22746           - Added handling for single/double/tripple-click to place caret/
22747             select word/select line respectively (Fixes bug #76031)
22748           - Added support for drag expansion of word/line selection
22749         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
22750           current selection
22752 2005-11-02  Jackson Harper  <jackson@ximian.com>
22754         * X11Dnd.cs: If the drag is going to and from a MWF window just
22755         copy the data instead of sending it out through the X Selection
22756         mechanism.
22758 2005-11-02  Jackson Harper  <jackson@ximian.com>
22760         * X11Dnd.cs:
22761         * XplatUIX11.cs: When in a drag we don't want motion notify
22762         messages to get passed on to the other controls. This prevents
22763         mouse move messages from showing up in the drag source.
22765 2005-11-02  Jackson Harper  <jackson@ximian.com>
22767         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
22768         the correct button is release to end a drag.
22769         * XplatUIX11.cs: Make the button state internal so the drag system
22770         can access it.  Dragging needs to know about all button releases,
22771         not just left button.
22773 2005-11-02  Miguel de Icaza  <miguel@novell.com>
22775         * Form.cs (Icon): If the icon is null, reset the icon to the
22776         default value. 
22778         * Cursor.cs: When writing the AND-mask bitmap do not include the
22779         number of colors, but hardcode those to two (black and white),
22780         fixes the loading of color cursors (Paint Dot Net).
22782         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
22783         turn off autoscaling.
22785         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
22787 2005-11-02  Jackson Harper  <jackson@ximian.com>
22789         * X11Dnd.cs: Make sure to send a status message if the pointer
22790         enters a control that can not accept a drop, otherwise the cursor
22791         isn't updated correctly. Also tried to compress the lines of code
22792         a bit.
22794 2005-11-02  Jackson Harper  <jackson@ximian.com>
22796         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
22797         set actions correctly.  This isn't perfect as XDND and win32 have
22798         some differences on how you allow actions. I'll clear this up by
22799         adding a path for drag from MWF to MWF windows.
22800         * XplatUIX11.cs: Hook into the dnd system.
22802 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
22804         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
22805         previously shown but they are no longer need it. Very obvious when 
22806         browsing files with FileDialog.
22808 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
22810         * Control.cs: We always need to call OnPaintBackground. We pretty much
22811           ignore AllPaintingInWmPaint and always do the painting there, whether 
22812           it's set or not, since we always ignore the WM_ERASEBKGND message 
22813           (which we don't generate on X11). This fixes #76616.
22814         * Panel.cs: Removed unneeded background painting. This happens properly
22815           in Control.cs already
22817 2005-10-31  Mike Kestner  <mkestner@novell.com>
22819         * Menu.cs: Add items to collection before setting their index.
22820         * MenuItem.cs : add range checking with ArgumentException like MS.
22821         [Fixes #76510]
22823 2005-10-31  Jackson Harper  <jackson@ximian.com>
22825         * ListBox.cs: Invalidate if the area is visible at all not just
22826         contained in the visible rect. Fixes unselection of semi visible
22827         items.
22829 2005-10-31  Jackson Harper  <jackson@ximian.com>
22831         * Control.cs: Consistently name the dnd methods. Make them
22832         internal so we can override them to match some MS behavoir
22833         internally.
22834         * Win32DnD.cs: Use the new consistent names.
22836 2005-10-31  Jackson Harper  <jackson@ximian.com>
22838         * TreeView.cs: Don't draw the selected node when we lose focus.
22840 2005-10-31  Jackson Harper  <jackson@ximian.com>
22842         * X11Dnd.cs: We still need to reset the state even though a full
22843         reset isn't being done, otherwise status's still get sent all over
22844         the place.
22846 2005-10-31  Jackson Harper  <jackson@ximian.com>
22848         * Control.cs: Make the dnd_aware flag internal so the dnd
22849         subsystem can check it. Catch exceptions thrown in dnd handlers to
22850         match MS behavoir.
22851         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
22852         * X11Dnd.cs: Handle null data in the converters. Set the XDND
22853         version when sending a XdndEnter. Use the control/hwnd dnd_aware
22854         flags to reduce the number of dnd enters/status's sent.
22856 2005-10-31  Jackson Harper  <jackson@ximian.com>
22858         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
22860 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
22862         * PictureBox.cs: Fixes 76512
22864 2005-10-28  Jackson Harper  <jackson@ximian.com>
22866         * X11Dnd.cs: Early implementation to support winforms being a drag
22867         source for data on X11. Also restructured the converters so they
22868         can go both ways now.
22869         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
22870         
22871 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
22873         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
22874           clipboard requests
22876 2005-10-27  Jackson Harper  <jackson@ximian.com>
22878         * TreeNode.cs: Implement serialization so my DnD examples will work.
22880 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
22882         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
22883           TreeView.cs: Don't dispose objects that are not owned.
22884           
22885 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
22887         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
22888           should retrieve the current cursor and report that, but XplatUI
22889           doesn't (yet) have an interface for that (and I'm not sure I even
22890           can, on X11)
22891         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
22892           until any message loop processing is done (and the WM_SETCURSOR
22893           replaces the cursor to the proper one)
22894         * XplatUIX11.cs: 
22895           - Fixed override behaviour, we can't set the cursor globally on X11, 
22896             just for our windows.
22897           - Invalidating the System.Drawing X11 display handle when we are
22898             shutting down
22899         * Control.cs: Fix to make csc happy
22901 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
22903         * TextBoxBase.cs: 
22904           - get_Text: Add last line (without trailing newline) to returned
22905             value (Fixes 76212)
22906           - get_TextLength: Count last line in returned length
22907           - ToString: Call Text property instead of duplicating code
22909 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
22911         * ImageList.cs: Dispose ImageAttributes objects.
22913 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
22915         * ImageList.cs: Use attribute constructors with less arguments where
22916           possible.
22918 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
22920         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
22921           Use typeof instead of strings when assembly is referenced. Added
22922           some more comments.
22924 2005-10-21  Jackson Harper  <jackson@ximian.com>
22926         * ListView.cs: Raise a double click event. Also tried to somewhat
22927         fix when the selectedindexchanged event is raised. Its still
22928         broken though.
22930 2005-10-21  Jackson Harper  <jackson@ximian.com>
22932         * TreeView.cs: New method to invalidate the plus minus area of a
22933         node without invalidating the whole node (maybe this can be used
22934         in some more places).
22935         * TreeNodeCollection.cs: When adding to an empty node we need to
22936         invalidate its plus minus area so the little block shows up.
22937         
22938 2005-10-21  Jackson Harper  <jackson@ximian.com>
22940         * TreeView.cs: Make sure that when we invalidate a node the bounds
22941         are big enough to cover the selected box and the focus
22942         rectangle. Use a different colour for the lines connecting nodes
22943         so they show up with all themes.
22945 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
22947         * NativeWindow.cs: Don't call anything that could call into the driver,
22948           we might be on a different thread.
22950 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
22952         * Control.cs(Dispose): Since Dispose might run on a different thread,
22953           make sure that we call methods that could call into the driver via
22954           invoke, to avoid thread issues
22956 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
22958         * XplatUI.cs: Removed finalizer
22959         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
22960           not allowing to be called on the finalizer thread.
22962 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
22964         * ImageList.cs:
22965           - Reverted r51889 and r51891.
22966           - Added ImageListItem class that stores unmodified image items and image
22967             properties required to create list images until handle is created.
22968           - Added AddItem and moved image creation logic to AddItemInternal.
22969           - Added CreateHandle method that creates images based on unmodified items.
22970           - Added DestroyHandle that changes state to store unmodified items.
22971           - Add and AddStrip methods no more create handle.
22972           - ReduceColorDepth has no return value.
22973           - Dispose destroys handle.
22974           - Modified other methods to reflect the above changes.
22975           - Implemented key support.
22976           - Added profile 2.0 members and attributes.
22977           - Added private Reset and ShouldSerialize methods that provide the same
22978             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
22979             them as they are private.
22980           - Added some more comments about implementation details.
22982 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
22984         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
22986 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
22988         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
22990 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
22992         * DataGridDrawingLogic.cs: Fixes column hit calcultation
22993         * DataGridColumnStyle.cs: Remove debug message
22995 2005-10-20  Jackson Harper  <jackson@ximian.com>
22997         * TreeView.cs: We can always get input keys regardless of whether
22998         or not editing is enabled. They are used for navigation.
23000 2005-10-20  Jackson Harper  <jackson@ximian.com>
23002         * TreeNode.cs: Use the viewport rect for determining if a node
23003         needs to be moved for visibility. Don't use Begin/End edit. This
23004         calls a full refresh when its done.
23005         * TreeView.cs: New SetBottom works correctly.  Make the viewport
23006         rect property internal so the treenodes can see it. When clicking
23007         on a node we need to ensure that its visible because it might just
23008         be partly visible when clicked.
23010 2005-10-20  Jackson Harper  <jackson@ximian.com>
23012         * TreeNodeCollection.cs: Remove debug code.
23014 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
23016         * Datagrid.cs: Implements column sorting in Datagrid
23017         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
23019 2005-10-20  Jackson Harper  <jackson@ximian.com>
23021         * TreeNodeCollection.cs: Remove items properly. Update the correct
23022         area after removing them.
23024 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
23026         * Datagrid.cs: Should not call base.OnPaintBackground
23028 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
23030         * XplatUIX11.cs (GetMessage):
23031           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
23032             window instead of client window
23033           - Now properly calculates NC_xBUTTONUP message coordinates
23034           - ScreenToMenu now properly calculates it's coordinates of whole 
23035             window, since menus are in the whole window, not in the client
23036             window
23037           - Added WholeToScreen coordinate translation method
23039 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
23041         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
23042           want to return a message, loop back to the beginning of the function
23043           and grab the next real message to process instead.
23045 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
23047         * Splitter.cs: Properly set limits if no filler control is used
23049 2005-10-19  Jackson Harper  <jackson@ximian.com>
23051         * ColorDialog.cs: Don't show the help button if it is not enabled
23052         instead of disabling it (this is what MS does). Don't create the
23053         panel until the dialog is run, otherwise the vars (such as
23054         ShowHelp) are not set yet.
23056 2005-10-19  Jackson Harper  <jackson@ximian.com>
23058         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
23059         are reduced when adding nodes.
23060         * TreeNode.cs:
23061         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
23062         tree.
23063         
23064 2005-10-19  Jackson Harper  <jackson@ximian.com>
23066         * FolderBrowserDialog.cs: End editing our treeview so the window
23067         actually gets refreshed.
23069 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
23071         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
23072           Obsoleted handling of WM_ERASEBKGND, now always draws our background
23073           inside of WM_PAINT
23075 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
23077         * MenuAPI.cs: Returns after Hidding window
23078         * XplatUIX11.cs: Added TODO found while debugging menu issues
23080 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
23082         * XplatUIX11.cs: Do not re-map the whole window when it's size
23083           becomes non-zero unless it's supposed to be actually visible
23085 2005-10-18  Jackson Harper  <jackson@ximian.com>
23087         * TreeView.cs: We don't need to keep a count anymore.
23088         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
23089         use the Grow method.
23091 2005-10-18  Jackson Harper  <jackson@ximian.com>
23093         * TreeNodeCollection.cs: Insert is not supported on arrays, so
23094         implement it manually here.
23096 2005-10-18  Jackson Harper  <jackson@ximian.com>
23098         * ImageList.cs: Dont kill the list when the colour depth is
23099         changed, just change the colour depth of all the images.
23100         - Same goes for setting the image size. Just resize them all
23101         instead of killing the list softly.
23103 2005-10-18  Jackson Harper  <jackson@ximian.com>
23105         * Control.cs: Don't invalidate empty rectangles.
23107 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
23109         * ListViewItem.cs:
23110           - Adds checked item to the Checked/Item lists (where empty before)
23111           - Do not add items to the Selected lists if they are already present
23112         * ListView.cs:
23113           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
23114           - When deleting items make sure that we delete them for the Selected
23115           and Checked list also.
23117 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
23119         * Label.cs: Dispose objects no longer used
23120         * ThemeWin32Classic.cs: Dispose objects no longer used
23122 2005-10-18  Jackson Harper  <jackson@ximian.com>
23124         * TabControl.cs: Don't refresh the whole control when the tabs are
23125         scrolled, we just need to refresh the tab area.
23127 2005-10-17  Jackson Harper  <jackson@ximian.com>
23129         * XplatUIX11.cs: Compress code a little bit. Only calculate the
23130         after handle when we need it.
23132 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
23134         * Control.cs: When the parent size changes, recalculate anchor 
23135           positions. Partial fix for #76462
23137 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
23139         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
23140           drawn. Fixes #76462
23142 2005-10-17  Jackson Harper  <jackson@ximian.com>
23144         * MonthCalendar.cs: Don't create the numeric up down until our
23145         handle is created. Otherwise our handle is created in the
23146         constructor and we don't know if we are a WS_CHILD or WS_POPUP
23147         yet.
23149 2005-10-17  Jackson Harper  <jackson@ximian.com>
23151         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
23152         correctly.
23154 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
23155         * TreeNode.cs : small logical fix (was using local var instead of field)
23156         
23157 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
23159         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
23161 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
23163         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
23165 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
23167         * Control.cs: 
23168           - Re-implemented anchoring code. My first version was really broken.
23169             This fixes bug #76033. Unlike the previous implementation we will
23170             no longer have round errors since all numbers are calculated from
23171             scratch every time. Removed various anchor-related obsolete vars.
23172           - InitLayout no longer causes layout event firing and layout to be 
23173             performed
23175 2005-10-16  Jackson Harper  <jackson@ximian.com>
23177         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
23178         which was broken).
23180 2005-10-16  Jackson Harper  <jackson@ximian.com>
23182         * TabControl.cs: Remove debug code.
23184 2005-10-16  Jackson Harper  <jackson@ximian.com>
23186         * XEventQueue.cs: Increase the default queue size (very simple
23187         apps needed to grow the queue).
23188         * Hwnd.cs: No finalizer so we don't need to suppress
23189         finalization. Compute the invalid area manually so a new rectangle
23190         does not newto be created.
23191         * ScrollableControl.cs: Don't set any params (otherwise visibility
23192         isn't set correctly).
23193         * MdiChildContext.cs: New constructor takes the mdi parent so it
23194         doesn't have to be computed and avoids a crash on windows. Draw
23195         the window icon properly, and allow the text to be seen.
23196         * Form.cs: Use new MdiChildContext constructor. Make sure the
23197         child context isn't null in wndproc.
23198         * TabControl.cs: Don't set focus, this is muddling keyboard
23199         behavoir. Expand the tab rows when a window size increase will
23200         allow extra tabs to be seen. Don't allow tabs smaller than the
23201         width of a window to be scrolled out of view.
23202         * TreeNode.cs:
23203         * TreeView.cs: Use measure string to calculate a nodes width, the
23204         width is cached and only updated when the text or the font is
23205         changed. Don't check for expand/collapse clicks on the first level
23206         nodes if root lines are disabled.
23207         
23208 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
23210         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
23212 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
23214         * DataGridBoolColumn.cs: fixes warning
23216 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
23218         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
23219         to match more to match more precisely the MS Net behavior
23221 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
23223         * Hwnd.cs: Added field to track if window is mapped
23224         * XplatUIX11.cs: 
23225           - Unmap windows if they become 0-size, re-map when 
23226             they are >0 again; fixes #76035
23227           - Re-set our error handler after initializing X11Desktop
23228             to override any error handlers Gtk or whatever was called
23229             may have set.
23231 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
23233         * CheckedListBox.cs: Removed unused vars
23234         * ListView.cs: Fixed signatures
23235         * RichTextBox.cs: Removed unused vars
23236         * TextBoxBase.cs: Removed unused vars
23237         * XplatUIWin32.cs: Removed unused vars
23238         * XplatUIX11.cs: Removed unused vars
23239         * XplatUI.cs: Updated version and date to latest published
23241 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
23243         * Cursor.cs: Added private .ctor to work around a bug in
23244           resourceset (Thanks to Geoff Norton for the help on this)
23245         * SplitterEventArgs.cs: Made fields accessible so we don't
23246           waste boatloads of objects and can reuse the same one
23247           in Splitter
23248         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
23249           any captions and borders when generating screen coordinates
23250         * Splitter.cs: Reimplemented control, now fully complete, uses
23251           rubberband drawing, supports and obeys all properties, has
23252           proper cursors
23254 2005-10-13  Miguel de Icaza  <miguel@novell.com>
23256         * Form.cs (Form): Setup default values for autoscale and
23257         autoscale_base_size;  Make these instance variables, not static
23258         variables. 
23260         (OnLoad): on the first load, adjust the size of the form.
23262 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
23264         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
23265           width argument to DrawReversibleRectangle()
23266         * XplatUIWin32.cs, XplatUIX11.cs: 
23267           - Implemented width for DrawReversibleRectangle()
23268           - Added logic to DrawReversibleRectangle that recognizes a zero
23269             width or height and only draws a line in that situation
23270         
23271 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
23273         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
23274         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
23275         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
23276           method (it uses our FosterParent window to get a graphics context)
23278 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
23280         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
23281           and SetWindowBackground methods
23282         * Control.cs:
23283           - Setting proper ControlStyles
23284           - We no longer call XplatUI.SetWindowBackground and XplatUI.
23285             EraseWindowBackground, instead we draw the window background
23286             ourselves in PaintControlBackground. This behaviour is
23287             required to match MS, where, when OnPaintBackground is not
23288             called, the background is not drawn.
23289           - Removed unneeded Refresh() in set_Text
23290         * Hwnd.cs: Dropped the ErasePending support. No longer needed
23291         * XplatUIX11.cs:
23292           - Created DeriveStyles method to translate from CreateParams to
23293             FormBorderStyle and TitleStyle, also handles BorderStyle (which
23294             matches FormBorderStyle enum values)
23295           - Consolidated SetHwndStyles and CalculateWindowRect border/title
23296             style calculations into single DeriveStyles method
23297           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
23298             from redrawing the whole window on any resize or expose.
23299           - Fixed CreateWindow usage of SetWindowValuemask. Before not
23300             all styles were applied to our whole/client window appropriately
23301           - Removed EraseWindowBackground() and SetWindowBackground() methods
23302           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
23303             no longer clear/redraw the background through X
23304           - Removed handling of erase_pending bit, we have no use for it (or
23305             so it seems)
23306         * XplatUIOSX.cs:
23307           - Removed generation and handling of WM_ERASEBKGND message
23308           - Removed EraseWindowBackground() and SetWindowBackground() methods
23309           - Removed handling of hwnd.ErasePending flag
23310         * XplatUIWin32.cs:
23311           - Removed EraseWindowBackground() and SetWindowBackground() methods
23312           - We no longer call EraseWindowBackground on PaintEventStart, we 
23313             ignore the fErase flag, erasing is handled in Control in the
23314             background handler
23315         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
23316           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
23317           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
23318           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
23319           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
23320           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
23321           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
23323 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
23325         * PropertyGrids.cs: Get sub properties
23326         * PropertyGridView.cs: Fix drawing code
23328 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
23330         * ListBox.cs: Fixes 76383
23332 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
23334         * DataGridTextBoxColumn.cs: Sets location and size before attachment
23335         * ThemeWin32Classic.cs: Fixes border drawing and calculations
23336         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
23339 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
23341         * ComboBox.cs: Fixes border drawing
23343 2005-10-10  Miguel de Icaza  <miguel@novell.com>
23345         * MimeIcon.cs: Ignore errors if the file can not be read.
23347 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
23349         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
23350          - Fixed border calculations
23351          - Fixed horizontal scrolling in single column listboxes
23352          - Fixed drawing issues
23354 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
23356         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
23357           FormBorderStyle enum
23358         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
23359           code to determine FormBorderStyles from CreateParams
23360         * Form.cs:
23361           - Fixed bug where we'd set the wrong window styles if we were
23362             not creating an MDI window
23363           - Added call to XplatUI.SetBorderStyle when form borders are set
23364         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
23365         * Hwnd.cs:
23366           - Removed obsolete edge style
23367           - Switched from BorderStyle to FormBorderStyle
23368         
23369 2005-10-10  Jackson Harper  <jackson@ximian.com>
23371         * Form.cs: Use the property to get the window handle instead of
23372         accessing it directly. Prevents a null reference exception.
23374 2005-10-10  Jackson Harper  <jackson@ximian.com>
23376         * TreeView.cs: Don't adjust the rect given to DrawString now that
23377         our libgdiplus draws correctly.
23379 2005-10-08  Jackson Harper  <jackson@ximian.com>
23381         * TreeView.cs: Don't try to find the clicked on node if there are
23382         no nodes in the tree.
23384 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
23386         * RichTextBox.cs:
23388           restore
23390 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
23392         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
23393           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
23394           ErrorProvider.cs:
23395           Use ResPool for brushes and dispose System.Drawing objects that
23396           are not used anymore.
23398 2005-10-07  Jackson Harper  <jackson@ximian.com>
23400         * MdiChildContext.cs: Use the new borders instead of drawing them
23401         ourselves.
23403 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
23405         * Calling UpdateBounds after changing the window's BorderStyle 
23406         since the style can change the ClientSize
23408 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
23410         * Control.cs: Made PaintControlBackground virtual
23411         * Panel.cs: Overriding PaintControlBackground instead of using paint
23412           event; paint event method was interfering with 'real' users of the
23413           event.
23415 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
23417         * ThemeWin32Classic.cs: remove border drawing since it is handled
23418         by the base control class now and was causing double border drawing.
23420 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
23422         * Panel.cs: Redraw our background on paint. Not a pretty solution,
23423           but it does seem to match MS behaviour. This fixes bug #75324
23425 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
23427         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
23428           somewhat hackish looking
23430 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
23432         * TextBoxBase.cs:
23433           - We now accept Enter even if AcceptEnter is false, if the containing
23434             form does not have an AcceptButton configured (fixes bug #76355)
23435           - Calculations are now fixed to no longer use Width/Height, but
23436             ClientSize.Width/Height, since we now support borders (this was
23437             a result of fixing borders and therefore bug #76166)
23438           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
23439             true (fixes bug #76354)
23440         
23441 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
23443         * Control.cs: 
23444           - Defaulting BorderStyle and setting it in XplatUI when our window 
23445             is created
23446           - Added enum check to InternalBorderStyle setter
23447         * XplatUIX11.cs: 
23448           - Added drawing of window borders
23449           - Now properly calculates WM decorations offset for toplevel 
23450             windows (fixes bug #74763)
23451         * XplatUIWin32.cs: 
23452           - Implemented BorderStyles for windows (we're letting win32 draw 
23453             the border for us)
23454           - Fixed the signature for SetWindowLong
23455         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
23456           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
23457           setting borders
23458         * UpDownBase.cs: Remove drawing of borders, this is handled by
23459           the driver, outside the client area
23460         * ListView.cs: Removed bogus border calculations. The control should
23461           be oblivious to borders, since those are not part of the client
23462           area. 
23463         * X11DesktopColors.cs: Commented out (currently) unneeded variables
23464         * ThemeWin32Classic.cs: Removed border calculations from ListView 
23465           drawing code
23467 2005-10-06  Jackson Harper  <jackson@ximian.com>
23469         * MdiChildContext.cs: Clear out the old virtual position remove
23470         all the unneeded calls to CreateGraphics.
23472 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
23474         * TextControl.cs: Use proper color for highlighted text; fixes #76350
23476 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
23478         * Form.cs: 
23479           - Added loading and setting of our new default icon
23480           - Only set icon if window is already created
23482 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
23484         * Label.cs:
23485           - Do not explicitly set the foreground and background colors, to
23486             allow inheriting from parents (fixes #76302)
23487           - Use Control's InternalBorderStyle property to deal with borders
23489 2005-10-06  Jackson Harper  <jackson@ximian.com>
23491         * MdiChildContext.cs: Use the new xplatui function to draw a
23492         reversible rect.
23494 2005-10-06  Jackson Harper  <jackson@ximian.com>
23496         * Form.cs: Add the parent before creating the child context cause
23497         we need the parent when setting up the child.
23499 2005-10-06  Jackson Harper  <jackson@ximian.com>
23501         * FolderBrowserDialog.cs: redo the tree population code so a
23502         second thread isn't used. Should be a lot faster and more stable
23503         now.
23505 2005-10-05  Jackson Harper  <jackson@ximian.com>
23507         * TreeView.cs: There are no expand/collapse boxes if the node has
23508         no children.
23510 2005-10-05  Jackson Harper  <jackson@ximian.com>
23512         * X11DesktopColors.cs: Get menu colours for the gtk theme.
23514 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
23516         * FileDialog.cs: Fix InitialDirectory
23518 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
23520         * ComboBox.cs:
23521                 - Fixes changing between styles
23522                 - Fixes simple mode
23523                 - Fixes last item crashing when navigating with keyboard
23525 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
23527         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
23529 2005-10-05  Jackson Harper  <jackson@ximian.com>
23531         * TreeView.cs: If updating the root node do a full refresh.
23532         * TreeNode.cs: The root node should be expanded by default. Also
23533         added a utility prop to tell if we are the root node.
23534         * TreeNodeCollection.cs: Only refresh if the node we are being
23535         added to is expanded. Also added a comment on a potential
23536         optimization.
23537         
23538 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
23540         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
23541           in dispose method. Fixes #76330
23543 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
23545         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
23547                 - Implements vertical and horizontal scrolling using XplatUI
23548                 - Fixes keyboard navagation
23549                 - Fixes EnsureVisible
23550                 - Drawing fixes
23551                 - Handles and draws focus properly
23554 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
23556         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
23557           Create handle. NET_2_0: Destroy handle when value is null.
23559 2005-10-03  Jackson Harper  <jackson@ximian.com>
23561         * ScrollBar.cs: My last scrollbar patch was broken. This is a
23562         revert and a new patch to prevent the thumb from refreshing so
23563         much.
23565 2005-10-02  Jackson Harper  <jackson@ximian.com>
23567         * ScrollBar.cs: Don't update position if it hasn't actually
23568         changed. This occurs when you hold down the increment/decrement
23569         buttons and the thumb gets to the max/min.
23571 2005-10-01  Jackson Harper  <jackson@ximian.com>
23573         * Form.cs:
23574         * MdiChildContext.cs:
23575         * MdiClient.cs: Implement ActiveMdiChild in Form.
23577 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
23579         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
23581 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
23583         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
23584           be found
23586 2005-09-30  Jackson Harper  <jackson@ximian.com>
23588         * ListBox.cs: Don't do a full refresh unless some data has
23589         actually changed.
23591 2005-09-30  Jackson Harper  <jackson@ximian.com>
23593         * TreeView.cs: Make sure that the checkboxes size is factored in
23594         even when not visible.
23596 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
23598         * FileDialog.cs: Fix Jordi's build break
23600 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
23602         * FileDialog.cs: 
23603                 - Use standard the Windows colours for the combobox as espected
23604                 - Dispose objects that use resouces when no longer need them
23606 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
23608         * X11DesktopColors.cs: Initial incomplete implementation
23609         * XplatUIX11.cs: Added call to initialize X11DesktopColors
23611 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
23613         * Theme.cs: 
23614           - Switched Theme color names to match the names defined in 
23615             System.Drawing.KnownColors. Life's hard enough, no need to make 
23616             it harder.
23617           - Added setters to all theme color properties so themes can set
23618             their color schemes. The setters also propagate the color changes
23619             to System.Drawing.KnownColors via reflection
23620         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
23621           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
23622           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
23623           use the new, more logical theme color names
23624         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
23625           post-NT colors
23626         * ThemeWin32Classic.cs:
23627           - Removed code to set the old classic Windows colors. Instead it
23628             now relies on the colors returned by System.Drawing.KnownColors
23629             which will be either modern static colors (Unix) or colors
23630             read from the user's configuration (Win32)
23631           - Updated to use the new, more logical theme color names
23632           - Switched DataGrid drawing code to use only Theme colors instead of
23633             a mix of System.Drawing.KnownColors and Theme colors
23634           - DrawFrameControl(): Removed code that fills the button area, the
23635             fill would overwrite any previous fill done by a control. This
23636             fixes bug #75338 
23637           - Added DrawReversibleRectangle() stub
23638         * ScrollableControl.cs: Set visible state to false when scrollbars
23639           are removed (pdn fix)
23640         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
23641           DrawReversibleRectangle() method to allow drawing primitive 
23642           'rubber bands'
23643         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
23645 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
23647         * ImageList.cs: Add(Icon): Create handle.
23649 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
23651         * ListView.cs:
23652         * ThemeWin32Classic.cs:
23653                 - Fixes detail mode
23654                 - Sets clippings
23655                 - Issues with drawing
23657 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
23659         * ImageList.cs: Moved RecreateHandle back to ImageList as event
23660           source has to be the ImageList.
23662 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
23664         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
23666 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
23668         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
23670 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
23672         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
23674 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
23675         * GridItem.cs: Fixed TODOs
23676         * GridItemCollection.cs: Added ICollection interface
23678 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
23680         * ImageList.cs: Resize icons when needed.
23682 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
23684         * ListViewItem.cs
23685                 - Fixes GetBounds and returns on screen rects
23686         * ListView.cs:
23687                 - Fixes vertical and horzintal scrolling of items
23688         * ThemeWin32Classic.cs:
23689                 - Fixes drawing
23690                 
23691 2005-09-29  Raja R Harinath  <harinath@gmail.com>
23693         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
23695 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
23697         * ImageList.cs: Added comments about handle creation. Moved Handle,
23698           HandleCreated and OnRecreateHandle implementations to ImageCollection.
23699           Handle is created in Add methods.
23701 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
23702          
23703         * DataGridDrawingLogic.cs: 
23704                 - Takes rows into account on Colum calculations
23705                 - Returns the column when clickig
23706         * DataGrid.cs:
23707                 - Fixes default HitTestInfo values
23708                 - Fixes HitTestInfo.ToString
23709                 - Fixes ResetBackColor          
23710         
23711 2005-09-28  Jackson Harper  <jackson@ximian.com>
23713         * MdiChildContext.cs: Obey rules for fixed sized windows (no
23714         sizing or cursor changes). Also added some temp code to draw the
23715         titlebars text (Makes dev a little easier).
23717 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
23719         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
23721 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
23722          
23723         * ListBox.cs: Fixes bug 76253
23725 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
23727         * ImageList.cs: Added comments about the current implementation. Added
23728           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
23729           Format32bppArgb to preserve transparency and can use Graphics.FromImage
23730           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
23731           with Bitmap.LockBits for better performance. Revised the whole file to
23732           match MS.NET behaviour and provide better performance. Non-public
23733           interface members are calling public members even when they throw
23734           NotSupportedException for better maintainability. Moved ColorDepth,
23735           ImageSize, ImageStream and TransparentColor implementations to
23736           ImageCollection for better performance as these properties are not used
23737           by ImageList.
23738         * ImageListStreamer.cs: Added a new internal constructor that takes an
23739           ImageList.ImageCollection and serializes Images based on
23740           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
23741           match ImageList property name.
23743 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
23745         * ListBox.cs: Fixes IndexFromPoint for last item
23747 2005-09-27  Jackson Harper  <jackson@ximian.com>
23749         * Form.cs: Set the position of new mdi children correctly.
23751 2005-09-27  Jackson Harper  <jackson@ximian.com>
23753         * MdiClient.cs: New mdi children need to be added to the back of
23754         the controls collection so the zorder is set correctly. Also add a
23755         count of all the child windows that have been created.
23757 2005-09-27  Jackson Harper  <jackson@ximian.com>
23759         * Form.cs (CreateParams): Setup MDI forms correctly.
23761 2005-09-27  Jackson Harper  <jackson@ximian.com>
23763         * MdiChildContext.cs:
23764         * MonthCalendar.cs:
23765         * UpDownBase.cs:
23766         * ListBox.cs:
23767         * ListView.cs:
23768         * TextBoxBase.cs:
23769         * TreeView.cs:
23770         * ScrollableControl.cs:
23771         * ComboBox.cs: Add implicit controls using the new implict control
23772         functionality in ControlCollection. Also try to block multiple
23773         control add in a suspend/resume layout to save some cycles.
23774         
23775 2005-09-27  Jackson Harper  <jackson@ximian.com>
23777         * Control.cs: Add functionality to the controls collection to add
23778         'implicit controls' these are controls that are created by the
23779         containing control but should not be exposed to the user. Such as
23780         scrollbars in the treeview.
23781         * Form.cs: The list var of the ControlsCollection is no longer
23782         available because of the potential of implicit controls getting
23783         ignored by someone accessing the list directly.
23785 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
23787         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
23788           loose it's parent. (Fixed bug introduced in r49103 when we added
23789           setting the child parent to null on Remove)
23791 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
23793         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
23794         * Splitter.cs: Added missing attributes for BorderStyle property.
23795         * TextBoxBase.cs: Marked Calculate* methods internal.
23796         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
23797         MS.NET.
23799 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
23800          
23801         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
23803 2005-09-25  Jackson Harper  <jackson@ximian.com>
23805         * TreeView.cs: Update the node bounds correctly regardless of
23806         whether the node is visible.
23808 2005-09-25  Jackson Harper  <jackson@ximian.com>
23810         * ImageList.cs: Don't dispose the image after it is added to the
23811         image list. Only reformat images that need to be resized.
23813 2005-09-25  Jackson Harper  <jackson@ximian.com>
23815         * ImageList.cs: Don't set the format when changing the image.
23817 2005-09-25  Jackson Harper  <jackson@ximian.com>
23819         * TreeView.cs: We can't just assume the node has a font. Use the
23820         treeviews font if no node font is available.
23822 2005-09-25  Jackson Harper  <jackson@ximian.com>
23824         * TreeView.cs: Allow the scrollbars to be reset with negative
23825         values.
23826         - Don't add scrollbars to negative sized windows.
23828 2005-09-23  Jackson Harper  <jackson@ximian.com>
23830         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
23831         old Mono.Posix. Also remove some stray code that shouldn't have
23832         been committed.
23834 2005-09-23  Jackson Harper  <jackson@ximian.com>
23836         * TreeView.cs: Attempt at proper sizing of the horizontal
23837         scrollbar. Also don't resize the scrollbars unless they are
23838         visible.
23840 2005-09-23  Jackson Harper  <jackson@ximian.com>
23842         * TreeView.cs: We don't need to expand the invalid area when the
23843         selection changes, as this is all drawn in the node's bounding
23844         box. The area needs to be expanded (previous typo was contracting
23845         it) when the focus rect moves.
23847 2005-09-23  Jackson Harper  <jackson@ximian.com>
23849         * TreeView.cs: Display the selection box under the correct
23850         circumstances. We were rendering white text with no selection box
23851         before.
23853 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
23855         * TextControl.cs(Split): Now updates selection start/end if it points 
23856           into a line that's being split. Fixes a FIXME and bug #75258
23858 2005-09-23  Jackson Harper  <jackson@ximian.com>
23860         * Binding.cs:
23861         * ListControl.cs: Don't use the path when retrieving binding
23862         managers from the binding context. My bat sense tells me that the
23863         path is only used on insertion.
23865 2005-09-22  Jackson Harper  <jackson@ximian.com>
23867         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
23869 2005-09-22  Jackson Harper  <jackson@ximian.com>
23871         * Splitter.cs: There are special cursors used for splitting.
23872         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
23874 2005-09-22  Jackson Harper  <jackson@ximian.com>
23876         * Splitter.cs: Change the cursor appropriately when the splitter
23877         is moused over, so the user actually knows there is a splitter
23878         there.
23880 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
23882        * Label.cs : Fix ToString method to give same output as MS.NET
23884 2005-09-22  Jackson Harper  <jackson@ximian.com>
23886         * TreeView.cs: Create the scrollbars when the handle is created
23887         and add them right away, just make them invisble. Also account for
23888         the window being shrunk vertically to the point that the vert
23889         scrollbar needs to be added.
23890         - Remove some 0.5 adjustments to get around anti aliasing issues.
23891         
23892 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
23893          
23894         * MainMenu.cs: Fixes default value
23895         * MenuItem.cs: Fixes default value
23897 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
23899         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
23901 2005-09-21  Jackson Harper  <jackson@ximian.com>
23903         * Control.cs: Don't try to set the border style on the window if
23904         it hasn't been created. When the window is created the border
23905         style will be used.
23907 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
23909         * Control.cs (Update): Don't call XplatUI if we don't have a
23910           window handle yet
23912 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
23914         * ContainerControl.cs: Instead of throwing an exception, print
23915           a one-time warning about Validate not being implemented
23916         * XplatUIWin32.cs: Removed debug output
23918 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
23920         * Control.cs: Only set XplatUI background if we expect the windowing
23921           system to handle the background. This stops controls that draw their
23922           own background from flickering
23924         * XplatUIX11.cs: Support custom visuals and colormaps for window 
23925           creation. This allows, amongst other things, using MWF X11 windows 
23926           with OpenGL.
23928 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
23930         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
23931           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
23932           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
23933           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
23934           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
23935           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
23936           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
23937           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
23938           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
23939           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
23940           GridColumnStylesCollection.cs, 
23941           IDataGridColumnStyleEditingNotificationService.cs,
23942           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
23943           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
23944           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
23945           TreeNodeCollection.cs, AmbientProperties.cs, 
23946           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
23947           DataObject.cs, ErrorProvider.cs, Splitter.cs,
23948           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
23949           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
23950           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
23951           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
23952           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
23953           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
23954           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
23955           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
23956           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
23957           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
23958           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
23959           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
23960           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
23961           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
23962           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
23963           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
23964           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
23965           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
23966           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
23967           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
23968           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
23969           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
23970           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
23971           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
23972           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
23973           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
23974           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
23975           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
23976           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
23977           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
23978           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
23979           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
23980           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
23981           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
23982           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
23984 2005-09-21  Jackson Harper  <jackson@ximian.com>
23986         * TreeNode.cs: Call Before/After Expand not Collapse when
23987         expanding.
23989 2005-09-20  Jackson Harper  <jackson@ximian.com>
23990         
23991         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
23993 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
23994          
23995         * ListViewItem.cs:
23996                 - Fixes bug 76120
23997                 - Fixes proper storing of subitems
23998                 - Fixes not updated items
24000 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
24002         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
24003           things if our window handle isn't created yet. Also disabled 
24004           debug for TextBoxBase
24006 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
24008         * MenuAPI.cs: Remove filtering of events to allow menu usage
24010 2005-09-20  Miguel de Icaza  <miguel@novell.com>
24012         * Cursor.cs: Allow null to be passed to Cursor.Current.
24014 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
24016         * ThemeWin32Classic.cs:
24017           - Change some private methods/fields to protected virtual so that 
24018             they can be accessed and overriden in derived classes
24019           - First refactoring of some methods. Derived themes now don't 
24020             need to duplicate the complete code from ThemeWin32Classic
24021         * ThemeNice.cs:
24022           - Added nice StatusBar
24023           - Derive from ThemeWin32Classic and not Theme
24024           - Removed duplicate ThemeWin32Classic code
24026 2005-09-20  Miguel de Icaza  <miguel@novell.com>
24028         * Control.cs (ControlCollection.Add): If the value null is passed
24029         the control is ignored. 
24031         Optimize this loop.
24033 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
24035         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
24036           PostQuitMessage state.
24037         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
24039 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
24041         * Application.cs: Our constructor will never get called, move 
24042           initialization to fields; fixes bug #75933
24044 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
24046         * FileDialog.cs :
24047                 - Allow files to be selected properly using file name
24048                 combo box.
24049                 - Add ability to change diretory (absolute / relative)
24050                 using file name combo box.
24052 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
24053          
24054         * ListBox.cs: 
24055                 - Fixes Multicolumn listboxes item wrong calculations
24056                 - Allows to click when only one item is in the listbox
24057                 - Fixes crash when no items using keyboard navigation
24059 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
24061         * ComboBox.cs: Reverted almost everything from the latest patch which
24062           broke ComboBox
24064 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
24065         
24066         * ToolTip.cs:
24067                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
24068         * ComboBox.cs:
24069                 - When DropDownStyle is Simple, it does not show scrollbar 
24070                 to the last item of the list.
24071                 - When DropDownStyle is Simple, it crashed when the list was 
24072                 scrolled down with the down cursor key.
24073                 - Fixed a bug that when DropDownStyle is DropDownList, the 
24074                 selected item was not shown.
24075                 - The position of the selected item was not preserved when 
24076                 the next dropdown happened.
24077         * ThemeWin32Classic.cs:
24078                 - Items were wrapped at the right end.
24079         * CheckedListBox.cs:
24080                 - Fixed Add method
24081         * ListBox.cs:
24082                 - Items should be fully shown.
24083                 - When resizing and vertical scrollbar disappeared, the item 
24084                 of index 0 should be on the top of the list.
24085                 - GetItemRectangle should consider the size of ver. scrollbar
24086         * StatusBar.cs:
24087                 - SizingGrip area should not be allocated when it is not 
24088                 displayed.
24089                 - Now it reflects MinWidth of the containing panel and 
24090                 fixed a crash that happens when its width becomes so small.
24092 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
24094         * CheckedListBox.cs: Fixes bug 76028
24095         * ListBox.cs: Fixes bug 76028
24097 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
24099         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
24100         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
24102 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
24104         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
24106 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
24108         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
24110 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
24112         * IRootGridEntry.cs: Added
24113         * PropertyGridCommands.cs: Added
24114         * PropertiesTab.cs: Added missing methods and property
24115         * PropertyGridView.cs: Made class internal
24116         * PropertyGridTextBox.cs: Made class internal
24118 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
24120         * MimeIcon.cs: Try to check some other environment variables
24121           if "DESKTOP_SESSION" returns "default"
24123 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
24125         * ThemeNice.cs: Corrected background colors (e.g. menus)
24126         * ColorDialog.cs: Use correct background colors for controls
24128 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
24130         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
24132 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
24134         * RichTextBox.cs: Added initial implementation
24135         * lang.cs: Removed. Was accidentally checked in long time ago
24136         * TODO: Removed. Contents were obsolete
24138 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
24139                                                                                 
24140         * PropertiesTab.cs : Added
24142 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
24143                                                                                 
24144         * PropertyGrid.cs : Update
24145         * PropertyGridView.cs : Update
24146         * System.Windows.Forms.resx : Added images and strings
24148 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
24150         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
24152 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
24154         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
24155           a busy loop right after the Ungrab the X11 display is otherwise 
24156           blocked
24158 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
24160         * ThemeWin32Classic.cs: Optimise the use of clipping
24162 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
24164         * DataGrid.cs: fixes recursion bug
24166 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
24168         * ThemeNice.cs: 
24169           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
24170           - Cleanup
24172 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
24174         * ThemeNice.cs: Draw nice ProgressBars
24176 2005-09-01  Miguel de Icaza  <miguel@novell.com>
24178         * VScrollBar.cs: Another buglet found by Aaron's tool. 
24180         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
24181         bug finder.
24183 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
24185         * ThemeNice.cs:
24186           - Added nicer menu drawing
24187           - Updated DrawTab
24188           - some refactoring
24190 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
24192         * CreateParams.cs (ToString): Made output match MS
24193         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
24194             handle is already created (to avoid forcing window creation)
24195         * XplatUIX11.cs: Set window text to caption after creating window,
24196           in case Text was set before window was created
24197         * Form.cs: Use this.Text instead of a static string as caption
24199 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
24201         * NotifyIcon.cs: Don't set the window to visible; this screws
24202           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
24203           OnPaint without a bitmap)
24204         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
24205           happen very often anyway; we could add the check to the WM_PAINT 
24206           event generation code
24208 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
24210         * NotifyIcon.cs: Fill the icon area with a background color, to 
24211           avoid 'residue' when transparent icons are drawn
24212         * XplatUIX11.cs:
24213           - Handle whole_window == client_window when destroying windows
24214           - SystrayAdd(): Set client_window to whole_window value to
24215             get mouse and other events passed to NotifyIcon
24217 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
24219         * Form.cs: Set proper default for Opacity property
24220         * NotifyIcon.cs:
24221           - ShowSystray(): Don't bother creating telling the OS
24222             about the systray item if no icon is provided
24223           - Now handles WM_NCPAINT message to deal with whole/client window
24224             split
24225           - Create window as visible to not get caught by Expose optimization
24226         * Hwnd.cs: Removed debug message
24227         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
24228           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
24229             PaintEventStart/End to use new client argument
24230         * TextBoxBase.cs:
24231           - Commented out debug messages
24232           - Switched PaintEventStart/End to use new client argument
24233         * XplatUI.cs: Added client window bool to PaintEventStart()/
24234           PaintEventEnd() calls, to support drawing in non-client areas
24235         * XplatUIDriver.cs: 
24236           - Added client window bool to PaintEventStart()/PaintEventEnd() 
24237             calls, to support drawing in non-client areas
24238           - Added conditional compile to allow using MWF BeginInvoke 
24239             on MS runtime
24240         * XplatUIX11.cs:
24241           - Added some conditional debug output
24242           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
24243             whole/client window split
24244           - Implemented handling of client argument to PaintEventStart()/End()
24245         * Control.cs:
24246           - Throw exception if BeginInvoke() is called and the window handle
24247             or one of the window's parent handles is not created
24248           - Added conditional compile to allow using MWF BeginInvoke on
24249             MS runtime
24250           - get_Parent(): Only sets parent if handle is created. This avoids
24251             forcing window handle creation when parent is set.
24252           - Now fires Layout and Parent changed events in proper order
24253           - Switched to use Handle instead of window.Handle for Z-Order setting,
24254             the get_Parent() patch above causes us to possibly get null for 'window'
24255           - Implemented handling of client argument to PaintEventStart()/End()
24256           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
24257             default handling)
24258           - Now sends a Refresh() to all child windows when Refresh() is called
24260 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
24262         * Form.cs: Added (non-functional) Opacity property
24263         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
24265 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
24266         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
24267           use export MONO_THEME=nice to activate it.
24268           Currently supported controls:
24269           - Button
24270           - ComboBox
24271           - ScrollBar
24272           - TabControl (TabAlignment.Top only, other will follow)
24273         * ThemeEngine.cs: Add theme nice
24274         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
24275           if enabled
24277 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
24279         * Splitter.cs: Resize docked control and its neighbor.
24281 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
24282         -- Making Windows with Menus layout correctly --
24283         * Form.cs : The first leg of the fix
24284                 Menu setter - adjust Client Size as needed to make space for the menu
24285                 SetClientSizeCore - doesn't call base version to be able to pass the 
24286                         menu handle to XplatUI.CalculateWindowRect
24287         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
24288         * XplatUIX11.cs: The critical second leg of the fix
24289                 GetWindowPos needs to use a recalculated client_rect
24290                 so that resizing the window doesn't break layout of child controls. 
24291                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
24292                 Lots of \t\n killed
24294 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
24296         * Label.cs: Now properly recalculates width and height on Font and Text
24297           changes if AutoSize is set
24299 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
24300         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
24302 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
24304         * ImageList.cs: Makes ToString method compatible with MS
24306 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
24308         * MenuAPI.cs: fixes bug 75716
24310 2005-08-11 Umadevi S <sumadevi@novell.com>
24311         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
24313 2005-08-11 Umadevi S <sumadevi@novell.com>
24314         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
24316 2005-08-10  Umadevi S <sumadevi@novell.com>
24317         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
24319 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
24321         * Menu.cs: fixes bug 75700
24322         * MenuAPI.cs: fixes navigation issues
24324 2005-08-09  Umadevi S <sumadevi@novell.com>
24325         * CheckedListBox.cs - simple fix for GetItemChecked.
24327 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
24329         * ComboBox.cs: Serveral fixes
24330         * ListBox.cs: Serveral fixes
24332 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
24334         * ComboBox.cs: Fixes FindString methods and GetItemHeight
24335         * ListBox.cs: Fixes FindString methods
24337 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
24339         * DataGrid.cs: fixes bugs exposed by new tests
24341 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
24343         * Mime.cs: Compile Mono assembly references only if compiling
24344           with Mono (Allows to build with VS.Net again)
24346 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
24348         * Control.cs (PaintControlBackground): Draw background image
24349         corrrectly.
24350         (CheckForIllegalCrossThreadCalls): Stubbed.
24351         
24352         * Form.cs (OnCreateControl): Center when should be centered.
24353         
24354         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
24356 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
24358         * Binding.cs: Binding to properties should be case unsensitive
24360 2005-07-18 vlindos@nucleusys.com
24362         * DataGrid.cs: fixes setmember order
24364 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
24366         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
24367         * FileDialog.cs: FileDialog is now resizable and uses the new
24368           MimeIconEngine
24370 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
24372         * DataGridTextBoxColumn.cs: default value
24373         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
24374         * GridTableStylesCollection.cs: fixes checking MappingName
24375         * DataGridDrawingLogic.cs: fixes drawing logic issues
24376         * DataSourceHelper.cs: rewritten to make compatible with more data sources
24377         * DataGrid.cs: fixes    
24379 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
24381         * MimeGenerated.cs: Use case sensitive comparer for
24382           NameValueCollections
24384 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
24386         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
24387         * ThemeWin32Classic.cs: bug fixes, code refactoring
24388         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
24389         * DataGrid.cs: bug fixes, code refactoring
24390         * DataGridTextBox.cs: bug fixes, code refactoring
24391         * DataGridColumnStyle.cs:  bug fixes, code refactoring
24392         * Theme.cs:  bug fixes, code refactoring
24394 2005-07-01  Peter Bartok  <pbartok@novell.com> 
24396         * TextControl.cs: Quick fix for the reported crash on ColorDialog
24397           and other text box usage
24399 2005-07-01  Jackson Harper  <jackson@ximian.com>
24401         * TabControl.cs: Make sure the bottom of the tab covers the pages
24402         border.
24404 2005-06-30  Peter Bartok  <pbartok@novell.com> 
24406         * Form.cs (ShowDialog): Assign owner of the dialog
24407         * TextBoxBase.cs: Always refresh caret size when deleting, caret
24408           might have been moved to a tag with different height
24410 2005-06-30  Jackson Harper  <jackson@ximian.com>
24412         * Form.cs: Don't create an infinite loop when setting focus
24413         * MenuItem.cs: Don't dirty the parents if we don't have any
24415 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
24417         * LibSupport.cs: Rename
24419 2005-06-29  Peter Bartok  <pbartok@novell.com>
24421         * TextBoxBase.cs: Re-align caret after deleting a character
24422         * TextControl.cs:
24423           - DeleteChars(): Ensure that tag covers the provided position
24424           - StreamLine(): Drop reference for dropped tag
24426 2005-06-29  Peter Bartok  <pbartok@novell.com> 
24428         * TextControl.cs: 
24429           - Selections now work properly, anchoring at the initial location
24430             and properly extending in either direction (SetSelectionToCaret(),
24431             SetSelectionStart() and SetSelectionEnd())
24432           - No longer redraws the whole control on selection change, now
24433             calculates delta between previous and new selection and only
24434             invalidates/redraws that area
24435           - Fixed FindPos() math off-by-one errors
24436           - Changed DeleteChars() to verify the provided tag covers the
24437             provided position, selections may have a tag that doesn't cover
24438             the position if the selection is at a tag border
24439           - Fixed off-by-one errors in DeleteChars()
24440           - Added missing streamlining check in DeleteChars() to remove
24441             zero-length tags
24442           - Implemented Invalidate() method, now properly calculates exposures
24443             between two given lines/positions
24444           - Implemented SetSelection()
24445           - Obsoleted and removed FixupSelection()
24446           - Improved RecalculateDocument() logic, removing code duplication
24448 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24450         * LibSupport.cs: changes to match different input/output arguments.
24452 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24454         * LibSupport.cs: added libsupport.so init routine.
24456 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
24457         
24458         * ControlBindingsCollection.cs
24459                 - Throws an exception on null datasource when adding
24460                 - Checks for duplicated bindings when adding
24462 2005-06-28  Jackson Harper  <jackson@ximian.com>
24464         * TreeView.cs (OnKeyDown): Support left and right properly
24465         (navigates as well as expanding and collapsing.
24466         - Add support for Multiply, this expands all the selected nodes
24467         children.
24468         - Fix some tabbing.
24470 2005-06-28  Jackson Harper  <jackson@ximian.com>
24472         * TreeView.cs: Implement keyboard navigation, currently supports,
24473         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
24474         support for toggling checkboxes with the space bar.
24476 2005-06-28  Jackson Harper  <jackson@ximian.com>
24478         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
24479         tree.
24481 2005-06-28  Jackson Harper  <jackson@ximian.com>
24483         * TreeView.cs: Add missing event.
24485 2005-06-27  Peter Bartok  <pbartok@novell.com> 
24487         * TextControl.cs:
24488           - Made line ending size configurable (now allows for counting 
24489             lineendings as \n or \r\n)
24490           - Added margin to viewport to keep caret visible on right side
24491           - Fixed translation routines for line/pos to documentpos to consider
24492             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
24493           - Fixed some line-endings to be unix style
24494           - Fixed Document.FormatText to perform it's calculations 1-based
24495           - Added descriptions for a few methods that might otherwise get 
24496             used wrong
24497           - Added NOTE section with some basic conventions to remember at 
24498             the top of the file
24499           - Major fixup for RichTextBox selection drawing:
24500             * Fixed crashes when multiple tags on a single line were selected
24501             * fixed selection box drawing not overlaying text
24502             * fixed bogus offset calculation for tags not starting at index 1
24503             * Switched behaviour from using multiple Substrings of a 
24504               StringBuilder.ToString() to using multiple 
24505               StringBuilder.ToString(start, length) statements, hoping this is
24506               faster (kept original version commented out in the code, in case
24507               original version was faster)
24508         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
24509           alignment != Left
24510         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
24511           call it as well
24513 2005-06-27  Jackson Harper  <jackson@ximian.com>
24515         * TabControl.cs: Move to the left and right with the arrow
24516         keys. These keys don't cycle beyond first and last like
24517         tab. Refresh all the tabs when scrolling them to the left or
24518         right.
24520 2005-06-27  Jackson Harper  <jackson@ximian.com>
24522         * TabControl.cs:
24523           - ToString: Added method
24524           - CreateParams: Remove TODO and comment
24525           - OnKeyDown: Cycle through bounds properly.
24526           - SelectedIndex: Scroll to the right or left if we need to
24527           display the newly selected tab.
24529 2005-06-23  Jackson Harper  <jackson@ximian.com>
24531         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
24532         set.
24534 2005-06-23  Jackson Harper  <jackson@ximian.com>
24536         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
24537         CTRL-SHIFT-TAB, and HOME, END are there any others?
24539 2005-06-23  Jackson Harper  <jackson@ximian.com>
24541         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
24543 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
24544         
24545         * DataGridTextBoxColumn.cs: fixes and enhancements
24546         * ThemeWin32Classic.cs: fixes and enhancements
24547         * DataGridBoolColumn.cs:  fixes and enhancements
24548         * DataGridDrawingLogic.cs:  fixes and enhancements
24549         * CurrencyManager.cs: fixes and enhancements
24550         * DataGrid.cs: fixes and enhancements
24551         * DataGridColumnStyle.cs:  fixes and enhancements
24553 2005-06-22  Jackson Harper  <jackson@ximian.com>
24555         * TabControl.cs: Add some missing methods that just call into the
24556         base. Make the TabPageCollection's IList interface behave in the
24557         same manner as the MS implementation.
24559 2005-06-22  Peter Bartok  <pbartok@novell.com> 
24561         * TextControl.cs: Added sanity check
24562         * TextBoxBase.cs: 
24563           - Fixed wrapping behaviour, don't set wrap on single line controls
24564             (this fixes the breakage of colordialog introduced in an earlier
24565              checkin)
24566           - Added rudimentary support for autoscrolling right-aligned controls
24567             (still needs fixing, also, center alignment scroll is missing)
24569 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
24570         
24571         * ScrollBar.cs: Fixes thumbpos on Maximum values
24573 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
24574         
24575         * PropertyGridView.cs: Pass context information to UITypeEditors 
24577 2005-06-21  Peter Bartok  <pbartok@novell.com> 
24579         * TextBoxBase.cs:
24580           - Now calling PositionCaret with absolute space coordinates
24581           - Enabled vertical scrolling
24582           - Better tracking of scrollbar changes, tied into WidthChange
24583             event
24584           - Improved cursor tracking
24585           - Removed debug output
24586         * TextControl.cs:
24587           - PositionCaret coordinates are now works in absolute space, not 
24588             the canvas
24589           - Improved tracking of document size
24590           - Added events for width and height changes
24592 2005-06-21  Peter Bartok  <pbartok@novell.com>
24594         * Form.cs: Set focus to active control when form is activated
24595         * TextControl.cs: 
24596           - Added word-wrap functionality to RecalculateLine() 
24597           - Added some short function descriptions for VS.Net to aid in
24598             writing dependent controls
24599           - Added Caret property, returning the current coords of the caret
24600           - Added ViewPortWidth and ViewPortHeight properties
24601           - Added Wrap property
24602           - Added CaretMoved event
24603           - Removed some old debug code
24604           - Split() can now create soft splits
24605           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
24606           - Added method to format existing text
24607           - Fixed size/alignment calculations to use viewport
24608           - RecalculateDocument now can handle changing line-numbers while
24609             calculating lines
24611         * TextBox.cs:
24612           - Added some wrap logic, we don't wrap if alignment is not left
24613           - Added casts for scrollbar var, base class switched types to
24614             also support RichTextBoxA
24615           - Implemented handling of scrollbar visibility flags
24617         * TextBoxBase.cs:
24618           - Switched scrollbars type to RichTextBoxScrollBars to support
24619             RichTextBox
24620           - Added tracking of canvas width/height
24621           - Switched scrollbars to be not selectable (to keep focus on text)
24622           - Added central CalculateDocument() method to handle all redraw
24623             requirements
24624           - Added ReadOnly support
24625           - Added WordWrap support
24626           - Fixed handling of Enter key (we now treat it as a DialogKey)
24627           - Fixed caret positioning when h or v scroll is not zero
24628           - Fixed placing/generation of vertical scrollbar
24629           - Added CalculateScrollBars() method to allow updating scrollbar
24630             limits and visibility
24631           - Fixed handling of horizontal scroll
24632           - Added handling of vertical scroll
24633           - Implemented auto-'jump' when caret moves to close to a left or
24634             right border and there is text to be scrolled into view (currently
24635             there's the potential for a stack overflow, until a bug in
24636             scrollbar is fixed)
24638 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
24639         
24640         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
24642 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
24644         * Mime.cs:
24645         - added inodes.
24646         - return application/x-zerosize for files with size zero
24647           (if no extension pattern matches).
24648         - check matches collection for strings too.
24649         - return only the first mime type if the name value
24650           collection has more than one mime type.
24652 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
24653         
24654         * PropertyGrid.cs: Cleaned up some TODOs
24655         * PropertyGridView.cs: Added support for UITypeEditors
24657 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
24658         
24659         * DataGrid.cs: clears cached value
24661 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
24663         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
24664         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
24665         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
24666         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
24667         
24668 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
24670         * ThemeWin32Classic.cs: fixes colour
24672 2005-06-15  Peter Bartok  <pbartok@novell.com>
24674         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
24675         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
24676         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
24677         * Control.cs: Added some MWFCategory and MWFDescription attributes
24678         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
24680 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
24682         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
24683         usage
24685 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
24687         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
24688         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
24689         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
24690         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
24691         * DataGrid.cs: default datagrid settings for Default Styles, fixes
24692         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
24694 2005-06-13  Jackson Harper  <jackson@ximian.com>
24696         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
24697         isn't printed when the user enables dropping. (X11 does accept
24698         drops).
24699         
24700 2005-06-13  Jackson Harper  <jackson@ximian.com>
24702         * TreeView.cs: Remove some TODOS.
24704 2005-06-13  Jackson Harper  <jackson@ximian.com>
24706         * Form.cs: Hook into the mdi framework.
24707         * MdiClient.cs: Use the base control collections add method so
24708         parents get setup correctly. Set the default back colour and dock
24709         style.
24710         * MdiChildContext.cs: New class, this bad actor handles an
24711         instance of an MDI window. Right now there is only basic
24712         support. You can drag, close, and resize windows. Minimize and
24713         Maximize are partially implemented.
24715 2005-06-13  Jackson Harper  <jackson@ximian.com>
24717         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
24718         freaky when both vals are negative. NOTE: There are probably other
24719         places in XplatUIX11 that this needs to be done.
24721 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
24723         * DataGrid.cs: implement missing methods, move KeyboardNavigation
24724         * DataGridColumnStyle.cs: fixes signature
24726 2005-06-12  Jackson Harper  <jackson@ximian.com>
24728         * XplatUIX11.cs: Use sizing cursors similar to the ones on
24729         windows.
24731 2005-06-11  Jackson Harper  <jackson@ximian.com>
24733         * StatusBarPanel.cs: Signature cleanups. Implement
24734         BeginInit/EndInit.
24736 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
24738         * DataGridTextBoxColumn.cs: Honors aligment
24739         * GridColumnStylesCollection.cs: Contains is case unsensitive
24740         * GridTableStylesCollection.cs: several fixes
24741         * DataGridTableStyle.cs: default column creation
24742         * DataGridDrawingLogic.cs: fixes
24743         * CurrencyManager.cs: ListName property
24744         * DataGrid.cs: multiple styles support
24745         * DataGridColumnStyle.cs: fixes
24746         
24748 2005-06-10  Peter Bartok  <pbartok@novell.com>
24750         * Control.cs(Select): Moved SetFocus call to avoid potential
24751           loops if controls change the active control when getting focus
24752         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
24753           the up/down buttons
24755 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
24757         * ImageListConverter.cs: Implemented
24759 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
24761         * MonthCalendar.cs: Wired in NumericUpDown control for year
24763 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
24765         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
24766           DoubleClick events, since they are not meant to be fired.
24768 2005-06-09  Peter Bartok  <pbartok@novell.com>
24770         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
24771           Jonathan's standalone controls into MWF, implemented missing
24772           events, attributes and methods; added xxxAccessible classes
24773         * AccessibleObject.cs: Made fields internal so other classes
24774           can change them if needed
24776 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
24778         * UpDownBase.cs: Complete implementation
24779         * NumericUpDown.cs: Complete implementation
24780         * DomainUpDown.cs: Complete implementation
24782 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
24784         * DataGridTextBoxColumn.cs: drawing fixes
24785         * DataGridCell.cs: fixes ToString method to match MSNet
24786         * DataGridTableStyle.cs: fixes
24787         * DataGridBoolColumn.cs: fixes, drawing
24788         * DataGridDrawingLogic.cs: fixes, new methods
24789         * DataGridTextBox.cs: Keyboard and fixes
24790         * DataGrid.cs:
24791                 - Keyboard navigation
24792                 - Scrolling fixes
24793                 - Row selection (single, multiple, deletion, etc)
24794                 - Lots of fixes
24795         
24796 2005-06-07  Jackson Harper  <jackson@ximian.com>
24798         * ThemeWin32Classic.cs: Clear the background area when drawing
24799         buttons.
24801 2005-06-06  Peter Bartok  <pbartok@novell.com>
24803         * ImageListStreamer.cs: Fixed signature for GetData
24804         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
24805         * ComboBox.cs:
24806           - Added missing ChildAccessibleObject class
24807           - Added missing OnXXXFocus overrides, switched to using those
24808             instead of the event handler
24809         * Control.cs:
24810           - Added Parent property for ControlAccessibleObject
24811           - Fixed signatures
24812           - Fixed attributes
24813           - Added ResetBindings()
24814         * ListBindingConverter.cs: Implemented some methods
24815         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
24816         * ImageList.cs: Implemented basic handle scheme, removed TODOs
24817         * ContainerControl.cs: Fixed signature, now subscribing to the
24818           ControlRemoved event instead of overriding the handler, LAMESPEC
24819         * CurrencyManager.cs: Added missing attribute
24820         * MonthCalendar.cs: Added missing properties
24822 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
24824         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
24825         
24826 2005-06-06  Gaurav Vaish and Ankit Jain
24828         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
24829         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
24830         
24831 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
24833         * Control.cs: fixes CreateParams Width / Height.
24835 2005-06-05  Peter Bartok  <pbartok@novell.com>
24837         * Win32DnD.cs: Removed compilation warnings
24839 2005-06-05  Peter Bartok  <pbartok@novell.com>
24841         * Control.cs (CreateParams): Since we don't know if one of the
24842           properties we use is overridden, lets make sure if we fail accessing
24843           we continue with a backup plan
24845 2005-06-05  Peter Bartok  <pbartok@novell.com>
24847         * Win32DnD.cs:
24848           - Removed debug output
24849           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
24850             struct
24851           - Plugged resource leak
24852         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
24853           MS size
24855 2005-06-05  Peter Bartok  <pbartok@novell.com>
24857         * XplatUIWin32.cs: Removed DnD code
24858         * Win32DnD.cs: Implemented drop source and drop target functionality
24860 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24862         * UpDownBase.cs: remove duplicate addition of event, enable some code
24863         that was commented out.
24864         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
24865         Validate input when a key is pressed. It works fine now for every
24866         combination of Hexadecimal. Only missing some drawing love when sharing
24867         space with other controls.
24869 2005-06-04  Peter Bartok  <pbartok@novell.com>
24871         * Control.cs:
24872           - We need to pass a window for DragDrop, so enable callback events
24873           - Added DnD callback events when being a DragSource
24874         * XplatUI.cs (StartDrag): Added window handle argument
24875         * XplatUIDriver.cs (StartDrag): Added window handle argument
24876         * QueryContinueDragEventArgs: Made fields internally accessible so
24877           drivers can set them
24878         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
24879           can set them
24881 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
24883         * DataGridTextBoxColumn.cs: column text editing
24884         * DataGridTableStyle.cs: Respect columns styles created by the user
24885         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
24886         * DataGridBoolColumn.cs: bool column editing
24887         * DataGrid.cs: fixes to scrolling, properties, etc
24888         * DataGridTextBox.cs: handle keyboard
24889         * DataGridColumnStyle.cs: fixes
24891 2005-06-02  Jackson Harper  <jackson@ximian.com>
24893         * ImageListStreamer.cs: Somewhat broken implementation of
24894         GetObjectData. The RLE needs some work to match MS properly.
24896 2005-06-02  Jackson Harper  <jackson@ximian.com>
24898         * X11Dnd.cs: Attempting to keep at least one file in MWF
24899         monostyled.
24901 2005-06-02  Peter Bartok  <pbartok@novell.com>
24903         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
24904           that way
24906 2005-06-02  Peter Bartok  <pbartok@novell.com>
24908         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
24909         * XplatUI.cs: Added DoDragDrop() method
24910         * XplatUIDriver.cs: Added DoDragDrop() method
24912 2005-06-02  Jackson Harper  <jackson@ximian.com>
24914         * Splitter.cs: Implement BorderStyle.
24916 2005-06-02  Jackson Harper  <jackson@ximian.com>
24918         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
24919         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
24920         X11 using XDND.
24922 2005-06-02  Peter Bartok  <pbartok@novell.com>
24924         * DataObject.cs:
24925           - Added Data setter
24926           - Fixed broken insertion code for SetData, now also
24927             overwrites any existing entry of the same format name
24928         * Hwnd.cs: Added list of pointers that automatically gets
24929           freed when the window is disposed
24930         * XplatUI.cs: Call driver initialization method when loading
24931           a driver
24932         * Control.cs:
24933           - OnDragLeave takes EventArgs, not DragEventArgs
24934           - Added setting of WS_EX_ACCEPTFILES style when dropping is
24935             supported
24936           - Forces style update when drop state changes
24937         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
24938           not perfect since we cannot (yet) call the IDataObject.GetData()
24939           method, we keep getting 0x80004005 error, dunno why)
24941 2005-06-02  Peter Bartok  <pbartok@novell.com>
24943         * DragEventArgs.cs: Make fields internal so we can cache the
24944           object and re-set the fields from XplatUI
24946 2005-06-02  Jackson Harper  <jackson@ximian.com>
24948         * Control.cs: Add some internal methods so the DnD subsystem can
24949         raise DnD events. Also call into the driver when AllowDrop is set.
24950         * XplatUI.cs:
24951         * XplatUIDriver.cs: New method for setting whether or not a window
24952         is allowed to accept drag and drop messages.
24953                 
24954 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
24955         
24956         * ScrollBar.cs: Make sure that values sent in Scroll events
24957         are always between Maximum and Minimum.
24959 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
24961         * Menu.cs: Call MenuChanged when menuitem visibility has been
24962         changed.
24963         * MenuItem.cs: Rebuild menu when item is (not) visible.
24964         * MainMenu.cs: MainMenu has special MenuChanged.
24965         * Theme.cs: Caption and FrameBorderSize are not fixed.
24966         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
24967         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
24968         * XplatUIX11.cs,
24969         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
24970         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
24972 2005-05-30  Jackson Harper  <jackson@ximian.com>
24974         * DataFormat.cs: We can't statically initialize this stuff because
24975         it calls into the xplatui and could create a loop. So we lazy init
24976         it.
24978 2005-05-28  Jackson Harper  <jackson@ximian.com>
24980         * Control.cs: Proper implementation of Product(Name/Version).
24982 2005-05-27  Jackson Harper  <jackson@ximian.com>
24984         * DataObject.cs: Dont crash if no data is found.
24986 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
24987         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
24988                 as per status page, guessing it should be set to true
24990 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
24992         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
24993         * DataGridTableStyle.cs: set proper formatting text, def header text
24994         * ThemeWin32Classic.cs: new themable paramaters
24995         * DataGridBoolColumn.cs: paint check box, get data, fixes
24996         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
24997         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
24998         * DataGridColumnStyle.cs: fixes
24999         * Theme.cs: new themable paramaters
25000                 
25001 2005-05-26  Peter Bartok  <pbartok@novell.com>
25003         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
25005 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
25006         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
25008 2005-05-24  Peter Bartok  <pbartok@novell.com>
25010         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
25011           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
25012           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
25013           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
25014           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
25015           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
25016           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
25017           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
25018           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
25019           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
25020           missing attributes, etc
25021         * DataGridPreferredColumnWidthTypeConverter.cs: Added
25023 2005-05-24  Peter Bartok  <pbartok@novell.com>
25025         * Help.cs: Added, implemented trivial functions, throws up MessageBox
25026           when user tries to get help
25027         * DataObject.cs, DataFormats.cs, LinkArea.cs,
25028           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
25029           to suppress warnings
25030         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
25031           avoid unreachable code warning
25033 2005-05-20  Peter Bartok  <pbartok@novell.com>
25035         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
25037 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
25039         * DataGridTextBoxColumn.cs: Basic painting methods
25040         * DataGridTableStyle.cs: Set table style in the column
25041         * ThemeWin32Classic.cs: Use Theme for colors
25042         * DataGridDrawingLogic.cs: Implement more drawing
25043         * DataGrid.cs: drawing, theming, enhacements, fixes
25044         * DataGridColumnStyle.cs: fixes, drawing
25045         * Theme.cs: theming for Datagrid
25047 2005-05-20  Peter Bartok  <pbartok@novell.com>
25049         * Cursor.cs: Implemented GetObjectData() method
25051 2005-05-20  Peter Bartok  <pbartok@novell.com>
25053         * Cursors.cs: Added setting of cursor name
25054         * Cursor.cs:
25055           - Implemented constructors
25056           - Implemented Draw and DrawStretched
25057           - Implemented Current property
25058           - Implemented == and != operators
25059           - Implemented Dispose()
25060           - Implemented ToString
25061           - Added missing attributes
25062         * XplatUIX11.cs:
25063           - Added missing reset for OverrideCursor when DoEvents is called
25064           - Fixed creation of cursor, logic was wrong
25065         * XplatUIWin32.cs:
25066           - Added missing reset for OverrideCursor when DoEvents is called
25067           - Fixed creation of cursor, bit arrays were swapped
25068         * Clipboard.cs: Removed obsolete MonoTODO attribute
25070 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
25072         * ComboBox.cs: fixes OnSelectedItemChanged
25073         * ControlBindingsCollection.cs: fixes item range check
25075 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
25077         * UpDownBase.cs:
25078                 - Calc preferred height properly
25079                 - Implement missing properties
25080                 
25081         * NumericUpDown.cs: Implement missing events
25083 2005-05-19  Jackson Harper  <jackson@ximian.com>
25085         * TabControl.cs: New method that resizes the tab pages before
25086         redrawing them. This as needed as the control is double buffered
25087         and sizing will not be recalculated unless ResizeTabPages is
25088         called.
25089         * TabPage.cs: Set base.Text instead of Text in the constructor so
25090         that UpdateOwner does not get called. Use the new Redraw method of
25091         TabControl instead of Refresh so the sizing is recalculated.
25092         * ThemeWin32Classic.cs: Draw the text for button tabs.
25094 2005-05-19  Jackson Harper  <jackson@ximian.com>
25096         * Control.cs: Paint control background images. Fix typo where
25097         PaintControlBackground was not getting called correctly.
25099 2005-05-19  Peter Bartok  <pbartok@novell.com>
25101         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
25102           I can investigate, apparently I broke FileDialog
25104 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
25106         * AxHost.cs: Some simple properties.
25107         * Control.cs: window must be accessible after ctor.
25108         * Form.cs: Added TransparencyKey property.
25109         * TextBoxBase.cs: Implemented Clear. Text property can be null.
25110         * XplatUIWin32.cs: SetBorderStyle implemented.
25112 2005-05-18  Peter Bartok  <pbartok@novell.com>
25114         * DataObject.cs: Entries are not global but particular to the
25115           DataObject, now it behaves that way
25116         * XplatUIWin32.cs: Implemented Clipboard methods
25117         * Clipboard.cs: Implemented
25118         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
25119         * XplatUIOSX.cs: Updated to final clipboard prototypes
25120         * XplatUIX11.cs: Implemented Clipboard methods
25121         * XplatUIDriver.cs: Updated to final clipboard prototypes
25122         * XplatUIStructs.cs:
25123           - Added BITMAPINFOHEADER struct
25124           - Added ClipboardFormats enum
25125         * X11Structs.cs:
25126           - Added ClipboardStruct
25127           - Added Atom enum items for clipboard types
25128           - Fixed atom types for Selection event structures
25129         * DataFormats.cs:
25130           - Added internal properties and methods for drivers to enumerate
25131             all known formats
25132           - Switched initialization method to allow drivers to assign their
25133             own IDs even for the MS predefined clipboard IDs
25134         * XplatUI.cs: Updated to final clipboard interface
25136 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
25137         * PropertyGridView.cs: Fixed compiler warnings.
25139 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
25140         * PropertyGrid.cs: Added some event calls
25141         * PropertyGridView.cs: Change drawing code to use double buffering
25142         * PropertyGridTextBox.cs: Changed Text property name
25143         * GridItem.cs: Added Bounds property.
25144         * GridEntry.cs: Added Bounds property.
25146 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
25148         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
25149         since GetType() may not return the correct type if the object is
25150         a remoting proxy.
25152 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
25154         * TreeNodeCollection.cs: fixes get/set item ranges
25155         
25156 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
25158         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
25159                 
25160 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
25162         * ComboBox.cs: Fix item range comparation
25163         * ListView.cs: Fix item range comparation
25165 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
25167         * FontDialog.cs:
25168           - Clear example panel when OnPaint is called
25169           - Better solution for displaying the example panel text
25170           - Select default indexes in the ListBoxes
25172 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
25174         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
25176 2005-05-11  Peter Bartok  <pbartok@novell.com>
25178         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
25179         * SelectionRangeConverter.cs: Implemented
25180         * PropertyGrid.cs: Fixed attribute value
25181         * Control.cs:
25182           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
25183           - Added Sebastien Pouliot's CAS Stack Propagation fixes
25184         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
25185           that's common to all drivers. First methods to go there are
25186           Sebastien Pouliot's CAS Stack Propagation helper methods
25187         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
25188           Sebastien Pouliot for CAS Stack Propagation
25190 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
25192         * OSXStructs.cs:
25193           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
25195 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
25197         * DataGridTextBoxColumn.cs: fixed some members
25198         * GridColumnStylesCollection.cs: indexed column is case insensitive
25199         * DataGridTableStyle.cs: fixes
25200         * ThemeWin32Classic.cs: add new theme parameter
25201         * Theme.cs: add new theme parameter
25202         * DataGridDrawingLogic.cs: Datagrid's drawing logic
25203         * DataGrid.cs: fixes, new internal properties, etc.
25204         * DataGridColumnStyle.cs: allows to set grid value
25205         *
25207 2005-05-10  Peter Bartok  <pbartok@novell.com>
25209         * AccessibleObject.cs:
25210           - Removed MonoTODO attribute on help, method is correct
25211           - Fixed Bounds property
25212         * AxHost.cs: Moved MonoTODO
25213         * ButtonBase.cs: Now setting AccessibleObject properties
25214         * RadioButton.cs: Setting proper AccessibleObject role
25215         * CheckBox.cs: Setting proper AccessibleObject role
25216         * ControlBindingsCollection.cs: Added properties, methods and attributes
25217         * DataFormats.cs: Fixed awkward internal API, and changed to enable
25218           userdefined DataFormats.Format items as well
25219         * ListControl.cs: Removed data_member from the public eye
25220         * OpenFileDialog.cs:
25221           - Made class sealed
25222           - Added missing attributes
25223         * SaveFileDialog.cs: Added missing attributes
25224         * ImageListStreamer.cs: Fixed code that caused warnings
25225         * LinkLabel.cs: Removed unreachable code
25226         * TreeView.cs: Fixed code that caused warnings
25227         * PropertyGridView.cs: Fixed code that caused warnings
25228         * GridColumnStylesCollection.cs: Added missing attributes
25229         * GridTableStylesCollection: Added missing attribute
25230         * PropertyManager: Added .ctor
25231         * SecurityIDType: Added
25232         * DataObject.cs: Implemented class
25233         * LinkArea.cs: Added missing attribute
25235 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
25237         * RadioButton.cs: call base method to allow to fire OnClick event
25238         * UpDownBase.cs: OnMouseUp call base method
25239         * CheckedListBox.cs: call base method before returning
25240         * TrackBar.cs: call base method before returning
25241         
25243 2005-05-10  Peter Bartok  <pbartok@novell.com>
25245         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
25246           for messages
25248 2005-05-10  Peter Bartok  <pbartok@novell.com>
25250         * DataFormats.cs: Implemented
25251         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
25252           XplatUIX11.cs: Added Clipboard APIs
25253         * XplatUIWin32.cs: Implemented Clipboard APIs
25254         * FolderBrowserDialog.cs: Added missing event, attributes
25256 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
25258         * CheckBox.cs: call base method to allow to fire OnClick event
25260 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
25262         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
25264 2005-05-06  Peter Bartok  <pbartok@novell.com>
25266         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
25267         * Screen.cs: Implemented
25268         * HelpNavigator.cs: Added
25269         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
25270           property
25271         * HelpProvider.cs: Implemented all we can do until we have a CHM
25272           help library (which means that "What's This" does work now)
25274 2005-05-06  Jackson Harper  <jackson@ximian.com>
25276         * XplatUIX11.cs: Fix waking up the main loop.
25277                 
25278 2005-05-05  Peter Bartok  <pbartok@novell.com>
25280         * XplatUI.cs: Updated revision
25281         * Form.cs: Removed enless loop
25282         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
25283         * Label.cs (OnPaint): Added call to base.OnPaint()
25284         * ToolTip.cs: Made ToolTipWindow reusable for other controls
25285         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
25286         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
25287         * AxHost.cs: Added
25288         * ButtonBase.cs: Moved base.OnPaint() call to end of method
25289         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
25290           to ToolTip.ToolTipWindow for drawing and size methods; this allows
25291           reuse of ToolTipWindow by other controls
25292         * SizeGrip.cs: Moved base.OnPaint() call to end of method
25293         * XplatUIX11.cs: Now clipping drawing area (experimental)
25294         * PictureBox.cs: Moved base.OnPaint() call to end of method
25295         * Theme.cs: Fixed ToolTip abstracts to match new format
25296         * ErrorProvider.cs: Implemented
25298 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
25300         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
25301         * LinkLabel.cs:
25302                 - Adds cursors
25303                 - Handles focus
25304                 - Implements LinkBehavior
25305                 - Fixes many issues
25307 2005-05-03  Jackson Harper  <jackson@ximian.com>
25309         * ListView.cs: Calculate the scrollbar positioning on resize and
25310         paint, so they get put in the correct place.
25312 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
25314         * ColorDialogs.cs: The small color panels are now handled by
25315           SmallColorControl. This fixes drawing of the focus rectangle
25316           and adds a 3D border.
25318 2005-05-03  Peter Bartok  <pbartok@novell.com>
25320         * Control.cs: Modified version of Jonathan Chamber's fix for
25321           double-buffering
25323 2005-05-03  Jackson Harper  <jackson@ximian.com>
25325         * ListView.cs: Remove redraw variable. Control now handles whether
25326         or not a redraw needs to be done, and will only raise the paint
25327         event if redrawing is needed.
25329 2005-05-03  Jackson Harper  <jackson@ximian.com>
25331         * Splitter.cs: No decorations for the splitter form. Cache the
25332         hatch brush.
25334 2005-05-03  Jackson Harper  <jackson@ximian.com>
25336         * TreeView.cs: Use dashed lines to connect nodes. Use the
25337         ControlPaint method for drawing the focus rect instead of doing
25338         that in treeview.
25340 2005-05-02  Peter Bartok  <pbartok@novell.com>
25342         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
25344 2005-04-29  Jackson Harper  <jackson@ximian.com>
25346         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
25347         entire image buffer. Just clear the clipping rectangle.
25349 2005-04-29  Jackson Harper  <jackson@ximian.com>
25351         * ThemeWin32Classic.cs: Don't draw list view items that are
25352         outside the clipping rectangle.
25354 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
25356         * ListBox.cs: added horizontal item scroll
25358 2005-04-29  Jackson Harper  <jackson@ximian.com>
25360         * ThemeWin32Classic.cs: Remove some old debug code that was
25361         causing flicker with the new double buffering code.
25363 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
25365         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
25366         behave like combobox and comboboxlist (still not sure if this is
25367         correct though).
25369 2005-04-28  Jackson Harper  <jackson@ximian.com>
25371         * ThemeWin32Classic.cs: Don't fill the middle of progress
25372         bars. This fills areas outside of the clip bounds that don't need
25373         to be filled.
25375 2005-04-28  Jackson Harper  <jackson@ximian.com>
25377         * Control.cs: Don't expose functionality to touch the image buffers.
25378         * ProgressBar.cs:
25379         * ListView.cs: We do not need to (and no longer can) manipulate
25380         the image buffers directly. All of this is handled by Control.
25382 2005-04-28  Peter Bartok  <pbartok@novell.com>
25384         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
25385           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
25386           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
25388 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
25390         * Combobox:
25391                 - Adjust control's height for non-simple comboboxes (bug fix)
25392                 - Remove dead code
25393         * MenuAPI.cs: remove unused var
25394         * ScrollBar.cs: remove unsed var
25395                  
25396         * ListBox.cs: unselect items when clearing
25398 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
25400         * ListControl.cs: honors OnPositionChanged and default Selected Item
25401         * ListBox.cs: unselect items when clearing
25403 2005-04-27  Jackson Harper  <jackson@ximian.com>
25405         * X11Keyboard.cs: Initialize a default keyboard and give a warning
25406         if a "correct" keyboard is not found. This will make us not crash,
25407         but might give some users bad keyboard layouts...seems to be the
25408         same thing rewind does.
25410 2005-04-27  Jackson Harper  <jackson@ximian.com>
25412         * BindingManagerBase.cs: Attach the current/position changed
25413         handlers to their respective events.
25415 2005-04-27  Jackson Harper  <jackson@ximian.com>
25417         * Control.cs: Make sure that the first WM_PAINT does a full draw,
25418         not just a blit.
25419         * ThemeWin32Classic.cs: Don't fill the background for picture
25420         boxes. This could overright user drawing.
25421         * ComboBox.cs: Just fill the clipping rect not the entire client
25422         rect when drawing the background. This prevents pieces of the
25423         image buffer from getting overwritten and is theoretically faster.
25425 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
25427         * ComboBox.cs: Databinding support fixes, fire missing events
25428         * ListControl.cs: implement missing methods and properties, fixes
25429         * ThemeWin32Classic.cs: Databiding support on Drawing
25430         * CheckedListBox.cs: Databinding support fixes, fire missing events
25431         * ListBox.cs: Databinding support fixes, fire missing events
25432         
25433 2005-04-25  Peter Bartok  <pbartok@novell.com>
25435         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
25437 2005-04-25  Jackson Harper  <jackson@ximian.com>
25439         * TreeView.cs: Use the horizontal scrollbars height not width when
25440         determining how much of the client area is available.
25442 2005-04-25  Jackson Harper  <jackson@ximian.com>
25444         * Control.cs: Double buffering is handled differently now. As per
25445         the spec, the extra buffer is created in the WM_PAINT message and
25446         passed down to the control's drawing code.
25447         * GroupBox.cs:
25448         * Label.cs:
25449         * CheckBox.cs:
25450         * ProgressBar.cs:
25451         * RadioButton.cs:
25452         * ColorDialog.cs:
25453         * ComboBox.cs:
25454         * PropertyGridView.cs:
25455         * UpDownBase.cs:
25456         * MessageBox.cs:
25457         * MenuAPI.cs:
25458         * ListView.cs:
25459         * ButtonBase.cs:
25460         * SizeGrip.cs:
25461         * ScrollBar.cs:
25462         * ListBox.cs:
25463         * TrackBar.cs:
25464         * ToolBar.cs:
25465         * PictureBox.cs:
25466         * DateTimePicker.cs:
25467         * StatusBar.cs:
25468         * TreeView.cs: Update to new double buffering system.
25469         * MonthCalendar.cs: Uncomment block, as Capture is now
25470         working. Update to new double buffering
25471         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
25472         * PaintEventArgs.cs: New internal method allows us to set the
25473         graphics object. This is used for double buffering.
25474         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
25475         rectangle. The internal paint_area var has been removed from
25476         StatusBar. The clipping rect should be used instead.
25477         * Theme.cs: Give the PictureBox drawing method a clipping rect.
25478         * TabPage.cs: The RefreshTabs method was removed, so just call the
25479         tab controls Refresh method now.
25480         * TabControl.cs: Update to new double buffering. Make sure the
25481         handle is created before sizing the tab pages, otherwise we will
25482         get stuck in a loop.
25484 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
25486         * LinkLabel.cs: Fix typo, bug #74719; patch
25487           from Borja Sanchez Zamorano
25489 2005-04-22  Jackson Harper  <jackson@ximian.com>
25491         * TreeNode.cs: Implement Handle stuff.
25492         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
25494 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
25496         * DataGridTextBoxColumn.cs: call base constructors, fixes
25497         * GridColumnStylesCollection.cs: missing events, methods, and functionality
25498         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
25499         * DataGridTableStyle.cs: implements create default column styles
25500         * DataGridBoolColumn.cs: which types can handle
25501         * DataGrid.cs: missing methods, fixes, new functionality
25502         * DataGridColumnStyle.cs: fixes
25504 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
25505         * FolderBrowserDialog.cs:
25506         - Use a thread to fill the TreeView
25507         - Adjusted some sizes
25509 2005-04-19  Peter Bartok  <pbartok@novell.com>
25511         * LinkLabel.cs: (Re-)create the pieces when setting the Text
25512           property. Fixes #74360.
25514 2005-04-19  Jackson Harper  <jackson@ximian.com>
25516         * XEventQueue.cs: Lock when getting the lockqueue size.
25517         * PictureBox.cs: Call base OnPaint
25518         
25519 2005-04-19  Peter Bartok  <pbartok@novell.com>
25521         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
25522           messages were no longer being processed (this broke BeginInvoke)
25524           
25525 2005-04-18  Jackson Harper  <jackson@ximian.com>
25527         * TreeView.cs: buglet that caused node images to get drawn
25528         regardless of whether or not they were in the clipping rectangle.
25530 2005-04-18  Jackson Harper  <jackson@ximian.com>
25532         * CurrencyManager.cs: There are four rules for GetItemProperties:
25533         - If the type is an array use the element type of the array
25534         - If the type is a typed list, use the type
25535         - If the list contains an Item property that is not an object, use
25536         that property
25537         - use the first element of the list if there are any elements in
25538         the list.
25539         
25540 2005-04-17  Jackson Harper  <jackson@ximian.oom>
25542         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
25543         click. This handles offsets for scrolling properly and reduces
25544         memory. Also fixed GetNode to not offset now that TopNode works
25545         properly.
25546         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
25547         
25548 2005-04-17  Jackson Harper  <jackson@ximian.com>
25550         * CursorConverter.cs: Initial implementation.
25552 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
25554         * ListControl.cs: work towards complex data binding support on ListControl
25555         * CurrencyManager.cs: work towards complex data binding support on ListControl
25556         * ListBox.cs: work towards complex data binding support on ListControl
25559 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
25561         * GridTableStylesCollection.cs: fixes name and constructor
25562         * DataGridTableStyle.cs: fixes
25563         * DataGridBoolColumn.cs: fixes names and constructors
25564         * DataGrid.cs: define methods and properties. Some init implementations
25565         * DataGridCell.cs: define methods and properties. Some init implementations
25566         * GridTablesFactory.cs: Define methods and properties
25568 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
25570         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
25571         graphics port changes.  We still want the coordinates in global screen
25572         coordinates.
25574 2005-04-14  Jackson Harper  <jackson@ximian.com>
25576         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
25577         check plus minus or checkbox clicks unless those features are enabled.
25579 2005-04-14  Jackson Harper  <jackson@ximian.com>
25581         * TreeView.cs: Add methods for setting the top and bottom visible
25582         nodes. TreeNode::EnsureVisible uses these methods.
25583         * TreeNode.cs: Implement EnsureVisible
25585 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
25587         * Form.cs: Pospone menu assignation if the window has not been created yet
25588         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
25589         size and position
25591 2005-04-12  Jackson Harper  <jackson@ximian.com>
25593         * TreeView.cs: Set the TopNode properly when scrolling
25594         occurs. This has the added benifit of reducing the amount of
25595         walking that needs to be done when drawing. Also removed an old
25596         misleading TODO.
25597         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
25598         
25599 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
25601         * Timer.cs: fixes interval setting when the timer is already enabled
25602         
25603 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
25605         * FolderBrowserDialog.cs: First approach
25607 2005-04-09  Peter Bartok  <pbartok@novell.com>
25609         * FolderBrowserDialog: Added
25611 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
25613         * LinkLabel.cs: move drawing code into the theme
25614         * ThemeWin32Classic.cs: drawing code and painting background bugfix
25615         * Theme.cs: define DrawLinkLabel method
25617 2005-04-05  Jackson Harper  <jackson@ximian.com>
25619         * BindingContext.cs: Use weak references so these bad actors don't
25620         stay alive longer then they need to.
25622 2005-04-05  Jackson Harper  <jackson@ximian.com>
25624         * ListControl.cs: Basic implementation of complex databinding.
25625         * ComboBox.cs:
25626         * ListBox.cs: Add calls to ListControl databinding methods.
25628 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
25630         * FileDialog.cs:
25631           - Don't change PopupButtonState to Normal when the
25632             PopupButton gets pressed several times.
25633           - Renamed ButtonPanel to PopupButtonPanel
25635 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
25637         * ColorDialog.cs: Use cached objects instead of creating them
25638         * LinkLabel.cs: Use cached objects instead of creating them
25639         * Splitter.cs: Use cached objects instead of creating them
25640         * FontDialog.cs: Use cached objects instead of creating them
25641         * PropertyGridView.cs: Use cached objects instead of creating them
25642         * MessageBox.cs: Use cached objects instead of creating them
25643         * FileDialog.cs: Use cached objects instead of creating them
25644         * ThemeWin32Classic.cs: Use cached objects instead of creating them
25645         * TreeView.cs: Use cached objects instead of creating them
25646         
25647 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
25649         * Control.cs: use Equals to compare the font since no == op
25650         * ScrollBar.cs: use Equals to compare the font since no == op
25652 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
25654         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
25656 2005-04-01  Jackson Harper  <jackson@ximian.com>
25658         * Binding.cs: Implement IsBinding.
25659         * BindingManagerBase.cs:
25660         * PropertyManager.cs:
25661         * CurrencyManager.cs: Add IsSuspended property.
25663 2005-04-01  Jackson Harper  <jackson@ximian.com>
25665         * Binding.cs: Had some IsAssignableFrom calls backwards.
25667 2005-04-01  Jackson Harper  <jackson@ximian.com>
25669         * Binding.cs: Handle null data members when pulling data.
25670         * PropertyManager.cs: Handle the data member being a property that
25671         does not exist.
25673 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
25675         * DataGridTextBoxColumn.cs: fixes signature
25676         * DataGrid.cs: calls right constructor
25678 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
25680         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
25681         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
25682         * GridTableStylesCollection.cs: implements GridTableStylesCollection
25683         * DataGridTableStyle.cs: implements DataGridTableStyle
25684         * DataGridBoolColumn.cs: implements DataGridBoolColumn
25685         * DataGridTextBox.cs: implements DataGridTextBox
25686         * DataGridColumnStyle.cs: implements DataGridColumnStyle
25688 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
25690         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
25692 2005-03-29  Peter Bartok  <pbartok@novell.com>
25694         * Application.cs:
25695           - Properly implemented CompanyName property
25696           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
25697             returns a path that includes CompanyName, ProductName and
25698             Version (fixes bug #70330)
25700 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
25702         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
25703           fixes bug #72588.
25705 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
25707         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
25708         
25709           - Added ReadOnly CheckBox
25710           - Further refactoring: moved some code from Open-/SaveFileDialog
25711             to FileDialog
25713 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
25715         * OpenFileDialog.cs: Fixed CheckFileExists
25716         * FileDialog.cs:
25717           Moved FileView and DirComboBox outside FileDialog class.
25718           They can now be used outside FileDialog
25720 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
25722         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
25723         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
25725 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
25727         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
25728           - Added missing CreatePrompt property in SaveDialog
25729           - Overall SaveDialog handling should be better now
25730           - Added non standard ShowHiddenFiles property
25731           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
25732           - Added InitialDirectory and RestoreDirectory support
25734 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
25736         * FileDialog.cs: Made dirComboBox usable
25738 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
25740         * FileDialog.cs: Added Filter support (case sensitiv)
25742 2005-03-24  Jackson Harper  <jackson@ximian.com>
25744         * TabControl.cs: Need a couple more pixels for the lines.
25746 2005-03-23  Jackson Harper  <jackson@ximian.com>
25748         * TabControl.cs: Give the tab page focus when it is selected.
25750 2005-03-23  Jackson Harper  <jackson@ximian.com>
25752         * TabControl.cs: Account for the drawing of tabs borders when
25753         invalidating. If the slider was clicked dont do click detection on
25754         the tabs.
25756 2005-03-23  Jackson Harper  <jackson@ximian.com>
25758         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
25760 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
25762         * CategoryGridEntry.cs: Added
25763         * GridItem.cs: Added helper properties
25764         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
25765         * GridEntry.cs: Updated code for collection
25766         * PropertyGrid.cs: Cleaned up some formatting
25767         * PropertyGridView.cs: Added drop down functionality for enums.
25768         * GridItemCollection.cs: Added enumerator logic
25769         * PropertyGridEntry.cs: Added
25771 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
25773         * FileDialog.cs:
25774           - Removed unnecessary commented code
25775           - Fixed handling for entering the filename manually in the combobox
25777 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
25779         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
25781 2005-03-18  Peter Bartok  <pbartok@novell.com>
25783         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
25784           them being touching the border
25786 2005-03-18  Peter Bartok  <pbartok@novell.com>
25788         * TextControl.cs: Quick hack to center text better
25790 2005-03-18  Peter Bartok  <pbartok@novell.com>
25792         * ControlPaint.cs:
25793           - Don't throw NotImplemented exceptions, just print a notice once
25794             instead (requested by Miguel). This makes running existing SWF
25795             apps a bit easier
25796         * Control.cs:
25797           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
25798           - Added context menu trigger on right click
25799         * Panel.cs: Trigger invalidate on resize
25800         * StatusBar.cs:
25801           - Removed old double-buffer drawing
25802           - Added ResizeRedraw style to force proper update of statusbar
25803         * ListView.cs:
25804           - Removed debug output
25805         * ThemeWin32Classic.cs:
25806           - Fixed drawing of status bar, now draws Text property if there
25807             are no defined panels
25809 2005-03-18  Jackson Harper  <jackson@ximian.com>
25811         * ImageList.cs: When the image stream is set pull all the images
25812         from it.
25813         * ImageListStreamer.cs: Implement reading image list streams.
25815 2005-03-18  Peter Bartok  <pbartok@novell.com>
25817         * ThemeWin32Classic.cs (DrawPictureBox):
25818           - Fixed calculations for centered drawing
25819           - Fixed drawing for normal mode, not scaling the image on normal
25821 2005-03-18  Peter Bartok  <pbartok@novell.com>
25823         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
25824           textbox
25825         * FileDialog.cs:
25826           - Made Open/Save button the accept button for FileDialog
25827           - Tied the cancel button to the IButtonControl cancel button
25828           - Save/Open now properly builds the pathname
25829           - Now handles user-entered text
25830           - Preventing crash on right-click if no item is selected
25831           - Fixed Text property, now uses contents of textbox
25832           - Fixed SelectedText property, now just returns the text part that
25833             is selected in the text box
25835 2005-03-18  Jackson Harper  <jackson@ximian.com>
25837         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
25838         rect, make sure to de-adjust the interior rect after drawing the
25839         tab text.
25841 2005-03-18  Peter Bartok  <pbartok@novell.com>
25843         * MenuAPI.cs: Remove menu *before* executing selected action to
25844           prevent the menu from 'hanging around'
25845           
25846 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
25848         * XplatUIOSX.cs: Implemented WorkingArea property
25850 2005-03-17  Peter Bartok  <pbartok@novell.com>
25852         * XplatUIX11.cs: Fixed menu coord calculations
25853         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
25854           for calculating offsets
25856 2005-03-17  Peter Bartok  <pbartok@novell.com>
25858         * Hwnd.cs: Do not consider menu presence for default client
25859           rectangle location/size
25860         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
25861           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
25862           translation functions
25863         * FileDialog.cs: Fixed (what I presume is a) typo
25865 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
25867         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
25868           X access (avoids X-Async errors)
25870 2005-03-16  Jackson Harper  <jackson@ximian.com>
25872         * TabControl.cs: Raise the SelectedIndexChanged event.
25874 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
25876         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
25877           - Removed vertical ToolBar and replaced it with a custom panel
25878             (desktop and home button already work)
25879           - Added Help button (some controls get resized or relocated then)
25880           - Draw correct text depending on Open or Save.
25881           - Fixed some typos...
25883 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
25885         * ScrollBar.cs:
25886           - Only change Maximum and Minimum when need it (bug fix)
25888 2005-03-15  Peter Bartok  <pbartok@novell.com>
25890         * Form.cs: Use Handle for icon, to trigger creation if
25891           the window does not yet exist
25892         * Control.cs:
25893           - CanSelect: Slight performance improvement
25894           - Focus(): Preventing possible recursion
25895           - Invalidate(): Removed ControlStyle based clear flag setting
25896           - WM_PAINT: fixed logic for calling OnPaintBackground
25897           - WM_ERASEBKGND: Fixed logic, added call to new driver method
25898             EraseWindowBackground if the control doesn't paint background
25899         * XplatUIWin32.cs:
25900           - Moved EraseWindowBackground() method to internal methods
25901           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
25902             is sent via SendMessage on BeginPaint call on Win32
25903         * XplatUIX11.cs:
25904           - Added EraseWindowBackground() method
25905           - No longer sends WM_ERASEBKGND on .Expose, but on call to
25906             PaintEventStart, which more closely matches Win32 behaviour
25907           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
25908           - Fixed SetFocus() to properly deal with client and whole windows
25909         * Hwnd.cs: Added ErasePending property
25910         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
25911         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
25913 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
25915         * XplatUIOSX.cs:
25916           - Fix hard loop when timers exist.
25917           - Fix bugs with middle and right click for 3 button mice.
25919 2005-03-11  Peter Bartok  <pbartok@novell.com>
25921         * XplatUIX11.cs:
25922           - get_WorkingArea: Need to call X directly, GetWindowPos only
25923             returns cached data now
25924           - Added sanity check to GetWindowPos hwnd usage
25926 2005-03-11  Jackson Harper  <jackson@ximian.com>
25928         * BindingManagerBase.cs: This method isn't used anymore as
25929         PullData now updates the data in the control.
25931 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
25933         * Form.cs: fixes menu drawing on X11
25934         * MenuAPI.cs:  fixes menu drawing on X11
25936 2005-03-11  Peter Bartok  <pbartok@novell.com>
25938         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
25939           from Jonathan Gilbert; should fix bug #73606
25940         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
25941           in Screen coordinates. Thanks, Jordi.
25942         * Form.cs: Added missing attribute
25944 2005-03-11  Peter Bartok  <pbartok@novell.com>
25946         * Form.cs:
25947           - Rudimentary Mdi support
25948           - Removed outdated FormParent code
25949           - Implemented lots of missing properties and methods, still missing
25950             transparency support
25951           - Added missing attributes
25952           - Implemented support for MaximumBounds
25953           - Added firing of various events
25954         * XplatUI.cs: Added SetIcon() method
25955         * XplatUIDriver.cs: Added SetIcon() abstract
25956         * XplatUIOSX.cs: Stubbed out SetIcon() method
25957         * XplatUIX11.cs:
25958           - Implemented SetIcon() support
25959           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
25960           - Switched to unix line endings
25961         * XplatUIWin32.cs:
25962           - Made POINT internal so for can access it as part of MINMAX
25963           - Implemented SetIcon() support
25964           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
25965             native Mdi support again, might have to go managed)
25966         * Control.cs: Now fires the StyleChanged event
25967         * MdiClient.cs: Added; still mostly empty
25969 2005-03-10  Peter Bartok  <pbartok@novell.com>
25971         * SaveFileDialog.cs: Added emtpy file
25973 2005-03-08  Peter Bartok  <pbartok@novell.com>
25975         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
25976           in turn triggers OnCreateContro) when creating a handle for the
25977           first time.
25978         * TextControl.cs: Fixed endless loop in certain cases when
25979           replacing the current selection
25981 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
25983         * ScrollBar.cs:
25984           - Honors NewValue changes in Scroll events allowing apps to change it
25985           - Adds First and Last Scroll events
25986           - Fixes Thumb events
25988 2005-03-07  Peter Bartok  <pbartok@novell.com>
25990         * Hwnd.cs: Added DefaultClientRectangle property
25991         * XplatUI.cs: Now using the X11 driver Where() method, which provides
25992           more detailed debug information
25993         * XplatUIX11.cs:
25994           - Fixed size-change feedback loop, where we would pull an old size
25995             off the queue and mistakenly change our window's size to an
25996             earlier value
25997           - Now compressing ConfigureNotify events, to reduce looping and
25998             redraw issues
25999         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
26000           is called
26002 2005-03-07  Jackson Harper  <jackson@ximian.com>
26004         * Binding.cs: Push data pushes from data -> property. Check if the
26005         property is readonly when attempting to set it.
26007 2005-03-07  Jackson Harper  <jackson@ximian.com>
26009         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
26010         instead of IsSubclassOf. Pulling data now sets the value on the
26011         control.
26012         * PropertyManager.cs:
26013         * CurrencyManager.cs: Just need to pull data when updating now,
26014         because PullData will set the value on the control.
26016 2005-03-04  Jackson Harper  <jackson@ximian.com>
26018         * Binding.cs: Implement data type parsing and converting on pulled
26019         data. TODO: Are there more ways the data can be converted?
26021 2005-03-04  Jackson Harper  <jackson@ximian.com>
26023         * Binding.cs: Support <Property>IsNull checks. Also bind to the
26024         controls Validating method so we can repull the data when the
26025         control loses focus.
26027 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
26029         * ColumnHeader.cs:
26030           - Fixes null string format
26031           
26032         * ListView.cs:
26033           - Adds enum type checks
26034           - Fixes redrawing and recalc need after changing some properties
26035           - Fixes on focus_item set after the event
26036           - Fixes adding columns after the control has been created
26037           
26038         * ThemeWin32Classic.cs:
26039           - Fixes CheckBox focus rectangle
26040           - Fixes ColumnHeader drawing
26043 2005-03-03  Jackson Harper  <jackson@ximian.com>
26045         * Binding.cs: Bind to <Property>Changed events so we can detect
26046         when properties are changed and update the data.
26048 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
26050         * ImageList.cs:
26051           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
26052           - Fixes ImageList constructor with ImageList container
26053           - Fixes image scaling (wrong parameters at DrawImage)
26055 2005-02-02  Jackson Harper  <jackson@ximian.com>
26057         * Binding.cs: Make property searches case-insensitive. Eliminate
26058         some duplicated code.
26060 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
26062         * ComboBox.cs:
26063                 - Handle focus event
26064                 - Fix scrollbar events
26065                 - Discard highlighted item if remove it
26066                 - Fixes SelectedItem with strings
26068 2005-03-01  Peter Bartok  <pbartok@novell.com>
26070         * Control.cs:
26071           - Fixed Visible property, now follows (once again) parent chain
26072             to return false if any control in the chain is visible=false
26073           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
26074           - Fixed several places where is_visible instead of Visible was used
26075           - Implemented FIXME related to focus selection when setting focused
26076             control to be invisible
26078         * XplatUIWin32.cs: Now using proper method to find out if window is
26079           visible. Thanks to Jordi for pointing it out
26081 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
26083         * ComboBox.cs: show/hide scrollbar instead of creating it
26085 2005-02-27  Jackson Harper  <jackson@ximian.com>
26087         * CurrencyManager.cs: Add PositionChanged stuff.
26089 2005-02-27  Peter Bartok  <pbartok@novell.com>
26091         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
26092         * XplatUIOSX.cs: Added GetMenuOrigin() stub
26093         * XplatUIWin32.cs: Implemented GetMenuOrigin()
26094         * XplatUIX11.cs:
26095           - Implemented GetMenuDC()
26096           - Implemented GetMenuOrigin()
26097           - Implemented ReleaseMenuDC()
26098           - Implemented generation of WM_NCPAINT message
26099           - Implemented generation and handling of WM_NCCALCSIZE message
26100         * Form.cs: Added debug helper message for Jordi's menu work
26101         * Hwnd.cs:
26102           - Modified ClientRect property; added setter, fixed getter to handle
26103             setting of ClientRect
26104           - Added MenuOrigin property
26106 2005-02-26  Peter Bartok  <pbartok@novell.com>
26108         * XplatUIX11.cs:
26109           - Destroys the caret if a window that's being destroyed contains it
26110           - Ignores expose events coming from the X11 queue for windows that
26111             already are destroyed
26112           - Now uses the proper variable for handling DestroyNotify, before we
26113             marked the wrong window as destroyed
26114           - Improved/added some debug output
26116 2005-02-26  Peter Bartok  <pbartok@novell.com>
26118         * X11Keyboard.cs: Fixes to work on 64bit systems
26120 2005-02-26  Peter Bartok  <pbartok@novell.com>
26122         * Control.cs:
26123           - Now calling OnHandleDestroyed from DestroyHandle()
26124             instead of Dispose()
26125           - Removed bogus call to controls.Remove() from DestroyHandle()
26127 2005-02-26  Peter Bartok  <pbartok@novell.com>
26129         * Control.cs: Properly destroy child windows when our handle is
26130           destroyed
26132 2005-02-25  Peter Bartok  <pbartok@novell.com>
26134         * XplatUI.cs:
26135           - Added 'DriverDebug' define to allow tracing XplatUI API calls
26136           - Alphabetized Static Methods and Subclasses
26138         * XplatUIX11.cs:
26139           - Added XException class to allow custom handling of X11 exceptions
26140           - Created custom X11 error handler, tied into XException class
26141           - Added support for MONO_XEXCEPTIONS env var to allow the user
26142             to either throw an exception on X errors or continue running
26143             after displaying the error
26144           - Added handling of DestroyNotify message
26145           - Added handler for CreateNotify message (still disabled)
26146           - Improved (tried to at least) Where method to provide file and lineno
26147         * X11Structs.cs:
26148           - Added XErrorHandler delegate
26149           - Added XRequest enumeration (to suppor translation of errors)
26151 2005-02-25  Jackson Harper  <jackson@ximian.com>
26153         * PropertyManager.cs: Implement editing features
26154         * CurrencyManager.cs:
26155         * Binding.cs: First attempt at UpdateIsBinding
26156         * BindingManagerBase.cs: Call UpdateIsBinding before
26157         pushing/pulling data.
26159 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
26161         * MenuAPI.cs: Respect disabled items
26162         * ThemeWin32Classic.cs
26163                 - Caches ImageAttributes creation for DrawImageDisabled
26164                 - Fixes vertical menu line drawing
26165                 - Draws disabled arrows in disable menu items
26167 2005-02-24  Peter Bartok  <pbartok@novell.com>
26169         * Hwnd.cs:
26170           - Added UserData property to allow associating arbitrary objects
26171             with the handle
26172           - Fixed leak; now removing Hwnd references from static windows array
26173         * XplatUIWin32.cs:
26174           - Fixed Graphics leak in PaintEventEnd
26175           - Removed usage of HandleData, switched over to Hwnd class
26176         * HandleData.cs: Removed, obsoleted by Hwnd.cs
26178 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
26180         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
26181         * ScrollBar.cs: Fixes bug
26182         * TrackBar.cs: removes death code, clipping, mimize refreshes,
26183          keyboard navigation enhancements
26185 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
26187         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
26188         * GroupBox.cs: Add control styles
26189         * Label.cs: Add control styles
26190         * UpDownBase.cs: Add control styles
26191         * ListBox.cs: Add control styles
26192         * XplatUIWin32.cs: Fixes wrong parameter order
26195 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
26197         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
26199 2005-02-23  Jackson Harper  <jackson@ximian.com>
26201         * PropertyManager.cs: Implement property binding. This doesn't
26202         seem to work yet though as (I think) there are some bugs in
26203         System.ComponentModel.PropertyDescriptor.
26204         * BindingContext.cs: Use new PropertyManager constructor.
26206 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
26208         * ProgressBar.cs: use clip region in ProgressBar
26209         * ThemeWin32Classic.cs: use clip region in ProgressBar
26211 2004-02-22  Jackson Harper  <jackson@ximian.com>
26213         * BindingsCollection.cs: Remove some debug code.
26215 2005-02-22  Jackson Harper  <jackson@ximian.com>
26217         * BindingContext.cs:
26218         * ControlBindingsCollection.cs:
26219         * CurrencyManager.cs:
26220         * Binding.cs:
26221         * BindingManagerBase.cs: Initial implementation
26222         * BindingsCollection.cs: Add an internal contains method that the
26223         BindingManagerBase uses to ensure bindings aren't added twice to
26224         the collection.
26225         * PropertyManager.cs: Stubbed out.
26226         * Control.cs:
26227         * ContainerControl.cs: Hook up databinding
26228         
26229 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
26231         * XplatUIOSX.cs:
26232           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
26233           Fixed Invalidate/Update chain.
26234           Fixed tons of other minor bugs (this is almost a complete rewrite).
26236 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
26238         * ComboBox.cs: do subcontrol creation when the control is created
26240 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
26242         * Label.cs: fixes image drawing (image and imagelist)
26243         * ThemeWin32Classic.cs: cache brushes
26244         
26245 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
26247         * Form.cs: Move menu drawing code to Theme class
26248         * ComboBox.cs: Move ComboBox drawing code to Theme class
26249         * MenuItem.cs: Move menu drawing code to Theme class
26250         * MenuAPI.cs: Move menu drawing code to Theme class
26251         * ThemeWin32Classic.cs: New methods
26252         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
26253         * ListBox.cs: Move Listbox drawing code to Theme class
26254         * Theme.cs: New methods
26256 2005-02-20  Peter Bartok  <pbartok@novell.com>
26258         * Control.cs:
26259           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
26260             only process mnemonics on those)
26261           - Fixed event sequence for key handling; first calling
26262             ProcessKeyEventArgs now
26263         * TextBoxBase.cs:
26264           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
26265             for processing non-character keys
26266           - Fixed WM_CHAR to generate proper event sequence before processing
26267         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
26268           generation
26270 2005-02-19  Peter Bartok  <pbartok@novell.com>
26272         * UserControl.cs: Added TextChanged event; added attributes
26273         * SizeGrip.cs: Implemented resizing and optional display of grip
26274         * Form.cs: Fixed attribute
26275         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
26276           Changed meaning of ScrollWindow bool argument; instead of the
26277           clear attribute (which will be true usually anyway), it gives the
26278           option of moving child controls as well.
26279         * XplatUIX11.cs:
26280           - Changed to match new ScrollWindow argument
26281           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
26282             now handles the implicit parent window a WM puts around us
26283         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
26284           to work)
26285         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
26286         * TreeView.cs: Adjusted to new ScrollWindow arguments
26288 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
26290         * Form.cs: Menu integration with non-client area
26291         * MenuItem.cs: Menu integration with non-client area
26292         * MenuAPI.cs: Menu integration with non-client area
26294 2005-02-18  Peter Bartok  <pbartok@novell.com>
26296         * MethodInvoker.cs: Added
26297         * MdiLayout.cs: Added
26298         * SendKeys.cs: Started implementation
26299         * ErrorIconAlignment.cs: Added
26301 2005-02-18  Peter Bartok  <pbartok@novell.com>
26303         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
26304         * Form.cs: Added handling for Menu-related Non-client messages
26306 2005-02-17  Peter Bartok  <pbartok@novell.com>
26308         * UpDownBase.cs: Fixed typo, compilation errors
26309         * DomainUpDown.cs: Fixed attribute value
26311 2005-02-16  Miguel de Icaza  <miguel@novell.com>
26313         * UpDownBase.cs: Attach entry events.
26314         Propagate events.
26315         Add ForeColor property, Focused, InterceptArrowKeys (interception
26316         does not work yet).
26318 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
26320         * Form.cs:
26321                 - Redraw non client are on Setmenu
26322                 - Calc proper menu starting point
26324 2005-02-17  Peter Bartok  <pbartok@novell.com>
26326         * Application.cs: Fixed message_filter check
26328 2005-02-17  Peter Bartok  <pbartok@novell.com>
26330         * Application.cs: Now calls registered message filters
26331         * DockStyle.cs: Fixed attribute
26332         * Form.cs: Fixed attribute
26333         * Menu.cs: Fixed attribute
26334         * ToolTip.cs: Fixed attribute
26335         * TreeNode.cs: Added missing attributes and arranged in regions
26336         * PropertyGrid.cs: Fixed signatures
26337         * TreeNodeCollection.cs: Added attributes
26338         * Splitter.cs: Added missing attributes; arranged into regions
26339         * TabPage.cs: Added missing attributes; arranged into regions
26340         * TextBoxBase.cs: Added missing attributes
26341         * TextBox.cs: Added missing attributes
26342         * ArrangeDirection.cs: Added missing attributes
26343         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
26344         * ToolBarButton.cs: Fixed attributes
26345         * AnchorStyles.cs: Fixed attribute
26346         * TrackBar.cs: Fixed attributes
26347         * TabControl.cs: Added missing attributes and arranged into regions
26348         * ToolBar.cs: Fixed attribute
26349         * StatusBar.cs: Fixed signature, organized into regions and added
26350           attributes
26351         * StatusBarPanel.cs: Fixed attributes
26352         * ContentsResizedEventArgs.cs: Implemented
26353         * ContentsResizedEventHandler.cs: Implemented
26354         * DateBoldEventArgs.cs: Implemented
26355         * DateBoldEventHandler.cs: Implemented
26356         * UpDownEventArgs.cs: Implemented
26357         * UpDownEventHandler.cs: Implemented
26358         
26359 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
26361         * Form.cs: first Menu NC refactoring
26362         * MenuAPI.cs: first Menu NC refactoring
26363         
26364 2005-02-16  Peter Bartok  <pbartok@novell.com>
26366         * ImeMode.cs: Added missing attributes
26367         * Menu.cs: Fixed attribute
26368         * GroupBox.cs: Fixed attribute
26369         * Label.cs: Fixed attribute
26370         * ColorDialog.cs (RunDialog): Removed TODO attribute
26371         * ComboBox.cs: Fixed attributes
26372         * ListControl.cs: Added missing attributes
26373         * PropertyGrid.cs: Fixed attributes
26374         * Control.cs: Fixed attributes
26375         * ListViewItem.cs: Added TypeConverter attribute
26376         * NotifyIcon.cs: Fixed attributes
26377         * ListView.cs: Fixed attributes
26378         * ButtonBase.cs: Fixed attribute
26379         * ImageList.cs: Added missing attributes
26380         * ContainerControl.cs: Fixed signature
26381         * CheckedListBox.cs: Fixed attribute; added missing attributes
26382         * Panel.cs: Fixed attributes
26383         * PropertyTabChangedEventArgs.cs: Added missing attribute
26384         * PropertyValueChangedEventArgs.cs: Added missing attribute
26385         * Binding.cs: Fixed attribute
26386         * ListViewItemConverter: Implemented ListViewSubItemConverter class
26387         * ListBox.cs: Fixed attribute; added missing attributes;
26388         * ScrollableControl.cs: Added missing attributes
26389         * PictureBox.cs: Added missing attributes; implemented missing property
26390         * DateTimePicker.cs: Added missing attributes
26391         * Theme.cs (ToolWindowCaptionHeight): Fixed type
26392         * MonthCalendar.cs: Fixed attributes
26393         * StatusBarPanel.cs: Added missing attributes
26394         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
26396 2005-02-16  Peter Bartok  <pbartok@novell.com>
26398         * TextBoxBase.cs: The previous method to enforce height yet remember
26399           the requested high was less than ideal, this is an attempt to do
26400           it better.
26401         * Control.cs: Added comment about possible problem
26402         * Copyright: Updated format
26403         * GridItemType.cs: Fixed swapped values
26405 2005-02-15  Jackson Harper  <jackson@ximian.com>
26407         * BaseCollection.cs: Use property so we never access an
26408         uninitialized list. Also initialize the list in the property.
26410 2005-02-15  Peter Bartok  <pbartok@novell.com>
26412         * GroupBox.cs (ProcessMnemonic): Implemented
26413         * Label.cs (ProcessMnemonic): Implemented
26414         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
26415           hotkeys
26417 2005-02-15  Peter Bartok  <pbartok@novell.com>
26419         * RadioButton.cs (ProcessMnemonic): Implemented
26420         * CheckBox.cs (ProcessMnemonic): Implemented
26421         * Control.cs:
26422           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
26423             handling
26424           - Added internal method to allow calling ProcessMnemonic from other
26425             controls
26426         * ContainerControl.cs:
26427           - Started support for handling validation chain handling
26428           - Implemented ProcessMnemonic support
26429           - Added Select() call to Active, to make sure the active control
26430             receives focus
26431         * Form.cs: Setting toplevel flag for Forms (this was lost in the
26432           FormParent rewrite)
26433         * ThemeWin32Classic.cs:
26434           - DrawCheckBox(): Fixed stringformat to show hotkeys
26435           - DrawRadioButton(): Fixed stringformat to show hotkeys
26436         * CommonDialog.cs: Removed WndProc override, not needed
26438 2005-02-14  Peter Bartok  <pbartok@novell.com>
26440         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
26441           missed those in the rewrite
26443 2005-02-14  Miguel de Icaza  <miguel@novell.com>
26445         * NumericUpDown.cs (Increment, ToString): Add.
26446         (DecimalPlaces): implement.
26447         
26448         Add attributes.
26449         
26450         * UpDownBase.cs: Add the designer attributes.
26452 2005-02-13  Peter Bartok  <pbartok@novell.com>
26454         * Panel.cs: Removed border_style, now in Control
26455         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
26456           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
26458 2005-02-13  Peter Bartok  <pbartok@novell.com>
26460         * MouseButtons.cs: Added missing attributes
26461         * XplatUIStructs.cs: Added enumeration for title styles
26462         * LeftRightAlignment.cs: Added missing attributes
26463         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
26464           it compatible with Graphics.FromHwnd()
26465         * SelectedGridItemChangedEventArgs.cs: Fixed property type
26466         * Keys.cs: Added missing attributes
26467         * SelectionRange.cs: Added missing attributes
26468         * SelectionRangeConverter.cs: Added
26469         * XplatUI.cs:
26470           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
26471             ReleaseMenuDC methods
26472           - Renamed ReleaseWindow to UngrabWindow
26473           - Added proper startup notice to allow version identification
26474         * Form.cs:
26475           - Added missing attributes
26476           - Removed FormParent concept
26477         * Label.cs: Removed border_style field, now in Control
26478         * RadioButton.cs: Now properly selects RadioButton when focus is
26479           received
26480         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
26481         * Control.cs:
26482           - Added missing attributes
26483           - Added borderstyle handling
26484           - Removed FormParent concept support
26485           - Fixed calls to XplatUI to match changed APIs
26486           - Fixed bug that would case us to use disposed Graphics objects
26487           - Removed unneeded internal methods
26488           - PerformLayout(): Fixed to handle DockStyle.Fill properly
26489           - SelectNextControl(): Fixed to properly check common parents
26490         * TextBoxBase.cs: Removed border_style field (now in Control)
26491         * MessageBox.cs:
26492           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
26493             fixed calculations for form size
26494           - Added support for localized strings and icons
26495           - Improved form size calculations, added border
26496         * ListView.cs: Removed border_style field (now in Control)
26497         * X11Structs.cs: Moved several structs from X11 driver here
26498         * X11Keyboard.cs: Changed debug message
26499         * Application.cs: Removed FormParent concept support
26500         * CommonDialog.cs:
26501           - Resetting end_modal flag
26502           - Removed FormParent concept support
26503         * NativeWindow.cs: Removed FormParent concept support
26504         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
26505           Client area and Non-Client whole window to allow support for WM_NC
26506           messages
26507         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
26508           prevent using it until it supports Hwnd as per Geoff Norton's request
26509         * ToolBar.cs: Fixed drawing, was not doing proper drawing
26510         * PictureBox.cs: Removed border_style field, now in Control
26511         * XplatUIWin32.cs: Added new driver methods
26513 2005-02-12  Peter Bartok  <pbartok@novell.com>
26515         * OpacityConverter.cs: Implemented
26516         * Hwnd.cs: Internal class to support drivers that need to emulate
26517           client area/non-client area window behaviour
26519 2005-02-11  Peter Bartok  <pbartok@novell.com>
26521         * KeysConverter.cs: Implemented
26523 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
26525         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
26526         * LinkLabel: Added missing attributes
26527         * MainMenu.cs: fixes ToString
26528         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
26529         * ListBox.cs: fixes event position
26530         * TrackBar.cs: adds missing attributes and events
26531         
26532 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
26534         * MenuItem.cs: Use SystemInformation and bug fixes
26535         * MenuAPI.cs: Use SystemInformation and bug fixes
26537 2005-02-09  Jackson Harper  <jackson@ximian.com>
26539         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
26540         their keystate otherwise things like VK_MENU get stuck "on".
26542 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
26544         * ListBox.cs: Fixes AddRange bug
26545         
26546 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
26548         * ProgressBar.cs
26549                 - Add missing attributes
26550                 - Add missing method
26551                 
26552         * CheckedListBox.cs: Added missing attributes
26553                 - Add missing attributes
26554                 - Remove extra method
26555         
26556         * ComboBox.cs: Added missing attributes
26557         * VScrollBar.cs: Added missing attributes
26558         * ScrollBar.cs:  Added missing attributes
26559         * ListBox.cs: Fixes signature, add missing consts
26560         * LinkArea.cs:   Added missing attributes
26561         
26563 2005-02-08  Peter Bartok  <pbartok@novell.com>
26565         * Menu.cs: Added missing attributes
26566         * MainMenu.cs: Added missing attributes
26567         * GroupBox.cs: Added missing attributes
26568         * Label.cs: Added missing attributes
26569         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
26570         * ColorDialog.cs:
26571           - Added Instance and Options properties
26572           - Added missing attributes
26573         * Cursor.cs: Made Serializable
26574         * NotifyIcon: Added missing attributes
26575         * MenuItem.cs: Added missing attributes
26576         * TextBoxBase.cs: Implemented AppendText() and Select() methods
26577         * Panel.cs: Added Missing attributes
26578         * MonthCalendar.cs: Fixed CreateParams
26580 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
26581         
26582         * LinkLabel.cs:
26583                 - Fixes signature
26584                 - Fixes issues with links
26585                 - Adds the class attributes
26587 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
26588         
26589         * ComboBox.cs:
26590                 - Fixes button when no items available in dropdown
26591                 - Fixes repainting problems
26592                 - Adds the class attributes
26593                 
26594 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
26596         * XplatUIOSX.cs: Detect the menu bar and title bar height from
26597         the current theme.  Cache these on startup.
26599 2005-02-07  Jackson Harper  <jackson@ximian.com>
26601         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
26602         the scrollbar buttons when they are depressed.
26604 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
26606         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
26607         Get the display size from the main displayid.  We currently dont
26608         support multiple display configurations.
26610 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
26612         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
26614 2005-02-07  Miguel de Icaza  <miguel@novell.com>
26616         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
26618 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
26620         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
26622 2005-02-04  Jackson Harper  <jackson@ximian.com>
26624         * ThemeWin32Classic.cs: Respect the clipping rect when
26625         drawing. Only fill the intersection of clips and rects so there
26626         isn't a lot of large fills.
26627         * ScrollBar.cs: Pass the correct clipping rect to the theme
26628         engine. Remove some debug code.
26630 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
26631         
26632         * DateTimePicker.cs:
26633                 - Fixed crash on DateTime.Parse, use Constructor instead
26635 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
26636         
26637         * MenuItem.cs:
26638         * MenuAPI.cs:
26639                 - Owner draw support (MeasureItem and DrawItem)
26641 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
26642         
26643         *  Menu.cs:
26644                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
26645                 - Fixes MenuItems.Add range
26646         * MenuItem.cs:
26647                 - MergeMenu and Clone and CloneMenu functions
26649 2005-02-03  Jackson Harper  <jackson@ximian.com>
26651         * ScrollBar.cs: Make abstract
26652         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
26653         is abstract.
26655 2005-02-03  Jackson Harper  <jackson@ximian.com>
26657         * ScrollBar.cs: First part of my scrollbar fixups. This removes
26658         all the unneeded refreshes and uses invalidates with properly
26659         computed rects.
26661 2005-02-03  Peter Bartok  <pbartok@novell.com>
26663         * ComponentModel.cs: Added
26664         * IDataGridEditingService.cs: Added
26665         * Timer.cs: Added missing attributes
26666         * ToolTip.cs: Added missing attributes
26668 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
26670         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
26672 2005-02-03  Peter Bartok  <pbartok@novell.com>
26674         * ListBox.cs: Added missing attributes
26676 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
26677         
26678         * ListBox.cs:
26679                 - Fixes font height after font change
26680                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
26681                 
26682 2005-02-02  Peter Bartok  <pbartok@novell.com>
26684         * HandleData.cs: Introduced static methods to allow class
26685           to be more self-contained and track it's own HandleData objects
26686         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
26687           HandleData to use new static methods
26689 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
26691         * Combobox.cs:
26692                 - Fixes default size and PreferredHeight
26693                 - Missing events
26694                 - ObjectCollection.Insert implementation
26695                 
26696         * ListControl.cs
26697                 - Fixes signature
26698         * ListBox.cs:
26699                 - Several fixes
26700                 - ObjectCollection.Insert implementation
26701                 - No selection after clean
26702                 - Small fixes
26704 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
26706         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
26708 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
26710         * Combobox.cs:
26711                 - Caches ItemHeight calculation for OwnerDrawVariable
26712                 - Handles dropdown properly
26713                 - Fixes several minor bugs
26715 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
26717         * ListBox.cs:
26718                 - Fixes 71946 and 71950
26719                 - Fixes changing Multicolumn on the fly
26720                 - Fixes keyboard navigation on Multicolumn listboxes
26722 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
26723         
26724         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
26725         crash reporter log.
26727 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
26729         * XplatUIOSX.cs: Allow applications to actually exit.
26731 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
26733         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
26734         their parent at creation time rather than lazily later.  Fixes a major
26735         regression we were experiencing.
26737 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
26739         * ThemeWin32Classic.cs: more date time picker painting fixes
26740         * DateTimePicker.cs: more monthcalendar drop down fixes
26741         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
26743 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
26745         * ScrollBar.cs:
26746                 - When moving the thumb going outside the control should stop the moving
26747                 - Adds the firing of missing events
26748                 - Fixes no button show if Size is not specified
26749                 - End / Home keys for keyboard navigation
26751 2005-01-30  Peter Bartok  <pbartok@novell.com>
26753         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
26754           sanity check to prevent theoretical loop
26755         * XplatUIWin32.cs (SetVisible): Removed debug output
26756         * XplatUIX11.cs (SystrayChange): Added sanity check
26757         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
26758         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
26759           behaviour, valid until the X11 client window rewrite is done
26760         * TextBox.cs (ctor): Setting proper default foreground and background
26761           colors
26763 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
26765         * Theme: Added DrawDateTimePicker to interface
26766         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
26767         * DateTimePicker.cs: Created (still needs keys and painting code)
26768         * DateTimePickerFormat.cs: added
26769         * MonthCalendar.cs: fixed CreateParams for popup window mode
26770           
26771 2005-01-29  Peter Bartok  <pbartok@novell.com>
26773         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
26774           this should also the calculations for ligher/darker
26775         * Theme.cs: Fixed defaults for ScrollBar widths/heights
26777 2005-01-29  Peter Bartok  <pbartok@novell.com>
26779         * ArrangeDirection.cs: Added
26780         * ArrangeStartingPositon.cs: Added
26781         * SystemInformation.cs: Implemented
26782         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
26783           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
26784           used by SystemInformation class
26785         * X11Strucs.cs: Added XSizeHints structure
26786         * MenuAPI.cs:
26787           - Fixed CreateParams to make sure the menu window is always visible
26788           - TrackPopupMenu: Added check to make sure we don't draw the
26789             menu offscreen
26791 2005-01-29  Peter Bartok  <pbartok@novell.com>
26793         * HandleData.cs: Added method for altering invalid area
26794         * TextBoxBase.cs: Implemented TextLength
26796 2005-01-28  Peter Bartok  <pbartok@novell.com>
26798         * XplatUIX11.cs: Improvement over last patch, not sending
26799           the WM_PAINT directly anymore, instead we scroll any pending
26800           exposed areas and let the system pick out the WM_PAINT later
26802 2005-01-28  Peter Bartok  <pbartok@novell.com>
26804         * SWF.csproj: Deleted, no longer used. Instead,
26805           Managed.Windows.Forms/SWF.csproj should be used
26806         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
26807           directly, to avoid a potential race condition with the next
26808           scroll
26810 2005-01-28  Peter Bartok  <pbartok@novell.com>
26812         * XplatUI.cs: Made class internal
26814 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
26816         * CheckedListBox.cs:
26817                 - Draw focus
26818                 - Fixed Drawing
26819                 - Missing methods and events
26821 2005-01-27  Peter Bartok  <pbartok@novell.com>
26823         * Application.cs (Run): Don't use form if we don't have one
26825 2005-01-27  Peter Bartok  <pbartok@novell.com>
26827         * TextBoxBase.cs (get_Lines): Fixed index off by one error
26829 2005-01-27  Peter Bartok  <pbartok@novell.com>
26831         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
26832         * GridItem.cs: Added; Patch by Jonathan S. Chambers
26833         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
26834         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
26835         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
26836         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
26837         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
26838         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
26839         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
26840         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
26841         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
26842         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
26844 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
26846         * Combobox.cs:
26847                 - Draw focus on Simple Combobox
26848                 - Fixes drawing issues
26849                 - fixes 71834
26851 2005-01-27  Peter Bartok  <pbartok@novell.com>
26853         * Form.cs:
26854           - Place window in default location, instead of hardcoded 0/0
26855           - Send initial LocationChanged event
26856         * Control.cs:
26857           - UpdateBounds after creation to find out where the WM placed us
26858           - Make sure that if the ParentForm changes location the Form
26859             is notified
26860         * XplatUIX11.cs: XGetGeometry will not return the coords relative
26861             to the root, but to whatever the WM placed around us.
26862             Translate to root coordinates before returning toplevel
26863             coordinates
26864         * XplatUIWin32.cs: Removed debug output
26865         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
26866           flag to GetWindowPos, to allow translation of coordinates on X11
26868 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
26870         * ListBox.cs: connect LostFocus Event
26872 2005-01-27  Peter Bartok  <pbartok@novell.com>
26874         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
26875           XplatUIX11.cs: Extended the Systray API
26876         * Form.cs: Removed debug output
26877         * Application.cs: Fixed focus assignment, always need to call
26878           XplatUI.Activate() since Form.Activate() has rules that may
26879           prevent activation
26880         * NotifyIcon.cs: Should be complete now
26881         * ToolTip.cs: Worked around possible timer bug
26883 2005-01-27  Jackson Harper  <jackson@ximian.com>
26885         * TabControl.cs:
26886         - Only invalidate the effected tabs when the
26887         selected index changes. This reduces drawing and gets rid of some
26888         flicker.
26889         - Only refresh if the tabs need to be shifted, otherwise only
26890         invalidate the slider button.
26891         - On windows the tabs are not filled to right if the slider is
26892         visible.
26893         
26894 2005-01-27  Jackson Harper  <jackson@ximian.com>
26896         * TabControl.cs: Only refresh on mouseup if we are showing the
26897         slider. Also only invalidate the button whose state has changed.
26899 2005-01-26  Peter Bartok  <pbartok@novell.com>
26901         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
26902         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
26903           and SystrayRemove() methods
26904         * XplatUIOSX.cs: Stubbed Systray methods
26905         * XplatUIX11.cs:
26906           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
26907             methods
26908           - Fixed broken XChangeProperty calls (marshalling messed up things)
26909         * X11Structs.cs: Added enums and structs required for Size hinting
26910         * NotifyIcon.cs: Added & implemented
26912 2005-01-26  Jackson Harper  <jackson@ximian.com>
26914         * TabControl.cs: Space vertically layed out tabs properly.
26916 2005-01-26  Peter Bartok  <pbartok@novell.com>
26918         * Form.cs (CreateClientParams): Always set the location to 0,0
26919           since we're a child window.
26921         * Control.cs (SetVisibleCore): Always explicitly setting the location
26922           of a toplevel window, apparently X11 doesn't like to move windows
26923           while they're not mapped.
26925 2005-01-26  Jackson Harper  <jackson@ximian.com>
26927         * TabControl.cs: Implement FillToRight size mode with vertically
26928         rendered tabs.
26930 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
26932         * ControlPaint.cs, ThemeWin32Classic.cs
26933                 - Fixes DrawFocusRectangle
26935 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
26937         * MenuAPI.cs:
26938                 - MenuBar tracking only starts when item is first clicked
26939                 - Fixes menu hidding for multiple subitems
26940                 - Unselect item in MenuBar when item Executed
26941                 - Fixes bug 71495
26943 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
26945         * ListControl.cs:
26946                 - IsInputKey for ListBox
26947         * ListBox.cs:
26948                 - Focus item
26949                 - Shift and Control item selection
26950                 - Implement SelectionMode.MultiExtended
26951                 - Fixes RightToLeft
26952         * ComboBox.cs:
26953                 - IsInputKey implemented
26954                 - Do not generate OnTextChangedEdit on internal txt changes
26955                 
26956 2005-01-23  Peter Bartok  <pbartok@novell.com>
26958         * AccessibleObject.cs: Partially implemented Select()
26959         * MonthCalendar.cs: Added missing attributes and events
26960         * Form.cs: Fixed CreateParams behaviour, now controls derived from
26961           form can properly override CreateParams.
26962         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
26963           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
26964           Control performs Invalidate & Update
26965         * NativeWindow (CreateHandle): Added special handling for Form
26966           and Form.FormParent classes to allow overriding of From.CreateParams
26967         * Control.cs:
26968           - ControlNativeWindow: Renamed 'control' variable to more intuitive
26969             name 'owner'
26970           - ControlNativeWindow: Added Owner property
26971           - Removed usage of Refresh() on property changes, changed into
26972             Invalidate(), we need to wait until the queue is processed for
26973             updates, direct calls might cause problems if not all vars for
26974             Paint are initialized
26975           - Added call to UpdateStyles() when creating the window, to set any
26976             styles that CreateWindow might have ignored.
26977           - Added support for Form CreateParent overrides to UpdateStyles()
26978         * MessageBox.cs: Removed no longer needed FormParent override stuff,
26979           CreateParams are now properly overridable
26980         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
26981           CreateParams are now properly overridable
26983 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
26985         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
26986         OnTextBoxChanged.
26988         Capture LostFocus and OnTextBoxChanged.  The later introduces a
26989         recursive invocation that I have not figured out yet.
26991         Reset the timer when not using (it was accumulating).
26994         (OnTextBoxChanged): Set UserEdit to true here to track whether the
26995         user has made changes that require validation.
26997         Reset changing to avoid loops.
26999 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
27001         * NumericUpDown.cs: Display value at startup.
27003         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
27004         ValidateEditText.
27006         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
27007         filled in.  Added some basic parsing of text.
27009         Still missing the OnXXX method overrides, and figuring out the
27010         events that must be emitted.
27012         * UpDownBase.cs: Handle UserEdit on the Text property.
27013         
27014 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
27016         * ComboBox.cs:
27017           - Fixes IntegralHeight
27018           - ToString method
27020 2005-01-21  Jackson Harper  <jackson@ximian.com>
27022         * TabControl.cs: Set the SelectedIndex property when SelectedTab
27023         is set so that the page visibility is updated and the tabs are
27024         sized correctly.
27026 2005-01-21  Jackson Harper  <jackson@ximian.com>
27028         * TabControl.cs: Use cliping rectangle for blitting. Give the
27029         theme the clipping rect so we can do clipping while
27030         drawing. Remove some debug code.
27032 2005-01-21  Jackson Harper  <jackson@ximian.com>
27034         * TabPage.cs: Add a new method so tab pages can force the tab
27035         control to recalculate the tab page sizes.
27036         * TabControl.cs: UpdateOwner needs to make the tab control recalc
27037         sizes.
27039 2005-01-20  Jackson Harper  <jackson@ximian.com>
27041         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
27043 2005-01-20  Jackson Harper  <jackson@ximian.com>
27045         * TreeView.cs: Set the bounds for nodes properly. They were
27046         getting screwed up when checkboxes were not enabled, but images
27047         were.
27049 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
27051         * ListBox.cs:
27052                 - Owner draw support
27053                 - Fixes
27054                 
27055 2005-01-20  Jackson Harper  <jackson@ximian.com>
27057         * XplatUIStructs.cs: More misc keys
27058         * X11Keyboard.cs: Ignore some control keys.
27060 2005-01-20  Jackson Harper  <jackson@ximian.com>
27062         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
27063         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
27065 2005-01-19  Peter Bartok  <pbartok@novell.com>
27067         * Control.cs: Un-selecting the control when it is loosing focus
27069 2005-01-19  Jackson Harper  <jackson@ximian.com>
27071         * TreeView.cs: Hook up to the text controls leave event so we can
27072         end editing when the users clicks outside the text box.
27073         
27074 2005-01-19  Jackson Harper  <jackson@ximian.com>
27076         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
27077         get set in the conversion array.
27079 2005-01-19  Peter Bartok  <pbartok@novell.com>
27081         * Application.cs (ModalRun): Added a call to CreateControl to ensure
27082           focus is properly set
27083         * Button.cs:
27084           - Added missing attributes
27085           - removed styles, those are already set in the base class
27086         * ButtonBase.cs:
27087           - Added missing attributes
27088           - Added clip window styles
27089         * CheckBox.cs: Added missing attributes
27090         * CommonDialog.cs:
27091           - FormParentWindow.CreateParams: Added required clip styles
27092         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
27093           also filters modifier keys
27094         * MessageBox.cs:
27095           - Added assignment of Accept and Cancel button to enable Enter
27096             and Esc keys in MessageBox dialogs
27097           - FormParentWindow.CreateParams: Added required clip styles
27098         * RadioButton.cs: Added missing attributes
27099         * TextControl.cs: No longer draws selection if control does not
27100           have focus
27101         * TextBoxBase.cs:
27102           - Now draws simple rectangle around test area to make it obvious
27103             there's a control. This is a hack until we properly support borders
27104           - A few simple fixes to support selections better, now erases selected
27105             text when typing, and resets selection when using movement keys
27107 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
27109         * UpDownBase.cs: Added some new properties.
27111         * DomainUpDown.cs: Implement a lot to get my test working.
27113 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
27115         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
27117 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
27119         * OSXStructs (WindowAttributes): Fixed csc complaints
27121 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
27123         * XplayUIOSX.cs:
27124           OSXStructs.cs: Initial refactor to move enums and consts into
27125           OSXStructs and use them in the driver for greater readability.
27127 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
27129         * XplatUIOSX.cs: Initial support for Standard Cursors.
27130         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
27132 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
27134         * ComboBox.cs: ability to change style when the ctrl is already
27135         created, missing methods and events, bug fixes, signature fixes
27137 2005-01-19  Peter Bartok  <pbartok@novell.com>
27139         * Cursors.cs (ctor): Added ctor to fix signature
27141 2005-01-18  Peter Bartok  <pbartok@novell.com>
27143         * Button.cs: Implemented DoubleClick event
27144         * ButtonBase.cs:
27145           - Fixed keyboard handling to behave like MS, where the press of
27146             Spacebar is equivalent to a mousedown, and the key release is
27147             equivalent to mouseup. Now a spacebar push will give the same
27148             visual feedback like a mouse click.
27149           - Added missing attributes
27150           - Added ImeModeChanged event
27151           - Added support for generating DoubleClick event for derived classes
27152         * CheckBox.cs:
27153           - Implemented DoubleClick event
27154           - Added missing attributes
27155         * CommonDialog.cs: Added missing attribute
27156         * ContextMenu.cs: Added missing attributes
27157         * RadioButton.cs:
27158           - AutoChecked buttons do not allow to be unselected when clicked
27159             (otherwise we might end up with no selected buttons in a group)
27160           - Added missing attributes
27161           - Implemented DoubleClickEvent
27162         * ThreadExceptionDialog.cs: Enabled TextBox code
27164 2005-01-18  Peter Bartok  <pbartok@novell.com>
27166         * Form.cs: Removed debug output
27167         * Button.cs: Added support for DoubleClick method
27169 2005-01-18  Peter Bartok  <pbartok@novell.com>
27171         * Form.cs:
27172           - Added method to parent window that allows triggering size
27173             calculations when a menu is added/removed
27174           - set_Menu: Cleaned up mess from early days of Form and Control,
27175             now properly triggers a recalc when a menu is added/removed
27176           - Added case to select form itself as focused form if no child
27177             controls exist
27178           - Added PerformLayout call when showing dialog, to ensure properly
27179             placed controls
27180         * Control.cs:
27181           - Select(): Made internal so Form can access it
27182           - Focus(): Only call Xplat layer if required (avoids loop), and sets
27183             status
27184         * Application.cs (Run): Removed hack and calls PerformLayout instead
27185           to trigger calculation when Form becomes visible
27187 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
27189         * ComboBox.cs: fixes for ownerdraw
27191 2005-01-18  Peter Bartok  <pbartok@novell.com>
27193         * TextControl.cs:
27194           - Sentinel is no longer static, each Document gets it's own, this
27195             avoids locking or alternatively overwrite problems when more
27196             than one text control is used simultaneously.
27197           - Switched to use Hilight and HilightText brushes for text selection
27199         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
27201 2005-01-18  Peter Bartok  <pbartok@novell.com>
27203         * Control.cs:
27204           - Hooked up the following events:
27205                 o ControlAdded
27206                 o ControlRemoved
27207                 o HandleDestroyed
27208                 o ImeModeChanged
27209                 o ParentChanged
27210                 o TabStopChanged
27211                 o Invalidated
27212                 o SystemColorsChanged
27213                 o ParentFontChanged
27214                 o Move
27215           - Removed debug output
27216           - Added a call to the current theme's ResetDefaults when a color change
27217             is detected
27218         * Form.cs: Now setting the proper ImeMode
27219         * Theme.cs: Defined a method to force recreation of cached resources
27220           and rereading of system defaults (ResetDefaults())
27221         * ThemeWin32Classic.cs: Added ResetDefaults() stub
27223 2005-01-17  Peter Bartok  <pbartok@novell.com>
27225         * Control.cs: Added missing attributes
27227 2005-01-17  Jackson Harper  <jackson@ximian.com>
27229         * TreeNode.cs: Implement editing. Add missing properties selected
27230         and visible.
27231         * TreeView.cs: Implement node editing. Also some fixes to use
27232         Invalidate (invalid area) instead of Refresh when selecting.
27234 2005-01-17  Peter Bartok  <pbartok@novell.com>
27236         * Control.cs:
27237           - Implemented InvokeGotFocus() method
27238           - Implemented InvokeLostFocus() method
27239           - Implemented InvokePaint() method
27240           - Implemented InvokePaintBackground() method
27241           - Implemented InvokeClick() method
27242           - Implemented FindForm() method
27243           - Implemented RectangleToClient() method
27244           - Implemented ClientToRectangle() method
27245           - Implemented ResetBackColor() method
27246           - Implemented ResetCursor() method
27247           - Implemented ResetFont() method
27248           - Implemented ResteForeColor() method
27249           - Implemented ResetImeMode() method
27250           - Implemented ResetLeftToRight() method
27251           - Implemented ResetText() method
27252           - Implemented Scale() methods
27253           - Implemented ScaleCore() method
27254           - Implemented Update() method
27255           - Removed unused variables
27256           - Stubbed AccessibilityNotifyClients and
27257             ControlAccessibleObject.NotifyClients() methods (dunno what to do
27258             with those yet)
27259           - Now setting proper default for RightToLeft property
27260           - Fixed bug in SetClientSizeCore that would cause windows to get
27261             really big
27262           - Now sending Click/DoubleClick events
27263           - Now selecting controls when left mouse button is clicked on
27264             selectable control
27265         * AccessibleEvents.cs: Added
27266         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
27267         * XplatUIOSX.cs: Stubbed UpdateWindow() method
27268         * XplatUIWin32.cs: Implemented UpdateWindow() method
27269         * XplatUIX11.cs: Implemented UpdateWindow() method
27270         * Form.cs: Removed stray semicolon causing CS0162 warning
27271         * ThemeWin32Classic.cs: Fixed unused variable warnings
27272         * ScrollableControl.cs: Now calls base method for ScaleCore
27273         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
27274           style to avoid interference with internal click handler (which is
27275           different than standard Control click handling)
27276         * RadioButton.cs:
27277           - Now unchecks all sibling radio buttons when control is
27278             selected (Fixes #68756)
27279           - Removed internal tabstop variable, using the one inherited from
27280             Control
27282 2005-01-17  Jackson Harper  <jackson@ximian.com>
27284         * NavigateEventArgs.cs: Fix base type.
27285         * LinkLabel.cs: Sig fix
27286         
27287 2005-01-17  Jackson Harper  <jackson@ximian.com>
27289         * TreeView.cs: Only invalidate the effected nodes bounds when
27290         selecting nodes.
27292 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
27294         * XplatUIWin32.cs: fixes Win32 marshaling
27295         * XplatUIX11.cs: fixes method signature
27297 2005-01-17  Peter Bartok  <pbartok@novell.com>
27299         * XplatUIX11.cs: Clean up resources when we no longer need them
27301 2005-01-17  Peter Bartok  <pbartok@novell.com>
27303         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
27304           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
27305           and DestroyCursor() methods.
27306         * Cursor.cs: Partially implemented, now supports standard cursors;
27307           still contains some debug code
27308         * Cursors.cs: Implemented class
27309         * Control.cs:
27310           - WndProc(): Added handling of WM_SETCURSOR message, setting the
27311             appropriate cursor
27312           - Implemented Cursor property
27313           - Replaced break; with return; more straightforwar and possibly
27314             faster
27315           - Now properly setting the result for WM_HELP
27316         * X11Structs.cs: Added CursorFontShape enum
27317         * XplatUIStructs.cs:
27318           - Added StdCursor enum (to support DefineStdCursor() method)
27319           - Added HitTest enum (to support sending WM_SETCURSOR message)
27320         * XplatUIX11.cs:
27321           - Now sends the WM_SETCURSOR message
27322           - Implemented new cursor methods
27323         * XplatUIOSX.cs: Stubbed new cursor methods
27324         * XplatUIWin32.cs:
27325           - Implemented new cursor methods
27326           - Added GetSystemMetrics function and associated enumeration
27328 2005-01-15  Peter Bartok  <pbartok@novell.com>
27330         * Control.cs:
27331           - WndProc(): Now handles EnableNotifyMessage
27332           - SelectNextControl(): Fixed bug where if no child or sibling
27333             controls exist we looped endlessly
27335 2005-01-14  Jackson Harper  <jackson@ximian.com>
27337         * TreeView.cs: Recalculate the tab pages when a new one is added
27338         so that the proper bounding rects are created.
27340 2005-01-14  Jackson Harper  <jackson@ximian.com>
27342         * TreeView.cs: Draw a gray box instead of a grip in the lower
27343         right hand corner when there are both horizontal and vertical
27344         scroll bars.
27346 2005-01-14  Jackson Harper  <jackson@ximian.com>
27348         * Control.cs: When erasing backgrounds use FromHwnd instead of
27349         FromHdc when there is a NULL wparam. This occurs on the X driver.
27350         * XplatUIX11.cs: Set the wparam to NULL.
27352 2005-01-13  Jackson Harper  <jackson@ximian.com>
27354         * PictureBox.cs: Implement missing methods (except ToString, need
27355         to test that on windows) and events. When visibility is changed we
27356         need to redraw the image because the buffers are killed. When size
27357         is changed refresh if the sizemode needs it.
27359 2005-01-13  Peter Bartok  <pbartok@novell.com>
27361         * Control.cs (SelectNextControl): Was using wrong method to select
27362           a control
27364 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
27366         * ComboBox.cs: fixes dropstyle
27368 2005-01-13  Peter Bartok  <pbartok@novell.com>
27370         * Form.cs:
27371           - Implemented Select() override
27372           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
27373           - Now sets keyboard focus on startup
27374         * Control.cs (SelectNextControl): Now properly handles directed=true
27375         * TextBoxBase.cs:
27376           - WndProc: Now passes tab key on to base if AcceptTabChar=false
27377           - Added (really bad) focus rectangle (mostly for testing)
27378         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
27379           to enforce redraw on focus changes
27380         * ContainerControl.cs:
27381           - Fixed detection of Shift-Tab key presses
27382           - Fixed traversal with arrow keys
27383         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
27384           gonna keep this or if it's complete yet
27385         
27386 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
27388         * ComboBox.cs: missing properties, fixes
27390 2005-01-13  Peter Bartok  <pbartok@novell.com>
27392         * Panel.cs (ctor): Setting Selectable window style to off
27393         * Splitter.cs (ctor): Setting Selectable window style to off
27394         * GroupBox.cs (ctor): Setting Selectable window style to off
27395         * Label.cs (ctor): Setting Selectable window style to off
27397 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
27399         * UpDownBase.cs (InitTimer): If the timer has been already
27400         created, enable it.
27402         Use a TextBox instead of a Label.
27404 2005-01-12  Jackson Harper  <jackson@ximian.com>
27406         * TreeView.cs: Refresh the tree after sorting the nodes. Always
27407         draw the connecting node lines (when ShowLines is true).
27408         * TreeNode.cs: The nodes index can now be updated. This is used
27409         when a node collection is sorted.
27410         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
27411         insert or an existing unsorted node collection can be sorted.
27412         
27413 2005-01-12  Peter Bartok  <pbartok@novell.com>
27415         * ContainerControl.cs: Implemented ProcessDialogKeys()
27417 2005-01-12  Peter Bartok  <pbartok@novell.com>
27419         * Control.cs:
27420           - Implemented SelectNextControl() method
27421           - Several focus related bug fixes
27422           - Fixed Docking calculations to match MS documentation and
27423             behaviour
27425 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
27427         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
27428         bug fixes
27430 2005-01-12  Peter Bartok  <pbartok@novell.com>
27432         * Control.cs:
27433           - Fixed broken Contains() method
27434           - Implemented GetNextControl() method. Finally. This is the pre-
27435             requisite for focus handling.
27437 2005-01-12  Peter Bartok  <pbartok@novell.com>
27439         * OSXStrucs.cs: Added
27441 2005-01-12  Peter Bartok  <pbartok@novell.com>
27443         * XplatUIWin32.cs:
27444           - Removed PeekMessageFlags
27445           - Implemented SetWindowStyle() method
27446         * XplatUIStructs.cs: Added PeekMessageFlags
27447         * X11Structs: Added missing border_width field to XWindowChanges struct
27448         * XplatUIX11.cs:
27449           - PeekMessage: Now throws exception if flags which are not yet
27450             supported are passed
27451           - Implemented SetWindowStyle() method
27452           - Fixed SetZOrder to handle AfterHwnd properly
27453         * XplatUI.cs: Added SetWindowStyle() method
27454         * XplatUIDriver.cs: Added SetWindowStyle() abstract
27455         * Control.cs:
27456           - Implemented UpdateStyles() method
27457           - Implemented UpdateZOrder() method
27458         * XplatUIOSX.cs: Added SetWindowStyle() stub
27460 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
27462         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
27463         button mouse).
27466 2005-01-11  Jackson Harper  <jackson@ximian.com>
27468         * TreeView.cs: Still need to draw lines to siblings even if out of
27469         the current node is out of the clip.
27471 2005-01-11  Jackson Harper  <jackson@ximian.com>
27473         * TreeView.cs: When setting the hbar/vbar/grip position use
27474         SetBounds so that perform layout is only called once. Also suspend
27475         and resume layout so layout is only done once for all controls.
27476         - Removed some debug fluff
27477         * SizeGrip.cs: Call base implmentation in overriding methods.
27478         - When visibility is changed the drawing buffers are killed so we
27479         need to redraw.
27481 2005-01-11  Jackson Harper  <jackson@ximian.com>
27483         * TreeView.cs: Calculate the open node count while drawing. This
27484         saves us an entire tree traversal for every paint operation. Use
27485         a member var for the open node count so less vars are passed around.
27487 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
27489         * MonthCalendar.cs:
27490         - fixed selection to use mousemove, not mouse polling on timer
27491         * ThemeWin32Classic.cs
27492         - removed redundant unused variable "no_more_content"
27493         
27494 2005-01-11  Peter Bartok  <pbartok@novell.com>
27496         * XplatUIX11.cs (DoEvents): Needs to return when no more events
27497           are pending, so it now calls PeekMessage instead of GetMessage;
27498           implemented a incomplete version of PeekMessage
27499         
27500 2005-01-11  Peter Bartok  <pbartok@novell.com>
27502         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
27503           I18n issues
27504         * TextBoxBase.cs: Added sending of TextChanged event
27506 2005-01-10  Jackson Harper  <jackson@ximian.com>
27508         * TreeView.cs: Try not to draw outside the clipping rectangle on
27509         each node element.
27511 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
27513         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
27515 2005-01-10  Jackson Harper  <jackson@ximian.com>
27517         * TreeView.cs:
27518         - Implement fast scrolling. Now only the newly
27519         exposed nodes are drawn and the old image is moved using the
27520         XplatUI::ScrollWindow method.
27521         - Factor in height of nodes when calculating whether or not the
27522         node is in the clipping rect.
27524 2005-01-10  Jackson Harper  <jackson@ximian.com>
27526         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
27528 2005-01-10  Peter Bartok  <pbartok@novell.com>
27530         * Application.cs: Added temporary hack to resolve all our resize
27531           required issues on startup. This will get fixed properly at
27532           some point in the future
27534 2005-01-10  Jackson Harper  <jackson@ximian.com>
27536         * SizeGrip.cs: New internal class that is used as a sizing
27537         grip control...hence the name.
27539 2005-01-10  Peter Bartok  <pbartok@novell.com>
27541         * Control.cs: Implemented proper TabIndex handling, now assigning
27542           a tabindex when a control is added to a container
27543         * GroupBox.cs (ctor): Now sets the Container style bit, required
27544           for Control.GetNextControl()
27546 2005-01-09  Jackson Harper  <jackson@ximian.com>
27548         * TextBoxBase.cs: Clear window when scrolling (fixes build).
27550 2005-01-09  Peter Bartok <pbartok@novell.com>
27552         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
27553           XplatUIX11.cs: Added ability to control ScrollWindow expose and
27554           an overload for ScrollWindow to allow only scrolling a rectangle
27556 2005-01-09  Peter Bartok <pbartok@novell.com>
27558         * Form.cs:
27559           - Implemented SetDesktopBounds method
27560           - Implemented SetDesktopLocation method
27562 2005-01-08  Jackson Harper  <jackson@ximian.com>
27564         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
27565         the node count has changed, this removes to VScroll::Refresh calls
27566         when drawing.
27568 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
27570         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
27572 2005-01-07  Jackson Harper  <jackson@ximian.com>
27574         * TreeNode.cs: Just update the single node when it is
27575         checked. Don't refresh after toggling, the Expand/Collapse already
27576         handles this.
27577         * TreeView.cs: Respect clipping a little more when drawing. Try
27578         not to redraw things that don't need to be redrawn. Just hide the
27579         scrollbars when they are no longer needed instead of removing
27580         them, so they don't have to be created again and again.
27581         
27582 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
27584         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
27585         coordinates to window space to place the caret properly, FIXED.
27586         Implement GetWindowState & SetWindowState
27588 2005-01-06  Peter Bartok <pbartok@novell.com>
27590         * Form.cs:
27591           - Implemented ClientSize property
27592           - Implemented DesktopBounds property
27593           - Implemented DesktopLocation property
27594           - Implemented IsRestrictedWindow property
27595           - Implemented Size property
27596           - Implemented TopLevel property
27597           - Implemented FormWindowState property
27598         * Control.cs:
27599           - Implemented GetTopLevel() method
27600           - Implemented SetTopLevel() method
27601         * X11Structs.cs (Atom):
27602           - Added AnyPropertyType definition
27603           - Added MapState definiton and updated XWindowAttribute struct
27604         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
27605         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
27606         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
27607         * XplatUIWin32.cs:
27608           - Implemented GetWindowState() and SetWindowState() methods
27609           - Fixed Win32GetWindowLong return type
27610         * XplatUIX11.cs:
27611           - Introduced central function for sending NET_WM messages
27612           - Implemented GetWindowState() and SetWindowState() methods
27613         * TextBoxBase.cs (set_Lines):
27614           - Now uses Foreground color for text added via Text property (Duh!)
27615           - Added code to remember programmatically requested size (fixes
27616             behaviour when Multiline is set after Size)
27617           - Added AutoSize logic
27619 2005-01-06  Jackson Harper  <jackson@ximian.com>
27621         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
27623 2005-01-06  Jackson Harper  <jackson@ximian.com>
27625         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
27626         set to less then 0.
27628 2005-01-06  Jackson Harper  <jackson@ximian.com>
27630         * ScrollableControl.cs: Lazy init the scrollbars.
27631         
27632 2005-01-06  Jackson Harper  <jackson@ximian.com>
27634         * Theme.cs: Speed up getting pens and solid brushes, by using
27635         their ARGB as a hash instead of tostring and not calling Contains.
27637 2005-01-06  Peter Bartok <pbartok@novell.com>
27639         * Form.cs:
27640           - Implemented OnActivated and OnDeactivate event trigger
27641           - Implemented Activate() method
27642           - Fixed ShowDialog() to activate the form that was active before
27643             the dialog was shown
27644         * XplatUIX11.cs:
27645           - Added global active_window var that tracks the currently active
27646             X11 window
27647           - Now always grabs Property changes from the root window to always
27648             catch changes on the active window property
27649           - Added code to PropertyNotify handler to send Active/Inactive
27650             messages when state changes. This puts X11 and Win32 en par on
27651             WM_ACTIVATE notifications (except for double notifications when
27652             the user clicks away from our modal window to another one of our
27653             windows)
27655 2005-01-05  Jackson Harper  <jackson@ximian.com>
27657         * ImageList.cs: Implment ctor
27659 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
27661         * XplatUIOSX.cs: Implement Activate/SetTopmost
27663 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
27665         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
27667 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
27669         * XplatUIOSX.cs: Implement GetActive/SetFocus.
27671 2005-01-05  Peter Bartok <pbartok@novell.com>
27673         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
27674           XplatUIOSX.cs: Added GetActive method to return the currently
27675           active window for the application (or null, if none is active)
27676         * Form.cs:
27677           - Implemented ActiveForm
27678           - Commented out owner assignment for modal dialogs (causes problems
27679             on Win32, since the owner will be disabled)
27680           - Reworked some Active/Focus handling (still incomplete)
27681         * CommonDialog.cs: Commented out owner assignment for modal dialogs
27682           (causes problems on Win32, since the owner will be disabled)
27683         * IWin32Window: Added ComVisible attribute
27685 2005-01-05  Peter Bartok <pbartok@novell.com>
27687         * ToolTip.cs (WndProc): Enable setting focus now that we have the
27688           required XplatUI functions.
27690 2005-01-05  Peter Bartok <pbartok@novell.com>
27692         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
27693           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
27694           to implement focus and activation handling; still incomplete and
27695           with debug output
27697 2005-01-04  Peter Bartok <pbartok@novell.com>
27699         * TextBoxBase.cs: Changed access level for Document property to
27700           match switch to internal for TextControl
27702 2005-01-04  Peter Bartok <pbartok@novell.com>
27704         * AccessibleObject: Added ComVisible attribute
27706 2005-01-04  Jackson Harper  <jackson@ximian.com>
27708         * X11Keyboard.cs: Remove unneeded var.
27710 2005-01-04  Jackson Harper  <jackson@ximian.com>
27712         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
27713         but PAINT.
27714         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
27715         ClientMessage. This makes apps exit cleanly (more often).
27716         
27717 2005-01-04  Jackson Harper  <jackson@ximian.com>
27719         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
27720         handling focus, return correct colors and fonts,
27721         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
27722         handle selection, horizontal scrolling, and mouse interaction.
27724 2005-01-04  Peter Bartok <pbartok@novell.com>
27726         * ICommandExecutor.cs: Added
27727         * IDataGridColumnStyleEditingNotificationService.cs: Added
27728         * IFeatureSupport.cs: Added
27729         * IFileReaderService.cs: Added
27730         * IDataObject.cs: Added ComVisible attribute
27731         * AmbientProperties.cs: Added
27732         * BaseCollection.cs: Added missing attributes
27733         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
27734         * BaseCollection.cs: Added missing attributes
27735         * Binding.cs: Added TypeConverter attribute
27736         * BindingContext.cs: Added DefaultEvent attribute
27737         * BindingsCollection.cs: Added DefaultEvent attribute
27738         * Button.cs: Added DefaultValue attribute
27739         * DragEventArgs.cs: Added ComVisible attribute
27740         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
27741         * KeyEventArgs.cs: Added ComVisible attribute
27742         * KeyPressEventArgs.cs: Added ComVisible attribute
27743         * MouseEventArgs.cs: Added ComVisible attribute
27744         * NavigateEventArgs.cs: Added
27745         * NavigateEventHandler.cs: Added
27746         * FeatureSupport.cs: Added
27747         * OSFeature.cs: Added
27748         * Theme.cs: Added abstract Version property to support OSFeature
27749         * ThemeWin32Classic.cs: Added Version property to
27750           support OSFeature.Themes
27751         * ProgressBar.cs: Removed OnPaintBackground override, not required since
27752           the proper styles to avoid background drawing are set, also doesn't
27753           match MS signature
27754         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
27755         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
27756         * ScrollEventArgs.cs: Added ComVisible attribute
27757         * SplitterEventArgs.cs: Added ComVisible attribute
27758         * AccessibleSelection.cs: Added Flags attribute
27759         * Appearance.cs: Added ComVisible attribute
27760         * Border3DSide.cs: Added ComVisible attribute
27761         * Border3DStyle.cs: Added ComVisible attribute
27762         * BorderStyle.cs: Added ComVisible attribute
27763         * DragAction.cs: Added ComVisible attribute
27764         * ErrorBlinkStyle.cs: Added
27765         * ScrollEventType.cs: Added ComVisible attribute
27766         * AnchorStyles.cs: Added Editor attribute
27767         * DockStyle.cs: Added Editor attribute
27768         * HorizontalAlignment.cs: Added ComVisible attribute
27769         * HelpEventArgs.cs: Added ComVisible attribute
27770         * PaintEventArgs.cs: Added IDisposable
27772 2005-01-04  Peter Bartok <pbartok@novell.com>
27774         * TextControl.cs: Switched Line, LineTag and Document classes to
27775           internal
27777 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
27779         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
27780         Simple mode, fixes, IntegralHeight, etc.
27782 2005-01-04  Peter Bartok <pbartok@novell.com>
27784         * TextBoxBase.cs: Using proper font variable now
27786 2005-01-04  Peter Bartok <pbartok@novell.com>
27788         * Form.cs (ShowDialog): Set parent to owner, if provided
27789         * GroupBox.cs: Removed unused vars
27790         * TextControl.cs:
27791           - Added GetHashCode() for Document and LineTag classes
27792           - Removed unused variables
27793           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
27794             to allow translation between continuous char position and line/pos
27795         * CheckBox.cs: Removed vars that are provided by base class
27796         * RadioButton.cs: Removed vars that are provided by base class, added
27797           new keyword where required
27798         * LinkLabel.cs: Added new keyword where required
27799         * Control.cs (WndProc): Removed unused variable
27800         * TextBoxBase.cs:
27801           - Finished SelectionLength property
27802           - Implemented SelectionStart property
27803           - Implemented Text property
27804           - Removed unused vars
27805         * MessageBox.cs: Added new keyword where required
27806         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
27807           WndProc signature
27808         * MenuAPI.cs: Added new keyword where required
27809         * ButtonBase.cs: Removed vars that are provided by base class, added
27810           new keyword where required
27811         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
27812           argument to double, to allow compiling with csc 2.0 (Atsushi ran
27813           into this)
27814         * Application.cs (Run): Now triggers the ThreadExit event
27815         * CommonDialog.cs: Added new keyword where required; now properly sets
27816           parent (owner) for dialog
27817         * XplatUIX11.cs: Commented out unused vars
27818         * StatusBar.cs: Fixed signature for Text property
27819         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
27821 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
27823         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
27824         TrackBar.cs, MonthCalendar.cs: remove unused vars
27826 2005-01-03  Jackson Harper  <jackson@ximian.com>
27828         * ThemeWin32Classic.cs:
27829         * X11Keyboard.cs: Remove unused vars.
27831 2005-01-03  Peter Bartok  <pbartok@novell.com>
27833         * TextBox.cs:
27834           - set_Text: Tied into TextControl
27835           - set_TextAlignment: Tied into TextControl
27836         * TextControl.cs:
27837           - Added alignment properties and implemented alignment handling
27838             and drawing (still has a bug, not generating proper expose events)
27839           - Added new Line() constructor to allow passing the line alignment
27840           - Fixed selection setting, properly handling end<start now
27841           - Added aligment considerations to RecalculateDocument()
27842         * TextBoxBase.cs:
27843           - Now properly enforces control height for single line controls
27844           - Added support for CharacterCasing
27845           - Added IsInputKey override
27846           - Fixed Keys.Enter logic
27847           - Added SetBoundsCore override
27848           - Fixed mouse selection handling
27850 2005-01-03  Jackson Harper  <jackson@ximian.com>
27852         * TreeView.cs:
27853           - Collapse and uncheck all nodes when CheckBoxes is disabled.
27854           - Checkboxes are always aligned to the bottom of the node,
27855           regardless of item height.
27856           - Use the node bounds to draw the text so we can center it when
27857           the item height is greater then the font height.
27858           - Node::Bounds are only the text part of the node.
27859         * TreeNode.cs: New method to combine collapsing and unchecking all
27860           nodes recursively.
27862 2005-01-02  Jackson Harper  <jackson@ximian.com>
27864         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
27865         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
27866         tree when a check is changed. TODO: Only refresh the checked node.
27868 2004-12-30  Jackson Harper  <jackson@ximian.com>
27870         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
27871         * TreeNode.cs: When collapsing make sure to never collapse the
27872         root node.
27874 2004-12-29  Jackson Harper  <jackson@ximian.com>
27876         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
27877         
27878 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
27880         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
27882 2004-12-28  Peter Bartok  <pbartok@novell.com>
27884         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
27885           not yet assigned
27887 2004-12-28  Peter Bartok  <pbartok@novell.com>
27889         * Control.cs (WndProc): Added WM_HELP handler, now generates
27890           HelpRequested event
27891         * Form.cs: Added HelpButton property and required support code
27892         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
27894 2004-12-28  Peter Bartok  <pbartok@novell.com>
27896         * CommonDialog.cs:
27897           - Made DialogForm.owner variable internal
27898           - Added check to ensure owner form is set before setting
27899             owner properties in CreateParams
27901 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
27903         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
27904           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
27905           GetCursorPos.  Fix major visibility issues.  Rework the windowing
27906           system to support borderless/titleless windows (implements menus).
27907           Fix GetWindowPos.  Implement initial background color support for
27908           views.
27910 2004-12-28  Peter Bartok  <pbartok@novell.com>
27912         * Form.cs (get_CreateParams): Make sure we have an owner before using
27913           the owner variable. Implement proper default if no owner exists
27915 2004-12-28  Peter Bartok  <pbartok@novell.com>
27917         * In preparation for making Managed.Windows.Forms the default build target
27918           for System.Windows.Forms, the following stubbed files were added.
27919           Dialogs are currently being implemented by contributors and are only
27920           short-term place holders.
27921         * ColorDialog.cs: Initial check-in (minmal stub)
27922         * DataGrid.cs: Initial check-in (minimal stub)
27923         * DataGridLineStyle.cs: Initial check-in (minimal stub)
27924         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
27925         * DataGridTableStyle.cs: Initial check-in (minimal stub)
27926         * FontDialog.cs: Initial check-in (minimal stub)
27927         * FileDialog.cs: Initial check-in (minimal stub)
27928         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
27929         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
27930         * OpenFileDialog: Initial check-in (minimal stub)
27931         * IComponentEditorPageSite.cs: Initial check-in
27932         * Splitter.cs: Initial check-in (for Jackson)
27933         * SplitterEventArgs.cs: Initial check-in (for Jackson)
27934         * SplitterEventHandler.cs: Initial check-in (for Jackson)
27935         * TextBox.cs: Initial check-in; still needs some wiring to
27936           TextControl backend
27937         * Form.cs: Implemented ControlBox property
27938         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
27939         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
27940         * TextControl.cs: Added selection functionality; added todo header
27941         * TextBoxBase.cs:
27942           - Implemented Lines property
27943           - Implemented TextHeight property
27944           - Implemented SelectedText property
27945           - Implemented SelectionLength property
27946           - Implemented SelectAll method
27947           - Implemented ToString method
27948           - Removed and cleaned up some debug code
27949           - Implemented (still buggy) mouse text selection
27951 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
27953         * ComboBox.cs: Complete DropDownList implementation, fixes.
27955 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
27957         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
27958         * ComboBoxStyle.cs: ComboBoxStyle enum
27959         * ComboBox.cs: Initial work on ComboBox control
27961 2004-12-21  Peter Bartok  <pbartok@novell.com>
27963         * Control.cs (ctor, CreateParams): Moved setting of is_visible
27964           forward so that anything that creates a window gets the default,
27965           also no longer uses Visible property in CreateParams to avoid
27966           walking up the parent chain and possibly get the wrong visible
27967           status. Fixed IsVisible to no longer walk up to the parent.
27969 2004-12-21  Peter Bartok  <pbartok@novell.com>
27971         * Form.cs (ShowDialog): Unset modality for the proper window
27973 2004-12-20  Peter Bartok  <pbartok@novell.com>
27975         * CommonDialog.cs: Initial check-in
27977 2004-12-20  Peter Bartok  <pbartok@novell.com>
27979         * Control.cs (Visible): Now uses the parent window instead of the
27980           client area window for the property
27982         * Form.cs
27983           - ShowDialog(): Now uses the proper window for modality
27984           - The default visibility state for the form parent is now false. This
27985             will prevent the user from seeing all the changes to the form and
27986             its controls before the application hits Application.Run()
27987           - Removed some stale commented out code
27989         * NativeWindow.cs:
27990           - Added FindWindow() method to have a method to check for existence
27991             of a window handle
27992           - Added ability to override default exception handling (for example
27993             when debugging with VS.Net; to do this the ExternalExceptionHandler
27994             define must be set
27995           - Removed some useless debug output
27997         * XplatUIX11.cs:
27998           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
27999             not working as expected
28000           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
28001             property to allow switching back to the modal window if focus is
28002             given to another one of our windows (Application Modal)
28003           - Now only sets override_redirect if we create a window
28004             without WS_CAPTION
28005           - Moved EventMask selection before mapping of newly created window
28006             so we can catch the map event as well
28007           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
28008           - Added various Atom related DllImports
28009           - Implemented Exit() method
28010           - .ctor() : No longer shows window if WS_VISIBLE is not defined
28011             in the CreateParams
28013         * MessageBox.cs: Now properly deals with the FormParent window by
28014           providing an override the FormParent CreateParams property to
28015           set as POPUP instead of OVERLAPPED window.
28017 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
28019         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
28020         Minor code cleanup.
28022 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
28023         
28024         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
28026 2004-12-18  Peter Bartok  <pbartok@novell.com>
28028         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
28029           implementing SetModal() method
28031 2004-12-18  Peter Bartok  <pbartok@novell.com>
28033         * X11Structs.cs (XGCValues): Fixed type of function element
28034         * XplatUI.cs: Added ScrollWindow() method
28035         * XplatUIDriver.cs: Added ScrollWindow() abstract
28036         * XplatUIWin32.cs: Implemented ScrollWindow() method
28037         * XplatUIX11.cs: Implemented ScrollWindow() method
28038         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
28040 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
28042         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
28043         Some more keyboard support (INCOMPLETE)
28045 2004-12-17  Peter Bartok  <pbartok@novell.com>
28047         * TextControl.cs:
28048         - Added color attribute to line tags.
28049         - Added color argument to all functions dealing with tags
28050         - Added color argument support to various functions
28051         - Fixed miss-calculation of baseline/shift in certain circumstances
28053         * TextBoxBase.cs: Added new color option to test code
28055 2004-12-17  Jackson Harper  <jackson@ximian.com>
28057         * TreeNode.cs:
28058         * MonthCalendar.cs: Signature fixes
28060 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
28062         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
28063         keyboard event moved it.  Create a new graphics context for each paint resolves this
28065 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
28067         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
28068         Make caret exist and go blink blink.  Initial keyboard support.
28069         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
28070         works.
28072 2004-12-17  Jackson Harper  <jackson@ximian.com>
28074         * XplatUIStructs.cs: Updated set of virtual keycodes.
28075         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
28077 2004-12-17  Jackson Harper  <jackson@ximian.com>
28079         * XplatUIX11.cs: Prune old keyboard code.
28081 2004-12-17  Jackson Harper  <jackson@ximian.com>
28083         * XplatUIX11.cs: When generating mouse wparams get the modifier
28084         keys from the ModifierKeys property.
28086 2004-12-17  Jackson Harper  <jackson@ximian.com>
28088         * X11Keyboard.cs: Send up/down input when generating
28089         messages. Remove some unused vars.
28091 2004-12-17  Jackson Harper  <jackson@ximian.com>
28093         * TabControl.cs:
28094         * TreeView.cs: get rid of warnings.
28096 2004-12-17  Jackson Harper  <jackson@ximian.com>
28098         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
28100 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
28102         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
28103           CheckedListBox.cs: Implementation
28105 2004-12-17  Peter Bartok  <pbartok@novell.com>
28107         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
28109 2004-12-16  Peter Bartok  <pbartok@novell.com>
28111         * TextControl.cs:
28112           - InsertCharAtCaret(): Fixed start pos fixup
28113           - CaretLine_get: No longer derives the line from the tag, the tag
28114             could be stale if lines in the document have been added or deleted
28115           - RebalanceAfterDelete(): Fixed bug in balancing code
28116           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
28117           - Line.Streamline(): Now can also elminate leading empty tags
28118           - DumpTree(): Added a few more tests and prevented exception on
28119             uninitialized data
28120           - Added Debug section for Combining lines
28121           - Delete(): Now copies all remaining properties of a line
28122           
28123         * TextBoxBase.cs:
28124           - Left mousebutton now sets the caret (and middle button still acts
28125             as formatting tester, which must go away soon)
28126           - Added Debug section for Deleting/Combining lines
28127           - Fixed calculations for UpdateView after Combining lines
28129 2004-12-16  Peter Bartok  <pbartok@novell.com>
28131         * TextControl.cs: Now properly aligns text on a baseline, using the
28132           new XplatUI.GetFontMetrics() method. Simplified several calculations
28133         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
28134           defined
28136 2004-12-16  Peter Bartok  <pbartok@novell.com>
28138         * XplatUI.cs: Added GetFontMetrics() method
28139         * XplatUIDriver.cs: Added GetFontMetrics() abstract
28140         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
28141           into libgdiplus, our private GetFontMetrics function
28142         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
28143         * XplatUIWin32.cs: Implemented GetFontMetrics() method
28145 2004-12-16  Jackson Harper  <jackson@ximain.com>
28147         * XplatUIStruct.cs: Add enum for dead keys
28148         * X11Keyboard.cs: Map and unmap dead keys.
28150 2004-12-16  Jackson Harper  <jackson@ximian.com>
28152         * X11Keyboard.cs: Detect and use the num lock mask.
28154 2004-12-16  Peter Bartok  <pbartok@novell.com>
28156         * Control.cs (CreateGraphics): Added check to make sure the
28157           handle of the window exists before calling Graphics.FromHwnd()
28159 2004-12-16  Peter Bartok  <pbartok@novell.com>
28161         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
28162           contains a lot of code that's not supposed to be there for the
28163           real thing, but required for developing/testing the textbox
28164           backend.
28166 2004-12-16  Peter Bartok  <pbartok@novell.com>
28168         * TextControl.cs:
28169         - Fixed Streamline method
28170         - Added FindTag method to Line
28171         - Added DumpTree method for debugging
28172         - Added DecrementLines() method for deleting lines
28173         - Fixed UpdateView to update the cursor to end-of-line on single-line
28174           updates
28175         - Added PositionCaret() method
28176         - Fixed MoveCaret(LineDown) to move into the last line, too
28177         - Added InsertChar overload
28178         - Fixed InsertChar tag offset calculations
28179         - Added DeleteChar() method
28180         - Added Combine() method for folding lines
28181         - Fixed Delete() method, no longer allocates wasted Line object and
28182           now copies all properties when swapping nodes
28183         - Delete() method now updates document line counter
28185 2004-12-15  Jackson Harper  <jackson@ximian.com>
28187         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
28188         * X11Keyboard.cs: Expose the currently selected modifier keys
28189         through a property.
28191 2004-12-15  Peter Bartok  <pbartok@novell.com>
28193         * TextControl.cs: Initial check-in. Still incomplete
28195 2004-12-15  Jackson Harper  <jackson@ximian.com>
28197         * TreeNode.cs:
28198         * TreeView.cs: Fix build on csc (second time today ;-))
28200 2004-12-15  Jackson Harper  <jackson@ximian.com>
28202         * TreeView.cs: Store the treenodes plus/minus box bounds when it
28203         is calculated and use this for click testing.
28204         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
28206 2004-12-15  Jackson Harper  <jackson@ximian.com>
28208         * TreeView.cs: Pass the nodes image index to the image list when
28209         drawing that image.
28211 2004-12-15  Jackson Harper  <jackson@ximian.com>
28213         * X11Keyboard.cs: Set messages hwnd.
28214         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
28215         post_message calls.
28217 2004-12-15  Jackson Harper  <jackson@ximian.com>
28219         * X11Keyboard.cs: Fix to compile with csc.
28220         
28221 2004-12-15  Jackson Harper  <jackson@ximian.com>
28223         * X11Structs.cs: Add key mask values
28224         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
28225         * X11Keyboard.cs: New file - Extrapolates and interpolates key
28226         down/up foo into WM_CHAR foo
28227         * KeyboardLayouts.cs: Common keyboard layouts
28228         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
28229         post messages into the main queue.
28231 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
28233         * Button.cs: implement ProcessMnemonic
28234         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
28235           brushes everytime
28236         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
28237         * ButtonBase.cs: Show HotkeyPrefix (not the &)
28239 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
28240         
28241         * MonthCalendar.cs: Implemented click-hold for next/previous month
28242           and date selection
28243           
28244 2004-12-11  Peter Bartok  <pbartok@novell.com>
28246         * X11Structs.cs:
28247           - Added XKeyboardState (moved from XplatUIX11.cs)
28248           - Added XCreateGC related enums and structures
28249           - Added GXFunction for XSetFunction
28251         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
28253         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
28254           CaretVisible() calls
28256         * ToolTip.cs: Added code to prevent stealing focus from app windows
28258         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
28259           DestroyCaret, SetCaretPos and CaretVisible)
28261         * XplatUIX11.cs:
28262           - Added implementation for caret functions
28263           - Moved hover variables into a struct, to make it a bit easier
28264             on the eyes and to debug
28265           - Removed XKeyboardState (moved to XplatUIX11.cs)
28266           - Moved Keyboard properties into the properties region
28268         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
28269           call to get a graphics context for our control
28271         * XplatUIOSX.cs: Added empty overrides for the new caret functions
28273         * TreeView.cs: Fixed bug. No matter what color was set it would always
28274           return SystemColors.Window
28276         * XplatUIWin32.cs: Implemented caret overrides
28278 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
28280         * ListBox.cs: fire events, implement missing methods and properties,
28281         sorting.
28283 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
28285         * MonthCalendar.cs: invalidation bug fixing
28286         * ThemeWin32Classic.cs: paint fixing
28288 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
28290         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
28291         prepare the CGContextRef there now.
28293 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
28295         * MonthCalendar.cs:
28296           - optimisationL only invalidate areas that have changed
28297         * ThemeWin32Classic.cs:
28298           - only paint parts that intersect with clip_area
28300 2004-12-09  Peter Bartok  <pbartok@novell.com>
28302         * Application.cs: Undid changes from r37004 which cause problems
28303         on X11
28305 2004-12-09  Ravindra  <rkumar@novell.com>
28307         * ToolBar.cs: Added support for displaying ContextMenu
28308         attached to a button on ToolBar.
28309         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
28310         property.
28312 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
28314         * Label.cs: autosize works in text change and removes unnecessary
28315         invalidate
28317 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
28319         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
28320         remove warnings
28322 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
28324         * XplatUIOSX.cs: Added mouse move/click/grab support
28325         Remove some debugging WriteLines not needed anymore.
28326         Add window resizing/positioning.
28327         Fix visibility on reparenting.
28329 2004-12-08  Peter Bartok  <pbartok@novell.com>
28331         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
28333 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
28335         * XplatUIOSX.cs: Initial checkin
28336         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
28338 2004-12-03  Ravindra <rkumar@novell.com>
28340         * ListView.cs: Added some keybindings and fixed scrolling.
28341         ScrollBars listen to ValueChanged event instead of Scroll
28342         Event. This would let us take care of all changes being
28343         done in the scrollbars' values programmatically or manually.
28344         * ListView.cs (CanMultiselect): Added a check for shift key.
28345         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
28346         * ListViewItem.cs (Clone): Fixed. We need to make a copy
28347         of ListViewSubItemCollection as well.
28349 2004-12-06  Peter Bartok <pbartok@novell.com>
28351         * Control.cs (Parent): Added check and exception to prevent
28352         circular parenting
28354 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
28356         * ListBox.cs: implemented clipping, selection single and multiple,
28357         bug fixing
28359 2004-12-03  Ravindra <rkumar@novell.com>
28361         * ListView.cs (ListView_KeyDown):
28362         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
28363         when CTRL key is pressed.
28364         * ListViewItem.cs (Selected): Fixed setting the property.
28366 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
28368         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
28370         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
28371         MinimizeBox, ShowInTaskbar, TopMost properties.
28373         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
28374         will be implemented).
28376 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
28378         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
28380         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
28381         tests.
28382         
28383         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
28384         
28385         * TreeView.cs: BackColor is Colors.Window.
28387 2004-12-01  Jackson Harper  <jackson@ximian.com>
28389         * TreeView.cs: When resizing the tree if the user is making it
28390         smaller we don't get expose events, so we need to handle adding
28391         the horizontal scrollbar in the size changed handler as well as
28392         the expose handler.
28394 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
28396         * DrawItemState.cs: fixes wrong enum values
28398 2004-12-01  Jackson Harper  <jackson@ximian.com>
28400         * TreeView.cs: Resize the hbar as well as the vbar on resize.
28402 2004-12-01  Jackson Harper  <jackson@ximian.com>
28404         * NodeLabelEditEventArgs.cs:
28405         * NodeLabelEditEventHandler.cs:
28406         * OpenTreeNodeEnumerator.cs:
28407         * TreeNode.cs:
28408         * TreeNodeCollection.cs:
28409         * TreeView.cs:
28410         * TreeViewAction.cs:
28411         * TreeViewCancelEventArgs.cs:
28412         * TreeViewCancelEventHandler.cs:
28413         * TreeViewEventArgs.cs:
28414         * TreeViewEventHandler.cs: Initial implementation.
28416 2004-12-01  Ravindra <rkumar@novell.com>
28418         * ListView.cs (CalculateListView): Fixed scrolling related
28419         calculations. Also, removed some debug statements from other
28420         places.
28421         * ListViewItem.cs: Changed access to 'selected' instance variable
28422         from private to internal.
28423         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
28425 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
28427         * ThemeWin32Classic.cs: remove cache of brush and pens for
28428         specific controls and use the global system, fixes scrollbutton
28429         bugs (for small sizes, disabled, etc)
28430         
28431         * ScrollBar.cs: does not show the thumb for very small controls
28432         (as MS) and allow smaller buttons that the regular size
28434 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
28436         * UpDownBase.cs: Add abstract methods for the interface.
28437         Add new virtual methods (need to be hooked up to TextEntry when it
28438         exists).
28439         Add override methods for most features.
28440         Computes the size, forces the height of the text entry.
28442         * NumericUpDown.cs: Put here the current testing code.
28444         * Set eol-style property on all files that do not have mixed line
28445         endings, to minimize the future problems.  There are still a few
28446         files with mixed endings, and someone should choose whether they
28447         want to move it or not.
28449 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
28451         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
28452         System.Colors
28453         
28454 2004-11-30  Ravindra <rkumar@novell.com>
28456         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
28457         drawing and replaced use of SystemColors by theme colors.
28458         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
28459         * ListView.cs (ListViewItemCollection.Add): Throw exception when
28460         same ListViewItem is being added more than once.
28462 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
28464         * MonthCalendar.cs:
28465           - ControlStyles love to make the control not flicker
28466           
28467 2004-11-30  Peter Bartok  <pbartok@novell.com>
28469         * CharacterCasing.cs: Added
28471 2004-11-29  Peter Bartok  <pbartok@novell.com>
28473         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
28474           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
28475           I am removing these files as they conflict with already completed
28476           work. While it is fantastic to get contributions to MWF, I
28477           respectfully ask that everyone please coordinate their contributions
28478           through mono-winforms-list or #mono-winforms at this time. We're
28479           explicitly avoiding stubbing and don't want controls that don't have
28480           their basic functionality implemented in svn. Please also see
28481           http://www.mono-project.com/contributing/winforms.html
28484 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
28486         * Application.cs (ModalRun): Don't hang after exit.
28488         * Theme.cs: New TreeViewDefaultSize property.
28490         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
28491         with less hardcoded SystemColors constant.
28492         Implemented TreeViewDefaultSize.
28494         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
28495         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
28498 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
28500         * MonthCalendar.cs:
28501           - Fix NextMonthDate and PrevMonthDate click moving calendar
28503 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
28505         * MonthCalendar.cs:
28506           - Fix usage of ScrollChange Property when scrolling months
28508 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
28510         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
28511          - Fixes menu destroying
28512          - Support adding and removing items on already created menus
28514 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
28516         * MonthCalendar.cs:
28517           - Re-worked all bolded dates handling to match win32
28518         * ThemeWin32Classic.cs:
28519           - Fixed rendering with bolded dates
28521 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
28523         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
28524         - Horizontal scroolbar
28525         - Multicolumn
28526         - Fixes
28529 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
28531         * MonthCalendar.cs:
28532           - Fix Usage of MaxSelectionCount from SelectionRange
28533           - Fixed Shift + Cursor Selection
28534           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
28535           - Fixed normal cursor selection to be compat with win32
28536           - Fixed Shift + Mouse Click selection
28538 2004-11-24  Peter Bartok <pbartok@novell.com>
28540         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
28541         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
28542         * XplatUIX11.cs:
28543           - CreatedKeyBoardMsg now updates keystate with Alt key
28544           - Added workaround for timer crash to CheckTimers, Jackson will
28545             develop a proper fix and check in later
28546           - Implemented DispatchMessage
28547           - Removed calling the native window proc from GetMessage (call
28548             now moved to DispatchMessage)
28550         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
28551           the keydata (Fixes bug #69831)
28553         * XplatUIWin32.cs:
28554           - (DispatchMessage): Switched to return IntPtr
28555           - Added DllImport for SetFocus
28557 2004-11-24  Ravindra <rkumar@novell.com>
28559         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
28560         background drawing.
28561         * ListViewItem.cs: Fixed various properties, calculations
28562         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
28563         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
28564         and some internal properties. Fixed MouseDown handler and Paint
28565         method.
28567 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
28569         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
28571 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
28573         * ContainerControl.cs: correct accidental check in of local changes
28575 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
28577         * ThemeWin32Classic.cs:
28578                 - Fixed Drawing Last month in grid (sometimes not showing)
28579         * MonthCalendar.cs:
28580                 - Fixed title width calculation bug (makeing title small)
28582 2004-11-23  Peter Bartok <pbartok@novell.com>
28584         * XplatUIX11.cs:
28585           - Added generation of WM_MOUSEHOVER event
28586           - Added missing assignment of async_method atom
28587           - Fixed WM_ERASEBKGND; now only redraws the exposed area
28589 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
28591         * ThemeWin32Classic.cs:
28592                 - Fixed Drawing of today circle when showtodaycircle not set
28593                 - fixed drawing of first and last month in the grid (gay dates)
28594         * MonthCalendar.cs:
28595                 - Fixed Drawing of today circle
28596                 - Fixed drawing of grady dates
28597                 - Fixed HitTest for today link when ShowToday set to false
28598                 - Fixed DefaultSize to obey ShowToday
28600 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
28602         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
28603         * System.Windows.Forms/Theme.cs
28604         * MonthCalendar.cs: added for MonthCalendar
28605         * SelectionRange.cs: added for MonthCalendar
28606         * Day.cs: added for MonthCalendar: added for MonthCalendar
28607         * DateRangeEventArgs.cs: added for MonthCalendar
28608         * DateRangeEventHandler.cs: added for MonthCalendar
28610 2004-11-22  Ravindra <rkumar@novell.com>
28612         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
28613         property.
28615 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
28617         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
28618         event handler.
28619         
28620         * NumericUpDown.cs: Added new implementation.
28621         * UpDownBase.cs: Added new implementation.
28623         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
28624         implementations.
28625         
28626         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
28627         implementations.
28629         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
28630         methods.
28632 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
28634         * Timer.cs  (Dispose): Should call the base dispose when
28635         overriding.
28637 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
28639         * ScrollBar.cs: updates thumb position when max, min or increment
28640         is changed
28642 2004-11-21  Ravindra <rkumar@novell.com>
28644         * ListView.cs: Implemented item selection, activation and
28645         column header style. Fixed properties to do a redraw, if
28646         required. Added support for MouseHover, DoubleClick, KeyDown
28647         and KeyUp event handling and some minor fixes.
28648         * ListViewItem.cs: Fixed constructor.
28649         * ThemeWin32Classic.cs: Improved drawing for ListView.
28651 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
28653         * ThemeWin32Classic.cs: initial listbox drawing code
28654         * DrawMode.cs: new enumerator
28655         * ListControl.cs: stubbed class
28656         * ListBox.cs: initial implementation
28657         * Theme.cs: new methods definitions
28658         * SelectionMode.cs: new enumerator
28660 2004-11-17  Peter Bartok  <pbartok@novell.com>
28662         * XplatUIWin32.cs: Added double-click events to the class style
28663         * Control.cs (WndProc):
28664           - Added handling of click-count to MouseDown/ MouseUp events.
28665           - Added handling of middle and right mouse buttons
28666           - Removed old debug code
28668 2004-11-17  Jackson Harper  <jackson@ximian.com>
28670         * XplatUIX11.cs: Use the new Mono.Unix namespace.
28672 2004-11-17  Ravindra <rkumar@novell.com>
28674         * ListView.cs: Added event handling for MouseMove/Up/Down.
28675         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
28676         * ThemeWin32Classic.cs: We need to clear the graphics context and
28677         draw column header in a proper state.
28680 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
28682         *  Menu.cs: fixes signature
28684 2004-11-16  Peter Bartok  <pbartok@novell.com>
28686         * XplatUIX11.cs (GetMessage): Implemented generation of
28687           double click mouse messages
28689 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
28691         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
28692         not by menu
28694 2004-11-11  Peter Bartok  <pbartok@novell.com>
28696         * HandleData.cs: Added Visible property
28697         * XplatUIX11.cs (IsVisible): Now uses Visible property from
28698           HandleData
28699         * XplatUIX11.cs: Removed old debug leftovers
28700         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
28701         * Control.cs (WndProc): Removed old debug leftovers,
28702           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
28703           needed WM_SIZE handling
28705 2004-11-11  Jackson Harper  <jackson@ximian.com>
28707         * OwnerDrawPropertyBag.cs:
28708         * TreeViewImageIndexConverter.cs: Initial implementation
28710 2004-11-10  Jackson Harper  <jackson@ximian.com>
28712         * ThemeWin32Classic.cs:
28713         * TabControl.cs: instead of moving tabs by the slider pos just
28714         start drawing at the tab that is offset by the slider. This way
28715         scrolling always moves by exactly one tab.
28717 2004-11-10  Jackson Harper  <jackson@ximian.com>
28719         * TabControl.cs: You can only scroll left when the slider has
28720         already ben moved right.
28721         
28722 2004-11-10  Jackson Harper  <jackson@ximian.com>
28724         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
28725         the clip area.
28726         
28727 2004-11-10  Jackson Harper  <jackson@ximian.com>
28729         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
28730         clip area.
28731         
28732 2004-11-09  Jackson Harper  <jackson@ximian.com>
28734         * TabControl.cs (CalcXPos): New helper method so we can determine
28735         the proper place to start drawing vertical tabs.
28736         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
28737         
28738 2004-11-09  Jackson Harper  <jackson@ximian.com>
28740         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
28741         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
28742         and Bottom, left and right are illegal values for this and
28743         multiline is enabled when the alignment is set to left or right.
28744         (DrawTab): Each alignment block should draw the text itself now
28745         because Left requires special love. Also add rendering for Left
28746         aligned tabs.
28747         
28748 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
28750         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
28751         does not destroy the windows, removes debugging messages
28753 2004-11-09  jba  <jba-mono@optusnet.com.au>
28755         * ThemeWin32Classic.cs
28756         (DrawButtonBase): Fix verticle text rect clipping in windows
28757         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
28758         rendering and incorrect text rect clipping
28759         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
28760         rendering and incorrect text rect clipping
28761         
28762 2004-11-08  Jackson Harper  <jackson@ximian.com>
28764         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
28765         bottom when they are bottom aligned so the bottoms of the tabs get
28766         displayed.
28767         * TabControl.cs (DropRow): Move rows up instead of down when the
28768         tab control is bottom aligned.
28770 2004-11-08 13:59  pbartok
28772         * XplatUIX11.cs:
28773           - Added handling for various window styles
28774           - Added handling for popup windows
28775           - Added SetTopmost handling
28777 2004-11-08 13:55  pbartok
28779         * XplatUIWin32.cs:
28780           - Added argument to SetTopmost method
28781           - Fixed broken ClientToScreen function
28783 2004-11-08 13:53  pbartok
28785         * XplatUIStructs.cs:
28786           - Added missing WS_EX styles
28788 2004-11-08 13:53  pbartok
28790         * XplatUI.cs, XplatUIDriver.cs:
28791           - Added argument to SetTopmost
28793 2004-11-08 13:52  pbartok
28795         * X11Structs.cs:
28796           - Added XSetWindowAttributes structure
28797           - Improved XWindowAttributes structure
28798           - Added SetWindowValuemask enum
28799           - Added window creation arguments enum
28800           - Added gravity enum
28801           - Added Motif hints structure
28802           - Added various Motif flags and enums
28803           - Added PropertyMode enum for property functions
28805 2004-11-08 13:50  pbartok
28807         * Form.cs:
28808           - Fixed arguments for updated SetTopmost method
28810 2004-11-08 13:49  pbartok
28812         * ToolTip.cs:
28813           - Fixed arguments for updated SetTopmost function
28814           - Fixed usage of PointToClient
28816 2004-11-08 13:44  pbartok
28818         * MenuAPI.cs:
28819           - Added Clipping of children and siblings
28821 2004-11-08 13:41  pbartok
28823         * MainMenu.cs:
28824           - Removed SetMenuBarWindow call. We do this in Form.cs
28826 2004-11-08 13:40  jackson
28828         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
28829           scrolling jimmi in the correct location with bottom aligned tabs
28831 2004-11-08 13:36  pbartok
28833         * ContainerControl.cs:
28834           - Implemented BindingContext
28835           - Implemented ParentForm
28837 2004-11-08 12:46  jackson
28839         * TabControl.cs: Put bottom rendered tabs in the right location
28841 2004-11-08 07:15  jordi
28843         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
28844           removes dead code
28846 2004-11-05 17:30  jackson
28848         * TabControl.cs: When selected tabs are expanded make sure they
28849           don't go beyond the edges of the tab control
28851 2004-11-05 14:57  jackson
28853         * TabControl.cs: Reset show_slider so if the control is resized to
28854           a size where it is no longer needed it's not displayed anymore
28856 2004-11-05 13:16  jackson
28858         * TabControl.cs: Make tab pages non visible when added to the
28859           control
28861 2004-11-05 12:42  jackson
28863         * TabControl.cs: Implement SizeMode.FillToRight
28865 2004-11-05 12:16  jackson
28867         * Control.cs: Do not call CreateHandle if the handle is already
28868           created
28870 2004-11-05 11:46  jackson
28872         * TabControl.cs: Remove superflous call to CalcTabRows
28874 2004-11-05 09:07  jackson
28876         * XplatUIX11.cs: Update for Mono.Posix changes
28878 2004-11-05 07:00  ravindra
28880         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
28881           scrolling.
28883 2004-11-04 22:47  jba
28885         * ThemeWin32Classic.cs:
28886           - Fix Button rendering for FlatStyle = Flat or Popup
28887           - Fix RadioButton and CheckBox rendering when Appearance = Button
28888             (normal and flatstyle).
28889           - Correct outer rectangle color when drawing focus rectangle
28890           - Adjust button bounds to be 1 px smaller when focused
28891           - Make button not draw sunken 3d border when pushed (windows compat)
28892           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
28893           - Offset the text in RadioButton and Checkbox when being rendered as
28894           a button.
28895           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
28896           radiobuttons
28897           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
28898           - Fixed disabled text rendering for normally rendered radiobuttons
28900 2004-11-04 10:26  jackson
28902         * TabControl.cs: Recalculate tab rows when resizing
28904 2004-11-04 07:47  jordi
28906         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
28907           collection completion, drawing issues, missing features
28909 2004-11-04 05:03  ravindra
28911         * ScrollBar.cs:
28912                 - We need to recalculate the Thumb area when
28913                 LargeChange/maximum/minimum values are changed.
28914           - We set the 'pos' in UpdatePos() method to minimum, if it's less
28915                 than minimum. This is required to handle the case if large_change is
28916                 more than max, and use LargeChange property instead of large_change
28917                 variable.
28918           - We return max+1 when large_change is more than max, like MS does.
28920 2004-11-04 04:29  ravindra
28922         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
28923                 - Changed default value signatures (prefixed all with ListView).
28924                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
28925                 ListView.
28926           - Fixed calculations for ListViewItem and implemented Clone()
28927           method.
28929 2004-11-04 04:26  ravindra
28931         * Theme.cs, ThemeWin32Classic.cs:
28932                 - Changed default ListView values signatures (prefixed all with
28933                 ListView).
28934           - Fixed default size values for VScrollBar and HScrollBar.
28935                 - Fixed DrawListViewItem method.
28937 2004-11-04 04:05  ravindra
28939         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
28941 2004-11-04 04:04  ravindra
28943         * ImageList.cs: Implemented the missing overload for Draw method.
28945 2004-11-03 19:29  jackson
28947         * TabControl.cs: Handle dropping rows on selection properly
28949 2004-11-03 11:59  jackson
28951         * TabControl.cs: remove debug code
28953 2004-11-03 11:52  jackson
28955         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
28956           the scrolly widgerywoo
28958 2004-11-02 13:52  jackson
28960         * TabControl.cs: Resize the tab pages and tabs when the tab control
28961           is resized
28963 2004-11-02 13:40  jackson
28965         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
28966           selected tab to the bottom
28968 2004-11-02 13:39  jackson
28970         * TabPage.cs: Store the tab pages row
28972 2004-11-02 12:33  jordi
28974         * MenuItem.cs: fixes handle creation
28976 2004-11-02 11:42  jackson
28978         * TabControl.cs: signature fix
28980 2004-11-02 08:56  jackson
28982         * TabControl.cs: Calculate whether the tab is on an edge properly.
28983           Remove top secret debugging code
28985 2004-11-01 19:57  jackson
28987         * TabControl.cs: Add click handling, and proper sizing
28989 2004-11-01 19:47  jackson
28991         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
28992           tab controls
28994 2004-11-01 19:39  jackson
28996         * TabPage.cs: add internal property to store the bounds of a tab
28997           page
28999 2004-10-30 04:23  ravindra
29001         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
29002           values.
29004 2004-10-30 04:21  ravindra
29006         * ListView.cs, ListViewItem.cs: Added support for scrolling and
29007           fixed calculations.
29009 2004-10-30 03:06  pbartok
29011         * XplatUIX11.cs:
29012           - Removed extension of DllImported libs
29014 2004-10-29 09:55  jordi
29016         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
29017           navigation, itemcollection completion, menu fixes
29019 2004-10-27 22:58  pbartok
29021         * XplatUIX11.cs:
29022           - Now throws a nice error message when no X display could be opened
29024 2004-10-26 13:51  jordi
29026         * ListView.cs: removes warning
29028 2004-10-26 03:55  ravindra
29030         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
29031           ThemeWin32Classic.cs: Some formatting for my last checkins.
29033 2004-10-26 03:36  ravindra
29035         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
29036           control and default values.
29038 2004-10-26 03:35  ravindra
29040         * Theme.cs: Added some default values for ListView control.
29042 2004-10-26 03:33  ravindra
29044         * ToolBar.cs: ToolBar should use the user specified button size, if
29045           there is any. Added a size_specified flag for the same.
29047 2004-10-26 03:33  ravindra
29049         * ColumnHeader.cs: Added some internal members and calculations for
29050           ColumnHeader.
29052 2004-10-26 03:32  ravindra
29054         * ListViewItem.cs: Calculations for ListViewItem.
29056 2004-10-26 03:31  ravindra
29058         * ListView.cs: Added some internal members and calculations for
29059           ListView.
29061 2004-10-22 13:31  jordi
29063         * MenuAPI.cs: speedup menus drawing
29065 2004-10-22 13:16  jackson
29067         * XplatUIX11.cs: Make sure to update exposed regions when adding an
29068           expose event
29070 2004-10-22 11:49  jackson
29072         * Control.cs: oops
29074 2004-10-22 11:41  jackson
29076         * Control.cs: Check to see if the window should have its background
29077           repainted by X when drawing.
29079 2004-10-22 11:31  jackson
29081         * XplatUIX11.cs: When invalidating areas only use XClearArea if
29082           clear is true, this way we do not get flicker from X repainting the
29083           background
29085 2004-10-22 11:28  jackson
29087         * XEventQueue.cs: Queue properly
29089 2004-10-21 09:38  jackson
29091         * XEventQueue.cs: Fix access modifier
29093 2004-10-21 09:36  jackson
29095         * XEventQueue.cs: Don't loose messages
29097 2004-10-21 09:22  jackson
29099         * XEventQueue.cs: Don't loose messages
29101 2004-10-20 04:15  jordi
29103         * BootMode.cs: enum need it by SystemInfo
29105 2004-10-19 21:58  pbartok
29107         * XplatUIWin32.cs:
29108           - Small sanity check
29110 2004-10-19 21:56  pbartok
29112         * Form.cs:
29113           - Added private FormParentWindow class which acts as the container
29114             for our form and as the non-client area where menus are drawn
29115           - Added/Moved required tie-ins to Jordi's menus
29116           - Fixed/Implemented the FormStartPosition functionality
29118 2004-10-19 21:52  pbartok
29120         * Control.cs:
29121           - Removed unneeded locals
29122           - Added code to all size and location properties to understand and
29123             deal with the parent container of Form
29125 2004-10-19 21:33  pbartok
29127         * Application.cs:
29128           - Fixed to deal with new Form subclasses for menus
29130 2004-10-19 17:48  jackson
29132         * XEventQueue.cs: commit correct version of file
29134 2004-10-19 16:50  jackson
29136         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
29138 2004-10-19 16:15  jordi
29140         * MenuAPI.cs: MenuBarCalcSize returns the height
29142 2004-10-19 08:31  pbartok
29144         * Control.cs:
29145           - Added missing call to PreProcessMessage before calling OnXXXKey
29146           methods
29148 2004-10-19 00:04  ravindra
29150         * ToolTip.cs: Fixed constructor.
29152 2004-10-18 09:31  jordi
29154         * MenuAPI.cs: menuitems in menubars do not have shortcuts
29156 2004-10-18 09:26  jordi
29158         * MenuItem.cs: fixes MenuItem class signature
29160 2004-10-18 08:56  jordi
29162         * MenuAPI.cs: prevents windows from showing in the taskbar
29164 2004-10-18 00:28  ravindra
29166         * ToolTip.cs: Suppressed a warning message.
29168 2004-10-18 00:27  ravindra
29170         * Control.cs: Default value of visible property must be true.
29172 2004-10-17 23:19  pbartok
29174         * ToolTip.cs:
29175           - Complete implementation
29177 2004-10-17 23:19  pbartok
29179         * XplatUIX11.cs:
29180           - Added EnableWindow method
29181           - Added SetModal stub
29182           - Added generation of WM_ACTIVATE message (still needs testing)
29183           - Added SetTopMost stub
29184           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
29186 2004-10-17 23:17  pbartok
29188         * XplatUIWin32.cs:
29189           - Removed VirtualKeys to XplatUIStructs
29190           - Implemented SetTopMost method
29191           - Implemented EnableWindow method
29192           - Bugfix in ScreenToClient()
29193           - Bugfixes in ClientToScreen()
29195 2004-10-17 22:51  pbartok
29197         * XplatUIStructs.cs:
29198           - Added WS_EX styles to WindowStyles enumeration
29200 2004-10-17 22:50  pbartok
29202         * XplatUI.cs, XplatUIDriver.cs:
29203           - Added method for enabling/disabling windows
29204           - Added method for setting window modality
29205           - Added method for setting topmost window
29207 2004-10-17 22:49  pbartok
29209         * ThemeWin32Classic.cs:
29210           - Added ToolTip drawing code
29212 2004-10-17 22:49  pbartok
29214         * Theme.cs:
29215           - Added ToolTip abstracts
29217 2004-10-17 22:47  pbartok
29219         * Form.cs:
29220           - Fixed Form.ControlCollection to handle owner relations
29221           - Added Owner/OwnedForms handling
29222           - Implemented Z-Ordering for owned forms
29223           - Removed unneeded private overload of ShowDialog
29224           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
29225             so I hope)
29226           - Fixed Close(), had wrong default
29227           - Added firing of OnLoad event
29228           - Added some commented out debug code for Ownership handling
29230 2004-10-17 22:16  pbartok
29232         * Control.cs:
29233           - Fixed/implemented flat list of controls
29235 2004-10-17 22:14  pbartok
29237         * Application.cs:
29238           - Added code to simulate modal dialogs on Win32
29240 2004-10-17 16:11  jordi
29242         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
29243           mouse event
29245 2004-10-17 13:39  jordi
29247         * MenuAPI.cs: menu drawing fixes
29249 2004-10-15 09:10  ravindra
29251         * StructFormat.cs: General Enum.
29253 2004-10-15 09:09  ravindra
29255         * SizeGripStyle.cs: Enum for Form.
29257 2004-10-15 09:08  ravindra
29259         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
29260           in Theme for ListView.
29262 2004-10-15 09:06  ravindra
29264         * ColumnHeader.cs: Flushing some formatting changes.
29266 2004-10-15 09:05  ravindra
29268         * ListViewItem.cs: Implemented GetBounds method and fixed coding
29269           style.
29271 2004-10-15 09:03  ravindra
29273         * ListView.cs: Implemented Paint method and fixed coding style.
29275 2004-10-15 07:34  jordi
29277         * MenuAPI.cs: fix for X11
29279 2004-10-15 07:32  ravindra
29281         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
29282                 - Renamed Paint() method to Draw() for clarity. Also, moved
29283                 DrawImage() to OnPaint().
29285 2004-10-15 07:25  ravindra
29287         * CheckBox.cs, RadioButton.cs:
29288                 - Removed Redraw (), we get it from ButtonBase.
29289                 - Implemented Paint (), to do class specific painting.
29291 2004-10-15 07:16  ravindra
29293         * ButtonBase.cs:
29294                 - Redraw () is not virtual now.
29295                 - Added an internal virtual method Paint (), so that
29296                 derived classes can do their painting on their own.
29297                 - Modified OnPaint () to call Paint ().
29299 2004-10-15 06:43  jordi
29301         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
29302           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
29304 2004-10-15 00:30  ravindra
29306         * MessageBox.cs:
29307                 - MessageBox on windows does not have min/max buttons.
29308                 This change in CreateParams fixes this on Windows. We
29309                 still need to implement this windowstyle behavior in
29310                 our X11 driver.
29312 2004-10-14 05:14  ravindra
29314         * ToolBar.cs:
29315                 - Changed Redraw () to do a Refresh () always.
29316                 - Fixed the MouseMove event handling when mouse is pressed,
29317                 ie drag event handling.
29318                 - Replaced the usage of ToolBarButton.Pressed property to
29319                 ToolBarButton.pressed internal variable.
29321 2004-10-14 05:10  ravindra
29323         * ToolBarButton.cs:
29324                 - Added an internal member 'inside' to handle mouse move
29325                 with mouse pressed ie mouse drag event.
29326                 - Changed 'Pressed' property to return true only when
29327                 'inside' and 'pressed' are both true.
29328                 - Some coding style love.
29330 2004-10-14 00:17  ravindra
29332         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
29333           public method.
29335 2004-10-14 00:15  ravindra
29337         * ButtonBase.cs: Redraw () related improvements.
29339 2004-10-14 00:14  ravindra
29341         * MessageBox.cs: Moved InitFormSize () out of Paint method and
29342           removed unnecessary calls to Button.Show () method.
29344 2004-10-13 17:50  pbartok
29346         * XplatUIX11.cs:
29347           - Formatting fix
29348           - Removed destroying of window until we solve the problem of X
29349             destroying the window before us on shutdown
29351 2004-10-13 16:32  pbartok
29353         * ButtonBase.cs:
29354           - Now Redraws on MouseUp for FlatStyle Flat and Popup
29356 2004-10-13 14:18  pbartok
29358         * XplatUIX11.cs:
29359           - Added code to destroy the X window
29361 2004-10-13 14:18  pbartok
29363         * XplatUIWin32.cs:
29364           - Added code to destroy a window
29366 2004-10-13 14:12  pbartok
29368         * ButtonBase.cs:
29369           - Added the Redraw on Resize that got dropped in the last rev
29371 2004-10-13 09:06  pbartok
29373         * ThemeWin32Classic.cs:
29374           - Path from John BouAntoun:
29375             * Fix check rendering (centre correctly for normal style, offset
29376               correctly for FlatStyle).
29377             * Fix border color usage (use backcolor) for FlatStyle.Popup
29378             * Use checkbox.Capture instead of checkbox.is_pressed when
29379               rendering flatstyle states.
29381 2004-10-12 21:48  pbartok
29383         * ThemeWin32Classic.cs:
29384           - Removed all occurences of SystemColors and replaced them with the
29385             matching theme color
29387 2004-10-12 21:41  pbartok
29389         * ThemeWin32Classic.cs:
29390           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
29391             him using the function for flatstyle drawing
29392           - Changed functions to use the new version of CPDrawBorder3D
29394 2004-10-12 21:15  pbartok
29396         * ControlPaint.cs:
29397           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
29398             match MS documentation. They need to return defined colors if the
29399             passed color matches the configured control color. Thanks to John
29400             BouAntoun for pointing this out.
29402 2004-10-12 20:57  pbartok
29404         * Control.cs:
29405           - Fix from John BouAntoun: Raise ForeColorChanged event when text
29406             color is changed
29408 2004-10-12 20:46  pbartok
29410         * CheckBox.cs:
29411           - Fix from John BouAntoun: Now properly sets the Appearance property
29413 2004-10-12 20:45  pbartok
29415         * ThemeWin32Classic.cs:
29416           - Fixes from John BouAntoun: now handles forecolors and backcolors
29417             for flatstyle rendered controls much better; It also fixes normal
29418             checkbox rendering when pushed or disabled.
29420 2004-10-08 02:50  jordi
29422         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
29423           work
29425 2004-10-07 08:56  jordi
29427         * ThemeWin32Classic.cs: Removes deletion of cached brushes
29429 2004-10-06 03:59  jordi
29431         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
29432           XplatUIWin32.cs: removes warnings from compilation
29434 2004-10-05 12:23  jackson
29436         * RadioButton.cs: Fix ctor
29438 2004-10-05 11:10  pbartok
29440         * MessageBox.cs:
29441           - Partial implementation by Benjamin Dasnois
29443 2004-10-05 10:15  jackson
29445         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
29446           by John BouAntoun
29448 2004-10-05 03:07  ravindra
29450         * ToolBar.cs:
29451                 - Removed a private method, Draw ().
29452                 - Fixed the ButtonDropDown event handling.
29453                 - Fixed MouseMove event handling.
29455 2004-10-05 03:04  ravindra
29457         * ThemeWin32Classic.cs:
29458                 - Added DrawListView method and ListViewDefaultSize property.
29459                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
29460                 - Changed DOS style CRLF to Unix format (dos2unix).
29462 2004-10-05 03:03  ravindra
29464         * Theme.cs:
29465                 - Added DrawListView method and ListViewDefaultSize property.
29467 2004-10-05 02:42  ravindra
29469         * ToolBarButton.cs: Added an internal member dd_pressed to handle
29470           clicks on DropDown arrow.
29472 2004-10-04 22:56  jackson
29474         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
29475           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
29476           Control handle the buffers, derived classes should not have to
29477           CreateBuffers themselves.
29479 2004-10-04 21:20  jackson
29481         * StatusBar.cs: The control handles resizing the buffers now.
29483 2004-10-04 21:18  jackson
29485         * Control.cs: When resizing the buffers should be invalidated. This
29486           should be handled in Control not in derived classes.
29488 2004-10-04 14:45  jackson
29490         * TabPage.cs: oops
29492 2004-10-04 02:14  pbartok
29494         * LeftRightAlignment.cs:
29495           - Initial check-in
29497 2004-10-04 01:09  jordi
29499         * ThemeWin32Classic.cs: fixes right button position causing right
29500           button not showing on horizontal scrollbars
29502 2004-10-02 13:12  pbartok
29504         * XplatUIX11.cs:
29505           - Simplified the Invalidate method by using an X call instead of
29506             generating the expose ourselves
29507           - Added an expose when the window background is changed
29508           - Implemented ClientToScreen method
29510 2004-10-02 13:08  pbartok
29512         * XplatUIWin32.cs:
29513           - Added Win32EnableWindow method (test for implementing modal
29514           dialogs)
29515           - Added ClientToScreen method and imports
29517 2004-10-02 13:07  pbartok
29519         * XplatUI.cs, XplatUIDriver.cs:
29520           - Added ClientToScreen coordinate translation method
29522 2004-10-02 13:06  pbartok
29524         * KeyPressEventArgs.cs:
29525           - Fixed access level for constructor
29527 2004-10-02 13:06  pbartok
29529         * NativeWindow.cs:
29530           - Changed access level for the window_collection hash table
29532 2004-10-02 13:05  pbartok
29534         * Form.cs:
29535           - Added KeyPreview property
29536           - Added Menu property (still incomplete, pending Jordi's menu work)
29537           - Implemented ProcessCmdKey
29538           - Implemented ProcessDialogKey
29539           - Implemented ProcessKeyPreview
29541 2004-10-02 13:02  pbartok
29543         * Control.cs:
29544           - Added private method to get the Control object from the window
29545           handle
29546           - Implemented ContextMenu property
29547           - Implemented PointToScreen
29548           - Implemented PreProcessMessage
29549           - Implemented IsInputChar
29550           - Implemented IsInputKey
29551           - Implemented ProcessCmdKey
29552           - Completed ProcessKeyEventArgs
29553           - Fixed message loop to call the proper chain of functions on key
29554           events
29555           - Implemented ProcessDialogChar
29556           - Implemented ProcessDialogKey
29557           - Implemented ProcessKeyMessage
29558           - Implemented ProcessKeyPreview
29559           - Added RaiseDragEvent stub (MS internal method)
29560           - Added RaiseKeyEvent stub (MS internal method)
29561           - Added RaiseMouseEvent stub (MS Internal method)
29562           - Added RaisePaintEvent stub (MS Internal method)
29563           - Added ResetMouseEventArgs stub (MS Internal method)
29564           - Implemented RtlTranslateAlignment
29565           - Implemented RtlTranslateContent
29566           - Implemented RtlTranslateHorizontal
29567           - Implemented RtlTranslateLeftRight
29568           - Added generation of KeyPress event
29570 2004-10-02 05:57  ravindra
29572         * ListViewItem.cs: Added attributes.
29574 2004-10-02 05:32  ravindra
29576         * ListView.cs: Added attributes.
29578 2004-10-01 11:53  jackson
29580         * Form.cs: Implement the Close method so work on MessageBox can
29581           continue.
29583 2004-09-30 14:06  pbartok
29585         * XplatUIX11.cs:
29586           - Bug fixes
29588 2004-09-30 11:34  jackson
29590         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
29592 2004-09-30 07:26  ravindra
29594         * ListViewItemConverter.cs: Converter for ListViewItem.
29596 2004-09-30 07:26  ravindra
29598         * SortOrder.cs: Enum for ListView control.
29600 2004-09-30 07:25  ravindra
29602         * ColumnHeader.cs: Supporting class for ListView control.
29604 2004-09-30 07:24  ravindra
29606         * ListView.cs, ListViewItem.cs: Initial implementation.
29608 2004-09-30 07:20  ravindra
29610         * ItemActivation.cs: Enum for ListView Control.
29612 2004-09-29 20:29  pbartok
29614         * XplatUIX11.cs:
29615           - Added lookup of pixel value for background color; tries to get a
29616             color 'close' to the requested color, it avoids having to create a
29617             colormap.  Depending on the display this could mean the used color
29618             is slightly off the desired color. Might have to change it to a more
29619             resource intensive colormap approach, but it will work as a
29620           workaround to avoid red screens.
29622 2004-09-29 14:27  jackson
29624         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
29626 2004-09-28 12:44  pbartok
29628         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
29629           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
29630           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
29631           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
29632           TrackBar.cs, VScrollBar.cs:
29633           - Streamlined Theme interfaces:
29634             * Each DrawXXX method for a control now is passed the object for
29635               the control to be drawn in order to allow accessing any state the
29636               theme might require
29638             * ControlPaint methods for the theme now have a CP prefix to avoid
29639               name clashes with the Draw methods for controls
29641             * Every control now retrieves it's DefaultSize from the current
29642             theme
29644 2004-09-28 12:17  jackson
29646         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
29647           drawing
29649 2004-09-24 14:57  jackson
29651         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
29652           Gives us a nice little performance boost.
29654 2004-09-24 12:02  jackson
29656         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
29657           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
29658           Control and supporting classes. Initial checkin
29660 2004-09-23 13:08  jackson
29662         * Form.cs: Temp build fixage
29664 2004-09-23 01:39  ravindra
29666         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
29667           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
29668           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
29669           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
29670           EventHandlers needed by ListView Control.
29672 2004-09-22 14:12  pbartok
29674         * ScrollableControl.cs:
29675           - Implemented DockPadding property
29676           - Implemented AutoScroll property
29677           - Implemented AutoScrollMargin property
29678           - Implemented AutoScrollMinSize property
29679           - Implemented AutoScrollPosition property
29680           - Implemented DisplayRectangle property (still incomplete)
29681           - Implemented CreateParams property
29682           - Implemented HScroll property
29683           - Implemented VScroll property
29684           - Implemented OnVisibleChanged property
29686 2004-09-22 14:09  pbartok
29688         * Form.cs:
29689           - Added Form.ControllCollection class
29690           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
29691             RemoveOwnedForm (still incomplete, missing on-top and common
29692             minimize/maximize behaviour)
29693           - Added StartPosition property (still incomplete, does not use when
29694             creating the form)
29695           - Added ShowDialog() methods (still incomplete, missing forcing the
29696             dialog modal)
29698 2004-09-22 14:05  pbartok
29700         * Application.cs:
29701           - Added message loop for modal dialogs
29703 2004-09-22 14:02  pbartok
29705         * GroupBox.cs:
29706           - Fixed wrong types for events
29708 2004-09-22 14:00  pbartok
29710         * Shortcut.cs, FormWindowState.cs:
29711           - Fixed wrong values
29713 2004-09-22 12:01  jackson
29715         * Control.cs: Text is never null
29717 2004-09-20 22:14  pbartok
29719         * XplatUIWin32.cs:
29720           - Fixed accessibility level for Idle handler
29722 2004-09-20 18:54  jackson
29724         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
29725           XplatUIX11.cs: New message loop that uses poll so we don't get a
29726           busy loop
29728 2004-09-17 10:43  pbartok
29730         * ScrollBar.cs:
29731           - Fixed behaviour of arrow buttons. Now properly behaves like
29732             Buttons (and like Microsoft's scrollbar arrow buttons)
29734 2004-09-17 10:14  pbartok
29736         * ScrollBar.cs:
29737           - Added missing release of keyboard/mouse capture
29739 2004-09-17 06:18  jordi
29741         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
29742           Theme.cs: Very early menu support
29744 2004-09-16 17:45  pbartok
29746         * XplatUIWin32.cs:
29747           - Fixed sending a window to the front
29748           - Added overload for SetWindowPos to avoid casting
29750 2004-09-16 17:44  pbartok
29752         * Control.cs:
29753           - Added SendToBack and BringToFront methods
29755 2004-09-16 07:00  ravindra
29757         * Copyright: Added Novell URL.
29759 2004-09-16 07:00  ravindra
29761         * ToolBar.cs: Invalidate should be done before redrawing.
29763 2004-09-15 21:19  ravindra
29765         * ColumnHeaderStyle.cs: Enum for ListView Control.
29767 2004-09-15 21:18  ravindra
29769         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
29770           ListView Control.
29772 2004-09-13 18:26  jackson
29774         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
29775           properly
29777 2004-09-13 18:13  jackson
29779         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
29780           a second thread and post messages into the main threads message
29781           queue. This makes timing much more consistent. Both win2K and XP
29782           have a minimum timer value of 15 milliseconds, so we now do this
29783           too.
29785 2004-09-13 15:18  pbartok
29787         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
29788           XplatUIX11.cs:
29789           - Added Z-Ordering methods
29791 2004-09-13 10:56  pbartok
29793         * Form.cs:
29794           - Fixed #region names
29795           - Moved properties and methods into their proper #regions
29797 2004-09-13 10:51  pbartok
29799         * Form.cs:
29800           - Added Accept and CancelButton properties
29801           - Added ProcessDialogKey() method
29803 2004-09-13 08:18  pbartok
29805         * IWindowTarget.cs:
29806           - Initial check-in
29808 2004-09-10 21:50  pbartok
29810         * Control.cs:
29811           - Added DoDragDrop() [incomplete]
29812           - Properly implemented 'Visible' handling
29813           - Added SetVisibleCore()
29814           - Implemented FindChildAtPoint()
29815           - Implemented GetContainerControl()
29816           - Implemented Hide()
29818 2004-09-10 19:28  pbartok
29820         * Control.cs:
29821           - Moved methods into their appropriate #regions
29822           - Reordered methods within regions alphabetically
29824 2004-09-10 18:57  pbartok
29826         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
29827           - Added method to retrieve text from window
29829 2004-09-10 18:56  pbartok
29831         * Control.cs:
29832           - Moved some internal functions into the internal region
29833           - Implemented FontHeight
29834           - Implemented RenderRightToLeft
29835           - Implemented ResizeRedraw
29836           - Implemented ShowFocusCues
29837           - Implemented ShowKeyboardCues
29838           - Implemented FromChildHandle
29839           - Implemented FromHandle
29840           - Implemented IsMnemonic
29841           - Implemented ReflectMessage
29842           - All public and protected Static Methods are now complete
29844 2004-09-10 16:54  pbartok
29846         * Control.cs:
29847           - Implemented remaining missing public instance properties
29848           - Alphabetized some out of order properties
29850 2004-09-10 05:51  ravindra
29852         * PictureBox.cs: Added a check for null image.
29854 2004-09-10 00:59  jordi
29856         * GroupBox.cs: remove cvs tag
29858 2004-09-09 05:25  ravindra
29860         * ToolBar.cs: Make redraw accessible from ToolBarButton.
29862 2004-09-09 05:23  ravindra
29864         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
29865           parent redraw.
29867 2004-09-09 02:28  pbartok
29869         * ThemeWin32Classic.cs:
29870           - Improve disabled string look
29872 2004-09-09 01:15  jordi
29874         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
29875           args and handler
29877 2004-09-08 23:56  ravindra
29879         * ItemBoundsPortion.cs: It's enum, not a class!
29881 2004-09-08 23:47  ravindra
29883         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
29884           Enums for Form.
29886 2004-09-08 21:13  ravindra
29888         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
29889           ListView control.
29891 2004-09-08 21:03  ravindra
29893         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
29894           avoid crash.
29896 2004-09-08 21:01  ravindra
29898         * ScrollableControl.cs: Removed unreachable code.
29900 2004-09-08 06:45  jordi
29902         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
29904 2004-09-08 01:00  jackson
29906         * XplatUIX11.cs: Only run the timers when updating the message
29907           queue. This effectively gives X messages a higher priority then
29908           timer messages. Timers still need love though
29910 2004-09-07 14:01  jackson
29912         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
29913           this for us and the handle is no longer valid.
29915 2004-09-07 13:59  jackson
29917         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
29918           loop that manages to not crash. TODO: Add poll and cleanup timers
29920 2004-09-07 11:12  jordi
29922         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
29924 2004-09-07 03:40  jordi
29926         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
29927           fixes, methods, multiple links
29929 2004-09-06 06:55  jordi
29931         * Control.cs: Caches ClientRectangle rectangle value
29933 2004-09-05 02:03  jordi
29935         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
29936           certain situations
29938 2004-09-04 11:10  jordi
29940         * Label.cs: Refresh when font changed
29942 2004-09-02 16:24  pbartok
29944         * Control.cs:
29945           - Added sanity check to creation of double buffer bitmap
29947 2004-09-02 16:24  pbartok
29949         * ButtonBase.cs:
29950           - Fixed selection of text color
29951           - Fixed handling of resize event; now properly recreates double
29952             buffering bitmap
29953           - Added missing assignment of TextAlignment
29954           - Added proper default for TextAlignment
29956 2004-09-02 14:26  pbartok
29958         * RadioButton.cs:
29959           - Added missing RadioButton.RadioButtonAccessibleObject class
29961 2004-09-02 14:26  pbartok
29963         * Control.cs:
29964           - Added missing Control.ControlAccessibleObject class
29965           - Started to implement Select()ion mechanisms, still very incomplete
29967 2004-09-02 14:25  pbartok
29969         * AccessibleObject.cs:
29970           - Added missing methods
29972 2004-09-02 14:23  pbartok
29974         * AccessibleNavigation.cs, AccessibleSelection.cs:
29975           - Initial check-in
29977 2004-09-02 10:32  jordi
29979         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
29980           pool for pens, brushes, and hatchbruses
29982 2004-09-01 15:30  jackson
29984         * StatusBar.cs: Fix typo
29986 2004-09-01 14:44  pbartok
29988         * RadioButton.cs:
29989           - Fixed state
29991 2004-09-01 14:39  pbartok
29993         * Button.cs, RadioButton.cs:
29994           - Functional initial check-in
29996 2004-09-01 14:01  pbartok
29998         * CheckBox.cs:
29999           - Added missing default
30000           - Added missing region mark
30002 2004-09-01 09:10  jordi
30004         * Label.cs: fixes method signatures, new methods, events, fixes
30005           autosize
30007 2004-09-01 07:19  jordi
30009         * Control.cs: Init string variables with an empty object
30011 2004-09-01 04:20  jordi
30013         * Control.cs: fires OnFontChanged event
30015 2004-08-31 20:07  pbartok
30017         * ButtonBase.cs:
30018           - Enabled display of strings
30020 2004-08-31 20:05  pbartok
30022         * Form.cs:
30023           - Added (partial) implementation of DialogResult; rest needs to be
30024             implemented when the modal loop code is done
30026 2004-08-31 19:55  pbartok
30028         * CheckBox.cs:
30029           - Fixed to match the removal of the needs_redraw concept
30031 2004-08-31 19:55  pbartok
30033         * ButtonBase.cs:
30034           - Removed the rather odd split between 'needs redraw' and redrawing
30035           - Now handles the events that require regeneration (ambient
30036             properties and size)
30038 2004-08-31 19:41  pbartok
30040         * Control.cs:
30041           - Added firing of BackColorChanged event
30042           - Added TopLevelControl property
30043           - Fixed handling of WM_ERASEBKGRND message
30045 2004-08-31 12:49  pbartok
30047         * ButtonBase.cs:
30048           - Removed debug
30049           - Minor fixes
30051 2004-08-31 12:48  pbartok
30053         * CheckBox.cs:
30054           - Finished (famous last words)
30056 2004-08-31 04:35  jordi
30058         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
30059           scrolling bugs, adds new methods
30061 2004-08-30 14:42  pbartok
30063         * CheckBox.cs:
30064           - Implemented CheckBox drawing code
30066 2004-08-30 14:42  pbartok
30068         * ButtonBase.cs:
30069           - Made Redraw() and CheckRedraw() virtual
30070           - Improved mouse up/down/move logic to properly track buttons
30072 2004-08-30 09:44  pbartok
30074         * CheckBox.cs:
30075           - Updated to fix broken build. Not complete yet.
30077 2004-08-30 09:28  pbartok
30079         * CheckState.cs:
30080           - Initial checkin
30082 2004-08-30 09:17  pbartok
30084         * Appearance.cs:
30085           - Initial check-in
30087 2004-08-27 16:12  ravindra
30089         * ToolBarButton.cs: Added TypeConverter attribute.
30091 2004-08-27 16:07  ravindra
30093         * ImageIndexConverter.cs: Implemented.
30095 2004-08-27 14:17  pbartok
30097         * Control.cs:
30098           - Removed unneeded stack vars
30099           - First attempt to fix sizing issues when layout is suspended
30101 2004-08-25 15:35  jordi
30103         * ScrollBar.cs: more fixes to scrollbar
30105 2004-08-25 14:04  ravindra
30107         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
30108           Added the missing divider code and grip for ToolBar Control.
30110 2004-08-25 13:20  pbartok
30112         * Control.cs:
30113           - Control now properly passes the ambient background color to child
30114             controls
30116 2004-08-25 13:20  jordi
30118         * ScrollBar.cs: small bug fix regarding bar position
30120 2004-08-25 12:33  pbartok
30122         * Timer.cs:
30123           - Now only calls SetTimer or KillTimer if the enabled state has
30124           changed
30126 2004-08-25 12:33  pbartok
30128         * XplatUIWin32.cs:
30129           - Fixed timer handling, now seems to work
30130           - Improved error message for window creation
30132 2004-08-25 12:32  pbartok
30134         * Control.cs:
30135           - Fixed generation of MouseUp message
30137 2004-08-25 12:29  jordi
30139         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
30140           and fixes for progressbar
30142 2004-08-24 18:43  ravindra
30144         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
30145           in ToolBar control.
30147 2004-08-24 17:15  pbartok
30149         * Panel.cs:
30150           - Added #region
30151           - Added missing events
30152           - Alphabetized
30154 2004-08-24 17:14  pbartok
30156         * StatusBar.cs, PictureBox.cs:
30157           - Now uses Control's CreateParams
30159 2004-08-24 16:36  pbartok
30161         * XplatUIX11.cs:
30162           - Fixed background color handling
30163           - Fixed sending of enter/leave events on a grab
30165 2004-08-24 16:35  pbartok
30167         * X11Structs.cs:
30168           - Refined definitions for CrossingEvent
30170 2004-08-24 12:37  jordi
30172         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
30173           formmating, methods signature, and adds missing events
30175 2004-08-24 12:24  jordi
30177         * Control.cs: fire OnEnabledChanged event
30179 2004-08-24 11:17  pbartok
30181         * XplatUIWin32.cs:
30182           - Implemented SetTimer() and KillTimer()
30184 2004-08-24 11:16  pbartok
30186         * XplatUIX11.cs:
30187           - Now uses Remove instead of Add to kill the timer
30189 2004-08-24 10:16  jackson
30191         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
30192           picture boxes in the theme now. Draw picture box borders and obey
30193           sizing modes
30195 2004-08-24 05:49  jackson
30197         * Timer.cs: Remove top secret debugging code
30199 2004-08-24 05:34  jackson
30201         * PictureBox.cs: Temp hack to make picture boxes draw their full
30202           image
30204 2004-08-24 05:29  jackson
30206         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
30207           XplatUIX11.cs: Move timers to the driver level. On X they are
30208           queued by the driver and checked on idle.
30210 2004-08-24 01:07  jackson
30212         * XplatUIX11.cs: Use a queue for async messages instead of passing
30213           them as ClientMessages since that was totally broken. Also simply
30214           check for events and return an idle message if none are found. This
30215           gives us an idle handler, and prevents deadlocking when no messages
30216           are in the queue.
30218 2004-08-23 18:19  ravindra
30220         * XplatUIWin32.cs: Removed the unwanted destructor.
30222 2004-08-23 17:27  pbartok
30224         * ButtonBase.cs:
30225           - Finishing touches. Works now, just needs some optimizations.
30227 2004-08-23 16:53  jordi
30229         * ScrollBar.cs: small fix
30231 2004-08-23 16:45  pbartok
30233         * Application.cs:
30234           - Removed debug output
30235           - Simplifications
30237 2004-08-23 16:43  jordi
30239         * ScrollBar.cs: [no log message]
30241 2004-08-23 16:10  pbartok
30243         * Form.cs:
30244           - Fixed handling of WM_CLOSE message
30245           - Removed debug output
30247 2004-08-23 16:09  pbartok
30249         * Application.cs:
30250           - Added handling of Idle event
30251           - Added handling of form closing
30252           - Fixed reporting of MessageLoop property
30253           - Removed some unneeded code, should provide a bit of a speedup
30255 2004-08-23 15:22  pbartok
30257         * Control.cs:
30258           - Added InitLayout() method
30259           - Added code to properly perform layout when Anchor or Dock property
30260             is changed
30261           - Changed 'interpretation' of ResumeLayout. MS seems to have a
30262             LAMESPEC, tried to do it in a way that makes sense
30264 2004-08-23 14:10  jordi
30266         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
30267           properties and methods
30269 2004-08-23 13:55  pbartok
30271         * Control.cs:
30272           - Properly fixed Jordi's last fix
30273           - Now uses Cursor's Position property instead of calling XplatUI
30274           directly
30276 2004-08-23 13:44  jordi
30278         * PaintEventHandler.cs: Adding missing attribute
30280 2004-08-23 13:39  pbartok
30282         * Cursor.cs:
30283           - Implemented Position property
30285 2004-08-23 13:39  pbartok
30287         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
30288           - Added method to move mouse cursor
30290 2004-08-23 13:39  pbartok
30292         * XplatUIX11.cs:
30293           - Fixed setting of background color
30294           - Added method to move mouse cursor
30296 2004-08-23 13:16  jordi
30298         * Control.cs: avoids null exception
30300 2004-08-22 17:46  jackson
30302         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
30303           PictureBox
30305 2004-08-22 17:40  jackson
30307         * XplatUIX11.cs: Add some missing locks
30309 2004-08-22 15:10  pbartok
30311         * Control.cs, Form.cs:
30312           - Removed OverlappedWindow style from Control, instead it's default
30313             now is child
30314           - Made form windows OverlappedWindow by default
30316 2004-08-22 13:34  jackson
30318         * ScrollBar.cs: Update the position through the Value property so
30319           the OnValueChanged event is raised.
30321 2004-08-22 12:04  pbartok
30323         * SWF.csproj:
30324           - Added Cursor.cs and UserControl.cs
30326 2004-08-22 12:03  pbartok
30328         * Cursor.cs:
30329           - Started implementation, not usable yet
30331 2004-08-22 12:00  pbartok
30333         * UserControl.cs:
30334           - Implemented UserControl (complete)
30336 2004-08-21 19:20  ravindra
30338         * ToolBar.cs: Correcting the formatting mess of VS.NET.
30340 2004-08-21 18:49  ravindra
30342         * ToolBar.cs: Probably this completes the missing attributes in
30343           toolbar control.
30345 2004-08-21 18:03  ravindra
30347         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
30348           Fixed toolbar control signatures.
30350 2004-08-21 16:32  pbartok
30352         * LinkLabel.cs:
30353           - Signature Fixes
30355 2004-08-21 16:30  pbartok
30357         * Label.cs:
30358           - Signature fixes
30360 2004-08-21 16:19  pbartok
30362         * Control.cs, Label.cs:
30363           - Signature fixes
30365 2004-08-21 15:57  pbartok
30367         * ButtonBase.cs:
30368           - Added loads of debug output for development
30369           - Fixed typo in method name
30371 2004-08-21 15:52  pbartok
30373         * ToolBarButtonClickEventArgs.cs:
30374           - Added missing base class
30376 2004-08-21 14:53  pbartok
30378         * Control.cs:
30379           - Updated to match new GrabWindow signature
30381 2004-08-21 14:51  pbartok
30383         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
30384           - Added method to get default display size
30386 2004-08-21 14:23  pbartok
30388         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
30389           - Added method to query current grab state
30390           - Added argument to allow confining a grab to a window
30392 2004-08-21 14:22  pbartok
30394         * Keys.cs:
30395           - Added [Flags] attribute so that modifiers can be used in bitwise
30396           ops
30398 2004-08-21 14:21  pbartok
30400         * TrackBar.cs, ScrollBar.cs:
30401           - Replaced direct XplatUI calls with their Control counterpart
30403 2004-08-21 13:32  pbartok
30405         * Control.cs:
30406           - Implemented Created property
30408 2004-08-21 13:28  pbartok
30410         * Control.cs:
30411           - Implemented ContainsFocus
30413 2004-08-21 13:26  pbartok
30415         * Control.cs:
30416           - Implemented CausesValidation
30418 2004-08-21 13:21  pbartok
30420         * Control.cs:
30421           - Implemented CanFocus
30422           - Implemented CanSelect
30423           - Implemented Capture
30425 2004-08-21 12:35  pbartok
30427         * XplatUIWin32.cs:
30428           - Fixed bug with Async message handling
30429           - Implemented getting the ModifierKeys
30431 2004-08-21 12:32  jackson
30433         * AsyncMethodResult.cs: Make sure we have the mutex before we
30434           release it. Fixes BeginInvoke on windows
30436 2004-08-21 11:31  pbartok
30438         * XplatUIWin32.cs, XplatUIX11.cs:
30439           - Drivers now return proper mouse state
30441 2004-08-21 10:54  jackson
30443         * Control.cs: Implement EndInvoke
30445 2004-08-21 10:48  jackson
30447         * Timer.cs: Remove unneeded finalizer
30449 2004-08-20 19:52  ravindra
30451         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
30452           in mouse event handling in the ToolBar control.
30454 2004-08-20 19:50  ravindra
30456         * ImageList.cs: Changed draw method to use the arguments passed in
30457           to draw the image.
30459 2004-08-20 18:58  pbartok
30461         * XplatUIStructs.cs:
30462           - Added private message for async communication
30464 2004-08-20 17:38  ravindra
30466         * Control.cs: Made RightToLeft property virtual and removed a
30467           Console.WriteLine.
30469 2004-08-20 14:39  jordi
30471         * ThemeGtk.cs: use style_attach
30473 2004-08-20 14:39  pbartok
30475         * XplatUIWin32.cs:
30476           - Added jackson's Async code from X11 to Win32
30478 2004-08-20 14:09  pbartok
30480         * SWF.csproj:
30481           - Added all new files
30483 2004-08-20 14:09  pbartok
30485         * Control.cs:
30486           - Added call to set window background color
30488 2004-08-20 14:03  pbartok
30490         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
30491           - Added method for setting the window background
30493 2004-08-20 14:02  pbartok
30495         * XplatUIWin32.cs:
30496           - Added method for setting the background color
30497           - Added handling for erasing the window background
30499 2004-08-20 13:45  jordi
30501         * TrackBar.cs: fixes timer, new properties and methods
30503 2004-08-20 13:34  jackson
30505         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
30506           correct thread
30508 2004-08-20 13:22  jackson
30510         * Timer.cs: Timer Tick events are now handed through Controls Async
30511           mechanism so the callbacks are executed in the same thread as X
30513 2004-08-20 13:19  jackson
30515         * XplatUIDriver.cs: Expose functionality to send async messages
30516           through the driver
30518 2004-08-20 13:18  jackson
30520         * Control.cs: Implement Begininvoke
30522 2004-08-20 13:14  jackson
30524         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
30525           messages through the driver
30527 2004-08-20 13:12  jackson
30529         * XplatUIX11.cs: Lock before all X operations. Also added Async
30530           method functionality through XSendEvent
30532 2004-08-20 13:11  jackson
30534         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
30535           This will screw up on 64 bit systems)
30537 2004-08-20 13:10  jackson
30539         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
30540           Async messages through X/Win32
30542 2004-08-19 19:39  pbartok
30544         * XplatUIX11.cs:
30545           - Updated code to match new HandleData.DeviceContext type
30547 2004-08-19 19:38  pbartok
30549         * HandleData.cs:
30550           - Made DeviceContext a generic object to allow usage from various
30551           drivers
30552           - Added support for queueing Windows messages
30554 2004-08-19 19:37  pbartok
30556         * XplatUIWin32.cs:
30557           - Added generation of MouseEnter, MouseLeave and MouseHover events
30558           - Added cleanup on EndPaint
30560 2004-08-19 19:17  pbartok
30562         * Control.cs:
30563           - Added handling of WM_MOUSEHOVER
30564           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
30565           code
30567 2004-08-19 18:55  jordi
30569         * ThemeGtk.cs: fixes button order
30571 2004-08-19 18:12  jordi
30573         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
30575 2004-08-19 17:09  pbartok
30577         * Control.cs:
30578           - Added Right property
30579           - Added RightToLeft property
30581 2004-08-19 16:27  jordi
30583         * ThemeGtk.cs: experimental GTK theme support
30585 2004-08-19 16:26  jordi
30587         * ITheme.cs, Theme.cs: move themes from an interface to a class
30589 2004-08-19 16:25  jordi
30591         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
30592           theme enhancaments
30594 2004-08-19 16:04  pbartok
30596         * XplatUIX11.cs:
30597           - Added colormap basics
30598           - Added a way to re-initialize with a different display handle
30599           - Fixed setting of the window background color
30600           - Added various X11 imports related to colors and colormaps
30602 2004-08-19 15:51  pbartok
30604         * X11Structs.cs:
30605           - Removed packing hints (Paolo suggested this a while back)
30606           - fixed colormap type
30607           - Added default Atom types
30608           - Added Screen and color structs and enums
30610 2004-08-19 15:39  pbartok
30612         * ImageList.cs:
30613           - Added missing Draw() method
30614           - Added missing RecreateHandle event
30616 2004-08-19 15:30  pbartok
30618         * Form.cs:
30619           - Added handling of WM_CLOSE
30621 2004-08-18 13:16  jordi
30623         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
30624           a table
30626 2004-08-18 09:56  jordi
30628         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
30630 2004-08-17 15:31  ravindra
30632         * SWF.csproj: Updated project.
30634 2004-08-17 15:25  pbartok
30636         * Control.cs:
30637           - Drawing improvement; don't call UpdateBounds if we are not visible
30638             (or have been minimized)
30640 2004-08-17 15:24  pbartok
30642         * XplatUIWin32.cs:
30643           - Finished IsVisible
30644           - Added Win32GetWindowPlacement
30646 2004-08-17 15:08  jackson
30648         * Panel.cs: Initial checkin of the Panel
30650 2004-08-17 14:25  pbartok
30652         * Control.cs:
30653           - Fixed broken handling of default window sizes
30655 2004-08-17 13:29  jackson
30657         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
30658           has a large startup time.
30660 2004-08-17 10:25  jackson
30662         * HandleData.cs: union areas properly
30664 2004-08-17 10:12  jackson
30666         * HandleData.cs: union areas properly
30668 2004-08-16 20:00  ravindra
30670         * ToolBar.cs, ToolBarButton.cs: Added attributes.
30672 2004-08-16 18:48  ravindra
30674         * ToolBar.cs: Added attributes.
30676 2004-08-16 17:17  ravindra
30678         * SWF.csproj: Updated project.
30680 2004-08-16 17:16  jackson
30682         * XplatUIX11.cs: Check for more expose events before sending a
30683           WM_PAINT so they can all be grouped together. This makes dragging a
30684           window across another window redraw in a sane way.
30686 2004-08-16 15:47  pbartok
30688         * Control.cs:
30689           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
30690             support OnMouseEnter/Leave()
30691           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
30692             exposure handling
30694 2004-08-16 15:46  pbartok
30696         * XplatUIStructs.cs, XplatUIX11.cs:
30697           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
30698           OnMouseEnter/Leave()
30700 2004-08-16 15:34  jackson
30702         * XplatUIX11.cs: Group multiple expose events in HandleData, make
30703           sure messages get the message field set to WM_NULL if they are not
30704           handled.
30706 2004-08-16 15:24  jackson
30708         * HandleData.cs: HandleData is used for storing message information
30709           for window handles
30711 2004-08-15 17:23  ravindra
30713         * ColorDepth.cs: Added attribute.
30715 2004-08-15 17:23  ravindra
30717         * SWF.csproj: Updated project for ToolBar Control.
30719 2004-08-15 17:20  ravindra
30721         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
30722           control and also dos2unix format.
30724 2004-08-15 17:13  ravindra
30726         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
30727           ToolBarButtonClickEventArgs.cs,
30728           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
30729           ToolBarTextAlign.cs: First Implementation of ToolBar control.
30731 2004-08-15 15:31  pbartok
30733         * ButtonBase.cs:
30734           - First (mostly) working version
30736 2004-08-13 16:15  pbartok
30738         * Control.cs:
30739           - Fixed Anchor default
30741 2004-08-13 15:43  pbartok
30743         * Control.cs:
30744           - Changed GetCursorPos signature
30746 2004-08-13 15:42  pbartok
30748         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
30749           - Changed signature for GetCursorPos
30751 2004-08-13 15:25  pbartok
30753         * XplatUIX11.cs:
30754           - Cleanup
30755           - Fixed resizing/exposure handling
30757 2004-08-13 15:22  jordi
30759         * ThemeWin32Classic.cs: removes redundant code and fixes issues
30760           with tickposition
30762 2004-08-13 14:55  jordi
30764         * TrackBar.cs: change from wndproc to events
30766 2004-08-13 13:00  jordi
30768         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
30769           XplatUIX11.cs: implements PointToClient (ScreenToClient)
30771 2004-08-13 12:53  pbartok
30773         * XplatUIWin32.cs:
30774           - Changed GetWindowPos to also provide client area size
30775           - Fixed broken prototypes for several win32 functions
30777 2004-08-13 12:53  pbartok
30779         * XplatUI.cs, XplatUIDriver.cs:
30780           - Changed GetWindowPos to also provide client area size
30782 2004-08-13 12:52  pbartok
30784         * XplatUIX11.cs:
30785           - Added generation of WM_POSCHANGED
30786           - Changed GetWindowPos to also provide client area size
30788 2004-08-13 12:52  pbartok
30790         * Control.cs:
30791           - Added Dispose() and destructor
30792           - Fixed resizing and bounds calculation
30793           - Fixed Layout
30794           - Added memory savings for invisible windows
30796 2004-08-13 12:46  jordi
30798         * TrackBar.cs: adds timer and grap window
30800 2004-08-13 10:25  jackson
30802         * Timer.cs: SWF Timer
30804 2004-08-12 16:59  pbartok
30806         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
30807           - Implemented method to get current mouse position
30809 2004-08-12 14:29  jordi
30811         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
30812           enhancement, fix mouse problems, highli thumb, etc
30814 2004-08-12 13:31  pbartok
30816         * Control.cs:
30817           - Fixed Anchoring bugs
30819 2004-08-12 13:01  jackson
30821         * StatusBar.cs: Don't forget things
30823 2004-08-12 12:54  jackson
30825         * ThemeWin32Classic.cs: Handle owner draw status bars
30827 2004-08-12 12:54  jackson
30829         * StatusBar.cs: Implement missing properties, events, and methods.
30830           Handle mouse clicking
30832 2004-08-12 10:19  jackson
30834         * StatusBarPanelClickEventArgs.cs,
30835           StatusBarPanelClickEventHandler.cs: Classes for handling status
30836           bar panel click events
30838 2004-08-12 10:10  jackson
30840         * Control.cs: Add missing properties
30842 2004-08-12 09:46  pbartok
30844         * BindingsManagerBase.cs:
30845           - Name changed to BindingManagerBase.cs
30847 2004-08-12 09:25  jordi
30849         * ScrollableControl.cs: calls ctrlbase instead of exeception
30851 2004-08-11 16:28  pbartok
30853         * InputLanguageChangingEventArgs.cs:
30854           - Never check in before compiling. Fixes the last check-in
30856 2004-08-11 16:26  pbartok
30858         * InputLanguageChangingEventArgs.cs:
30859           - More signature fixes
30861 2004-08-11 16:20  pbartok
30863         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
30864           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
30865           ImageListStreamer.cs, InputLanguage.cs,
30866           InputLanguageChangedEventArgs.cs,
30867           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
30868           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
30869           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
30870           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
30871           - Signature fixes
30873 2004-08-11 16:16  pbartok
30875         * Application.cs:
30876           - Fixed Signature
30877           - Added .Net 1.1 method
30879 2004-08-11 15:25  pbartok
30881         * SWF.csproj:
30882           - Fixed BindingManagerBase.cs filename
30884 2004-08-11 15:22  pbartok
30886         * BindingManagerBase.cs:
30887           - Was checked in with wrong filename
30889 2004-08-11 14:50  pbartok
30891         * SWF.csproj:
30892           - Updated
30894 2004-08-11 13:41  jordi
30896         * XplatUIWin32.cs: Fixes ClientRect
30898 2004-08-11 13:19  pbartok
30900         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
30901           XplatUIX11.cs:
30902           - We had SetWindowPos and MoveWindow to set window positions and
30903             size, removed MoveWindow. We have GetWindowPos, so it made sense to
30904             keep SetWindowPos as matching counterpart
30905           - Added some X11 sanity checking
30907 2004-08-11 12:59  pbartok
30909         * Control.cs:
30910           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
30911             (It seems that SetBounds is just a front for SetBoundsCore and
30912              SetBoundsCore updates the underlying window system and
30913              UpdateBounds is responsible for updating the variables associated
30914              with the Control and sending the events)
30915           - Major cleanup of Size handling; we now have two sizes, client_size
30916             and bounds. Bounds defines the window with decorations, client_size
30917             without them.
30919 2004-08-11 12:55  pbartok
30921         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
30922           - Added method to calculate difference between decorated window and
30923             raw client area
30925 2004-08-11 12:54  pbartok
30927         * Label.cs:
30928           - Forcing redraw on resize
30930 2004-08-11 11:43  pbartok
30932         * ImageList.cs:
30933           - Removed disposing of the actual images when the list is disposed
30935 2004-08-11 09:13  pbartok
30937         * Control.cs:
30938           - Now properly reparents windows
30940 2004-08-11 08:37  pbartok
30942         * Control.cs:
30943           - Duh!
30945 2004-08-11 07:47  pbartok
30947         * Control.cs:
30948           - Rewrote the collection stuff. Might not be as fast now, not
30949             keeping the number of children around and accessible directly, but
30950             it's more straightforward
30952 2004-08-11 07:44  pbartok
30954         * AccessibleObject.cs:
30955           - Fixed to match ControlCollection rewrite
30957 2004-08-11 07:43  pbartok
30959         * ImageList.cs:
30960           - Added missing creation of the collection list
30962 2004-08-10 20:08  jackson
30964         * StatusBar.cs: Get the paint message from WndProc
30966 2004-08-10 19:31  jackson
30968         * ThemeWin32Classic.cs: Create Brushes as little as possible
30970 2004-08-10 19:20  jackson
30972         * UICues.cs: Add Flags attribute
30974 2004-08-10 19:19  jackson
30976         * StatusBarPanel.cs: Signature cleanup
30978 2004-08-10 19:10  jackson
30980         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
30981           Initial implementation of status bar item drawing
30983 2004-08-10 17:27  jordi
30985         * TrackBar.cs: add missing methods, properties, and restructure to
30986           hide extra ones
30988 2004-08-10 16:24  jackson
30990         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
30991           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
30992           attribute
30994 2004-08-10 13:21  jordi
30996         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
30997           enhancements and standarize on win colors defaults
30999 2004-08-10 12:52  jackson
31001         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
31002           ThemeWin32Classic.cs: Implement DrawItem functionality
31004 2004-08-10 12:47  jordi
31006         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
31008 2004-08-10 12:32  jordi
31010         * Control.cs: throw ontextchange event
31012 2004-08-10 11:43  pbartok
31014         * Control.cs:
31015           - Added more to the still unfinished Dock/Anchor layout code
31017 2004-08-10 11:39  pbartok
31019         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
31020           - Added GetWindowPos method
31022 2004-08-10 11:36  pbartok
31024         * XplatUIWin32.cs:
31025           - Implemented several methods
31027 2004-08-10 09:47  jackson
31029         * TrackBar.cs: Allow control to handle buffering
31031 2004-08-10 09:41  jackson
31033         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
31035 2004-08-10 09:24  jackson
31037         * Label.cs, LinkLabel.cs: Let Control handle buffering.
31039 2004-08-10 09:09  jackson
31041         * StatusBar.cs: Let Control handle all the buffering.
31043 2004-08-10 09:08  jackson
31045         * Control.cs: Control will now handle the buffering code, so each
31046           control does not have to implement this.
31048 2004-08-10 08:34  jackson
31050         * XplatUIDriver.cs: Use default colors from the theme
31052 2004-08-09 17:12  pbartok
31054         * ImageList.cs:
31055           - Fixed several bugs Ravindra pointed out
31057 2004-08-09 16:11  pbartok
31059         * Control.cs:
31060           - Added incomplete dock layout code
31061           - Added support for mouse wheel
31063 2004-08-09 16:09  pbartok
31065         * XplatUIX11.cs:
31066           - Added handling for middle and right mousebutton
31067           - Added handling for mouse wheel
31068           - Added handling for key state and mouse state and position
31069           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
31070           messages
31072 2004-08-09 15:40  jackson
31074         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
31075           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
31076           checkin
31078 2004-08-09 15:37  jackson
31080         * StatusBar.cs: Initial implementation of StatusBar
31082 2004-08-09 15:36  jackson
31084         * ITheme.cs: Add support for drawing status bar and getting status
31085           bar item sizes
31087 2004-08-09 15:35  pbartok
31089         * MouseButtons.cs:
31090           - Fixed values
31092 2004-08-09 15:34  jackson
31094         * ThemeWin32Classic.cs: Add support for drawing status bar and get
31095           status bar item sizes
31097 2004-08-09 15:21  jackson
31099         * ThemeWin32Classic.cs: Use known colors for default control
31100           colours
31102 2004-08-09 15:12  jackson
31104         * ThemeWin32Classic.cs: Make the default font static, it is static
31105           in control so this doesn't change functionality and creating fonts
31106           is sloooooow.
31108 2004-08-09 14:56  pbartok
31110         * X11Structs.cs:
31111           - Added GrabMode enum
31113 2004-08-09 14:55  pbartok
31115         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
31116           - Removed Run method, was only required for initial development
31118 2004-08-09 14:51  pbartok
31120         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
31121           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
31122           capture
31124 2004-08-09 13:48  pbartok
31126         * XplatUIX11.cs:
31127           - Fixed default sizing for child windows
31129 2004-08-09 12:56  pbartok
31131         * XplatUIX11.cs:
31132           - Added generation of WM_DESTROY message
31133           - Added handling of window manager induced shutdown
31135 2004-08-09 11:31  jackson
31137         * ThemeWin32Classic.cs: New names for control properties
31139 2004-08-09 11:25  jackson
31141         * Control.cs: Use new color names
31143 2004-08-09 11:02  jackson
31145         * XplatUI.cs: Get default window properties from the theme
31147 2004-08-09 11:01  jackson
31149         * ITheme.cs: The theme engine now controls default window
31150           properties
31152 2004-08-09 11:00  jackson
31154         * ThemeWin32Classic.cs: Add default window color properties
31156 2004-08-09 10:17  jackson
31158         * ThemeWin32Classic.cs: Use correct default back color
31160 2004-08-09 10:05  jackson
31162         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
31163           the theme now.
31165 2004-08-09 09:56  jackson
31167         * XplatUI.cs: Remove defaults, these are handled by the theme now.
31169 2004-08-09 09:54  jackson
31171         * Control.cs: Get default properties from the theme.
31173 2004-08-09 09:53  jackson
31175         * ITheme.cs: Themes now handle default control properties
31177 2004-08-09 09:53  jackson
31179         * ThemeWin32Classic.cs: Themes now handle default control
31180           properties so coloring will be consistent
31182 2004-08-08 16:54  jordi
31184         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
31186 2004-08-08 15:08  jordi
31188         * XplatUIX11.cs: fixes keyboard crash
31190 2004-08-08 13:47  jordi
31192         * Label.cs: add cvs header info
31194 2004-08-08 12:09  jackson
31196         * ThemeWin32Classic.cs: Add pen_buttonface
31198 2004-08-08 11:52  jordi
31200         * Label.cs, LinkLabel.cs: [no log message]
31202 2004-08-08 11:34  jordi
31204         * ThemeWin32Classic.cs: Use Windows Standard Colours
31206 2004-08-07 17:32  jordi
31208         * TrackBar.cs: throw exceptions of invalid enums values
31210 2004-08-07 17:31  jordi
31212         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
31213           draw method name
31215 2004-08-07 16:56  jackson
31217         * HorizontalAlignment.cs: Initial checkin
31219 2004-08-07 13:16  jordi
31221         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
31222           methods
31224 2004-08-07 13:05  jordi
31226         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
31227           GetSysColor defines
31229 2004-08-06 18:01  pbartok
31231         * ThemeWin32Classic.cs:
31232           - Fixed some rounding issues with float/int
31234 2004-08-06 18:00  jackson
31236         * DockStyle.cs, AnchorStyles.cs:
31238                   Add flags and serializable attributes.
31240 2004-08-06 17:46  pbartok
31242         * XplatUIX11.cs:
31243           - Implemented GetParent
31245 2004-08-06 17:18  pbartok
31247         * TrackBar.cs:
31248           - Fixed some rounding issues with float/int
31250 2004-08-06 17:17  pbartok
31252         * X11Structs.cs, XplatUIX11.cs:
31253           - Fixed Refresh and Invalidate
31255 2004-08-06 15:30  pbartok
31257         * Control.cs, X11Structs.cs, XplatUIX11.cs:
31258           - Fixed recursive loop when resizing
31259           - Improved/fixed redrawing on expose messages
31261 2004-08-06 09:53  jordi
31263         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
31264           keyboard navigation
31266 2004-08-06 08:02  pbartok
31268         * X11Structs.cs, XplatUIX11.cs:
31269           - Fixed reparenting
31270           - Fixed window border creation
31272 2004-08-05 15:38  pbartok
31274         * XplatUIX11.cs:
31275           - Attempted fix for reparenting problems
31277 2004-08-04 15:14  pbartok
31279         * Control.cs:
31280           - Fixed Invalidation bug (calculated wrong client area)
31281           - Added ClientSize setter
31283 2004-08-04 15:13  pbartok
31285         * Form.cs:
31286           - Added AutoScale properties
31288 2004-08-04 15:13  pbartok
31290         * SWF.csproj:
31291           - Added latest files
31293 2004-08-04 14:11  pbartok
31295         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
31296           XplatUIX11.cs:
31297           - Added Invalidate handling
31299 2004-08-03 17:09  jordi
31301         * XplatUIDriver.cs: fixes spelling mistake
31303 2004-07-27 09:53  jordi
31305         * TrackBar.cs: fixes trackbar events, def classname, methods
31306           signature
31308 2004-07-27 09:29  jordi
31310         * ScrollBar.cs: fixes scrollbar events
31312 2004-07-27 04:38  jordi
31314         * Control.cs: changes to be able to run winforms samples
31316 2004-07-26 11:42  jordi
31318         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
31319           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
31321 2004-07-26 05:41  jordi
31323         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
31324           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
31325           implementation
31327 2004-07-22 09:22  jordi
31329         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
31330           check link overlapping, implement events, and fixes
31332 2004-07-21 10:28  jordi
31334         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
31336 2004-07-21 10:19  jordi
31338         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
31339           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
31340           LinkLabelLinkClickedEventArgs.cs,
31341           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
31342           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
31343           implementation
31345 2004-07-19 13:09  jordi
31347         * Control.cs, Label.cs: label control re-written: added missing
31348           functionlity, events, and properties
31350 2004-07-19 10:49  jordi
31352         * Control.cs: fixes SetBounds logic
31354 2004-07-19 01:29  jordi
31356         * Control.cs: Call RefreshWindow only if the window has created
31358 2004-07-15 14:05  pbartok
31360         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
31361           - Implemented ImageList and ImageList.ImageCollection classes
31362           - Added ColorDepth enumeration
31363           - Updated SWF VS.Net project
31365 2004-07-15 11:06  jordi
31367         * XplatUIStructs.cs: added MsgButons enum
31369 2004-07-15 11:03  jordi
31371         * Control.cs: added basic mouse handeling events
31373 2004-07-15 03:38  jordi
31375         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
31376           Vertical TrackBar control implementation
31378 2004-07-13 09:33  jordi
31380         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
31382 2004-07-13 09:31  jordi
31384         * Control.cs, Form.cs: commit: new properties and fixes form size
31385           problems
31387 2004-07-09 14:13  miguel
31389         * ProgressBar.cs: Spelling
31391 2004-07-09 11:25  pbartok
31393         * ProgressBar.cs:
31394           - Removed usage of Rectangle for drawing. Miguel pointed out it's
31395           faster
31397 2004-07-09 11:17  miguel
31399         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
31401                 * ProgressBar.cs: Fixed spelling for `block'
31403                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
31404                 style guidelines.
31406                 Avoid using the += on rect.X, that exposed a bug in the compiler.
31408 2004-07-08 23:21  pbartok
31410         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
31411           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
31412           BaseCollection.cs, Binding.cs, BindingContext.cs,
31413           BindingMemberInfo.cs, BindingsCollection.cs,
31414           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
31415           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
31416           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
31417           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
31418           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
31419           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
31420           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
31421           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
31422           FrameStyle.cs, GiveFeedbackEventArgs.cs,
31423           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
31424           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
31425           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
31426           InputLanguageChangedEventArgs.cs,
31427           InputLanguageChangedEventHandler.cs,
31428           InputLanguageChangingEventArgs.cs,
31429           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
31430           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
31431           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
31432           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
31433           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
31434           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
31435           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
31436           QueryAccessibilityHelpEventArgs.cs,
31437           QueryAccessibilityHelpEventHandler.cs,
31438           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
31439           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
31440           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
31441           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
31442           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
31443           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
31444           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
31445           XplatUIX11.cs, lang.cs:
31446           - Initial check-in