* TextBoxBase.cs: Use client rectangle not bounds for checking
[mono-project.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
blob1f1c24a7f08393cd26f3c52e7ef138c4c0103b19
1 2006-11-02  Jackson Harper  <jackson@ximian.com>
3         * TextBoxBase.cs: Use client rectangle not bounds for checking if
4         the mouse is in the client rectangle (duh).
6 2006-11-02  Rolf Bjarne KVinge  <RKvinge@novell.com>
7         
8         * TrackBar.cs: Fixed trackbar jumping around when clicking
9         on it - the trackbar was not detecting correctly at which
10         side of the thumb the click was done. (fixes #79718)
12 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
14         * ListBox.cs: scroll visible area when change SelectedIndex to
15         a non visible area.  Fixes #79481.
17 2006-11-01  Jackson Harper  <jackson@ximian.com>
19         * TextControl.cs: When replacing the selection move the selection
20         start/end/anchor to the end of the new text.
22 2006-11-01  Jackson Harper  <jackson@ximian.com>
24         * XplatUIWin32.cs: When setting the parent change the controls
25         visibility to it's visibility flag, not to it's old parents
26         visibility (.Visible walks the parent chain).
28 2006-11-01  Chris Toshok  <toshok@ximian.com>
30         * XplatUIX11.cs: revert the #79790 fix, as the simple.
31         XSetTransientForHint fix breaks paint .net's tool windows.  more
32         work needed for that one.
34 2006-11-01  Chris Toshok  <toshok@ximian.com>
36         * ScrollBar.cs: throw ArgumentException instead of Exception in
37         LargeChange/SmallChange setters.  fixes unit tests.
39 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
41         * ContainerControl.cs: reverted rev.67183 (which was itself
42         a reversion of rev.66853... eh).
43         
44         * Control.cs: Fixes Reflector hang by changing Focus() call
45         to what it was before rev.66643 (calling Select() here sets 
46         ActiveControl, which in some situations calls back Focus and 
47         eventually does a stack overflow). Temp fix.    
48         Changes to GetNextControl() to not look for children to select when
49         parent cannot be selectable (so it looks for siblings instead)  
50         
51 2006-10-31  Mike Kestner  <mkestner@novell.com>
53         * CheckedListBox.cs : off by one error in returned index from
54         ObjectCollection.Add.  Fixes #79758.
56 2006-10-31  Chris Toshok  <toshok@ximian.com>
58         * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
59         calls for the textbox/spinner, to keep from recursing to the point
60         where we crash.  Fixes #79760.
62 2006-10-31  Chris Toshok  <toshok@ximian.com>
64         * ListControl.cs (set_SelectedValue): don't throw exceptions on
65         null/"" value, just return.  matches ms's behavior and fixes some
66         failing tests.
68 2006-10-31  Chris Toshok  <toshok@ximian.com>
70         * Control.cs (set_Capture): make a logic a little easier to
71         follow.
73         * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
74         if it's being destroyed.  A necessary fix surely, but a bandaid
75         also, to fix the stuck capture problem in bug #78413.
77 2006-10-31  Chris Toshok  <toshok@ximian.com>
79         * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
80         convention of clearing hwnd.ClientRect when we set the
81         width/height (so it'll be recalculated by Hwnd).
83 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
85         * ContainerControl.cs: reversed Contains check from
86         ActiveControl due to hanging problems. This fix
87         partly regresses #79667 (button does not have
88         initial focus), so this might be a symptom for 
89         a larger parenting problem (set_ActiveControl
90         is being called but the child control does
91         not have the parent set yet?)   
92         
93 2006-10-31  Mike Kestner  <mkestner@novell.com>
95         * MenuAPI.cs : fix keynav when menu is click activated.
97 2006-10-31  Jonathan Pobst  <monkey@jpobst.com>
99         * ToolStrip*: Version 0.2.
101         * MenuStrip.cs: Version 0.1.
103         * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
105 2006-10-30  Chris Toshok  <toshok@ximian.com>
107         [ fixes the oversized notify icon issue in bug #79745 ]
108         
109         * NotifyIcon.cs: scale the icon down to the size we're given by
110         the XplatUI layer (this would be faster if we did it once instead
111         of whenever we paint..)  Also, remove the WM_NCPAINT handling,
112         since it's never invoked.
114         * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
115         pixels high by default, so let's hardcode our systray icon to that
116         size.  The SYSTEM_TRAY protocol should really have a way for
117         client apps to query for the correct icon size.. but oh well.  A
118         couple of patches to deal with the screwy client_window ==
119         whole_window notifyicon stuff (we don't want to PerformNCCalc, for
120         instance, and also make sure we don't XSelectInput twice).
122 2006-10-30  Chris Toshok  <toshok@ximian.com>
124         * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
125         recreating forms.  Control recreation is the bane of my existence.
126         Fix it in a way that keeps everyone happy.
128 2006-10-30  Chris Toshok  <toshok@ximian.com>
130         * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
131         just non-CHILD ones.  otherwise sometimes scrollbars end up with
132         client_windows not being resized to the proper size (ReportBuilder
133         shows this extremely well).
135 2006-10-30  Chris Toshok  <toshok@ximian.com>
137         * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
138         for non-WS_EX_APPWINDOW windows.  This is what keeps them from
139         showing up in the gnome taskbar.  Fixes bug #79790.
141 2006-10-30  Chris Toshok  <toshok@ximian.com>
143         * ApplicationContext.cs: guard against a NRE.
145         * Application.cs: null out the old MainForm for the context, so we
146         don't try to use it again once it's disposed.  Fixes bug #79783.
148 2006-10-30  Chris Toshok  <toshok@ximian.com>
150         * DataGrid.cs (set_DataSource, set_DataMember): if we have a
151         BindingContext, set the data source directly, otherwise do the
152         lazy approach - the actual ListManager will be created when we get
153         a BindingContext. Fixes bug #79700.
155 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
157         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
158           XplatUIX11.cs: Remove old 2 parameter SetVisible.
160         * Control.cs: Use the new 3 parameter SetVisible with activate = true.
162 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
164         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
165         of SetVisible that allows a window to be shown, but not activated.
166         This is needed on Windows for MenuStrip, and can probably be used
167         with MainMenu and ComboBox to fix the focus stealing issues on
168         Windows.
170         * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
172 2006-10-30  Alexander Olk  <alex.olk@googlemail.com>
174         * PictureBox.cs: Fix the output of the ToString method.
176 2006-10-29  Chris Toshok  <toshok@ximian.com>
178         * Control.cs (get_TopLevelControl): fix bug #79781.
180 2006-10-29  Chris Toshok  <toshok@ximian.com>
182         * ListControl.cs (set_DataSource): throw Exception here, not
183         ArgumentException, to match MS behavior.
185 2006-10-29  Chris Toshok  <toshok@ximian.com>
187         * Form.cs: remove the try-catch's around calls to GetWindowState.
188         We can just check the return value.
190         * XplatUIX11.cs: don't throw exceptions from GetWindowState.
191         Instead return -1.
193         * XplatUI.cs: Add note about additional return value for
194         GetWindowState.
196 2006-10-29  Chris Toshok  <toshok@ximian.com>
198         * Control.cs (CreateHandle): when we create our handle, we also
199         create the handles of our child controls.  Fixes one of the
200         Control unit tests (CH11).
202 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
204         * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
206 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
208         * ThemeClearlooks.cs: A little speedup.
210 2006-10-27  Chris Toshok  <toshok@ximian.com>
212         * Control.cs: implement Control.FromChildHandle in a way that
213         matches the docs (and fixes the failed test.)
215 2006-10-27  Chris Toshok  <toshok@ximian.com>
217         * DataGridTableStyle.cs: reproduce buggy MS behavior (with
218         comments).
220         * DataGrid.cs: implement ResetForeColor such that the tests
221         succeed.
222         
223 2006-10-27  Chris Toshok  <toshok@ximian.com>
225         * ToolBarButton.cs: setting text/tooltiptext to null results in it
226         being set to "".  Fixes bug #79759.
228 2006-10-27  Jackson Harper  <jackson@ximian.com>
230         * TextControl.cs: We need to clear the entire selection area when
231         setting the start, otherwise multiline selections are still
232         visible.
234 2006-10-26  Chris Toshok  <toshok@ximian.com>
236         * PropertyGridView.cs: 
238         - ifdef all the code specific to the double
239         buffer case, and provide some alternatives in the non-doublebuffer
240         code, which makes heavy use of XplatUI.ScrollWindow to move things
241         around without having to invalidate (and cause flicker).  There
242         are still some drawing problems in the non-doublebuffered case, so
243         DOUBLEBUFFER is defined by default.
245         - Fix the way dropdowns are handled.  now we explicitly watch for
246         the events which might cause the dropdown to close, and break out
247         of the nested event loop there.  This gets rid of all Capture
248         code, at the expense of the Msg special casing.  Seems to work,
249         though, and fixes bug #79743.
251 2006-10-27  Rolf Bjarne Kvinge <RKvinge@novell.com>
252         * Control.cs: SetIsRecreating now recreates implicitly added
253         child controls as well. Finally fixes #79629. The flag passed to 
254         SetIsRecreating has also been removed since it wasn't used.
255         
256 2006-10-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
258         * PageSetupDialog.cs: Clean some code, fix some bits, 
259         add some checks, and add a printer sub-dialog.
261 2006-10-26  Chris Toshok  <toshok@ximian.com>
263         * PropertyGrid.cs: make set_SelectedObject call
264         set_SelectedObjects, and move the duplicate logic to the
265         SelectedObjects setter.  Also, raise SelectedObjectsChanged.
267         * PropertyGridView.cs: hide the textbox when we get a
268         SelectedObjectsChanged event.
270         Fixes bug #79748.
272 2006-10-26  Chris Toshok  <toshok@ximian.com>
274         * PropertyGridView.cs: deal with the type converter not supporting
275         GetStandardValues() or GetStandardValues() returning null, which
276         is does in the default case.  Fixes #79742.
278 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
280         * CheckedListBox.cs: nunit no longer crashes when selecting 
281         Project/Edit menu option
282         
283 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
285         * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
286         is no menu selected. fixes #79739
288 2006-10-25  Chris Toshok  <toshok@ximian.com>
290         * PropertyGridView.cs: factor out the splitter invalidation code
291         into the SplitterPercent setter, and for kicks implement the
292         Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
293         amount in either direction.
295 2006-10-25  Chris Toshok  <toshok@ximian.com>
297         * PropertyGridView.cs: do some cleanup of the brush used to draw
298         text - read only fields should be grayed out.  not sure how to do
299         this with the textbox, though.  but the textbox's should also be
300         readonly now at least.  Also, hide/show the textbox when resizing
301         the control.
302         
303         * CursorConverter.cs: use System.Reflection when getting the
304         properties of Cursors, as TypeDescriptor.GetProperties isn't
305         returning static properties.
307 2006-10-25  Chris Toshok  <toshok@ximian.com>
309         * PropertyGridView.cs: factor out the up/down handling, and reuse
310         it for page up/down.  also add End/Home support.
312 2006-10-25  Chris Toshok  <toshok@ximian.com>
314         * PropertyGridView.cs:
316         - ensure the selected grid item is visible in the scrolled area,
317         fixes bug #79572.
319         - fix Keys.Down handling when you're on the last item in the
320         propertygrid.
322 2006-10-25  Mike Kestner  <mkestner@novell.com>
324         * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup 
325         clicks too.  Fixes #79725.
327 2006-10-24  Chris Toshok  <toshok@ximian.com>
329         * PropertyGrid.cs: use property.Converter instead of
330         TypeDescriptor.GetConverter(property.PropertyType), so we catch
331         TypeConverters declared on the property as well as on the
332         PropertyType.  Fixes bug #79678.
334 2006-10-24  Alexander Olk  <alex.olk@googlemail.com>
336         * MimeIcon.cs, Mime.cs:
337           Fallback to the default platform handler if no shared mime info
338           stuff exists (fixes #79693).
340 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
341         * ContainerControl.cs: Incorrect contains check in ActiveControl 
342         from previous fix (duh).
344 2006-10-20  Chris Toshok  <toshok@ximian.com>
346         * PropertyGridView.cs: the dropdown should be MIN(number of items
347         in list, 15).  Fixes #79551.
349 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
350         Fixes #79384, #79394, #79652, #79667
351         * Application.cs: 
352         
353         - Modal windows are now destroyed in the proper order for windows
354         
355         * ContainerControl.cs:
356         
357         - ActiveControl setter has more conditions on when to return:
358                 - if we're reselecting the active control, but it actually
359                 didn't have focus (window hidden or some such), it runs
360                 - if the active control being selected doesn't actually 
361                 exist in the container, it returns
362         
363         * Form.cs
364         
365         - The ShowDialog now gets the current form as the owner when
366         invoking without parameters, and correctly activates the owner 
367         when returning
368         
369         * MessageBox.cs
370         
371         - MessageBox now catches the Escape key to exit
373 2006-10-20  Chris Toshok  <toshok@ximian.com>
375         * PropertyGridView.cs: fix a number of issues (bug #78565, and
376         most of bug #79676):
378         - you can navigate around the property grid with the arrow keys.
380         - the dropdown is sized properly when the pg has a vertical
381         scrollbar.
383         - fix the indentation for subentries, and properly select the
384         entire label rect.
386         - fix the gray bar's drawing (only draw it to the last element,
387         not for the height of the control.  Also make sure we draw that
388         last horizontal grid line.
390         - use the same mechanism the datagrid uses wrt the editing textbox
391         when scrolling/resizing/etc.  Namely, we hide it first, do the
392         operation, then show it again (if it's still visible).
393         
394         - aggressively remove a lot of unnecessary refreshes (and also
395         calls to Invalidate(). call more limited variants, and only redraw
396         what we need.)
397         
398         * PropertyGrid.cs:
400         - when we're populating the merged collection, fill in the UI
401         parent with either the passed in item, or the category item we
402         create.
404         - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
406         * GridItem.cs: drop some fully qualified names.
407         
408         * GridEntry.cs: add a "UIParent", which is basically the parent
409         treenode.
411         * GridItemCollection.cs: add an IndexOf method.
413 2006-10-20  Mike Kestner  <mkestner@novell.com>
415         * MainMenu.cs : go back to Draw in OnMenuChanged.  Until we get
416         a working win32 NC invalidation mechanism, we can't invalidate
417         menus.  [Fixes #79705]
419 2006-10-20  Mike Kestner  <mkestner@novell.com>
421         * ListBox.cs : don't update the VScrollbar if the list is empty,
422         just hide it.  [Fixes #79692]
424 2006-10-20  Jackson Harper  <jackson@ximian.com>
426         * RichTextBox.cs: Handle some special chars better, and don't skip
427         the entire group when we encounter a special char that we don't
428         handle correctly.
430 2006-10-18  Chris Toshok  <toshok@ximian.com>
432         * PropertyGridView.cs: address a number of issues from bug #79676,
433         mostly of the cosmetic variety.
435         - The highlight rectangle for indented items not extends all the
436         way to the left.
438         - Indented items aren't indented so much.
440         - the dropdown is properly sized width-wise if the pg has a
441         vertical scrollbar.
443 2006-10-18  Chris Toshok  <toshok@ximian.com>
445         * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
446         systray stuff is rather convoluted to begin with.
448         systray icons are a single window for some reason (that I haven't
449         figured out yet), and for them, client_window == whole_window.
450         Given the way the tests are structured elsewhere to determine
451         which paints are pending (client vs. nc), that situation will
452         always yield PAINT, not NCPAINT.  So, if we have a pending
453         nc_expose and no pending expose, remove the hwnd from the paint
454         queue, and also set nc_expose_pending to false, to keep us from
455         blocking further expose's adding the hwnd to the paint queue.
457         phew.  like i said, a rather convoluted change.  Fixes the
458         notifyicon repaint issues in bug #79645.
460 2006-10-18  Chris Toshok  <toshok@ximian.com>
462         * Form.cs: when getting the backcolor of the form, don't get
463         base.BackColor, as this allows parents to influence the background
464         color.  This breaks mdi forms.  Instead, if the background_color
465         is empty, return the default.
467 2006-10-18  Chris Toshok  <toshok@ximian.com>
469         * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
470         to being private instead of internal static.
472         * Control.cs: remove all the stupid ParentWaitingOnRecreation
473         crap, it wasn't working for more deeply nested controls anyway,
474         and we already have the is_recreating flag - use that instead.
475         Before calling DestroyHandle in RecreateHandle, recurse through
476         the control tree setting it to true.  this returns the recreate
477         code to much of its original simplicity, while now guaranteeing we
478         actually recreate everything we're supposed to.  This change gets
479         fyireporting actually showing mdi children.
481 2006-10-17  Chris Toshok  <toshok@ximian.com>
483         * Form.cs: remove some debug spew, and collapse some duplicate
484         code at the end of SetClientSizeCore.
486         * XplatUIX11.cs: 
487         - add some more debug spew here too wrt Destroy handling.
488         - don't call hwnd.Dispose in DestroyWindow, it's effectively done
489         in Control's handling of WM_DESTROY.
490         - Remove the handling of zombie window DestroyNotifies from the
491         event loop - we don't need it.  Now the only DestroyNotifies we
492         actually handle are ones generated by X.
493         - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
494         match gtk's (functioning) handling of this. This keep metacity
495         from leaving droppings in the form of wm borders with no window
496         contents all over the place.
498         * Control.cs:
499         - add a bunch of debug spew wrt control recreation.
500         - fix a bug where we weren't tracking Visible properly on
501         recreated hwnds.
502         - fixed the WM_PAINT double buffer handling to support re-entrant
503         calls (yes, i know it's gross, but it's happening to us).
505 2006-10-17  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
506         * ThemeWin32Classic.cs: changed drawing of selected days
507         to make them look better.
509 2006-10-16  Chris Toshok  <toshok@ximian.com>
511         * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
512         drawing_stack.  Nuke the ClientDC/NonClientDC properties.
514         * XplatUIX11.cs: move away from using hwnd.client_dc and
515         hwnd.non_client_dc and on to a stack of dc's (and in window's
516         case, PAINTSTRUCT's), so we can deal with nested Paint calls
517         without puking or not disposing of Graphics objects.
519         * XplatUIOSX.cs: same.
521         * XplatUIWin32.cs: same.
523 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
525         * FileDialog.cs: Don't call on_directory_changed inside
526           OnSelectedIndexChanged (it changes the SelectedIndex too).
527           Instead move it to OnSelectionChangeCommitted.
529 2006-10-13  Chris Toshok  <toshok@ximian.com>
531         * XplatUIX11.cs: more Destroy work.  the current code does the
532         following things, in order:
534         1. Enumerates all handles of all controls at or below the one
535         being destroyed, in pre-order.  As it is doing this, it marks the
536         handles as zombie and clears all references to them.
537         
538         2. calls XDestroyWindow on the window passed in.
540         3. SendMessage's WM_DESTROY to all he handles in the accumulated
541         list.
543 2006-10-13  Chris Toshok  <toshok@ximian.com>
545         * XplatUIX11.cs: set hwnd.zombie to true before calling
546         SendMessage (WM_DESTROY).  this keeps us from marking the new
547         window a zombie, and also keeps us from calling sendmessage at
548         all.
550 2006-10-13  Jackson Harper  <jackson@ximian.com>
552         * TextControl.cs: Do not show the caret and selection at the same
553         time.  Reduces ugliness by 35%.
555 2006-10-13  Chris Toshok  <toshok@ximian.com>
557         * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
558         zombie after we do the recursive call, so we actually do call
559         SendMessage on the children controls.
560         (GetMessage): if we find a pending paint event for a zombie hwnd,
561         remove the hwnd from the paint queue, or else it will always be
562         there (and we'll effectively loop infinitely)
564 2006-10-13  Mike Kestner  <mkestner@novell.com>
566         * MenuItem.cs : add Selected format under keynav too.
567         Fixes #79528.
569 2006-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
571         * PropertyGrid.cs: Fixed some NRE's and small difference between our
572         implementation and that of MS.
574 2006-10-13  Chris Toshok  <toshok@ximian.com>
576         * Control.cs (OnInvalidated) only futz with the invalid_region if
577         the control is double buffered.  this fixes the apparent hang in
578         the ListView unit tests.  Someone needs to make the
579         BeginEndUpdateTest not call OnInvalidated 15004 times, though..
581 2006-10-13  Chris Toshok  <toshok@ximian.com>
583         * PropertyGridView.cs:
585         - do a little refactoring so that only one place calls
586         dropdown_form.Hide, and that is CloseDropDown.  make everywhere
587         else call that.  Also make it Refresh, since there are redraw bugs
588         otherwise (we should take a look at that...)
590         - do a little more refactoring work to share the body of code
591         involved with the drop down.  it was duplicated in the code
592         dealing with the listbox handling and in the code dealing with the
593         UITypeEditors.
595         - add a Capture to the dropdown form's control once it's
596         displayed, and add a MouseDown handler that checks to make sure
597         the position is inside the control.  If it's not, close the
598         dropdown.  This fixes #78190.
600         - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
601         if the value is different than the initial value.
602         
603 2006-10-13  Andreia Gaita  <shana.ufie@gmail.com>
605         * Control.cs: see #78650
606         - Fixed GetNextControl for several cases:
607                 - Changed FindFlatForward to return 
608                 correct sibling control when more than one
609                 control has same TabIndex as the currently 
610                 focused one.
611                 - Changed FindFlatBackward to loop children
612                 from last to first and apply same logic as in
613                 FindFlatForward
614                 - Changed FindControlForward to search for
615                 children when control is not a container
616                 but has children, or search for siblings if
617                 control is a container...
618                 - Changed FindControlBackward   to continue
619                 searching for child controls when hitting 
620                 Panel-like parents
621                 
622         - Fixed Focus method to update ActiveControl
623         (FocusTest.FocusSetsActive failure)
624         
625         * TabControl.cs:
626         - Focus rectangle now refreshes when gaining
627         or losing focus
628         - Removed grab for Tab key on IsInputKey that 
629         was keeping tab navigation from working (#78650)
631 2006-10-13  Chris Toshok  <toshok@ximian.com>
633         * PropertyGridView.cs:
634         - Rewrite SetPropertyValue to loop over SelectedGridItem's
635         SelectedObjects.
637         - Deal with GridItem.Value == null a few places.
639         * PropertyGrid.cs: 
640         - replace the PopulateGridItemCollection with a pair of methods
641         which compute the intersection of all the properties in the
642         SelectedObjects array.  Fixes #79615.
644         - Throw ArgumentException from set_SelectedObjects if there's a
645         null in the array.
647         - Add GetTarget method which can be used to traverse up the
648         GridItem.Parent chain.  It depends on the assumption that
649         selected_objects for different GridEntries are always in the same
650         order (a safe assumption).  Use this method and loop over all the
651         selected objects in the entry when calling RemoveValueChanged and
652         AddValueChanged.
653         
654         * GridEntry.cs: Make this handle multiple selected objects.
655         .Value returns null if not all the selected objects share the same
656         value.
658 2006-10-12  Jonathan Pobst  <monkey@jpobst.com>
659         * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
660           ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
661           ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
662           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
663           ToolStripTextBox.cs: Add accessibility, fix attributes/API and
664         add additional functionality.
666 2006-10-12  Mike Kestner  <mkestner@novell.com>
668         * ErrorProvider.cs : new ToolTipWindow ctor sig.
669         * HelpProvider.cs : new ToolTipWindow ctor sig.
670         * ToolTip.cs : remove ToolTip param from Window sig since it is
671         not used.
672         * ToolBar.cs : add tooltip support.  Fixes #79565.
674 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
676         * ComboBox.cs: move the events in set_SelectedIndex to 
677         after the call to HighlightIndex in order to avoid 
678         possible recursion and subsequent problems with the call
679         to HighlightIndex and include a range check in 
680         set_HighlightIndex. Fixes #79588
681         
682 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
684         * MonthCalendar.cs: When FirstDayOfWeek is default set firstday 
685         to ui thread's settings instead of sunday. 
686         * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
688 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
690         * DateTimePicker.cs
691         * MonthCalendar.cs
692         * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
693         and implement missing functionality (selecting different parts 
694         of the date and edit them individually with the keyboard).
695         
696 2006-10-11  Chris Toshok  <toshok@ximian.com>
698         * Control.cs (OnInvalidated): fix NRE relating to last change.
700 2006-10-11  Chris Toshok  <toshok@ximian.com>
702         * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
703         atoms in _NET_WM_STATE here if the window is maximized.  We need
704         to do this because we're *replacing* the existing _NET_WM_STATE
705         property, so those atoms will be lost otherwise, and any further
706         call to GetWindowState will return Normal for a window which is
707         actually maximized.  Fixes #79338.
709 2006-10-11  Jackson Harper  <jackson@ximian.com>
711         * TextControl.cs: Special case for setting selection end to
712         selection start, we basically kill the anchor.
713         - some todo comments.
715 2006-10-11  Chris Toshok  <toshok@ximian.com>
717         * Control.cs: switch to using an "invalid_region" to track which
718         parts of the image buffer need updating.  This is more code than
719         the simple fix from r66532.  That version just attempted to always
720         fill the entire buffer on redraw, which turns out to be
721         inefficient when invalidating small rectangles.  This version
722         simply adds the invalid rectangle to the invalid region.  When we
723         get any WM_PAINT message we see if it can be filled using the
724         image buffer, and if it can't (if the paint event's clip rectangle
725         is visible in the invalid region) we first fill the image buffer.
726         So, the image buffer is still a cache, we just fill it lazily.
728         * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
729         need it any longer.
731 2006-10-11  Chris Toshok  <toshok@ximian.com>
733         * XplatUIX11.cs (SetWindowPos): we need to update both position as
734         well as size after calling XMoveResizeWindow.  This keeps us from
735         ignoring future SetWindowPos calls.  Fixes the disappearing
736         DateTimePicker in the ToolBarDockExample from bug #72499.
738 2006-10-11  Chris Toshok  <toshok@ximian.com>
740         * TextBoxBase.cs: reorder things a bit when it comes to
741         resizing-causing-recalculation.  we were recalculating the
742         document when our position was changed, which shouldn't happen.
743         We only care about size changes.  Clear up some more redundant
744         recalculation calls while I'm at it.  This makes the toolbar dock
745         example snappy when you're just dragging toolbars around (since it
746         causes a relayout whenever you move one.)
748 2006-10-11  Chris Toshok  <toshok@ximian.com>
750         * ToolBarButton.cs (get_Rectangle): this only returns
751         Rectangle.Empty if Visible == false, or Parent == null.
752         Parent.Visible doesn't matter.
754 2006-10-10  Chris Toshok  <toshok@ximian.com>
756         * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
757         by .net 1.1, so switch to an internal method instead.
759 2006-10-10  Chris Toshok  <toshok@ximian.com>
761         * Control.cs (WM_PAINT): when a control is double buffered we draw
762         initially to the ImageBuffer and then copy from there.  But when a
763         parent control which has child controls is double buffered, the
764         initial drawing doesn't encompass the entire ClientRectangle of
765         the parent control, so we end up with uninitialized bits (this is
766         easily seen by dragging the top toolbar in
767         wf-apps/ToolBarDockExample to the right, quickly).  The fix is to
768         manually set the ClipRectangle of the paint_event (only the one we
769         use to populate the ImageBuffer) to ClientRectangle.  Fixes more
770         of the nastiness in bug #72499.
772         * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
773         which we use in Control.cs's WM_PAINT handling.
775 2006-10-10  Jackson Harper  <jackson@ximian.com>
777         * TextBoxBase.cs: Finish off the autoscrolling stuff.
779 2006-10-10  Chris Toshok  <toshok@ximian.com>
781         * Cursor.cs: Apply a slightly different patch to the one suggested
782         in #79609.
784 2006-10-10  Jackson Harper  <jackson@ximian.com>
786         * MenuItem.cs: Make sure to put the mdi child in the hashtable,
787         not the parent form.
788         * TextControl.cs: use difference in old line count vs new count to
789         calculate how many lines were added, this takes into account soft
790         line breaks properly.
792 2006-10-10  Chris Toshok  <toshok@ximian.com>
794         * LinkLabel.cs: don't call MeasureCharacterRanges against a
795         rectangle located at 0,0 and the size of the text.  Use
796         ClientRectangle instead.  This fixes rendering of non-left aligned
797         link labels.
799 2006-10-10  Jackson Harper  <jackson@ximian.com>
801         * TextBoxBase.cs: When we set the selection start position the
802         caret.
803         * TextControl.cs: Need to update the caret when we decrement it to
804         zero.
805         - Make sure that the selection_visible flag gets reset to false if
806         the selection isn't visible.  Before this you could get it set to
807         visible by changing the selection start, then changing the end to
808         equal the start.
810 2006-10-09  Jackson Harper  <jackson@ximian.com>
812         * TreeView.cs: Don't update scrollbars when we aren't visible.
813         * TreeNodeCollection.cs: Only need to update scrollbars if being
814         added to an expanded visible node or the root node.
816 2006-10-09  Chris Toshok  <toshok@ximian.com>
818         * XplatUIX11.cs (SendMessage): fix NRE.
820 2006-10-09  Jackson Harper  <jackson@ximian.com>
822         * TextBoxBase.cs: Implement horizontal autoscrolling.
823         * TextControl.cs: Add a movement types that allows moving forward
824         and backwards without wrapping.
826 2006-10-09  Mike Kestner  <mkestner@novell.com>
828         * ListViewItem.cs : layout changes for wrapped LargeIcon labels
829         with focus "expansion" of labels.  Fixes #79532 and then some.
830         * ThemeWin32Classic.cs : add LineLimit to ListView label format
831         when wrapping.
833 2006-10-09  Jackson Harper  <jackson@ximian.com>
835         * TextBoxBase.cs: Set the default max values to MaxValue since
836         we use the scrollbar for autoscrolling and the default value is
837         100.  If we don't do this the caret won't keep up with typing
838         after about 18 characters.
839         * TextControl.cs: Make sure the selection is offset by the
840         viewport x.  This fixes selection when using auto scrolling.
842 2006-10-07  Andreia Gaita <shana.ufie@gmail.com>
843         
844         * Form.cs: The active control should be selected after the 
845         OnLoad so that any child control initialization that affects
846         the selection is done. Fixes #79406
848 2006-10-06  Chris Toshok  <toshok@ximian.com>
850         * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
851         to have no evil effects.
853         - Stop selecting StructureNotifyMask on non-toplevel windows.
855           The only way children should be resized is by using the SWF api,
856           and we already send WM_WINDOWPOSCHANGED messages in those cases.
857           Toplevel windows can be interacted with via the window manager,
858           and so we keep the input mask there.
860           The other event StructureNotifyMask gives us (that we care
861           about) is DestroyNotify.  The code is already structured such
862           that it assumes we won't be getting a DestroyNotify event for
863           the window we pass to XDestroyWindow (which is what
864           StructureNotifyMask is supposed to guarantee.)  So, that code
865           shouldn't be affected by this either.
867         - Stop selecting VisibilityChangeMask altogether.
869           We weren't doing anything with the resulting events anyway.
870         
871         This vastly reduces the number of X requests and events we see
872         when resizing/laying out a large ui.
874 2006-10-06  Chris Toshok  <toshok@ximian.com>
876         * ScrollableControl.cs (DisplayRectangle): we need to take into
877         account the DockPadding regardless of whether or not auto_scroll
878         == true.  rework this slightly to this effect, and fix bug #79606,
879         and part of #72499 (you can now see the drag handles and drag
880         toolbars around).
882 2006-10-06  Gert Driesen  <drieseng@users.souceforge.net>
884         * ListViewItem.cs: Collections of selected and checked items are now
885         dynamically rebuilt. Whenever an item is (un)checked or (de)selected
886         we mark the collection "dirty".
887         * ListView.cs: Marked collections readonly. Modified UpdateSelection
888         to only clear SelectedItems when a new item is selected and MultiSelect
889         is enabled. CheckedItems and SelectedItems now subscribe to Changed
890         event of ListViewItemCollection, and mark its list dirty whenever
891         that event is fire. This allows us to return selected/checked items 
892         in the same order as they are in the Items collection. This matches
893         the MS behavior.
895 2006-10-06  Chris Toshok  <toshok@ximian.com>
897         * NotifyIcon.cs (HandleMouseUp): only show the context menu on
898         right mouse clicks.  Fixes bug #79593.
900 2006-10-06  Chris Toshok  <toshok@ximian.com>
902         * Splitter.cs: doh, fix splitters that don't want to cancel the
903         movement when you drag them.  Also, impose the limits on the
904         values we send to the SplitterMovingEvent.  Fixes #79598.
906 2006-10-06  Jackson Harper  <jackson@ximian.com>
908         * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
909         since we use this for auto scrolling also.
911 2006-10-05  Chris Toshok  <toshok@ximian.com>
913         * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus.  I'm
914         beginning to think that most datagrid column types don't need this
915         method.  Fixes bug #79392.
917 2006-10-05  Chris Toshok  <toshok@ximian.com>
919         * DataGrid.cs: move back to a more lazy scheme for creating the
920         CurrencyManager, so we aren't updating it every time you set
921         either DataSource or DataMember.  Also, don't call
922         RecreateDataGridRows if the currency manager hasn't changed.
924 2006-10-05  Chris Toshok  <toshok@ximian.com>
926         * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
927         emitted, SelectedIndex should already be updated.  Fixes bug
928         #78929.
930 2006-10-05  Jonathan Pobst  <monkey@jpobst.com>
932         * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
933           ToolStripTextBox.cs: Initial commit.
934         * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
936 2006-10-05  Jackson Harper  <jackson@ximian.com>
938         * TabControl.cs: We need to invalidate the tab control area when
939         new ones are added (duh).
941 2006-10-03  Chris Toshok  <toshok@ximian.com>
943         * Form.cs (ProcessDialogKey): if the focused control is in this
944         form and is a button, call its PerformClick method here.  Fixes
945         #79534.
947 2006-10-04  Jackson Harper  <jackson@ximian.com>
949         * TabPage.cs: Ignore setting of Visible, and add an internal
950         method for setting the controls visibility.  TabPage's Visible
951         property is a little strange on MS, this seems to make us
952         compatible, and fixes cases where people set all the tab pages to
953         visible.
954         * TabControl.cs: Use the new internal setting on tab pages
955         visibility.
957 2006-10-03  Mike Kestner  <mkestner@novell.com>
959         * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
961 2006-10-03  Mike Kestner  <mkestner@novell.com>
963         * ListView.cs : use is_visible instead of Visible to check if 
964         scrollbars should be placed/sized.  Also some max_wrap_width
965         love for LargeIcon view.  [Fixes #79533]
967 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
969         * TextControl.cs :
970           Make set_TextAlign() do actually update the align. Fixed #78403.
972 2006-10-03  Chris Toshok  <toshok@ximian.com>
974         * DataGrid.cs: fix a crash when switching datasources if the
975         vertical scrollbar is at someplace other than Value = 0.  Also,
976         reduce the number of recalculation passes we do in SetDataSource
977         from 2 to 1.
979 2006-10-03  Jackson Harper  <jackson@ximian.com>
981         * TextBoxBase.cs: Move the if value the same bail check up, we
982         don't want to empty the document if it is already empty, this
983         seems to severly mess up the caret.  TODO: I should probably fix
984         the empty statement to update teh caret somehow.
986 2006-10-03  Chris Toshok  <toshok@ximian.com>
988         * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
989         incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
990         reflection, an internal row type, properties on said type, etc.)
991         will work with our datagrid.  Fixes #79531.
993 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
995         * FileDialog.cs: Don't crash if a path is not accessible
996           (System.UnauthorizedAccessException). Fixes #79569.
997         * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
998           a ':' too. Return unknown icon for those paths/files.
1000 2006-10-03  Sebastien Pouliot  <sebastien@ximian.com>
1002         * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when 
1003         GetContainerControl returns null.
1005 2006-10-02  Chris Toshok  <toshok@ximian.com>
1007         * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
1008         call to XGetWindowAttributes instead of "handle".  fixes an X
1009         error using notifyicon after the NotifyIconWindow to Form base
1010         class switch.
1012 2006-10-02  Chris Toshok  <toshok@ximian.com>
1014         * XplatUIX11.cs (QueryPointer): new function, encapsulating the
1015         server grab and looping we need to do to get down to the most
1016         deeply nested child window.
1017         (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
1018         QueryPointer again after the WarpPointer so we can generate a
1019         proper (fake) MotionNotify event to be enqueued in the destination
1020         window's queue.
1021         (GetCursorPos): call QueryPointer.
1023         Fixes #79556.
1025 2006-10-02  Jackson Harper  <jackson@ximian.com>
1027         * NotifyIcon.cs: Derive the notify icon from a form, so things
1028         like FindForm work on it.
1029         - Swallow the WM_CONTEXTMENU message, since that is generated on
1030         mouse down, and context menu is a mouse up kinda guy.  I believe
1031         the correct fix here is probably to make the notify icon entirely
1032         NC area, but this seems to work fine for anyone not manipulating
1033         WndProc.
1035 2006-10-02  Jonathan Pobst  <monkey@jpobst.com>
1037         * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
1038           ToolStripItemCollection.cs, ToolStripLabel.cs,
1039           ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
1040           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
1041           Initial implementation.
1042         * TextRenderer.cs: Provide padding to MeasureText.
1044 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
1046         * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
1047         of ButtonBaseAccessibleObject. Fix bug #79552.
1049 2006-10-02  Jackson Harper  <jackson@ximian.com>
1051         * MdiWindowManager.cs: When maximizing use the containers client
1052         rect, not it's bounds, so nc area is accounted correctly.
1053         - Use the parent form's size for the menu position, since the
1054         client isn't always the full form size.
1056 2006-10-01  Chris Toshok  <toshok@ximian.com>
1058         * ScrollableControl.cs: make sure neither right_edge or
1059         bottom_edge are < 0, since they're used as LargeChange for the
1060         horiz/vert scrollbars respectively.  Fixes #79539.
1062 2006-10-01  Chris Toshok  <toshok@ximian.com>
1064         * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
1065         the xplatuix11 code can cause us to destroy/recreate our handle.
1067         * XplatUIX11.cs
1068         (SystrayAdd):
1069         - this code can be invoked many times for the same Hwnd.  Make
1070           sure we only destroy the client window once (the first time this
1071           method is called).  This fixes bug #79544.
1072         - Remove the call to the improperly bound XSync.  why we had two
1073           bindings to this, I will never know, but this call resulted in
1074           events being discarded from the queue(!).
1075         - correct a misunderstanding of _XEMBED_INFO - the second atom is
1076           not our current state but the state we wish to be in.  So, 0 if
1077           we don't want to be mapped.  Change it to 1.
1078         (SystrayRemove): The XEMBED spec makes mention of the fact that
1079         gtk doesn't support the reparent of client windows away from the
1080         embedder.  Looking at gtksocket-x11.c seems to agree with this.
1081         The only avenue we have for removing systray icons is to destroy
1082         them.  We don't want the handle to go away for good, though, so
1083         call InternalRecreateHandle on the NotifyIconWindow.  Fixes
1084         #79545.
1085         
1086 2006-10-01  Chris Toshok  <toshok@ximian.com>
1088         * Form.cs (WndProc): inline the native_enabled variable usage into
1089         the cases in which it's used.  Fixes #79536.
1091 2006-09-29  Mike Kestner  <mkestner@novell.com>
1093         * ListView.cs : toggle the selection state for ctrl clicks in 
1094         multiselect mode. [Fixes #79417]
1096 2006-09-29  Mike Kestner  <mkestner@novell.com>
1098         * ListView.cs : kill CanMultiSelect and refactor the selection
1099         code to support multiselection in the absence of mod keys. Steal
1100         arrow/home/end keys by overriding InternalPreProcessMessage to
1101         restore regressed keynav behavior.
1102         [Fixes #79416]
1104 2006-09-29  Jackson Harper  <jackson@ximian.com>
1106         * MdiClient.cs: Repaint the titlebars when the active window is
1107         changed.
1109 2006-09-29  Chris Toshok  <toshok@ximian.com>
1111         * Application.cs: when entering a runloop with a modal, make sure
1112         the hwnd is enabled.  Fixes #79480.
1114 2006-09-29  Chris Toshok  <toshok@ximian.com>
1116         * DataGrid.cs (CurrentCell): if we try to navigate to the add row
1117         when ListManager.CanAddRows == false, bump us back one.
1119         * DataGridColumnStyle.cs (ParentReadOnly): remove the
1120         listmanager.CanAddRows check.  This makes ArrayLists uneditable
1121         using a datagrid, which is not right.
1122         (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
1123         is an IEditable, but call property_descriptor.SetValue regardless.
1124         fixes #79435.
1126 2006-09-29  Chris Toshok  <toshok@ximian.com>
1128         * DataGridBoolColumn.cs: we need to test equality in the face of
1129         possible null values (as is the case with the default NullValue).
1130         This patch keeps us from crashing in that case.
1132 2006-09-29  Jackson Harper  <jackson@ximian.com>
1134         * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
1135         here, since it will get called for every node collection in the
1136         tree. This is now done in the treeview once the sorting is
1137         finished.
1138         * TreeView.cs: Recalculate the visible order, and update the
1139         scrollbars after sorting, set the top nope to the root so that the
1140         recalc actually works.
1142 2006-09-29  Chris Toshok  <toshok@ximian.com>
1144         * LinkLabel.cs: more handling of the default link collection in
1145         the face of LinkArea manipulation.  The default link collection
1146         contains 1 element (start=0,length=-1).  If the user sets LinkArea
1147         to anything and the links collection is the default, clear it.
1148         Then only add the link if its nonempty.  Fixes #79518.
1150 2006-09-29  Chris Toshok  <toshok@ximian.com>
1152         * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
1153         piece correctly when we hit a '\n'.  Fixes #79517.
1155 2006-09-29  Chris Toshok  <toshok@ximian.com>
1157         * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
1158         change the binding of gdk_init_check to take two IntPtr's, and
1159         pass IntPtr.Zero for both of them.  Fixes #79520.
1161 2006-09-29  Mike Kestner  <mkestner@novell.com>
1163         * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
1164         [Fixes #78779]
1166 2006-09-28  Jackson Harper  <jackson@ximian.com>
1168         * XplatUIX11.cs: When translating NC messages make sure we go from
1169         whole window to screen, not client window to screen.
1170         * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
1171         method doesn't exist
1172         - Skip over controls that aren't forms when arranging.
1174 2006-09-28  Jackson Harper  <jackson@ximian.com>
1176         * XplatUIWin32.cs: Clip the rect to the parent window.
1177         * XplatUIStructs.cs: Add clipping modes struct.
1178         * InternalWindowManager.cs: New private method that factors title
1179         bar heights in when calculating the pos of an NC mouse message.
1180         - Use SendMessage to force a paint when the form's size is changed
1181         instead of painting the decorations immediately.
1182         - Don't let the NC button click messages get to DefWndProc,
1183         because they will attempt to handle windowing themself, and this
1184         messes up z-order (it will put them in front of the scrollbars).
1185         * XplatUIX11.cs: Make sure that we don't reset window managers if
1186         we already have one (ie the window is an MDI window).
1188 2006-09-28  Chris Toshok  <toshok@ximian.com>
1190         * MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
1191         menu code really needs going over.
1193 2006-09-27  Chris Toshok  <toshok@ximian.com>
1195         * XplatUIX11.cs (SetWMStyles): more metacity wonderment.  turns
1196         out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
1197         window is maximizable.  So, we need to make sure that even if we
1198         clear the border/wm frame of those functions, they're still
1199         available (basically, we remove the decoration without removing
1200         the function).  Half the fix for #79338.
1202 2006-09-27  Chris Toshok  <toshok@ximian.com>
1204         * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
1205         Fixes bug #79515.
1207 2006-09-27  Chris Toshok  <toshok@ximian.com>
1209         * Splitter.cs: reorder things a bit so that we don't actually
1210         draw/move the splitter until after calling OnSplitterMoving.  This
1211         lets users cancel/disallow the movement by explicitly setting
1212         event.SplitX/SplitY.  Fixes #79372.
1214 2006-09-27  Jackson Harper  <jackson@ximian.com>
1216         * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
1217         because it is most likely on a window being destroyed, and that
1218         will give us an X11 error.
1220 2006-09-27  Chris Toshok  <toshok@ximian.com>
1222         * PropertyGridView.cs: half of the fix for #78190.  Clicking on
1223         the dropdown button now toggles between showing and hiding the
1224         dropdown.  Also, get rid of dropdown_form_showing and just use
1225         dropdown_form.Visible.  We still don't do a grab, but I'll leave
1226         that part to someone who has handled Capture-fu before.
1228 2006-09-27  Chris Toshok  <toshok@ximian.com>
1230         * DataGrid.cs: return false if alt isn't pressed when '0' is
1231         pressed.  this keeps the '0' key from being swallowed, and fixes
1232         bug #79350.
1234 2006-09-27  Chris Toshok  <toshok@ximian.com>
1236         * ComboBox.cs: use Invalidate when scrolling the dropdown list.
1237         Calling Refresh (in response to a scrollbar event) screws up the
1238         scrollbar painting.  Fixes bug #78923.
1240 2006-09-27  Chris Toshok  <toshok@ximian.com>
1242         * Theme.cs (SystemResPool): make the "if hashtable[key] == null
1243         then insert into hashtable" blocks threadsafe.
1245 2006-09-27  Chris Toshok  <toshok@ximian.com>
1247         * MessageBox.cs (CreateParams): the styles should be |'ed with our
1248         baseclass's, since otherwise the
1249         ControlBox/MinimizeBox/MaximizeBox assignments above have no
1250         effect.  This gets the close button back in messageboxes.
1252 2006-09-27  Chris Toshok  <toshok@ximian.com>
1254         * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
1255         flag, not just != 0.  this makes flags that are actually multiple
1256         bits (like WS_CAPTION) work.  fixes bug #79508.
1258 2006-09-27  Jordi Mas i Hernandez <jordimash@gmail.com>
1260         * PageSetupDialog.cs: add support for getting and settings the 
1261         paper size, source and orientation.
1263 2006-09-26  Chris Toshok  <toshok@ximian.com>
1265         * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
1266         and caption == "", we need to remove the resize handles as well as
1267         the title bar.
1269         * Control.cs (set_Text): turns out that setting Text on a form
1270         should change the WM styles on the window, since if ControlBox ==
1271         false, the only way to get a window border is to have a non-""
1272         Text property.  check winforms/forms/text.cs for an example.  so,
1273         call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
1274         update both window styles and title.  This fixes a lot of dialogs
1275         (including the preferences dialog in MonoCalendar.)
1277 2006-09-26  Chris Toshok  <toshok@ximian.com>
1279         * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
1280         control isn't a Form), call Win32ShowWindow to hide the window,
1281         but don't update the control Visible property.  When we reparent
1282         back to a parent control, call SetVisible in order for the
1283         window's visibility to be reinstated.
1285         * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
1286         the FosterParent.
1288         * Control.cs (ControlCollection.Remove): remove that value.Hide()
1289         call for good, since it breaks MonoCalendar (and other things I'm
1290         sure.) Also, set all_controls to null *after* the owner calls,
1291         which end up regenerating it.
1292         (ChangeParent): allow new_parent to be == null, passing
1293         IntPtr.Zero down to XplatUI.
1295         this fixes #79294 the right way.
1297 2006-09-26  Mike Kestner  <mkestner@novell.com>
1299         * GridEntry.cs : internal SetParent method.
1300         * PropertyGrid.cs : attach to property changed on the proper
1301         target if we have a hierarchical grid with subobjects. Setup
1302         GridItem.Parent for hierarchical items.
1303         * PropertyGridView.cs : Set value on the correct target for
1304         hierarchical grids. [Fixes #78903]
1306 2006-09-26  Chris Toshok  <toshok@ximian.com>
1308         * Control.cs (ChildNeedsRecreating): this should return true if
1309         either we're being recreated and the child is in our list, or our
1310         parent is waiting for our recreation.
1312 2006-09-26  Chris Toshok  <toshok@ximian.com>
1314         * Control.cs (ControlCollection.Remove): reinstate the
1315         value.Hide() call as suggested in bug #79294.
1317 2006-09-26  Sebastien Pouliot  <sebastien@ximian.com>
1319         * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
1320         coordinates (versus a relative move).
1322 2006-09-26  Chris Toshok  <toshok@ximian.com>
1324         * Control.cs: rework child recreation a little bit.  It turns out
1325         that we race between the DestroyNotify the WM_DESTROY message.  If
1326         the parent gets its DestroyNotify before the child gets the
1327         WM_DESTROY message, the child ends up not recreating (since the
1328         parent finishes its recreation on DestroyNotify, and the child
1329         checks ParentIsRecreating.)
1331         So, instead we store off a list of all the child controls which
1332         need to be recreated when the parent control starts to recreate
1333         itself.  Then, when child controls get their WM_DESTROY message we
1334         check to see if they're in the parent's pending recreation list,
1335         and if so, we recreate.  This removes all dependency on ordering
1336         from the code and fixes the initial MonoCalendar upgrade dialog.
1337         
1338 2006-09-26  Jackson Harper  <jackson@ximian.com>
1340         * TextControl.cs: Use the Line to get the length of the line,
1341         since soft line breaks can change the end line.
1343 2006-09-26  Chris Toshok  <toshok@ximian.com>
1345         * Control.cs (ControlCollection.AddImplicit): don't add the
1346         control again if it's already in one of our lists.  This keeps us
1347         from adding controls over and over again for comboboxes when their
1348         handle gets recreated (as the combobox adds implicit controls in
1349         OnHandleCreated).  Fixes the X11 errors in bug #79480.
1351 2006-09-26  Jackson Harper  <jackson@ximian.com>
1353         * TextControl.cs: When deleting characters make sure that any
1354         orphaned zero lengthed tags get deleted.
1355         - Fix ToString for zero lengthed tags.
1357 2006-09-25  Jackson Harper  <jackson@ximian.com>
1359         * TextControl.cs: When getting a tag at the location there can be
1360         multiple tags at the same spot, these are 0-lengthed tags that
1361         appear when extra formatting has been stuck in a location.  We
1362         need to pull out the last of these 0 lengthed tags.
1364 2006-09-25  Jackson Harper  <jackson@ximian.com>
1366         * TextControl.cs: Fix print out in debug method.
1367         * TextBoxBase.cs: When text is set bail if we are setting to the
1368         previous value.
1369         
1370 2006-09-24  Alexander Olk  <alex.olk@googlemail.com>
1372         * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
1373           It is now possible to change the selected index in a FontXXXListBox
1374           with the up and down arrow keys from the FontXXXTextBoxes.
1375           Also, send the FontXXXTextBox mouse wheel event to the corresponding
1376           FontXXXListBoxes to match ms.
1378 2006-09-22  Sebastien Pouliot  <sebastien@ximian.com>
1380         * SystemInformation.cs: Return a clone of the theme's MenuFont because
1381         anyone can dispose it, anytime. All other properties returns enums, 
1382         structs or basic types so they don't need such tricks.
1384 2006-09-22  Jackson Harper  <jackson@ximian.com>
1386         * XplatUI.cs:
1387         * XplatUIWin32.cs:
1388         * Clipboard.cs:
1389         * DataFormats.cs:
1390         * XplatUIOSX.cs:
1391         * XplatUIDriver.cs: Update interface to add a primary selection
1392         flag, so the driver can use the primary selection buffer if
1393         needed.
1394         * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
1396         * RichTextBox.cs: We need to supply the data object to paste now
1397         (so we can choose to supply CLIPBOARD or PRIMARY).
1398         * TextBoxBase.cs: Supply data object to paste (see above).
1399         - Middle click uses the primary selection data object.
1400         
1401 2006-09-21  Chris Toshok  <toshok@ximian.com>
1403         * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
1404         of SetWMStyles.  It's still a rat's nest and is largely
1405         order-dependent which I dislike immensely.  This also fixes the X
1406         button disappearing from toplevel forms.
1408 2006-09-21  Mike Kestner <mkestner@novell.com>
1410         * ListBox.cs: move Jordi's click/dblclick raising code to the
1411         mouse up handler.
1413 2006-09-21  Jordi Mas i Hernandez <jordimash@gmail.com>
1415         * ListBox.cs: Fixes 79450
1417 2006-09-21  Mike Kestner <mkestner@novell.com>
1419         * TreeView.cs: guard against disposed conditions in UpdateScrollbars
1420         to deal with people updating the TreeNodeCollection after the tree
1421         is disposed.  "Fixes" 79330.
1423 2006-09-20  Jackson Harper <jackson@ximian.com>
1425         * TextControl.cs: Push the cursor record onto the undo stack
1426         before the delete action. This fixes 78651.
1428 2006-09-20  Jonathan Chambers  <joncham@gmail.com>
1430         * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
1431         CreateParams. Fixes 79329.
1433 2006-09-19  Chris Toshok  <toshok@ximian.com>
1435         * XplatUIX11.cs: a couple of blanket code massage passes to clean
1436         things up a bit.  First, get rid of the NetAtoms array (and the NA
1437         enum), and just embed the atoms as static fields.  Also, add a
1438         couple of functions (StyleSet and ExStyleSet) to clean up all the
1439         bitmask testing of styles.
1441         * X11Structs.cs: remove the NA enum, not needed anymore.
1442         
1443 2006-09-19  Chris Toshok  <toshok@ximian.com>
1445         * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
1446         (mapping them to _NET_WM_WINDOW_TYPE_UTILITY).  and add a little
1447         added cleanup to get MessageBox titles appearing again, which were
1448         broken by my earlier fix for caption-less/ControlBox-less windows.
1450 2006-09-18  Jonathan Pobst <monkey@jpobst.com>
1452         * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
1453           ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
1454           ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
1455           ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
1456           ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
1457           ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
1458           ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
1459           ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
1460           ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
1461           ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
1462           ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
1463             Inital import.
1464         * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
1465           ToolStripButton.cs: Stubs needed for above.
1466         * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
1468 2006-09-15  Chris Toshok  <toshok@ximian.com>
1470         * XplatUIX11.cs:
1471         - make the MessageQueues hashtable Synchronized.
1472         
1473         - SendMessage: if the Hwnd is owned by a different thread, use the
1474         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
1475         thread.  Fixes bug #79201.
1477 2006-09-15  Chris Toshok  <toshok@ximian.com>
1479         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
1480         ControlBox == false, we disallow maximize/minimize/close.  If the
1481         form Caption is "" we also disallow move (and get rid of the Title
1482         decoration).  Unfortunately, regardless of how things are set,
1483         we're stuck with the Title and WM menu.
1485 2006-09-15  Chris Toshok  <toshok@ximian.com>
1487         * Application.cs: add locking around the static message_filters
1488         ArrayList, part of #79196.
1490 2006-09-15  Chris Toshok  <toshok@ximian.com>
1492         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
1493         Form.ControlBox == false, the window has no titlebar nor resize
1494         handles.  fixes bug #79368.
1496 2006-09-15  Chris Toshok  <toshok@ximian.com>
1498         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
1499         >= 0.  Fixes bug #79370.
1501 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
1502         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
1503         * Control.cs:
1504             Add properties: LayoutEngine, Margin, DefaultMargin.
1505             Add method: GetPreferredSize.
1506             Move layout logic from PerformLayout to layout engines. 
1508 2006-09-13  Chris Toshok  <toshok@ximian.com>
1510         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
1511         fix for #79326 broke #78718, so this change addresses that.
1513         - in SendWMDestroyMessages remove the call to
1514         CleanupCachedWindows, since we might be recreating the control and
1515         need to maintain the references to right Hwnd handles.  Also, set
1516         the zombie flag to true for each of the children in the hierarchy
1517         instead of calling hwnd.Dispose.  This will cause GetMessage to
1518         ignore all events for the window except for DestroyNotify.
1520         - In GetMessage, ignore messages except for DestroyNotify for
1521         zombie hwnds.
1522         
1523         * Control.cs: revert the is_recreating fix from the last
1524         ChangeLog.  It's definitely "right", but it breaks switching from
1525         an MDI form to a non-MDI form.  Will need to revisit that.
1527         * Hwnd.cs: add a zombie flag, which means "the
1528         client_window/whole_window handles are invalid, but we're waiting
1529         for the DestroyNotify event to come in for them".  Set the flag to
1530         false explicitly if setting WholeWindow/ClientWindow, and also
1531         when Disposing.
1532         
1533 2006-09-13  Chris Toshok  <toshok@ximian.com>
1535         * XplatUIX11.cs: rework window destruction slightly.
1537         - when destroying the windows associated with a control, we don't
1538         need 2 separate XDestroyWindow calls.  Just the one for the
1539         whole_window (or for client_window if whole_window is somehow
1540         IntPtr.Zero -- can this happen?) is enough.
1542         - reworked SendWMDestroyMessages slightly, so we always dispose
1543         the child control hwnd's after sending the messages.
1544         
1545         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
1546         the two places it was used (one was even using hwnd.Handle and the
1547         other hwnd.client_window.  ugh), adding another call in
1548         SendWMDestroyMessages.  We need this new call because now the
1549         DestroyNotify events in the queue will be ignored for the child
1550         controls (as their hwnd's were disposed, and the window id's
1551         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
1553         - this fixes bug #79326.
1555 2006-09-13  Chris Toshok  <toshok@ximian.com>
1557         * Control.cs: don't always set is_recreating to false at the end
1558         of RecreateHandle, since sometimes we're not done (and won't be
1559         until WndProc handles the WM_DESTROY message).  Also, set
1560         is_recreating to false in the WM_DESTROY handling code.  Part of
1561         the fix for bug #79326.
1563 2006-09-13  Miguel de Icaza  <miguel@novell.com>
1565         * X11DesktopColors.cs: Start the droppage of debugging messages.
1567         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
1569 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
1571         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
1573 2006-09-12  Chris Toshok  <toshok@ximian.com>
1575         * DataGrid.cs (get_ListManager): if the list_manager is null, try
1576         to create it using SetDataSource.  Fixes bug #79151.
1578 2006-09-11  Chris Toshok  <toshok@ximian.com>
1580         * XEventQueue.cs: add a DispatchIdle property.
1582         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
1583         either the queue is null, or the queue has DispatchIdle set to
1584         true.
1585         (DoEvents): set queue.DispatchIdle to false around the
1586         peek/translate/dispatch message loop in this method.  This keeps
1587         Application.Doevents from emitting idle events.  Part of the fix
1588         for #78823.
1590 2006-09-11  Chris Toshok  <toshok@ximian.com>
1592         * DataGrid.cs (set_DataSource): make this work for both the
1593         winforms/datagrid test and ReportBuilder.  It seems as though when
1594         we've created a ListManager (or maybe it's if we have a
1595         BindingContext?), when we set the DataSource it clears the
1596         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
1597         #79333.
1599 2006-09-11  Chris Toshok  <toshok@ximian.com>
1601         * XplatUIX11.cs: deal with queue being null, which happens in all
1602         the Clipboard functions.  Fixes one of the two problems mentioned
1603         in #78612.
1605 2006-09-11  Chris Toshok  <toshok@ximian.com>
1607         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
1608         button on various spots (including outside the menu) works closer
1609         to MS, and doesn't crash.  Fixes #79343.
1611 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
1613         * ListView.cs: Do not initialize item_sorter in init. To match MS,
1614         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
1615         and the internal comparer is set. When a new ListViewItemSorter is set,
1616         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
1617         was specified. No further processing is necessary if SortOrder is set
1618         to it's current value. If Sorting is modified to None, and View is
1619         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
1620         (either custom or our internal ItemComparer) to null, on 1.0 profile
1621         only set item_sorter to null if its our internal IComparer. If Sorting
1622         is modified to Ascending or Descending, then use our internal IComparer
1623         if none is set, and if the current IComparer is our internal one then:
1624         on 2.0 profile always replace it with one for new Sorting, and on 1.0
1625         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
1626         Enum.IsDefined to verify whether a valid View value is specified in
1627         its setter. Automatically sort listview items when listview is
1628         created. In Sort, do nothing if ListView is not yet created, or if
1629         no item_sorter is set (no Sorting was set, Sorting was explicitly set
1630         to None or ListViewItemSorter was set to null). Added Sort overload
1631         taking a bool to indicate whether the ListView should be redrawn when
1632         items are sorted (we use this in ListViewItemCollection to avoid double
1633         redraws). Modified our internal IComparer to take the sort order into
1634         account. In Add and AddRange methods of ListViewItemCollection, also
1635         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
1636         view), but use overload with noredraw option to avoid double redraw.
1637         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
1638         true when View is Tile, and do the same when attempting to set View to
1639         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
1640         for selected/checked indices, as it involves overhead when sorting is
1641         done while these collections are not used all that often. Instead
1642         we'll build the indices on demand. Modified IList implementation of
1643         CheckedIndexCollection to use public methods if object is int.
1644         Modified CheckedListViewItemCollection to hide checked items if
1645         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
1646         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
1647         IList implementation in SelectedIndexCollection to use public methods
1648         if object is int. Modified SelectedListViewItemCollection to hide
1649         selected items if listview is not yet created.
1650         * ListViewItem.cs: CheckedIndices list no longer needs to be
1651         maintained separately (see ListView changes). Also clone font, fixes
1652         test failure.
1654 2006-09-11  Mike Kestner  <mkestner@novell.com>
1656         * ComboBox.cs: if we are updating the contents of the currently
1657         selected index, refresh the control or the textbox selection.
1658         [Fixes #79066]
1660 2006-09-11  Mike Kestner  <mkestner@novell.com>
1662         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
1663         the 'specified' logic has been moved there.  This seems like a bug 
1664         in Control.cs, since our current SetBoundsCore completely ignores 
1665         the specified parameter.  Peter's commit seems to indicate that is 
1666         the way the MS control implementation works.  [Fixes #79325]
1668 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
1670         * XplatUI.cs: Set default_class_name to be composed
1671         of current domain id. This allows MWF to be loaded in multiple
1672         domains on Win32.
1674 2006-09-09  Miguel de Icaza  <miguel@novell.com>
1676         * X11Keyboard.cs: If we are unable to obtain the input method, do
1677         not call CreateXic to create the input context.   Should fix
1678         #78944/79276.
1680 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
1682         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
1683           Simplified gnome support by adding more pinvokes to get the
1684           icon for a file or mime type.
1686 2006-09-08  Jackson Harper  <jackson@ximian.com>
1688         * MenuAPI.cs: Deslect popup context menu items before closing the
1689         window, so that you don't see the previously selected item
1690         selected when you reopen the menu.
1691         * TextControl.cs: Update the cursor position even if we don't have
1692         focus.  This fixes typing in things like the ComboBox.  I'm not
1693         totally sure we should always set the visibility if we don't have
1694         focus, but couldn't find any corner cases where the cursor showed
1695         up when it shouldn't.
1697 2006-09-08  Chris Toshok  <toshok@ximian.com>
1699         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
1700         our arrays are length 256.  & 0xff before indexing.  Fixes the
1701         crash in bug #78077.
1702         
1703 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1705         * ThemeWin32Classic.cs: 
1706         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
1707         is true. Handle that check box too.
1709 2006-09-07  Chris Toshok  <toshok@ximian.com>
1711         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
1712         79244.
1714 2006-09-07  Chris Toshok  <toshok@ximian.com>
1716         * Control.cs: in set_BackColor only do the work if
1717         background_color != value.
1719         * XplatUIX11.cs: move the clearing of invalid areas (both client
1720         and nc) to the same block of code where we set (nc_)expose_pending
1721         to false.  That is, move it from PaintEventEnd to PaintEventStart,
1722         so things that cause invalidates from within OnPaint will trigger
1723         another call to OnPaint.  Fixes bug #79262.
1725 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
1727         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
1728         * FileDialog.cs: Fix typo
1730 2006-09-07  Jackson Harper  <jackson@ximian.com>
1732         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
1733         for tab pages if they have any.
1735 2006-09-06  Mike Kestner  <mkestner@novell.com>
1737         * Splitter.cs: use the "current" rect when finishing drag handle
1738         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
1740 2006-09-06  Mike Kestner  <mkestner@novell.com>
1742         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
1743         support offset splitters. [Fixes #79298]
1745 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
1747         * Mime.cs: Fixed a bug that could override the global mime type
1748           result.
1750 2006-09-05  Jackson Harper  <jackson@ximian.com>
1752         * TabControl.cs: Better calculation method for setting the slider
1753         pos. Prevents crashes on really wide tabs.
1754         - Draw Image on tab pages if an image list is used.
1756 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1758         * MonthCalendar.cs: When Font changes, the Size should be
1759         updated to fit the new font's space requirements.
1761 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
1763         * ListBox.cs: If the items are cleared with Items.Clear set
1764           top_index to 0.
1766 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1768         * MonthCalendar.cs: Handle arrow keys as input keys. Also
1769         fire DateChanged event instead of DateSelected event when
1770         the date was changed by keyboard interaction.
1772 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1774         * DateTimePicker.cs: Handle DateChanged for the associated
1775         month_calendar control, and set month_calendar.Font from 
1776         OnFontChanged method, as well as resize the height of the
1777         control when needed. Make PreferredHeight proportional.
1779 2006-09-01  Chris Toshok  <toshok@ximian.com>
1781         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
1782         properties.
1784         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
1786 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
1788         * FileDialog.cs: Set ClientSize instead of window size, to allow space
1789           for decorations (Fixes #79219)
1791 2006-09-01  Mike Kestner  <mkestner@novell.com>
1793         * ComboBox.cs: first stab at sorting plus some selection handling
1794         fixes to bring us more in line with MS behavior.  Also switches back
1795         to index based selection.  Alternative patches for index-based 
1796         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
1797         and latency@gmx.de on bug 78848.  I assume they were similar to this
1798         code I've had simmering in my tree forever.
1799         [Fixes #78848]
1801 2006-09-01  Chris Toshok  <toshok@ximian.com>
1803         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
1804         when setting list position guard against ending up with a -1 index
1805         (the other part of the fix for #78812).  Should probably make sure
1806         we don't need the analogous fix in the ItemDeleted case.
1808         * DataGrid.cs:
1809         - in SetDataSource, work around the fact that the way
1810         OnBindingContextChanged is invoked will cause us to re-enter this
1811         method.  I'll remove the hack once I investigate
1812         OnBindingContextChanged.
1814         - fix the logic in set_DataSource and set_DataMember (basically
1815         what to do if the other of the two is null.)
1816         
1817         - in OnListManagerItemChanged, we need to take into account the
1818         edit row when deciding whether or not to call RecreateDataGridRows
1819         (part of the fix for #78812).
1821 2006-09-01  Jackson Harper  <jackson@ximian.com>
1823         * Splitter.cs: Don't do anything if there is no control to affect
1824         (prevents us from crashing in weird tet cases).
1825         * TreeView.cs: Bounding box for the mouse movement reverting
1826         focus/selection back to previously selected node.  This matches
1827         MS, and makes the tree a lot more useable.
1828         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
1829         use clipping so they are not drawn.  This fixes when the control
1830         is set to have a transparent background, or if it was over an
1831         image.
1833 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
1835         * MimeIcon.cs: Improved handling for reading default icons when
1836           using gnome (2.16 made it necessary). Check and read svg icons
1837           first, then 48x48 and then 32x32 icons.
1839 2006-08-31  Chris Toshok  <toshok@ximian.com>
1841         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
1842         visible.
1844         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
1845         ProcessKeyPreview.  Fixes part of #77806.
1847         * DataGrid.cs: big patch.
1849         - revert the queueing up of DataSource/DataMember if inside
1850         BeginInit/EndInit calls.  That's not the way the datagrid achieves
1851         its delayed databinding.  Instead, call SetDataSource in
1852         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
1853         #78811.
1855         - Also, it wasn't mentioned in #78811, but the test case exhibits
1856         behavior that was lacking in our datagrid implementation - Columns
1857         that have mapping names that don't exist in the datasource's
1858         properties aren't shown.  Yuck.  To fix this I added the bound
1859         field to the column style, and basically any calculation to figure
1860         out anything about columns uses a loop to find the bound columns.
1861         still need to investigate if I can cache an array of the bound
1862         columns or if the indices must be the same.
1864         - When setting CurrentCell, we no longer abort if the cell being
1865         edited was in the add row.  This fixes the other part of #77806.
1867         - The new code also fixes #78807.
1868         
1869         * ThemeWin32Classic.cs: perpetrate the same disgusting
1870         column.bound field hack, and only render bound fields.
1872 2006-08-31  Chris Toshok  <toshok@ximian.com>
1874         * DataGridColumnStyle.cs: add bound field.  this field is true if
1875         the datasource has a property corresponding to the mapping name.
1877         * DataGridTableStyle.cs: set the bound field on the column styles
1878         depending on whether or not we have a column for that property.
1880 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
1882         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
1883           splitter control (fixes #79228)
1885 2006-08-31  Chris Toshok  <toshok@ximian.com>
1887         * DataGridColumnStyle.cs: we need to delay the assignment of
1888         property descriptor until the last possible moment due to the lazy
1889         databinding stuff in the datagrid.  Also, fix the exceptions
1890         thrown by CheckValidDataSource to match MS.
1892 2006-08-31  Jackson Harper  <jackson@ximian.com>
1894         * Form.cs: When activated select the active control, if there is
1895         no active control, we select the first control.
1896         * XplatUIX11.cs: If there is no focus control when we get a
1897         FocusIn event, find the toplevel form and activate it.  This
1898         occurs when you popup a window, it becomes the focus window, then
1899         you close that window, giving focus back to the main window.
1901 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1903         * MonthCalendar.cs: 
1904         * ThemeWin32Classic.cs: Cache Font in bold style, as well
1905         as StringFormat with Center alignments in MonthCalendar,
1906         instead of creating new ones when drawing the control. 
1907         Also, draw the month name in bold style.
1909 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
1911         * Control.cs:
1912           - PerformLayout(): It would seem MS performs the fill even if the 
1913             control is not visible (part of #79218 fix)
1914           - ResetBackColor(): Use the setter to reset the color, to allow
1915             overriders to catch the change.
1916         * Form.cs:
1917           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
1918           - CreateHandle(): dito (part of $79218 fix)
1919           - Don't set an icon if we have a dialog
1920         * ScrollableControl.cs:
1921           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
1922           - ScrollIntoView(): No need to scroll if control is already visible
1923             (resolves fixme and fixes #79218)
1925 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1927         * MonthCalendar.cs: Change proportions in SingleMonthSize
1928         to match the aspect of the original control.
1930 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
1932         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
1933           get updated when they get maximized.
1935 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
1937         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
1939 2006-08-29  Chris Toshok  <toshok@ximian.com>
1941         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
1943 2006-08-29  Jackson Harper  <jackson@ximian.com>
1945         * TreeView.cs: Need to track selected node and highlighted node,
1946         they aren't always the same thing, when the mouse is down on a
1947         node it is hilighted, but not selected yet.
1948         - Do the HideSelection stuff right
1949         - Need to focus on rbutton mouse down. And redraw selection when
1950         right click is mouse upped.
1952 2006-08-29  Mike Kestner  <mkestner@novell.com>
1954         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
1955         when SubItems.Count < Columns.Count.  [Fixes #79167]
1957 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
1959         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
1961 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
1963         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
1964           from X. Only send based on ConfigureNotify if we don't have the
1965           correct location in hwnd (if the window manager moved us)
1967 2006-08-28  Mike Kestner  <mkestner@novell.com>
1969         * ListView.cs: remove a TODO. 
1970         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
1971         [Fixes ListView part of #79166]
1973 2006-08-28  Mike Kestner  <mkestner@novell.com>
1975         * ListView.cs: move wheel handler to parent since it is focused
1976         instead of the item_control now.  [Fixes #79177]
1978 2006-08-28  Mike Kestner  <mkestner@novell.com>
1980         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
1981         when the control is focused. [Fixes #79171]
1983 2006-08-28  Mike Kestner  <mkestner@novell.com>
1985         * ListView.cs: size the item and header controls for empty and
1986         unscrollable views.
1987         * ThemeWin32Classic.cs: draw disabled backgrounds.
1988         [Fixes #79187]
1990 2006-08-28  Chris Toshok  <toshok@ximian.com>
1992         * Form.cs: remove unused "active_form" static field.
1994         * Hwnd.cs: lock around accesses to static windows collection.
1996         * Application.cs: lock threads in Exit ().
1998 2006-08-28  Chris Toshok  <toshok@ximian.com>
2000         * NativeWindow.cs: lock around accesses to window_collection.
2001         
2002 2006-08-28  Chris Toshok  <toshok@ximian.com>
2004         * Control.cs: err, fix this the right way, by locking on controls
2005         when using it.  not by making it synchronized.
2007 2006-08-28  Chris Toshok  <toshok@ximian.com>
2009         * Control.cs: make the static "controls" field synchronized, as it
2010         gets updated from multiple threads.
2012 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
2014         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
2015           Prevent other threads from exiting when calling thread sets quit state.
2016         * XEventQueue.cs: Added PostQuitState property
2018 2006-08-27  Chris Toshok  <toshok@ximian.com>
2020         * AsyncMethodData.cs: add a slot for the window handle.
2022         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
2023         window (the destination control's window, not the foster window).
2025         * Control.cs (BeginInvokeInternal): store the window's handle in
2026         the AsyncMethodData.
2027         
2029 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
2031         * XplatUIX11.cs:
2032           - PostQuitMessage: Removed resetting S.D display handle, we might have
2033             another loop started after calling PostQuitMessage (Fixes #79119)
2034           - Created destructor to reset S.D handle
2036 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
2038         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
2040 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
2042         * TextControl.cs (Insert): Update the caret position even if we don't
2043           have a handle yet, just don't call the driver in that case.
2044         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
2045           to the end of the new selection text (Fixes #79184)
2047 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
2049         * Form.cs (Activate): Only activate if the handle is created)
2050         * Control.c:
2051           - Mark window as invisible when it's disposed
2052           - Check if window handle is created when setting window visible, 
2053             instead of relying just on the is_created variable
2054           - Check if object is disposed when creating the control (Fixes #79155)
2056 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
2058         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
2059           when allowing layout again. Otherwise we re-generate the anchoring 
2060           distance to the border again and actually alter what the user wanted
2061           This is ugly, it'd be better if we used DisplayRectangle instead of
2062           ClientRectangle for Control.UpdateDistances, but that causes us to
2063           have other problems (initial anchoring positons would be wrong)
2064           (Fixes #78835)
2066 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
2068         * Control.cs:
2069           - The size and location setters shouldn't go directly to 
2070             SetBoundsCore, but to SetBounds, which triggers layout on the
2071             parent, then calls SetBoundsCore. (Related to fix for #78835)
2072           - SetBounds: Moved actual location update code into this function
2073             from SetBoundsCore, to match MS. Added call to PerformLayout if
2074             we have a parent (to trigger resizing of anchored parents if the 
2075             child size has changed (see testcase for #78835) 
2076         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
2077           new control code
2078         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
2080 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
2082         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
2083           System.Drawing when a toplevel window gets closed; there might
2084           be other toplevel windows belonging to the same app (Fixes #78052)
2086 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
2088         * FileDialog.cs: After reading FileDialog settings from mwf_config
2089           use Desktop prefix only if a real folder doesn't exist anymore.
2090         * FontDialog.cs: Added char sets.
2091           It is now possible to select the font, size or style with the
2092           textboxes.
2094 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
2096         * PrintPreviewDialog.cs: Use assembly name constants.
2098 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
2100         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
2101           scrollbar from whacking it's buttons)
2103 2006-08-24  Chris Toshok  <toshok@ximian.com>
2105         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
2106         in this patch (aggregating setting Left/Top/Width/Height to
2107         setting Bounds on the scrollbars), but the crux of the fix is in
2108         Recalculate, where we scroll by the remaining scroll_position if
2109         we're hiding a scrollbar.  The 2*$5 reward in the comment is
2110         serious.
2112 2006-08-24  Jackson Harper  <jackson@ximian.com>
2114         * MdiClient.cs:
2115         * MdiWindowManager.cs: If the form is made a non-mdi window we
2116         need to remove the form closed event so that closing forms works
2117         correctly.
2119 2006-08-24  Jackson Harper  <jackson@ximian.com>
2121         * Control.cs: Make IsRecreating internal so that the driver can
2122         check it
2123         - Temporarily remove the Hide when controls are removed, its
2124         making a whole bunch of things not work because visibility isn't
2125         getting reset elsewhere correctly
2126         * Form.cs: Need to do a full handle recreation when the mdi parent
2127         is set.
2128         * XplatUIX11.cs: If we are recreating handles don't dispose the
2129         HWNDs.  What was happening is the handles were being recreated in
2130         SendWMDestroyMessages, but then flow continued on in that method
2131         and destroyed the new handles.
2133 2006-08-23  Jackson Harper  <jackson@ximian.com>
2135         * Form.cs: MdiClient is always at the back of the bus
2136         * Control.cs: When the order of items in the collection is changed
2137         we need to reset the all_controls array
2138         - do the same sorta setup thats done when adding a control when a
2139         control is set on the collection.
2141 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
2143         * TextBoxBase.cs (get_Text): Return an empty array if our document
2144           is empty (fixes #79052)
2146 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
2148         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
2149           on WM_SYSCHAR messages (fixes #79053)
2151 2006-08-23  Chris Toshok  <toshok@ximian.com>
2153         * DataGrid.cs: fix flickering when scrolling vertically.
2155 2006-08-23  Chris Toshok  <toshok@ximian.com>
2157         * DataGrid.cs (EndEdit): only invalidate the row header when we
2158         need to.
2160 2006-08-23  Chris Toshok  <toshok@ximian.com>
2162         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
2163         methods.  fixes the flicker when scrolling around.
2165 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
2167         * FileDialog.cs: Making sure the control is created before we get a 
2168           chance to use it with BeginInvoke (Fixes #79096)
2170 2006-08-23  Chris Toshok  <toshok@ximian.com>
2172         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
2173         width to use when painting the rows.
2175 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
2177         * TextBoxBase.cs:
2178           - Throw ArgumentException if a negative value is passed to SelectionLength
2179           - Update the selection end if start is moved. end needs to be always
2180             after start. (Fixes #79095)
2181           - Track selection length; MS keeps the selection length even if start
2182             is changed; reset on all other operations affection selection
2184 2006-08-22  Jackson Harper  <jackson@ximian.com>
2186         * TreeView.cs: Make sure both scrollbars get displayed and sized
2187         correctly when the other bar is visible.
2188         - Use the original clip rectangle for checking if the area between
2189         the two scrollbars is visible, not the viewport adjusted clipping
2190         rectangle.
2192 2006-08-22  Jackson Harper  <jackson@ximian.com>
2194         * Binding.cs: We don't use IsBinding because it requires the
2195         control to be created, which really shouldn't be necessary just to
2196         set a property on the control.
2198 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2200         * ComboBox.cs: Some CB.ObjectCollection methods must throw
2201         ArgumentNullReferenceException when the argument is null.
2203 2006-08-21  Jackson Harper  <jackson@ximian.com>
2205         * Timer.cs: Track the thread that the timer is started in (NOT
2206         CREATED), this way messages for it will only be triggered on its
2207         queue.
2208         * XEventQueue.cs: Track the timers here, this makes timers per
2209         thread, like MS.
2210         * XplatUIX11.cs: The timers are moved to the XEventQueue.
2212 2006-08-19  Chris Toshok  <toshok@ximian.com>
2214         * XplatUIX11.cs: after further communication with pdb, we get the
2215         best of both worlds.  SetZOrder working for un-Mapped windows, and
2216         no X errors for un-mapped windows.
2218 2006-08-19  Chris Toshok  <toshok@ximian.com>
2220         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
2221         as it was causing pdn toolbars to not have the correct stacking.
2223 2006-08-18  Mike Kestner  <mkestner@novell.com> 
2225         * ListView.cs : guard against negative ClientArea.Width in scrollbar
2226         calculation.  Not sure why control should ever be setting a negative
2227         width though.  Fixes #78931.
2229 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2231         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
2232         null items in ObjectCollection class.
2233         * ListBox.cs.: Likewise.
2235 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
2237         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
2238           as the base method in ThemeWin32Classic should work fine.
2239           Fixed bug #78607.
2241 2006-08-18  Jackson Harper  <jackson@ximian.com>
2243         * Binding.cs: When validating if the value entered doesn't convert
2244         properly reset to the old value.
2245         * RadioButton.cs: Don't fire click when we get focus.
2247 2006-08-18  Jackson Harper  <jackson@ximian.com>
2249         * FileDialog.cs: Paint the selection on the directory combobox the
2250         same way as on MS. 
2252 2006-08-17  Jackson Harper  <jackson@ximian.com>
2254         * ErrorProvider.cs: Don't allow the error control to be selected.
2255         * Control.cs: Don't send the SetFocus messages, the control
2256         activation will do this, and if we do it blindly here validation
2257         does not work.
2259 2006-08-17  Jackson Harper  <jackson@ximian.com>
2261         * Control.cs:
2262         * ContainerControl.cs: Make validation events fire in the correct
2263         order.  TODO: For some reason the first validation event is not
2264         getting fired.
2266 2006-08-17  Mike Kestner  <mkestner@novell.com> 
2268         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
2270 2006-08-17  Mike Kestner  <mkestner@novell.com> 
2272         * ComboBox.cs : implement scroll wheel support for popped-down
2273         state. Fixes #78945. 
2275 2006-08-17  Jackson Harper  <jackson@ximian.com>
2277         * TreeView.cs: Specify treeview actions (old patch that didn't get
2278         committed for some reason).
2279         - Don't let the mouse wheel scroll us too far.  Just want to make
2280         the bottom node visible, not scroll it all the ways to the top.
2282 2006-08-17  Jackson Harper  <jackson@ximian.com>
2284         * XplatUIX11.cs: Mouse wheel events go to the focused window.
2286 2006-08-17  Mike Kestner  <mkestner@novell.com> 
2288         * ComboBox.cs : don't do mouseover selection in simple mode.
2290 2006-08-16  Jackson Harper  <jackson@ximian.com>
2292         * Form.cs: Fire the closing events for all the mdi child windows
2293         when a window is closed.  If the cancel args are set to true, the
2294         main window still gets the event fired, but it doesn't not close.
2295         * MdiWindowManager.cs: Do this closing cleanup in a Closed
2296         handler, instead of when the button is clicked, so cancelling the
2297         close works correctly.
2298         * ComboBox.cs: Send the mouse down to the scrollbar.
2300 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2302         * ListBox.cs: When passing 'null' to SelectedItem,
2303         set SelectedIndex to -1, to unselect items. This is the
2304         observed behaviour in .Net.
2306 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
2308         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
2309           MS flags saying there won't be any. (fixes #78800)
2310         * Control.cs (HandleClick): Made virtual
2312 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
2314         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
2315           cultures. Fixed bug #78399.
2317 2006-08-16  Jackson Harper  <jackson@ximian.com>
2319         * Form.cs: Use the MdiClients MdiChildren property to access
2320         MdiChildren instead of creating the array from the child controls.
2321         * MdiClient.cs: Maintain a separate array of the mdi children, so
2322         that insertion order is maintained when the Z-order is changed.
2324 2006-08-16  Mike Kestner  <mkestner@novell.com> 
2326         * ListView.cs : add an ItemComparer and default to it for sorting.
2327         Fixes #79076, but sorting needs a complete overhaul to be compat with
2328         MS.
2330 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
2332         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
2334 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
2336         * Hwnd.cs (Mapped): Properly traverse the tree
2338 2006-08-15  Chris Toshok  <toshok@ximian.com>
2340         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
2341         pass manager.Current.GetType() to ParseData.  It has to be the
2342         property type.  So, hold off doing the ParseData until we're in
2343         SetPropertyValue where we know the type.  This fixes the crash in
2344         #78821 but the textbox is still empty.
2346 2006-08-15  Chris Toshok  <toshok@ximian.com>
2348         * DataGrid.cs:
2349         - when we're scrolling, only call Edit() again if the
2350         current cell is still unobscured. Fixes bug #78927.
2351         - when handling mousedown on a cell, ensure the cell is visible
2352         before calling Edit.
2353         - remove the properties from DataGridRow, and remove the
2354         DataGridParentRow class altogether.
2355         
2357 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
2359         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
2360           fire OnTextChanged by ourselves. There's no point calling base,
2361           we don't set the base value anywhere else. Fixes #78773.
2363 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2365         * ListBox.cs: Call CollectionChanged when modifying
2366         an item from Items indexer, to update the actual items
2367         in the list box.
2369 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2371         * PrintDialog.cs: Small fixes for focus and a pair of checks,
2372         to match .Net behaviour.
2374 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
2376         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
2378 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
2380         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
2382 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
2384         * MessageBox.cs: Prevent potential NRE exception.
2385         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
2387 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
2389         * MessageBox.cs: Calculate the owner of a messagebox, also make
2390           it topmost. Fixes #78753
2392 2006-08-14  Chris Toshok  <toshok@ximian.com>
2394         * XplatUIX11.cs: A couple of fixes so that metacity will let us
2395         programmatically move windows.  first, set the PPosition hint as
2396         well as the USPosition hint.  Second include some code from pdb
2397         that sets the window type to NORMAL when we set the transient for
2398         hint.  This is because, in the absence of a window type, metacity
2399         thinks any window with TransientFor set is a dialog, and refuses
2400         to let us move it programmatically.  fascists.
2402 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
2404         * XplatUIX11.cs: When setting normal hints, take into consideration
2405           an different hints previously set so we don't delete them (fixes #78866)
2407 2006-08-12  Chris Toshok  <toshok@ximian.com>
2409         * ToolBarButton.cs: make Layout return a boolean, if something to
2410         do with the button's layout changed.
2412         * ToolBar.cs:
2413         - add another parameter to Redraw, @force, which all existing
2414           calls set to true.
2415         - make the Layout function return a boolean which is true if the
2416           layout has actually changed.  Redraw now uses this (and @force)
2417           to determine when to invalidate.  At present the only place
2418           where @force can be false is the call from OnResize, when
2419           background_image == null.  So, resizing a toolbar when the
2420           layout doesn't change results in no drawing.
2422 2006-08-12  Chris Toshok  <toshok@ximian.com>
2424         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
2425         the VScrollBar and HScrollbar reversed.  oops.
2427         * DataGrid.cs: fix the logic that assigns sizes to the implicit
2428         scrollbars.  we were assigning them twice (once in
2429         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
2430         therefore causing two scrollbar resizes (and redraws?) to happen
2431         per grid resize.
2433 2006-08-12  Chris Toshok  <toshok@ximian.com>
2435         * ToolBarButton.cs: redraw the entire button if the theme tells us
2436         to.
2438         * Theme.cs: add ToolBarInvalidateEntireButton.
2440         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
2441         buttons, just the border.
2443         * ThemeNice.cs: redraw the entire toolbar button since we need to
2444         draw the highlight image.
2446         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
2447         we need to redraw the entire button (not just the border).
2449 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
2451         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
2452           for vertical bars. Fixes the mismatches shown by #78513
2454 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
2456         * FileDialog.cs: If a saved/remembered path doesn't exist
2457           anymore, fall back to "Desktop".
2459 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
2461         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
2462           parent. It's apparently legal to not have one
2463         * XplatUIX11.cs:
2464           - SetZOrder: Don't try to set Z-Order on an unmapped window
2465           - CreateWindow: 0,0 are legal coordinates for a window. don't move
2466             it unless the coordinates are negative
2468 2006-08-10  Mike Kestner  <mkestner@novell.com>
2470         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
2471         when setting to null per msdn docs.  Fixes #78854.
2473 2006-08-10  Chris Toshok  <toshok@ximian.com>
2475         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
2476         flickering by setting a clip rectangle on the Graphics when we
2477         need to redraw just a particular menuitem.  Also, rename "OnClick"
2478         to "OnMouseDown" to reflect what it actually is.
2479         
2480         * Form.cs: track the OnMouseDown change.
2482 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
2484         * CommonDialog.cs: Properly inherit the CreateParams from the form
2485           and only change what we need. Fixes #78865
2487 2006-08-10  Chris Toshok  <toshok@ximian.com>
2489         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
2490         flickering in flat mode (and most of the flickering in general) by
2491         only invalidating the button border (and not the entire rectangle)
2492         when the state changes.  A couple of cases still flicker:
2493         ToggleButtons, and the dropdown arrow case when the user mouse
2494         ups.
2496 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
2498         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
2499           for german keyboards. Numlock state shouldn't affect the behaviour
2500           of the Del key. Fixes bug #78291.
2502 2006-08-10  Chris Toshok  <toshok@ximian.com>
2504         * ListControl.cs: remove the items.Clear line from BindDataItems,
2505         as this is the first thing done by both subclasses in their
2506         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
2507         passed -1, refresh the list.  This gets databinding working when
2508         the datasource is set on the list before the datasource is
2509         populated (as in wf-apps/ReportBuilder.)
2511         * ComboBox.cs: remove the argument to BindDataItems.  This call
2512         should really go away, and be initiated by the ListControl code.
2514         * ListBox.cs: same.
2516 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
2518         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
2519           if no data is in the document when the control is displayed
2521 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
2523         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
2524           yes (fixes #78806)
2525         * TextControl.cs: 
2526           - PositionCaret: Allow positioning of caret but don't call methods 
2527             requiring a handle if the window isn't created yet
2528           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
2529           - owner_HandleCreated: Don't position the caret, just update it's 
2530             location. User might have already set a different position
2532 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
2534         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
2535           windows. Screws up the returned coordinates for child windows. 
2536           Fixes #78825. I'm hoping this doesn't break something, since the
2537           code was explicitly put in 8 months ago, but no bug was attached.
2538           Menus still seem to work properly.
2540 2006-08-08  Chris Toshok  <toshok@ximian.com>
2542         * DataGrid.cs: make BeginInit/EndInit actually do what they're
2543         supposed to do - delay data binding until the EndInit call.  Also,
2544         make the table style collection's CollectionChangeAction.Refresh
2545         work properly.
2547         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
2548         (with action = Refresh) when a consituent table's MappingName is
2549         changed.
2551 2006-08-08  Chris Toshok  <toshok@ximian.com>
2553         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
2554         Invalidate, since changing the text can change the size of the all
2555         toolbar buttons.
2557 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
2559         * Form.cs (AddOwnedForm): Still need to add the form to our listif
2560           we don't have it yet
2562 2006-08-08  Chris Toshok  <toshok@ximian.com>
2564         * PrintControllerWithStatusDialog.cs: don't .Close() the status
2565         dialog, as this causes X errors later on, since we actually
2566         destroy the window.  Instead, .Hide() it.
2568 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
2570         * ComboBox.cs: Added focus reflection for popup window
2571         * XplatUIX11.cs: 
2572           - Removed transient setting for non-app windows for now, not sure it
2573             was needed
2574           - Fixed logic checking if we have captions when deciding 
2575             override_redirect, WS_CAPTION is two bits and a 0 check was not
2576             sufficient
2577           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
2578             complicated
2579         * Form.cs: 
2580           - AddOwnedForm: Don't just add the form to the list, call the property
2581             to ensure the driver is informed about the ownership as well
2582           - CreateHandle: Set the TopMost status in the driver if we have an owner
2583         * XplatUI.cs: Fixed debug statement
2585 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
2586         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
2587           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
2588           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
2589           TrackBarRenderer.cs: Make constructor private.
2590         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
2591         * ProfessionalColorTable.cs: Make properties virtual.
2593 2006-08-06  Duncan Mak  <duncan@novell.com>
2595         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
2596         is not changing.
2598 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
2599         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
2600           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
2601           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
2602           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
2603           Initial import of new 2.0 classes.
2605 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
2606         * Application.cs: Add 2.0 VisualStyles properties.
2608 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
2609         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
2610           XplatUIX11.cs: Create property to allow access to existing private
2611           variable "themes_enabled"
2613 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2615         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
2616         file size, as otherwise our class libraries fail using windows. Fixes
2617         bug #78759.
2619 2006-08-04  Jackson Harper  <jackson@ximian.com>
2621         * Form.cs:
2622         * XplatUIX11.cs: Move the toolwindow window manager creation into
2623         the X11 driver, this way on win32 we can let windows create/handle
2624         the toolwindows.
2626 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2628         * PrintDialog.cs: Remove some redundant checks, add some others,
2629         clean some code, and move the focus to the text boxes when the
2630         values are incorrect.
2632 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
2634         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
2636 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
2638         * NumericUpDown.cs: Setting the Minimum and Maximum is now
2639           handled correctly. Fixes bug #79001.
2641 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2643         * PrintDialog.cs: The "Copies" numeric up down must have
2644         set the Minimum property to 1; only if the value is bigger
2645         than 1, activate "Collate" check box. This is the behaviour of .Net.
2646         Also modify the Document elements only if it is not null.
2648 2006-08-03  Jackson Harper  <jackson@ximian.com>
2650         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
2651         length. (We have a larger array then actual node count).
2652                 
2653 2006-08-03  Jackson Harper  <jackson@ximian.com>
2655         * ComboBox.cs: Don't show selection by default.
2656         - The SelectAll isn't needed here, since the focus code should do
2657         that
2658         - DDL style lists to manual selection drawing, so when they
2659         get/lose focus they have to invalidate.
2661 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
2663         * TextBoxBase.cs: Don't always show all selections by default.
2665 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
2666         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
2667           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
2668           Fixed various typos.
2670 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
2672         * Control.cs: Removing the controls in a ControlCollection with
2673           Clear now hides the controls as expected. Fixes bug #78804. 
2675 2006-08-03  Jackson Harper  <jackson@ximian.com>
2677         * Control.cs: Revert previous focus patch, it breaks reflector.
2679 2006-08-03  Jackson Harper  <jackson@ximian.com>
2681         * ComboBox.cs: Cleanup selection and focus with the combobox.
2682         This also eliminates some duplicated keyboard code, since now
2683         everything is handled by the main class.
2684         - Make list selection work on mouse up instead of down, to match
2685         MS.
2687 2006-08-02  Jackson Harper  <jackson@ximian.com>
2689         * Control.cs: Setting focus needs to go through the whole
2690         selection mechanism.
2692 2006-08-02  Chris Toshok  <toshok@ximian.com>
2694         * PrintPreviewDialog.cs: change MinimumSize to use
2695         base.MinimumSize so it works.
2697 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
2699         * TextControl.cs:
2700           - UpdateCaret: Added sanity check in case caret isn't defined yet
2701           - Line.Delete: Now updating selection and caret markers if we're
2702             transfering a node (Properly fixes #78323)
2703           - SetSelectionEnd: Added sanity check
2704         * TextBoxBase.cs: Removed broken attempt to fix #78323
2706 2006-08-01  Chris Toshok  <toshok@ximian.com>
2708         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
2709         Close() call is handled in Form, not here.
2711 2006-08-01  Chris Toshok  <toshok@ximian.com>
2713         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
2714         layout/rendering.
2716         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
2717         for sizes < 100% zoom.  The code now aggressively attempts to keep
2718         from calling document.Print (), and tries not to use the scaling
2719         g.DrawImage whenever possible (it still does if you scale to >
2720         100%, since usually that involves huge images).
2722         * PrintPreviewControl.cs: hook up the close button.
2724 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
2725         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
2726           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
2727           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
2728           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
2729           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
2730           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
2731           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
2732           Removed [Serializable] for 2.0 Event Handlers.
2734 2006-07-31  Jackson Harper  <jackson@ximian.com>
2736         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
2737         * TextControl.cs: Uncomment out the body of this method.
2739 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
2741         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
2742           standard cursors.
2744 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
2746         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
2747           that embed TextBox and need selections visible even if textbox is not
2748           focused to enforce that behaviour.
2749         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
2750           selection drawing
2752 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
2754         * TextControl.cs:
2755           - Added new SetSelectionStart/SetSelectionEnd overloads
2756           - Fixed viewport width assignment to be accurate
2757           - Adjusted alignment line shift calculations to allow cursor on right
2758             aligned lines to be always visible at the right border (like MS)
2759         * TextBoxBase.cs:
2760           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
2761           - TextBoxBase_SizeChanged: recalculating canvas on size changes
2762           - CalculateScrollBars: Use ViewPort size instead of window size, to
2763             properly consider space occupied by the border and scrollbars 
2764             (Fixes #78661)
2765           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
2766             calculations; no longer leaves artifacts
2767           - CaretMoved: Adjusted window scrolling to match MS and fixed several
2768             calculation bugs (Still missing right/center align calculations)
2770 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
2772         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
2773           use of both scroll rect and clip rect, as they do the same.
2775 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
2777         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
2778           in the event handler (fixes #78912)
2780 2006-07-31  Chris Toshok  <toshok@ximian.com>
2782         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
2783         grid.ListManager.Count, since grid.ListManager might be null.
2784         This of course begs the question "why are we drawing rows for a
2785         grid with no list manager (and therefor no rows)?"  Fixes the
2786         crash in bug #78929.
2788 2006-07-31  Chris Toshok  <toshok@ximian.com>
2790         * RelatedPropertyManager.cs: Don't always chain up to the parent
2791         ctor.  instead, call SetDataSource if the parent's position is !=
2792         -1.  Fixes the crash in #78822.
2794 2006-07-31  Chris Toshok  <toshok@ximian.com>
2796         * DataGrid.cs (get_ListManager): use field instead of property
2797         accessors for datasource and datamember.
2798         (RowsCount): make internal again.
2799         (OnMouseDown): end edits before resizing columns/rows.
2800         (OnMouseUp): restart edits after resizing columns/rows.
2802 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
2804         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
2805           This fixes the situation where the last set cursor is displayed
2806           whenever the mouse is over scrollbars.
2808 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2810         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
2811         Document properties, as well as initial values.
2813 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
2815         * XplatUIWin32.cs (SetBorderStyle): Setting both border
2816           and ClientEdge results in a 3-pixel border, which is
2817           wrong.
2819 2006-07-28  Jackson Harper  <jackson@ximian.com>
2821         * TreeNodeCollection.cs: Fix the clear method.
2822         - Fix the Shrink also
2824 2006-07-27  Jackson Harper  <jackson@ximian.com>
2826         * TreeView.cs: Make sure the visible order is computed when we
2827         attempt to size the scrollbars (for trees that mess with the
2828         scrolling when they shouldn't.
2829         - Make sure to give the scrollbars valid values.
2831 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
2833         * XplatUIX11.cs: Move motion compression code to where it
2834           has less performance impact
2836 2006-07-26  Jackson Harper  <jackson@ximian.com>
2838         * UpDownBase.cs: When the control is selected make the child
2839         controls non selectable, so that a click on them won't do a
2840         focus/unfocus cycle.
2841         - Don't give focus to the text box when the spinner is selected.
2842         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
2844 2006-07-26  Chris Toshok  <toshok@ximian.com>
2846         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
2847         satisfied with this solution.  If the bitmaps are small, we should
2848         just cache them in the PrintPreviewDialog and draw them here.
2849         Also, the layout is broken for the 2-up and 3-up cases.
2851         * Theme.cs: add PrintPReviewControlPaint.
2853         * PrintPreviewDialog.cs: first pass implementation.
2855         * PrintPreviewControl.cs: first pass implementation.  No
2856         scrollbars yet.
2858         * PrintDialog.cs: only validate fields if that particular portion
2859         of the UI is enabled.  Also, set the document's controller to a
2860         PrintControllerWithStatusDialog wrapping the document's print
2861         controller.
2863         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
2864         bring up a SaveFileDialog (i hope we don't want to match the
2865         behavior of the crappy windows file entry) and set the
2866         PrinterSettings.PrintFileName accordingly.
2868 2006-07-26  Jackson Harper  <jackson@ximian.com>
2870         * ContainerControl.cs: Add a field that disables auto selecting
2871         the next control in a container when the container is activated.
2872         * UpDownBase.cs: Don't select the text box when the up down is
2873         selected.
2875 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
2877         * XEventQueue.cs: Added methods for peeking (used for compression
2878           of successive events)
2879         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
2880           mouse move events (fixes #78732)
2882 2006-07-25  Jackson Harper  <jackson@ximian.com>
2884         * UpDownBase.cs: Use an internal class for the textbox so that we
2885         can control focus.  the updown control should always have focus,
2886         if either the text area or the buttons are clicked.
2887         - Send the key messages to the textbox, since it never actually
2888         has focus
2889         - Activate and decativate the textbox caret.
2891 2006-07-24  Jackson Harper  <jackson@ximian.com>
2893         * Control.cs: Use the directed select when selecting a control,
2894         this way the container controls override will get called and the
2895         whole ActiveControl chain will get triggered.  TODO: probably need
2896         to make sure this gets done everywhere instead of the old
2897         Select(Control).
2898         * ContainerControl.cs: Implement the directed Select method to
2899         find and activate the correct child control.    
2900         
2901 2006-07-22  Mike Kestner  <mkestner@novell.com>
2903         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
2904         menu handling code so that clicks without a grab work too.
2905         [Fixes #78914]
2907 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
2909         * FileDialog.cs: Enable the BackButton when dirstack has one element.
2910           Added some small optimizations.
2912 2006-07-21  Matt Hargett  <matt@use.net>
2914         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
2916 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
2918         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
2919           tests pass and match MS in some strange border cases.
2921 2006-07-21  Chris Toshok  <toshok@ximian.com>
2923         * ThemeWin32Classic.cs: handle drawing of the relation links and
2924         parent row buttons.
2926         * Theme.cs: change args to DataGridPaintParentRow.
2928         * DataGrid.cs: Don't use controls for the relation links and
2929         parent buttons, so we have to handle all their interactions in
2930         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
2931         when we're navigating through child tables, so we can reinstate
2932         selection, expanded state, current cell, etc.
2934 2006-07-20  Chris Toshok  <toshok@ximian.com>
2936         * ToolBar.cs: When we redraw a button, for whatever reason,
2937         there's no reason to redraw the entire toolbar.  Also, don't call
2938         Control.Refresh from within Redraw, as it's much heavier than
2939         Invalidate (which is really what we want).
2941 2006-07-20  Chris Toshok  <toshok@ximian.com>
2943         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
2944         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
2945         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
2946         traces from within a debug IBindingList datasource
2947         (in mono/winforms/datagrid) for *days*, I've finally gotten things
2948         to work in a similar fashion.
2950 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2952         * ListBox.cs: Don't call Sort () when setting 
2953         the Sorted property to false (avoid an unnecessary sort).
2955 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2957         * ListControl.cs: DataSource should throw an ArgumentException
2958         instead of a normal exception when the argument is not of the 
2959         correct type.
2961 2006-07-20  Mike Kestner  <mkestner@novell.com>
2963         * Control.cs: add InternalPreProcessMessage to allow us to steal
2964         key events before MWF gets its paws on them.  Adapted from a
2965         suggestion by eno.
2966         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
2967         up/down/left/right navigation. Override the new internal control
2968         method to steal the events since they never make it to WndProc.
2969         * ToolBarButton.cs: don't worry about pushed when setting hilight
2970         since the drawing code prefers pushed to hilight. Invalidate on 
2971         Hilight changes. Fixes #78547 and #78525.
2973 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
2975         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
2976           the canvas size. Fixes #78868
2978 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
2980         * Splitter.cs: Track requested split position until first layout
2981           is performed. Fixes #78871
2983 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
2985         * Application.cs: Removed code that forces 1.x for the version
2986           number if the version started with 0. Not sure why that code was
2987           there and I couldn't find any bugs that indicated we needed it.
2988           Fixes #78869
2990 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
2992         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
2993           ResetDefaults(), just write some output to the console until it's
2994           implemented. Fixes bug #78907 for now. Eliminated two warnings.
2996 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
2998         * PropertyGridView.cs: set StartPosition of drop down forms
2999         so they appear in correct initial spot.  Fixes #78190.
3001 2006-07-19  Mike Kestner  <mkestner@novell.com>
3003         * ThemeWin32Classic.cs: use parent background color when drawing
3004         flat toolbars.  Restructure the conditionals to make sure non-flat
3005         non-Divider toolbars are filled too.  Fixes #78837.
3007 2006-07-19  Mike Kestner  <mkestner@novell.com>
3009         * ListBox.cs: Sort on collection changes even if the handle
3010         isn't created yet.  Fixes #78813.
3012 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3014         * ListControl.cs: DisplayMember should never be null,
3015         and now we assign String.Empty when null is passed to it (this
3016         is the .Net way).
3018 2006-07-17  Mike Kestner  <mkestner@novell.com>
3020         * ListViewItem.cs: restructure Font and subitem Font handling 
3021         to hold a specific font and refer back to owner on null.
3022         Fixes #78761.
3024 2006-07-17  Mike Kestner  <mkestner@novell.com>
3026         * ToolBar.cs: bandaid for side-effect of previous patch which was
3027         discarding explicit heights for non-AutoSize toolbars.  Need to
3028         extend my format tester to deal with AutoSize=false. Fixes #78864.
3030 2006-07-15  Jackson Harper  <jackson@ximian.com>
3032         * LabelEditTextBox.cs:
3033         * TreeView.cs: Use a new LabelEdit class for node editing, this
3034         class automatically 'closes' itself when it gets the enter key or
3035         loses focus.
3036         - Use the client rectangle when setting the trees scrollbars, so
3037         border style is taken into account.
3038         
3039 2006-07-14  Jackson Harper  <jackson@ximian.com>
3041         * TreeNode.cs:
3042         * TreeView.cs: Make the editing work similar to MSs, firing the
3043         events correctly and ending edits correctly.
3045 2006-07-14  Mike Kestner  <mkestner@novell.com>
3047         * ToolBarButton.cs:
3048         * ToolBar.cs: layout restructuring and redraw enhancements to support
3049         formatting changes gracefully, like setting TextAlign, ImageList, 
3050         ButtonSize, and Appearance.  Handles explicit button sizing quirks
3051         of the MS controls.  Things like flat toolbars ignoring button size
3052         but becoming constant sized at the largest button's size.  Normal
3053         toolbars with an image set cannot be shrunk smaller than the image,
3054         but text can be clipped/ignored.
3055         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
3056         is zero.  Seems like DrawString should be smart enough to not put
3057         anything on screen though. Also trim labels and ellipsize at the char
3058         boundary, not word.
3059         Fixes #78711 and #78483.
3061 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
3063         * FolderBrowserDialog.cs: Disable "New Folder" button and
3064           "New Folder" contextmenu menuitem if a folder like "My Computer"
3065           is selected.
3067 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
3069         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
3070         * FolderBrowserDialog.cs:
3071           - Use MWFConfig to store and read size and position settings
3072           - Added code to create a new folder (button or context menu).
3073             Use TreeView labeledit to change the name of the new folder.
3075 2006-07-14  Jackson Harper  <jackson@ximian.com>
3077         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
3078         when the tree is scrolled we end editing.
3080 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
3082         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
3083           Down arrows
3085 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
3087         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
3088         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
3089         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
3090         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
3091         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
3092         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
3093         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
3094         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
3095         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
3096         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
3097         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
3098         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
3099         ListViewItemSelectionChangedEventHandler.cs,
3100         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
3101         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
3102         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
3103         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
3104         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
3105         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
3106         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
3107         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
3108         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
3109         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
3110         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
3111         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
3112         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
3113         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
3114         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
3115         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
3116         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
3117         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
3118         WebBrowserNavigatingEventHandler.cs, 
3119         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
3121 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
3123         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
3124         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
3125         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
3126         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
3127         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
3128         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
3129         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
3130         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
3131         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
3132         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
3133         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
3134         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
3135         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
3136         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
3137         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
3138         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
3139         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
3140         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
3141         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
3142         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
3143         ListViewItemStates.cs, MaskFormat.cs: Added
3145 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
3147         * PropertyGridView.cs: Fix keyboard navigation of drop down.
3148         Patch from eno for bug 78558.
3149         
3150 2006-07-13  Jackson Harper  <jackson@ximian.com>
3152         * TreeView.cs: When an edit is finished make sure that the
3153         selected node is visible.
3154         - When setting the top/bottom use the scrollbars is_visible, so
3155         everything will be set correctly even if the tree isn't visible
3156         yet.
3158 2006-07-13  Jackson Harper  <jackson@ximian.com>
3160         * ComboBox.cs: Revert the item->index part of my previous patch.
3161         * TreeView.cs: Use LostFocus instead of Leave for detecting when
3162         the edit box has lost focus (duh).
3163         - Just make the edit box not visible when we get return, that will
3164         take the focus, which will call EndEdit
3165         * TreeNode.cs When we start editing, notify the treeview.
3167 2006-07-12  Jackson Harper  <jackson@ximian.com>
3169         * ComboBox.cs: Clear out old items before setting the item list.
3170         This prevents databound controls from having their items added
3171         twice.
3172         - Switch the combobox to use indices whereever possible instead of
3173         using Item's.  This allows usto navigate through lists that have
3174         more then one item with the same string value (ie a, b, b, a).
3175         - Scroll the listboxes scrollbar when a non visible item is
3176         highlighted
3177         - Allow keypress to cycle through all the possible values. For
3178         example if you have b1, b2, b3 and hold down the B key all the
3179         values will be cycled through.
3180         
3181 2006-07-12  Jackson Harper  <jackson@ximian.com>
3183         * TextBoxBase.cs:
3184         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
3185         this using the internal methods.
3186         * Control.cs: Add OnGotFocusInternal.  A new method that allows
3187         controls to "override" OnGotFocus and change focus behavior if
3188         needed.
3189         - Same thing for LostFocus
3190         * ComboBox.cs: Pass off focus to the text control properly.
3192 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
3194         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
3195         * FolderBrowserDialog.cs: Almost a complete rewrite.
3196           - Better support for Environment.Specialfolders
3197           - Added support for MWFVFS
3198           - Made setting SelectedPath work
3200 2006-07-12  Jackson Harper  <jackson@ximian.com>
3202         * Control.cs: Optimze getting all the controls.
3204 2006-07-11  Jackson Harper  <jackson@ximian.com>
3206         * ContainerControl.cs: Override SETFOCUS in the container control,
3207         so that it is not selected on mouse click.
3209 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
3211         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
3212           Hopefully we will have a better way once all of focus is complete.
3214 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
3216         * ThemeWin32Classic.cs: Commented out some debug code and fixed
3217           a compile error with csc.
3219 2006-07-11  Jackson Harper  <jackson@ximian.com>
3221         * Control.cs: When hiding a control only select the next control
3222         if the current control was focused.
3223         - Don't handle enter/leave when setting/killing focus, this is
3224         done by the container control.
3225         - Remove is_selected, it's not needed anymore.
3226         - Add utility methods for selecting a child control, and for
3227         firing the Enter/Leave events.
3228         * ContainerControl.cs: When a control is activated fire the
3229         enter/leave events.
3230         - Don't wrap when processing the tab key, so that focus can be
3231         moved outside of the container.
3232         - Use the correct active control
3234 2006-07-11  Jackson Harper  <jackson@ximian.com>
3236         * ComboBox.cs: Remove some debug code that was blinding me.
3237         * UpDownBase.cs: These controls actually aren't implicit, they are
3238         visible to the user.
3240 2006-07-10  Chris Toshok  <toshok@ximian.com>
3242         * DataGrid.cs: move back to the is_adding boolean field.  god i
3243         hate this is_editing/is_adding/is_changing stuff.
3245 2006-07-10  Chris Toshok  <toshok@ximian.com>
3247         * DataGridTableStyle.cs: just check if the property type is bool.
3248         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
3249         Don't use CanRenderType.
3251         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
3252         if our text == NullText.  Remove CanRenderType.
3254         * DataGridBoolColumn.cs: nuke CanRenderType.
3256         * DataGrid.cs: reenable some code to end the current edit inside
3257         of set_CurrentCell.  This fixes the other 1.1.16 regression.
3258         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
3259         Also, remove the visible_row_count arg from CalcRowHeaders, since
3260         we don't need to worry about the actual height of the area.
3262 2006-07-10  Chris Toshok  <toshok@ximian.com>
3264         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
3265         mode, just return.
3267         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
3268         the real sense of the IsInEditOrNavigateMode property (true =
3269         navigate, false = edit).  Also, update OnKeyPress to reflect this.
3271         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
3272         column style exists, we still need to set its property descriptor
3273         to match up with our list manager.
3275 2006-07-10  Chris Toshok  <toshok@ximian.com>
3277         * ThemeWin32Classic.cs: implement the new row/header painting
3278         approach.  The parent row painting will likely go away and
3279         replaced with label controls, but the rest seems to work ok (and
3280         efficiently).
3282         * Theme.cs: change the way we draw datagrid rows.  we don't draw
3283         the row headers as a block now.  Instead we draw them in the
3284         normal draw-row loop.  Add some calls for drawing parent rows and
3285         relation rows.
3287         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
3288         a default table style.  Set the defaults from ThemeEngine.Current,
3289         not SystemColors.  Fix lots of misc issues with property setters.
3291         * DataGrid.cs: move loads of style information out of this class
3292         as it's being duplicated with DataGridTableStyle.  keep track of a
3293         special DataGridTableStyle for the properties we used to mirror
3294         here.  Switch all the style properties to access this table style
3295         instead of instance fields of this class.  Also add a internal
3296         class to represent parent rows (more needs to be stored here, like
3297         the selection state from the parent table, as well as the
3298         expansion state.)  Also, for datasources with relations, do the
3299         right thing for collapse/expand, and add support for the
3300         navigation/parent row buttons.
3302         Lastly, fix the crash in the 1.1.16 build.
3304         * GridTableStylesCollection.cs: make the explicit interface
3305         implementations call the class's methods as opposed to duplicating
3306         them.
3308         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
3309         0 so the text doesn't jump around when we move the cursor.
3311 2006-07-10  Jackson Harper  <jackson@ximian.com>
3313         * TextBoxBase.cs:
3314         * ListBox.cs: Match MS's ToString (this makes debugging focus
3315         stuff infinitely easier).
3317 2006-07-10  Jackson Harper  <jackson@ximian.com>
3319         * Control.cs (SelectNextControl): When checking the control's
3320         parent use this instead of ctrl.parent so that null can be passed
3321         to SelectNextControl. (I have unit tests for this).
3322         - Remove unused var.
3324 2006-07-10  Chris Toshok  <toshok@ximian.com>
3326         * CurrencyManager.cs: correct one regression, the removal of the
3327         finalType field.  Also, add a MonoTODO on CanAddRows, implement
3328         Refresh() correctly, and fix some event emission in
3329         ListChangedHandler.
3331 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
3333         * FileDialog.cs: Don't use brackets for new folders if they exist
3334           under *nix. Instead use -(number of existing folders +1).
3336 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
3338         * FileDialog.cs:
3339           - Fixed really nasty bug #78771
3340           - Don't block the whole GUI when reading directories with a lot of
3341             entries. Use an other thread instead and call BeginInvoke to
3342             update the ListView in MWFFileView
3344 2006-07-07  Chris Toshok  <toshok@ximian.com>
3346         * Control.cs (Dispose): release any Capture when disposing.
3348 2006-07-07  Chris Toshok  <toshok@ximian.com>
3350         * LinkLabel.cs (Select): if we chain up to the parent, set
3351         focused_index to -1 so we'll search for the first available link
3352         the next time the user tabs into us.  Also, if the direction is
3353         backward and focused_index == -1, start the search from the last
3354         element.
3356 2006-07-07  Chris Toshok  <toshok@ximian.com>
3358         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
3359         is beyond the end of the text, don't do anything.
3360         (CreateLinkPieces): set our ControlStyles.Selectable based on
3361         whether or not we have any links.
3362         (Link.Invalidate): use a loop instead of foreach.
3363         (Link.set_Start): null out owner.sorted_links so it'll be
3364         recreated by CreateLinkPieces.
3366 2006-07-06  Chris Toshok  <toshok@ximian.com>
3368         * LinkLabel.cs: revert the SetStyle change.
3370 2006-07-06  Chris Toshok  <toshok@ximian.com>
3372         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
3373         (OnEnableChanged): s/Refresh/Invalidate
3374         (OnGotFocus): if we have a focused index already, refocus it (so
3375         if we mouse out/in to the window it'll focus the right link).
3376         (OnKeyDown): move the tab handling out of here.
3377         (OnLostFocus): don't set focused_index to -1, so we can refocus it
3378         when we lose focus.
3379         (OnMouseDown): don't Capture here - Control handles it.  Also,
3380         focus the active link.
3381         (OnMouseUp): don't deal with Capture.
3382         (OnPaintBackgroundInternal): remove.
3383         (OnTextAlignChanged): CreateLinkPieces before calling the
3384         superclass's method.
3385         (OnTextChanged): call CreateLinkPieces before calling superclass's
3386         method.
3387         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
3388         move around.
3389         (Select): implement this, moving the selection between different
3390         links, and call parent.SelectNextControl if we don't have another
3391         link to focus in the given direction.
3392         (CreateLinkPieces): call Invalidate instead of Refresh.
3393         
3394 2006-07-06  Chris Toshok  <toshok@ximian.com>
3396         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
3397         new LinkLabel internals.
3399         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
3400         over pieces looking for active/focused/etc links.  also, deal with
3401         runs of text (and links) with embedded \n's in them, and use
3402         MeasureCharacterRanges instead of MeasureString to figure out the
3403         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
3404         two-step.
3406 2006-07-04  Jackson Harper  <jackson@ximian.com>
3408         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
3409         XKB or key auto repeat, do it manually.  Without key auto repeat,
3410         when a key is held down we get key press, key release, key press,
3411         key release, ... with auto repeat we get key press, key press, key
3412         press ..., and then a release when the key is actually released.
3414 2006-07-03  Jackson Harper  <jackson@ximian.com>
3416         * TabControl.cs:
3417         * ThemeWin32Classic.cs: Tabs do not obey normal background color
3418         rules, they are always control color regardless of the background
3419         color.
3421 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
3423         * FileDialog.cs: Added internal class MWFConfig.
3424           Removed Registry support and replaced it with support for the new
3425           MWFConfig class. See MWFConfig comments for more information.
3427 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
3429         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
3430           rectangle. Added some patches from eno from bug #78490 and fixed
3431           the arrow position for small up and down CPDrawScrollButtons.
3433 2006-06-30  Jackson Harper  <jackson@ximian.com>
3435         * InternalWindowManager.cs: Remove some debug code.
3436         * Form.cs: When an MdiParent is set to null, the window is
3437         "detatched" and becomes a normal window.
3438         * MdiClient.cs: Don't bring the new child form to the front until
3439         it is activated (setting it as active does this), this makes the
3440         previously active forms titlebar get redrawn as inactive.
3442 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
3444         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
3445           with later controls
3447 2006-06-29  Mike Kestner  <mkestner@novell.com>
3449         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
3450         arrow in keynav state.  Fixes #78682.
3452 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
3454         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
3455           order (fixes #78393)
3457 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
3459         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
3460           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
3461           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
3462           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
3463           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
3464           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
3465           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
3466           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
3467           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
3468           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
3469           enumerations (FlagsAttribute, SerializableAttribute, added/removed
3470           values)
3472 2006-06-28  Mike Kestner  <mkestner@novell.com>
3474         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
3476 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
3478         * PropertyGrid.cs,
3479           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
3480           item lines from other area (It also makes BackColor consistent and
3481           compatible with .NET). Fixed bug #78564.
3483 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
3485         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
3486         Patch from Eno for #78555.
3488 2006-06-27  Chris Toshok  <toshok@ximian.com>
3490         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
3492         * DataGridColumnStyle.cs: same.
3494         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
3495         
3496         * DataGridDrawingLogic.cs: nuke.
3498 2006-06-27  Chris Toshok  <toshok@ximian.com>
3500         * DataGridTableStyle.cs: clean up the constructors, and build the
3501         list of child relations for this table.  I have no idea if this is
3502         where we should be doing it (it probably isn't), but since we're
3503         already iterating over the properties..
3505         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
3506         struct and array for keeping track of row information, similar to
3507         what's shown in a hack on
3508         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
3510         * Theme.cs: be consistent about the naming of DataGrid methods,
3511         prefering ColumnWidths and RowHeights over columnsWidths and
3512         RowsHeights.
3514         * ThemeWin32Classic.cs: same, and also add support for variable
3515         sized rows (and the +/- expansion icons for related rows).
3517 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
3519         * TextBoxBase.cs: Applied Eno's patch from #78660
3521 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
3523         * Form.cs (ScaleCore): We don't want to scale our form if it's
3524           state is minimized or maximized, but we still need to scale our
3525           child windows. Also, added try/finally block to ensure layout
3526           gets reset (Fixes #78697)
3528 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
3530         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
3532 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
3534         * Form.cs: Fixed c+p error and added check to resize form if minimum
3535           size is bigger than current size (Fixes #78709)
3537 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
3539         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
3541 2006-06-26  Mike Kestner  <mkestner@novell.com>
3543         * ComboBox.cs: only do Keypress handling in the combo when there  
3544         are items in the collection. Fixes #78710.
3546 2006-06-26  Chris Toshok  <toshok@ximian.com>
3548         * Binding.cs: make this work bi-directionally.  also, clear up
3549         other mixups between Push/Pull Data (e.g. we're supposed to pull
3550         data when validating).
3552         * BindingManagerBase.cs: trim some fully qualified collection
3553         types.
3555         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
3557 2006-06-23  Chris Toshok  <toshok@ximian.com>
3559         * PropertyManager.cs: It appears (according to the unit tests)
3560         that PropertyManager doesn't use
3561         PropertyDescriptor.AddValueChanged to track propery value changes
3562         in its datasource, but uses the same scheme as Binding, where it
3563         looks for a <Property>Changed event and binds to it.
3565         Also, according to the docs, IsSuspended always returns false for
3566         a property manager with a non-null datasource.
3568 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
3570         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
3571           need to update the actual DialogResult. (Fixes #78613)
3573 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
3575         * Form.cs (ShowDialog): Release any captures before running the
3576           new message pump (fixes #78680)
3578 2006-06-22  Mike Kestner  <mkestner@novell.com>
3580         * ListView.cs: Layout column widths properly in details mode even 
3581         if HeaderStyle.None is set.  Fixes #78691.
3583 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
3585         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
3587 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
3589         * Control.cs (ContainsFocus): Using new driver method to get focused
3590           window, instead of trying to use internal tracking var, which can
3591           recursion issues (Fixes #78685)
3592         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
3593           XplatUIWin32.cs: Added GetFocus method to return focused window
3595 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3597         * ColorDialog.cs: when the mouse button is pressed inside the color
3598         matrix, don't let the cursor move out of it until the button is
3599         released, which is the behavior on windows. Changed 'colours' by
3600         'colors' to use the same word consistently.
3602 2006-06-21  Chris Toshok  <toshok@ximian.com>
3604         * DataGrid.cs: add in some basic navigation stuff (navigating to a
3605         child relation and back, using a stack).  Also, remove
3606         GetDataSource and the code that calls it - it's not needed.  Also,
3607         track CurrencyManager.ListName's removal.
3609 2006-06-21  Chris Toshok  <toshok@ximian.com>
3611         * CurrencyManager.cs: push some of the original type checking from
3612         BindingContext.CreateBindingManager to here, and remove some of
3613         the finalType stuff.  Need more tests to make sure I've got the
3614         ListName part right, and we might need more in SetDataSource.
3616         * PropertyManager.cs: add a ctor that takes just the datasource,
3617         and no property name.  Make SetDataSource work with a null
3618         property_name, and make Current return the data_source if the
3619         property descriptor is null.  this makes 'string foo = "hi";
3620         BindingContext[foo].Current' return "hi" as it should.
3622         * RelatedCurrencyManager.cs: make this code more generic - there's
3623         no reason the parent manager has to be CurrencyManager, and
3624         there's no reason to pass the DataRelation.  It suffices to use a
3625         BindingManagerBase and PropetyDescriptor.
3627         * RelatedPropertyManager.cs: make a similar change here.
3628         
3629         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
3630         flower I knew it could be.
3632 2006-06-20  Chris Toshok  <toshok@ximian.com>
3634         * PropertyManager.cs: the PropertyChangedHandler is invoked when
3635         data in the source has changed and we need to update the control,
3636         so s/PullData/PushData.
3638         * CurrencyManager.cs: Refresh is meant to update the control from
3639         data in the datasource.  So, s/PullData/PushData.
3641         * BindingContext.cs: add more ugliness (we weren't handling the
3642         case where data_source = DataTable and data_member = column_name).
3644         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
3645         from the perspective of the datasource.  PullData pulls from the
3646         control, PushData pushes to the control.
3648 2006-06-20  Chris Toshok  <toshok@ximian.com>
3650         * BindingContext.cs: rewrite the CreateBindingManager code to
3651         handle navigation paths more or less properly.  This could
3652         definitely stand some more work, in particular to push the
3653         recursion up to the toplevel.  But that relies on fixes in other
3654         places (System.Data comes to mind).
3656         Also, move to a flat hashtable (and encode the twolevel nature of
3657         the dictionary into the hash key).  This lets us implement the
3658         IEnumerable.GetEnumerator method.
3660         * RelatedCurrencyManager.cs: new class.  Update our view based on
3661         our relation and our parent CurrencyManager's position.
3663         * CurrencyManager.cs: split out some logic from the ctor into
3664         SetView, so it can be called from the new RelatedCurrencyManager
3665         subclass.
3667         * RelatedPropertyManager.cs: new class.  Update our datasource
3668         based on the position of our parent CurrencyManager.
3670         * PropertyManager.cs: split out some logic from the ctor into
3671         SetDataSource, so it can be called from the new RelatedDataSource
3672         subclass.  Also, make the Current getter return the value
3673         of the PropertyDescriptor, not the data_source.
3675         * Binding.cs: no need to duplicate the string splitting code here.
3677 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
3679         * Control.cs:
3680           - set_Enabled: OnEnabledChanged is not called if the inherited state 
3681             of the control is not altered, even though  we might be changing the
3682             internal state of the control (#78458)
3683           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
3684             OnEnabledChanged, to allow easy altering of any child window state
3685           - OnEnabledChanged: Added code to enable/disable driver window state
3686           - OnParentEnabledChanged: Instead of firing the event, call 
3687             OnEnabledChanged, which will fire the event and also a) set driver
3688             window state and pass the enabled state to any grandchildren (#78458)
3690 2006-06-19  Jackson Harper  <jackson@ximian.com>
3692         * InternalWindowManager.cs: We don't set the cursor explicitly
3693         thats done via the response to NCHITTESTs.
3694         - Don't need to adjust for titlebar heights anymore, the
3695         coordinates are coming in the correct coordinates now (see peters
3696         last patch).
3699 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
3701         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
3702           being translated relative to whole window, instead of client window.
3703           That caused broken offsets on mouseclick (and caused gas for our
3704           InternalWindowManager)
3706 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
3708         * TextControl.cs:
3709           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
3710           - Undo(): Added replay of cursor move on DeleteChars action; added
3711             calling Undo() again if a recorded cursor move is invalid (to
3712             ensure that some action is performed on Undo)
3713         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
3715 2006-06-16  Jackson Harper  <jackson@ximian.com>
3717         * MdiClient.cs: Instead of just sizing maximized windows when
3718         there is a resize we also have to adjust the Y of minimized
3719         windows, so they stay pinned to the bottom of the mdi container.
3720         - Eliminate separate tracking of the active control, we can just
3721         get this from the controls collection.
3722         - Paint the decorations for the newly activated titlebar so we get
3723         a pretty blue bar.
3724         * InternalWindowManager.cs:
3725         * ThemeWin32Classic.cs: Minimized windows get all three buttons
3726         even if they are a tool window.
3727         
3728 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
3730         * TextControl.cs (Undo): Handle non-existent cursor locations in the
3731           undo buffer, these can happen when text was deleted and the cursor
3732           was recorded first. Since we will also have a recorded cursor
3733           after the delete this is not an issue. (Fixes #78651)
3735 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
3737         * AccessibleObject.cs: Remove dependence on Control.is_selected;
3738           instead properly track control states internally (allows us to
3739           remove is_selected from Control)
3741 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3743         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
3744         whose width is not a multiple of 8.
3746 2006-06-13  Jackson Harper  <jackson@ximian.com>
3748         * MdiClient.cs:  Only maximize the next child if the current one
3749         is maximized.
3751 2006-06-13  Chris Toshok  <toshok@ximian.com>
3753         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
3754         modified.  Also, guard against grid or grid_drawing being null in
3755         Invalidate.
3757         * DataGrid.cs: Reformat tons of getters/setters.  In the
3758         DataMember setter, just call SetNewDataSource instead of
3759         duplicating some of its functionality.  In SetNewDataSource, don't
3760         check ListManager for null, since the property getter creates the
3761         object if needed.
3763         * DataGridTableStyle.cs: don't set TableStyle or call
3764         SetDataGridInternal on the column here, it's done in
3765         GridColumnStylesCollection.Add.
3767         * GridColumnStylesCollection.cs: fix all the explicit interface
3768         implementations to just call our methods.  Nuke AddInternal() and
3769         move the body of it to Add().  Also, add a call to
3770         column.SetDataGridInternal to Add().
3772         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
3773         base()+duplicate code.  Also, use the Format property instead of
3774         format to generate an Invalidate ala MS.  Lastly, create the
3775         textbox here, unconditionally.
3776         (set_Format): call Invalidate.
3777         (get_TextBox): no need to call EnsureTextBox.
3778         (Commit): remove the message box.
3779         (Edit) remove the call to EnsureTextBox.
3780         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
3781         (EnterNullValue): no need to check textbox for null.
3782         (HideEditBox): no need to check textbox for null.
3783         (SetDataGridInColumn): add the textbox to the grid's controls.
3784         (EnsureTextBox): nuke.
3785         
3786 2006-06-13  Jackson Harper  <jackson@ximian.com>
3788         * MdiWindowManager.cs: Hook up to the maximized menus paint event
3789         and redraw the buttons when needed. Unhook when the window is
3790         unmaximized.
3791         * MainMenu.cs: Add an internal Paint event, the mdi window manager
3792         needs this so that it can redraw its buttons when the menu is
3793         repainted.
3794         * InternalWindowManager.cs:
3795         * Form.cs: The method order has changed for DrawMaximizedButtons,
3796         so that it can be a PaintEventHandler.
3797         
3798 2006-06-13  Jackson Harper  <jackson@ximian.com>
3800         * MdiClient.cs: When we close a maximized mdi window, the next mdi
3801         window is activated and maximized, even if it wasn't before.
3802         - When  a new window is activated repaint the decorations of the
3803         old one, so that it no longer has the Active "look" (the blue
3804         titlebar).
3805         * InternalWindowManager.cs: Open up CreateButtons to base classes
3806         so they can recreate the buttons on state changes.
3807         - If a window is maximized give it all three buttons
3808         * MdiWindowManager.cs: Create the titlebar buttons when the state
3809         is changed, this is needed because a toolwindow will not have all
3810         three buttons until it is maximized.
3812 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
3814         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
3815           Fixed bug #78609.
3817 2006-06-12  Jackson Harper  <jackson@ximian.com>
3819         * KeysConverter.cs: Make sure we handle the Ctrl special case
3820         if its the only key.
3821         
3822 2006-06-12  Jackson Harper  <jackson@ximian.com>
3824         * Theme.cs: Add a method to get the size of a managed window
3825         toolbar button.
3826         * InternalWindowManager.cs: Remove the ButtonSize property, this
3827         should be retrieved from the theme.
3828         * MdiWindowManager.cs: Get the button size from the theme
3829         * ThemeWin32Classic.cs: Make the method to get the managed window
3830         titlebar button size public.
3831         - Handle the different button sizes of maximized toolwindows
3832         (should match any maximized window).
3833         - Get the titlebar height from the theme, not the WM (which gets
3834         it from the theme).
3836 2006-06-12  Jackson Harper  <jackson@ximian.com>
3838         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
3839         event down to the mdi window manager.
3840         - Expose some extra stuff to base classes
3841         - Make sure to end the Capture on an NC Mouse up, so that we can
3842         get double clicks properly, and the sizing doens't stick.
3843         - When doing PointToClient contain it in the workable desktop
3844         area, this prevents windows from changing size when the cursor is
3845         pulled outside of the working area while sizing.
3846         * MdiWindowManager.cs: When we get a double click maximize the
3847         window.
3848         - Reset the cursor after handling mode changes.
3850 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
3852         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
3853           current desktop, instead of just assuming a 0, 0 origin. This
3854           is needed for our internal window manager, to know the top
3855           margin of the desktop
3857 2006-06-12  Chris Toshok  <toshok@ximian.com>
3859         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
3860         we need this to get rid of the selected background in the bool
3861         column.
3862         (CancelEditing): move the ConcedeFocus call to above the Abort
3863         call.  Also, set is_changing to false and invalidate the row
3864         header if we were changing before.
3865         (ProcessKeyPreviewInternal): remove, since noone outside this
3866         class calls it anymore.  Roll the code into ProcessKeyPreview.
3867         (EndEdit): remove the internal version.
3868         (InvalidateCurrentRowHeader): make private.
3870         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
3871         Keys.Escape handling (and with it the last call to
3872         DataGrid.EndEdit from outside the class.)
3875 2006-06-12  Chris Toshok  <toshok@ximian.com>
3877         * DataGridTextBox.cs (.ctor): isedit defaults to false.
3878         (OnKeyPress): set isedit to true.
3879         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
3880         already handled by the grid.
3882         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
3883         right.  ugh.
3884         (set_DataSource): SetDataSource always returns true, so stop
3885         putting it in an if statement.
3886         (EndEdit): get rid of some {}'s
3887         (ProcessGridKey): return true in case Keys.Escape.
3888         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
3889         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
3890         PositionChanged, stopped connecting to CurrentChanged.
3891         (GetDataSource): simplify this a bunch.
3892         (SetDataSource): change return type from bool to void.
3893         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
3894         to this, and make sure we don't set ListManager.Position inside
3895         set_CurrentCell.
3896         (OnListManagerItemChanged): if we're passed an actual index,
3897         redraw that row.
3899         * CurrencyManager.cs (set_Position): don't call PullData here.
3901 2006-06-09  Jackson Harper  <jackson@ximian.com>
3903         * TreeNode.cs:  Recalculate the visible order before doing the
3904         Expand/Collapse Below calls, because those calls generate an
3905         expose.
3906         - Reduce calls to the TreeView property, which is mildly expensive
3907         by using a local var.
3908         * Form.cs: Layout the MDI child windows when creating the parent
3909         form.
3910         - Don't use the internal constructor anymore
3911         * MdiClient.cs: use the parent form width/height (if available)
3912         when laying out the child windows, we do this because the
3913         mdiclient isn't docked yet when the initial layout is done.
3914         - Don't need an internal constructor anymore.
3916 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3918         * FileDialog.cs: handle access errors when trying to create a folder
3919         or changing to a directory. No need to initialize out parameters.
3921 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
3923         * FileDialog.cs: Append a number when creating a new folder if the
3924           folder already exists (use parenthesis instead of square brackets)
3926 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
3928         * FileDialog.cs:
3929           - Disabled registry support for windows and added better registry
3930             error checking for other systems (need to investigate why it
3931             works perfectly on my system)
3932           - If a folder already exist show an error MessageBox instead of
3933             trying to create an indexed name.
3934           - Fixed a non intentional typo.
3936 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3938         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
3940 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
3942         * FileDialog.cs: When creating a new folder don't crash if the
3943           folder already exists.
3945 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
3947         * FileDialog.cs: Allmost a complete rewrite.
3948           - added a "virtual" file system that handles the differences
3949             between unix and windows file systems (especially the directory
3950             structure). Moved most of the directory and file handling code
3951             into the vfs.
3952             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
3953             UnixFileSystem and FSEntry.
3954           - Recently used folder/directory, size, location and used file names
3955             (file name ComboBox) are now stored in the registry and get read
3956             before the dialog shows up (fixes part 6 of bug #78446).
3957           - Creation of new folders/directories is now possible (context menu
3958             or ToolBar). Added TextEntryDialog for this that fills in the gap
3959             until ListView.LabelEdit works.
3960           - Fixed cursor handling (bug #78527) and focus handling for
3961             PopupButtonPanel
3962           - Various "Search in" ComboBox enhancements. The content of the
3963             dropdown listbox now almost matches ms.
3964           - Changed the behaviour when the user switches to SpecialFolder
3965             Recent to show the ListView in View.Details.
3966           - Beside using the ToolBar to change the View property of the
3967             file ListView it is now possible to use the context menu too.
3969 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
3971         * ComboBox.cs: Don't create a new ObjectCollection when an item
3972           gets inserted. Just insert the item in the existing object_items
3973           ArrayList.
3975 2006-06-08  Jackson Harper  <jackson@ximian.com>
3977         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
3978         that the treeview and root node checks are done also, this fixes a
3979         regression i caused in the unit tests.
3981 2006-06-07  Wade Berrier <wberrier@novell.com> 
3983         * RichTextBox.cs: More ISO8859-1 -> unicode
3985 2006-06-07  Mike Kestner  <mkestner@novell.com>
3987         * ComboBox.cs : use items to hold highlight/selection so that
3988         collection insertions don't require synchronization.
3990 2006-06-07  Jackson Harper  <jackson@ximian.com>
3992         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
3993         routine.  We now always keep the sized edge at the cursor instead
3994         of computing movement and adjusting rects.  There is one buglet
3995         with this method though when the cursor is moved over area that
3996         the window can not expand too (such as the toolbars on the desktop).
3998 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4000         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
4001         here. Fixes crash on startup in AlbumSurfer.
4003 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
4005         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
4006           values
4008 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4010         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
4011         statement to avoid calling XNextEvent which will block if another thread
4012         took the event that we were expecting. Fixes bug #78605.
4014 2006-06-07  Mike Kestner  <mkestner@novell.com>
4016         * ListView.cs : isolated checkbox clicking from the selection logic.
4017         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
4019 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4021         * Form.cs: Check that the value passed to Form.DialogResult
4022         is a valid enum value.
4024 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4026         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
4027         Computer'. Clicking it in the network view goes to 'My Computer'.
4028         Added CIFS filesystem type. Display the mount point of filesystems.
4029         Avoid duplicate mount points (happens for me with CIFS);
4031 2006-06-06  Jackson Harper  <jackson@ximian.com>
4033         * InternalWindowManager.cs: Draw the maximized windows buttons
4034         when resizing.
4036 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4038         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
4039         all other dialogs. Fixes bug #78585.
4041 2006-06-06  Mike Kestner  <mkestner@novell.com>
4043         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
4044         Only invalidate checkbox on checkstate changes to avoid flicker.
4045         * ListBox.cs : avoid unselect/select when clicking selected item.
4046         avoid reselection flicker for already multiselected items.
4047         Fixes #78382.
4049 2006-06-06  Jackson Harper  <jackson@ximian.com>
4051         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
4052         the parent form so that the menu is removed if needed.
4054 2006-06-06  Mike Kestner  <mkestner@novell.com>
4056         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
4057         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
4059 2006-06-06  Mike Kestner  <mkestner@novell.com>
4061         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
4064 2006-06-06  Jackson Harper  <jackson@ximian.com>
4066         * Control.cs: Use the property (instead of the field) to get the
4067         default cursor so it is instantiated correctly.
4068         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
4069         resizes so we need to manually repaint the window decorations here.
4070         - Set the titlebar button locations as soon as they are created,
4071         otherwise they are not set correctly on win32.
4072         
4073 2006-06-06  Chris Toshok  <toshok@ximian.com>
4075         * CurrencyManager.cs (set_Position): call PullData before
4076         OnCurrentChanged.
4077         (AddNew): after calling IBindingList.AddNew, update our
4078         listposition, and call OnCurrentChanged/OnPositionChanged (without
4079         calling PullData).
4080         (OnCurrentChanged): remove the call to PullData from here.
4081         (OnItemChanged): remove the call to PushData from here.
4082         (OnPositionChanged): change the test from == null to != null to
4083         match the other methods.
4084         (ListChangedHandler): the grossest part of the patch.  Implement
4085         this such that it passes the unit tests in CurrencyManagerTest and
4086         the output more or less matches that of MS's implementation.
4088 2006-06-06  Mike Kestner  <mkestner@novell.com>
4090         * ListView.cs : only update check state on single click.
4091         * ThemeWin32Classic.cs : fix focus drawing for details view without
4092         fullrowselect.  Fixes #78454.
4093         * XplatUIX11.cs : fix for double click emission.
4095 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
4097         * PropertyGridView.cs : Applied Atsushi's patch to fix
4098         font dialog bug  (#78197).
4100 2006-06-05  Jackson Harper  <jackson@ximian.com>
4102         * TreeNode.cs: Compute the next node for expanding/collapsing
4103         correctly. We now factor in nodes without a NextNode
4104         correctly. (Fixes somes cases in nunit-gui).
4105         * InternalWindowManager.cs: Set the bounds when updating the
4106         virtual position of a tool window.
4107         
4108 2006-06-05  Chris Toshok  <toshok@ximian.com>
4110         * DataGrid.cs: rename cached_currencymgr to list_manager.
4111         (set_CurrentCell): move SetCurrentCell code here, and clean it up
4112         some.
4113         (CurrentRow, CurrentColumn): single accessors so we can make the
4114         cursor movement code a lot easier to understand.
4115         (CurrentRowIndex): implement this in terms of CurrentRow.
4116         (BeginEdit): clean this up a bit.
4117         (CancelEditing): sort out the is_editing/is_changing/is_adding
4118         stuff a little.
4119         (EndEdit): minor changes.
4120         (OnKeyDown): add a comment about a (most likely) unnecessary
4121         check.
4122         (OnMouseDown): cancel editing when we click on a row header.  And
4123         use the CurrentRow setter, not CurrentCell.
4124         (ProcessDialogKey): directly call ProcessGridKey.
4125         (UpdateSelectionAfterCursorMove): factor out this common block of
4126         code (it's used everywhere that we move the cursor by updating row
4127         or column).
4128         (ProcessGridKey): pretty substantial overhaul.  Use the
4129         CurrentRow/CurrentColumn properties to make the code a lot more
4130         readable.  Only use the CurrentCell property when we have to
4131         modify both row and column at once.  Tab behavior is still broken,
4132         and Delete is untested.
4133         (Select): if we have no selected rows, set selection_start to
4134         @row.
4135         (EditCurrentCell): rename EditCell this.  It was only ever invoked
4136         with CurrentCell as the arg, so drop the arg and rename it.
4138         * DataGridColumnStyle.cs: clean up the constructors a little, and
4139         drop CommonConstructor().
4141         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
4142         actually get notified when the user hits it.
4143         (ProcessKeyMessage): *substantially* simplify this method.
4144         There's no reason (that I can see) for the textbox to be making
4145         calls into the datagrid at all.  Remove all of them but the ones
4146         for Enter handling.  those will take some more work.
4148         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
4149         calling HideEditBox.
4150         (HideEditBox): if we have an active textbox, render it invisible
4151         without causing a re-layout of the datagrid.
4153 2006-06-05  Mike Kestner  <mkestner@novell.com>
4155         * ListView.cs : fix NRE crasher when focuseditem is cleared by
4156         collection changes by resetting it to Items[0].  Fixes #78587.
4158 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4160         * MessageBox.cs: if the height of the text is larger than the icon_size,
4161         use that. Fixes bug #78575.
4163 2006-06-05  Jackson Harper  <jackson@ximian.com>
4165         * TreeView.cs: Fix line drawing when scrolling.  To do this each
4166         node is basically responsible for drawing its entire horizontal
4167         area.  When drawing a node it draws its parent node lines if
4168         needed.
4169         - Adjust the clip area to the viewport rectangle
4170         - Fix Left/Right key handling to match MS. (It expand/collapses
4171         and moves to parents/first child but does not move selection to
4172         sibling nodes).
4173         - Fix SetTop to work with new bound calculation code
4174         - When scrollbars are no longer needed we need to reset scrolling
4175         vars and recalculate the visible order so the redraw is correct
4176         * TreeNode.cs: We can't expand/collapse nodes with no children.
4178 2006-06-03  John Luke  <john.luke@gmail.com> 
4180         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
4181         so the colors work without dev packages
4182         
4183 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
4185         * Control.cs 
4186           - Select: Implemented to just use activate. Seems to match MS 
4187             behaviour closest. Documented to only do actual control walking 
4188             based on it's parameters if in a container control so I moved 
4189             the code there.
4190           - Removed selection check logic from our internal Select() method
4191         * ContainerControl.cs:
4192           - Select: Moved selection logic from Control here, since MS documents
4193             that containers obey the bool arguments. No longer calling base
4195 2006-06-02  Jackson Harper  <jackson@ximian.com>
4197         * TreeView.cs: If the selected node isn't changed when we get
4198         focus update the previously selected node so that we see the
4199         selection box.
4201 2006-06-02  Mike Kestner  <mkestner@novell.com>
4203         * ComboBox.cs: restructure grab and general mouse event handling.
4204         Make the composite control raise mouse events like it was a single
4205         control for leaves/enters/motion/up/down events.  fix dropdown list
4206         coordinate mangling and refactor it into the scrollbar subclass to
4207         reduce code duplication.  Fixes #78282 #78361 and #78457.
4209 2006-06-02  Mike Kestner  <mkestner@novell.com>
4211         * ScrollBar.cs: remove Capture setting/clearing, as it happens
4212         automatically in the Control.WndProc.
4214 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4216         * FileDialog.cs: fix crash when running SharpChess, which sets the
4217         FilterIndex to 2 with only one Filter.
4219 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4221         * ToolBar.cs: add SizeSpecified property.
4222         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
4223         try to figure out our real size, otherwise fallback to what the
4224         container says.
4226 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
4228         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
4229         * Control.cs (WndProc): MS always calls the DefWndProc to pass
4230           up the event
4232 2006-06-01  Mike Kestner  <mkestner@novell.com>
4234         * ListView.cs: revamp the focus management in ListView.  It still
4235         causes churn of LostFocus/GotFocus emissions on clicks, but it's
4236         better than not handling focus at all.  Will revisit when pdb feels
4237         the general focus handling is solid.  Fixes #78526.
4239 2006-06-01  Jackson Harper  <jackson@ximian.com>
4241         * TreeView.cs: Set the default border style in the constructor.
4242         - Move painting to use OnPaintInternal instead of capturing
4243         WM_PAINT, this is the correct way of doing things
4244         - UpdateBelow shouldn't invalidate the scrollbar area
4245         - Cap the top on update below in case the node was above the top
4246         of the viewport rectangle.
4247         - ExpandBelow and Collapse below need to obey Begin/End Update.
4248         * TreeNode.cs: Make is_expanded internal so the treenode
4249         collection can change it without firing the whole event chain.
4250         * TreeNodeCollection.cs: When clearing all the child nodes make
4251         sure to recalc the visible order.
4252         - Improve algo for remove the top node
4254 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
4256         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
4257           SendMessage directly calling window procedures, which in turn might
4258           call SetFocus()
4260 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
4262         * Control.cs: Don't handle WM_SETFOCUS if the same window already
4263           has focus (works around X11 sending a FocusIn after our SetFocus)
4264         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
4266 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
4268         * Mime.cs: Fix for the NET_2_0 build.
4269           NameValueCollection needs StringComparer now.
4271 2006-05-31  Chris Toshok  <toshok@ximian.com>
4273         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
4274         return (via an out parameter) the starting X of the column.
4275         (UpdateVisibleColumn): track change to FromPixelToColumn.
4276         (HitTest): add a ColumnResize case here.
4277         (DrawResizeLine): new function, probably poorly named.
4279         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
4280         only need to keep one reference.
4281         (set_ListManager): same.
4282         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
4283         Also, add support for HitTestType.ColumnResize.
4284         (OnMouseMove): add column resize behavior here, and change the
4285         cursor to the correct one as we move around the datagrid.
4286         (OnMouseUp): terminate the column resize if we're resizing.
4287         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
4288         for the current cell.
4289         (ConnectListManagerEvents): use cached_currencymgr.
4290         (DisconnectListManagerEvents): fill this in, using
4291         cached_currencymgr.
4292         (SetCurrentCell): remove cached_currencymgr_events handling.
4293         (SetDataMember): only call DisconnectListManagerEvents if
4294         cached_currencymgr is != null.
4295         (SetDataSource): same.
4296         (OnListManagerCurrentChanged): cached_currencymgr_events ->
4297         cached_currencymgr.
4299 2006-05-31  Jackson Harper  <jackson@ximian.com>
4301         * BindingManagerBase.cs: Remove somedebug code that creeped into
4302         SVN.
4303         * TreeNode.cs: We get the indent level dynamically right now, so
4304         don't track it as a member.
4305         * TreeNodeCollection.cs: Make sure all nodes added to the list
4306         have parents, treeviews/topnodes setup properly.
4307         - Don't attempt to track indent level.
4309 2006-05-30  Jackson Harper  <jackson@ximian.com>
4311         * BindingContext.cs: Create the currency manager tables here.
4312         This allows us to more easily create null tables (when bad data
4313         members are used), and more easily create related currency
4314         managers.
4315         * CurrencyManager.cs: All the table creation stuff is done by the
4316         binding context now.
4317         - Current should throw an exception if listposition is -1.
4318         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
4319         been bound yet.
4321 2006-05-30  Mike Kestner  <mkestner@novell.com>
4323         * ListView.cs: allow reexpansion of zero-width column headers.
4324         Fixes #78528.
4326 2006-05-28  Chris Toshok  <toshok@ximian.com>
4328         * CurrencyManager.cs (get_Current): after the late binding
4329         listposition = -1 fix, we need to guard against it here and return
4330         null, otherwise we raise an exception (which is swallowed
4331         elsewhere, and breaks datagrid databinding.)
4333 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
4335         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
4336           than WM_SYSKEY, don't throw if get something unexpected (#78507)
4338 2006-05-26  Jackson Harper  <jackson@ximian.com>
4340         * ControlPaint.cs:
4341         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
4342         values, it's faster and it's all we care about (we don't care if
4343         the names aren't equal).
4344         * KeyboardLayouts.cs: Eliminate some dead code.
4345         - Lazy init things
4346         * X11Keyboard.cs: Lazy init keyboard detection.
4347         - Cleanup access modifiers a little.
4349 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
4351         * XplatUIX11.cs: Once again, attempting to get layout just right.
4353 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
4355         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
4356           the sizes of each link section, that will result in sizes that
4357           match DrawString's layout (Fixes #78391)
4359 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
4361         * FileDialog.cs: If AddExtension property is true autocomplete the
4362           extensions in SaveFileDialog correctly. Fixes bug #78453.
4363           Set MyNetwork and MyComputer to "C:\" for windows. This should
4364           fix part 8 of bug #78446 for now.
4366 2006-05-26  Chris Toshok  <toshok@ximian.com>
4368         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
4369         invalidate the current row header if we need to, but presumably
4370         we'll invalidate the row corrsponding to the bounds or
4371         editingControl.
4372         (GridHScrolled): switch back to this method, as it's part of the
4373         public api.  *sigh*.
4374         (GridVScrolled): same.
4375         (OnMouseWheel): hack up something that more or less works.  Call
4376         GridHScrolled/GridVScrolled directly, instead of duplicating much
4377         of their code here.
4378         (EnsureCellVisibility): reinstate a bunch of this code, since we
4379         can't just set the scrollbar Value and expect to do all the work
4380         in the ValueChanged handler.  Also, Call Update() after scrolling
4381         in one direction so the other XplatX11.ScrollWindow call has the
4382         proper stuff in the proper places.
4383         (EditCell): set is_editing to true before calling .Edit.
4385         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
4386         don't bother comparing first.
4387         (OnKeyPress): call grid.ColumnStartedEditing before calling
4388         base.OnKeyPress.  this will set is_changing and invalidate the row
4389         header if necessary.
4390         (ProcessKeyMessage): for WM_CHAR messages, call
4391         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
4392         and WM_KEYDOWN.
4393         
4394         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
4395         it's done in the DataGrid.
4396         (NextState): call grid.ColumnStartedEditing, which takes care of
4397         invalidating the row header (and setting is_changing).
4399         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
4400         here.  it's done in the DataGrid.
4402 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4404         * Control.cs: allow changing the cursor when the mouse position is
4405         out of bounds but Capture is set.
4406         * LinkLabel.cs: handle the case when the mouse button is pressed on the
4407         linklabel but released somewhere else.
4409 2006-05-25  Jackson Harper  <jackson@ximian.com>
4411         * TreeView.cs: When we get focus if there is no selected node make
4412         it the top node
4413         - Remove some uneeded setup code from Draw.
4414         * TreeNodeCollection.cs: If the tree doesn't have a top node when
4415         a new node is inserted make the new node the top.
4416         * XplatUIX11.cs:
4417         * Timer.cs: Use Utc time so that no local time zone stuff needs to
4418         be used (should be faster).
4419         
4420 2006-05-25  Chris Toshok  <toshok@ximian.com>
4422         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
4423         problem with the last commit.
4425 2006-05-25  Chris Toshok  <toshok@ximian.com>
4427         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
4428         need the invalidate call here, while scrolling right-to-left via
4429         the left arrow key (i.e. moving the editing cell while scrolling).
4431         * DataGrid.cs (.ctor): remove the initialization of
4432         ctrl_pressed/shift_pressed.  We no longer track them using key
4433         up/down handlers, but by using Control.ModifierKeys.  Also, switch
4434         to using ValueChanged handlers on the scrollbars instead of
4435         Scrolled event handlers.  This simplifies a bunch of the scrolling
4436         code.
4437         (GridHValueChanged): rename from GridHScrolled, and change it to
4438         work with the new event args.
4439         (GridVValueChanged): same.
4440         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
4441         (OnMouseWheel): actually scroll the datagrid.  Don't change the
4442         selected cell.
4443         (ProcessGridKey): correct all the keyboard navigation stuff I
4444         could find.  Ctrl up/down/left/right/home/end work now.
4445         (EnsureCellVisibility): correct method name spelling.  Also,
4446         simplify this a touch by not explicitly calling the
4447         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
4448         scrollbar value.
4449         (OnKeyUpDG): no need for this method now.
4450         
4451 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4453         * LinkLabel.cs: display the OverrideCursor when hovering the label.
4454         Fixes bug #78392.
4456 2006-05-25  Chris Toshok  <toshok@ximian.com>
4458         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
4459         r61019.
4461 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
4463         * Application.cs: Moved setting of is_modal and closing to before
4464           we create the control, to allow the event handlers called as a
4465           result of creation affect closing. Also removed Gonzalo's previous
4466           change to setting DialogResult, the behaviour has been moved to 
4467           Form.ShowDialog()
4468         * Form.cs: 
4469           - ShowDialog(): Removed explicit creation of the form, let RunLoop
4470             handle it instead
4471           - ShowDialog(): If no dialog result is set, we need to return Cancel
4472           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
4473             the close is cancelled
4475 2006-05-25  Jackson Harper  <jackson@ximian.com>
4477         * StatusBar.cs: We only need to update the sizes of the other
4478         panels when we have auto size contents.  Also we are only updating
4479         the contents of the panel, not the borders, so compensate for the
4480         border width (TODO: get this width from the theme somehow).
4481         * TreeView.cs: Scrollable is true by default
4482         - Use invalidate instead of refresh where needed
4483         - Factor the scrollable value into scrollbar updating
4484         - Update the scrollbars if the Scrollable property is altered
4485         - Update the selected node if its ImageIndex is changed
4486         - Handle null nodes in UpdateNode (mainly so we don't have to
4487         check if selected is null when updating it
4488         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
4489         are factored into the visible count
4490         - Use VisibleCount for clarity in the code
4491         - When the font is changed we need to recurse through all the
4492         nodes and invalidate their sizes
4493         
4494 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4496         * Application.cs: set the DialogResult to fixed when the main form is
4497         hidden or destroyed while being modal.
4499 2006-05-25  Miguel de Icaza  <miguel@novell.com>
4501         * Theme.cs: Use Tangoified messagebox icons. 
4503         (GetSizedResourceImage): Also cope with width = 0 and do not
4504         trigger a warning in that case (0 means "give me your icon from
4505         the resouce, no special size needed).
4507 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
4509         * Application.cs: Leave runloop if the the main modal form is 
4510           hidden (fixes #78484)
4512 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
4514         * BindingContext.cs : reject null datasource in Contains() and
4515           Item[].
4516         * CurrencyManager.cs : check data_member validity when data_source
4517           is dataset. When it is late binding, the initial position is -1.
4519 2006-05-24  Jackson Harper  <jackson@ximian.com>
4521         * TreeNodeCollection.cs: Dont't recalculate the visible order on
4522         inserted nodes that aren't visible.  This changes the
4523         max_visible_order which confuses scrollbar settings.
4524         - Use the enumerator to get the prev node instead of duplicating
4525         code.
4526         * TreeView.cs: Use new method for setting scrollbar values
4527         - Don't set the bounds every time the scrollbar is updated
4528         - When updating below the root node use an invalidate instead of a
4529         refresh to prevent the child controls (scrollbars) from being
4530         refreshed. (UpdateBelow still needs to be reworked anyways).
4531         - Reenable SetBottom now that visible orders are set correctly,
4532         added some debug code incase we ever get bad values there again.
4533         - Set the scrollbar max to 2 less then the max value, this
4534         compensates for the max value being one above the node count, and
4535         for scrollbars adding one extra "notch".
4536         - When drawing image nodes if there is an imagelist we draw the
4537         first image in the list if the supplied image index is out of the
4538         image list's bounds.
4539         
4540 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
4542         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
4543           we receive a size change from the WM (Fixes #78503)
4545 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
4547         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
4548           rectangle (Fixes #78501)
4550 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
4552         * ButtonBase.cs: 
4553           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
4554             as a bitfield.
4555           - Fixed MouseMove to no longer switch pressed state unless the left
4556             mouse button is pressed. Atsushi provided the original patch (#78485)
4557           
4558 2006-05-24  Jackson Harper  <jackson@ximian.com>
4560         * ScrollBar.cs: New internal methods that allow us to change a
4561         couple values on the scrollbar (the most common case is maximum
4562         and large change) without getting multiple invalidates.
4564 2006-05-24  Chris Toshok  <toshok@ximian.com>
4566         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
4567         (Edit): save off the original state in oldState, and set
4568         grid.is_editing to true.
4569         (OnKeyDown): abort editing if escape is pressed.  also, call
4570         NextState if space is pressed.
4571         (OnMouseDown): call NextState.
4572         (NextState): factor out shared code from OnKeyDown and OnMouseDown
4573         here.  Also, only invalidate the row header once (on the initial
4574         is_changing switch) to save on redraws.
4576 2006-05-24  Chris Toshok  <toshok@ximian.com>
4578         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
4579         if the value in the cell is different than it was before.  This
4580         keeps us from triggering a layout when we move around a datarid
4581         with a highlighted cell.
4582         (Edit): suspend layout when creating/positining the text box, and
4583         resume passing false so we don't ever actually re-layout.
4584         (ReleaseHostedControl): same.
4585         (EnsureTextBox): reformat slightly, and set WordWrap to false.
4587         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
4588         control-key sequences should go to the datagrid - remove that
4589         lock.  Also, modify the conditions under which we move between
4590         cells when moving the cursor within a cell, and remove the "this"
4591         and "base" from field accesses.  We weren't even consistent, given
4592         they all were in the base class.
4594 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
4596         * Binding.cs : (.ctor)
4597           An obvious NRE fix for BindingTest.CtorNullTest().
4599 2006-05-23  Chris Toshok  <toshok@ximian.com>
4601         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
4602         them between lines.  This fixes some quirks editing cells in the
4603         datagrid.
4605 2006-05-23  Jackson Harper  <jackson@ximian.com>
4607         * TreeView.cs: Use begin/end update when doing expand/collapse all
4608         so that we don't get flicker on the scrollbar.
4610 2006-05-23  Jackson Harper  <jackson@ximian.com>
4612         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
4613         treenode calculations to be independant of the painting code. To
4614         do this nodes track a visible order which is calculated by the
4615         treeview.
4616         - Call new methods for expanding/collapsing nodes.  These methods
4617         use scrollwindow so we don't have to update everything below the
4618         node.
4619         * TreeView.cs: Refactored drawing and scrolling code.  We don't
4620         need to update nodes when drawing anymore or calculate scrollbar
4621         stuff.
4622         - Added new methods for expanding/collapsing nodes. These methods
4623         use ScrollWindow so as to not have to redraw all the nodes below.
4624         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
4625         we add/remove nodes or sort.
4626         - Handle removing the selected and the top node properly.
4628 2006-05-23  Chris Toshok  <toshok@ximian.com>
4630         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
4631         maybe this should actually happen in the datagrid code?
4632         (EndEdit): no need to invalidate anything, given that
4633         ReleaseHostedControl causes the datagrid to relayout, which
4634         invalidates everything anyway.
4636         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
4637         in SetCurrentCell).
4638         (set_SelectionBackColor): call InvalidateSelection instead of
4639         Refresh.
4640         (set_SelectionForeColor): same.
4641         (BeginEdit): Flesh this out a bit.
4642         (CancelEditing): only do any of this if we're editing/adding.
4643         (EndEdit): same.
4644         (OnMouseDown): there's no need to cancel editing here, it's done
4645         in SetCurrentCell.
4646         (SetCurrentCell): only invalidate the current row header if it's a
4647         different row than the new one.
4648         (ShiftSelection): fix this to work like MS does.
4649         (ResetSelection): factor out the invalidation of selected_rows to
4650         InvalidateSelection.
4651         (SetDataSource): cancel any editing that's going on.
4653         * DataGridColumnStyle.cs
4654         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
4655         call the non-interface version.
4657         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
4658         header rectangle with the clip rectangle so we don't redraw the
4659         entire header for just a small area.  Gets rid of the last flicker
4660         when horizontally scrolling.
4661         (DataGridPaintRow): same.
4663 2006-05-23  Mike Kestner  <mkestner@novell.com>
4665         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
4666         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
4667         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
4668         Critical bug report.
4670 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
4672         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
4673           and this fixes #78493
4675 2006-05-23  Miguel de Icaza  <miguel@novell.com>
4677         * Theme.cs (GetSizedResourceImage): Scale images if the proper
4678         size is not found.  
4679         
4680         * FileDialog.cs: Do not change the background for the side bar as
4681         it wont work nicely with the theme, and also reduces the artifacts
4682         in rendering the icons (which I want to fix too).
4684         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
4685         resources, not resgen resources. 
4687         (PlatformDefaultHandler): Pull images using the new API.
4689 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
4691         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
4692           a reference to the hwnd and will not remove it unless there are
4693           no pending exposures (fixes #78341)
4694         * XplatUI.cs: Improved debug
4696 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
4698         * MenuAPI.cs : don't handle OnClick event when it was not the left
4699           button. Fixed bug #78487.
4701 2006-05-23  Mike Kestner  <mkestner@novell.com>
4703         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
4704         prefer submenus to the top menu for item lookup, to avoid popping down
4705         top-row items.
4707 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
4709         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
4710           Graphics.FillRectangle as the visual results are really bad (even
4711           on win). We now draw perfect arrows (and perfect shadows when the
4712           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
4713           Pen.DashPattern to draw the dots of each line.
4715 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
4717         * FileDialog.cs: Update the filename combobox when navigating through
4718           the ListView with the cursor keys. Fixes part 7 of bug #78446.
4720 2006-05-22  Mike Kestner  <mkestner@novell.com>
4722         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
4723         Fixes #78463.
4725 2006-05-22  Mike Kestner  <mkestner@novell.com>
4727         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
4728         requests. Fix a misspelled parameter and a copy paste exception error
4729         in Select.
4731 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
4733         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
4734           to get the same width/height (5/13) on X11 as the default font has on
4735           win32. This means that our DefaultFont emSize is smaller than the 
4736           the MS SWF equivalent (even thought the width/height stays the same)
4738 2006-05-20  Jackson Harper  <jackson@ximian.com>
4740         * MdiClient.cs:
4741         * MdiWindowManager.cs:
4742         * InternalWindowManager.cs: Make sure to use the border width from
4743         the theme.
4745 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
4747         * PrintDialog.cs: Implements printer details
4749 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
4751         * FileDialog.cs: Added focus handling for PopupButtonPanel.
4752           Fixes part 1 and 2 of bug #78446
4754 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
4756         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
4757           instead of sticking to the first ever calculated value
4759 2006-05-19  Mike Kestner  <mkestner@novell.com>
4761         * ComboBox.cs: fix mouse motion selection to use MousePosition and
4762         PointToClient, since Capture is set. Fixes #78344.
4764 2006-05-19  Mike Kestner  <mkestner@novell.com>
4766         * ListView.cs: match MS behavior in Details view where items are not
4767         drawn if Columns.Count == 0. 
4768         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
4769         Use a separate pen to draw the check, since changing the width affects
4770         the box as well.  Fixes #78454.
4772 2006-05-18  Miguel de Icaza  <miguel@novell.com>
4774         * ListView.cs: ArgumentOutOfRangeException, single versions of the
4775         exception should throw the name of the invalid argument.
4777         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
4778         there are no files listed. 
4780 2006-05-18  Jackson Harper  <jackson@ximian.com>
4782         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
4783         up.
4785 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
4787         * Control.cs: Brought back our old UpdateZOrder method as a private
4788           function and switched our calls from UpdateZOrder to the new one.
4789           This fixes the Paint.Net canvas disappearing bug.
4791 2006-05-18  Jackson Harper  <jackson@ximian.com>
4793         * Theme.cs:
4794         * ThemeWin32Classic.cs:
4795         * InternalWindowManager.cs: Move the drawing into the theme,
4796         expose everything the theme should need from the window manager.
4798 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
4800         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
4801           from the call to NativeWindow to avoid walking up the parent chain
4802           further than needed (speeds up setting cursors and avoids setting
4803           the wrong cursor if a parent has another cursor defined)
4804         * Cursor.cs: When loading an icon as cursor, MS uses the center of
4805           the icon as hotspot, not what's contained as hotspot in the icon
4806           file. This fixes the perceived drawing offset seen with Paint.Net
4807         
4808 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
4810         * XplatUIX11.cs: 
4811           - Store the calculated rectangle in Hwnd object and use it when 
4812             setting the client size
4813           - Force Toolwindows to always be type Dock, to ensure they're on top
4815 2006-05-18  Mike Kestner  <mkestner@novell.com>
4817         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
4818         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
4819         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
4820         Substantial refactoring to remove confusing nested classes. Coding
4821         standard and Get+Set->property refactorings.  Shift to index based
4822         highlighting in ComboListBox instead of constantly using IndexOf and
4823         Items[]. Add invalidations on resize for DropDownList to fix ugliness
4824         in FileDialog growth.  Draw borders manually since Simple mode needs
4825         to look like two independent controls.  Make listbox border
4826         conditional to DropDownStyle.  Improved OwnerDraw support.
4828 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
4830         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
4831         Don't set the disposed graphics to null, so we can throw the "right"
4832         exception if the graphics is reused later (added a flag to avoid 
4833         double disposing). Some behaviours are different under 2.0 and are
4834         filled under bug #78448.
4836 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
4838         * Control.cs: When double-buffering is enabled, we need to reset
4839           our graphics context between paint calls. Otherwise, any 
4840           transformations and other alterations on the context will 
4841           become cumulative (#77734)
4843 2006-05-18  Mike Kestner  <mkestner@novell.com>
4845         * ListView.cs: do focused item selection like MS on clicks. 
4846         Rework focus handling for ItemControl so LostFocus invalidates as
4847         well.
4848         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
4849         the ListView ItemControl has focus.
4851 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
4853         * XplatUIX11.cs: If client_window ends up being width or height zero
4854           due to border settings, move it off window inside whole_window (#78433)
4856 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
4858         * Mime.cs: Shrink the mime file cache correctly.
4860 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
4862         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
4864 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
4866         * XplatUIX11.cs (AddExpose): More sanity checks
4868 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
4870         * XplatUIX11.cs:
4871           - AddExpose: Don't add expose ranges outside the size of our
4872             window
4873           - Cast opacity values to Int32 to avoid crashes with certain
4874             values
4875           - Added disabled code paths that protect against illegal cross-
4876             thread painting (Developers.exe)
4878 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
4880         * ProgressBar.cs: Invalidate the control when it's resized
4881           since block size is based on control size. (#78388)
4883 2006-05-16  Miguel de Icaza  <miguel@novell.com>
4885         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
4886         of setting the incoming argument to the "reset" value, we set the
4887         this.datamember to string.empty (before we were invalidating the
4888         incoming data).   
4890         Fixes 78420
4892 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
4894         * Form.cs: Only apply transparency settings after the form
4895           is created. (Fixes #77800)
4897 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
4899         * ApplicationContext.cs: Grab the HandleDestroyed event so
4900           we know when to fire OnMainFormClosed 
4902 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
4904         * Application.cs: Introduced sub-class to allow tracking of
4905           threads and centralized triggering of the event mess for
4906           ThreadExit, AppExit, etc..  (#76156)
4908 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
4910         * MimeIcon.cs:
4911           - Do not return a null icon index value for a mime subclass.
4912             Instead try the main mime type class too.
4913           - Seems that some newer distributions don't have a link to some
4914             gnome default icons anymore. So check the default gnome dir too.
4915           
4917 2006-05-16  Jackson Harper  <jackson@ximian.com>
4919         * MdiClient.cs: Don't paint the parent background image if we have
4920         our own background image.
4922 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
4924         * Control.cs:
4925           - PerformLayout: Do not shrink space filled by DockStyle.Fill
4926             controls, all filled controls are supposed to overlap (#78080)
4927           - UpdateZOrder is supposed to update the control's z-order in the
4928             parent's z-order chain. Fixed to behave like that
4929           - BringToFront: Removed obsolete code
4930           - SendToBack: Simplyfied
4931           - SetChildIndex: Trigger layout calculations when Z-order changes
4932             since layout is done by z-order
4934 2006-05-16  Chris Toshok  <toshok@ximian.com>
4936         [ fixes bug #78410 ]
4937         * DataGrid.cs (set_AlternatingBackColor): use
4938         grid_drawing.InvalidateCells instead of Refresh().
4939         (set_BackColor): call grid_drawing.InvalidateCells.
4940         (set_BackgroundColor): use Invalidate instead of Refresh.
4942         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
4943         invalidate the cell area.
4945 2006-05-15  Chris Toshok  <toshok@ximian.com>
4947         [ fixes bug #78011 ]
4948         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
4949         on to DataGridPaintRow.
4950         (DataGridPaintRow): take a clip argument, and only draw the cells
4951         which intersect it.  same with the not_usedarea.
4953         * Theme.cs (DataGridPaintRow) add @clip parameter.
4955         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
4956         XplatUI.ScrollWindow.
4957         (ScrollToRow): same.
4959         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
4960         with last column which was causing a gray swath to appear with the
4961         XplatUI.ScrollWindow code.
4963 2006-05-15  Chris Toshok  <toshok@ximian.com>
4965         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
4966         use XplatUI.ScrollWindow.
4967         (VerticalScrollEvent): use XplatUI.ScrollWindow.
4969 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
4971         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
4973 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
4975         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
4976           file since there are no equivalent X11 cursors
4978 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
4980         * MonthCalendar.cs : DateTimePicker should reflect selected date
4981           on mouse*up*, not mouse*down*. Fixed originally reported part of
4982           bug #76474.
4984 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
4986         * TabControl.cs : When argument index is equal or more than tab
4987           count, just ignore. Fixed bug #78395.
4989 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
4991         * Control.cs: Dispose all child controls when control is diposed (#78394)
4993 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
4995         * ColorDialog.cs: Finally it is possible to select the color with
4996           the text boxes
4998 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
5000         * PrintDialog.cs: Fix typo
5002 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
5004         * PrintDialog.cs: PrintDialog is not resizable
5005         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
5006           color. Made some ToolBar drawing methods protected virtual.
5008 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
5010         * PrintDialog.cs: Implementation of the PrintDialog
5012 2006-05-12  Chris Toshok  <toshok@ximian.com>
5014         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
5015         thumb, instead use MoveThumb.  This has the side effect of making
5016         most of the other thumb moving machinery use MoveThumb as well.
5017         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
5018         need to actually invalidate the rectangle where the new thumb will
5019         go.
5020         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
5021         We force an Update() after, so it's not as fast as it could be,
5022         but at least there's zero flicker and no droppings.
5023         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
5024         (UpdateThumbPos): add another argument (dirty), which says whether
5025         or not to calculate/add dirty regions which we later invalidate.
5026         For cases where we know we're going to use MoveThumb, we pass
5027         false for this.  Otherwise, pass true.
5029 2006-05-12  Jackson Harper  <jackson@ximian.com>
5031         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
5032         the status bar.
5033         
5034 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
5036         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
5037           and GetClipRegion methods and UserClipWontExposeParent property.
5038         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
5039           overriding UserClipWontExposeParent property, setting to false, since
5040           Win32 handles the required expose messages to draw our clipped parent
5041           areas internally
5042         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
5043           PaintEventStart to set the user clip region if set.
5044         * Control.cs: 
5045           - Now internally tracking the Region for the control since we need to
5046             store it if the handle is not yet created and only set it when it
5047             becomes created. Before setting the region forced handle creation
5048           - Added code to draw the parents underneath a user-clipped region
5049         * Hwnd.cs: Added UserClip property
5051 2006-05-12  Chris Toshok  <toshok@ximian.com>
5053         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
5054         (set_Maximum): same.
5055         (set_Minimum): same.
5056         (set_SmallChange): same.
5057         (OnMouseUpSB): remove the call to refresh when releasing the
5058         thumb.  We shouldn't need it.
5059         
5060 2006-05-12  Miguel de Icaza  <miguel@novell.com>
5062         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
5063         AutoSize set to None, we do not need to relayout everything, we
5064         just need to invalidate the current region.
5066         (Draw): Do not draw the entire ClientArea, just redraw the
5067         clip area being passed.
5069         * MdiClient.cs: Make MdiClient constructor with the Form argument
5070         internal. 
5072 2006-05-12  Jackson Harper  <jackson@ximian.com>
5074         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
5075         parents background image,  but strangely not their own.
5076         - (DrawStatusBarPanel): Take into account horizontal alignment
5077         when drawing the strings and icons.
5079 2006-05-12  Mike Kestner  <mkestner@novell.com>
5081         * ListBox.cs: avoid invalidations for focus when the collection is
5082         empty. 
5084 2006-05-12  Chris Toshok  <toshok@ximian.com>
5086         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
5087         invalidate the entire thumb area.  Call InvalidateDirty which
5088         limits the redraw to the thumb itself and surrounding pixels.
5090         * XplatUIX11.cs (ScrollWindow): optimize copying.
5091         
5092 2006-05-12  Chris Toshok  <toshok@ximian.com>
5094         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
5095         Figure out the positioning/layout in a single pass instead of
5096         multiple recursive invocations.  Speeds up the initial display of
5097         the data grid.  Also, make many things private that were
5098         originally public but unused outside this class.
5100 2006-05-11  Jackson Harper  <jackson@ximian.com>
5102         * MdiClient.cs: Improved layout code.
5104 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
5106         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
5107           not SelectedObject.
5109 2006-05-11  Chris Toshok  <toshok@ximian.com>
5111         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
5112         union of that will always be {0,0,width,height}.
5114 2006-05-11  Jackson Harper  <jackson@ximian.com>
5116         * Form.cs: Match MS's DefaultSize for forms (they must have
5117         changed the size in sp2).
5119 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
5121         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
5123 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
5125         * TextControl.cs : Fixed bug #78109. This incorrect position
5126           comparison caused crash on automatic line split.
5127         * TextBoxBase.cs : reduce duplicate code.
5129 2006-05-10  Jackson Harper  <jackson@ximian.com>
5131         * MdiClient.cs: Active form is only sent to the back when using
5132         the Next form functionality, when a form is clicked the current
5133         active shouldn't be sent to the back.
5134         - Layout the mdi windows when the container is first made visible.
5135         * Form.cs: Give the MdiClient a ref to the containing form when we
5136         create it.
5137         
5138 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
5140         * LinkLabel.cs : link_font could be uninitialized, so populate one
5141           before actual use. Fixed bug #78340.
5143 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
5145         * XplatUIX11.cs : clipboard format native value is IntPtr.
5146           Fixed bug #78283.
5148 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
5150         * Control.cs: 
5151           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
5152             which is passed up the parent chain by DefWndProc
5153           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
5154             to DefWndProc (#77956)
5155         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
5157 2006-05-10  Jackson Harper  <jackson@ximian.com>
5159         * MdiClient.cs: We need to remove the controls from the mdi
5160         collection, when we close the window.
5161         * MdiWindowManager.cs: Special handling of closing mdi windows.
5162         * InternalWindowManager.cs: Make the close method virtual so the
5163         mdi window manager can handle it specially.
5165 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
5167         * DataGrid.cs:
5168           - Recalculate grid when the data source has changed
5169           - Matches styles provided by user from all data sources types
5170         * DataGridTableStyle.cs: For columns that provided by the user set the
5171         with the preferred value is there was unassigned.
5172         * CurrencyManager.cs: throw OnItemChanged event
5174 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
5176         * PictureBox.cs: Don't animate until handle is created. Start animation
5177           when handle is created.
5179 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
5181         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
5182           current codebase.
5183         * XEventQueue.cs: We don't need to provide the extra info
5185 2006-05-10  Jackson Harper  <jackson@ximian.com>
5187         * MdiClient.cs: If the mdi clients parent form has a background
5188         image set, we draw that background image for the mdi area's
5189         background.
5191 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
5193         * TextBoxBase.cs: Set IBeam cursor (#78347)
5195 2006-05-10  Mike Kestner  <mkestner@novell.com>
5197         * ToolBar.cs: fix some text padding issues with ButtonSize
5198         calculation. Update the default size to match MS documentation.
5199         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
5200         button size. Fixes #78296.
5202 2006-05-10  Mike Kestner  <mkestner@novell.com>
5204         * ListBox.cs: use is_visible for scrollbar positioning in case the
5205         control isn't on screen yet.  Fix off by one with Right vs Width
5206         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
5207         
5208 2006-05-10  Jackson Harper  <jackson@ximian.com>
5210         * X11Dnd.cs: Drop to a control with another control on top of it.
5211         * ToolBar.cs: Work on a copy of the buttons list, so that it can
5212         be modified in click handlers. TODO: Look for similar problems in
5213         other controls.
5215 2006-05-09  Jackson Harper  <jackson@ximian.com>
5217         * Form.cs: Window managers need the old window state when setting
5218         window state now.
5219         * InternalWindowManager.cs: Allow the base mdi window manager to
5220         handle more of the MDI only stuff (like maximize buttons).
5221         * MdiWindowManager.cs: Fix some snafus in changing the window
5222         state.  Add all the menu functionality, for both popup and
5223         maximized menus.
5224         * MdiClient.cs: When a new form is selected the currently
5225         activated form is sent to the back, this matches MS.
5226         - Implement a new method to activate the next mdi child window.
5228 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
5230         * Control.cs: 
5231           - Added new InternalCapture method to allow controls to prevent
5232             the capture behaviour on the click handlers
5233           - Switched to use InternalCapture
5234         * ComboBox.cs:
5235           - Using InternalCapture to prevent mouse captures from being released
5236             on mouse button release (Fixes #78100)
5237         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
5238           returns Form borders if a caption is present. (Fixes #78310)
5240 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
5242         * TreeNode.cs: Changed serialization .ctor to not require every field
5243           to be present. (#78265)
5244         * OwnerDrawPropertyBag.cs: Added serialization .ctor
5246 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
5248         * MimeIcon.cs: for is faster than foreach for strings.
5250 2006-05-05  Mike Kestner  <mkestner@novell.com>
5252         * CheckedListBox.cs: update check handling code to not use selected.
5253         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
5254         behavior for visual feedback, motion response, shift/ctrl handling,
5255         and properly deal with all 4 selection modes. Updates to bounds
5256         handling logic.  Add scroll wheel support. [Fixes #77842]
5258 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
5260         * ListView.cs:
5261           - Moved adding of Implicit controls into .ctor. That way, subsequent
5262             creation of the controls will not cause them to think they are 
5263             toplevel windows (fixes #78200 header problem)
5264           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
5265           - Switched visibility setting of header control to use internal field
5266             to avoid triggering handle creation
5267           - Now checking if handle is created before causing a refresh when items
5268             are added (This makes us now match handle creation time with MS)
5269         * Splitter.cs: Removed loading of private splitter cursor, switched to
5270           Cursors version now that that is loading the right ones
5271         * Cursors.cs: Load proper splitter cursors from resources
5272         * Cursor.cs: Added second method of loading resource cursors for the 
5273           VS.Net users amongst us
5275 2006-05-05  Mike Kestner  <mkestner@novell.com>
5277         * ListView.cs: give header_control a minimum size based on the
5278         ListView size.
5280 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
5282         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
5283           window seems to do that with metacity, so set that type. (#78120)
5285 2006-05-05  Mike Kestner  <mkestner@novell.com>
5287         * ListViewItem.cs: fix Details mode checkbox layout bug.
5288         * ThemeWin32Classic.cs: draw a ListView column header for unused space
5289         at the end of the header, if it exists. [Fixes for #78200]
5291 2006-05-04  Jackson Harper  <jackson@ximian.com>
5293         * MdiClient.cs: Add a helper property to get the container form.
5294         * MdiWindowManager.cs: We have to make sure to use the menu origin
5295         when drawing the icons and buttons, this fixes maximized window
5296         icons/buttons on win32.
5297         * InternalWindowManager.cs: Reset the restore captions when a
5298         window goes from Maximized to Minimized and vice versa. Move the
5299         DrawMaximizedButtons into the MdiWindowManager source, tool
5300         windows can't be maximized. NOTE: This could use a little
5301         refactoring if time ever permits.
5302         
5303 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
5305         * TextBox.cs: Add MWFCategoryAttributes
5306         * TextBoxBase.cs: Add MWFCategoryAttributes
5307         * Form.cs: Add MWFCategoryAttributes
5309 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
5311         * Control.cs: Add MWFCategoryAttributes
5312         * ScrollableControl.cs: Add MWFCategoryAttributes
5314 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
5316         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
5317           Divider is true. Fix a little glitch in PropertyToolBar
5318           drawing code
5320 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
5322         * Control.cs:
5323           - Dispose: Call base.Dispose, this causes the disposed event
5324             to be fired (and probably other, more important stuff)
5325           - SetVisibleCore: Set is_visible to true after creating the
5326             window so that the window still gets created invisible (if
5327             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
5328             to generate a WM_ACTIVE message
5329         * Form.cs: Call Dispose when we want to destroy the window, instead of
5330           just destroying the handle (Dispose will do that for us)
5331         * XplatUIX11.cs:
5332           - RootWindow also needs a queue, so we can properly process the
5333             property change events from RootWindow (like Activate)
5334           - Generatic synthetic WM_ACTIVE message when the active window is
5335             being destroyed
5337 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
5339         * LinkLabel.cs: Trigger a recalc of our label dimensions when
5340           bounds are changed
5342 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
5344         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
5345           for determining width and height (image might not be assigned if
5346           we're drawing an imagelist)
5348 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
5350         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
5351         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
5352           height from system
5353         * Theme.cs: No longer returns hardcoded menu height, instead calls
5354           new driver method
5355         * Form.cs (OnLoad): Scaling happens before triggering Load events 
5356           on MS (# 78257)
5358 2006-05-01  Mike Kestner  <mkestner@novell.com>
5360         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
5362 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
5364         * TextBoxBase.cs: Removed Fixme
5365         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
5367 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
5369         * XplatUIX11.cs:
5370           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
5371             the rectangle relative to the parent, considering borders. We
5372             don't really want that.
5373           - ScrollWindow: Fixed warning to be more understandable
5374         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
5375           scrollbars and scroll only the visible area
5376         * RichTextBox.cs: Removed debug output
5378 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
5380         * NumericUpDown.cs (Text): Just use base
5381         * UpDownBase.cs: Ensure txtView is created before using it
5383 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
5385         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
5386           casting to IntPtr to avoid 64bit overflow errors
5388 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
5390         * Control.cs:
5391           - AllowDrop: Don't force handle creation.
5392           - CreateHandle: Added call to tell driver if we're allowed to drop
5394 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
5396         * FileDialog.cs: Remember the last directory not only for the
5397           current instance but also for new FileDialog instances.
5399 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
5400         
5401         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
5402           broke sending async messages
5404 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
5406         * XplatUIX11.cs:
5407           - ScrollWindow: Fixed method. We finally generate expose events again
5408             for scrolled areas. This was causing 'garbage' when scrolling
5409             textbox and other controls that used ScrollWindow
5410           - Switched from using the regular queue for paint events to the MS 
5411             model of 'generating' paint events when the queue is empty.
5412             We use the new XQueueEvent.Paint subclass to store which windows
5413             need painting.
5414           - AddExpose now takes the x/y/width/height of the exposed area
5415             and inserts the window into the paint queue if not already there
5416           - InvalidateWholeWindow: Switched to use new AddExpose method
5417           - UpdateMessageQueue: Added which queue to monitor for paint events
5418           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
5419             the unlikely case nothing above handles it. We reset the expose
5420             pending states to get them off the queue.
5421           - GetMessage: Now pulls a paint event if no other events are in the
5422             queue
5423           - Invalidate: Switched to new AddExpose method
5424           - PeekMessage: Updated to understand pending paint events
5425           - UpdateWindow: Fixed logic bug. We were only updating if the window
5426             didn't need updating. Also switched to sending WM_PAINT directly,
5427             like MS does.
5428         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
5429           and random access Remove(). The random access is needed to handle
5430           UpdateWindow() where a WM_PAINT is sent directly without accessing
5431           the queue.
5432         * ScrollBar.cs: Added Update() calls to cause immediate updates to
5433           allow for better feedback when scrolling. Scrollbars are small and
5434           the immediate update should make it 'feel' more responsive without
5435           slowing things down. ScrollBar still needs it's invaliate logic
5436           updated to not always invalidate the whole bar on certain changes.
5438 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5440         * Control.cs:
5441         (BackColor): if the control does not support a transparent background,
5442         return the default backcolor when the parent backcolor is transparent.
5444 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
5446         * Application.cs: Updated to new StartLoop/GetMessage API
5447         * RichTextBox.cs: Provide some output on RTF parsing errors
5448         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
5449           new queue_id argument to GetMessage and PeekMessage to allow faster
5450           handling of per-thread queues in drivers.
5451         * Hwnd.cs: Added Queue tracking and property
5452         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
5453         * XEventQueue.cs: Added thread trackingA
5454         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
5455         * XplatUIX11.cs:
5456           - Implemented new per-thread queue
5457           - GetMessage: Fixed return/break behaviour on several cases. We were
5458             returning stale messages in some cases, instead of just processing
5459             the next message
5461 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
5463         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
5465 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
5467         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
5468           fixed off-by-one comparisons between Width/Height and Right/Bottom.
5470 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
5472         * PropertyGridView.cs: Fix drop down width.
5474 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
5476         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
5477           a mess in DrawToolBar, so I removed one of them.
5479 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
5481         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
5482           needed (clip). Otherwise we get artifacts.
5484 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
5486         * FixedSizeTextBox.cs: Added constructor to allow specifying which
5487           dimension is fixed
5488         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
5489           and switched FixedSizeTextBox to only be fixed vertical (#78116)
5490         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
5491           if it matches the scale base font (avoids unneeded scaling)
5493 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
5495         * X11DesktopColors.cs: One gtk_init_check should be enough
5497 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
5499         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
5500           match MS behaviour
5502 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
5504         * TextBoxBase.cs: 
5505           - Generate OnTextChanged for Backspace even if we're only deleting
5506             the current selection
5507           - When setting the Text property, only select all text if the
5508             control does not have focus when it is being set. Otherwise
5509             just place the cursor at the beginning of the control
5511 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
5513         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
5514           Added a little helper to draw PropertyGrid ToolBar with a different
5515           border and a different BackColor.
5516         * PropertyGrid.cs: Some background parts didn't get painted with the
5517           correct background color. Added a class that helps us to draw the
5518           correct border for PropertyGridView and a class that helps us to
5519           draw ToolBars with a different backcolor
5520         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
5522 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
5524         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
5525         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
5527 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
5529         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
5530           into the palette entries. Also, since we're working on a copy
5531           we needed to copy the palette back onto the bitmap.
5532         * Cursor.cs: Same fix as XplatUIWin32.cs.
5534 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
5536         * ImageListStreamer.cs: Need to read the var (or we're off)
5538 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
5540         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
5541           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
5542           TextBoxBase.cs: Unused var fixes
5543         * AxHost.cs: Small 2.0 fix
5544         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
5545           as it seems that is what at least Metacity expects. This will make
5546           icons show up on 64bit platforms. We still have some 64bit size
5547           issues, though, since the startup app window size still won't match.
5549 2006-04-25  Mike Kestner  <mkestner@novell.com>
5551         * *.cs: cleanup newly reported exception var unused warnings.
5553 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
5555         * ThemeWin32Classic.cs: Button image alignment now matches exactly
5556           ms
5558 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
5560         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
5561           image. The image position is always the same, no matter if the
5562           button is pressed or not.
5564 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
5566         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
5567           selection and set the correct filename for SaveFileDialog.
5568           Patch by Emery Conrad.
5570 2006-04-24  Mike Kestner  <mkestner@novell.com>
5572         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
5573         check for item.X outside the ClientRect instead of item.Y. Fixes
5574         #78151.
5576 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5578         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
5579         trust that value blindly and do some sanity check. Fixes bug #77814.
5581 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5583         * ImageListStreamer.cs: save the mask as a 1bpp image.
5585 2006-04-21  Mike Kestner  <mkestner@novell.com>
5587         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
5588         pass Checked and Indeterminate to the Theme Engine. Improve
5589         encapsulation with ListBox.
5590         * ListBox.cs: Keep a StringFormat instead of calculating it every item
5591         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
5592         nested types.  Move all CheckState functionality to CheckedListBox.
5593         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
5594         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
5595         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
5596         single base list. Fix scrollbar sizing and placement to mirror MS.
5597         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
5598         used.
5599         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
5600         for CheckedListBox by using new DrawItemState info.  Center the
5601         checkboxes on the items. Use new StringFormat property.
5603 2006-04-18  Jackson Harper  <jackson@ximian.com>
5605         * Form.cs: MdiChildren don't do default locations the same way as
5606         regular forms.  This prevents a crash when trying to position the
5607         mdi windows.
5609 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
5611         * PropertyGridTextBox.cs: Formatting, copyright
5612         * PropertiesTab.cs: Formatting
5613         * PropertyGrid.cs: Formatting
5614         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
5615           click toggling of values
5616           
5617 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
5619         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
5620         * Control.cs (.ctor): verify_thread_handle is static, don't reset
5621           every time a control is created
5622         * Application.cs: Removed obsolete EnableRTLMirroring method
5624 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
5626         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
5627         SelectedIndex to -1. Fixes bug #78121.
5629 2006-04-17  Jackson Harper  <jackson@ximian.com>
5631         * Binding.cs: Handle null values for Current and BindingContext.
5632         This occurs when binding is a little delayed.
5633         * CurrencyManager.cs: return null for Current when there are no
5634         items in the list.
5635         - Hookup to the listchanged event on the DataView and update
5636         bindings when the list is changed.  This fixes late binding of
5637         controls.
5639 2006-04-17  Jackson Harper  <jackson@ximian.com>
5641         * X11Dnd.cs:
5642         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
5643         Ringenbach.
5645 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
5647         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
5648           place
5649         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
5650           with the correct ButtonState
5652 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
5654         * XplatUIX11.cs: Improved distinguishing between window types to
5655           tell the WM a type closer to what the app wants (Fixes #78107)
5657 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
5659         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
5660           GrabHandle
5662 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
5664         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
5665           drawing code to reflect the size grip changes
5667 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5669         * ImageListStreamer.cs: fix handling of the mask that follows the main
5670         bitmap when deserializing and serialize it properly. The generated mask
5671         should better be a 1bpp image, but I'll do that later.
5673 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
5675         * FileDialog.cs: Show something in the DirComboBox on *nix if the
5676           path doesn't fit into some of our Current.Places
5678 2006-04-13  Jackson Harper  <jackson@ximian.com>
5680         * ComboBox.cs: Use borders instead of drawing our own decorations,
5681         try to obey correct rules for heights.
5682         * Theme.cs:
5683         * ThemeNice.cs:
5684         * ThemeClearLooks.cs:
5685         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
5686         this is now handled by borders.
5687         - Remove unused DrawListBoxDecorationSize method.
5688         
5689 2006-04-13  Mike Kestner  <mkestner@novell.com>
5691         * MenuAPI.cs: null guarding for the disbled click check fixes crash
5692         reported by Alex.
5694 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
5696         * ThemeWin32Classic.cs: 
5697           - Fixed CPDrawStringDisabled
5698           - Corrected drawing of disabled menu items
5699           - Fixed drawing of disabled radio buttons (bug #78095)
5700           - Draw check in a disabled CheckBox with color ControlDark 
5702 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
5704         * Form.cs: Use the provided width when calculating the menu size;
5705           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
5706           and ClientSize.Width won't be updated yet
5707         * Application.cs: Use Visible instead of Show() to make form visible,
5708           this way we create the handle later and menusize is considered
5710 2006-04-12  Mike Kestner  <mkestner@novell.com>
5712         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
5713         reporting.
5715 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
5717         * TextBox.cs: Implemented context menu
5719 2006-04-12  Mike Kestner  <mkestner@novell.com>
5721         * ListView.cs: implement box selection. fixes #77838.
5722         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
5724 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
5726         * XplatUIX11.cs: Added setting of window type when transient window
5727           is created (metacity would move it otherwise)
5728         * X11Structs.cs: Added WINDOW_TYPE atoms
5729         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
5730           background (the control is Opaque but still wants transparent
5731           backgrounds)
5733 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
5735         * Control.cs: Added OnPaintBackgroundInternal to allow controls
5736           that set Opaque but don't mean it (like all ButtonBase-derived
5737           controls) to still draw their background
5738         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
5739           the background
5741 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
5743         * Control.cs (PaintControlBackground): Set the graphics object
5744           on our PaintEvent to null to prevent it from being disposed
5745           when the PaintEvent gets disposed
5747 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
5749         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
5750         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
5752 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
5754         * Control.cs: 
5755           - Added transparency check to BackColor property. Transparent
5756             backgrounds are only allowed if the control styles permit it
5757           - Added recursive painting of parent control background and
5758             foreground if a control with a transparent backcolor is drawn
5759             (Thanks to Tim Ringenback for providing his 'hack' as a base
5760              for this patch) Fixes #77985 and #78026.
5761           - Added Opaque style check before calling OnPaintBackground, no
5762             need to draw the background if the control is opaque
5763           - Removed ControlAccessibleObject owner variable (inherited from
5764             base, no need to define again)
5765           - Added some documentation links explaining the drawing events
5766             and styles
5768 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
5770         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
5771           that the affected control is the located at the left border of our
5772           parent (Fixes #77936)
5774 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
5776         * TextBoxBase.cs: When rendering disabled or readonly controls,
5777           draw the background with 'Control' instead of 'Window' color as
5778           long as the user hasn't specifically set a color
5780 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
5782         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
5783           since that won't be updated if the user types text (only if it's
5784           programatically set)
5786 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
5788         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
5789           layout changes do to app-triggered resizes will have the proper
5790           display rectangle for layout
5792 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
5794         * ThemeWin32Classic.cs:
5795           - Make use of the SystemBrushes and SystemPens wherever possible
5796           - Corrected some highlight colors
5797           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
5798             drawing
5799         * Theme.cs: Added Empty field to CPColor struct
5801 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
5803         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
5804           is displayed when calculating the display rectangle. Thanks to Mike
5805           for teaching me the err of my ways.
5807 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
5809         * ScrollableControl.cs:
5810           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
5811             (instead of 0,0) and we now return the real width/height instead of
5812             just the clientrectangle, adjusted for padding. The rectangle is
5813             now cached and created by the new CalculateDisplayRectangle method.
5814           - Created new CalculateDisplayRectange method, which basically does
5815             what get_DisplayRectangle() did originally, but now using the 
5816             right edge instead of DisplayRectangle to determine the size of
5817             our scrollbars
5818           - get_Canvas(): Fixed it to properly calculate canvas for 
5819             right/bottom controls which seem to be placed to the right/bottom
5820             of any controls that have a fixed location
5821           - Removed TODO that's taken care of
5822           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
5823             and SetDisplayRectLocation according to new MSDN2 docs
5824           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
5825             event when that is called, this is added for compatibility
5826           - ScrollControlIntoView(): Implemented.
5827           - Switched scrollbars to be implicit, they shouldn't be selectable
5828         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
5829           call it when the active control is set/changed
5830         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
5831         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
5832           implicit_control variable (used for native Win32 message generation)
5833         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
5834           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
5835         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
5836         * XplatUIStructs.cs: Added ScrollBarCommands enum
5838 2006-04-10  Jackson Harper  <jackson@ximian.com>
5840         * ButtonBase.cs:
5841         * CheckedListBox.cs:
5842         * ComboBox.cs:
5843         * DataGrid.cs:
5844         * DataGridView.cs:
5845         * Form.cs:
5846         * GroupBox.cs:
5847         * ListBox.cs:
5848         * PrintPreviewControl.cs:
5849         * ProgressBar.cs:
5850         * PropertyGrid.cs:
5851         * Splitter.cs:
5852         * StatusBar.cs:
5853         * TrackBar.cs:
5854         * UpDownBase.cs: Fixup base event overrides.
5855         
5856 2006-04-06  Mike Kestner  <mkestner@novell.com>
5858         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
5859         all user-initiated value changes to min <= value <= max-thumbsz+1.
5860         (set_Value): check for vert/horiz when calculating new thumb position.
5861         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
5862         like MS does.
5863         (OnMouseMoveSB): refactor the thumb dragging code and refine
5864         invalidation logic to reduce flicker.
5865         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
5866         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
5867         (UpdateThumbPosition): small code readability cleanup
5869 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
5871         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
5872           different
5874 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
5876         * ThemeNice.cs: Use a better graphics effect when a button is pressed
5878 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
5880         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
5881         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
5882           This dramatically reduces the number of Pen.Dispose calls. 
5883           Where possible call ResPool methods only once instead of calling it
5884           over and over again (for example for the same color).
5886 2006-04-06  Mike Kestner  <mkestner@novell.com>
5888         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
5889         Also remove an unused private field on the collection. Fixes #77972.
5891 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
5893         * ThemeNice.cs: Added ToolBar drawing code
5895 2006-04-06  Mike Kestner  <mkestner@novell.com>
5897         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
5898         I'm assuming that means we need to look up the toplevel for the
5899         provided control. Fixes the crash trace in #77911 but exposes another
5900         crash in some strange reflection usage in NDocGui.
5902 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
5904         * ThemeNice.cs: Gave it a little silver touch and added Images
5905           method
5906         * FontDialog.cs: FontDialog is not resizable
5907         * FileDialg.cs: Added SizeGripStyle.Show
5909 2006-04-05  Jackson Harper  <jackson@ximian.com>
5911         * KeyboardLayouts.cs: Remove warning.
5913 2006-04-05  Jackson Harper  <jackson@ximian.com>
5915         * Control.cs: Enable OnPaintInternal so we can use it for drawing
5916         all of our controls instead of Paint +=.
5917         * ListBox.cs:
5918         * ListView.cs:
5919         * MenuAPI.cs:
5920         * MessageBox.cs:
5921         * NotifyIcon.cs:
5922         * ProgressBar.cs:
5923         * ScrollBar.cs:
5924         * Splitter.cs:
5925         * StatusBar.cs:
5926         * TabControl.cs:
5927         * TextBoxBase.cs:
5928         * ToolBar.cs:
5929         * TrackBar.cs:
5930         * UpDownBase.cs:
5931         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
5932         use OnPaintInternal. Remove Width/Height and Visible checks in
5933         paint handler, this is done at a higher level now.
5934         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
5935         * PaintEventArgs.cs: Add a handled flag so controls that don't
5936         want anymore painting after OnPaintInternal can make sure OnPaint
5937         isn't called.
5939 2006-04-05  Mike Kestner  <mkestner@novell.com>
5941         * Form.cs: fix the menu WndProc hacks to respect the native enabled
5942         state of the form, so that we don't process events when Modal dialogs
5943         are up. Fixes #77922.
5945 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
5947         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
5948           checking is done.
5950 2006-04-05  Mike Kestner  <mkestner@novell.com>
5952         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
5954 2006-04-05  Mike Kestner  <mkestner@novell.com>
5956         * ListView.cs (HeaderMouseMove): null guarding for the over column
5957         when setting up the drag_to_index.  Fixes #78015.
5959 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
5961         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
5962           in the taskbar. Transient windows seem to accomplish that.
5964 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
5966         * Form.cs:
5967           - Re-enabled CreateParams.X/Y code for FormStartPosition
5968           - Added code for manual placement when creating the Control
5969           - Incomplete patch to treat MDI forms differently when
5970             setting the ClientSizeCore. (Still need to figure out handling
5971             x/y coords there)
5972         * XplatUIX11.cs:
5973           - When we're explicitly setting the X/Y position of a non-Child
5974             window, let the WM know. Metacity really wants this.
5976 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
5978         * ThemeNice.cs: Added CPDrawButton
5980 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
5982         * ThemeNice.cs: Changed the color for focused buttons and activated
5983           the arrows for small scroll buttons.
5985 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
5987         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
5988           anymore. Changed some method modifiers to protected (virtual)
5989         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
5990           changes
5991         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
5992           Updated drawing of menus, buttons and progressbars; added
5993           CPDrawBorder3D 
5995 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5997         * ImageListStreamer.cs: implemented serialization/deserialization
5998         of the images.
6000 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
6002         * ThemeWin32Classic.cs:
6003           - Removed all the DrawFrameControl stuff; CPDrawButton,
6004             CPDrawCheckBox and CPDrawRadioButton are now handled directly
6005             inside the methods
6006           - Updated and corrected the drawing code of CPDrawButton,
6007             CPDrawCheckBox and CPDrawRadioButton to better match ms
6008           - Updated theme checkbox and radiobutton code to use the CP*
6009             methods
6011 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
6013         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
6014           bug is fixed
6016 2006-03-31  Jackson Harper  <jackson@ximian.com>
6018         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
6019         sometimes.
6020         * UpDownBase.cs: Don't CreateGraphics manually, use a
6021         Refresh. Ideally we would invalidate the correct areas here.
6023 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
6025         * XplatUIX11.cs: 
6026           - We now track the mapping state of windows. If a window (or 
6027             one of it's parents) is not mapped we no longer permit
6028             WM_PAINT messages to be generated since we'd otherwise get 
6029             lots of BadMatch X errors. Jackson did all the work figuring
6030             out the problem.
6031           - Destroying the caret if the window it's contained in is 
6032             destroyed. Can't use regular DestroyCaret method since it
6033             might fall into a drawing function (trying to remove the
6034             caret) and with that generate new BadMatch errors. Again,
6035             Jackson tracked this down.
6036           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
6037             make sure we send the messages to all windows. (The old code
6038             would send the WM_DESTROY to the window, and then all child
6039             windows would be 'gone' because the WM_DESTROY handle lookup
6040             would no longer find the destroyed window)
6041         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
6042         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
6044 2006-03-31  Jackson Harper  <jackson@ximian.com>
6046         * ScrollableControl.cs: Dont recalc if we are not visible.
6048 2006-03-31  Mike Kestner  <mkestner@novell.com>
6050         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
6051         the visibility branch.
6053 2006-03-31  Jackson Harper  <jackson@ximian.com>
6055         * ScrollBar.cs: Cap values when incrementing/decrementing.
6057 2006-03-31  Mike Kestner  <mkestner@novell.com>
6059         * MenuAPI.cs: setup menu.tracker for popup/context menus.
6060         * ToolTip.cs: guard against timer expirations with no active control.
6061         Not sure why it happened.
6063 2006-03-31  Mike Kestner  <mkestner@novell.com>
6065         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
6066         text.
6067         * ToolTip.cs: Position the tooltip based on where the cursor is at
6068         popup time, not at MouseEnter time.  Add a Down state so that we don't
6069         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
6070         positioning offset. Lookup DisplaySize at positioning time, since it
6071         can theoretically change during invocation.
6072         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
6073         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
6075 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
6077         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
6078           Fixes behaviour when the Text property of the box is String.Empty
6080 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
6082         * XplatUIX11.cs: Only send mouseleave for our client windows, not
6083           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
6084           a window)
6086 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
6088         * FileDialog.cs: Visual enhancement for the popup buttons in 
6089           PopupButtonPanel
6091 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
6093         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
6094           code
6096 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
6098         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
6099           highlighted menu items to match ms
6101 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
6103         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
6105 2006-03-30  Mike Kestner  <mkestner@novell.com>
6107         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
6108         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
6109         go active to account for HotLight to Selected transition.
6110         * MenuItem.cs: add internal Selected prop. Fill out the Status
6111         property by calculating it from item info. Add HotLight,
6112         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
6114 2006-03-30  Mike Kestner  <mkestner@novell.com>
6116         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
6118 2006-03-29  Jackson Harper  <jackson@ximian.com>
6120         * Form.cs: Implement TODO.
6122 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
6124         * PrintPreviewDialog.cs: Implemented missing methods and events; still
6125           missing proper dialog setup in the constructor
6127 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
6129         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
6130         * Control.cs:
6131           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
6132           - Fixed ResetBindings and removed TODO
6133           - Added check for cross-thread calls to get_Handle()
6134           - Added Marshaller attribute for set_Font to satisfy class status
6135         * FontDialog.cs: Removed TODOs that seemed implemented
6136         * UpDownBase.cs: Removed unneeded TODO and Fixme
6137         * MessageBox.cs: Implemented support for Default button and removed TODO
6138         * FileDialog.cs: Removed obsolete TODO
6139         * DomainUpDown.cs: Removed obsolete TODO
6140         * ButtonBase.cs: Removed obsolete TODO
6141         * XplatUIWin32.cs: Removed obsolete TODO
6142         * Form.cs:
6143           - Removed obsolete TODO
6144           - Calling CheckAcceptButton when the acceptbutton is changed to allow
6145             internal status updates
6146           - Making sure the active control is selected when the control is created
6147         * CurrencyManager.cs: Removed obsolete TODO
6149 2006-03-29  Mike Kestner  <mkestner@novell.com>
6151         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
6152         of PrintPreviewDialog and RichTextBox.
6154 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
6156         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
6157           DarkDark, Light and LightLight colors for a specific color
6158         * ThemeWin32Classic.cs:
6159           - Use Button drawing code to draw RadioButtons and CheckBoxes with
6160             Appearance = Button 
6161           - Make use of the new ResPool helper CPColor
6162           - Draw ProgressBar and StatusBar with correct 3D borders
6164 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
6166         * ColorDialog.cs: Return selected color. Fixes bug #77940.
6168 2006-03-28  Mike Kestner  <mkestner@novell.com>
6170         * ListView.cs: fix Icon layout to plan for scrollbar widths when
6171         calculating col/row counts.
6173 2006-03-28  Mike Kestner  <mkestner@novell.com>
6175         * ColumnHeader.cs:
6176         * ListView.cs:
6177         * ListViewItem.cs:
6178         * Menu.cs: 
6179         switch to explicit interface method implementation for some methods
6180         corcompare identifies as inconsistent with MS.
6182 2006-03-28  Mike Kestner  <mkestner@novell.com>
6184         * MainMenu.cs: 
6185         * Menu.cs:
6186         add a few missing methods from the class status output.
6188 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
6190         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
6191           correct.
6193 2006-03-28  Mike Kestner  <mkestner@novell.com>
6195         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
6197 2006-03-27  Mike Kestner  <mkestner@novell.com>
6199         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
6200         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
6202 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
6204         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
6206 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
6208         * ThemeWin32Classic.cs:
6209           - GroupBox: Inserted a little gap between the text and the lines
6210             on the right side
6211           - Made the code in CPDrawBorder3D more readable
6212           - Corrected the drawing location of the up and down arrows in 
6213             CPDrawScrollButton
6215 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
6217         * ControlPaint.cs: Corrected line widths in DrawBorder for
6218           ButtonBorderStyle Inset and Outset
6220 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
6222         * ThemeWin32Classic.cs:
6223           - Rewrote the totally broken CPDrawBorder3D method. That was
6224             one of the main problems for the terrific ThemeWin32Classic
6225             look
6226           - Updated and corrected Button drawing
6227           - Correct the dimensions of the SizeGrip to match ms ones
6228           - Removed a small drawing glitch in DrawComboBoxEditDecorations
6229         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
6230           Border3DStyle.Sunken to match ms.
6232 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
6234         * ThemeWin32Classic.cs: First small part of the "de-uglify
6235           ThemeWin32Classic" effort, SizeGrip
6237 2006-03-24  Jackson Harper  <jackson@ximian.com>
6239         * XplatUIX11.cs: Give a max idle time of one second, this matches
6240         MS and forces an Idle event every second when there are no other
6241         events in the queue.
6243 2006-03-24  Mike Kestner  <mkestner@novell.com>
6245         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
6246         * ListView.Item.cs: fix layout issues with null image lists and images
6247         smaller than checkbox size.
6248         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
6249         mode like MS does.  It's weird, but consistent.  ;-)
6250         Fixes #77890.
6252 2006-03-24  Mike Kestner  <mkestner@novell.com>
6254         * ListView.cs: Scroll wheel support for the item control.  Fixes
6255         #77839.
6257 2006-03-23  Jackson Harper  <jackson@ximian.com>
6259         * ScrollableControl.cs: Special case negative sized areas, not
6260         zero.
6261         * MonthCalendar.cs: Save the rect of the clicked date so we can
6262         use it for invalidation.
6263         - Try to cut down on the number of invalidates
6264         - Invalidate the rect the mouse is over and was over when moving
6265         the mouse, so we get the focus box following the cursor.
6267 2006-03-23  Mike Kestner  <mkestner@novell.com>
6269         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
6270         focus rectangle drawing. Fixes #77835.
6272 2006-03-23  Mike Kestner  <mkestner@novell.com>
6274         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
6275         the if and else if and reverting back to the original == check on the
6276         None conditional.
6278 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
6280         * FontDialog.cs: Update the example panel if the selected index of
6281           the fontListBox changes.
6283 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
6285         * FileDialog.cs: Make FileDialog remember which directory it was in
6286           last in the same execution.
6288 2006-03-22  Mike Kestner  <mkestner@novell.com>
6290         * FileDialog.cs: make the DropDownMenu on the toolbar display
6291         RadioChecks since they are mutually exclusive and that's what MS does.
6293 2006-03-22  Mike Kestner  <mkestner@novell.com>
6295         * Theme.cs: add Color param to CPDrawMenuGlyph.
6296         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
6297         checks and radio marks and arrows are visible on highlighted items.
6298         * ControlPaint.cs: update to use new Theme signature.
6300 2006-03-22  Mike Kestner  <mkestner@novell.com>
6302         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
6303         is active. Fixes #77870.
6305 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
6307         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
6308           to be focused/selected after startup
6310 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
6312         * ColorDialog.cs: 
6313           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
6314             CustomColors and ShowHelp properties
6315           - Some internal rewrites to get better results when using the
6316             ColorMatrix
6318 2006-03-22  Mike Kestner  <mkestner@novell.com>
6320         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
6321         HoverSelection.  Fixes #77836.
6323 2006-03-22  Mike Kestner  <mkestner@novell.com>
6325         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
6326         ToggleButtons.  (De)Sensitize the Back button around a stack count of
6327         1, not 0.  Update ButtonSize based on a pixel count of the win32
6328         control.  Adjust the toolbar size/location for new button size.
6330 2006-03-22  Jackson Harper  <jackson@ximian.com>
6332         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
6333         true.
6334         * ScrollBar.cs: When doing increments and decrements we need to
6335         set the Value property so that ValueChanged gets raised. A
6336         possible optimization here would be to make an internal SetValue
6337         that doesn't invalidate immediately.
6338         * ToolTip.cs: Tooltips get added to their container (when
6339         supplied) so they get disposed when the container is disposed.
6340         - Don't create tooltips for String.Empty. This prevents all these
6341         little 2-3 pixel windows from showing up when running nunit-gui
6342         and driving me mad.
6343         * Form.cs: Don't set topmost when setting the owner if the handles
6344         haven't been created yet.  The topmost set will happen when the
6345         handles are created.
6347 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
6349         * XplatUIX11.cs:
6350           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
6351           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
6352             visible (to allow them to recalculate their sizes)
6354 2006-03-21  Mike Kestner  <mkestner@novell.com>
6356         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
6357         methods. Removed a ton of redundant code.  Still not really happy with
6358         the border rendering, but I think that's mainly because of the
6359         ControlDarkDark being black instead of a dark grey. Depending on how 
6360         close we want to be, we might want to revisit those color choices.
6361         Among the new features added during the refactor were DropDownArrow
6362         pressed rendering, Disabled image rendering.  Proper flat appearance
6363         boundary rendering.  Removed the Divider and Wrapping dividers since I
6364         can't figure out any combination of themes and conditions to make the
6365         MS control draw a horizontal line on a toolbar despite what the
6366         Divider property docs indicate.
6367         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
6368         conditions and incorrect layout.  Updated to coding standard.
6369         * ToolBarButton.cs: refactored layout and positioning code from
6370         ToolBar to here.  Invalidate wherever possible instead of forcing
6371         redraws of the whole toolbar. 
6372         (Known remaining issues: explicit ButtonSize smaller than provided
6373         images.)
6375 2006-03-21  Mike Kestner  <mkestner@novell.com>
6377         * ContextMenu.cs (Show): use the position parameter instead of just
6378         showing at the MousePosition.
6380 2006-03-21  Jackson Harper  <jackson@ximian.com>
6382         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
6383         control handle this.
6384         * TreeNodeCollection.cs: If we are clearing the root node we need
6385         to reset top_node so calcs can still happen.
6386         * ThemeWin32Classic.cs: This is a Flags so we need to check
6387         properly.
6388         
6389 2006-03-21  Jackson Harper  <jackson@ximian.com>
6391         * DataGrid.cs: Create columns when the binding context has been
6392         changed.
6393         * X11Structs.cs: Keysyms are uints.
6394         - Add size to fix build.
6396 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
6398         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
6399           XplatUIOSX.cs: 
6400           - Added ResetMouseHover method to allow controls to retrigger
6401             hovering if they need it more than once
6402           - Implemented MouseHoverTime and MouseHoverSize properties
6403         * Timer.cs: Start() must reset the interval
6404         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
6405           properties
6407 2006-03-21  Jackson Harper  <jackson@ximian.com>
6409         * X11Keyboard.cs: improved layout detection. Move the nonchar
6410         tables into this file.
6411         * KeyboardLayouts.cs: Move the tables into resource files.
6413 2006-03-21  Mike Kestner  <mkestner@novell.com>
6415         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
6417 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
6419         * Mime.cs: Various speed optimizations. Looking up mime types
6420           is now 2 times faster than before
6422 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
6424         * CreateParams.cs: Added internal menu field
6425         * Control.cs: 
6426           - Switched call order for UpdateBounds; now we always call
6427             the one that also takes ClientSize, and we're calculating the 
6428             client size via driver method in the others. The previous
6429             method of tracking client size by difference wasn't working
6430             for forms where even the starting client size wouldn't match
6431             the overall form size (due to borders) (Part of fix for #77729)
6432           - CreateParams(): Do not use parent.Handle unless the handle is
6433             already created. Causes havoc with Nexxia and throws off our
6434             creation of controls
6435         * XplatUIX11.cs:
6436           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
6437           - Switched handling of ConfigureNotify over to new PerformNCCalc 
6438             method (consolidates code)
6439           - Changed RequestNCRecalc to use new PerformNCCalc method
6440           - Added calls to RequestNCRecalc when menus and borders are changed
6441             to allow app to set NC size. (Part of fix for #77729) This matches
6442             when MS send a WM_NCRECALC on Win32 windows.
6443           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
6444             (Part of fix for #77729). This matches what MS does, they also
6445             send that message when the form is made visible.
6446           - XException.GetMessage: Improved usability of X errors by including
6447             a translation of the window into Hwnd and Control class
6448           - Improved debug info for window creation, reparenting and destruction
6449           - Created helper method WindowIsMapped() [Currently not used]
6450         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
6451         * Form.cs:
6452           - CreateParams: Now setting our menu on the new internal menu field
6453           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
6454             avoid calculating the same property twice
6455         * Hwnd.cs:
6456           - Improved usability of ToString() for debugging purposes
6457           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
6458             determine the height of the menu, instead of just the font. This
6459             required to also create a graphics context and to keep a bmp 
6460             around (for performance reasons)
6462 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
6464         * MenuAPI.cs: Added OnMouseUp method
6465         * Form.cs:
6466           - Now remembering the requested client size, avoids size errors
6467           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
6468             instead of base if the menu is active. This is required due to
6469             control now capturing and releasing on down/up and it would
6470             prematurely release our menu capture
6472 2006-03-17  Jackson Harper  <jackson@ximian.com>
6474         * KeyboardLayouts.cs: Add the czech layouts.
6476 2006-03-16  Jackson Harper  <jackson@ximian.com>
6478         * Control.cs: Use the viewport space when sizing not the controls
6479         client size, so things like ScrollableControl that effect the
6480         viewport size (when scrollbars are added) are computed correctly.
6481         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
6482         of ManagerEntrys.
6483         - Handle creating BindingManagers for null data sources.
6484         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
6485         source, otherwise when rows are added they are added to the 'fake'
6486         datasource and we will crash when trying to set the position in
6487         those rows.
6488         - Use Implicit scrollbars on the datagrid so they arent
6489         selectable.
6490         
6491 2006-03-16  Jackson Harper  <jackson@ximian.com>
6493         * Binding.cs:
6494         * InternalWindowManager.cs:
6495         * MdiWindowManager.cs:
6496         * X11Keyboard.cs: I really want Mike to love me again (fix
6497         compiler warnings).
6499 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
6501         * DataGrid.cs:
6502           - OnMouseDown: Switch to editing mode when clicking on the cell
6503                          even if we're clicking on the cell that's currently 
6504                          selected
6505           - ProcessGridKey: Left/Right now wrap like MS.Net does
6506           - ProcessGridKey: Tab now knows to add a new row when tab is
6507                             pressed in the cell of the last column of the 
6508                             last row
6509           - ProcessGridKey: Enter now adds another row  if pressed in the last
6510                             row and selectes the new row, same column cell
6511           - ProcessGridKey: Home/End navigate columns, not rows, like 
6512                             originally implemented
6513           - Broke ProcessKeyPreview code out into an extra Internal method
6514             so it can be called from the edit code
6515         * DataGridTextBox.cs (ProcessKeyMessage):
6516           - Switched to accept Tab keypresses
6517           - Added F2 handling to allow jumping to the end of the edited cell
6518           - Added logic to allow moving caret left/right inside edited cell
6519             and making the edited cell jump when the caret hits cell borders
6520           - Tab and Enter are now passed to the datagrid after being handled
6521         * TextBoxBase.cs:
6522           - Removed capture code now that Control handles it
6523           - set_SelectionStart now ensures caret is visible
6525 2006-03-16  Jackson Harper  <jackson@ximian.com>
6527         * TrackBar.cs: Debackwards the increment/decrement for handling
6528         mouse clicks on the bar with vertical trackbars.
6529         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
6530         bottom to match MS.
6532 2006-03-16  Mike Kestner  <mkestner@novell.com>
6534         * ListView.cs: make shift/ctrl keyboard and mouse selection 
6535         consistent with the MS control. Fix a bug in
6536         SelectedListViewItemCollection.Clear that was pissing me off for the
6537         better part of a day because the collection was being altered
6538         underneath us as we walked the list.
6540 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
6542         * Control.cs: Not sure how we could miss this so long, but it seems
6543           that MS.Net has Capture set all the way from before calling 
6544           OnMouseDown through sending the mouse events until after
6545           OnMouseUp. This will fix DataGrid's selection being set to end
6546           at the location of the MouseUp.
6548 2006-03-15  Jackson Harper  <jackson@ximian.com>
6550         * BindingContext.cs: Check the binding after its added so that it
6551           can initialize the binding managers and hookup to events.
6552         * Binding.cs: Data members seem to sometimes include rows/cols in
6553           the format Row.Column we now take this into account.
6554           - Hookup to the position changed event so we can update the
6555           control when the position has changed in the data set.
6556         * CurrencyManager.cs: Take into account the row/col naming
6557           convention when creating dataset tables.
6558         * BindingContext.cs: Using a newer better way of storing
6559           datasource/datamember pairs.  Hopefully this better matches MS for
6560           looking up binding managers.
6563 2006-03-15  Jackson Harper  <jackson@ximian.com>
6565         * BindingContext.cs: The currency manager needs the data member
6566         name, if the member is a data set we use the name to find the
6567         correct table.
6568         * CurrencyManager.cs: When creating the list prefer an IList over
6569         an IListSource.
6570         - Attempt to create a DataTable from a DataSet (TODO: might need
6571         some better error checking here, although MS doesn't seem to have much)
6572         - If we have a DataTable create a view and use it as our list.
6574 2006-03-15  Mike Kestner  <mkestner@novell.com>
6576         * ListView.cs: keep a matrix of the icon mode layout to facilitate
6577         keyboard navigation. Support Up/Down/Left/Right selection correctly
6578         for all 4 View modes.
6579         * ListViewItem.cs: add internal row/col fields for icon layouts.
6581 2006-03-15  Jackson Harper  <jackson@ximian.com>
6583         * TabControl.cs: Redraw the tabs when we resize so their newly
6584         calculated sizes are drawn on screen.
6585         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
6586         composite characters.
6587         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
6588         - filter events so that composite characters can be created
6589         patches by peter
6590         * X11Structs.cs: Add XIMProperties enum.
6592 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
6594         * Control.cs (BringToFront, SendToBack): Don't use window or handle
6595           unless it's created
6597 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
6599         * Control.cs (PerformLayout): We don't need to consider visiblity
6600           for anchoring, only for docking. This fixes 'whacky' alignment
6601           in listbox and other controls that use implicit scrollbars after
6602           the previous PerformLayout patch
6603         * ListBox.cs: Switched to use implicit scrollbars
6604           
6605 2006-03-14  Mike Kestner  <mkestner@novell.com>
6607         * ToolBar.cs: 
6608         * VScrollBar.cs:
6609         - chain up the "new event" overrides to base and use
6610         OnEvent to raise them.  Part of fix for bug #76509.
6612 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
6614         * FileDialog.cs: Do not select an item in the parent directory
6615           on backspace
6617 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
6619         * Control.cs (PerformLayout): It would seem that we considered
6620           invisible windows for our layout. Not quite the right thing
6621           to do. Now we don't any longer, thereby fixing bug #76889.
6623 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
6625         * Control.cs (CanFocus): I goofed. A control can have focus 
6626           even though it's not selectable. Made it match MS docs.
6628 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
6630         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
6631           center by default (fixes #76895)
6632         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
6633           all uses of Border3DSides.All with the explicit ORd together
6634           Left|Right|Top|Bottom because I assume that nobody was aware 
6635           that All also implies a center fill. Most places I checked had
6636           a fill right above.
6637         * ProgressBarStyle.cs: Added
6639 2006-03-13  Mike Kestner  <mkestner@novell.com>
6641         * ListView.cs: fix breakage in drag shadow header positioning 
6642         from Peter's csc compilation fix.
6644 2006-03-13  Mike Kestner  <mkestner@novell.com>
6646         * ListView.cs: fix NRE produced by backspacing twice in a focused
6647         FileDialog.
6649 2006-03-13  Mike Kestner  <mkestner@novell.com>
6651         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
6653 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
6655         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
6656           be changed
6657         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
6658           the allowed size before making programmatic size changes
6660 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
6662         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
6663           set, metacity is broken and will still use the emty sizes in 
6664           the struct. (Fix for #77089)
6666 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
6668         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
6669           WindowExStyles and marked both enums as Flags
6670         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
6671           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
6672           to match WindowStyles split
6673         * XplatUIX11.cs:
6674           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
6675           - Updated to match WindowStyles split
6676         * XplatUIWin32.cs:
6677           - Fixed FosterParent creation, was using ExStyle on the Style field
6678             (This should help with Popup focus issues)
6679           - Updated to match WindowStyles split
6681 2006-03-13  Jackson Harper  <jackson@ximian.com>
6683         * MdiWindowManager.cs: Use the system menu height. Fixes some
6684         strange sizing issues.
6686 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
6688         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
6689         * TextBoxBase.cs:
6690           - Scroll to caret after inserting text (#77672)
6691           - Make scroll range one pixel higher, fixes off-by-one error (and
6692             makes underlines visible on the last line)
6694 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
6696         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
6697           the keyboard state from being stuck with keys in 'pressed' state when
6698           focus is switched away via keyboard
6699         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
6700           reset the keyboard if no X11 KeyUp events are expected to come
6701         * X11Structs.cs: Switched type of Visible to bool to match driver
6703 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
6705         * TextControl.cs:
6706           - Switched caret to be just 1 pixel wide, matches MS and looks less
6707             clunky
6708           - Moved caret display 1 pixel down from the top of the control
6709             to improve view
6710           - InsertCharAtCharet: Update the selection start if moving the caret
6711             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
6712           - No longer always creating the caret when the caret methods are
6713             called. Only the actual ShowCaret/HideCaret will do that now
6714           - Only setting caret visible if the owner control has focus
6715           - UpdateView: Added invalidation-shortcut logic for center and right 
6716             aligned text. Previously we'd update all according to the left
6717             logic which caused drawing errors. Also fixed height of invalidated
6718             areas, now properly invalidating the whole area (was off-by-one)
6719           - owner_HandleCreated: Always generate the document when the
6720             handle is created; this ensures that 
6721         * TextBoxBase.cs:
6722           - Fixed situation where caret would disappear under the right
6723             window border, also improved scrolling behaviour on left-
6724             aligned textboxes
6725           - Fixed right-aligned textboxes to have a border to the
6726             right instead of the caret being under the right border
6727         * XplatUIX11.cs:
6728           - Switched from 'nested' to simple visible/not visible tracking 
6729             for caret (part of fix for #77671)
6730           - No longer passing through translated FocusIn/FocusOut messages
6731             since we were notifying too often and the wrong windows. Instead
6732             we just notify our focussed window of receiving or loosing focus
6733         * XplatUIWin32.cs: Switched from 'nested' show/hide 
6734           counting for caret to simple visible yes/no behaviour (part of 
6735           fix for #77671)
6737 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
6739         * Mime.cs: Remove debug code...
6741 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
6743         * MimeGenerated.cs: Removed
6744         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
6745           and subclasses) from /usr/(local/)share/mime and
6746           $HOME/.local/share/mime.
6748 2006-03-10  Jackson Harper  <jackson@ximian.com>
6750         * MdiWindowManager.cs: Recalc the NC area when a window is
6751         maximized/restored so that the menu area is drawn on forms that
6752         don't have a menu.
6754 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
6756         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
6757           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
6758           us to force a WM_NCCALCRESIZE message being sent. This is needed
6759           for MDI maximizing.
6761 2006-03-10  Jackson Harper  <jackson@ximian.com>
6763         * Form.cs: We need to use the ActiveMenu when calculating menu
6764         height.
6765         - Fix nullref when the window manager hasn't been created yet.
6766         * Control.cs: Fix nullref when we try to bring a control to the
6767         front that has no parent.
6768         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
6769         height.
6770         - Add a dummy item to the maximized menu so it always has the
6771         correct height. Otherwise when there are no menus we don't get our
6772         icon and buttons.
6773         
6775 2006-03-10  Jackson Harper  <jackson@ximian.com>
6777         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
6778         stuff.
6779         * Form.cs: Make the window_state internal so the window managers
6780         can track it.
6781         - When an MDI child is maximized let its window manager create the
6782         main menu (so it can add its icon).
6783         - Notify the window managers of state changes
6784         - Let the window manager paint its buttons and handle button
6785         clicks on the menu when it is maximized.
6786         * InternalWindowManager.cs: Move the prev_bounds into the mdi
6787         window manager, since tool windows don't use it, only mdi windows.
6788         - Tell the main form that we don't want it to handle NCPAINT
6789         itself to avoid extra painting.
6790         - Handle clicks on a maximized windows menu.
6791         - Handle window state changes
6792         - Handle minimize/maximize clicks correctly by setting the window state.
6793         * MdiWindowManager.cs: Add an icon menu that (the menu you get
6794         when clicking on the forms icon).
6795         - New method to create a forms maximized menu. This is its normal
6796         menu + an icon.
6797         - Handle window state changes.
6798         - Handle sizing of maximized windows.  Maximized windows are just
6799         drawn bigger then the parent visible area. All controls are still
6800         there, they are just outside the visible area (this matches windows).
6801         * MdiClient.cs: No scrollbars when a child window is maximized.
6802         - Let the children windows figure out how big they should be when
6803         sizing maximized windows.
6804         - Implement a version of ArrangeIconicWindows somewhat similar to
6805         Windows version.  There are some little differences, but I don't
6806         think any app will rely on the layout of minimized mdi windows.
6808 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
6810         * Padding.cs: Several fixes to allow compiling with csc 2.0
6812 2006-03-09  Jackson Harper  <jackson@ximian.com>
6814         * Menu.cs:
6815         * MenuItem.cs: Cheap hack so we can add items to the list without
6816         the events being raised.  This allows adding mdi items during
6817         drawing. TODO: Should probably find a better time to add the items.
6819 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
6821         * ThemeWin32Classic.cs:
6822           - CheckBox_DrawText: Added logic to not wrap if not enough space
6823             is available (Fix for bug #77727)
6824           - RadioButton_DrawText: Added logic not to wrap if not enough
6825             space is available (Fix for bug #77727). Also removed some
6826             duplicate code, DrawString always drawing the regular text
6827             before hitting the if statement.
6829 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
6831         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
6833 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
6835         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
6836         * ContainerControl.cs: Partial implementation of some 2.0 scaling
6837           methods. Moved the new 2.0 properties into alphabetical order with
6838           other properties and added MonoTODO tags
6840 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
6842         * AutoScaleMode.cs: Added. Fix build.
6844 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
6846         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
6847           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
6848           and was requiring premature handle creation for calls from above
6849         * Form.cs, Control.cs: Removed handle arguments from calls to
6850           CalculateClientRect()
6852 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
6854         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
6855           drag_column.column_rect is MarshalByRef and can't be used that way
6857 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
6859         * AxHost.cs: Added deserialization constructor for 
6860           AxHost+State (fixes 77743)
6862 2006-03-09  Mike Kestner  <mkestner@novell.com>
6864         * ListView.cs: 
6865         - Added column drag reordering for details view.
6866         - fixed behavior when mouse is dragged off column and
6867         AllowColumnReorder is false.
6868         * ColumnHeader.cs: clone the format too in Clone.
6869         * Theme.cs: add DrawListViewHeaderDragDetails method.
6870         * ThemeWin32Classic.cs:
6871         - impl new method for drawing drag column shadows and targets.
6872         - support column offset for details mode in DrawListViewItem.
6874 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
6876         * TextControl.cs: Reset the char_count when the document is cleared
6877           (Fixes bug reported on mono-winforms mailing list)
6879 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
6881         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
6882           of calling base we simply process the key ourselves, since both
6883           DefWindowProc and the handled method would set m.Result. 
6884           (Fixes #77732)
6886 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
6888         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
6889           method also moves the window; instead implemented a copy of
6890           Control.ScaleCore (Part of fix for #77456)
6891         * TextBoxBase.cs: 
6892           - Created new CreateGraphicsInternal method to allow providing
6893             a graphics context when no handle is created without triggering
6894             handle creation. (Part of fix for #77456)
6895           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
6896         * TextControl.cs: 
6897           - Switched Constructor to require TextBoxBase instead of Control (to
6898             allow uncast access to CreateGraphicsInternal)
6899           - Safeguarded use of owner.Handle property. No longer accessing it
6900             unless the handle is already created.
6901           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
6902           - Now triggering a recalc when owning control becomes visible
6903         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
6904           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
6905           premature handle creation (Part of fix for #77456)
6906         * Control.cs:
6907           - We now only destroy our double-buffering buffers when the
6908             control is resized or disposed, but not when visibility
6909             changes. (The code even re-created them twice every time)
6910           - Now requiring a redraw of the buffer on visibility changes
6911             (fixes bug 77654 part 2)
6912           - Not passing OnParentVisibleChanged up unless the control
6913             is visible
6914           - CanFocus: Fixed to match MS documentation
6915           - Focus: Fixed to return actual focus state and to check if
6916             setting focus is legal before setting it
6918 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
6920         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
6921           when to draw focus rectangle by looking at parent focus and
6922           selected state instead. This fixes TabPages on Linux sometimes
6923           having none or multiple focus rectangles.
6924         * XplatUIX11.cs (SetFocus): 
6925           - Don't set the focus if the same window already has focus
6926           - Use SendMessage instead of PostMessage (like it's Win32
6927             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
6928             to match MS behaviour
6929         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
6930           are not selectable.
6932 2006-03-07  Jackson Harper  <jackson@ximian.com>
6934         * PictureBox.cs: Revert line I accidently committed last week.
6936 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
6938         * Control.cs: 
6939           - Added new IsRecreating and ParentIsRecreating properties to
6940             allow testing if RecreateHandle has been called on ourselves
6941             or one of our parents
6942           - WndProc(WM_DESTROY): If our control handle is being recreated
6943             we immediately need to create the handle when receiving the
6944             destroy, that way our child windows find a valid parent handle
6945             when they themselves are being recreated upon WM_DESTROY receipt
6946             (fix for bug #77654 part 1)
6947         * XplatUIX11.cs:
6948           - DestroyWindow: WM_DESTROY must be sent to our own window before
6949             notifying any child windows. MS documents that child windows
6950             are still valid when WM_DESTROY is received. (Control now relies on
6951             this behaviour)
6952           - Added some fine-grain debug options
6954 2006-03-06  Jackson Harper  <jackson@ximian.com>
6956         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
6957         box and base calculations off this.
6958         * MdiChildContext.cs:
6959         * MdiWindowManager.cs: Don't need to ensure scrollbars here
6960         anymore.
6961         
6962 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
6964         * Splitter.cs: In situations where the affected control is added
6965           to the parent's control list after the splitter, we would not
6966           populate affected. Now we try populating it on mousedown, if
6967           it's not already set, and force it to be re-set whenever our
6968           parent changes.
6970 2006-03-03  Matt Hargett  <matt@use.net>
6972         * Control.cs: implement Control.Padding
6973         * Padding.cs: -Padding.All returns -1 when constructing with the
6974         implicit default ctor
6975         -Padding.ToString() matches MS.NET
6976         * ContainerControl.cs: implement
6977         ContainerControl.AutoScaleDimensions
6978         * ListControl.cs: implement ListControl.FormattingEnabled
6979         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
6980         * ButtonBase.cs:
6981         * TabPage.cs: Implement UseVisualStyleBackColor.
6982         * PictureBox.cs: Implement PictureBox.InitialImage.
6984 2006-03-03  Mike Kestner  <mkestner@novell.com>
6986         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
6987         event declarations to proxy to base event.
6988         * ListViewItem.cs: update to use ItemControl.
6989         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
6990         * ThemeWin32Classic.cs: update to new ListView theme API and fix
6991         column header label rendering for 0 width columns.
6993 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
6995         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
6996           that causes the control to be created. Fixes #77476.
6998 2006-03-02  Jackson Harper  <jackson@ximian.com>
7000         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
7001         expose_pending.
7003 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
7005         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
7006           passed in for the EventArgs (fixes #77690)
7008 2006-03-01  Jackson Harper  <jackson@ximian.com>
7010         * ScrollBar.cs: Refresh afterbeing resized.
7012 2006-02-28  Mike Kestner  <mkestner@novell.com>
7014         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
7015         Clean up a tracker compile warning.
7016         * MenuItem.cs: add internal PerformPopup method.
7017         [Fixes #77457]
7019 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
7021         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
7022           implicit expose) when the text is set to null
7024 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
7026         * RichTextBox.cs (FlushText): When newline is true, we always
7027           need to split the line, even if no text is on it and we may
7028           never eat newlines. (Fixes #77669)
7030 2006-02-28  Mike Kestner  <mkestner@novell.com>
7032         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
7033         and set Selected instead.
7034         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
7035         collections.
7037 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
7039         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
7041 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
7043         * FontDialog.cs:
7044           - Got rid of the panel. All controls are now directly added to
7045             the dialog form
7046           - It is now possible to set a font with the Font property
7047           - MinSize and MaxSize property do now what they should
7048           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
7049           - Searching and selecting a font with the font textbox works now,
7050             the same applies to the style and size textbox
7051           - Draw the correct 3D border in the example panel
7052           - Fixed a little mem leak (unused fonts didn't get disposed)
7053           - Many other internal updates/rewrites...
7054           - Fix typo
7056 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
7058         * TextControl.cs: 
7059           - InsertRTFFromStream: Added 'number of characters inserted' argument
7060           - set_SelectedRTF: Now using the number of characters to calculate
7061             the new location for the selection and cursor (x/y cannot be used
7062             due to potentially already wrapped text)
7064 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
7066         * TextControl.cs: Added property and implemented means to allow 
7067           disabling recalculation of a document (can be used to speed up
7068           multiple inserts and is needed to make RTF inserts predictable, see
7069           bug #77659)
7070         * RichTextBox.cs: Using the new NoRecalc property of Document to
7071           keep x/y insert locations predictable. Also makes it faster inserting
7072           large chunks of RTF
7074 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
7076         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
7077           it's easier for a child control to handle the other messages without
7078           having to duplicate the special functionality
7079         * TextBoxBase.cs
7080           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
7081             code to handle processing the key ourselves, in order to get 
7082             access to the result of KeyEventArgs.Handled. We now only call 
7083             ProcessKey if they key hasn't been handled already. Fixes #77526.
7084           - set_Text: If null or empty string is given, just clear the 
7085             document. Fixes part of #77526
7087 2006-02-27  Jackson Harper  <jackson@ximian.com>
7089         * SizeGrip.cs: Paint the background color before painting the grip
7090         so things look right.
7091         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
7093 2006-02-27  Mike Kestner  <mkestner@novell.com>
7095         * ListView.cs:
7096           - Restructure layout and invalidation model to remove a ton of
7097           flicker from the control and speed up performance in general.
7098           - Add manual column resize, flickers like crazy, but I already have
7099           some ideas on how I'll fix that. (#76822)
7100           - Merge the three Icon-based views into a single layout method.
7101           - Move item selection interaction logic from the item since 
7102           interaction with the collections is more appropriate to the view.
7103           - Deselection on non-item clicks.
7104         * ListViewItem.cs:
7105           - Encapsulate most of the layout. Add some internal props to trigger
7106           layout.  Move to a model where Items invalidate themselves instead
7107           of just invalidating the whole control every time something changes.
7108           - Invalidate on Text/Caption changes.
7109           - switch to an offset based layout model to avoid having to absolute
7110           position every element on item moves.
7111           - correct checkbox layout to conform to MS layout.
7112         * ThemeWin32Classic.cs:
7113           - refactor some column header drawing code.
7114           - fix string justification for column headers (#76821)
7115           - make SmallIcon labels top justified for compat with MS impl.
7116         * ThemeClearlooks.cs:
7117           - adjust to new ListViewItem internal checkbox bounds api.
7119 2006-02-27  Jackson Harper  <jackson@ximian.com>
7121         * Control.cs:  Change where implicit controls fall in the zorder.
7122         They are now on top of all children.
7123         - Synced AddImplicit code with Add
7124         - Removed unused enumerator.
7125         * SizeGrip.cs: Remove the TODO as its been TODONE.
7127 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
7129         * TextControl.cs(Insert): Combine the last lines unless the insertion
7130           string ends with \n\n, otherwise we leave one line too many (Fixes
7131           something I noticed with the testapp for #77526; the bug itself was
7132           already fixed in the previous checkin)
7134 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
7136         * RichTextBox.cs:
7137           - SelectionColor and SelectionFont methods no longer set absolute
7138             styles. Instead, the keep font or color respectively (This 
7139             resolves a long-standing FIXME in the code)
7140           - When flushing RTF text, the insert code now considers text trailing
7141             behind the insertion point (Fixes the bug where when replacing
7142             the selected text via SelectedRTF the remainder of the line behind 
7143             the selection would stay on the first insertion line)
7144         * TextBoxBase.cs:
7145           - AppendText now updates the selection points after inserting text
7146           - AppendText now ensures that the last tag (sometimes 0-length) of
7147             the document is used for the style information (Fixes part of 
7148             bug #77220)
7149         * TextControl.cs:
7150           - Created new FontDefiniton class to allow describing partial style
7151             changes
7152           - StreamLine() now takes a lines argument, to allow it to decide
7153             whether an encountered zero-length tag is the last in the document
7154             (which must be kept to not loose the font/color contained in it,
7155             for later appends)
7156           - Created Combine() and Split() methods for Marker structs, to 
7157             support marker updates due to reformatted documents (soft line
7158             wraps)
7159           - Implemented Document.CaretTag setter
7160           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
7161             of the last line (Not the cause, but also exposed by bug #77220)
7162           - Added LineTag argument to InsertString method, to allow callers
7163             to force a certain tag to be used (required to force use of the
7164             trailing zero-length tag of a document)
7165           - Now updating markers in Combine(), to avoid stale tag markers
7166           - Added some method descriptions to aid maintenance
7167           - Implemented new FormatText concept, allowing additive/subtractive
7168             formatting by only specifying the components that are to be 
7169             changed. This was needed for resolving the RTB.SelectedColor/
7170             RTB.SelectedFont fixmes
7171           - Added Break() support method to allow breaking up linetags (used
7172             for partial formatting)
7173           - Added GenerateTextFormat() method. It is used for partial 
7174             formatting and allows to generate a full font/color from given
7175             attributes and an existing tag.
7177 2006-02-26  Jackson Harper  <jackson@ximian.com>
7179         * XplatUIX11.cs:  Use the correct caption height.
7180         - Translate hittest coordinates to screen coords to match MS.
7181         * XplatUIWin32.cs: When we create MDI windows we need to reset
7182         some of the style flags, so we get a nice blank window, and can
7183         draw all the decorations ourselves.
7184         - Set a clipping rectangle on the non client paint event, the
7185         window manager drawing code needs one.
7186         * Form.cs: The window manager needs to know when the window state
7187         has been updated.
7188         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
7189         don't need to factor in border and title sizes in these
7190         methods. TODO: Remove the args and fix the call points.
7191         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
7192         properly.
7193         - Let the driver set the cursors.
7194         - Improve active window handling
7195         - Correct sizes for title bars and buttons.
7196         - Match MS drawing better
7197         * MdiWindowManager.cs: We don't need to handle border style
7198         updates specially anymore.
7199         - Check for scrollbars when windows are done moving
7200         - Handle Active properly.
7201         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
7202         correctly. I am spewing the exception though, so we don't hide the
7203         bugs.
7204         
7205 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
7207         * DataGridViewRowPostPaintEventArgs.cs,
7208           DataGridViewCellPaintingEventArgs.cs,
7209           DataGridViewRowCollection.cs,
7210           DataGridViewRowPrePaintEventArgs.cs,
7211           DataGridViewCell.cs: Clear a few warnings and implement a few
7212           exceptions that should be thrown.
7214 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
7216         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
7217           'inheriting' our parent's (non-default) cursor. (Part of
7218            the fix for #77479)
7220 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
7222         * XplatUIX11.cs: Fixed cast to make csc happy
7224 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
7226         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
7227           it's for the client area (part of fix for #77479 and needed
7228           for MDI window cursor handling)
7229         * XplatUIX11.cs
7230           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
7231             the appropriate default cursors and also passing the message
7232             up the parent chain 
7233           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
7234             for non-client areas
7236 2006-02-15  Jackson Harper  <jackson@ximian.com>
7238         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
7239         is a real MDI window
7241 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
7243         * X11DesktopColors.cs: Instead of checking the desktop session
7244           string for "KDE" check if it starts with "KDE"
7246 2006-02-10  Jackson Harper  <jackson@ximian.com>
7248         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
7249         systems).
7251 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
7253         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
7254           errors
7255         * ColorDialog.cs:
7256           - Got rid of the panel. All controls are now directly added to
7257             the dialog form
7258           - Changed to mono coding style
7260 2006-02-10  Jackson Harper  <jackson@ximian.com>
7262         * InternalWindowManager.cs: We don't need the set visibility to
7263         false hack anymore now that peter has written beautiful shutdown
7264         code.
7266 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
7268         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
7269           where already explicitly destroyed
7271 2006-02-10  Jackson Harper  <jackson@ximian.com>
7273         * MdiClient.cs: Handle the case where windows are too high or to
7274         the left and we need scrollbars.
7276 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
7278         * MimeIcon.cs: Added some icons
7279         * FileDialog.cs:
7280           - Fixed bug #77477
7281           - Got rid of the panel. All controls are now directly added to
7282             the dialog form
7283           - Changed to mono coding style
7284           - On Linux "My Computer" and "My Network" will now show some
7285             more usefull information. A new class, MasterMount, gathers
7286             this information from /proc/mount. Updated MWFFileView to make
7287             use of this information
7288           - Fixed a bug that caused FileDialog to crash when
7289             ".recently_used" file had a zero size
7290           - FilterIndex does now what it should
7291           - Some Refactoring
7292         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
7293             FileDialog changes
7295 2006-02-09  Jackson Harper  <jackson@ximian.com>
7297         * ComboBox.cs: Don't touch if null.
7299 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
7301         * Cursor.cs: 64bit safeness fix
7302         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
7304 2006-02-09  Jackson Harper  <jackson@ximian.com>
7306         * Form.cs: If a form is made into an MDI form update the styles so
7307         all the props can get set correctly.
7308         - Kill the mdi_container when we dont need it anymore.
7309         * InternalWindowManager.cs: Add missing NOT
7311 2006-02-08  Jackson Harper  <jackson@ximian.com>
7313         * InternalWindowManager.cs: Respek clipping when drawing MDi
7314         decorations.
7316 2006-02-08  Jackson Harper  <jackson@ximian.com>
7318         * Hwnd.cs: Add bits to track non client expose events.
7319         * XplatUIX11.cs: Track non client expose events on the hwnd. This
7320         gives us a proper invalid rect and will allow for some nice
7321         optimizations with NC client drawing
7322         - MDI windows are children windows, so move their style handling
7323         into the child window block.
7324         * InternalWindowManager.cs: Remove a state reset that was
7325         getting invoked at the wrong time. Fixes managed windows getting
7326         into a 'stuck' captured state.
7328 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
7330         * TextControl.cs (Document.ctor): Now initializing 
7331           selection_anchor. Fixes #77493
7333 2006-02-07  Jackson Harper  <jackson@ximian.com>
7335         * TrackBar.cs: The increment/decrements were backwards.
7337 2006-02-07  Mike Kestner  <mkestner@novell.com>
7339         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
7340         to the instance itself.
7342 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
7344         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
7345           on ulongs and pointers, the size differs between 32bit and 64bit
7346           systems. 
7348 2006-02-07  Mike Kestner  <mkestner@novell.com>
7350         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
7351         for 64 bit platforms to work around a metacity bug. 
7353 2006-02-07  Jackson Harper  <jackson@ximian.com>
7355         * TrackBar.cs: Process the input keys we need, and hookup to
7356         KeyDown instead of using WndProc, so we get key messages.
7358 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
7360         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
7361           machine we're on. 
7362         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
7363           we need to translate the XdndVersion atoms array before sending it
7365 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
7367         * XplatUIX11.cs: 
7368           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
7369             number of bits for the property, not the number of bytes. The
7370             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
7371             but would not crash since it specified 8 bits instead of 4 bits)
7372           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
7373             defined as XID -> long in the C headers)
7374           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
7375             references since those are now IntPtr to begin with
7376           - Switched all Atom.XXX 'int' casts to IntPtr casts
7377           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
7378           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
7379           - Added XChangeActivePointerGrab DllImport (for X11DnD)
7380         * X11Structs.cs:
7381           - Changed 'int' type for Atoms in XEvent structures to IntPtr
7382           - Changed atom in HoverStruct to be IntPtr
7383         * X11DnD.cs:
7384           - Removed local DllImports, switched code to use those from XplatUIX11
7385           - Removed/fixed casts related to the switch of Atom to be a IntPtr
7387 2006-02-06  Mike Kestner  <mkestner@novell.com>
7389         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
7390         method signatures in the import region.  There may still be some
7391         lingering struct marshaling issues, as I didn't drill down into those.
7392         Yet.
7394 2006-02-06  Jackson Harper  <jackson@ximian.com>
7396         * ComboBox.cs: Dont manually set the top_item, this is computed
7397         when the scrollbar position is set.
7399 2006-02-06  Mike Kestner  <mkestner@novell.com>
7401         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
7402         startup crashes on amd64.  There's other fixes needed.  All pinvoke
7403         usage of Atom needs to be mapped to IntPtr for example.  And there are
7404         likely other int/long issues to be addressed.
7406 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
7408         * FileDialog.cs: One more...
7410 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
7412         * FileDialog.cs: Next try
7414 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
7416         * FileDialog.cs: First part of fix for #77464
7418 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
7420         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
7421           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
7422           AcceptButton border drawing.
7424 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
7426         * Form.cs: Moved positioning of form after auto scaling is applied,
7427           otherwise it would possibly use wrong form size.
7429 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
7431         * Control.cs (RecreateHandle): No need to re-create any child
7432           controls, the child windows will get destroyed automatically by
7433           the windowing system or driver, and re-created when the handle
7434           is being accessed the first time. Fixes #77456
7435         * Form.cs: No longer setting the form to closing if the handle is 
7436           being recreated. This seems like the right thing to do, don't
7437           have a bug or testcase for this, though.
7439 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
7441         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
7442           controls to avoid unwanted side effects
7444 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
7446         * Control.cs: 
7447           - ScaleCore needs to scale the bounds, not the ClientSize of the 
7448             control. Fixes #77416.
7449           - DefaultSize is 0,0 for control
7450         * TextBoxBase.cs: 
7451           - DefaultSize is 100, 20
7452           - SetBoundsCore: Now enforcing the height, no matter if the provided
7453             height is more or less than the preferred one, as long as AutoSize
7454             is on
7455         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
7457 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
7459         * Control.cs:
7460           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
7461             call unless both performLayout is true *and* we have a pending
7462             layout change
7463           - ResumeLayout: MS does not completely nest Suspend and Resume,
7464             they bottom out at 0, fixed our code to match that.
7465           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
7466             SetBoundsCore, we were updating even when we shouldn't. This fixes
7467             swf-anchors mis-anchoring when resizing the app fast and lots.
7468           - UpdateDistances: Now only setting the left and top distance if 
7469             we have a parent and are not suspended, this is based on
7470             a suggestion by Don Edvaldson in bug #77355.
7471           - OnVisibleChanged: Fixed logic when to create the control. We may
7472             not create the control if we have no parent or if it's not visible;
7473             switched to using Visible property instead of is_visible field 
7474             since the property also considers parent states. This fixes a bug
7475             when starting Paint.Net
7477 2006-02-02  Jackson Harper  <jackson@ximian.com>
7479         * Form.cs: If the forms handle hasn't been created yet don't call
7480         into xplatui to make it top most, just set the topmost flag on the
7481         form in CreateParams
7482         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
7484 2006-02-01  Jackson Harper  <jackson@ximian.com>
7486         * ScrollableControl.cs: Refactored the Recalculate method a
7487         little, this wasn't handling all the variants of bottom and right
7488         bars needed to be added and added/removed based on their
7489         counterparts being added/removed (which changes the drawable
7490         size). Also we special case client widths and heights of 0 and
7491         don't add the scrollbar for those.
7493 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
7495         * XplatUIX11.cs: 
7496           - Added method to get AbsoluteGeometry(); currently unused, but might
7497             be used in the future, if we try again to figure out toplevel
7498             coordinates with some more crappy window managers
7499           - Added FrameExtents() method to retrieve the WM set decoration size
7500           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
7501             to deal with at least KDE, FVWM and metacity (Fixes #77092)
7502         * Hwnd.cs: 
7503           - Added whacky_wm tracking var for metacity
7504           - Added logic to have default menu height if the actual menu height
7505             has not yet been calculated (part of fix for #77426)
7506         * Form.cs: Keep track whether client size has been set and re-set 
7507           it if a menu is added/removed afterwards (Fixes #77426)
7509 2006-01-31  Jackson Harper  <jackson@ximian.com>
7511         * Control.cs: When a new Site is set on the component attempt to
7512         pull the AmbientProperties from it.
7514 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
7516         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
7517           in the background of the owning form. Fixes #77332
7519 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
7521         * MimeIcon.cs: Fix for #77409
7523 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
7525         * XplatUIX11GTK.cs: Initial import
7527 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
7529         * FixedSizeTextBox: fixes class signature
7531 2006-01-30  Jackson Harper  <jackson@ximian.com>
7533         * FixedSizeTextBox.cs: New internal class that represents a
7534         textBox that will not be scaled.
7535         * TreeView.cs:
7536         * ComboBox.cs:
7537         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
7538         standard TextBox.
7539                 
7540 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
7542         * XplatUIX11.cs: Retrieve default screen number instead of
7543           assuming 0. Attempted fix for #77318
7545 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
7547         * XplatUIWin32.cs: 
7548           - GetWindowPos: When a window is parented by FosterParent, use 
7549             the desktop instead of FosterParent as the base to get coordinates
7550           - CreateWindow: Don't make FosterParent the parent window for Popups
7551             if we don't want a taskbar entry, Popups automatically don't get one
7552         * Hwnd.cs: Need to call remove to actually remove the key from the
7553           hash table
7555 2006-01-30  Mike Kestner  <mkestner@novell.com>
7557         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
7559 2006-01-30  Jackson Harper  <jackson@ximian.com>
7561         * TreeView.cs:
7562         * TreeNode.cs: Raise events no matter how the treenode is
7563         checked. Patch by Don Edvalson.
7565 2006-01-30  Jackson Harper  <jackson@ximian.com>
7567         * TreeNode.cs: Signature fix.
7569 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
7571         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
7573 2006-01-20  Mike Kestner  <mkestner@novell.com>
7575         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
7576         event forwarding when menus are active.
7577         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
7578         Most of the patch is pdb's with a little rework.
7580 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
7582         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
7583           Removed GetMenuDC and ReleaseMenuDC methods; replaced
7584           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
7585         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
7586         * InternalWindowManager.cs: Added use of PaintEventStart/End to
7587           handling of WM_NCPAINT message, now passing the PaintEventArgs to
7588           the PaintWindowDecorations method
7589         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
7590         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
7591         * MenuAPI.cs: Made tracker window invisible
7592         * XplatUIWin32.cs:
7593           - Removed GetMenuDC and ReleaseMenuDC methods
7594           - Implemented the client=false path for PaintEventStart and
7595             PaintEventEnd
7597 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
7599         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
7600         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
7601           styles
7602         * Form.cs: 
7603           - MaximizeBox, MinimizeBox: Recreate the handle when setting
7604             the style
7605           - CreateParams: Reworked the styles to match MS look'n'feel,
7606             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
7607             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
7609 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
7611         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
7612           window is not mapped, since otherwise every form that's being 
7613           created is considered minimized, which is wrong.
7614         * Form.cs: Catching the exception and returning our internal value
7615           instead
7617 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
7619         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
7620           SetWindowMinMax() to have means to tell the driver about the minimum,
7621           maximum and maximized state window sizes. (Part of the fix for #76485)
7622         * Form.cs:
7623           - Implemented tracking of minimum and maximum window size, now calling
7624             new SetWindowMinMax() driver method to tell the driver (Part of the
7625             fix for #76485)
7626           - Finished handling of WM_GETMINMAXINFO method, now setting all values
7627             (Completes fix for #76485)
7628           - Calling new SetWindowMinMax driver method when the handle for a 
7629             form is created, to make sure the driver knows about it even if
7630             the values have been set before the window was created
7631           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
7632             to avoid messing up our anchoring calculations (partial fix
7633             for #77355)
7634         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
7635         * XplatUIX11.cs:
7636           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
7637           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
7638             (and presumably other freedesktop.org compliant WMs). Left the
7639             assumption unmapped=minimized, needed for SetVisible to work.
7640           - Now setting the window state when creating windows
7641           - Fixed SetVisible to consider/set the window state when mapping
7642             a Form. We cannot set the state before it's mapped, and we cannot
7643             use Form.WindowState once it's mapped (since it would ask the
7644             driver and get 'normal'. Therefore, we grab the state before
7645             mapping, map, and then set state.
7646           - Implmemented SetWindowMinMax method; Metacity does not seem to
7647             honor the ZoomHints, though.
7648         * XplatUIWin32.cs:
7649           - Removed MINMAXINFO (moved to XplatUIStructs)
7650           - Added SetWindowMinMax stub (on Win32 the only way to set that
7651             information is in response to the WM_GETMINMAXINFO message, which
7652             is handled in Form.cs)
7653           - Added logic to SetVisible to set the proper window state when a 
7654             form is made visible (fixes #75720)
7656 2006-01-26  Jackson Harper  <jackson@ximian.com>
7658         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
7659         same way we handle them with Invoke.
7661 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
7663         * Form.cs:
7664           - Added tracking of window state so CreateParams can return
7665             the appropriate style
7666           - Moved setting of WS_CAPTION style in CreateParams to allow
7667             styles without caption
7668         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
7669           control if the TextBox property is accessed. Fixes #77345
7670         * Control.cs:
7671           - get_Created: now uses is_disposed and is_created to determine
7672             return value (suggested by Jackson)
7673           - CreateHandle: No longer exits if the handle is being recreated
7674           - RecreateHandle: If the handle is not yet created call the 
7675             appropriate method to create either control or handle. If the
7676             control is already created CreateHandle will simply exit instead
7677             of just creating the handle
7678         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
7679           now SendMessage WM_DESTROY directly to the control when DestroyWindow
7680           is called.
7681         * XplatUIX11.cs: 
7682           - When DestroyWindow is called, instead of waiting for the 
7683             DestroyNotification from X11, we directly post it to the WndProc
7684             and immediately dispose the hwnd object.
7685             Same applies to DestroyChildWindows, and this obsoletes the
7686             expose_pending tracking. Contrary to Win32 behaviour we destroy our
7687             child windows before our own, to avoid X11 errors.
7688           - Removed the direct sending of WM_PAINT on UpdateWindow
7689         * XplatUIWin32.cs:
7690           - Reworked DoEvents and GetMessage to allow access to internal queue
7691             even when trying non-blocking access to the queue.  Fixes #77335. 
7692             Based on a patch suggestion by Don Edvalson. The new private
7693             GetMessage can now also be used as a backend for a PeekMessage
7694             frontend version.
7695         * XplatUI.cs: Improved debug output for CreateWindow
7697 2006-01-25  Jackson Harper  <jackson@ximian.com>
7699         * Help.cs: Allow param to be null. Patch by Don Edvalson.
7701 2006-01-24  Jackson Harper  <jackson@ximian.com>
7703         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
7704         when we have a MaxDropItems lower then the selected index.
7706 2006-01-24  Jackson Harper  <jackson@ximian.com>
7708         * Control.cs: Don't allow selection of non visible controls, allow
7709         selection of controls without parents.
7711 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
7713         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
7714         * DataGridDrawingLogic.cs: Add editing row only when is necessary
7716 2006-01-23  Jackson Harper  <jackson@ximian.com>
7718         * UpDownBase.cs: Make the textbox handle all the selection and
7719         tabbing. This fixes tabing to updown controls.
7721 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
7723         * TextBoxBase.cs: fixes exception thown the object was null
7725 2006-01-23  Jackson Harper  <jackson@ximian.com>
7727         * ButtonBase.cs: Just use the base CreateParams. They set
7728         visibility and enabled correctly.
7729         * ComboBox.cs:
7730         * TrackBar.cs:
7731         * MonthCalendar.cs: Lets let the base set as much of the
7732         createparams as possible so we don't have duplicate code all over
7733         the place.
7735 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
7737         * ThemeGtk.cs: Added TrackBar and some experimental code to
7738           get double buffering back
7740 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
7742         * DataGrid.cs: Allows row number set internally higher than the last
7743         when creating a new row. Restores the editing functionality.
7745 2006-01-20  Mike Kestner  <mkestner@novell.com>
7747         * MimeIcon.cs: delay Image creation until the icons are accessed
7748         instead of creating 190 scaled images on GnomeHandler startup.
7750 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
7752         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
7753           first call base before processing the event. Fixes #77279
7755 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
7757         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
7758           that the stride for the GDI bitmap would match the stride of
7759           a DIB or a Cursor.
7761 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
7763         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
7765 2006-01-19  Jackson Harper  <jackson@ximian.com>
7767         * ComboBox.cs: Hookup the text controls keydown event so we get
7768         those when the text control has the focus.
7770 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
7772         * Label.cs: Now using the base events instead of defining new ones;
7773           this allows us to just call the base properties without having to
7774           duplicate all base property logic 
7776 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
7778         * Label.cs: A label by default is not a tabstop (Fixes one of our
7779           failing nunit tests)
7781 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
7783         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
7784         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
7786 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
7788         * Cursor.cs: Reimplemented creating cursor bitmaps without using
7789           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
7790           This fixes #77218
7791         * XplatUIWin32.cs: 
7792           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
7793             constructor creates images that can't be saved. Part of the fix
7794             for #76103
7795           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
7796           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
7797             bug fix for handling window state in forms properly)
7799 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
7801         * ThemeGtk.cs: Simplify ScrollBar drawing
7803 2006-01-18  Jackson Harper  <jackson@ximian.com>
7805         * Splitter.cs: Set the default dock style for the splitter control
7806         in the constructor.
7808 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
7810         * ThemeGtk.cs: Corrected StateType and ShadowType for
7811           gtk_paint_box
7813 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
7815         * Control.cs: Make use of Theme.DoubleBufferingSupported
7816         * ThemeGtk.cs:
7817           - Added drawing for flat style buttons
7818           - Added ScrollBar drawing
7820 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
7822         * ThemeClearlooks.cs: Removed some unneeded code.
7823         * ThemeGtk.cs: First part of ThemeGtk enhancements.
7825 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
7827         * LinkLabel.cs: We need to update the hover drawing when
7828           leaving the control as well.
7830 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
7832         * DataGrid.cs: Clicking on non empty areas in the columns
7833            area was giving an exception
7835 2006-01-17  Jackson Harper  <jackson@ximian.com>
7837         * ThemeWin32Classic.cs:
7838         * ListView.cs: Do not draw/clip the headers when the header style
7839         is None.
7841 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
7843         * DataGrid.cs: Fixes 77260
7844         
7845 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
7847         * DataGrid.cs: Clicking on a column on a empty grid was giving
7848           an exception
7850 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
7852         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
7853           or any keypress will crash the grid.
7855 2006-01-17  Mike Kestner  <mkestner@novell.com>
7857         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
7858         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
7859         invisible/previously-visible items.
7860         [Fixes #76909]
7862 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
7864         * ThemeClearlooks.cs:
7865         - Added CL_Draw_Button method; now other theme controls that are 
7866           not derived from button or do not have a button can draw buttons
7867           too
7868         - Updated ComboBox drawing
7869         - Beautified RadioButton drawing
7870         - Corrected drawing of bottom and left tabs
7871         - Beautified DateTimePicker and MonthCalendar
7872         - Added CPDrawButton and CPDrawRadioButton
7874 2006-01-16  Jackson Harper  <jackson@ximian.com>
7876         * ComboBox.cs: Set the initial value of the scrollbar to the
7877         current index. Reduce the numbers of refreshs and IndexOfs called.
7879 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
7881         * FileDialog.cs: When the file listview is focused hitting the
7882           backspace key moves the fileview to the parent directory
7884 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
7886         * Form.cs: 
7887           - Added RecreateHandle call when changing taskbar visibility to 
7888             trigger reparenting in Win32 driver (Fixes #75719)
7889           - If a window has minimize or maximize buttons, it cannot have
7890             a help button
7891         * XplatUIWin32.cs:
7892           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
7893             the toplevel form with FosterParent (A toolwindow not on the
7894             taskbar) (Fixes #75719)
7895           - Made FosterParent a toolwindow
7897 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
7899         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
7901 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
7903         * ToolTip.cs: If SetToolTip is called from a control and the mouse
7904           is currently over that control, make sure that tooltip_window.Text
7905           gets updated
7907 2006-01-13  Mike Kestner  <mkestner@novell.com>
7909         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
7911 2006-01-13  Jackson Harper  <jackson@ximian.com>
7913         * TreeView.cs: On MS GetNodeAt never actually factors in the X
7914         value passed.  Also redraw the selected node when we recieve
7915         focus, so tabbing between trees works correctly.
7917 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
7919         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
7920           ~/.gconf/%gconf-tree.xml, so use
7921           .gconf/desktop/gnome/interface/%gconf.xml
7923 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
7925         * TextControl.cs: Draw text in gray if control is disabled
7927 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
7929         * TreeView.cs: Draw the focus rectangle outside the highlight, to
7930           make sure it's always visible. Fixes #76680.
7932 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
7934         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
7936 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
7938         * PageSetupDialog.cs: Added.
7939         * PrintDialog.cs: Attributes.
7940         * PrintPreviewControl.cs: Updates.
7941         * PrintPreviewDialog.cs: Updates.
7942         
7943 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
7945         * Control.cs: Undid my selection check fix, since it's not needed
7946         * TextBoxBase.cs:
7947           - Now considering the presence of hscroll/vscroll when sizing
7948             vscroll/hscroll respectively. Fixed bug #77077
7949           - Added Left/Up/Down/Right to IsInputKey list to prevent
7950             ContainerControl from stealing them. This fixes what I broke
7951             with my last checkin.
7953 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
7955         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
7956           I finally understand how the property can be set without a setter :-)
7958 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
7960         * Application.cs:
7961           - Switched RunLoop to use static Message.Create to create a 
7962             Message object
7963           - Added PreProcessMessage call in runloop for keyboard events; this
7964             is part of the fix for #77219, I overlooked this originally in the
7965             MSDN doc for PreProcessMessage
7966         * Control.cs:
7967           - Removed call to PreProcessMessage from handling of keyboard 
7968             messages; it's supposed to be done in the message pump
7969           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
7970             per MSDN documentation.
7971           - IsInputChar: All chars are input chars by default; removed the 
7972             parent calling chain, MS does not document that
7973           - PreProcessMessage: If IsInputChar is true, we want to return false
7974             to allow dispatching of the message
7975           - When selecting the next control, now also check that we're not
7976             selecting ourselves again and therefore return a false positive.
7977         * TextBoxBase.cs:
7978           - Tried to match return values for IsInputKey and ProcessDialogKey
7979             to what MS returns; moved processing of our special keys outside
7980             ProcessDialogKey since MS does not seem to return true on those.
7981           - Moved code that previously was in ProcessDialogKey into new private
7982             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
7983           - Reworked handling of WM_CHAR to not have to duplicate code from
7984             Control.cs anymore, instead we simply call down to base.
7985            
7986 2006-01-12  Jackson Harper  <jackson@ximian.com>
7988         * ComboBox.cs: We always need to refresh the text area when
7989         EndUpdate is called. Fixes the combobox in the file dialog.
7990         * Control.cs: Don't create the creator_thread until the controls
7991         handle is created.  Also in InvokeRequired we check if the
7992         creator_thread is null. This gives the effect of InvokeRequired
7993         returning true if the controls handle is not created yet, and
7994         matches MS.
7996 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
7998         * XplatUI.cs:
7999           - Added StartLoop() driver method. This is used to allow drivers to
8000             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
8001             loop for a particular thread
8002           - Added EndLoop() driver method. This is called once the message
8003             pump for the thread is shut down
8004           - Added SupportsTransparency method to allow the driver to indicate
8005             opacity support for windows
8006         * Form.cs:
8007           - Removed TODO attribute, completed AllowTransparency property
8008           - Added documented logic to Opacity
8009         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
8010           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
8011           versions of CompatibleTextRendering
8012         * X11Structs.cs: Added opacity atom to our atom enumeration
8013         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
8014           of a form might be set before it's reparented by the WM, and we need
8015           the opacity value without calling up to Form)
8016         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
8017           SupportsTransparency() driver methods
8018         * Application.cs: Now calling StartLoop and EndLoop driver methods
8019         * XplatUIX11.cs:
8020           - Added opacity atom registration
8021           - Added StartLoop()/EndLoop() methods. They're empty right now but
8022             will need to get implemented when we switch to a per-thread queue
8023           - Implemented SupportsTransparency() method
8024           - Implemented SetWindowTransparency() method
8025           - Added support for setting the opacity value when a window is
8026             reparented (since the opacity needs to be set on the WM frame)
8027         * XplatUIOSX.cs, XplatUIWin32.cs:
8028           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
8030 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
8032         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
8034 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
8036         * FileDialog.cs: Added ToolTip for MWFFileView
8037         * MimeIcon.cs: Rewrote GnomeHandler.
8038           - Get currently used gnome icon theme from
8039             ($HOME)/.gconf/%gconf-tree.xml
8040           - Make use of inherited icon themes
8041           - Support SVG icon themes like Tango via librsvg
8043 2006-01-12  Miguel de Icaza  <miguel@novell.com>
8045         Revert's Jackson's revert which broke 2.0 builds.   Fix both
8046         builds. 
8047         
8048         * Application.cs: Move the use_compatible_text_rendering outside
8049         the NET_2_0 define.  If we ever need to use the
8050         use_compatible_text_rendering on the individual controls they will
8051         access the variable from the common shared code paths.
8053 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
8055         * XplatUI.cs:
8056           - Added more granular debug options
8057           - Added method to print both window text and id
8058           - Switched debug output to use new Window() debug method
8059           - Added IsEnabled() driver method
8060           - Added EnableWindow() driver method
8061         * Form.cs:
8062           - Removed end_modal; no longer needed, new loop handles termination
8063             via 'closing' variable
8064           - If form is modal, setting DialogResult will now initiate loop
8065             termination via 'closing' variable
8066           - Added support for is_enabled/WS_DISABLED to CreateParams
8067           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
8068             does all the work
8069           - Removed code that's now in RunLoop from ShowDialog()
8070           - Added various documented sanity checks to ShowDialog()
8071           - Added handling of WM_DESTROY message; we set 'closing' on getting
8072             the message to indicate the message pump to terminate
8073           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
8074             send by the Application.ExitThread method. (We send the message
8075             to destroy the window after all other events have been
8076             processed through the queue, instead of destroying the handle 
8077             directly)
8078           - Moved code from Close() method to WM_CLOSE handler; added logic
8079             to only send close-related events if the form is not displayed
8080             modal
8081         * Splitter.cs (..ctor): Fixed typo in resource name
8082         * Control.cs:
8083           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
8084             brush now
8085           - set_Cursor: Now only setting calling into XplatUI if the handle for
8086             the control is already created; this avoids implict handle creation
8087             or crashes if it's not created
8088           - set_Enabled: Now setting the enabled state via the new driver method
8089             instead of just tracking it
8090           - CreateParams: Added logic to set WS_DISABLED based on enabled state
8091           - CreateControl: Reordered event firing and method calls to more
8092             closely fire events in the order MS does. Now setting the
8093             enabled state in the driver when creating the control.
8094           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
8095             match MS order
8096         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
8097           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
8098         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
8099         * Hwnd.cs:
8100           - Added tracking of window enabled state (get_Enabled/set_Enabled)
8101           - Added EnabledHwnd property to easily allow a driver to find the
8102             handle of the first enabled window in the parent chain (this is
8103             used by drivers to pass up input events of disabled windows)
8104         * XplatUIDriver.cs: Added IsEnabled() method
8105         * Application.cs:
8106           - Removed crude and obsolete exiting tracking variable
8107           - Removed internal ModalRun(); replaced by RunLoop()
8108           - Implemented private CloseForms() method to allow closing all 
8109             windows owned by a particular (or all) threads
8110           - Exit() now properly closes all windows without forcing the message
8111             pump to quit
8112           - Removed obsolete InternalExit() method
8113           - Changed Run() methods to use new RunLoop() message pump
8114           - Implemented new RunLoop() method for both modal and non-modal forms
8115         * CommonDialog.cs:
8116           - get_CreateParams: Added setting of WS_DISABLED
8117           - Simplified ShowDialog(); now all the work is done in RunLoop(),
8118             invoked via Form.ShowDialog()
8119         * NativeWindow.cs: We don't remove the window from the collection when
8120           the handle is destroyed; there might still be messages for it in the
8121           queue (mainly the resulting WM_DESTROY); instead it will be removed
8122           when Control calls InvalidateHandle in the WM_DESTROY handler
8123         * XplatUIX11.cs:
8124           - CreateWindow: Added logic to handle the WS_DISABLED window style
8125           - EnableWindow: Implemented based on Hwnd.Enabled
8126           - GetMessage: Reset PostQuitState so the method can be called again
8127           - Implemented support for disabled windows (passing messages to the
8128             first enabled parent) in handling all input messages
8129           - Added optimizations for handling Expose events
8130           - Implemeted new driver method IsEnabled()
8131           - Now always resetting paint pending tracking vars when we start paint
8132           - Re-implemented UpdateWindow via just sending a WM_PAINT message
8133         * XplatUIOSX.cs: Added IsEnabled method stub
8134         * XplatUIWin32.cs: Implemented new IsEnabled() method
8136 2006-01-11  Jackson Harper  <jackson@ximian.com>
8138         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
8139         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
8140         variables a little.
8141         * ColorDialog.cs: Clear out the old form before adding the new
8142         panel.  
8144 2006-01-11  Jackson Harper  <jackson@ximian.com>
8146         * X11Dnd.cs: Make sure to add all the text formats when adding
8147         strings to the data object.
8148         * TreeNodeCollection.cs: When adding to a sorted tree we need to
8149         do some redrawing too.  Also change the UpdateNode to an
8150         UpdateBelow so the newly added node gets painted.
8151         
8152 2006-01-11  Miguel de Icaza  <miguel@novell.com>
8154         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
8155         LinkLabel.cs, PropertyGrid.cs: Implement the
8156         UseCompatibleTextRendering property for 2.x
8158         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
8160 2006-01-11  Jackson Harper  <jackson@ximian.com>
8162         * TreeView.cs: Use the property for setting the selected node so
8163         the correct events get raised.
8164         * TreeNode.cs: Update the tree when the fore/back colours of a
8165         node are set.
8167 2006-01-10  Jackson Harper  <jackson@ximian.com>
8169         * TreeView.cs: Allow setting SelectedNode to null.
8171 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
8173         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
8175 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
8177         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
8179 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
8181         * PrintDialog.cs: Added attributes and set default property values.
8183 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
8185         * PrintControllerWithStatusDialog.cs: 
8186         Added PrintControllerWithStatusDialog.
8188 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
8190         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
8191         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
8193 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
8195         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
8197 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
8199         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
8200         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
8202 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
8204         * MimeIcon.cs: Added internal class SVGUtil.
8206 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
8208         * FileDialog.cs: Don't crash if there are two files with the
8209           same name but different locations.
8211 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
8213         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
8214         dates across multiple month grids. Used to not highlight entire 
8215         month, but does now.
8216         
8217 2006-01-06  Jackson Harper  <jackson@ximian.com>
8219         * MonthCalendar.cs: Removed DoEvents call to prevent a running
8220         message loop. Change timer intervals to numbers that seem more
8221         natural.
8223 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
8225         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
8226           object for location info since screen object is now implemented.
8228 2006-01-05  Jackson Harper  <jackson@ximian.com>
8230         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
8231         * AsyncMethodResult.cs: We no longer use a WeakReference for the
8232         AsyncMethodResult, this is because we ALWAYS want the
8233         ManualResetEvent to get set.
8234         * Control.cs: When disposing use an async invoke to call shutdown
8235         code, so that thigns don't block on the finalizer thread.  Also
8236         check if we even have a message loop before trying to send
8237         messages, if we don't then don't bother sending messages.
8238         - No more weak references for async methods
8239         * XplatUIDriver.cs: No more weak references for async methods.
8241 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
8243         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
8244           returns two FontFamily with the same name
8246 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
8248         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
8249           drawing disabled text. Instead using the ColorGrayText color
8251 2006-01-04  Jackson Harper  <jackson@ximian.com>
8253         * TreeNode.cs: redraw the node when its image index is changed.
8255 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
8257         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
8258           time I checked there are no others like it.
8260 2006-01-04  Jackson Harper  <jackson@ximian.com>
8262         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
8263         this gives the behavoir I was looking for.
8264         * Control.cs: Special case Invoking EventHandlers, this matches MS
8265         and fixes part of bug #76326.
8267 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
8269         * ThemeClearlooks.cs, FileDialog.cs:
8270           - Reflect the latest Theme class changes
8271           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
8272             with DateTime
8273             
8274 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
8276         * Theme.cs: Cache UI resource images and resize them if needed
8278 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
8280         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
8281           is called. This fixes the crash in Nexxia when setting the font
8282           attributes in the chat. [However, RTF needs a look-over to make sure
8283           that all SelectionXXX methods handle the special case that selection
8284           is empty and therefore the change must be applied to all text starting
8285           at the cursor/selection start]
8287 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
8289         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
8290           XplatUIOSX.cs: Added SendMessage and PostMessage methods
8291         * X11Keyboard.cs: Switched to new way of calling PostMessage
8293 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
8295         * Theme.cs: Added theme interface for images to allow the theme to
8296           control what images are used for things like FileDialog, MessageBox
8297           icons, etc.
8298         * MessageBox.cs: Now uses the new Theme icon/image interfaces
8300 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
8302         * FileDialog.cs:
8303           - Removed some dead code
8304           - Opening a recently used file does work now
8305           - Small UI enhancements
8306           - Refactoring
8308 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
8310         * FileDialog.cs: Forgot too add __MonoCS__
8312 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
8314         * FileDialog.cs: We are able to read recently used files now let's
8315           go on and write them.
8317 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
8319         * FileDialog.cs: Breathe some life into "last open"/"recently used"
8320           button
8321         * MimeIcon.cs: Do a check for the top level media type also
8323 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
8325         * ThemeClearlooks.cs:
8326           - Added CPDrawStringDisabled
8327           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
8328             some chars if the text doesn't fit into text_rect
8329           - DrawListViewItem: If View = View.LargeIcon center the image;
8330             rewrote the drawing of ListViewItem.Text if View = 
8331             View.LargeIcon
8333 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
8335         * MimeIcon.cs: Use default KDE icon theme if there is no
8336           "48x48" directory for the current icon theme, fixes #77114
8337         * Mime.cs: Disable not working and actually not used code. 
8338         * ThemeWin32Classic.cs:
8339           - Replace "new SolidBrush" in GetControlBackBrush and
8340             GetControlForeBrush with ResPool.GetSolidBrush
8341           - Changed DrawListViewItem from private to protected virtual
8342         * FileDialog.cs:
8343           - Added form.MaximizeBox = true
8344           - Don't throw an exception if there is a broken symbolic link
8346 2005-12-23  Jackson Harper  <jackson@ximian.com>
8348         * TabControl.cs: Give the panels focus, keyboard navigation is
8349         fixed so this works correctly now.
8350         - We need these key events also.
8351         * ToolBar.cs: Remove some of the poor mans double buffering.
8352         
8353 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
8355         * ComboBox.cs: The internal TextBox now returns the focus.
8357 2005-12-23  Jackson Harper  <jackson@ximian.com>
8359         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
8361 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
8363         * Control.cs: Removed debug code
8364         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
8365           implicit children
8367 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
8369         * Control.cs: When creating the control, update the Z-order after
8370           all it's children are created, too. (Fixes nexxia not showing
8371           picturebox bug)
8373 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
8375         * Control.cs: Do not update the anchoring distances if layout is
8376           suspended, instead do it once layout is resumed
8378 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
8380         * Control.cs: 
8381           - After many hours of debugging, for both Jackson and
8382             myself, it turns out that it helps to set the parent of a control
8383             if you want to actually see it onscreen. In the spirit of that
8384             discovery, we're now setting the parent of the control and
8385             it's children when the control's handle is created. This fix
8386             will make Lutz Roeder's Reflector run happily. 
8387           - now just creating the handle instead of the whole control when
8388             getting a graphics context for the control.
8390 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
8392         * ScrollableControl.cs: When calculating the canvas, don't consider
8393           the scrollbar widths. Instead, predict if horizontal scrollbar
8394           will affect canvas when deciding on vertical display and vice versa.
8396 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
8398         * RichTextBox.cs: Set default RTF font for documents that don't
8399           have a font table (Fixes #77076)
8401 2005-12-22  Jackson Harper  <jackson@ximian.com>
8403         * TextBoxBase.cs: It's difficult to do, but you can have an empty
8404         clipboard. This prevents a NullRef in that case.
8405         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
8406         clipboard. PRIMARY is for the currently selected text only. (We
8407         should implement PRIMARY at some point.
8409 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
8411         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
8412           a Unicode function with a structure that was defined in Ansi way.
8413           This fixes #76942.
8415 2005-12-21  Jackson Harper  <jackson@ximian.com>
8417         * StatusBar.cs: Statusbar handles its fore/back colours on it's
8418         on. Because thats how it rolls. (and this avoids it using ambient
8419         colours).
8420         * ThemeWin32Classic.cs: Use the proper back color for filling.
8421         * Menu.cs: Use the system menu bar color for drawing menu
8422         bars. Using the window back color will bring ambient colours into
8423         the picture.
8425 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
8427         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
8428           Bitmaps were created and not disposed.
8430 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
8432         * Control.cs (CreateControl): Don't do anything if the control is
8433           already created, otherwise we'd fire the OnCreated event more than
8434           once
8436 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
8438         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
8439           will always match. Instead return -1. Fixes #76464.
8441 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
8443         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
8444           neither the beginning nor the end of the line (Fixes bug #76479)
8446 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
8448         * Control.cs:
8449           - ControlNativeWindow.ControlFromHandle(): Now handling situation
8450             where handle is invalid
8451           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
8452             instead of slower linear search
8453         * NativeWindow.cs: Don't remove the window from the hashtable until
8454           after the driver has destroyed it (since the driver might use
8455           Control.FromHandle to lookup the control object
8456         * Hwnd.cs: Added DestroyPending property to track if a window is 
8457           already destroyed as far as the driver is concerned and only hasn't
8458           yet notified the control
8459         * XplatUIX11.cs:
8460           - Activate(): Check if the window is still valid before using the 
8461             handle
8462           - Implemented DestroyChildWindow() method to mark child windows as
8463             destroyed when a window is destroyed. This prevents situations 
8464             where we might call an X method based on queued events for a
8465             window that already has been destroyed but we haven't yet pulled
8466             the destroy method from the queue.
8467           - Added a call to the new DestroyChildWindow() method to the drivers
8468             DestroyWindow code. Also now marking the destroyed window itself
8469             as pending
8471 2005-12-20  Jackson Harper  <jackson@ximian.com>
8473         * StatusBar.cs:
8474         * StatusBarPanel.cs: Don't calculate panel sizes on draw
8475         anymore. Just do them when needed, also track the rects of panels
8476         so that we can optimize refreshing more in the future.
8478 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
8480         * ColorDialog.cs: Fixed focus drawing in small color controls
8482 2005-12-19  Jackson Harper  <jackson@ximian.com>
8484         * InternalWindowManager.cs:
8485         * MdiWindowManager.cs: Cleanup some coordinate system changes so
8486         moving windows works properly.
8488 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
8490         * Control.cs: 
8491           - Removed call to InitLayout() from SetBoundsCore(); doc says
8492             it's only called when a control is added to a container
8493           - Split InitLayout logic, moved to separate UpdateDistances() method
8494             since we need to perform those calculations more often than just
8495             when adding the control to a container. (Needed to fix #77022)
8496           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
8497           - Reduced the OnBindingContextChanged events count, don't send them
8498             unless the control is created, we still aren't totally matching
8499             MS, but I can't quite figure out some of their rules
8501 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
8503         * ThemeClearlooks.cs: Corrected distance between ProgressBar
8504           stripes
8506 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
8508         * ThemeClearlooks.cs:
8509           - Updated ProgressBar drawing
8510           - Corrected drawing of ScrollBars and scroll buttons
8511           - Some temporary fixes for minor pixel artefacts
8513 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
8515         * Control.cs:
8516           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
8517             cause events to be sent in the same order as MS does.
8518           - Added ChangeParent() method to trigger various OnXXXChanged events
8519             that need to be fired when a parent changes (This is a reworking
8520             of the patch from r54254, with the X11 errors fixed)
8521           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
8522             since on MS we get OnLayoutChanged events when calling Clear()
8523           - Changed Enabled property to consider parent state as well, if a
8524             parent is not enabled, the control will not be either
8525           - Changed Parent property to simply call Controls.Add() since that
8526             now does all the work required, this way we avoid code duplication
8527           - Threw in a few OnBindingsContextChanged calls to try and match
8528             when MS sends them. We seem to send a few too many, though.
8529           - Added call to CreateControl when adding the control to a parent.
8530             We were never calling CreateControl. Still needs some work, in
8531             some places we treat HandleCreated and ControlCreated as equal, 
8532             which is wrong
8533           - Removed obsolete commented out code from UpdateZOrder()
8535 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
8537         * ThemeClearlooks.cs: Updated TrackBar drawing.
8539 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
8541         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
8543 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
8545         * FileDialog.cs: Add the Help button and the open readonly
8546           checkbox only if needed
8548 2005-12-16  Jackson Harper  <jackson@ximian.com>
8550         * Control.cs: Make sure we have an active menu before trying to
8551         process commands on it. Prevents menu-less forms from crashing
8552         when Alt is pressed.
8553         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
8554         Dieter Bremes.
8555         * RichTextBox.cs: Expand statement to help out gmcs and fix the
8556         2.0 build.
8558 2005-12-16  Jackson Harper  <jackson@ximian.com>
8560         * InternalWindowManager.cs: Don't translate tool windows screen
8561         coordinates. This fixes windows 'bouncing' around when being moved.
8563 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
8565         * TextBoxBase.cs:
8566           - MaxLength now treats 2^31-1 equal to unlimited length (this is
8567             not quite MS compatible, MS uses that number only for single line
8568             and 2^32-1 for multi-line, but I figure it won't hurt keeping
8569             the limit at 2GB)
8570           - Now enforcing the MaxLength limit when entering characters
8571           - Added argument to internal Paste() method to track if it's called
8572             from programatically or via keyboard, since keyboard driven pastes
8573             need to enforce max-length
8574           - Added logic to Paste to only paste as many chars as MaxLength 
8575             allows
8576         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
8577         * TextControl.cs:
8578           - Added Length property to return number of characters in document
8579           - Added private CharCount property which only tracks actual chars
8580             in the document (no linefeeds) and fires event when CharCount
8581             changes
8582           - Added tracking of character count to all methods that alter it
8583           - Added LengthChanged event to allow applications to subscribe
8584             to any changes to the document
8586 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
8588         * TextBox.cs: 
8589           - Removed local password_char field (moved to TextBoxBase)
8590           - Now setting the document's password var when password is
8591             set
8592         * TextBoxBase.cs:
8593           - Added password_char field (needed here so MultiLine can
8594             access it)
8595           - Added logic to MultiLine property setter to set the document's
8596             variable when password display is allowed
8597           - Removed debug code and made some debug code conditional
8598         * TextControl.cs:
8599           - Added RecalculatePasswordLine() method to handle special password
8600             char only lines
8601           - Added PasswordChar property, also added related tracking vars
8602           - Draw() method now uses local text var for grabbing text to draw,
8603             this var is set to line.text unless we're doing password display,
8604             then it is set to the pre-generated all-password-chars line
8605           - Added calling RecalculatePasswordLine() method for password lines
8607 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
8609         * Hwnd.cs: 
8610           - Added Reparented property to allow tracking of Window Manager
8611             reparenting actions (which affect X/Y calculations of toplevel 
8612             windows)
8613           - Made ToString() print window handles in hex
8614         * XplatUIX11.cs:
8615           - AddConfigureNotify(): Now uses reparented state off Hwnd to
8616             determine if X/Y needs offsetting
8617           - AddConfigureNotify(): Fixed offset calculations
8618           - Now adds ReparentNotify messages into the queue
8619           - Now processes ReparentNotify messages and causes a 
8620             WM_WINDOWPOSCHANGED message to be sent upstream if a window
8621             is reparented (as most likely it's X/Y coordinates are changed
8622             due to that)
8624 2005-12-14  Jackson Harper  <jackson@ximian.com>
8626         * XplatUIX11.cs: Tool windows still need to respek focus.
8628 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
8630         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
8631           have a working release
8633 2005-12-13  Jackson Harper  <jackson@ximian.com>
8635         * Form.cs: Update styles after setting the border style regardless
8636         of whether or not the window is using a window manager.
8638 2005-12-13  Jackson Harper  <jackson@ximian.com>
8640         * Form.cs: We now hook into an internal window manager instead of just an
8641         MDI subsystem, this is so we can have properly behaving tool windows.
8642         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
8643         * InternalWindowManager.cs: New internal class that acts as a
8644         window manager for tool windows and as a base for mdi windows.
8645         * MdiWindowManager.cs: New class that acts as a window manager for
8646         mdi windows.
8648 2005-12-12  Jackson Harper  <jackson@ximian.com>
8650         * Control.cs: Updates so we match behavoir for for implicit
8651         controls. Fixes explosions in MDI.
8653 2005-12-12  Jackson Harper  <jackson@ximian.com>
8655         * Control.cs: Implement Invalidate (Region).
8657 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
8659         * Control.cs: 
8660           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
8661             the same events as MS does. MS fires events for each property 
8662             except, for unknown reasons, Cursor, when the control is reparented. 
8663             I can't seem to totally match add/remove since MS also fires some 
8664             VisibleChanged events, which makes no sense. Consolidated the
8665             parenting code into a separate method so it can be called from
8666             both Add and Remove. set_Parent no longer needs any special logic
8667             as it calls the parent's add method which implicitly fires
8668             all events
8669           - Removed some obsolete code and debug output
8670           - Enabled state is inherited from parents, if this is enabled
8672 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
8674         * Form.cs: Removed commented out code
8676 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
8678         * Control.cs:
8679           - Added internal version of Invoke, with additional argument 
8680             indicating if we're calling it from a Dispose() handler. That
8681             way we can avoid BeginInvoke throwing an exception if we're
8682             calling for an already destroyed window.
8683           - Added a dispose argument to BeginInvokeInternal, and made the
8684             check if a valid window handle chain exists conditional on
8685             it not being a dispose call
8686           - Removed code in DestroyHandle to destroy our children. Since we
8687             now handle the WM_DESTROY message we will catch all our children
8688             being destroyed.
8689           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
8690         * Form.cs:
8691           - Added a field to track the application context of the form.
8692           - No need to set closing variable as response to WM_CLOSE, instead
8693             we destroy the window. We also call PostQuitMessage if the form
8694             has an application context (which makes it the main app form,
8695             which, when closed terminates the app)
8696         * XplatUI.cs:
8697           - Dropped Exit() method, it's naming was confusing
8698           - Added PostQuitMessage() which causes GetMessage to return false
8699             once the message queue is empty
8700         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
8701           PostQuitMessage()
8702         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
8703           no longer a valid XplatUI method, but left it in since it's used
8704           internally. Added empty PostQuitMessage() method.
8705         * MenuAPI.cs: Replaced call to Exit() with call to
8706           PostQuitMessage, even though this is probably no longer needed.
8707         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
8708         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
8709         * Application.cs:
8710           - Replaced call to XplatUI.Exit() with PostQuitMessage()
8711           - Removed old debug code that would call XplatUI for exception
8712             display, enabled standard exception handling (Still not enabled
8713             though, until NativeWindow's ExternalExceptionHandler define
8714             is removed
8715         * NativeWindow.cs:
8716           - Added internal method to allow control to update NativeWindow
8717             after a window has been destroyed
8718           - Added handling of already destroyed windows when calling i
8719             DestroyWindow
8720           - Added removal of handle from list on ReleaseHandle
8721         * XplatUIX11.cs:
8722           - Dropped GetMessageResult var and related code
8723           - Added PostQuitState to field to track if PostQuitMessage has been
8724             called
8725           - Dropped Exit() method
8726           - Added PostQuitMessage() method
8727           - GetMessage now will return false if PostQuitState is set and no
8728             more messages are in the queue.
8729           - Expose handler will no longer generate WM_PAINT messages if we are
8730             in PostQuitState since it's very likely any windows have already
8731             been destroyed, and since Hwnd won't get updated until we have
8732             processed the DestroyNotify we'd be causing X errors.
8733         
8734 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
8736         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
8737           Thanks to Mike for pointing out the err of my ways.
8739 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
8741         * Control.cs(PreProcessMessage): Moved menu handling back, but
8742           after all other key handling, to match MS (who handles Menu in
8743           DefWndProc)
8744         * Menu.cs (WndProc): Removed my brainfart
8746 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
8748         * Control.cs(PreProcessMessage): Removed special menu handling 
8749         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
8751 2005-12-07  Mike Kestner  <mkestner@novell.com>
8753         * Control.cs : special case SYSKEYUP so that we can adjust keynav
8754         state according in tracker.
8755         * Menu.cs : promote tracker field to base class and provide a tracker
8756         lookup capability.  Add/Remove shortcuts dynamically if the top menu
8757         has a tracker. Unparent items that are removed from the collection.
8758         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
8759         * Theme*.cs: add always_show_hotkeys field to support configurability
8760         of mnemonic display.  win32 doesn't show mnemonics until Alt is
8761         pressed.
8763 2005-12-07  Jackson Harper  <jackson@ximian.com>
8765         * MdiChildContext.cs: Use Control.ResetCursor.
8766         * Control.cs: ResetCursor needs to set the property so that the
8767         correct XplatUI call gets made.
8769 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
8771         * Control.cs: More fixes to make our key events match MS. We
8772           were not setting the modifier state on KeyData, and we were
8773           not generating any events when Alt was pressed with a key
8774           since handling of WM_SYSxxx was missing for the OnKey methods.
8776 2005-12-07  Jackson Harper  <jackson@ximian.com>
8778         * MdiChildContext.cs: reenable the sizing code.
8779         - When the mouse leaves a window reset its cursor.
8781 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
8783         * ThemeClearlooks.cs: Reflect latest Hwnd changes
8785 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
8787         * Hwnd.cs: Now using the theme 3d bordersize to calculate
8788           widths of Fixed3D borders
8790 2005-12-07  Jackson Harper  <jackson@ximian.com>
8792         * MdiClient.cs: Fix warnings. Earn Mike's love.
8794 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
8796         * ThemeClearlooks.cs:
8797           - Adjusted mouse over button color
8798           - Added first parts of CheckBox drawing
8799           - Added correct color for selected text background
8800           - Fixed ComboBox drawing
8801           - Added CPDrawBorder3D and CPDrawBorder
8803 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
8805         * XplatUIX11.cs: Added call to XBell for AudibleAlert
8807 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
8809         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
8810           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
8811           alert users via sound. We could add an enum arg with different
8812           types of alerts in the future
8814 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
8816         * Control.cs: Fix behaviour problems pointed out by Mike
8818 2005-12-05  Mike Kestner  <mkestner@novell.com>
8820         * StatusBarPanel.cs: add Invalidate method and hook it into all the
8821         prop setters.  Calls parent.Refresh for now, but could be maybe be
8822         optimized with an internal method on StatusBar at some point.
8823         [Fixes #76513]
8825 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
8827         * RichTextBox.cs: Implemented get_SelectionColor
8829 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
8831         * ThemeClearlooks.cs:
8832           - Removed dead code
8833           - Draw black button border only if button is Form.AcceptButton
8834           - Draw correct button color for pressed RadioButton if the mouse 
8835             has entered the button
8836           - Updated ProgressBar drawing!
8837           - Updated CPDrawSizeGrip drawing
8838           - Updated StatusBarPanel drawing
8840 2005-12-05  Mike Kestner  <mkestner@novell.com>
8842         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
8843         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
8845 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
8847         * ThemeClearlooks.cs: Initial check-in, activate with
8848           export MONO_THEME=clearlooks
8849         * ThemeEngine.cs: Added ThemeClearlooks
8851 2005-12-03  Mike Kestner  <mkestner@novell.com>
8853         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
8854         [Fixes #76897]
8856 2005-12-02  Jackson Harper  <jackson@ximian.com>
8858         * Form.cs: If the child form has no menu the default main menu is
8859         used as the active menu.
8861 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
8863         * ListBox.cs: Check if any items exist before trying to resolve 
8864           coordinates into items
8866 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
8868         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
8869           as the second color for the background hatch
8871 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
8873         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
8874         * RichTextBox.cs: FormatText position arguments are 1-based, now making
8875           sure that what we pass to FormatText is always 1-based. Fixes #76885
8877 2005-11-29  Miguel de Icaza  <miguel@novell.com>
8879         * NumericUpDown.cs (EndInit): When we are done initializing,
8880         reflect any updates on the UI.
8882 2005-12-02  Jackson Harper  <jackson@ximian.com>
8884         * ImplicitHScrollBar.cs:
8885         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
8886         their container controls.
8887         * TreeView.cs: Use the new implicit scrollbars.
8889 2005-12-02  Jackson Harper  <jackson@ximian.com>
8891         * TreeView.cs: Make top_node internal so the TreeNodeCollections
8892         can play with it.
8893         * TreeNodeCollection.cs: If we remove the topnode we need to
8894         update topnode to the next node in line.
8895         - When clearing nodes go through the same process as removing
8896         them, so they get depareneted and checked if they are top node.
8898 2005-12-01  Jackson Harper  <jackson@ximian.com>
8900         * TreeView.cs: When imagelists are used the image area is
8901         selectable as well as the text.
8902         - If there are no selected nodes select the first one.
8903         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
8904         so don't do it more then we need to.
8906 2005-12-01  Jackson Harper  <jackson@ximian.com>
8908         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
8909         that arrows can be scaled.
8911 2005-12-01  Jackson Harper  <jackson@ximian.com>
8913         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
8914         fail. Patch by Dieter Bremes
8916 2005-11-30  Jackson Harper  <jackson@ximian.com>
8918         * Form.cs: Property is 2.0 only
8919         * PrintDialog.cs: Signature fix.
8921 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
8923         * TextControl.cs: 
8924           - No longer artificially moves text 2 pixels down (now that we have
8925             borders this is no longer needed)
8926           - Added calcs for left, hanging and right indent
8928 2005-11-23  Mike Kestner  <mkestner@novell.com>
8930         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
8932 2005-11-30  Jackson Harper  <jackson@ximian.com>
8934         * MdiChildContext.cs: Set the cloned menus forms, as these don't
8935         get cloned as part of CloneMenu ().
8936         * Menu.cs: Make sure the parent of the items get set correctly
8937         when they are added.  And the owners are notified of the changes.
8938         * Form.cs: Create an ActiveMenu property, so that when MDI is used
8939         we can change the menu being displayed/handled by the form without
8940         changing the menu assosciated with the form.
8941         - Don't let Mdi children draw/handle menus.
8942         
8943 2005-11-30  Jackson Harper  <jackson@ximian.com>
8945         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
8946         a MenuChanged event. Just to make the API a little more
8947         consistent.
8948         * MainMenu.cs:
8949         * MenuItem.cs: Use the new OnMenuChanged
8950         * MdiChildContext.cs: Handle menu merging.
8951         * Form.cs: Implement MergedMenu.
8952         
8953 2005-11-30  Jackson Harper  <jackson@ximian.com>
8955         * Menu.cs: We were misusing Add. Add goes behind the specified
8956         index according to the docs, and does not replace the specified
8957         index. So I added an Insert method.
8959 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
8961         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
8962           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
8963           is for Jackson
8964         * RichTextBox.cs: Added calls to base for DnD events
8966 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
8968         * TextControl.cs:
8969           - Fixed drag-selection related crash; style fixes
8970           - Implemented undo class
8971             o Implemented method to capture document state for specified
8972               range in document tree
8973             o Implemented method to restore captured document state
8974             o Implemented cursor tracking
8975             o Implemented basic undo stack
8976           - Added undo cursor tracking to methods altering cursor location
8977           - Added undo tracking to selection deletion (still missing
8978             other text-altering hookups)
8979         * RichTextBox.cs:
8980           - Added SelectionLength property
8981           - Implemented CanPaste()
8982           - Implemented Paste()
8983           - Added missing protected methods
8984           - Fixed RTF->Document conversion; now uses font index 0 and color 
8985             index 0 as the default font for the parsed text
8986           - Fixed RTF<->Document font size translation
8987           - Fixed RTF generation, now properly handles cross-tag boundaries
8988             for single line selection
8989           - No longer always appends blank line to generated RTF
8990           - Removed TODOs
8991           - Added missing attributes
8992           - Hooked up undo-related methods
8993         * TextBoxBase.cs:
8994           - Implemented Copy()
8995           - Implemented Paste()
8996           - Implemented Cut()
8997           - Fixed caret mis-behaviour on backspace across line-boundaries
8999 2005-11-29  Jackson Harper  <jackson@ximian.com>
9001         * MdiClient.cs: Add a method for activating mdi children. Very
9002         basic right now. I imagine someday it might need more girth.
9003         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
9004         children windows names are added to the menu item.
9005         * ThemeWin32Classic.cs: Draw the arrow if the item is an
9006         mdilist. This happens regardless of whether or not there are any
9007         mdi windows to see in the list, and according to my tests happens
9008         before the items are even added. Also happens if there isn't even
9009         an mdi client to get windows from.
9011 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
9013         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
9014         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
9016 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
9018         * DataGridTableStyle.cs:
9019           - Create always the styles for the missing columns even if they are
9020             provided by the user (not default table style)
9021         * DataGrid.cs:
9022           - Fixes bug 76770
9023           - Fixes SetDataBinding (always re-attach source)
9024           - Fixes SetNewDataSource (only clear styles if they are not for 
9025             this source)
9026          -  Expands OnTableStylesCollectionChanged to handle style refresh 
9027             and remove properly
9029 2005-11-29  Jackson Harper  <jackson@ximian.com>
9031         * FileDialog.cs: Implement missing bits, remove some dead
9032         code.
9033         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
9034         creation of the panel so that the options set on the dialog are
9035         seen when the panel is created.
9036         * TreeView.cs: raise a click when items are clicked.
9037         
9038 2005-11-29  Jackson Harper  <jackson@ximian.com>
9040         * MdiClient.cs: Pass some signature methods through to base.
9042 2005-11-28  Jackson Harper  <jackson@ximian.com>
9044         * ListView.cs: Raise the click event when items are clicked.
9046 2005-11-28  Jackson Harper  <jackson@ximian.com>
9048         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
9049         a nullref.
9051 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
9053         * ThemeNice.cs: - Removed 1 pixel bitmaps
9054           - Use SmoothingMode.AntiAlias where it makes sense
9055             (ScrollButton arrow for example)
9056           - Enhanced Button focus drawing
9057           - Fixed ComboBox drawing (no artefacts anymore, focus
9058             rectangle is back again, reduced size of ComboButton, etc.)
9059           - Fixed RadioButton focus drawing for Appearence.Button
9060           - Slight ScrollButton redesign
9061           - Some LinearGradientBrush size fixes
9062           - GroupBoxes have now rounded edges
9063           - Fixed StatusBar drawing
9065 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
9067         * ThemeNice.cs: - Remove dead code
9068           - use correct background colors for menus, etc.
9069           - Fake pixel drawing with 1 pixel bitmaps
9071 2005-11-24  Jackson Harper  <jackson@ximian.com>
9073         * MdiClient.cs: Size the scrollbars when resizing the window.
9074         - Resize the maximized windows when the client is resized
9075         * Form.cs: Make the child context available
9076         
9077 2005-11-23  Jackson Harper  <jackson@ximian.com>
9079         * MdiChildContext.cs: Don't size windows if they are maximized.
9081 2005-11-23  Mike Kestner  <mkestner@novell.com>
9083         * ContextMenu.cs: use MenuTracker.
9084         * Control.cs: remove menu handle usage.
9085         * Form.cs: remove menu handle usage.
9086         * Hwnd.cs: remove menu handle usage.
9087         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
9088         motion and clicks to the new Tracker handlers.
9089         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
9090         and handle usage.
9091         * MenuAPI.cs: refactored to combine popup and menubar event handling.
9092         Killed the MENU and MENUITEM data types and associated collections
9093         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
9094         MenuTracker class that exposes the leftovers from the old MenuAPI
9095         static methods. Restructured Capture handling so that only one grab is
9096         done for the entire menu hierarchy instead of handing off grabs to
9097         submenus. Tracker now has an invisible control to Capture when active.
9098         * MenuItem.cs: add sizing accessors, kill Create
9099         and handle usage.
9100         * Theme.cs: remove menu handle and MENU(ITEM) usage.
9101         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
9102         MENU(ITEM). remove menu handle usage, use Menu directly.
9103         * XplatUIDriver.cs: remove menu handle usage.
9104         * XplatUIOSX.cs: remove menu handle usage.
9105         * XplatUIWin32.cs: remove menu handle usage.
9106         * XplatUIX11.cs: remove menu handle usage.
9108 2005-11-22  Jackson Harper  <jackson@ximian.com>
9110         * Hwnd.cs: Don't compute the menu size for
9111         DefaultClientRectangle.
9112         - Reenable menu sizes being computed for GetClienRectangle.
9113         * Form.cs: Remove comment of trechery
9114         
9115 2005-11-22  Jackson Harper  <jackson@ximian.com>
9117         * Hwnd.cs: The adjustments for the menu bar are made when it is
9118         attached to the form.
9120 2005-11-19  Jackson Harper  <jackson@ximian.com>
9122         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
9123         (just like on windows).
9125 2005-11-19  Jackson Harper  <jackson@ximian.com>
9127         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
9128         use real buttons anymore because they are in non client area. The
9129         one TODO here is that I need to somehow invalidate a section of
9130         the non client area.
9132 2005-11-18  Jackson Harper  <jackson@ximian.com>
9134         * Control.cs: Put the enum check back in now that MDI doesnt have
9135         to use this to set border styles.
9136         * Form.cs: Only set mdi child windows borders if the handle has
9137         been created.
9138         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
9139         this directly on to the driver.
9140         - Get the move start position before adjusting for the titlebar
9141         height, this fixes the windows "skipping" when they are first
9142         moved.
9144 2005-11-18  Jackson Harper  <jackson@ximian.com>
9146         * XplatUIX11.cs: Just compute the mdi borders separately as they
9147         don't totally match up with normal form borders.
9149 2005-11-18  Jackson Harper  <jackson@ximian.com>
9151         * Control.cs: Set WS_ styles for borders, so that the driver does
9152         not have to retrieve the control instance to figure out what kind
9153         of borders it should have.
9154         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
9155         driver can know its an mdi child easily.
9156         * XplatUIX11.cs: Get the border styles and whether the window is
9157         MDI from the Styles and ExStyles params instead of having to get a
9158         control. This prevents a chicken and egg problem.       
9160 2005-11-18  Jackson Harper  <jackson@ximian.com>
9162         * MdiClient.cs: Fix typo so scrollbars show up correctly.
9164 2005-11-18  Jackson Harper  <jackson@ximian.com>
9166         * MdiClient.cs: Calculate when to add and remove scrollbars
9167         correctly.
9168         * MdiChildContext.cs: Adjust the y position to take the titlebar
9169         into account.
9170         - No height for FormBorderStyle.None
9172 2005-11-18  Jackson Harper  <jackson@ximian.com>
9174         * Control.cs: Allow non enum values to be used for
9175         InternalBorderStyle.  MDI does this to set a special border style.
9176         - New utility methods for converting points to/from client coords
9177         - Add the newly created control to the Controls collection before
9178         updating its style. This way UpdateStyle can walk the control
9179         heirarchy to find the control if needed.
9180         so I don't need to create a new Point object all the time.
9181         * Form.cs: Let MDI windows handle their border styles.
9182         - Set styles on MDI windows so the correct title style is derived.
9183         * MdiChildContext.cs: Move all the painting and window handling
9184         into the non client area.
9185         - Use correct sizing and put correct buttons on frames based on
9186         the FormBorderStyle.
9187         - Notify the mdi client about scrolling
9188         - Need to handle the buttons ourselves now, because they are all
9189         in non client areas and we can't add controls there.
9190         * MdiClient.cs: Halfway to scrolling, this implementation is
9191         somewhat broken though, we need to check to make sure other
9192         windows aren't causing scrolling before removing the bars. Also
9193         the bars need to be drawn on top, maybe I can switch implicit
9194         controls to be on top.
9195         * Hwnd.cs: caption_height and tool_caption_height are now
9196         properties of an hwnd, this way they can be set by the driver
9197         based on the type of window they are.  In X11 the window manager
9198         handles the decorations so caption_height is zero unless its an
9199         MDI window.
9200         - Add 3 pixel borders for MDI windows (0xFFFF).
9201         - Get rid of some code duplication, have DefaultClientRectanle
9202         just call GetClientRectangle.
9203         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
9204         Hwnd now.
9205         - Set border styles differently for mdi windows.
9206         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
9207         Hwnd now.
9208         
9209 2005-11-15  Mike Kestner  <mkestner@novell.com>
9211         * Menu.cs: when adding an item to the collection, if item is already 
9212         parented, remove it from the parent.
9214 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
9216         * X11DesktopColors.cs: Added KDE support
9218 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
9220         * XplatUIWin32.cs: 
9221           - Clipboard methods now can translate Rtf format
9222           - No longer removes clipboard contents whenever a new format is added
9223             to allow placing multiple formats on the clipboard
9224         * Clipboard.cs: Clipboard now supports getting a IDataObject and
9225           will place all formats contained in it onto the clipboard. Also
9226           now cleans the clipboard before placing a new object onto it
9227         * RichTextBox.cs:
9228           - Implemented set_Rtf
9229           - Implemented set_SelectedRtf
9230           - Created InsertRTFFromStream() method to allow single code base
9231             for all properties and methods that insert RTF into document
9232           - Removed debug output
9233         * TextControl.cs:
9234           - Fixed Delete(int) to fix up line numbers
9235           - Fixed ReplaceSelection to combine start and end line
9236           - Fixed serious DeleteChars bug that would leave the document tree
9237             broken
9238           - Improved DumpTree with several logic checks to detect broken
9239             document trees
9240           - Removed debug lines
9241           - Fixed Caret.WordForward/WordBack moving code, now always also 
9242             updates caret.tag (fixes crash when word-selecting across tag
9243             boundaries via keyboard)
9244           - Added Insert() method for inserting multiline text into documents
9245           - Fixed DeleteChars() calculation errors that would cause a broken
9246             tag chain with multiple tag lines
9247           - DeleteChars() no longer crashes on multi-tag lines if not all tags
9248           - Split() no longer moves caret if split is at caret location
9249           - ReplaceSelection() now updates the cursor and re-displays it
9250           - ReplaceSelection() now uses new Insert() method to avoid code
9251             duplication
9252           - FormatText() can now handle formatting partial lines
9253         * TextBoxBase.cs:
9254           - Append now uses new TextControl.Insert() method (this avoids 
9255             duplicate code)
9256           - Implemented Ctrl-X (Cut) (
9257           - Implemented Ctrl-C (Copy)
9258           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
9259             regeneration when pasting text; roundtripping Copy&Paste within
9260             edit control still fails due to some calculation bugs in GenerateRTF)
9261           - The Delete key will now remove the current selection if it is visible
9262         * TextBox.cs: Removed debug lines
9263         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
9264           driver to be initialized and can't therefore be done via a static ctor)
9266 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
9268         * TextControl.cs: Added backend code for finding char arrays and strings
9269         * TextBoxBase.cs:
9270           - Added mouse wheel scroll support
9271           - Added support for VScroll and HScroll events
9272         * RichTextBox.cs:
9273           - Implemented all seven Find() variants
9274           - Implemented GetCharFromPosition()
9275           - Implemented GetCharIndexFromPosition()
9276           - Implemented GetLineFromIndex()
9277           - Implemented GetPositionFromCharIndex();
9278           - Implemented SaveFile for PlainText and UnicodeText
9279           - Fixed set_Font, now setting a new font applies that font to
9280             the whole document
9281           - Implemented generic Document to RTF converter
9282           - Implemented SaveFile for RichText format (still missing unicode
9283             conversion for non-ansi chars)
9284           - Implemented get_Rtf
9285           - Implemented get_SelectedRtf
9287 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
9289         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
9290           to allow any captures to be released before triggering OnClick. This
9291           way a click handler may capture the mouse without interference.
9292         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
9293           This way we send them even though X may not allow a grab (if the window
9294           isn't visible, for example)
9296 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
9298         * DataGridViewRowEventArgs.cs: DataGridView implementation
9299         * DataGridViewElement.cs: DataGridView implementation
9300         * DataGridViewComboBoxCell.cs: DataGridView implementation
9301         * DataGridViewDataErrorContexts.cs: DataGridView implementation
9302         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
9303         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
9304         * ImageLayout.cs: DataGridView implementation
9305         * DataGridViewComboBoxColumn.cs: DataGridView implementation
9306         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
9307         * DataGridViewSelectionMode.cs: DataGridView implementation
9308         * IDataGridViewEditingControl.cs: DataGridView implementation
9309         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
9310         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
9311         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
9312         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
9313         * DataGridViewColumnSortMode.cs: DataGridView implementation
9314         * DataGridView.cs: DataGridView implementation
9315         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
9316         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
9317         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
9318         * Padding.cs: DataGridView implementation
9319         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
9320         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
9321         * DataGridViewRowEventHandler.cs: DataGridView implementation
9322         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
9323         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
9324         * DataGridViewButtonCell.cs: DataGridView implementation
9325         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
9326         * DataGridViewEditMode.cs: DataGridView implementation
9327         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
9328         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
9329         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
9330         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
9331         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
9332         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
9333         * DataGridViewCellEventHandler.cs: DataGridView implementation
9334         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
9335         * DataGridViewCellStyleConverter.cs: DataGridView implementation
9336         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
9337         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
9338         * DataGridViewColumnEventArgs.cs: DataGridView implementation
9339         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
9340         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
9341         * QuestionEventArgs.cs: DataGridView implementation
9342         * IDataGridViewEditingCell.cs: DataGridView implementation
9343         * DataGridViewTriState.cs: DataGridView implementation
9344         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
9345         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
9346         * DataGridViewColumnCollection.cs: DataGridView implementation
9347         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
9348         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
9349         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
9350         * DataGridViewColumn.cs: DataGridView implementation
9351         * DataGridViewCellBorderStyle.cs: DataGridView implementation
9352         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
9353         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
9354         * DataGridViewRow.cs: DataGridView implementation
9355         * DataGridViewImageCellLayout.cs: DataGridView implementation
9356         * DataGridViewImageCell.cs: DataGridView implementation
9357         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
9358         * DataGridViewCheckBoxCell.cs: DataGridView implementation
9359         * DataGridViewHeaderCell.cs: DataGridView implementation
9360         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
9361         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
9362         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
9363         * DataGridViewTextBoxColumn.cs: DataGridView implementation
9364         * QuestionEventHandler.cs: DataGridView implementation
9365         * DataGridViewCellStyleScopes.cs: DataGridView implementation
9366         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
9367         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
9368         * DataGridViewCell.cs: DataGridView implementation
9369         * DataGridViewCellEventArgs.cs: DataGridView implementation
9370         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
9371         * DataGridViewCellStyle.cs: DataGridView implementation
9372         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
9373         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
9374         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
9375         * TextFormatFlags.cs: DataGridView implementation
9376         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
9377         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
9378         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
9379         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
9380         * DataGridViewButtonColumn.cs: DataGridView implementation
9381         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
9382         * HandledMouseEventArgs.cs: DataGridView implementation
9383         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
9384         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
9385         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
9386         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
9387         * DataGridViewRowCollection.cs: DataGridView implementation
9388         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
9389         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
9390         * DataGridViewHitTestType.cs: DataGridView implementation
9391         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
9392         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
9393         * DataGridViewColumnEventHandler.cs: DataGridView implementation
9394         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
9395         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
9396         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
9397         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
9398         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
9399         * DataGridViewContentAlignment.cs: DataGridView implementation
9400         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
9401         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
9402         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
9403         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
9404         * DataGridViewPaintParts.cs: DataGridView implementation
9405         * DataGridViewCellCollection.cs: DataGridView implementation
9406         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
9407         * DataGridViewImageColumn.cs: DataGridView implementation
9408         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
9409         * DataGridViewElementStates.cs: DataGridView implementation
9410         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
9411         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
9412         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
9413         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
9414         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
9415         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
9416         * DataGridViewRowHeaderCell.cs: DataGridView implementation
9417         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
9418         * DataGridViewTextBoxCell.cs: DataGridView implementation
9419         * DataGridViewBand.cs: DataGridView implementation
9420         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
9421         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
9422         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
9423         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
9424         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
9425         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
9426         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
9427         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
9428         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
9429         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
9430         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
9432 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
9434         * ThemeWin32Classic.cs: 
9435           - Draw the outside focus rectangle around buttons
9436           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
9437             doesn't use end caps for every dash of a line anymore. This
9438             workaround ignores the forecolor.
9440 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
9442         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
9443           endian safe.
9445 2005-11-07  Jackson Harper  <jackson@ximian.com>
9447         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
9449 2005-11-07  Jackson Harper  <jackson@ximian.com>
9451         * ScrollableControl.cs: Calculate the maximum and change vars
9452         (more) correctly so that scrollbars appear as a sensible size.
9454 2005-11-04  Jackson Harper  <jackson@ximian.com>
9456         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
9457         collection.
9458         * TreeView.cs: When the tree is sorted null out the top_node so
9459         that it is recalculated.
9460         - Use dotted lines instead of dashed lines to match MS better.
9462 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
9464         * ListView.cs: 
9465           - Implements key search for items. Useful when browsing files with FileDialog
9466           - When changing view mode or when clear the items reset scrollbar positions
9468 2005-11-04  Jackson Harper  <jackson@ximian.com>
9470         * CurrencyManager.cs: Implement the MetaDataChanged event, the
9471         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
9472         as to what the method may do as there is no real way of creating a
9473         derived CurrencyManager and calling the method. 
9475 2005-11-03  Jackson Harper  <jackson@ximian.com>
9477         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
9478         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
9479         method which seems to just be used internally to refresh the tabs.
9481 2005-11-03  Jackson Harper  <jackson@ximian.com>
9483         * TabControl.cs: Implement the remove method. Fix some broken
9484         comments.
9486 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
9488         * DateTimePicker.cs:
9489           - Added missing DateTimePickerAccessibleObject class
9490           - Added missing events
9491           - Added OnFontChanged method
9492         * Form.cs: Added missing attributes
9493         * TreeView.cs: Added missing attributes
9495 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
9497         * GridItemCollection.cs: Fix signatures
9499 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
9501         * XplatUI.cs: Updated build rev/date
9502         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
9503           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
9504         * Application.cs: Trigger context-specific ExitThread events
9506 2005-11-03  Jackson Harper  <jackson@ximian.com>
9508         * Menu.cs:
9509         * MainMenu.cs:
9510         * GridTableStylesCollection.cs:
9511         * Timer.cs:
9512         * TabPage.cs:
9513         * HelpProvider.cs:
9514         * StatusBar.cs:
9515         * MonthCalendar.cs: Signature fixes
9517 2005-11-03  Jackson Harper  <jackson@ximian.com>
9519         * TreeNodeCollection.cs: Remove should not be virtual.
9520         * TreeView.cs: Implement the last of the missing methods.
9522 2005-11-03  Jackson Harper  <jackson@ximian.com>
9524         * TreeNodeConverter.cs: Implement to get off my class-status back.
9526 2005-11-03  Jackson Harper  <jackson@ximian.com>
9528         * TreeView.cs: Hookup the bits for drag and drop.
9529         * TreeNode.cs: Don't cache the tree_view or index anymore, now
9530         that nodes can be moved from tree to tree easily this just causes
9531         all sorts of problems.
9532         * TreeNodeCollection: Don't need to give treenodes an index and
9533         treeview anymore when they are added, these are computed on the
9534         fly. Also make sure to remove a node before its added.
9536 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
9538         * TextControl.cs:
9539           - Added CaretSelection enum
9540           - Added comparison methods to Marker struct, makes selection code
9541             more readable
9542           - Added SelectionStart and SelectionEnd as 'moveable' location for
9543             the CaretDirection enum and handler
9544           - Added selection_prev variable to track optimized invalidation for
9545             word and line selection
9546           - Added SelectionVisible property (returns true if there is a valid 
9547             selection)
9548           - Switched CaretHasFocus to only display the caret if there is no
9549             visible selection
9550           - Avoiding StringBuilder.ToString to retrieve a single char, instead
9551             using the direct character index; should be much faster
9552           - Added various conditional debug statements
9553           - Fixed invalidation calculation for selection ranges
9554           - Added ExpandSelection() method to support word and line selection
9555           - Switched SetSelectionToCaret to use new Marker compare overloads
9556           - Added central IsWordSeparator() method to determine word 
9557             separators/whitespace and FindWordSeparator() to streamline common
9558             usage of IsWordSeparator()
9559         * TextBoxBase.cs:
9560           - Removed unneeded grabbed variable, it was just mirroring
9561             Control.Capture
9562           - No longer firing OnTextChanged event when Text setter is called,
9563             since the base will fire the event for us
9564           - Added handling of Ctrl-Up/Down selection
9565           - Added handling of Shift-Cursorkey selection
9566           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
9567             words
9568           - Added handling of Shift and Ctrl-Shift-Home/End selection
9569           - Removed some debug output
9570           - Added handling for single/double/tripple-click to place caret/
9571             select word/select line respectively (Fixes bug #76031)
9572           - Added support for drag expansion of word/line selection
9573         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
9574           current selection
9576 2005-11-02  Jackson Harper  <jackson@ximian.com>
9578         * X11Dnd.cs: If the drag is going to and from a MWF window just
9579         copy the data instead of sending it out through the X Selection
9580         mechanism.
9582 2005-11-02  Jackson Harper  <jackson@ximian.com>
9584         * X11Dnd.cs:
9585         * XplatUIX11.cs: When in a drag we don't want motion notify
9586         messages to get passed on to the other controls. This prevents
9587         mouse move messages from showing up in the drag source.
9589 2005-11-02  Jackson Harper  <jackson@ximian.com>
9591         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
9592         the correct button is release to end a drag.
9593         * XplatUIX11.cs: Make the button state internal so the drag system
9594         can access it.  Dragging needs to know about all button releases,
9595         not just left button.
9597 2005-11-02  Miguel de Icaza  <miguel@novell.com>
9599         * Form.cs (Icon): If the icon is null, reset the icon to the
9600         default value. 
9602         * Cursor.cs: When writing the AND-mask bitmap do not include the
9603         number of colors, but hardcode those to two (black and white),
9604         fixes the loading of color cursors (Paint Dot Net).
9606         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
9607         turn off autoscaling.
9609         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
9611 2005-11-02  Jackson Harper  <jackson@ximian.com>
9613         * X11Dnd.cs: Make sure to send a status message if the pointer
9614         enters a control that can not accept a drop, otherwise the cursor
9615         isn't updated correctly. Also tried to compress the lines of code
9616         a bit.
9618 2005-11-02  Jackson Harper  <jackson@ximian.com>
9620         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
9621         set actions correctly.  This isn't perfect as XDND and win32 have
9622         some differences on how you allow actions. I'll clear this up by
9623         adding a path for drag from MWF to MWF windows.
9624         * XplatUIX11.cs: Hook into the dnd system.
9626 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
9628         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
9629         previously shown but they are no longer need it. Very obvious when 
9630         browsing files with FileDialog.
9632 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
9634         * Control.cs: We always need to call OnPaintBackground. We pretty much
9635           ignore AllPaintingInWmPaint and always do the painting there, whether 
9636           it's set or not, since we always ignore the WM_ERASEBKGND message 
9637           (which we don't generate on X11). This fixes #76616.
9638         * Panel.cs: Removed unneeded background painting. This happens properly
9639           in Control.cs already
9641 2005-10-31  Mike Kestner  <mkestner@novell.com>
9643         * Menu.cs: Add items to collection before setting their index.
9644         * MenuItem.cs : add range checking with ArgumentException like MS.
9645         [Fixes #76510]
9647 2005-10-31  Jackson Harper  <jackson@ximian.com>
9649         * ListBox.cs: Invalidate if the area is visible at all not just
9650         contained in the visible rect. Fixes unselection of semi visible
9651         items.
9653 2005-10-31  Jackson Harper  <jackson@ximian.com>
9655         * Control.cs: Consistently name the dnd methods. Make them
9656         internal so we can override them to match some MS behavoir
9657         internally.
9658         * Win32DnD.cs: Use the new consistent names.
9660 2005-10-31  Jackson Harper  <jackson@ximian.com>
9662         * TreeView.cs: Don't draw the selected node when we lose focus.
9664 2005-10-31  Jackson Harper  <jackson@ximian.com>
9666         * X11Dnd.cs: We still need to reset the state even though a full
9667         reset isn't being done, otherwise status's still get sent all over
9668         the place.
9670 2005-10-31  Jackson Harper  <jackson@ximian.com>
9672         * Control.cs: Make the dnd_aware flag internal so the dnd
9673         subsystem can check it. Catch exceptions thrown in dnd handlers to
9674         match MS behavoir.
9675         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
9676         * X11Dnd.cs: Handle null data in the converters. Set the XDND
9677         version when sending a XdndEnter. Use the control/hwnd dnd_aware
9678         flags to reduce the number of dnd enters/status's sent.
9680 2005-10-31  Jackson Harper  <jackson@ximian.com>
9682         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
9684 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
9686         * PictureBox.cs: Fixes 76512
9688 2005-10-28  Jackson Harper  <jackson@ximian.com>
9690         * X11Dnd.cs: Early implementation to support winforms being a drag
9691         source for data on X11. Also restructured the converters so they
9692         can go both ways now.
9693         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
9694         
9695 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
9697         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
9698           clipboard requests
9700 2005-10-27  Jackson Harper  <jackson@ximian.com>
9702         * TreeNode.cs: Implement serialization so my DnD examples will work.
9704 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
9706         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
9707           TreeView.cs: Don't dispose objects that are not owned.
9708           
9709 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
9711         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
9712           should retrieve the current cursor and report that, but XplatUI
9713           doesn't (yet) have an interface for that (and I'm not sure I even
9714           can, on X11)
9715         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
9716           until any message loop processing is done (and the WM_SETCURSOR
9717           replaces the cursor to the proper one)
9718         * XplatUIX11.cs: 
9719           - Fixed override behaviour, we can't set the cursor globally on X11, 
9720             just for our windows.
9721           - Invalidating the System.Drawing X11 display handle when we are
9722             shutting down
9723         * Control.cs: Fix to make csc happy
9725 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
9727         * TextBoxBase.cs: 
9728           - get_Text: Add last line (without trailing newline) to returned
9729             value (Fixes 76212)
9730           - get_TextLength: Count last line in returned length
9731           - ToString: Call Text property instead of duplicating code
9733 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
9735         * ImageList.cs: Dispose ImageAttributes objects.
9737 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
9739         * ImageList.cs: Use attribute constructors with less arguments where
9740           possible.
9742 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
9744         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
9745           Use typeof instead of strings when assembly is referenced. Added
9746           some more comments.
9748 2005-10-21  Jackson Harper  <jackson@ximian.com>
9750         * ListView.cs: Raise a double click event. Also tried to somewhat
9751         fix when the selectedindexchanged event is raised. Its still
9752         broken though.
9754 2005-10-21  Jackson Harper  <jackson@ximian.com>
9756         * TreeView.cs: New method to invalidate the plus minus area of a
9757         node without invalidating the whole node (maybe this can be used
9758         in some more places).
9759         * TreeNodeCollection.cs: When adding to an empty node we need to
9760         invalidate its plus minus area so the little block shows up.
9761         
9762 2005-10-21  Jackson Harper  <jackson@ximian.com>
9764         * TreeView.cs: Make sure that when we invalidate a node the bounds
9765         are big enough to cover the selected box and the focus
9766         rectangle. Use a different colour for the lines connecting nodes
9767         so they show up with all themes.
9769 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
9771         * NativeWindow.cs: Don't call anything that could call into the driver,
9772           we might be on a different thread.
9774 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
9776         * Control.cs(Dispose): Since Dispose might run on a different thread,
9777           make sure that we call methods that could call into the driver via
9778           invoke, to avoid thread issues
9780 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
9782         * XplatUI.cs: Removed finalizer
9783         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
9784           not allowing to be called on the finalizer thread.
9786 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
9788         * ImageList.cs:
9789           - Reverted r51889 and r51891.
9790           - Added ImageListItem class that stores unmodified image items and image
9791             properties required to create list images until handle is created.
9792           - Added AddItem and moved image creation logic to AddItemInternal.
9793           - Added CreateHandle method that creates images based on unmodified items.
9794           - Added DestroyHandle that changes state to store unmodified items.
9795           - Add and AddStrip methods no more create handle.
9796           - ReduceColorDepth has no return value.
9797           - Dispose destroys handle.
9798           - Modified other methods to reflect the above changes.
9799           - Implemented key support.
9800           - Added profile 2.0 members and attributes.
9801           - Added private Reset and ShouldSerialize methods that provide the same
9802             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
9803             them as they are private.
9804           - Added some more comments about implementation details.
9806 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
9808         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
9810 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
9812         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
9814 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
9816         * DataGridDrawingLogic.cs: Fixes column hit calcultation
9817         * DataGridColumnStyle.cs: Remove debug message
9819 2005-10-20  Jackson Harper  <jackson@ximian.com>
9821         * TreeView.cs: We can always get input keys regardless of whether
9822         or not editing is enabled. They are used for navigation.
9824 2005-10-20  Jackson Harper  <jackson@ximian.com>
9826         * TreeNode.cs: Use the viewport rect for determining if a node
9827         needs to be moved for visibility. Don't use Begin/End edit. This
9828         calls a full refresh when its done.
9829         * TreeView.cs: New SetBottom works correctly.  Make the viewport
9830         rect property internal so the treenodes can see it. When clicking
9831         on a node we need to ensure that its visible because it might just
9832         be partly visible when clicked.
9834 2005-10-20  Jackson Harper  <jackson@ximian.com>
9836         * TreeNodeCollection.cs: Remove debug code.
9838 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
9840         * Datagrid.cs: Implements column sorting in Datagrid
9841         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
9843 2005-10-20  Jackson Harper  <jackson@ximian.com>
9845         * TreeNodeCollection.cs: Remove items properly. Update the correct
9846         area after removing them.
9848 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
9850         * Datagrid.cs: Should not call base.OnPaintBackground
9852 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
9854         * XplatUIX11.cs (GetMessage):
9855           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
9856             window instead of client window
9857           - Now properly calculates NC_xBUTTONUP message coordinates
9858           - ScreenToMenu now properly calculates it's coordinates of whole 
9859             window, since menus are in the whole window, not in the client
9860             window
9861           - Added WholeToScreen coordinate translation method
9863 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
9865         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
9866           want to return a message, loop back to the beginning of the function
9867           and grab the next real message to process instead.
9869 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
9871         * Splitter.cs: Properly set limits if no filler control is used
9873 2005-10-19  Jackson Harper  <jackson@ximian.com>
9875         * ColorDialog.cs: Don't show the help button if it is not enabled
9876         instead of disabling it (this is what MS does). Don't create the
9877         panel until the dialog is run, otherwise the vars (such as
9878         ShowHelp) are not set yet.
9880 2005-10-19  Jackson Harper  <jackson@ximian.com>
9882         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
9883         are reduced when adding nodes.
9884         * TreeNode.cs:
9885         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
9886         tree.
9887         
9888 2005-10-19  Jackson Harper  <jackson@ximian.com>
9890         * FolderBrowserDialog.cs: End editing our treeview so the window
9891         actually gets refreshed.
9893 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
9895         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
9896           Obsoleted handling of WM_ERASEBKGND, now always draws our background
9897           inside of WM_PAINT
9899 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
9901         * MenuAPI.cs: Returns after Hidding window
9902         * XplatUIX11.cs: Added TODO found while debugging menu issues
9904 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
9906         * XplatUIX11.cs: Do not re-map the whole window when it's size
9907           becomes non-zero unless it's supposed to be actually visible
9909 2005-10-18  Jackson Harper  <jackson@ximian.com>
9911         * TreeView.cs: We don't need to keep a count anymore.
9912         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
9913         use the Grow method.
9915 2005-10-18  Jackson Harper  <jackson@ximian.com>
9917         * TreeNodeCollection.cs: Insert is not supported on arrays, so
9918         implement it manually here.
9920 2005-10-18  Jackson Harper  <jackson@ximian.com>
9922         * ImageList.cs: Dont kill the list when the colour depth is
9923         changed, just change the colour depth of all the images.
9924         - Same goes for setting the image size. Just resize them all
9925         instead of killing the list softly.
9927 2005-10-18  Jackson Harper  <jackson@ximian.com>
9929         * Control.cs: Don't invalidate empty rectangles.
9931 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
9933         * ListViewItem.cs:
9934           - Adds checked item to the Checked/Item lists (where empty before)
9935           - Do not add items to the Selected lists if they are already present
9936         * ListView.cs:
9937           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
9938           - When deleting items make sure that we delete them for the Selected
9939           and Checked list also.
9941 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
9943         * Label.cs: Dispose objects no longer used
9944         * ThemeWin32Classic.cs: Dispose objects no longer used
9946 2005-10-18  Jackson Harper  <jackson@ximian.com>
9948         * TabControl.cs: Don't refresh the whole control when the tabs are
9949         scrolled, we just need to refresh the tab area.
9951 2005-10-17  Jackson Harper  <jackson@ximian.com>
9953         * XplatUIX11.cs: Compress code a little bit. Only calculate the
9954         after handle when we need it.
9956 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
9958         * Control.cs: When the parent size changes, recalculate anchor 
9959           positions. Partial fix for #76462
9961 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
9963         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
9964           drawn. Fixes #76462
9966 2005-10-17  Jackson Harper  <jackson@ximian.com>
9968         * MonthCalendar.cs: Don't create the numeric up down until our
9969         handle is created. Otherwise our handle is created in the
9970         constructor and we don't know if we are a WS_CHILD or WS_POPUP
9971         yet.
9973 2005-10-17  Jackson Harper  <jackson@ximian.com>
9975         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
9976         correctly.
9978 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
9979         * TreeNode.cs : small logical fix (was using local var instead of field)
9980         
9981 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
9983         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
9985 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
9987         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
9989 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
9991         * Control.cs: 
9992           - Re-implemented anchoring code. My first version was really broken.
9993             This fixes bug #76033. Unlike the previous implementation we will
9994             no longer have round errors since all numbers are calculated from
9995             scratch every time. Removed various anchor-related obsolete vars.
9996           - InitLayout no longer causes layout event firing and layout to be 
9997             performed
9999 2005-10-16  Jackson Harper  <jackson@ximian.com>
10001         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
10002         which was broken).
10004 2005-10-16  Jackson Harper  <jackson@ximian.com>
10006         * TabControl.cs: Remove debug code.
10008 2005-10-16  Jackson Harper  <jackson@ximian.com>
10010         * XEventQueue.cs: Increase the default queue size (very simple
10011         apps needed to grow the queue).
10012         * Hwnd.cs: No finalizer so we don't need to suppress
10013         finalization. Compute the invalid area manually so a new rectangle
10014         does not newto be created.
10015         * ScrollableControl.cs: Don't set any params (otherwise visibility
10016         isn't set correctly).
10017         * MdiChildContext.cs: New constructor takes the mdi parent so it
10018         doesn't have to be computed and avoids a crash on windows. Draw
10019         the window icon properly, and allow the text to be seen.
10020         * Form.cs: Use new MdiChildContext constructor. Make sure the
10021         child context isn't null in wndproc.
10022         * TabControl.cs: Don't set focus, this is muddling keyboard
10023         behavoir. Expand the tab rows when a window size increase will
10024         allow extra tabs to be seen. Don't allow tabs smaller than the
10025         width of a window to be scrolled out of view.
10026         * TreeNode.cs:
10027         * TreeView.cs: Use measure string to calculate a nodes width, the
10028         width is cached and only updated when the text or the font is
10029         changed. Don't check for expand/collapse clicks on the first level
10030         nodes if root lines are disabled.
10031         
10032 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
10034         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
10036 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
10038         * DataGridBoolColumn.cs: fixes warning
10040 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
10042         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
10043         to match more to match more precisely the MS Net behavior
10045 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
10047         * Hwnd.cs: Added field to track if window is mapped
10048         * XplatUIX11.cs: 
10049           - Unmap windows if they become 0-size, re-map when 
10050             they are >0 again; fixes #76035
10051           - Re-set our error handler after initializing X11Desktop
10052             to override any error handlers Gtk or whatever was called
10053             may have set.
10055 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
10057         * CheckedListBox.cs: Removed unused vars
10058         * ListView.cs: Fixed signatures
10059         * RichTextBox.cs: Removed unused vars
10060         * TextBoxBase.cs: Removed unused vars
10061         * XplatUIWin32.cs: Removed unused vars
10062         * XplatUIX11.cs: Removed unused vars
10063         * XplatUI.cs: Updated version and date to latest published
10065 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
10067         * Cursor.cs: Added private .ctor to work around a bug in
10068           resourceset (Thanks to Geoff Norton for the help on this)
10069         * SplitterEventArgs.cs: Made fields accessible so we don't
10070           waste boatloads of objects and can reuse the same one
10071           in Splitter
10072         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
10073           any captions and borders when generating screen coordinates
10074         * Splitter.cs: Reimplemented control, now fully complete, uses
10075           rubberband drawing, supports and obeys all properties, has
10076           proper cursors
10078 2005-10-13  Miguel de Icaza  <miguel@novell.com>
10080         * Form.cs (Form): Setup default values for autoscale and
10081         autoscale_base_size;  Make these instance variables, not static
10082         variables. 
10084         (OnLoad): on the first load, adjust the size of the form.
10086 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
10088         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
10089           width argument to DrawReversibleRectangle()
10090         * XplatUIWin32.cs, XplatUIX11.cs: 
10091           - Implemented width for DrawReversibleRectangle()
10092           - Added logic to DrawReversibleRectangle that recognizes a zero
10093             width or height and only draws a line in that situation
10094         
10095 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
10097         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
10098         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
10099         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
10100           method (it uses our FosterParent window to get a graphics context)
10102 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
10104         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
10105           and SetWindowBackground methods
10106         * Control.cs:
10107           - Setting proper ControlStyles
10108           - We no longer call XplatUI.SetWindowBackground and XplatUI.
10109             EraseWindowBackground, instead we draw the window background
10110             ourselves in PaintControlBackground. This behaviour is
10111             required to match MS, where, when OnPaintBackground is not
10112             called, the background is not drawn.
10113           - Removed unneeded Refresh() in set_Text
10114         * Hwnd.cs: Dropped the ErasePending support. No longer needed
10115         * XplatUIX11.cs:
10116           - Created DeriveStyles method to translate from CreateParams to
10117             FormBorderStyle and TitleStyle, also handles BorderStyle (which
10118             matches FormBorderStyle enum values)
10119           - Consolidated SetHwndStyles and CalculateWindowRect border/title
10120             style calculations into single DeriveStyles method
10121           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
10122             from redrawing the whole window on any resize or expose.
10123           - Fixed CreateWindow usage of SetWindowValuemask. Before not
10124             all styles were applied to our whole/client window appropriately
10125           - Removed EraseWindowBackground() and SetWindowBackground() methods
10126           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
10127             no longer clear/redraw the background through X
10128           - Removed handling of erase_pending bit, we have no use for it (or
10129             so it seems)
10130         * XplatUIOSX.cs:
10131           - Removed generation and handling of WM_ERASEBKGND message
10132           - Removed EraseWindowBackground() and SetWindowBackground() methods
10133           - Removed handling of hwnd.ErasePending flag
10134         * XplatUIWin32.cs:
10135           - Removed EraseWindowBackground() and SetWindowBackground() methods
10136           - We no longer call EraseWindowBackground on PaintEventStart, we 
10137             ignore the fErase flag, erasing is handled in Control in the
10138             background handler
10139         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
10140           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
10141           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
10142           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
10143           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
10144           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
10145           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
10147 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
10149         * PropertyGrids.cs: Get sub properties
10150         * PropertyGridView.cs: Fix drawing code
10152 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
10154         * ListBox.cs: Fixes 76383
10156 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
10158         * DataGridTextBoxColumn.cs: Sets location and size before attachment
10159         * ThemeWin32Classic.cs: Fixes border drawing and calculations
10160         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
10163 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
10165         * ComboBox.cs: Fixes border drawing
10167 2005-10-10  Miguel de Icaza  <miguel@novell.com>
10169         * MimeIcon.cs: Ignore errors if the file can not be read.
10171 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
10173         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
10174          - Fixed border calculations
10175          - Fixed horizontal scrolling in single column listboxes
10176          - Fixed drawing issues
10178 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
10180         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
10181           FormBorderStyle enum
10182         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
10183           code to determine FormBorderStyles from CreateParams
10184         * Form.cs:
10185           - Fixed bug where we'd set the wrong window styles if we were
10186             not creating an MDI window
10187           - Added call to XplatUI.SetBorderStyle when form borders are set
10188         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
10189         * Hwnd.cs:
10190           - Removed obsolete edge style
10191           - Switched from BorderStyle to FormBorderStyle
10192         
10193 2005-10-10  Jackson Harper  <jackson@ximian.com>
10195         * Form.cs: Use the property to get the window handle instead of
10196         accessing it directly. Prevents a null reference exception.
10198 2005-10-10  Jackson Harper  <jackson@ximian.com>
10200         * TreeView.cs: Don't adjust the rect given to DrawString now that
10201         our libgdiplus draws correctly.
10203 2005-10-08  Jackson Harper  <jackson@ximian.com>
10205         * TreeView.cs: Don't try to find the clicked on node if there are
10206         no nodes in the tree.
10208 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
10210         * RichTextBox.cs:
10212           restore
10214 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
10216         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
10217           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
10218           ErrorProvider.cs:
10219           Use ResPool for brushes and dispose System.Drawing objects that
10220           are not used anymore.
10222 2005-10-07  Jackson Harper  <jackson@ximian.com>
10224         * MdiChildContext.cs: Use the new borders instead of drawing them
10225         ourselves.
10227 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
10229         * Calling UpdateBounds after changing the window's BorderStyle 
10230         since the style can change the ClientSize
10232 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
10234         * Control.cs: Made PaintControlBackground virtual
10235         * Panel.cs: Overriding PaintControlBackground instead of using paint
10236           event; paint event method was interfering with 'real' users of the
10237           event.
10239 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
10241         * ThemeWin32Classic.cs: remove border drawing since it is handled
10242         by the base control class now and was causing double border drawing.
10244 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
10246         * Panel.cs: Redraw our background on paint. Not a pretty solution,
10247           but it does seem to match MS behaviour. This fixes bug #75324
10249 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
10251         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
10252           somewhat hackish looking
10254 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
10256         * TextBoxBase.cs:
10257           - We now accept Enter even if AcceptEnter is false, if the containing
10258             form does not have an AcceptButton configured (fixes bug #76355)
10259           - Calculations are now fixed to no longer use Width/Height, but
10260             ClientSize.Width/Height, since we now support borders (this was
10261             a result of fixing borders and therefore bug #76166)
10262           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
10263             true (fixes bug #76354)
10264         
10265 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
10267         * Control.cs: 
10268           - Defaulting BorderStyle and setting it in XplatUI when our window 
10269             is created
10270           - Added enum check to InternalBorderStyle setter
10271         * XplatUIX11.cs: 
10272           - Added drawing of window borders
10273           - Now properly calculates WM decorations offset for toplevel 
10274             windows (fixes bug #74763)
10275         * XplatUIWin32.cs: 
10276           - Implemented BorderStyles for windows (we're letting win32 draw 
10277             the border for us)
10278           - Fixed the signature for SetWindowLong
10279         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
10280           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
10281           setting borders
10282         * UpDownBase.cs: Remove drawing of borders, this is handled by
10283           the driver, outside the client area
10284         * ListView.cs: Removed bogus border calculations. The control should
10285           be oblivious to borders, since those are not part of the client
10286           area. 
10287         * X11DesktopColors.cs: Commented out (currently) unneeded variables
10288         * ThemeWin32Classic.cs: Removed border calculations from ListView 
10289           drawing code
10291 2005-10-06  Jackson Harper  <jackson@ximian.com>
10293         * MdiChildContext.cs: Clear out the old virtual position remove
10294         all the unneeded calls to CreateGraphics.
10296 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
10298         * TextControl.cs: Use proper color for highlighted text; fixes #76350
10300 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
10302         * Form.cs: 
10303           - Added loading and setting of our new default icon
10304           - Only set icon if window is already created
10306 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
10308         * Label.cs:
10309           - Do not explicitly set the foreground and background colors, to
10310             allow inheriting from parents (fixes #76302)
10311           - Use Control's InternalBorderStyle property to deal with borders
10313 2005-10-06  Jackson Harper  <jackson@ximian.com>
10315         * MdiChildContext.cs: Use the new xplatui function to draw a
10316         reversible rect.
10318 2005-10-06  Jackson Harper  <jackson@ximian.com>
10320         * Form.cs: Add the parent before creating the child context cause
10321         we need the parent when setting up the child.
10323 2005-10-06  Jackson Harper  <jackson@ximian.com>
10325         * FolderBrowserDialog.cs: redo the tree population code so a
10326         second thread isn't used. Should be a lot faster and more stable
10327         now.
10329 2005-10-05  Jackson Harper  <jackson@ximian.com>
10331         * TreeView.cs: There are no expand/collapse boxes if the node has
10332         no children.
10334 2005-10-05  Jackson Harper  <jackson@ximian.com>
10336         * X11DesktopColors.cs: Get menu colours for the gtk theme.
10338 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
10340         * FileDialog.cs: Fix InitialDirectory
10342 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
10344         * ComboBox.cs:
10345                 - Fixes changing between styles
10346                 - Fixes simple mode
10347                 - Fixes last item crashing when navigating with keyboard
10349 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
10351         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
10353 2005-10-05  Jackson Harper  <jackson@ximian.com>
10355         * TreeView.cs: If updating the root node do a full refresh.
10356         * TreeNode.cs: The root node should be expanded by default. Also
10357         added a utility prop to tell if we are the root node.
10358         * TreeNodeCollection.cs: Only refresh if the node we are being
10359         added to is expanded. Also added a comment on a potential
10360         optimization.
10361         
10362 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
10364         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
10365           in dispose method. Fixes #76330
10367 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
10369         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
10371                 - Implements vertical and horizontal scrolling using XplatUI
10372                 - Fixes keyboard navagation
10373                 - Fixes EnsureVisible
10374                 - Drawing fixes
10375                 - Handles and draws focus properly
10378 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
10380         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
10381           Create handle. NET_2_0: Destroy handle when value is null.
10383 2005-10-03  Jackson Harper  <jackson@ximian.com>
10385         * ScrollBar.cs: My last scrollbar patch was broken. This is a
10386         revert and a new patch to prevent the thumb from refreshing so
10387         much.
10389 2005-10-02  Jackson Harper  <jackson@ximian.com>
10391         * ScrollBar.cs: Don't update position if it hasn't actually
10392         changed. This occurs when you hold down the increment/decrement
10393         buttons and the thumb gets to the max/min.
10395 2005-10-01  Jackson Harper  <jackson@ximian.com>
10397         * Form.cs:
10398         * MdiChildContext.cs:
10399         * MdiClient.cs: Implement ActiveMdiChild in Form.
10401 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
10403         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
10405 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
10407         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
10408           be found
10410 2005-09-30  Jackson Harper  <jackson@ximian.com>
10412         * ListBox.cs: Don't do a full refresh unless some data has
10413         actually changed.
10415 2005-09-30  Jackson Harper  <jackson@ximian.com>
10417         * TreeView.cs: Make sure that the checkboxes size is factored in
10418         even when not visible.
10420 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
10422         * FileDialog.cs: Fix Jordi's build break
10424 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
10426         * FileDialog.cs: 
10427                 - Use standard the Windows colours for the combobox as espected
10428                 - Dispose objects that use resouces when no longer need them
10430 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
10432         * X11DesktopColors.cs: Initial incomplete implementation
10433         * XplatUIX11.cs: Added call to initialize X11DesktopColors
10435 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
10437         * Theme.cs: 
10438           - Switched Theme color names to match the names defined in 
10439             System.Drawing.KnownColors. Life's hard enough, no need to make 
10440             it harder.
10441           - Added setters to all theme color properties so themes can set
10442             their color schemes. The setters also propagate the color changes
10443             to System.Drawing.KnownColors via reflection
10444         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
10445           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
10446           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
10447           use the new, more logical theme color names
10448         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
10449           post-NT colors
10450         * ThemeWin32Classic.cs:
10451           - Removed code to set the old classic Windows colors. Instead it
10452             now relies on the colors returned by System.Drawing.KnownColors
10453             which will be either modern static colors (Unix) or colors
10454             read from the user's configuration (Win32)
10455           - Updated to use the new, more logical theme color names
10456           - Switched DataGrid drawing code to use only Theme colors instead of
10457             a mix of System.Drawing.KnownColors and Theme colors
10458           - DrawFrameControl(): Removed code that fills the button area, the
10459             fill would overwrite any previous fill done by a control. This
10460             fixes bug #75338 
10461           - Added DrawReversibleRectangle() stub
10462         * ScrollableControl.cs: Set visible state to false when scrollbars
10463           are removed (pdn fix)
10464         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
10465           DrawReversibleRectangle() method to allow drawing primitive 
10466           'rubber bands'
10467         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
10469 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
10471         * ImageList.cs: Add(Icon): Create handle.
10473 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
10475         * ListView.cs:
10476         * ThemeWin32Classic.cs:
10477                 - Fixes detail mode
10478                 - Sets clippings
10479                 - Issues with drawing
10481 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
10483         * ImageList.cs: Moved RecreateHandle back to ImageList as event
10484           source has to be the ImageList.
10486 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
10488         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
10490 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
10492         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
10494 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
10496         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
10498 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
10499         * GridItem.cs: Fixed TODOs
10500         * GridItemCollection.cs: Added ICollection interface
10502 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
10504         * ImageList.cs: Resize icons when needed.
10506 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
10508         * ListViewItem.cs
10509                 - Fixes GetBounds and returns on screen rects
10510         * ListView.cs:
10511                 - Fixes vertical and horzintal scrolling of items
10512         * ThemeWin32Classic.cs:
10513                 - Fixes drawing
10514                 
10515 2005-09-29  Raja R Harinath  <harinath@gmail.com>
10517         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
10519 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
10521         * ImageList.cs: Added comments about handle creation. Moved Handle,
10522           HandleCreated and OnRecreateHandle implementations to ImageCollection.
10523           Handle is created in Add methods.
10525 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
10526          
10527         * DataGridDrawingLogic.cs: 
10528                 - Takes rows into account on Colum calculations
10529                 - Returns the column when clickig
10530         * DataGrid.cs:
10531                 - Fixes default HitTestInfo values
10532                 - Fixes HitTestInfo.ToString
10533                 - Fixes ResetBackColor          
10534         
10535 2005-09-28  Jackson Harper  <jackson@ximian.com>
10537         * MdiChildContext.cs: Obey rules for fixed sized windows (no
10538         sizing or cursor changes). Also added some temp code to draw the
10539         titlebars text (Makes dev a little easier).
10541 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
10543         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
10545 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
10546          
10547         * ListBox.cs: Fixes bug 76253
10549 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
10551         * ImageList.cs: Added comments about the current implementation. Added
10552           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
10553           Format32bppArgb to preserve transparency and can use Graphics.FromImage
10554           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
10555           with Bitmap.LockBits for better performance. Revised the whole file to
10556           match MS.NET behaviour and provide better performance. Non-public
10557           interface members are calling public members even when they throw
10558           NotSupportedException for better maintainability. Moved ColorDepth,
10559           ImageSize, ImageStream and TransparentColor implementations to
10560           ImageCollection for better performance as these properties are not used
10561           by ImageList.
10562         * ImageListStreamer.cs: Added a new internal constructor that takes an
10563           ImageList.ImageCollection and serializes Images based on
10564           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
10565           match ImageList property name.
10567 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
10569         * ListBox.cs: Fixes IndexFromPoint for last item
10571 2005-09-27  Jackson Harper  <jackson@ximian.com>
10573         * Form.cs: Set the position of new mdi children correctly.
10575 2005-09-27  Jackson Harper  <jackson@ximian.com>
10577         * MdiClient.cs: New mdi children need to be added to the back of
10578         the controls collection so the zorder is set correctly. Also add a
10579         count of all the child windows that have been created.
10581 2005-09-27  Jackson Harper  <jackson@ximian.com>
10583         * Form.cs (CreateParams): Setup MDI forms correctly.
10585 2005-09-27  Jackson Harper  <jackson@ximian.com>
10587         * MdiChildContext.cs:
10588         * MonthCalendar.cs:
10589         * UpDownBase.cs:
10590         * ListBox.cs:
10591         * ListView.cs:
10592         * TextBoxBase.cs:
10593         * TreeView.cs:
10594         * ScrollableControl.cs:
10595         * ComboBox.cs: Add implicit controls using the new implict control
10596         functionality in ControlCollection. Also try to block multiple
10597         control add in a suspend/resume layout to save some cycles.
10598         
10599 2005-09-27  Jackson Harper  <jackson@ximian.com>
10601         * Control.cs: Add functionality to the controls collection to add
10602         'implicit controls' these are controls that are created by the
10603         containing control but should not be exposed to the user. Such as
10604         scrollbars in the treeview.
10605         * Form.cs: The list var of the ControlsCollection is no longer
10606         available because of the potential of implicit controls getting
10607         ignored by someone accessing the list directly.
10609 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
10611         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
10612           loose it's parent. (Fixed bug introduced in r49103 when we added
10613           setting the child parent to null on Remove)
10615 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
10617         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
10618         * Splitter.cs: Added missing attributes for BorderStyle property.
10619         * TextBoxBase.cs: Marked Calculate* methods internal.
10620         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
10621         MS.NET.
10623 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
10624          
10625         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
10627 2005-09-25  Jackson Harper  <jackson@ximian.com>
10629         * TreeView.cs: Update the node bounds correctly regardless of
10630         whether the node is visible.
10632 2005-09-25  Jackson Harper  <jackson@ximian.com>
10634         * ImageList.cs: Don't dispose the image after it is added to the
10635         image list. Only reformat images that need to be resized.
10637 2005-09-25  Jackson Harper  <jackson@ximian.com>
10639         * ImageList.cs: Don't set the format when changing the image.
10641 2005-09-25  Jackson Harper  <jackson@ximian.com>
10643         * TreeView.cs: We can't just assume the node has a font. Use the
10644         treeviews font if no node font is available.
10646 2005-09-25  Jackson Harper  <jackson@ximian.com>
10648         * TreeView.cs: Allow the scrollbars to be reset with negative
10649         values.
10650         - Don't add scrollbars to negative sized windows.
10652 2005-09-23  Jackson Harper  <jackson@ximian.com>
10654         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
10655         old Mono.Posix. Also remove some stray code that shouldn't have
10656         been committed.
10658 2005-09-23  Jackson Harper  <jackson@ximian.com>
10660         * TreeView.cs: Attempt at proper sizing of the horizontal
10661         scrollbar. Also don't resize the scrollbars unless they are
10662         visible.
10664 2005-09-23  Jackson Harper  <jackson@ximian.com>
10666         * TreeView.cs: We don't need to expand the invalid area when the
10667         selection changes, as this is all drawn in the node's bounding
10668         box. The area needs to be expanded (previous typo was contracting
10669         it) when the focus rect moves.
10671 2005-09-23  Jackson Harper  <jackson@ximian.com>
10673         * TreeView.cs: Display the selection box under the correct
10674         circumstances. We were rendering white text with no selection box
10675         before.
10677 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
10679         * TextControl.cs(Split): Now updates selection start/end if it points 
10680           into a line that's being split. Fixes a FIXME and bug #75258
10682 2005-09-23  Jackson Harper  <jackson@ximian.com>
10684         * Binding.cs:
10685         * ListControl.cs: Don't use the path when retrieving binding
10686         managers from the binding context. My bat sense tells me that the
10687         path is only used on insertion.
10689 2005-09-22  Jackson Harper  <jackson@ximian.com>
10691         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
10693 2005-09-22  Jackson Harper  <jackson@ximian.com>
10695         * Splitter.cs: There are special cursors used for splitting.
10696         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
10698 2005-09-22  Jackson Harper  <jackson@ximian.com>
10700         * Splitter.cs: Change the cursor appropriately when the splitter
10701         is moused over, so the user actually knows there is a splitter
10702         there.
10704 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
10706        * Label.cs : Fix ToString method to give same output as MS.NET
10708 2005-09-22  Jackson Harper  <jackson@ximian.com>
10710         * TreeView.cs: Create the scrollbars when the handle is created
10711         and add them right away, just make them invisble. Also account for
10712         the window being shrunk vertically to the point that the vert
10713         scrollbar needs to be added.
10714         - Remove some 0.5 adjustments to get around anti aliasing issues.
10715         
10716 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
10717          
10718         * MainMenu.cs: Fixes default value
10719         * MenuItem.cs: Fixes default value
10721 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
10723         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
10725 2005-09-21  Jackson Harper  <jackson@ximian.com>
10727         * Control.cs: Don't try to set the border style on the window if
10728         it hasn't been created. When the window is created the border
10729         style will be used.
10731 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
10733         * Control.cs (Update): Don't call XplatUI if we don't have a
10734           window handle yet
10736 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
10738         * ContainerControl.cs: Instead of throwing an exception, print
10739           a one-time warning about Validate not being implemented
10740         * XplatUIWin32.cs: Removed debug output
10742 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
10744         * Control.cs: Only set XplatUI background if we expect the windowing
10745           system to handle the background. This stops controls that draw their
10746           own background from flickering
10748         * XplatUIX11.cs: Support custom visuals and colormaps for window 
10749           creation. This allows, amongst other things, using MWF X11 windows 
10750           with OpenGL.
10752 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
10754         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
10755           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
10756           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
10757           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
10758           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
10759           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
10760           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
10761           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
10762           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
10763           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
10764           GridColumnStylesCollection.cs, 
10765           IDataGridColumnStyleEditingNotificationService.cs,
10766           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
10767           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
10768           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
10769           TreeNodeCollection.cs, AmbientProperties.cs, 
10770           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
10771           DataObject.cs, ErrorProvider.cs, Splitter.cs,
10772           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
10773           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
10774           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
10775           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
10776           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
10777           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
10778           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
10779           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
10780           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
10781           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
10782           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
10783           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
10784           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
10785           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
10786           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
10787           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
10788           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
10789           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
10790           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
10791           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
10792           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
10793           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
10794           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
10795           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
10796           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
10797           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
10798           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
10799           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
10800           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
10801           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
10802           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
10803           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
10804           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
10805           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
10806           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
10808 2005-09-21  Jackson Harper  <jackson@ximian.com>
10810         * TreeNode.cs: Call Before/After Expand not Collapse when
10811         expanding.
10813 2005-09-20  Jackson Harper  <jackson@ximian.com>
10814         
10815         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
10817 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
10818          
10819         * ListViewItem.cs:
10820                 - Fixes bug 76120
10821                 - Fixes proper storing of subitems
10822                 - Fixes not updated items
10824 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
10826         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
10827           things if our window handle isn't created yet. Also disabled 
10828           debug for TextBoxBase
10830 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
10832         * MenuAPI.cs: Remove filtering of events to allow menu usage
10834 2005-09-20  Miguel de Icaza  <miguel@novell.com>
10836         * Cursor.cs: Allow null to be passed to Cursor.Current.
10838 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
10840         * ThemeWin32Classic.cs:
10841           - Change some private methods/fields to protected virtual so that 
10842             they can be accessed and overriden in derived classes
10843           - First refactoring of some methods. Derived themes now don't 
10844             need to duplicate the complete code from ThemeWin32Classic
10845         * ThemeNice.cs:
10846           - Added nice StatusBar
10847           - Derive from ThemeWin32Classic and not Theme
10848           - Removed duplicate ThemeWin32Classic code
10850 2005-09-20  Miguel de Icaza  <miguel@novell.com>
10852         * Control.cs (ControlCollection.Add): If the value null is passed
10853         the control is ignored. 
10855         Optimize this loop.
10857 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
10859         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
10860           PostQuitMessage state.
10861         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
10863 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
10865         * Application.cs: Our constructor will never get called, move 
10866           initialization to fields; fixes bug #75933
10868 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
10870         * FileDialog.cs :
10871                 - Allow files to be selected properly using file name
10872                 combo box.
10873                 - Add ability to change diretory (absolute / relative)
10874                 using file name combo box.
10876 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
10877          
10878         * ListBox.cs: 
10879                 - Fixes Multicolumn listboxes item wrong calculations
10880                 - Allows to click when only one item is in the listbox
10881                 - Fixes crash when no items using keyboard navigation
10883 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
10885         * ComboBox.cs: Reverted almost everything from the latest patch which
10886           broke ComboBox
10888 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
10889         
10890         * ToolTip.cs:
10891                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
10892         * ComboBox.cs:
10893                 - When DropDownStyle is Simple, it does not show scrollbar 
10894                 to the last item of the list.
10895                 - When DropDownStyle is Simple, it crashed when the list was 
10896                 scrolled down with the down cursor key.
10897                 - Fixed a bug that when DropDownStyle is DropDownList, the 
10898                 selected item was not shown.
10899                 - The position of the selected item was not preserved when 
10900                 the next dropdown happened.
10901         * ThemeWin32Classic.cs:
10902                 - Items were wrapped at the right end.
10903         * CheckedListBox.cs:
10904                 - Fixed Add method
10905         * ListBox.cs:
10906                 - Items should be fully shown.
10907                 - When resizing and vertical scrollbar disappeared, the item 
10908                 of index 0 should be on the top of the list.
10909                 - GetItemRectangle should consider the size of ver. scrollbar
10910         * StatusBar.cs:
10911                 - SizingGrip area should not be allocated when it is not 
10912                 displayed.
10913                 - Now it reflects MinWidth of the containing panel and 
10914                 fixed a crash that happens when its width becomes so small.
10916 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
10918         * CheckedListBox.cs: Fixes bug 76028
10919         * ListBox.cs: Fixes bug 76028
10921 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
10923         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
10924         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
10926 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
10928         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
10930 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
10932         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
10934 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
10936         * IRootGridEntry.cs: Added
10937         * PropertyGridCommands.cs: Added
10938         * PropertiesTab.cs: Added missing methods and property
10939         * PropertyGridView.cs: Made class internal
10940         * PropertyGridTextBox.cs: Made class internal
10942 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
10944         * MimeIcon.cs: Try to check some other environment variables
10945           if "DESKTOP_SESSION" returns "default"
10947 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
10949         * ThemeNice.cs: Corrected background colors (e.g. menus)
10950         * ColorDialog.cs: Use correct background colors for controls
10952 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
10954         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
10956 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
10958         * RichTextBox.cs: Added initial implementation
10959         * lang.cs: Removed. Was accidentally checked in long time ago
10960         * TODO: Removed. Contents were obsolete
10962 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
10963                                                                                 
10964         * PropertiesTab.cs : Added
10966 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
10967                                                                                 
10968         * PropertyGrid.cs : Update
10969         * PropertyGridView.cs : Update
10970         * System.Windows.Forms.resx : Added images and strings
10972 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
10974         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
10976 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
10978         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
10979           a busy loop right after the Ungrab the X11 display is otherwise 
10980           blocked
10982 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
10984         * ThemeWin32Classic.cs: Optimise the use of clipping
10986 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
10988         * DataGrid.cs: fixes recursion bug
10990 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
10992         * ThemeNice.cs: 
10993           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
10994           - Cleanup
10996 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
10998         * ThemeNice.cs: Draw nice ProgressBars
11000 2005-09-01  Miguel de Icaza  <miguel@novell.com>
11002         * VScrollBar.cs: Another buglet found by Aaron's tool. 
11004         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
11005         bug finder.
11007 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
11009         * ThemeNice.cs:
11010           - Added nicer menu drawing
11011           - Updated DrawTab
11012           - some refactoring
11014 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
11016         * CreateParams.cs (ToString): Made output match MS
11017         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
11018             handle is already created (to avoid forcing window creation)
11019         * XplatUIX11.cs: Set window text to caption after creating window,
11020           in case Text was set before window was created
11021         * Form.cs: Use this.Text instead of a static string as caption
11023 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
11025         * NotifyIcon.cs: Don't set the window to visible; this screws
11026           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
11027           OnPaint without a bitmap)
11028         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
11029           happen very often anyway; we could add the check to the WM_PAINT 
11030           event generation code
11032 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
11034         * NotifyIcon.cs: Fill the icon area with a background color, to 
11035           avoid 'residue' when transparent icons are drawn
11036         * XplatUIX11.cs:
11037           - Handle whole_window == client_window when destroying windows
11038           - SystrayAdd(): Set client_window to whole_window value to
11039             get mouse and other events passed to NotifyIcon
11041 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
11043         * Form.cs: Set proper default for Opacity property
11044         * NotifyIcon.cs:
11045           - ShowSystray(): Don't bother creating telling the OS
11046             about the systray item if no icon is provided
11047           - Now handles WM_NCPAINT message to deal with whole/client window
11048             split
11049           - Create window as visible to not get caught by Expose optimization
11050         * Hwnd.cs: Removed debug message
11051         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
11052           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
11053             PaintEventStart/End to use new client argument
11054         * TextBoxBase.cs:
11055           - Commented out debug messages
11056           - Switched PaintEventStart/End to use new client argument
11057         * XplatUI.cs: Added client window bool to PaintEventStart()/
11058           PaintEventEnd() calls, to support drawing in non-client areas
11059         * XplatUIDriver.cs: 
11060           - Added client window bool to PaintEventStart()/PaintEventEnd() 
11061             calls, to support drawing in non-client areas
11062           - Added conditional compile to allow using MWF BeginInvoke 
11063             on MS runtime
11064         * XplatUIX11.cs:
11065           - Added some conditional debug output
11066           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
11067             whole/client window split
11068           - Implemented handling of client argument to PaintEventStart()/End()
11069         * Control.cs:
11070           - Throw exception if BeginInvoke() is called and the window handle
11071             or one of the window's parent handles is not created
11072           - Added conditional compile to allow using MWF BeginInvoke on
11073             MS runtime
11074           - get_Parent(): Only sets parent if handle is created. This avoids
11075             forcing window handle creation when parent is set.
11076           - Now fires Layout and Parent changed events in proper order
11077           - Switched to use Handle instead of window.Handle for Z-Order setting,
11078             the get_Parent() patch above causes us to possibly get null for 'window'
11079           - Implemented handling of client argument to PaintEventStart()/End()
11080           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
11081             default handling)
11082           - Now sends a Refresh() to all child windows when Refresh() is called
11084 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
11086         * Form.cs: Added (non-functional) Opacity property
11087         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
11089 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
11090         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
11091           use export MONO_THEME=nice to activate it.
11092           Currently supported controls:
11093           - Button
11094           - ComboBox
11095           - ScrollBar
11096           - TabControl (TabAlignment.Top only, other will follow)
11097         * ThemeEngine.cs: Add theme nice
11098         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
11099           if enabled
11101 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
11103         * Splitter.cs: Resize docked control and its neighbor.
11105 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
11106         -- Making Windows with Menus layout correctly --
11107         * Form.cs : The first leg of the fix
11108                 Menu setter - adjust Client Size as needed to make space for the menu
11109                 SetClientSizeCore - doesn't call base version to be able to pass the 
11110                         menu handle to XplatUI.CalculateWindowRect
11111         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
11112         * XplatUIX11.cs: The critical second leg of the fix
11113                 GetWindowPos needs to use a recalculated client_rect
11114                 so that resizing the window doesn't break layout of child controls. 
11115                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
11116                 Lots of \t\n killed
11118 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
11120         * Label.cs: Now properly recalculates width and height on Font and Text
11121           changes if AutoSize is set
11123 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
11124         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
11126 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
11128         * ImageList.cs: Makes ToString method compatible with MS
11130 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
11132         * MenuAPI.cs: fixes bug 75716
11134 2005-08-11 Umadevi S <sumadevi@novell.com>
11135         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
11137 2005-08-11 Umadevi S <sumadevi@novell.com>
11138         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
11140 2005-08-10  Umadevi S <sumadevi@novell.com>
11141         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
11143 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
11145         * Menu.cs: fixes bug 75700
11146         * MenuAPI.cs: fixes navigation issues
11148 2005-08-09  Umadevi S <sumadevi@novell.com>
11149         * CheckedListBox.cs - simple fix for GetItemChecked.
11151 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
11153         * ComboBox.cs: Serveral fixes
11154         * ListBox.cs: Serveral fixes
11156 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
11158         * ComboBox.cs: Fixes FindString methods and GetItemHeight
11159         * ListBox.cs: Fixes FindString methods
11161 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
11163         * DataGrid.cs: fixes bugs exposed by new tests
11165 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
11167         * Mime.cs: Compile Mono assembly references only if compiling
11168           with Mono (Allows to build with VS.Net again)
11170 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
11172         * Control.cs (PaintControlBackground): Draw background image
11173         corrrectly.
11174         (CheckForIllegalCrossThreadCalls): Stubbed.
11175         
11176         * Form.cs (OnCreateControl): Center when should be centered.
11177         
11178         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
11180 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
11182         * Binding.cs: Binding to properties should be case unsensitive
11184 2005-07-18 vlindos@nucleusys.com
11186         * DataGrid.cs: fixes setmember order
11188 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
11190         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
11191         * FileDialog.cs: FileDialog is now resizable and uses the new
11192           MimeIconEngine
11194 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
11196         * DataGridTextBoxColumn.cs: default value
11197         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
11198         * GridTableStylesCollection.cs: fixes checking MappingName
11199         * DataGridDrawingLogic.cs: fixes drawing logic issues
11200         * DataSourceHelper.cs: rewritten to make compatible with more data sources
11201         * DataGrid.cs: fixes    
11203 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
11205         * MimeGenerated.cs: Use case sensitive comparer for
11206           NameValueCollections
11208 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
11210         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
11211         * ThemeWin32Classic.cs: bug fixes, code refactoring
11212         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
11213         * DataGrid.cs: bug fixes, code refactoring
11214         * DataGridTextBox.cs: bug fixes, code refactoring
11215         * DataGridColumnStyle.cs:  bug fixes, code refactoring
11216         * Theme.cs:  bug fixes, code refactoring
11218 2005-07-01  Peter Bartok  <pbartok@novell.com> 
11220         * TextControl.cs: Quick fix for the reported crash on ColorDialog
11221           and other text box usage
11223 2005-07-01  Jackson Harper  <jackson@ximian.com>
11225         * TabControl.cs: Make sure the bottom of the tab covers the pages
11226         border.
11228 2005-06-30  Peter Bartok  <pbartok@novell.com> 
11230         * Form.cs (ShowDialog): Assign owner of the dialog
11231         * TextBoxBase.cs: Always refresh caret size when deleting, caret
11232           might have been moved to a tag with different height
11234 2005-06-30  Jackson Harper  <jackson@ximian.com>
11236         * Form.cs: Don't create an infinite loop when setting focus
11237         * MenuItem.cs: Don't dirty the parents if we don't have any
11239 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
11241         * LibSupport.cs: Rename
11243 2005-06-29  Peter Bartok  <pbartok@novell.com>
11245         * TextBoxBase.cs: Re-align caret after deleting a character
11246         * TextControl.cs:
11247           - DeleteChars(): Ensure that tag covers the provided position
11248           - StreamLine(): Drop reference for dropped tag
11250 2005-06-29  Peter Bartok  <pbartok@novell.com> 
11252         * TextControl.cs: 
11253           - Selections now work properly, anchoring at the initial location
11254             and properly extending in either direction (SetSelectionToCaret(),
11255             SetSelectionStart() and SetSelectionEnd())
11256           - No longer redraws the whole control on selection change, now
11257             calculates delta between previous and new selection and only
11258             invalidates/redraws that area
11259           - Fixed FindPos() math off-by-one errors
11260           - Changed DeleteChars() to verify the provided tag covers the
11261             provided position, selections may have a tag that doesn't cover
11262             the position if the selection is at a tag border
11263           - Fixed off-by-one errors in DeleteChars()
11264           - Added missing streamlining check in DeleteChars() to remove
11265             zero-length tags
11266           - Implemented Invalidate() method, now properly calculates exposures
11267             between two given lines/positions
11268           - Implemented SetSelection()
11269           - Obsoleted and removed FixupSelection()
11270           - Improved RecalculateDocument() logic, removing code duplication
11272 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11274         * LibSupport.cs: changes to match different input/output arguments.
11276 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11278         * LibSupport.cs: added libsupport.so init routine.
11280 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
11281         
11282         * ControlBindingsCollection.cs
11283                 - Throws an exception on null datasource when adding
11284                 - Checks for duplicated bindings when adding
11286 2005-06-28  Jackson Harper  <jackson@ximian.com>
11288         * TreeView.cs (OnKeyDown): Support left and right properly
11289         (navigates as well as expanding and collapsing.
11290         - Add support for Multiply, this expands all the selected nodes
11291         children.
11292         - Fix some tabbing.
11294 2005-06-28  Jackson Harper  <jackson@ximian.com>
11296         * TreeView.cs: Implement keyboard navigation, currently supports,
11297         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
11298         support for toggling checkboxes with the space bar.
11300 2005-06-28  Jackson Harper  <jackson@ximian.com>
11302         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
11303         tree.
11305 2005-06-28  Jackson Harper  <jackson@ximian.com>
11307         * TreeView.cs: Add missing event.
11309 2005-06-27  Peter Bartok  <pbartok@novell.com> 
11311         * TextControl.cs:
11312           - Made line ending size configurable (now allows for counting 
11313             lineendings as \n or \r\n)
11314           - Added margin to viewport to keep caret visible on right side
11315           - Fixed translation routines for line/pos to documentpos to consider
11316             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
11317           - Fixed some line-endings to be unix style
11318           - Fixed Document.FormatText to perform it's calculations 1-based
11319           - Added descriptions for a few methods that might otherwise get 
11320             used wrong
11321           - Added NOTE section with some basic conventions to remember at 
11322             the top of the file
11323           - Major fixup for RichTextBox selection drawing:
11324             * Fixed crashes when multiple tags on a single line were selected
11325             * fixed selection box drawing not overlaying text
11326             * fixed bogus offset calculation for tags not starting at index 1
11327             * Switched behaviour from using multiple Substrings of a 
11328               StringBuilder.ToString() to using multiple 
11329               StringBuilder.ToString(start, length) statements, hoping this is
11330               faster (kept original version commented out in the code, in case
11331               original version was faster)
11332         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
11333           alignment != Left
11334         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
11335           call it as well
11337 2005-06-27  Jackson Harper  <jackson@ximian.com>
11339         * TabControl.cs: Move to the left and right with the arrow
11340         keys. These keys don't cycle beyond first and last like
11341         tab. Refresh all the tabs when scrolling them to the left or
11342         right.
11344 2005-06-27  Jackson Harper  <jackson@ximian.com>
11346         * TabControl.cs:
11347           - ToString: Added method
11348           - CreateParams: Remove TODO and comment
11349           - OnKeyDown: Cycle through bounds properly.
11350           - SelectedIndex: Scroll to the right or left if we need to
11351           display the newly selected tab.
11353 2005-06-23  Jackson Harper  <jackson@ximian.com>
11355         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
11356         set.
11358 2005-06-23  Jackson Harper  <jackson@ximian.com>
11360         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
11361         CTRL-SHIFT-TAB, and HOME, END are there any others?
11363 2005-06-23  Jackson Harper  <jackson@ximian.com>
11365         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
11367 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
11368         
11369         * DataGridTextBoxColumn.cs: fixes and enhancements
11370         * ThemeWin32Classic.cs: fixes and enhancements
11371         * DataGridBoolColumn.cs:  fixes and enhancements
11372         * DataGridDrawingLogic.cs:  fixes and enhancements
11373         * CurrencyManager.cs: fixes and enhancements
11374         * DataGrid.cs: fixes and enhancements
11375         * DataGridColumnStyle.cs:  fixes and enhancements
11377 2005-06-22  Jackson Harper  <jackson@ximian.com>
11379         * TabControl.cs: Add some missing methods that just call into the
11380         base. Make the TabPageCollection's IList interface behave in the
11381         same manner as the MS implementation.
11383 2005-06-22  Peter Bartok  <pbartok@novell.com> 
11385         * TextControl.cs: Added sanity check
11386         * TextBoxBase.cs: 
11387           - Fixed wrapping behaviour, don't set wrap on single line controls
11388             (this fixes the breakage of colordialog introduced in an earlier
11389              checkin)
11390           - Added rudimentary support for autoscrolling right-aligned controls
11391             (still needs fixing, also, center alignment scroll is missing)
11393 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
11394         
11395         * ScrollBar.cs: Fixes thumbpos on Maximum values
11397 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
11398         
11399         * PropertyGridView.cs: Pass context information to UITypeEditors 
11401 2005-06-21  Peter Bartok  <pbartok@novell.com> 
11403         * TextBoxBase.cs:
11404           - Now calling PositionCaret with absolute space coordinates
11405           - Enabled vertical scrolling
11406           - Better tracking of scrollbar changes, tied into WidthChange
11407             event
11408           - Improved cursor tracking
11409           - Removed debug output
11410         * TextControl.cs:
11411           - PositionCaret coordinates are now works in absolute space, not 
11412             the canvas
11413           - Improved tracking of document size
11414           - Added events for width and height changes
11416 2005-06-21  Peter Bartok  <pbartok@novell.com>
11418         * Form.cs: Set focus to active control when form is activated
11419         * TextControl.cs: 
11420           - Added word-wrap functionality to RecalculateLine() 
11421           - Added some short function descriptions for VS.Net to aid in
11422             writing dependent controls
11423           - Added Caret property, returning the current coords of the caret
11424           - Added ViewPortWidth and ViewPortHeight properties
11425           - Added Wrap property
11426           - Added CaretMoved event
11427           - Removed some old debug code
11428           - Split() can now create soft splits
11429           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
11430           - Added method to format existing text
11431           - Fixed size/alignment calculations to use viewport
11432           - RecalculateDocument now can handle changing line-numbers while
11433             calculating lines
11435         * TextBox.cs:
11436           - Added some wrap logic, we don't wrap if alignment is not left
11437           - Added casts for scrollbar var, base class switched types to
11438             also support RichTextBoxA
11439           - Implemented handling of scrollbar visibility flags
11441         * TextBoxBase.cs:
11442           - Switched scrollbars type to RichTextBoxScrollBars to support
11443             RichTextBox
11444           - Added tracking of canvas width/height
11445           - Switched scrollbars to be not selectable (to keep focus on text)
11446           - Added central CalculateDocument() method to handle all redraw
11447             requirements
11448           - Added ReadOnly support
11449           - Added WordWrap support
11450           - Fixed handling of Enter key (we now treat it as a DialogKey)
11451           - Fixed caret positioning when h or v scroll is not zero
11452           - Fixed placing/generation of vertical scrollbar
11453           - Added CalculateScrollBars() method to allow updating scrollbar
11454             limits and visibility
11455           - Fixed handling of horizontal scroll
11456           - Added handling of vertical scroll
11457           - Implemented auto-'jump' when caret moves to close to a left or
11458             right border and there is text to be scrolled into view (currently
11459             there's the potential for a stack overflow, until a bug in
11460             scrollbar is fixed)
11462 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
11463         
11464         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
11466 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
11468         * Mime.cs:
11469         - added inodes.
11470         - return application/x-zerosize for files with size zero
11471           (if no extension pattern matches).
11472         - check matches collection for strings too.
11473         - return only the first mime type if the name value
11474           collection has more than one mime type.
11476 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
11477         
11478         * PropertyGrid.cs: Cleaned up some TODOs
11479         * PropertyGridView.cs: Added support for UITypeEditors
11481 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
11482         
11483         * DataGrid.cs: clears cached value
11485 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
11487         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
11488         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
11489         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
11490         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
11491         
11492 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
11494         * ThemeWin32Classic.cs: fixes colour
11496 2005-06-15  Peter Bartok  <pbartok@novell.com>
11498         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
11499         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
11500         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
11501         * Control.cs: Added some MWFCategory and MWFDescription attributes
11502         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
11504 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
11506         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
11507         usage
11509 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
11511         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
11512         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
11513         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
11514         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
11515         * DataGrid.cs: default datagrid settings for Default Styles, fixes
11516         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
11518 2005-06-13  Jackson Harper  <jackson@ximian.com>
11520         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
11521         isn't printed when the user enables dropping. (X11 does accept
11522         drops).
11523         
11524 2005-06-13  Jackson Harper  <jackson@ximian.com>
11526         * TreeView.cs: Remove some TODOS.
11528 2005-06-13  Jackson Harper  <jackson@ximian.com>
11530         * Form.cs: Hook into the mdi framework.
11531         * MdiClient.cs: Use the base control collections add method so
11532         parents get setup correctly. Set the default back colour and dock
11533         style.
11534         * MdiChildContext.cs: New class, this bad actor handles an
11535         instance of an MDI window. Right now there is only basic
11536         support. You can drag, close, and resize windows. Minimize and
11537         Maximize are partially implemented.
11539 2005-06-13  Jackson Harper  <jackson@ximian.com>
11541         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
11542         freaky when both vals are negative. NOTE: There are probably other
11543         places in XplatUIX11 that this needs to be done.
11545 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
11547         * DataGrid.cs: implement missing methods, move KeyboardNavigation
11548         * DataGridColumnStyle.cs: fixes signature
11550 2005-06-12  Jackson Harper  <jackson@ximian.com>
11552         * XplatUIX11.cs: Use sizing cursors similar to the ones on
11553         windows.
11555 2005-06-11  Jackson Harper  <jackson@ximian.com>
11557         * StatusBarPanel.cs: Signature cleanups. Implement
11558         BeginInit/EndInit.
11560 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
11562         * DataGridTextBoxColumn.cs: Honors aligment
11563         * GridColumnStylesCollection.cs: Contains is case unsensitive
11564         * GridTableStylesCollection.cs: several fixes
11565         * DataGridTableStyle.cs: default column creation
11566         * DataGridDrawingLogic.cs: fixes
11567         * CurrencyManager.cs: ListName property
11568         * DataGrid.cs: multiple styles support
11569         * DataGridColumnStyle.cs: fixes
11570         
11572 2005-06-10  Peter Bartok  <pbartok@novell.com>
11574         * Control.cs(Select): Moved SetFocus call to avoid potential
11575           loops if controls change the active control when getting focus
11576         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
11577           the up/down buttons
11579 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
11581         * ImageListConverter.cs: Implemented
11583 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
11585         * MonthCalendar.cs: Wired in NumericUpDown control for year
11587 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
11589         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
11590           DoubleClick events, since they are not meant to be fired.
11592 2005-06-09  Peter Bartok  <pbartok@novell.com>
11594         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
11595           Jonathan's standalone controls into MWF, implemented missing
11596           events, attributes and methods; added xxxAccessible classes
11597         * AccessibleObject.cs: Made fields internal so other classes
11598           can change them if needed
11600 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
11602         * UpDownBase.cs: Complete implementation
11603         * NumericUpDown.cs: Complete implementation
11604         * DomainUpDown.cs: Complete implementation
11606 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
11608         * DataGridTextBoxColumn.cs: drawing fixes
11609         * DataGridCell.cs: fixes ToString method to match MSNet
11610         * DataGridTableStyle.cs: fixes
11611         * DataGridBoolColumn.cs: fixes, drawing
11612         * DataGridDrawingLogic.cs: fixes, new methods
11613         * DataGridTextBox.cs: Keyboard and fixes
11614         * DataGrid.cs:
11615                 - Keyboard navigation
11616                 - Scrolling fixes
11617                 - Row selection (single, multiple, deletion, etc)
11618                 - Lots of fixes
11619         
11620 2005-06-07  Jackson Harper  <jackson@ximian.com>
11622         * ThemeWin32Classic.cs: Clear the background area when drawing
11623         buttons.
11625 2005-06-06  Peter Bartok  <pbartok@novell.com>
11627         * ImageListStreamer.cs: Fixed signature for GetData
11628         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
11629         * ComboBox.cs:
11630           - Added missing ChildAccessibleObject class
11631           - Added missing OnXXXFocus overrides, switched to using those
11632             instead of the event handler
11633         * Control.cs:
11634           - Added Parent property for ControlAccessibleObject
11635           - Fixed signatures
11636           - Fixed attributes
11637           - Added ResetBindings()
11638         * ListBindingConverter.cs: Implemented some methods
11639         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
11640         * ImageList.cs: Implemented basic handle scheme, removed TODOs
11641         * ContainerControl.cs: Fixed signature, now subscribing to the
11642           ControlRemoved event instead of overriding the handler, LAMESPEC
11643         * CurrencyManager.cs: Added missing attribute
11644         * MonthCalendar.cs: Added missing properties
11646 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
11648         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
11649         
11650 2005-06-06  Gaurav Vaish and Ankit Jain
11652         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
11653         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
11654         
11655 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
11657         * Control.cs: fixes CreateParams Width / Height.
11659 2005-06-05  Peter Bartok  <pbartok@novell.com>
11661         * Win32DnD.cs: Removed compilation warnings
11663 2005-06-05  Peter Bartok  <pbartok@novell.com>
11665         * Control.cs (CreateParams): Since we don't know if one of the
11666           properties we use is overridden, lets make sure if we fail accessing
11667           we continue with a backup plan
11669 2005-06-05  Peter Bartok  <pbartok@novell.com>
11671         * Win32DnD.cs:
11672           - Removed debug output
11673           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
11674             struct
11675           - Plugged resource leak
11676         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
11677           MS size
11679 2005-06-05  Peter Bartok  <pbartok@novell.com>
11681         * XplatUIWin32.cs: Removed DnD code
11682         * Win32DnD.cs: Implemented drop source and drop target functionality
11684 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11686         * UpDownBase.cs: remove duplicate addition of event, enable some code
11687         that was commented out.
11688         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
11689         Validate input when a key is pressed. It works fine now for every
11690         combination of Hexadecimal. Only missing some drawing love when sharing
11691         space with other controls.
11693 2005-06-04  Peter Bartok  <pbartok@novell.com>
11695         * Control.cs:
11696           - We need to pass a window for DragDrop, so enable callback events
11697           - Added DnD callback events when being a DragSource
11698         * XplatUI.cs (StartDrag): Added window handle argument
11699         * XplatUIDriver.cs (StartDrag): Added window handle argument
11700         * QueryContinueDragEventArgs: Made fields internally accessible so
11701           drivers can set them
11702         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
11703           can set them
11705 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
11707         * DataGridTextBoxColumn.cs: column text editing
11708         * DataGridTableStyle.cs: Respect columns styles created by the user
11709         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
11710         * DataGridBoolColumn.cs: bool column editing
11711         * DataGrid.cs: fixes to scrolling, properties, etc
11712         * DataGridTextBox.cs: handle keyboard
11713         * DataGridColumnStyle.cs: fixes
11715 2005-06-02  Jackson Harper  <jackson@ximian.com>
11717         * ImageListStreamer.cs: Somewhat broken implementation of
11718         GetObjectData. The RLE needs some work to match MS properly.
11720 2005-06-02  Jackson Harper  <jackson@ximian.com>
11722         * X11Dnd.cs: Attempting to keep at least one file in MWF
11723         monostyled.
11725 2005-06-02  Peter Bartok  <pbartok@novell.com>
11727         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
11728           that way
11730 2005-06-02  Peter Bartok  <pbartok@novell.com>
11732         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
11733         * XplatUI.cs: Added DoDragDrop() method
11734         * XplatUIDriver.cs: Added DoDragDrop() method
11736 2005-06-02  Jackson Harper  <jackson@ximian.com>
11738         * Splitter.cs: Implement BorderStyle.
11740 2005-06-02  Jackson Harper  <jackson@ximian.com>
11742         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
11743         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
11744         X11 using XDND.
11746 2005-06-02  Peter Bartok  <pbartok@novell.com>
11748         * DataObject.cs:
11749           - Added Data setter
11750           - Fixed broken insertion code for SetData, now also
11751             overwrites any existing entry of the same format name
11752         * Hwnd.cs: Added list of pointers that automatically gets
11753           freed when the window is disposed
11754         * XplatUI.cs: Call driver initialization method when loading
11755           a driver
11756         * Control.cs:
11757           - OnDragLeave takes EventArgs, not DragEventArgs
11758           - Added setting of WS_EX_ACCEPTFILES style when dropping is
11759             supported
11760           - Forces style update when drop state changes
11761         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
11762           not perfect since we cannot (yet) call the IDataObject.GetData()
11763           method, we keep getting 0x80004005 error, dunno why)
11765 2005-06-02  Peter Bartok  <pbartok@novell.com>
11767         * DragEventArgs.cs: Make fields internal so we can cache the
11768           object and re-set the fields from XplatUI
11770 2005-06-02  Jackson Harper  <jackson@ximian.com>
11772         * Control.cs: Add some internal methods so the DnD subsystem can
11773         raise DnD events. Also call into the driver when AllowDrop is set.
11774         * XplatUI.cs:
11775         * XplatUIDriver.cs: New method for setting whether or not a window
11776         is allowed to accept drag and drop messages.
11777                 
11778 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
11779         
11780         * ScrollBar.cs: Make sure that values sent in Scroll events
11781         are always between Maximum and Minimum.
11783 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
11785         * Menu.cs: Call MenuChanged when menuitem visibility has been
11786         changed.
11787         * MenuItem.cs: Rebuild menu when item is (not) visible.
11788         * MainMenu.cs: MainMenu has special MenuChanged.
11789         * Theme.cs: Caption and FrameBorderSize are not fixed.
11790         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
11791         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
11792         * XplatUIX11.cs,
11793         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
11794         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
11796 2005-05-30  Jackson Harper  <jackson@ximian.com>
11798         * DataFormat.cs: We can't statically initialize this stuff because
11799         it calls into the xplatui and could create a loop. So we lazy init
11800         it.
11802 2005-05-28  Jackson Harper  <jackson@ximian.com>
11804         * Control.cs: Proper implementation of Product(Name/Version).
11806 2005-05-27  Jackson Harper  <jackson@ximian.com>
11808         * DataObject.cs: Dont crash if no data is found.
11810 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
11811         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
11812                 as per status page, guessing it should be set to true
11814 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
11816         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
11817         * DataGridTableStyle.cs: set proper formatting text, def header text
11818         * ThemeWin32Classic.cs: new themable paramaters
11819         * DataGridBoolColumn.cs: paint check box, get data, fixes
11820         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
11821         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
11822         * DataGridColumnStyle.cs: fixes
11823         * Theme.cs: new themable paramaters
11824                 
11825 2005-05-26  Peter Bartok  <pbartok@novell.com>
11827         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
11829 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
11830         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
11832 2005-05-24  Peter Bartok  <pbartok@novell.com>
11834         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
11835           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
11836           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
11837           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
11838           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
11839           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
11840           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
11841           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
11842           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
11843           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
11844           missing attributes, etc
11845         * DataGridPreferredColumnWidthTypeConverter.cs: Added
11847 2005-05-24  Peter Bartok  <pbartok@novell.com>
11849         * Help.cs: Added, implemented trivial functions, throws up MessageBox
11850           when user tries to get help
11851         * DataObject.cs, DataFormats.cs, LinkArea.cs,
11852           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
11853           to suppress warnings
11854         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
11855           avoid unreachable code warning
11857 2005-05-20  Peter Bartok  <pbartok@novell.com>
11859         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
11861 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
11863         * DataGridTextBoxColumn.cs: Basic painting methods
11864         * DataGridTableStyle.cs: Set table style in the column
11865         * ThemeWin32Classic.cs: Use Theme for colors
11866         * DataGridDrawingLogic.cs: Implement more drawing
11867         * DataGrid.cs: drawing, theming, enhacements, fixes
11868         * DataGridColumnStyle.cs: fixes, drawing
11869         * Theme.cs: theming for Datagrid
11871 2005-05-20  Peter Bartok  <pbartok@novell.com>
11873         * Cursor.cs: Implemented GetObjectData() method
11875 2005-05-20  Peter Bartok  <pbartok@novell.com>
11877         * Cursors.cs: Added setting of cursor name
11878         * Cursor.cs:
11879           - Implemented constructors
11880           - Implemented Draw and DrawStretched
11881           - Implemented Current property
11882           - Implemented == and != operators
11883           - Implemented Dispose()
11884           - Implemented ToString
11885           - Added missing attributes
11886         * XplatUIX11.cs:
11887           - Added missing reset for OverrideCursor when DoEvents is called
11888           - Fixed creation of cursor, logic was wrong
11889         * XplatUIWin32.cs:
11890           - Added missing reset for OverrideCursor when DoEvents is called
11891           - Fixed creation of cursor, bit arrays were swapped
11892         * Clipboard.cs: Removed obsolete MonoTODO attribute
11894 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
11896         * ComboBox.cs: fixes OnSelectedItemChanged
11897         * ControlBindingsCollection.cs: fixes item range check
11899 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
11901         * UpDownBase.cs:
11902                 - Calc preferred height properly
11903                 - Implement missing properties
11904                 
11905         * NumericUpDown.cs: Implement missing events
11907 2005-05-19  Jackson Harper  <jackson@ximian.com>
11909         * TabControl.cs: New method that resizes the tab pages before
11910         redrawing them. This as needed as the control is double buffered
11911         and sizing will not be recalculated unless ResizeTabPages is
11912         called.
11913         * TabPage.cs: Set base.Text instead of Text in the constructor so
11914         that UpdateOwner does not get called. Use the new Redraw method of
11915         TabControl instead of Refresh so the sizing is recalculated.
11916         * ThemeWin32Classic.cs: Draw the text for button tabs.
11918 2005-05-19  Jackson Harper  <jackson@ximian.com>
11920         * Control.cs: Paint control background images. Fix typo where
11921         PaintControlBackground was not getting called correctly.
11923 2005-05-19  Peter Bartok  <pbartok@novell.com>
11925         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
11926           I can investigate, apparently I broke FileDialog
11928 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
11930         * AxHost.cs: Some simple properties.
11931         * Control.cs: window must be accessible after ctor.
11932         * Form.cs: Added TransparencyKey property.
11933         * TextBoxBase.cs: Implemented Clear. Text property can be null.
11934         * XplatUIWin32.cs: SetBorderStyle implemented.
11936 2005-05-18  Peter Bartok  <pbartok@novell.com>
11938         * DataObject.cs: Entries are not global but particular to the
11939           DataObject, now it behaves that way
11940         * XplatUIWin32.cs: Implemented Clipboard methods
11941         * Clipboard.cs: Implemented
11942         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
11943         * XplatUIOSX.cs: Updated to final clipboard prototypes
11944         * XplatUIX11.cs: Implemented Clipboard methods
11945         * XplatUIDriver.cs: Updated to final clipboard prototypes
11946         * XplatUIStructs.cs:
11947           - Added BITMAPINFOHEADER struct
11948           - Added ClipboardFormats enum
11949         * X11Structs.cs:
11950           - Added ClipboardStruct
11951           - Added Atom enum items for clipboard types
11952           - Fixed atom types for Selection event structures
11953         * DataFormats.cs:
11954           - Added internal properties and methods for drivers to enumerate
11955             all known formats
11956           - Switched initialization method to allow drivers to assign their
11957             own IDs even for the MS predefined clipboard IDs
11958         * XplatUI.cs: Updated to final clipboard interface
11960 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
11961         * PropertyGridView.cs: Fixed compiler warnings.
11963 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
11964         * PropertyGrid.cs: Added some event calls
11965         * PropertyGridView.cs: Change drawing code to use double buffering
11966         * PropertyGridTextBox.cs: Changed Text property name
11967         * GridItem.cs: Added Bounds property.
11968         * GridEntry.cs: Added Bounds property.
11970 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
11972         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
11973         since GetType() may not return the correct type if the object is
11974         a remoting proxy.
11976 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
11978         * TreeNodeCollection.cs: fixes get/set item ranges
11979         
11980 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
11982         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
11983                 
11984 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
11986         * ComboBox.cs: Fix item range comparation
11987         * ListView.cs: Fix item range comparation
11989 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
11991         * FontDialog.cs:
11992           - Clear example panel when OnPaint is called
11993           - Better solution for displaying the example panel text
11994           - Select default indexes in the ListBoxes
11996 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
11998         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
12000 2005-05-11  Peter Bartok  <pbartok@novell.com>
12002         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
12003         * SelectionRangeConverter.cs: Implemented
12004         * PropertyGrid.cs: Fixed attribute value
12005         * Control.cs:
12006           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
12007           - Added Sebastien Pouliot's CAS Stack Propagation fixes
12008         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
12009           that's common to all drivers. First methods to go there are
12010           Sebastien Pouliot's CAS Stack Propagation helper methods
12011         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
12012           Sebastien Pouliot for CAS Stack Propagation
12014 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
12016         * OSXStructs.cs:
12017           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
12019 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
12021         * DataGridTextBoxColumn.cs: fixed some members
12022         * GridColumnStylesCollection.cs: indexed column is case insensitive
12023         * DataGridTableStyle.cs: fixes
12024         * ThemeWin32Classic.cs: add new theme parameter
12025         * Theme.cs: add new theme parameter
12026         * DataGridDrawingLogic.cs: Datagrid's drawing logic
12027         * DataGrid.cs: fixes, new internal properties, etc.
12028         * DataGridColumnStyle.cs: allows to set grid value
12029         *
12031 2005-05-10  Peter Bartok  <pbartok@novell.com>
12033         * AccessibleObject.cs:
12034           - Removed MonoTODO attribute on help, method is correct
12035           - Fixed Bounds property
12036         * AxHost.cs: Moved MonoTODO
12037         * ButtonBase.cs: Now setting AccessibleObject properties
12038         * RadioButton.cs: Setting proper AccessibleObject role
12039         * CheckBox.cs: Setting proper AccessibleObject role
12040         * ControlBindingsCollection.cs: Added properties, methods and attributes
12041         * DataFormats.cs: Fixed awkward internal API, and changed to enable
12042           userdefined DataFormats.Format items as well
12043         * ListControl.cs: Removed data_member from the public eye
12044         * OpenFileDialog.cs:
12045           - Made class sealed
12046           - Added missing attributes
12047         * SaveFileDialog.cs: Added missing attributes
12048         * ImageListStreamer.cs: Fixed code that caused warnings
12049         * LinkLabel.cs: Removed unreachable code
12050         * TreeView.cs: Fixed code that caused warnings
12051         * PropertyGridView.cs: Fixed code that caused warnings
12052         * GridColumnStylesCollection.cs: Added missing attributes
12053         * GridTableStylesCollection: Added missing attribute
12054         * PropertyManager: Added .ctor
12055         * SecurityIDType: Added
12056         * DataObject.cs: Implemented class
12057         * LinkArea.cs: Added missing attribute
12059 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
12061         * RadioButton.cs: call base method to allow to fire OnClick event
12062         * UpDownBase.cs: OnMouseUp call base method
12063         * CheckedListBox.cs: call base method before returning
12064         * TrackBar.cs: call base method before returning
12065         
12067 2005-05-10  Peter Bartok  <pbartok@novell.com>
12069         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
12070           for messages
12072 2005-05-10  Peter Bartok  <pbartok@novell.com>
12074         * DataFormats.cs: Implemented
12075         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
12076           XplatUIX11.cs: Added Clipboard APIs
12077         * XplatUIWin32.cs: Implemented Clipboard APIs
12078         * FolderBrowserDialog.cs: Added missing event, attributes
12080 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
12082         * CheckBox.cs: call base method to allow to fire OnClick event
12084 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
12086         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
12088 2005-05-06  Peter Bartok  <pbartok@novell.com>
12090         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
12091         * Screen.cs: Implemented
12092         * HelpNavigator.cs: Added
12093         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
12094           property
12095         * HelpProvider.cs: Implemented all we can do until we have a CHM
12096           help library (which means that "What's This" does work now)
12098 2005-05-06  Jackson Harper  <jackson@ximian.com>
12100         * XplatUIX11.cs: Fix waking up the main loop.
12101                 
12102 2005-05-05  Peter Bartok  <pbartok@novell.com>
12104         * XplatUI.cs: Updated revision
12105         * Form.cs: Removed enless loop
12106         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
12107         * Label.cs (OnPaint): Added call to base.OnPaint()
12108         * ToolTip.cs: Made ToolTipWindow reusable for other controls
12109         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
12110         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
12111         * AxHost.cs: Added
12112         * ButtonBase.cs: Moved base.OnPaint() call to end of method
12113         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
12114           to ToolTip.ToolTipWindow for drawing and size methods; this allows
12115           reuse of ToolTipWindow by other controls
12116         * SizeGrip.cs: Moved base.OnPaint() call to end of method
12117         * XplatUIX11.cs: Now clipping drawing area (experimental)
12118         * PictureBox.cs: Moved base.OnPaint() call to end of method
12119         * Theme.cs: Fixed ToolTip abstracts to match new format
12120         * ErrorProvider.cs: Implemented
12122 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
12124         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
12125         * LinkLabel.cs:
12126                 - Adds cursors
12127                 - Handles focus
12128                 - Implements LinkBehavior
12129                 - Fixes many issues
12131 2005-05-03  Jackson Harper  <jackson@ximian.com>
12133         * ListView.cs: Calculate the scrollbar positioning on resize and
12134         paint, so they get put in the correct place.
12136 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
12138         * ColorDialogs.cs: The small color panels are now handled by
12139           SmallColorControl. This fixes drawing of the focus rectangle
12140           and adds a 3D border.
12142 2005-05-03  Peter Bartok  <pbartok@novell.com>
12144         * Control.cs: Modified version of Jonathan Chamber's fix for
12145           double-buffering
12147 2005-05-03  Jackson Harper  <jackson@ximian.com>
12149         * ListView.cs: Remove redraw variable. Control now handles whether
12150         or not a redraw needs to be done, and will only raise the paint
12151         event if redrawing is needed.
12153 2005-05-03  Jackson Harper  <jackson@ximian.com>
12155         * Splitter.cs: No decorations for the splitter form. Cache the
12156         hatch brush.
12158 2005-05-03  Jackson Harper  <jackson@ximian.com>
12160         * TreeView.cs: Use dashed lines to connect nodes. Use the
12161         ControlPaint method for drawing the focus rect instead of doing
12162         that in treeview.
12164 2005-05-02  Peter Bartok  <pbartok@novell.com>
12166         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
12168 2005-04-29  Jackson Harper  <jackson@ximian.com>
12170         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
12171         entire image buffer. Just clear the clipping rectangle.
12173 2005-04-29  Jackson Harper  <jackson@ximian.com>
12175         * ThemeWin32Classic.cs: Don't draw list view items that are
12176         outside the clipping rectangle.
12178 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
12180         * ListBox.cs: added horizontal item scroll
12182 2005-04-29  Jackson Harper  <jackson@ximian.com>
12184         * ThemeWin32Classic.cs: Remove some old debug code that was
12185         causing flicker with the new double buffering code.
12187 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
12189         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
12190         behave like combobox and comboboxlist (still not sure if this is
12191         correct though).
12193 2005-04-28  Jackson Harper  <jackson@ximian.com>
12195         * ThemeWin32Classic.cs: Don't fill the middle of progress
12196         bars. This fills areas outside of the clip bounds that don't need
12197         to be filled.
12199 2005-04-28  Jackson Harper  <jackson@ximian.com>
12201         * Control.cs: Don't expose functionality to touch the image buffers.
12202         * ProgressBar.cs:
12203         * ListView.cs: We do not need to (and no longer can) manipulate
12204         the image buffers directly. All of this is handled by Control.
12206 2005-04-28  Peter Bartok  <pbartok@novell.com>
12208         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
12209           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
12210           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
12212 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
12214         * Combobox:
12215                 - Adjust control's height for non-simple comboboxes (bug fix)
12216                 - Remove dead code
12217         * MenuAPI.cs: remove unused var
12218         * ScrollBar.cs: remove unsed var
12219                  
12220         * ListBox.cs: unselect items when clearing
12222 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
12224         * ListControl.cs: honors OnPositionChanged and default Selected Item
12225         * ListBox.cs: unselect items when clearing
12227 2005-04-27  Jackson Harper  <jackson@ximian.com>
12229         * X11Keyboard.cs: Initialize a default keyboard and give a warning
12230         if a "correct" keyboard is not found. This will make us not crash,
12231         but might give some users bad keyboard layouts...seems to be the
12232         same thing rewind does.
12234 2005-04-27  Jackson Harper  <jackson@ximian.com>
12236         * BindingManagerBase.cs: Attach the current/position changed
12237         handlers to their respective events.
12239 2005-04-27  Jackson Harper  <jackson@ximian.com>
12241         * Control.cs: Make sure that the first WM_PAINT does a full draw,
12242         not just a blit.
12243         * ThemeWin32Classic.cs: Don't fill the background for picture
12244         boxes. This could overright user drawing.
12245         * ComboBox.cs: Just fill the clipping rect not the entire client
12246         rect when drawing the background. This prevents pieces of the
12247         image buffer from getting overwritten and is theoretically faster.
12249 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
12251         * ComboBox.cs: Databinding support fixes, fire missing events
12252         * ListControl.cs: implement missing methods and properties, fixes
12253         * ThemeWin32Classic.cs: Databiding support on Drawing
12254         * CheckedListBox.cs: Databinding support fixes, fire missing events
12255         * ListBox.cs: Databinding support fixes, fire missing events
12256         
12257 2005-04-25  Peter Bartok  <pbartok@novell.com>
12259         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
12261 2005-04-25  Jackson Harper  <jackson@ximian.com>
12263         * TreeView.cs: Use the horizontal scrollbars height not width when
12264         determining how much of the client area is available.
12266 2005-04-25  Jackson Harper  <jackson@ximian.com>
12268         * Control.cs: Double buffering is handled differently now. As per
12269         the spec, the extra buffer is created in the WM_PAINT message and
12270         passed down to the control's drawing code.
12271         * GroupBox.cs:
12272         * Label.cs:
12273         * CheckBox.cs:
12274         * ProgressBar.cs:
12275         * RadioButton.cs:
12276         * ColorDialog.cs:
12277         * ComboBox.cs:
12278         * PropertyGridView.cs:
12279         * UpDownBase.cs:
12280         * MessageBox.cs:
12281         * MenuAPI.cs:
12282         * ListView.cs:
12283         * ButtonBase.cs:
12284         * SizeGrip.cs:
12285         * ScrollBar.cs:
12286         * ListBox.cs:
12287         * TrackBar.cs:
12288         * ToolBar.cs:
12289         * PictureBox.cs:
12290         * DateTimePicker.cs:
12291         * StatusBar.cs:
12292         * TreeView.cs: Update to new double buffering system.
12293         * MonthCalendar.cs: Uncomment block, as Capture is now
12294         working. Update to new double buffering
12295         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
12296         * PaintEventArgs.cs: New internal method allows us to set the
12297         graphics object. This is used for double buffering.
12298         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
12299         rectangle. The internal paint_area var has been removed from
12300         StatusBar. The clipping rect should be used instead.
12301         * Theme.cs: Give the PictureBox drawing method a clipping rect.
12302         * TabPage.cs: The RefreshTabs method was removed, so just call the
12303         tab controls Refresh method now.
12304         * TabControl.cs: Update to new double buffering. Make sure the
12305         handle is created before sizing the tab pages, otherwise we will
12306         get stuck in a loop.
12308 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
12310         * LinkLabel.cs: Fix typo, bug #74719; patch
12311           from Borja Sanchez Zamorano
12313 2005-04-22  Jackson Harper  <jackson@ximian.com>
12315         * TreeNode.cs: Implement Handle stuff.
12316         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
12318 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
12320         * DataGridTextBoxColumn.cs: call base constructors, fixes
12321         * GridColumnStylesCollection.cs: missing events, methods, and functionality
12322         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
12323         * DataGridTableStyle.cs: implements create default column styles
12324         * DataGridBoolColumn.cs: which types can handle
12325         * DataGrid.cs: missing methods, fixes, new functionality
12326         * DataGridColumnStyle.cs: fixes
12328 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
12329         * FolderBrowserDialog.cs:
12330         - Use a thread to fill the TreeView
12331         - Adjusted some sizes
12333 2005-04-19  Peter Bartok  <pbartok@novell.com>
12335         * LinkLabel.cs: (Re-)create the pieces when setting the Text
12336           property. Fixes #74360.
12338 2005-04-19  Jackson Harper  <jackson@ximian.com>
12340         * XEventQueue.cs: Lock when getting the lockqueue size.
12341         * PictureBox.cs: Call base OnPaint
12342         
12343 2005-04-19  Peter Bartok  <pbartok@novell.com>
12345         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
12346           messages were no longer being processed (this broke BeginInvoke)
12348           
12349 2005-04-18  Jackson Harper  <jackson@ximian.com>
12351         * TreeView.cs: buglet that caused node images to get drawn
12352         regardless of whether or not they were in the clipping rectangle.
12354 2005-04-18  Jackson Harper  <jackson@ximian.com>
12356         * CurrencyManager.cs: There are four rules for GetItemProperties:
12357         - If the type is an array use the element type of the array
12358         - If the type is a typed list, use the type
12359         - If the list contains an Item property that is not an object, use
12360         that property
12361         - use the first element of the list if there are any elements in
12362         the list.
12363         
12364 2005-04-17  Jackson Harper  <jackson@ximian.oom>
12366         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
12367         click. This handles offsets for scrolling properly and reduces
12368         memory. Also fixed GetNode to not offset now that TopNode works
12369         properly.
12370         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
12371         
12372 2005-04-17  Jackson Harper  <jackson@ximian.com>
12374         * CursorConverter.cs: Initial implementation.
12376 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
12378         * ListControl.cs: work towards complex data binding support on ListControl
12379         * CurrencyManager.cs: work towards complex data binding support on ListControl
12380         * ListBox.cs: work towards complex data binding support on ListControl
12383 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
12385         * GridTableStylesCollection.cs: fixes name and constructor
12386         * DataGridTableStyle.cs: fixes
12387         * DataGridBoolColumn.cs: fixes names and constructors
12388         * DataGrid.cs: define methods and properties. Some init implementations
12389         * DataGridCell.cs: define methods and properties. Some init implementations
12390         * GridTablesFactory.cs: Define methods and properties
12392 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
12394         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
12395         graphics port changes.  We still want the coordinates in global screen
12396         coordinates.
12398 2005-04-14  Jackson Harper  <jackson@ximian.com>
12400         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
12401         check plus minus or checkbox clicks unless those features are enabled.
12403 2005-04-14  Jackson Harper  <jackson@ximian.com>
12405         * TreeView.cs: Add methods for setting the top and bottom visible
12406         nodes. TreeNode::EnsureVisible uses these methods.
12407         * TreeNode.cs: Implement EnsureVisible
12409 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
12411         * Form.cs: Pospone menu assignation if the window has not been created yet
12412         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
12413         size and position
12415 2005-04-12  Jackson Harper  <jackson@ximian.com>
12417         * TreeView.cs: Set the TopNode properly when scrolling
12418         occurs. This has the added benifit of reducing the amount of
12419         walking that needs to be done when drawing. Also removed an old
12420         misleading TODO.
12421         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
12422         
12423 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
12425         * Timer.cs: fixes interval setting when the timer is already enabled
12426         
12427 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
12429         * FolderBrowserDialog.cs: First approach
12431 2005-04-09  Peter Bartok  <pbartok@novell.com>
12433         * FolderBrowserDialog: Added
12435 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
12437         * LinkLabel.cs: move drawing code into the theme
12438         * ThemeWin32Classic.cs: drawing code and painting background bugfix
12439         * Theme.cs: define DrawLinkLabel method
12441 2005-04-05  Jackson Harper  <jackson@ximian.com>
12443         * BindingContext.cs: Use weak references so these bad actors don't
12444         stay alive longer then they need to.
12446 2005-04-05  Jackson Harper  <jackson@ximian.com>
12448         * ListControl.cs: Basic implementation of complex databinding.
12449         * ComboBox.cs:
12450         * ListBox.cs: Add calls to ListControl databinding methods.
12452 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
12454         * FileDialog.cs:
12455           - Don't change PopupButtonState to Normal when the
12456             PopupButton gets pressed several times.
12457           - Renamed ButtonPanel to PopupButtonPanel
12459 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
12461         * ColorDialog.cs: Use cached objects instead of creating them
12462         * LinkLabel.cs: Use cached objects instead of creating them
12463         * Splitter.cs: Use cached objects instead of creating them
12464         * FontDialog.cs: Use cached objects instead of creating them
12465         * PropertyGridView.cs: Use cached objects instead of creating them
12466         * MessageBox.cs: Use cached objects instead of creating them
12467         * FileDialog.cs: Use cached objects instead of creating them
12468         * ThemeWin32Classic.cs: Use cached objects instead of creating them
12469         * TreeView.cs: Use cached objects instead of creating them
12470         
12471 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
12473         * Control.cs: use Equals to compare the font since no == op
12474         * ScrollBar.cs: use Equals to compare the font since no == op
12476 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
12478         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
12480 2005-04-01  Jackson Harper  <jackson@ximian.com>
12482         * Binding.cs: Implement IsBinding.
12483         * BindingManagerBase.cs:
12484         * PropertyManager.cs:
12485         * CurrencyManager.cs: Add IsSuspended property.
12487 2005-04-01  Jackson Harper  <jackson@ximian.com>
12489         * Binding.cs: Had some IsAssignableFrom calls backwards.
12491 2005-04-01  Jackson Harper  <jackson@ximian.com>
12493         * Binding.cs: Handle null data members when pulling data.
12494         * PropertyManager.cs: Handle the data member being a property that
12495         does not exist.
12497 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
12499         * DataGridTextBoxColumn.cs: fixes signature
12500         * DataGrid.cs: calls right constructor
12502 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
12504         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
12505         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
12506         * GridTableStylesCollection.cs: implements GridTableStylesCollection
12507         * DataGridTableStyle.cs: implements DataGridTableStyle
12508         * DataGridBoolColumn.cs: implements DataGridBoolColumn
12509         * DataGridTextBox.cs: implements DataGridTextBox
12510         * DataGridColumnStyle.cs: implements DataGridColumnStyle
12512 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
12514         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
12516 2005-03-29  Peter Bartok  <pbartok@novell.com>
12518         * Application.cs:
12519           - Properly implemented CompanyName property
12520           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
12521             returns a path that includes CompanyName, ProductName and
12522             Version (fixes bug #70330)
12524 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
12526         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
12527           fixes bug #72588.
12529 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
12531         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
12532         
12533           - Added ReadOnly CheckBox
12534           - Further refactoring: moved some code from Open-/SaveFileDialog
12535             to FileDialog
12537 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
12539         * OpenFileDialog.cs: Fixed CheckFileExists
12540         * FileDialog.cs:
12541           Moved FileView and DirComboBox outside FileDialog class.
12542           They can now be used outside FileDialog
12544 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
12546         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
12547         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
12549 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
12551         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
12552           - Added missing CreatePrompt property in SaveDialog
12553           - Overall SaveDialog handling should be better now
12554           - Added non standard ShowHiddenFiles property
12555           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
12556           - Added InitialDirectory and RestoreDirectory support
12558 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
12560         * FileDialog.cs: Made dirComboBox usable
12562 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
12564         * FileDialog.cs: Added Filter support (case sensitiv)
12566 2005-03-24  Jackson Harper  <jackson@ximian.com>
12568         * TabControl.cs: Need a couple more pixels for the lines.
12570 2005-03-23  Jackson Harper  <jackson@ximian.com>
12572         * TabControl.cs: Give the tab page focus when it is selected.
12574 2005-03-23  Jackson Harper  <jackson@ximian.com>
12576         * TabControl.cs: Account for the drawing of tabs borders when
12577         invalidating. If the slider was clicked dont do click detection on
12578         the tabs.
12580 2005-03-23  Jackson Harper  <jackson@ximian.com>
12582         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
12584 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
12586         * CategoryGridEntry.cs: Added
12587         * GridItem.cs: Added helper properties
12588         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
12589         * GridEntry.cs: Updated code for collection
12590         * PropertyGrid.cs: Cleaned up some formatting
12591         * PropertyGridView.cs: Added drop down functionality for enums.
12592         * GridItemCollection.cs: Added enumerator logic
12593         * PropertyGridEntry.cs: Added
12595 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
12597         * FileDialog.cs:
12598           - Removed unnecessary commented code
12599           - Fixed handling for entering the filename manually in the combobox
12601 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
12603         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
12605 2005-03-18  Peter Bartok  <pbartok@novell.com>
12607         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
12608           them being touching the border
12610 2005-03-18  Peter Bartok  <pbartok@novell.com>
12612         * TextControl.cs: Quick hack to center text better
12614 2005-03-18  Peter Bartok  <pbartok@novell.com>
12616         * ControlPaint.cs:
12617           - Don't throw NotImplemented exceptions, just print a notice once
12618             instead (requested by Miguel). This makes running existing SWF
12619             apps a bit easier
12620         * Control.cs:
12621           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
12622           - Added context menu trigger on right click
12623         * Panel.cs: Trigger invalidate on resize
12624         * StatusBar.cs:
12625           - Removed old double-buffer drawing
12626           - Added ResizeRedraw style to force proper update of statusbar
12627         * ListView.cs:
12628           - Removed debug output
12629         * ThemeWin32Classic.cs:
12630           - Fixed drawing of status bar, now draws Text property if there
12631             are no defined panels
12633 2005-03-18  Jackson Harper  <jackson@ximian.com>
12635         * ImageList.cs: When the image stream is set pull all the images
12636         from it.
12637         * ImageListStreamer.cs: Implement reading image list streams.
12639 2005-03-18  Peter Bartok  <pbartok@novell.com>
12641         * ThemeWin32Classic.cs (DrawPictureBox):
12642           - Fixed calculations for centered drawing
12643           - Fixed drawing for normal mode, not scaling the image on normal
12645 2005-03-18  Peter Bartok  <pbartok@novell.com>
12647         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
12648           textbox
12649         * FileDialog.cs:
12650           - Made Open/Save button the accept button for FileDialog
12651           - Tied the cancel button to the IButtonControl cancel button
12652           - Save/Open now properly builds the pathname
12653           - Now handles user-entered text
12654           - Preventing crash on right-click if no item is selected
12655           - Fixed Text property, now uses contents of textbox
12656           - Fixed SelectedText property, now just returns the text part that
12657             is selected in the text box
12659 2005-03-18  Jackson Harper  <jackson@ximian.com>
12661         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
12662         rect, make sure to de-adjust the interior rect after drawing the
12663         tab text.
12665 2005-03-18  Peter Bartok  <pbartok@novell.com>
12667         * MenuAPI.cs: Remove menu *before* executing selected action to
12668           prevent the menu from 'hanging around'
12669           
12670 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
12672         * XplatUIOSX.cs: Implemented WorkingArea property
12674 2005-03-17  Peter Bartok  <pbartok@novell.com>
12676         * XplatUIX11.cs: Fixed menu coord calculations
12677         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
12678           for calculating offsets
12680 2005-03-17  Peter Bartok  <pbartok@novell.com>
12682         * Hwnd.cs: Do not consider menu presence for default client
12683           rectangle location/size
12684         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
12685           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
12686           translation functions
12687         * FileDialog.cs: Fixed (what I presume is a) typo
12689 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
12691         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
12692           X access (avoids X-Async errors)
12694 2005-03-16  Jackson Harper  <jackson@ximian.com>
12696         * TabControl.cs: Raise the SelectedIndexChanged event.
12698 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
12700         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
12701           - Removed vertical ToolBar and replaced it with a custom panel
12702             (desktop and home button already work)
12703           - Added Help button (some controls get resized or relocated then)
12704           - Draw correct text depending on Open or Save.
12705           - Fixed some typos...
12707 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
12709         * ScrollBar.cs:
12710           - Only change Maximum and Minimum when need it (bug fix)
12712 2005-03-15  Peter Bartok  <pbartok@novell.com>
12714         * Form.cs: Use Handle for icon, to trigger creation if
12715           the window does not yet exist
12716         * Control.cs:
12717           - CanSelect: Slight performance improvement
12718           - Focus(): Preventing possible recursion
12719           - Invalidate(): Removed ControlStyle based clear flag setting
12720           - WM_PAINT: fixed logic for calling OnPaintBackground
12721           - WM_ERASEBKGND: Fixed logic, added call to new driver method
12722             EraseWindowBackground if the control doesn't paint background
12723         * XplatUIWin32.cs:
12724           - Moved EraseWindowBackground() method to internal methods
12725           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
12726             is sent via SendMessage on BeginPaint call on Win32
12727         * XplatUIX11.cs:
12728           - Added EraseWindowBackground() method
12729           - No longer sends WM_ERASEBKGND on .Expose, but on call to
12730             PaintEventStart, which more closely matches Win32 behaviour
12731           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
12732           - Fixed SetFocus() to properly deal with client and whole windows
12733         * Hwnd.cs: Added ErasePending property
12734         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
12735         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
12737 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
12739         * XplatUIOSX.cs:
12740           - Fix hard loop when timers exist.
12741           - Fix bugs with middle and right click for 3 button mice.
12743 2005-03-11  Peter Bartok  <pbartok@novell.com>
12745         * XplatUIX11.cs:
12746           - get_WorkingArea: Need to call X directly, GetWindowPos only
12747             returns cached data now
12748           - Added sanity check to GetWindowPos hwnd usage
12750 2005-03-11  Jackson Harper  <jackson@ximian.com>
12752         * BindingManagerBase.cs: This method isn't used anymore as
12753         PullData now updates the data in the control.
12755 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
12757         * Form.cs: fixes menu drawing on X11
12758         * MenuAPI.cs:  fixes menu drawing on X11
12760 2005-03-11  Peter Bartok  <pbartok@novell.com>
12762         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
12763           from Jonathan Gilbert; should fix bug #73606
12764         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
12765           in Screen coordinates. Thanks, Jordi.
12766         * Form.cs: Added missing attribute
12768 2005-03-11  Peter Bartok  <pbartok@novell.com>
12770         * Form.cs:
12771           - Rudimentary Mdi support
12772           - Removed outdated FormParent code
12773           - Implemented lots of missing properties and methods, still missing
12774             transparency support
12775           - Added missing attributes
12776           - Implemented support for MaximumBounds
12777           - Added firing of various events
12778         * XplatUI.cs: Added SetIcon() method
12779         * XplatUIDriver.cs: Added SetIcon() abstract
12780         * XplatUIOSX.cs: Stubbed out SetIcon() method
12781         * XplatUIX11.cs:
12782           - Implemented SetIcon() support
12783           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
12784           - Switched to unix line endings
12785         * XplatUIWin32.cs:
12786           - Made POINT internal so for can access it as part of MINMAX
12787           - Implemented SetIcon() support
12788           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
12789             native Mdi support again, might have to go managed)
12790         * Control.cs: Now fires the StyleChanged event
12791         * MdiClient.cs: Added; still mostly empty
12793 2005-03-10  Peter Bartok  <pbartok@novell.com>
12795         * SaveFileDialog.cs: Added emtpy file
12797 2005-03-08  Peter Bartok  <pbartok@novell.com>
12799         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
12800           in turn triggers OnCreateContro) when creating a handle for the
12801           first time.
12802         * TextControl.cs: Fixed endless loop in certain cases when
12803           replacing the current selection
12805 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
12807         * ScrollBar.cs:
12808           - Honors NewValue changes in Scroll events allowing apps to change it
12809           - Adds First and Last Scroll events
12810           - Fixes Thumb events
12812 2005-03-07  Peter Bartok  <pbartok@novell.com>
12814         * Hwnd.cs: Added DefaultClientRectangle property
12815         * XplatUI.cs: Now using the X11 driver Where() method, which provides
12816           more detailed debug information
12817         * XplatUIX11.cs:
12818           - Fixed size-change feedback loop, where we would pull an old size
12819             off the queue and mistakenly change our window's size to an
12820             earlier value
12821           - Now compressing ConfigureNotify events, to reduce looping and
12822             redraw issues
12823         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
12824           is called
12826 2005-03-07  Jackson Harper  <jackson@ximian.com>
12828         * Binding.cs: Push data pushes from data -> property. Check if the
12829         property is readonly when attempting to set it.
12831 2005-03-07  Jackson Harper  <jackson@ximian.com>
12833         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
12834         instead of IsSubclassOf. Pulling data now sets the value on the
12835         control.
12836         * PropertyManager.cs:
12837         * CurrencyManager.cs: Just need to pull data when updating now,
12838         because PullData will set the value on the control.
12840 2005-03-04  Jackson Harper  <jackson@ximian.com>
12842         * Binding.cs: Implement data type parsing and converting on pulled
12843         data. TODO: Are there more ways the data can be converted?
12845 2005-03-04  Jackson Harper  <jackson@ximian.com>
12847         * Binding.cs: Support <Property>IsNull checks. Also bind to the
12848         controls Validating method so we can repull the data when the
12849         control loses focus.
12851 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
12853         * ColumnHeader.cs:
12854           - Fixes null string format
12855           
12856         * ListView.cs:
12857           - Adds enum type checks
12858           - Fixes redrawing and recalc need after changing some properties
12859           - Fixes on focus_item set after the event
12860           - Fixes adding columns after the control has been created
12861           
12862         * ThemeWin32Classic.cs:
12863           - Fixes CheckBox focus rectangle
12864           - Fixes ColumnHeader drawing
12867 2005-03-03  Jackson Harper  <jackson@ximian.com>
12869         * Binding.cs: Bind to <Property>Changed events so we can detect
12870         when properties are changed and update the data.
12872 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
12874         * ImageList.cs:
12875           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
12876           - Fixes ImageList constructor with ImageList container
12877           - Fixes image scaling (wrong parameters at DrawImage)
12879 2005-02-02  Jackson Harper  <jackson@ximian.com>
12881         * Binding.cs: Make property searches case-insensitive. Eliminate
12882         some duplicated code.
12884 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
12886         * ComboBox.cs:
12887                 - Handle focus event
12888                 - Fix scrollbar events
12889                 - Discard highlighted item if remove it
12890                 - Fixes SelectedItem with strings
12892 2005-03-01  Peter Bartok  <pbartok@novell.com>
12894         * Control.cs:
12895           - Fixed Visible property, now follows (once again) parent chain
12896             to return false if any control in the chain is visible=false
12897           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
12898           - Fixed several places where is_visible instead of Visible was used
12899           - Implemented FIXME related to focus selection when setting focused
12900             control to be invisible
12902         * XplatUIWin32.cs: Now using proper method to find out if window is
12903           visible. Thanks to Jordi for pointing it out
12905 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
12907         * ComboBox.cs: show/hide scrollbar instead of creating it
12909 2005-02-27  Jackson Harper  <jackson@ximian.com>
12911         * CurrencyManager.cs: Add PositionChanged stuff.
12913 2005-02-27  Peter Bartok  <pbartok@novell.com>
12915         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
12916         * XplatUIOSX.cs: Added GetMenuOrigin() stub
12917         * XplatUIWin32.cs: Implemented GetMenuOrigin()
12918         * XplatUIX11.cs:
12919           - Implemented GetMenuDC()
12920           - Implemented GetMenuOrigin()
12921           - Implemented ReleaseMenuDC()
12922           - Implemented generation of WM_NCPAINT message
12923           - Implemented generation and handling of WM_NCCALCSIZE message
12924         * Form.cs: Added debug helper message for Jordi's menu work
12925         * Hwnd.cs:
12926           - Modified ClientRect property; added setter, fixed getter to handle
12927             setting of ClientRect
12928           - Added MenuOrigin property
12930 2005-02-26  Peter Bartok  <pbartok@novell.com>
12932         * XplatUIX11.cs:
12933           - Destroys the caret if a window that's being destroyed contains it
12934           - Ignores expose events coming from the X11 queue for windows that
12935             already are destroyed
12936           - Now uses the proper variable for handling DestroyNotify, before we
12937             marked the wrong window as destroyed
12938           - Improved/added some debug output
12940 2005-02-26  Peter Bartok  <pbartok@novell.com>
12942         * X11Keyboard.cs: Fixes to work on 64bit systems
12944 2005-02-26  Peter Bartok  <pbartok@novell.com>
12946         * Control.cs:
12947           - Now calling OnHandleDestroyed from DestroyHandle()
12948             instead of Dispose()
12949           - Removed bogus call to controls.Remove() from DestroyHandle()
12951 2005-02-26  Peter Bartok  <pbartok@novell.com>
12953         * Control.cs: Properly destroy child windows when our handle is
12954           destroyed
12956 2005-02-25  Peter Bartok  <pbartok@novell.com>
12958         * XplatUI.cs:
12959           - Added 'DriverDebug' define to allow tracing XplatUI API calls
12960           - Alphabetized Static Methods and Subclasses
12962         * XplatUIX11.cs:
12963           - Added XException class to allow custom handling of X11 exceptions
12964           - Created custom X11 error handler, tied into XException class
12965           - Added support for MONO_XEXCEPTIONS env var to allow the user
12966             to either throw an exception on X errors or continue running
12967             after displaying the error
12968           - Added handling of DestroyNotify message
12969           - Added handler for CreateNotify message (still disabled)
12970           - Improved (tried to at least) Where method to provide file and lineno
12971         * X11Structs.cs:
12972           - Added XErrorHandler delegate
12973           - Added XRequest enumeration (to suppor translation of errors)
12975 2005-02-25  Jackson Harper  <jackson@ximian.com>
12977         * PropertyManager.cs: Implement editing features
12978         * CurrencyManager.cs:
12979         * Binding.cs: First attempt at UpdateIsBinding
12980         * BindingManagerBase.cs: Call UpdateIsBinding before
12981         pushing/pulling data.
12983 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
12985         * MenuAPI.cs: Respect disabled items
12986         * ThemeWin32Classic.cs
12987                 - Caches ImageAttributes creation for DrawImageDisabled
12988                 - Fixes vertical menu line drawing
12989                 - Draws disabled arrows in disable menu items
12991 2005-02-24  Peter Bartok  <pbartok@novell.com>
12993         * Hwnd.cs:
12994           - Added UserData property to allow associating arbitrary objects
12995             with the handle
12996           - Fixed leak; now removing Hwnd references from static windows array
12997         * XplatUIWin32.cs:
12998           - Fixed Graphics leak in PaintEventEnd
12999           - Removed usage of HandleData, switched over to Hwnd class
13000         * HandleData.cs: Removed, obsoleted by Hwnd.cs
13002 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
13004         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
13005         * ScrollBar.cs: Fixes bug
13006         * TrackBar.cs: removes death code, clipping, mimize refreshes,
13007          keyboard navigation enhancements
13009 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
13011         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
13012         * GroupBox.cs: Add control styles
13013         * Label.cs: Add control styles
13014         * UpDownBase.cs: Add control styles
13015         * ListBox.cs: Add control styles
13016         * XplatUIWin32.cs: Fixes wrong parameter order
13019 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
13021         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
13023 2005-02-23  Jackson Harper  <jackson@ximian.com>
13025         * PropertyManager.cs: Implement property binding. This doesn't
13026         seem to work yet though as (I think) there are some bugs in
13027         System.ComponentModel.PropertyDescriptor.
13028         * BindingContext.cs: Use new PropertyManager constructor.
13030 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
13032         * ProgressBar.cs: use clip region in ProgressBar
13033         * ThemeWin32Classic.cs: use clip region in ProgressBar
13035 2004-02-22  Jackson Harper  <jackson@ximian.com>
13037         * BindingsCollection.cs: Remove some debug code.
13039 2005-02-22  Jackson Harper  <jackson@ximian.com>
13041         * BindingContext.cs:
13042         * ControlBindingsCollection.cs:
13043         * CurrencyManager.cs:
13044         * Binding.cs:
13045         * BindingManagerBase.cs: Initial implementation
13046         * BindingsCollection.cs: Add an internal contains method that the
13047         BindingManagerBase uses to ensure bindings aren't added twice to
13048         the collection.
13049         * PropertyManager.cs: Stubbed out.
13050         * Control.cs:
13051         * ContainerControl.cs: Hook up databinding
13052         
13053 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
13055         * XplatUIOSX.cs:
13056           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
13057           Fixed Invalidate/Update chain.
13058           Fixed tons of other minor bugs (this is almost a complete rewrite).
13060 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
13062         * ComboBox.cs: do subcontrol creation when the control is created
13064 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
13066         * Label.cs: fixes image drawing (image and imagelist)
13067         * ThemeWin32Classic.cs: cache brushes
13068         
13069 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
13071         * Form.cs: Move menu drawing code to Theme class
13072         * ComboBox.cs: Move ComboBox drawing code to Theme class
13073         * MenuItem.cs: Move menu drawing code to Theme class
13074         * MenuAPI.cs: Move menu drawing code to Theme class
13075         * ThemeWin32Classic.cs: New methods
13076         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
13077         * ListBox.cs: Move Listbox drawing code to Theme class
13078         * Theme.cs: New methods
13080 2005-02-20  Peter Bartok  <pbartok@novell.com>
13082         * Control.cs:
13083           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
13084             only process mnemonics on those)
13085           - Fixed event sequence for key handling; first calling
13086             ProcessKeyEventArgs now
13087         * TextBoxBase.cs:
13088           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
13089             for processing non-character keys
13090           - Fixed WM_CHAR to generate proper event sequence before processing
13091         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
13092           generation
13094 2005-02-19  Peter Bartok  <pbartok@novell.com>
13096         * UserControl.cs: Added TextChanged event; added attributes
13097         * SizeGrip.cs: Implemented resizing and optional display of grip
13098         * Form.cs: Fixed attribute
13099         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
13100           Changed meaning of ScrollWindow bool argument; instead of the
13101           clear attribute (which will be true usually anyway), it gives the
13102           option of moving child controls as well.
13103         * XplatUIX11.cs:
13104           - Changed to match new ScrollWindow argument
13105           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
13106             now handles the implicit parent window a WM puts around us
13107         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
13108           to work)
13109         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
13110         * TreeView.cs: Adjusted to new ScrollWindow arguments
13112 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
13114         * Form.cs: Menu integration with non-client area
13115         * MenuItem.cs: Menu integration with non-client area
13116         * MenuAPI.cs: Menu integration with non-client area
13118 2005-02-18  Peter Bartok  <pbartok@novell.com>
13120         * MethodInvoker.cs: Added
13121         * MdiLayout.cs: Added
13122         * SendKeys.cs: Started implementation
13123         * ErrorIconAlignment.cs: Added
13125 2005-02-18  Peter Bartok  <pbartok@novell.com>
13127         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
13128         * Form.cs: Added handling for Menu-related Non-client messages
13130 2005-02-17  Peter Bartok  <pbartok@novell.com>
13132         * UpDownBase.cs: Fixed typo, compilation errors
13133         * DomainUpDown.cs: Fixed attribute value
13135 2005-02-16  Miguel de Icaza  <miguel@novell.com>
13137         * UpDownBase.cs: Attach entry events.
13138         Propagate events.
13139         Add ForeColor property, Focused, InterceptArrowKeys (interception
13140         does not work yet).
13142 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
13144         * Form.cs:
13145                 - Redraw non client are on Setmenu
13146                 - Calc proper menu starting point
13148 2005-02-17  Peter Bartok  <pbartok@novell.com>
13150         * Application.cs: Fixed message_filter check
13152 2005-02-17  Peter Bartok  <pbartok@novell.com>
13154         * Application.cs: Now calls registered message filters
13155         * DockStyle.cs: Fixed attribute
13156         * Form.cs: Fixed attribute
13157         * Menu.cs: Fixed attribute
13158         * ToolTip.cs: Fixed attribute
13159         * TreeNode.cs: Added missing attributes and arranged in regions
13160         * PropertyGrid.cs: Fixed signatures
13161         * TreeNodeCollection.cs: Added attributes
13162         * Splitter.cs: Added missing attributes; arranged into regions
13163         * TabPage.cs: Added missing attributes; arranged into regions
13164         * TextBoxBase.cs: Added missing attributes
13165         * TextBox.cs: Added missing attributes
13166         * ArrangeDirection.cs: Added missing attributes
13167         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
13168         * ToolBarButton.cs: Fixed attributes
13169         * AnchorStyles.cs: Fixed attribute
13170         * TrackBar.cs: Fixed attributes
13171         * TabControl.cs: Added missing attributes and arranged into regions
13172         * ToolBar.cs: Fixed attribute
13173         * StatusBar.cs: Fixed signature, organized into regions and added
13174           attributes
13175         * StatusBarPanel.cs: Fixed attributes
13176         * ContentsResizedEventArgs.cs: Implemented
13177         * ContentsResizedEventHandler.cs: Implemented
13178         * DateBoldEventArgs.cs: Implemented
13179         * DateBoldEventHandler.cs: Implemented
13180         * UpDownEventArgs.cs: Implemented
13181         * UpDownEventHandler.cs: Implemented
13182         
13183 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
13185         * Form.cs: first Menu NC refactoring
13186         * MenuAPI.cs: first Menu NC refactoring
13187         
13188 2005-02-16  Peter Bartok  <pbartok@novell.com>
13190         * ImeMode.cs: Added missing attributes
13191         * Menu.cs: Fixed attribute
13192         * GroupBox.cs: Fixed attribute
13193         * Label.cs: Fixed attribute
13194         * ColorDialog.cs (RunDialog): Removed TODO attribute
13195         * ComboBox.cs: Fixed attributes
13196         * ListControl.cs: Added missing attributes
13197         * PropertyGrid.cs: Fixed attributes
13198         * Control.cs: Fixed attributes
13199         * ListViewItem.cs: Added TypeConverter attribute
13200         * NotifyIcon.cs: Fixed attributes
13201         * ListView.cs: Fixed attributes
13202         * ButtonBase.cs: Fixed attribute
13203         * ImageList.cs: Added missing attributes
13204         * ContainerControl.cs: Fixed signature
13205         * CheckedListBox.cs: Fixed attribute; added missing attributes
13206         * Panel.cs: Fixed attributes
13207         * PropertyTabChangedEventArgs.cs: Added missing attribute
13208         * PropertyValueChangedEventArgs.cs: Added missing attribute
13209         * Binding.cs: Fixed attribute
13210         * ListViewItemConverter: Implemented ListViewSubItemConverter class
13211         * ListBox.cs: Fixed attribute; added missing attributes;
13212         * ScrollableControl.cs: Added missing attributes
13213         * PictureBox.cs: Added missing attributes; implemented missing property
13214         * DateTimePicker.cs: Added missing attributes
13215         * Theme.cs (ToolWindowCaptionHeight): Fixed type
13216         * MonthCalendar.cs: Fixed attributes
13217         * StatusBarPanel.cs: Added missing attributes
13218         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
13220 2005-02-16  Peter Bartok  <pbartok@novell.com>
13222         * TextBoxBase.cs: The previous method to enforce height yet remember
13223           the requested high was less than ideal, this is an attempt to do
13224           it better.
13225         * Control.cs: Added comment about possible problem
13226         * Copyright: Updated format
13227         * GridItemType.cs: Fixed swapped values
13229 2005-02-15  Jackson Harper  <jackson@ximian.com>
13231         * BaseCollection.cs: Use property so we never access an
13232         uninitialized list. Also initialize the list in the property.
13234 2005-02-15  Peter Bartok  <pbartok@novell.com>
13236         * GroupBox.cs (ProcessMnemonic): Implemented
13237         * Label.cs (ProcessMnemonic): Implemented
13238         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
13239           hotkeys
13241 2005-02-15  Peter Bartok  <pbartok@novell.com>
13243         * RadioButton.cs (ProcessMnemonic): Implemented
13244         * CheckBox.cs (ProcessMnemonic): Implemented
13245         * Control.cs:
13246           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
13247             handling
13248           - Added internal method to allow calling ProcessMnemonic from other
13249             controls
13250         * ContainerControl.cs:
13251           - Started support for handling validation chain handling
13252           - Implemented ProcessMnemonic support
13253           - Added Select() call to Active, to make sure the active control
13254             receives focus
13255         * Form.cs: Setting toplevel flag for Forms (this was lost in the
13256           FormParent rewrite)
13257         * ThemeWin32Classic.cs:
13258           - DrawCheckBox(): Fixed stringformat to show hotkeys
13259           - DrawRadioButton(): Fixed stringformat to show hotkeys
13260         * CommonDialog.cs: Removed WndProc override, not needed
13262 2005-02-14  Peter Bartok  <pbartok@novell.com>
13264         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
13265           missed those in the rewrite
13267 2005-02-14  Miguel de Icaza  <miguel@novell.com>
13269         * NumericUpDown.cs (Increment, ToString): Add.
13270         (DecimalPlaces): implement.
13271         
13272         Add attributes.
13273         
13274         * UpDownBase.cs: Add the designer attributes.
13276 2005-02-13  Peter Bartok  <pbartok@novell.com>
13278         * Panel.cs: Removed border_style, now in Control
13279         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
13280           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
13282 2005-02-13  Peter Bartok  <pbartok@novell.com>
13284         * MouseButtons.cs: Added missing attributes
13285         * XplatUIStructs.cs: Added enumeration for title styles
13286         * LeftRightAlignment.cs: Added missing attributes
13287         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
13288           it compatible with Graphics.FromHwnd()
13289         * SelectedGridItemChangedEventArgs.cs: Fixed property type
13290         * Keys.cs: Added missing attributes
13291         * SelectionRange.cs: Added missing attributes
13292         * SelectionRangeConverter.cs: Added
13293         * XplatUI.cs:
13294           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
13295             ReleaseMenuDC methods
13296           - Renamed ReleaseWindow to UngrabWindow
13297           - Added proper startup notice to allow version identification
13298         * Form.cs:
13299           - Added missing attributes
13300           - Removed FormParent concept
13301         * Label.cs: Removed border_style field, now in Control
13302         * RadioButton.cs: Now properly selects RadioButton when focus is
13303           received
13304         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
13305         * Control.cs:
13306           - Added missing attributes
13307           - Added borderstyle handling
13308           - Removed FormParent concept support
13309           - Fixed calls to XplatUI to match changed APIs
13310           - Fixed bug that would case us to use disposed Graphics objects
13311           - Removed unneeded internal methods
13312           - PerformLayout(): Fixed to handle DockStyle.Fill properly
13313           - SelectNextControl(): Fixed to properly check common parents
13314         * TextBoxBase.cs: Removed border_style field (now in Control)
13315         * MessageBox.cs:
13316           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
13317             fixed calculations for form size
13318           - Added support for localized strings and icons
13319           - Improved form size calculations, added border
13320         * ListView.cs: Removed border_style field (now in Control)
13321         * X11Structs.cs: Moved several structs from X11 driver here
13322         * X11Keyboard.cs: Changed debug message
13323         * Application.cs: Removed FormParent concept support
13324         * CommonDialog.cs:
13325           - Resetting end_modal flag
13326           - Removed FormParent concept support
13327         * NativeWindow.cs: Removed FormParent concept support
13328         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
13329           Client area and Non-Client whole window to allow support for WM_NC
13330           messages
13331         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
13332           prevent using it until it supports Hwnd as per Geoff Norton's request
13333         * ToolBar.cs: Fixed drawing, was not doing proper drawing
13334         * PictureBox.cs: Removed border_style field, now in Control
13335         * XplatUIWin32.cs: Added new driver methods
13337 2005-02-12  Peter Bartok  <pbartok@novell.com>
13339         * OpacityConverter.cs: Implemented
13340         * Hwnd.cs: Internal class to support drivers that need to emulate
13341           client area/non-client area window behaviour
13343 2005-02-11  Peter Bartok  <pbartok@novell.com>
13345         * KeysConverter.cs: Implemented
13347 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
13349         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
13350         * LinkLabel: Added missing attributes
13351         * MainMenu.cs: fixes ToString
13352         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
13353         * ListBox.cs: fixes event position
13354         * TrackBar.cs: adds missing attributes and events
13355         
13356 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
13358         * MenuItem.cs: Use SystemInformation and bug fixes
13359         * MenuAPI.cs: Use SystemInformation and bug fixes
13361 2005-02-09  Jackson Harper  <jackson@ximian.com>
13363         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
13364         their keystate otherwise things like VK_MENU get stuck "on".
13366 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
13368         * ListBox.cs: Fixes AddRange bug
13369         
13370 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
13372         * ProgressBar.cs
13373                 - Add missing attributes
13374                 - Add missing method
13375                 
13376         * CheckedListBox.cs: Added missing attributes
13377                 - Add missing attributes
13378                 - Remove extra method
13379         
13380         * ComboBox.cs: Added missing attributes
13381         * VScrollBar.cs: Added missing attributes
13382         * ScrollBar.cs:  Added missing attributes
13383         * ListBox.cs: Fixes signature, add missing consts
13384         * LinkArea.cs:   Added missing attributes
13385         
13387 2005-02-08  Peter Bartok  <pbartok@novell.com>
13389         * Menu.cs: Added missing attributes
13390         * MainMenu.cs: Added missing attributes
13391         * GroupBox.cs: Added missing attributes
13392         * Label.cs: Added missing attributes
13393         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
13394         * ColorDialog.cs:
13395           - Added Instance and Options properties
13396           - Added missing attributes
13397         * Cursor.cs: Made Serializable
13398         * NotifyIcon: Added missing attributes
13399         * MenuItem.cs: Added missing attributes
13400         * TextBoxBase.cs: Implemented AppendText() and Select() methods
13401         * Panel.cs: Added Missing attributes
13402         * MonthCalendar.cs: Fixed CreateParams
13404 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
13405         
13406         * LinkLabel.cs:
13407                 - Fixes signature
13408                 - Fixes issues with links
13409                 - Adds the class attributes
13411 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
13412         
13413         * ComboBox.cs:
13414                 - Fixes button when no items available in dropdown
13415                 - Fixes repainting problems
13416                 - Adds the class attributes
13417                 
13418 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
13420         * XplatUIOSX.cs: Detect the menu bar and title bar height from
13421         the current theme.  Cache these on startup.
13423 2005-02-07  Jackson Harper  <jackson@ximian.com>
13425         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
13426         the scrollbar buttons when they are depressed.
13428 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
13430         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
13431         Get the display size from the main displayid.  We currently dont
13432         support multiple display configurations.
13434 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
13436         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
13438 2005-02-07  Miguel de Icaza  <miguel@novell.com>
13440         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
13442 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
13444         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
13446 2005-02-04  Jackson Harper  <jackson@ximian.com>
13448         * ThemeWin32Classic.cs: Respect the clipping rect when
13449         drawing. Only fill the intersection of clips and rects so there
13450         isn't a lot of large fills.
13451         * ScrollBar.cs: Pass the correct clipping rect to the theme
13452         engine. Remove some debug code.
13454 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
13455         
13456         * DateTimePicker.cs:
13457                 - Fixed crash on DateTime.Parse, use Constructor instead
13459 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
13460         
13461         * MenuItem.cs:
13462         * MenuAPI.cs:
13463                 - Owner draw support (MeasureItem and DrawItem)
13465 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
13466         
13467         *  Menu.cs:
13468                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
13469                 - Fixes MenuItems.Add range
13470         * MenuItem.cs:
13471                 - MergeMenu and Clone and CloneMenu functions
13473 2005-02-03  Jackson Harper  <jackson@ximian.com>
13475         * ScrollBar.cs: Make abstract
13476         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
13477         is abstract.
13479 2005-02-03  Jackson Harper  <jackson@ximian.com>
13481         * ScrollBar.cs: First part of my scrollbar fixups. This removes
13482         all the unneeded refreshes and uses invalidates with properly
13483         computed rects.
13485 2005-02-03  Peter Bartok  <pbartok@novell.com>
13487         * ComponentModel.cs: Added
13488         * IDataGridEditingService.cs: Added
13489         * Timer.cs: Added missing attributes
13490         * ToolTip.cs: Added missing attributes
13492 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
13494         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
13496 2005-02-03  Peter Bartok  <pbartok@novell.com>
13498         * ListBox.cs: Added missing attributes
13500 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
13501         
13502         * ListBox.cs:
13503                 - Fixes font height after font change
13504                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
13505                 
13506 2005-02-02  Peter Bartok  <pbartok@novell.com>
13508         * HandleData.cs: Introduced static methods to allow class
13509           to be more self-contained and track it's own HandleData objects
13510         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
13511           HandleData to use new static methods
13513 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
13515         * Combobox.cs:
13516                 - Fixes default size and PreferredHeight
13517                 - Missing events
13518                 - ObjectCollection.Insert implementation
13519                 
13520         * ListControl.cs
13521                 - Fixes signature
13522         * ListBox.cs:
13523                 - Several fixes
13524                 - ObjectCollection.Insert implementation
13525                 - No selection after clean
13526                 - Small fixes
13528 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
13530         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
13532 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
13534         * Combobox.cs:
13535                 - Caches ItemHeight calculation for OwnerDrawVariable
13536                 - Handles dropdown properly
13537                 - Fixes several minor bugs
13539 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
13541         * ListBox.cs:
13542                 - Fixes 71946 and 71950
13543                 - Fixes changing Multicolumn on the fly
13544                 - Fixes keyboard navigation on Multicolumn listboxes
13546 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
13547         
13548         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
13549         crash reporter log.
13551 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
13553         * XplatUIOSX.cs: Allow applications to actually exit.
13555 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
13557         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
13558         their parent at creation time rather than lazily later.  Fixes a major
13559         regression we were experiencing.
13561 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
13563         * ThemeWin32Classic.cs: more date time picker painting fixes
13564         * DateTimePicker.cs: more monthcalendar drop down fixes
13565         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
13567 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
13569         * ScrollBar.cs:
13570                 - When moving the thumb going outside the control should stop the moving
13571                 - Adds the firing of missing events
13572                 - Fixes no button show if Size is not specified
13573                 - End / Home keys for keyboard navigation
13575 2005-01-30  Peter Bartok  <pbartok@novell.com>
13577         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
13578           sanity check to prevent theoretical loop
13579         * XplatUIWin32.cs (SetVisible): Removed debug output
13580         * XplatUIX11.cs (SystrayChange): Added sanity check
13581         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
13582         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
13583           behaviour, valid until the X11 client window rewrite is done
13584         * TextBox.cs (ctor): Setting proper default foreground and background
13585           colors
13587 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
13589         * Theme: Added DrawDateTimePicker to interface
13590         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
13591         * DateTimePicker.cs: Created (still needs keys and painting code)
13592         * DateTimePickerFormat.cs: added
13593         * MonthCalendar.cs: fixed CreateParams for popup window mode
13594           
13595 2005-01-29  Peter Bartok  <pbartok@novell.com>
13597         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
13598           this should also the calculations for ligher/darker
13599         * Theme.cs: Fixed defaults for ScrollBar widths/heights
13601 2005-01-29  Peter Bartok  <pbartok@novell.com>
13603         * ArrangeDirection.cs: Added
13604         * ArrangeStartingPositon.cs: Added
13605         * SystemInformation.cs: Implemented
13606         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
13607           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
13608           used by SystemInformation class
13609         * X11Strucs.cs: Added XSizeHints structure
13610         * MenuAPI.cs:
13611           - Fixed CreateParams to make sure the menu window is always visible
13612           - TrackPopupMenu: Added check to make sure we don't draw the
13613             menu offscreen
13615 2005-01-29  Peter Bartok  <pbartok@novell.com>
13617         * HandleData.cs: Added method for altering invalid area
13618         * TextBoxBase.cs: Implemented TextLength
13620 2005-01-28  Peter Bartok  <pbartok@novell.com>
13622         * XplatUIX11.cs: Improvement over last patch, not sending
13623           the WM_PAINT directly anymore, instead we scroll any pending
13624           exposed areas and let the system pick out the WM_PAINT later
13626 2005-01-28  Peter Bartok  <pbartok@novell.com>
13628         * SWF.csproj: Deleted, no longer used. Instead,
13629           Managed.Windows.Forms/SWF.csproj should be used
13630         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
13631           directly, to avoid a potential race condition with the next
13632           scroll
13634 2005-01-28  Peter Bartok  <pbartok@novell.com>
13636         * XplatUI.cs: Made class internal
13638 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
13640         * CheckedListBox.cs:
13641                 - Draw focus
13642                 - Fixed Drawing
13643                 - Missing methods and events
13645 2005-01-27  Peter Bartok  <pbartok@novell.com>
13647         * Application.cs (Run): Don't use form if we don't have one
13649 2005-01-27  Peter Bartok  <pbartok@novell.com>
13651         * TextBoxBase.cs (get_Lines): Fixed index off by one error
13653 2005-01-27  Peter Bartok  <pbartok@novell.com>
13655         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
13656         * GridItem.cs: Added; Patch by Jonathan S. Chambers
13657         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
13658         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
13659         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
13660         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
13661         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
13662         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
13663         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
13664         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
13665         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
13666         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
13668 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
13670         * Combobox.cs:
13671                 - Draw focus on Simple Combobox
13672                 - Fixes drawing issues
13673                 - fixes 71834
13675 2005-01-27  Peter Bartok  <pbartok@novell.com>
13677         * Form.cs:
13678           - Place window in default location, instead of hardcoded 0/0
13679           - Send initial LocationChanged event
13680         * Control.cs:
13681           - UpdateBounds after creation to find out where the WM placed us
13682           - Make sure that if the ParentForm changes location the Form
13683             is notified
13684         * XplatUIX11.cs: XGetGeometry will not return the coords relative
13685             to the root, but to whatever the WM placed around us.
13686             Translate to root coordinates before returning toplevel
13687             coordinates
13688         * XplatUIWin32.cs: Removed debug output
13689         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
13690           flag to GetWindowPos, to allow translation of coordinates on X11
13692 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
13694         * ListBox.cs: connect LostFocus Event
13696 2005-01-27  Peter Bartok  <pbartok@novell.com>
13698         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
13699           XplatUIX11.cs: Extended the Systray API
13700         * Form.cs: Removed debug output
13701         * Application.cs: Fixed focus assignment, always need to call
13702           XplatUI.Activate() since Form.Activate() has rules that may
13703           prevent activation
13704         * NotifyIcon.cs: Should be complete now
13705         * ToolTip.cs: Worked around possible timer bug
13707 2005-01-27  Jackson Harper  <jackson@ximian.com>
13709         * TabControl.cs:
13710         - Only invalidate the effected tabs when the
13711         selected index changes. This reduces drawing and gets rid of some
13712         flicker.
13713         - Only refresh if the tabs need to be shifted, otherwise only
13714         invalidate the slider button.
13715         - On windows the tabs are not filled to right if the slider is
13716         visible.
13717         
13718 2005-01-27  Jackson Harper  <jackson@ximian.com>
13720         * TabControl.cs: Only refresh on mouseup if we are showing the
13721         slider. Also only invalidate the button whose state has changed.
13723 2005-01-26  Peter Bartok  <pbartok@novell.com>
13725         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
13726         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
13727           and SystrayRemove() methods
13728         * XplatUIOSX.cs: Stubbed Systray methods
13729         * XplatUIX11.cs:
13730           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
13731             methods
13732           - Fixed broken XChangeProperty calls (marshalling messed up things)
13733         * X11Structs.cs: Added enums and structs required for Size hinting
13734         * NotifyIcon.cs: Added & implemented
13736 2005-01-26  Jackson Harper  <jackson@ximian.com>
13738         * TabControl.cs: Space vertically layed out tabs properly.
13740 2005-01-26  Peter Bartok  <pbartok@novell.com>
13742         * Form.cs (CreateClientParams): Always set the location to 0,0
13743           since we're a child window.
13745         * Control.cs (SetVisibleCore): Always explicitly setting the location
13746           of a toplevel window, apparently X11 doesn't like to move windows
13747           while they're not mapped.
13749 2005-01-26  Jackson Harper  <jackson@ximian.com>
13751         * TabControl.cs: Implement FillToRight size mode with vertically
13752         rendered tabs.
13754 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
13756         * ControlPaint.cs, ThemeWin32Classic.cs
13757                 - Fixes DrawFocusRectangle
13759 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
13761         * MenuAPI.cs:
13762                 - MenuBar tracking only starts when item is first clicked
13763                 - Fixes menu hidding for multiple subitems
13764                 - Unselect item in MenuBar when item Executed
13765                 - Fixes bug 71495
13767 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
13769         * ListControl.cs:
13770                 - IsInputKey for ListBox
13771         * ListBox.cs:
13772                 - Focus item
13773                 - Shift and Control item selection
13774                 - Implement SelectionMode.MultiExtended
13775                 - Fixes RightToLeft
13776         * ComboBox.cs:
13777                 - IsInputKey implemented
13778                 - Do not generate OnTextChangedEdit on internal txt changes
13779                 
13780 2005-01-23  Peter Bartok  <pbartok@novell.com>
13782         * AccessibleObject.cs: Partially implemented Select()
13783         * MonthCalendar.cs: Added missing attributes and events
13784         * Form.cs: Fixed CreateParams behaviour, now controls derived from
13785           form can properly override CreateParams.
13786         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
13787           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
13788           Control performs Invalidate & Update
13789         * NativeWindow (CreateHandle): Added special handling for Form
13790           and Form.FormParent classes to allow overriding of From.CreateParams
13791         * Control.cs:
13792           - ControlNativeWindow: Renamed 'control' variable to more intuitive
13793             name 'owner'
13794           - ControlNativeWindow: Added Owner property
13795           - Removed usage of Refresh() on property changes, changed into
13796             Invalidate(), we need to wait until the queue is processed for
13797             updates, direct calls might cause problems if not all vars for
13798             Paint are initialized
13799           - Added call to UpdateStyles() when creating the window, to set any
13800             styles that CreateWindow might have ignored.
13801           - Added support for Form CreateParent overrides to UpdateStyles()
13802         * MessageBox.cs: Removed no longer needed FormParent override stuff,
13803           CreateParams are now properly overridable
13804         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
13805           CreateParams are now properly overridable
13807 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
13809         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
13810         OnTextBoxChanged.
13812         Capture LostFocus and OnTextBoxChanged.  The later introduces a
13813         recursive invocation that I have not figured out yet.
13815         Reset the timer when not using (it was accumulating).
13818         (OnTextBoxChanged): Set UserEdit to true here to track whether the
13819         user has made changes that require validation.
13821         Reset changing to avoid loops.
13823 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
13825         * NumericUpDown.cs: Display value at startup.
13827         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
13828         ValidateEditText.
13830         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
13831         filled in.  Added some basic parsing of text.
13833         Still missing the OnXXX method overrides, and figuring out the
13834         events that must be emitted.
13836         * UpDownBase.cs: Handle UserEdit on the Text property.
13837         
13838 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
13840         * ComboBox.cs:
13841           - Fixes IntegralHeight
13842           - ToString method
13844 2005-01-21  Jackson Harper  <jackson@ximian.com>
13846         * TabControl.cs: Set the SelectedIndex property when SelectedTab
13847         is set so that the page visibility is updated and the tabs are
13848         sized correctly.
13850 2005-01-21  Jackson Harper  <jackson@ximian.com>
13852         * TabControl.cs: Use cliping rectangle for blitting. Give the
13853         theme the clipping rect so we can do clipping while
13854         drawing. Remove some debug code.
13856 2005-01-21  Jackson Harper  <jackson@ximian.com>
13858         * TabPage.cs: Add a new method so tab pages can force the tab
13859         control to recalculate the tab page sizes.
13860         * TabControl.cs: UpdateOwner needs to make the tab control recalc
13861         sizes.
13863 2005-01-20  Jackson Harper  <jackson@ximian.com>
13865         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
13867 2005-01-20  Jackson Harper  <jackson@ximian.com>
13869         * TreeView.cs: Set the bounds for nodes properly. They were
13870         getting screwed up when checkboxes were not enabled, but images
13871         were.
13873 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
13875         * ListBox.cs:
13876                 - Owner draw support
13877                 - Fixes
13878                 
13879 2005-01-20  Jackson Harper  <jackson@ximian.com>
13881         * XplatUIStructs.cs: More misc keys
13882         * X11Keyboard.cs: Ignore some control keys.
13884 2005-01-20  Jackson Harper  <jackson@ximian.com>
13886         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
13887         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
13889 2005-01-19  Peter Bartok  <pbartok@novell.com>
13891         * Control.cs: Un-selecting the control when it is loosing focus
13893 2005-01-19  Jackson Harper  <jackson@ximian.com>
13895         * TreeView.cs: Hook up to the text controls leave event so we can
13896         end editing when the users clicks outside the text box.
13897         
13898 2005-01-19  Jackson Harper  <jackson@ximian.com>
13900         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
13901         get set in the conversion array.
13903 2005-01-19  Peter Bartok  <pbartok@novell.com>
13905         * Application.cs (ModalRun): Added a call to CreateControl to ensure
13906           focus is properly set
13907         * Button.cs:
13908           - Added missing attributes
13909           - removed styles, those are already set in the base class
13910         * ButtonBase.cs:
13911           - Added missing attributes
13912           - Added clip window styles
13913         * CheckBox.cs: Added missing attributes
13914         * CommonDialog.cs:
13915           - FormParentWindow.CreateParams: Added required clip styles
13916         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
13917           also filters modifier keys
13918         * MessageBox.cs:
13919           - Added assignment of Accept and Cancel button to enable Enter
13920             and Esc keys in MessageBox dialogs
13921           - FormParentWindow.CreateParams: Added required clip styles
13922         * RadioButton.cs: Added missing attributes
13923         * TextControl.cs: No longer draws selection if control does not
13924           have focus
13925         * TextBoxBase.cs:
13926           - Now draws simple rectangle around test area to make it obvious
13927             there's a control. This is a hack until we properly support borders
13928           - A few simple fixes to support selections better, now erases selected
13929             text when typing, and resets selection when using movement keys
13931 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
13933         * UpDownBase.cs: Added some new properties.
13935         * DomainUpDown.cs: Implement a lot to get my test working.
13937 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
13939         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
13941 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
13943         * OSXStructs (WindowAttributes): Fixed csc complaints
13945 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
13947         * XplayUIOSX.cs:
13948           OSXStructs.cs: Initial refactor to move enums and consts into
13949           OSXStructs and use them in the driver for greater readability.
13951 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
13953         * XplatUIOSX.cs: Initial support for Standard Cursors.
13954         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
13956 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
13958         * ComboBox.cs: ability to change style when the ctrl is already
13959         created, missing methods and events, bug fixes, signature fixes
13961 2005-01-19  Peter Bartok  <pbartok@novell.com>
13963         * Cursors.cs (ctor): Added ctor to fix signature
13965 2005-01-18  Peter Bartok  <pbartok@novell.com>
13967         * Button.cs: Implemented DoubleClick event
13968         * ButtonBase.cs:
13969           - Fixed keyboard handling to behave like MS, where the press of
13970             Spacebar is equivalent to a mousedown, and the key release is
13971             equivalent to mouseup. Now a spacebar push will give the same
13972             visual feedback like a mouse click.
13973           - Added missing attributes
13974           - Added ImeModeChanged event
13975           - Added support for generating DoubleClick event for derived classes
13976         * CheckBox.cs:
13977           - Implemented DoubleClick event
13978           - Added missing attributes
13979         * CommonDialog.cs: Added missing attribute
13980         * ContextMenu.cs: Added missing attributes
13981         * RadioButton.cs:
13982           - AutoChecked buttons do not allow to be unselected when clicked
13983             (otherwise we might end up with no selected buttons in a group)
13984           - Added missing attributes
13985           - Implemented DoubleClickEvent
13986         * ThreadExceptionDialog.cs: Enabled TextBox code
13988 2005-01-18  Peter Bartok  <pbartok@novell.com>
13990         * Form.cs: Removed debug output
13991         * Button.cs: Added support for DoubleClick method
13993 2005-01-18  Peter Bartok  <pbartok@novell.com>
13995         * Form.cs:
13996           - Added method to parent window that allows triggering size
13997             calculations when a menu is added/removed
13998           - set_Menu: Cleaned up mess from early days of Form and Control,
13999             now properly triggers a recalc when a menu is added/removed
14000           - Added case to select form itself as focused form if no child
14001             controls exist
14002           - Added PerformLayout call when showing dialog, to ensure properly
14003             placed controls
14004         * Control.cs:
14005           - Select(): Made internal so Form can access it
14006           - Focus(): Only call Xplat layer if required (avoids loop), and sets
14007             status
14008         * Application.cs (Run): Removed hack and calls PerformLayout instead
14009           to trigger calculation when Form becomes visible
14011 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
14013         * ComboBox.cs: fixes for ownerdraw
14015 2005-01-18  Peter Bartok  <pbartok@novell.com>
14017         * TextControl.cs:
14018           - Sentinel is no longer static, each Document gets it's own, this
14019             avoids locking or alternatively overwrite problems when more
14020             than one text control is used simultaneously.
14021           - Switched to use Hilight and HilightText brushes for text selection
14023         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
14025 2005-01-18  Peter Bartok  <pbartok@novell.com>
14027         * Control.cs:
14028           - Hooked up the following events:
14029                 o ControlAdded
14030                 o ControlRemoved
14031                 o HandleDestroyed
14032                 o ImeModeChanged
14033                 o ParentChanged
14034                 o TabStopChanged
14035                 o Invalidated
14036                 o SystemColorsChanged
14037                 o ParentFontChanged
14038                 o Move
14039           - Removed debug output
14040           - Added a call to the current theme's ResetDefaults when a color change
14041             is detected
14042         * Form.cs: Now setting the proper ImeMode
14043         * Theme.cs: Defined a method to force recreation of cached resources
14044           and rereading of system defaults (ResetDefaults())
14045         * ThemeWin32Classic.cs: Added ResetDefaults() stub
14047 2005-01-17  Peter Bartok  <pbartok@novell.com>
14049         * Control.cs: Added missing attributes
14051 2005-01-17  Jackson Harper  <jackson@ximian.com>
14053         * TreeNode.cs: Implement editing. Add missing properties selected
14054         and visible.
14055         * TreeView.cs: Implement node editing. Also some fixes to use
14056         Invalidate (invalid area) instead of Refresh when selecting.
14058 2005-01-17  Peter Bartok  <pbartok@novell.com>
14060         * Control.cs:
14061           - Implemented InvokeGotFocus() method
14062           - Implemented InvokeLostFocus() method
14063           - Implemented InvokePaint() method
14064           - Implemented InvokePaintBackground() method
14065           - Implemented InvokeClick() method
14066           - Implemented FindForm() method
14067           - Implemented RectangleToClient() method
14068           - Implemented ClientToRectangle() method
14069           - Implemented ResetBackColor() method
14070           - Implemented ResetCursor() method
14071           - Implemented ResetFont() method
14072           - Implemented ResteForeColor() method
14073           - Implemented ResetImeMode() method
14074           - Implemented ResetLeftToRight() method
14075           - Implemented ResetText() method
14076           - Implemented Scale() methods
14077           - Implemented ScaleCore() method
14078           - Implemented Update() method
14079           - Removed unused variables
14080           - Stubbed AccessibilityNotifyClients and
14081             ControlAccessibleObject.NotifyClients() methods (dunno what to do
14082             with those yet)
14083           - Now setting proper default for RightToLeft property
14084           - Fixed bug in SetClientSizeCore that would cause windows to get
14085             really big
14086           - Now sending Click/DoubleClick events
14087           - Now selecting controls when left mouse button is clicked on
14088             selectable control
14089         * AccessibleEvents.cs: Added
14090         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
14091         * XplatUIOSX.cs: Stubbed UpdateWindow() method
14092         * XplatUIWin32.cs: Implemented UpdateWindow() method
14093         * XplatUIX11.cs: Implemented UpdateWindow() method
14094         * Form.cs: Removed stray semicolon causing CS0162 warning
14095         * ThemeWin32Classic.cs: Fixed unused variable warnings
14096         * ScrollableControl.cs: Now calls base method for ScaleCore
14097         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
14098           style to avoid interference with internal click handler (which is
14099           different than standard Control click handling)
14100         * RadioButton.cs:
14101           - Now unchecks all sibling radio buttons when control is
14102             selected (Fixes #68756)
14103           - Removed internal tabstop variable, using the one inherited from
14104             Control
14106 2005-01-17  Jackson Harper  <jackson@ximian.com>
14108         * NavigateEventArgs.cs: Fix base type.
14109         * LinkLabel.cs: Sig fix
14110         
14111 2005-01-17  Jackson Harper  <jackson@ximian.com>
14113         * TreeView.cs: Only invalidate the effected nodes bounds when
14114         selecting nodes.
14116 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
14118         * XplatUIWin32.cs: fixes Win32 marshaling
14119         * XplatUIX11.cs: fixes method signature
14121 2005-01-17  Peter Bartok  <pbartok@novell.com>
14123         * XplatUIX11.cs: Clean up resources when we no longer need them
14125 2005-01-17  Peter Bartok  <pbartok@novell.com>
14127         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
14128           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
14129           and DestroyCursor() methods.
14130         * Cursor.cs: Partially implemented, now supports standard cursors;
14131           still contains some debug code
14132         * Cursors.cs: Implemented class
14133         * Control.cs:
14134           - WndProc(): Added handling of WM_SETCURSOR message, setting the
14135             appropriate cursor
14136           - Implemented Cursor property
14137           - Replaced break; with return; more straightforwar and possibly
14138             faster
14139           - Now properly setting the result for WM_HELP
14140         * X11Structs.cs: Added CursorFontShape enum
14141         * XplatUIStructs.cs:
14142           - Added StdCursor enum (to support DefineStdCursor() method)
14143           - Added HitTest enum (to support sending WM_SETCURSOR message)
14144         * XplatUIX11.cs:
14145           - Now sends the WM_SETCURSOR message
14146           - Implemented new cursor methods
14147         * XplatUIOSX.cs: Stubbed new cursor methods
14148         * XplatUIWin32.cs:
14149           - Implemented new cursor methods
14150           - Added GetSystemMetrics function and associated enumeration
14152 2005-01-15  Peter Bartok  <pbartok@novell.com>
14154         * Control.cs:
14155           - WndProc(): Now handles EnableNotifyMessage
14156           - SelectNextControl(): Fixed bug where if no child or sibling
14157             controls exist we looped endlessly
14159 2005-01-14  Jackson Harper  <jackson@ximian.com>
14161         * TreeView.cs: Recalculate the tab pages when a new one is added
14162         so that the proper bounding rects are created.
14164 2005-01-14  Jackson Harper  <jackson@ximian.com>
14166         * TreeView.cs: Draw a gray box instead of a grip in the lower
14167         right hand corner when there are both horizontal and vertical
14168         scroll bars.
14170 2005-01-14  Jackson Harper  <jackson@ximian.com>
14172         * Control.cs: When erasing backgrounds use FromHwnd instead of
14173         FromHdc when there is a NULL wparam. This occurs on the X driver.
14174         * XplatUIX11.cs: Set the wparam to NULL.
14176 2005-01-13  Jackson Harper  <jackson@ximian.com>
14178         * PictureBox.cs: Implement missing methods (except ToString, need
14179         to test that on windows) and events. When visibility is changed we
14180         need to redraw the image because the buffers are killed. When size
14181         is changed refresh if the sizemode needs it.
14183 2005-01-13  Peter Bartok  <pbartok@novell.com>
14185         * Control.cs (SelectNextControl): Was using wrong method to select
14186           a control
14188 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
14190         * ComboBox.cs: fixes dropstyle
14192 2005-01-13  Peter Bartok  <pbartok@novell.com>
14194         * Form.cs:
14195           - Implemented Select() override
14196           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
14197           - Now sets keyboard focus on startup
14198         * Control.cs (SelectNextControl): Now properly handles directed=true
14199         * TextBoxBase.cs:
14200           - WndProc: Now passes tab key on to base if AcceptTabChar=false
14201           - Added (really bad) focus rectangle (mostly for testing)
14202         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
14203           to enforce redraw on focus changes
14204         * ContainerControl.cs:
14205           - Fixed detection of Shift-Tab key presses
14206           - Fixed traversal with arrow keys
14207         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
14208           gonna keep this or if it's complete yet
14209         
14210 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
14212         * ComboBox.cs: missing properties, fixes
14214 2005-01-13  Peter Bartok  <pbartok@novell.com>
14216         * Panel.cs (ctor): Setting Selectable window style to off
14217         * Splitter.cs (ctor): Setting Selectable window style to off
14218         * GroupBox.cs (ctor): Setting Selectable window style to off
14219         * Label.cs (ctor): Setting Selectable window style to off
14221 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
14223         * UpDownBase.cs (InitTimer): If the timer has been already
14224         created, enable it.
14226         Use a TextBox instead of a Label.
14228 2005-01-12  Jackson Harper  <jackson@ximian.com>
14230         * TreeView.cs: Refresh the tree after sorting the nodes. Always
14231         draw the connecting node lines (when ShowLines is true).
14232         * TreeNode.cs: The nodes index can now be updated. This is used
14233         when a node collection is sorted.
14234         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
14235         insert or an existing unsorted node collection can be sorted.
14236         
14237 2005-01-12  Peter Bartok  <pbartok@novell.com>
14239         * ContainerControl.cs: Implemented ProcessDialogKeys()
14241 2005-01-12  Peter Bartok  <pbartok@novell.com>
14243         * Control.cs:
14244           - Implemented SelectNextControl() method
14245           - Several focus related bug fixes
14246           - Fixed Docking calculations to match MS documentation and
14247             behaviour
14249 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
14251         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
14252         bug fixes
14254 2005-01-12  Peter Bartok  <pbartok@novell.com>
14256         * Control.cs:
14257           - Fixed broken Contains() method
14258           - Implemented GetNextControl() method. Finally. This is the pre-
14259             requisite for focus handling.
14261 2005-01-12  Peter Bartok  <pbartok@novell.com>
14263         * OSXStrucs.cs: Added
14265 2005-01-12  Peter Bartok  <pbartok@novell.com>
14267         * XplatUIWin32.cs:
14268           - Removed PeekMessageFlags
14269           - Implemented SetWindowStyle() method
14270         * XplatUIStructs.cs: Added PeekMessageFlags
14271         * X11Structs: Added missing border_width field to XWindowChanges struct
14272         * XplatUIX11.cs:
14273           - PeekMessage: Now throws exception if flags which are not yet
14274             supported are passed
14275           - Implemented SetWindowStyle() method
14276           - Fixed SetZOrder to handle AfterHwnd properly
14277         * XplatUI.cs: Added SetWindowStyle() method
14278         * XplatUIDriver.cs: Added SetWindowStyle() abstract
14279         * Control.cs:
14280           - Implemented UpdateStyles() method
14281           - Implemented UpdateZOrder() method
14282         * XplatUIOSX.cs: Added SetWindowStyle() stub
14284 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
14286         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
14287         button mouse).
14290 2005-01-11  Jackson Harper  <jackson@ximian.com>
14292         * TreeView.cs: Still need to draw lines to siblings even if out of
14293         the current node is out of the clip.
14295 2005-01-11  Jackson Harper  <jackson@ximian.com>
14297         * TreeView.cs: When setting the hbar/vbar/grip position use
14298         SetBounds so that perform layout is only called once. Also suspend
14299         and resume layout so layout is only done once for all controls.
14300         - Removed some debug fluff
14301         * SizeGrip.cs: Call base implmentation in overriding methods.
14302         - When visibility is changed the drawing buffers are killed so we
14303         need to redraw.
14305 2005-01-11  Jackson Harper  <jackson@ximian.com>
14307         * TreeView.cs: Calculate the open node count while drawing. This
14308         saves us an entire tree traversal for every paint operation. Use
14309         a member var for the open node count so less vars are passed around.
14311 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
14313         * MonthCalendar.cs:
14314         - fixed selection to use mousemove, not mouse polling on timer
14315         * ThemeWin32Classic.cs
14316         - removed redundant unused variable "no_more_content"
14317         
14318 2005-01-11  Peter Bartok  <pbartok@novell.com>
14320         * XplatUIX11.cs (DoEvents): Needs to return when no more events
14321           are pending, so it now calls PeekMessage instead of GetMessage;
14322           implemented a incomplete version of PeekMessage
14323         
14324 2005-01-11  Peter Bartok  <pbartok@novell.com>
14326         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
14327           I18n issues
14328         * TextBoxBase.cs: Added sending of TextChanged event
14330 2005-01-10  Jackson Harper  <jackson@ximian.com>
14332         * TreeView.cs: Try not to draw outside the clipping rectangle on
14333         each node element.
14335 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
14337         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
14339 2005-01-10  Jackson Harper  <jackson@ximian.com>
14341         * TreeView.cs:
14342         - Implement fast scrolling. Now only the newly
14343         exposed nodes are drawn and the old image is moved using the
14344         XplatUI::ScrollWindow method.
14345         - Factor in height of nodes when calculating whether or not the
14346         node is in the clipping rect.
14348 2005-01-10  Jackson Harper  <jackson@ximian.com>
14350         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
14352 2005-01-10  Peter Bartok  <pbartok@novell.com>
14354         * Application.cs: Added temporary hack to resolve all our resize
14355           required issues on startup. This will get fixed properly at
14356           some point in the future
14358 2005-01-10  Jackson Harper  <jackson@ximian.com>
14360         * SizeGrip.cs: New internal class that is used as a sizing
14361         grip control...hence the name.
14363 2005-01-10  Peter Bartok  <pbartok@novell.com>
14365         * Control.cs: Implemented proper TabIndex handling, now assigning
14366           a tabindex when a control is added to a container
14367         * GroupBox.cs (ctor): Now sets the Container style bit, required
14368           for Control.GetNextControl()
14370 2005-01-09  Jackson Harper  <jackson@ximian.com>
14372         * TextBoxBase.cs: Clear window when scrolling (fixes build).
14374 2005-01-09  Peter Bartok <pbartok@novell.com>
14376         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
14377           XplatUIX11.cs: Added ability to control ScrollWindow expose and
14378           an overload for ScrollWindow to allow only scrolling a rectangle
14380 2005-01-09  Peter Bartok <pbartok@novell.com>
14382         * Form.cs:
14383           - Implemented SetDesktopBounds method
14384           - Implemented SetDesktopLocation method
14386 2005-01-08  Jackson Harper  <jackson@ximian.com>
14388         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
14389         the node count has changed, this removes to VScroll::Refresh calls
14390         when drawing.
14392 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
14394         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
14396 2005-01-07  Jackson Harper  <jackson@ximian.com>
14398         * TreeNode.cs: Just update the single node when it is
14399         checked. Don't refresh after toggling, the Expand/Collapse already
14400         handles this.
14401         * TreeView.cs: Respect clipping a little more when drawing. Try
14402         not to redraw things that don't need to be redrawn. Just hide the
14403         scrollbars when they are no longer needed instead of removing
14404         them, so they don't have to be created again and again.
14405         
14406 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
14408         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
14409         coordinates to window space to place the caret properly, FIXED.
14410         Implement GetWindowState & SetWindowState
14412 2005-01-06  Peter Bartok <pbartok@novell.com>
14414         * Form.cs:
14415           - Implemented ClientSize property
14416           - Implemented DesktopBounds property
14417           - Implemented DesktopLocation property
14418           - Implemented IsRestrictedWindow property
14419           - Implemented Size property
14420           - Implemented TopLevel property
14421           - Implemented FormWindowState property
14422         * Control.cs:
14423           - Implemented GetTopLevel() method
14424           - Implemented SetTopLevel() method
14425         * X11Structs.cs (Atom):
14426           - Added AnyPropertyType definition
14427           - Added MapState definiton and updated XWindowAttribute struct
14428         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
14429         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
14430         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
14431         * XplatUIWin32.cs:
14432           - Implemented GetWindowState() and SetWindowState() methods
14433           - Fixed Win32GetWindowLong return type
14434         * XplatUIX11.cs:
14435           - Introduced central function for sending NET_WM messages
14436           - Implemented GetWindowState() and SetWindowState() methods
14437         * TextBoxBase.cs (set_Lines):
14438           - Now uses Foreground color for text added via Text property (Duh!)
14439           - Added code to remember programmatically requested size (fixes
14440             behaviour when Multiline is set after Size)
14441           - Added AutoSize logic
14443 2005-01-06  Jackson Harper  <jackson@ximian.com>
14445         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
14447 2005-01-06  Jackson Harper  <jackson@ximian.com>
14449         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
14450         set to less then 0.
14452 2005-01-06  Jackson Harper  <jackson@ximian.com>
14454         * ScrollableControl.cs: Lazy init the scrollbars.
14455         
14456 2005-01-06  Jackson Harper  <jackson@ximian.com>
14458         * Theme.cs: Speed up getting pens and solid brushes, by using
14459         their ARGB as a hash instead of tostring and not calling Contains.
14461 2005-01-06  Peter Bartok <pbartok@novell.com>
14463         * Form.cs:
14464           - Implemented OnActivated and OnDeactivate event trigger
14465           - Implemented Activate() method
14466           - Fixed ShowDialog() to activate the form that was active before
14467             the dialog was shown
14468         * XplatUIX11.cs:
14469           - Added global active_window var that tracks the currently active
14470             X11 window
14471           - Now always grabs Property changes from the root window to always
14472             catch changes on the active window property
14473           - Added code to PropertyNotify handler to send Active/Inactive
14474             messages when state changes. This puts X11 and Win32 en par on
14475             WM_ACTIVATE notifications (except for double notifications when
14476             the user clicks away from our modal window to another one of our
14477             windows)
14479 2005-01-05  Jackson Harper  <jackson@ximian.com>
14481         * ImageList.cs: Implment ctor
14483 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
14485         * XplatUIOSX.cs: Implement Activate/SetTopmost
14487 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
14489         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
14491 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
14493         * XplatUIOSX.cs: Implement GetActive/SetFocus.
14495 2005-01-05  Peter Bartok <pbartok@novell.com>
14497         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
14498           XplatUIOSX.cs: Added GetActive method to return the currently
14499           active window for the application (or null, if none is active)
14500         * Form.cs:
14501           - Implemented ActiveForm
14502           - Commented out owner assignment for modal dialogs (causes problems
14503             on Win32, since the owner will be disabled)
14504           - Reworked some Active/Focus handling (still incomplete)
14505         * CommonDialog.cs: Commented out owner assignment for modal dialogs
14506           (causes problems on Win32, since the owner will be disabled)
14507         * IWin32Window: Added ComVisible attribute
14509 2005-01-05  Peter Bartok <pbartok@novell.com>
14511         * ToolTip.cs (WndProc): Enable setting focus now that we have the
14512           required XplatUI functions.
14514 2005-01-05  Peter Bartok <pbartok@novell.com>
14516         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
14517           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
14518           to implement focus and activation handling; still incomplete and
14519           with debug output
14521 2005-01-04  Peter Bartok <pbartok@novell.com>
14523         * TextBoxBase.cs: Changed access level for Document property to
14524           match switch to internal for TextControl
14526 2005-01-04  Peter Bartok <pbartok@novell.com>
14528         * AccessibleObject: Added ComVisible attribute
14530 2005-01-04  Jackson Harper  <jackson@ximian.com>
14532         * X11Keyboard.cs: Remove unneeded var.
14534 2005-01-04  Jackson Harper  <jackson@ximian.com>
14536         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
14537         but PAINT.
14538         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
14539         ClientMessage. This makes apps exit cleanly (more often).
14540         
14541 2005-01-04  Jackson Harper  <jackson@ximian.com>
14543         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
14544         handling focus, return correct colors and fonts,
14545         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
14546         handle selection, horizontal scrolling, and mouse interaction.
14548 2005-01-04  Peter Bartok <pbartok@novell.com>
14550         * ICommandExecutor.cs: Added
14551         * IDataGridColumnStyleEditingNotificationService.cs: Added
14552         * IFeatureSupport.cs: Added
14553         * IFileReaderService.cs: Added
14554         * IDataObject.cs: Added ComVisible attribute
14555         * AmbientProperties.cs: Added
14556         * BaseCollection.cs: Added missing attributes
14557         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
14558         * BaseCollection.cs: Added missing attributes
14559         * Binding.cs: Added TypeConverter attribute
14560         * BindingContext.cs: Added DefaultEvent attribute
14561         * BindingsCollection.cs: Added DefaultEvent attribute
14562         * Button.cs: Added DefaultValue attribute
14563         * DragEventArgs.cs: Added ComVisible attribute
14564         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
14565         * KeyEventArgs.cs: Added ComVisible attribute
14566         * KeyPressEventArgs.cs: Added ComVisible attribute
14567         * MouseEventArgs.cs: Added ComVisible attribute
14568         * NavigateEventArgs.cs: Added
14569         * NavigateEventHandler.cs: Added
14570         * FeatureSupport.cs: Added
14571         * OSFeature.cs: Added
14572         * Theme.cs: Added abstract Version property to support OSFeature
14573         * ThemeWin32Classic.cs: Added Version property to
14574           support OSFeature.Themes
14575         * ProgressBar.cs: Removed OnPaintBackground override, not required since
14576           the proper styles to avoid background drawing are set, also doesn't
14577           match MS signature
14578         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
14579         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
14580         * ScrollEventArgs.cs: Added ComVisible attribute
14581         * SplitterEventArgs.cs: Added ComVisible attribute
14582         * AccessibleSelection.cs: Added Flags attribute
14583         * Appearance.cs: Added ComVisible attribute
14584         * Border3DSide.cs: Added ComVisible attribute
14585         * Border3DStyle.cs: Added ComVisible attribute
14586         * BorderStyle.cs: Added ComVisible attribute
14587         * DragAction.cs: Added ComVisible attribute
14588         * ErrorBlinkStyle.cs: Added
14589         * ScrollEventType.cs: Added ComVisible attribute
14590         * AnchorStyles.cs: Added Editor attribute
14591         * DockStyle.cs: Added Editor attribute
14592         * HorizontalAlignment.cs: Added ComVisible attribute
14593         * HelpEventArgs.cs: Added ComVisible attribute
14594         * PaintEventArgs.cs: Added IDisposable
14596 2005-01-04  Peter Bartok <pbartok@novell.com>
14598         * TextControl.cs: Switched Line, LineTag and Document classes to
14599           internal
14601 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
14603         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
14604         Simple mode, fixes, IntegralHeight, etc.
14606 2005-01-04  Peter Bartok <pbartok@novell.com>
14608         * TextBoxBase.cs: Using proper font variable now
14610 2005-01-04  Peter Bartok <pbartok@novell.com>
14612         * Form.cs (ShowDialog): Set parent to owner, if provided
14613         * GroupBox.cs: Removed unused vars
14614         * TextControl.cs:
14615           - Added GetHashCode() for Document and LineTag classes
14616           - Removed unused variables
14617           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
14618             to allow translation between continuous char position and line/pos
14619         * CheckBox.cs: Removed vars that are provided by base class
14620         * RadioButton.cs: Removed vars that are provided by base class, added
14621           new keyword where required
14622         * LinkLabel.cs: Added new keyword where required
14623         * Control.cs (WndProc): Removed unused variable
14624         * TextBoxBase.cs:
14625           - Finished SelectionLength property
14626           - Implemented SelectionStart property
14627           - Implemented Text property
14628           - Removed unused vars
14629         * MessageBox.cs: Added new keyword where required
14630         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
14631           WndProc signature
14632         * MenuAPI.cs: Added new keyword where required
14633         * ButtonBase.cs: Removed vars that are provided by base class, added
14634           new keyword where required
14635         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
14636           argument to double, to allow compiling with csc 2.0 (Atsushi ran
14637           into this)
14638         * Application.cs (Run): Now triggers the ThreadExit event
14639         * CommonDialog.cs: Added new keyword where required; now properly sets
14640           parent (owner) for dialog
14641         * XplatUIX11.cs: Commented out unused vars
14642         * StatusBar.cs: Fixed signature for Text property
14643         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
14645 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
14647         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
14648         TrackBar.cs, MonthCalendar.cs: remove unused vars
14650 2005-01-03  Jackson Harper  <jackson@ximian.com>
14652         * ThemeWin32Classic.cs:
14653         * X11Keyboard.cs: Remove unused vars.
14655 2005-01-03  Peter Bartok  <pbartok@novell.com>
14657         * TextBox.cs:
14658           - set_Text: Tied into TextControl
14659           - set_TextAlignment: Tied into TextControl
14660         * TextControl.cs:
14661           - Added alignment properties and implemented alignment handling
14662             and drawing (still has a bug, not generating proper expose events)
14663           - Added new Line() constructor to allow passing the line alignment
14664           - Fixed selection setting, properly handling end<start now
14665           - Added aligment considerations to RecalculateDocument()
14666         * TextBoxBase.cs:
14667           - Now properly enforces control height for single line controls
14668           - Added support for CharacterCasing
14669           - Added IsInputKey override
14670           - Fixed Keys.Enter logic
14671           - Added SetBoundsCore override
14672           - Fixed mouse selection handling
14674 2005-01-03  Jackson Harper  <jackson@ximian.com>
14676         * TreeView.cs:
14677           - Collapse and uncheck all nodes when CheckBoxes is disabled.
14678           - Checkboxes are always aligned to the bottom of the node,
14679           regardless of item height.
14680           - Use the node bounds to draw the text so we can center it when
14681           the item height is greater then the font height.
14682           - Node::Bounds are only the text part of the node.
14683         * TreeNode.cs: New method to combine collapsing and unchecking all
14684           nodes recursively.
14686 2005-01-02  Jackson Harper  <jackson@ximian.com>
14688         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
14689         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
14690         tree when a check is changed. TODO: Only refresh the checked node.
14692 2004-12-30  Jackson Harper  <jackson@ximian.com>
14694         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
14695         * TreeNode.cs: When collapsing make sure to never collapse the
14696         root node.
14698 2004-12-29  Jackson Harper  <jackson@ximian.com>
14700         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
14701         
14702 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
14704         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
14706 2004-12-28  Peter Bartok  <pbartok@novell.com>
14708         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
14709           not yet assigned
14711 2004-12-28  Peter Bartok  <pbartok@novell.com>
14713         * Control.cs (WndProc): Added WM_HELP handler, now generates
14714           HelpRequested event
14715         * Form.cs: Added HelpButton property and required support code
14716         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
14718 2004-12-28  Peter Bartok  <pbartok@novell.com>
14720         * CommonDialog.cs:
14721           - Made DialogForm.owner variable internal
14722           - Added check to ensure owner form is set before setting
14723             owner properties in CreateParams
14725 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
14727         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
14728           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
14729           GetCursorPos.  Fix major visibility issues.  Rework the windowing
14730           system to support borderless/titleless windows (implements menus).
14731           Fix GetWindowPos.  Implement initial background color support for
14732           views.
14734 2004-12-28  Peter Bartok  <pbartok@novell.com>
14736         * Form.cs (get_CreateParams): Make sure we have an owner before using
14737           the owner variable. Implement proper default if no owner exists
14739 2004-12-28  Peter Bartok  <pbartok@novell.com>
14741         * In preparation for making Managed.Windows.Forms the default build target
14742           for System.Windows.Forms, the following stubbed files were added.
14743           Dialogs are currently being implemented by contributors and are only
14744           short-term place holders.
14745         * ColorDialog.cs: Initial check-in (minmal stub)
14746         * DataGrid.cs: Initial check-in (minimal stub)
14747         * DataGridLineStyle.cs: Initial check-in (minimal stub)
14748         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
14749         * DataGridTableStyle.cs: Initial check-in (minimal stub)
14750         * FontDialog.cs: Initial check-in (minimal stub)
14751         * FileDialog.cs: Initial check-in (minimal stub)
14752         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
14753         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
14754         * OpenFileDialog: Initial check-in (minimal stub)
14755         * IComponentEditorPageSite.cs: Initial check-in
14756         * Splitter.cs: Initial check-in (for Jackson)
14757         * SplitterEventArgs.cs: Initial check-in (for Jackson)
14758         * SplitterEventHandler.cs: Initial check-in (for Jackson)
14759         * TextBox.cs: Initial check-in; still needs some wiring to
14760           TextControl backend
14761         * Form.cs: Implemented ControlBox property
14762         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
14763         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
14764         * TextControl.cs: Added selection functionality; added todo header
14765         * TextBoxBase.cs:
14766           - Implemented Lines property
14767           - Implemented TextHeight property
14768           - Implemented SelectedText property
14769           - Implemented SelectionLength property
14770           - Implemented SelectAll method
14771           - Implemented ToString method
14772           - Removed and cleaned up some debug code
14773           - Implemented (still buggy) mouse text selection
14775 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
14777         * ComboBox.cs: Complete DropDownList implementation, fixes.
14779 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
14781         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
14782         * ComboBoxStyle.cs: ComboBoxStyle enum
14783         * ComboBox.cs: Initial work on ComboBox control
14785 2004-12-21  Peter Bartok  <pbartok@novell.com>
14787         * Control.cs (ctor, CreateParams): Moved setting of is_visible
14788           forward so that anything that creates a window gets the default,
14789           also no longer uses Visible property in CreateParams to avoid
14790           walking up the parent chain and possibly get the wrong visible
14791           status. Fixed IsVisible to no longer walk up to the parent.
14793 2004-12-21  Peter Bartok  <pbartok@novell.com>
14795         * Form.cs (ShowDialog): Unset modality for the proper window
14797 2004-12-20  Peter Bartok  <pbartok@novell.com>
14799         * CommonDialog.cs: Initial check-in
14801 2004-12-20  Peter Bartok  <pbartok@novell.com>
14803         * Control.cs (Visible): Now uses the parent window instead of the
14804           client area window for the property
14806         * Form.cs
14807           - ShowDialog(): Now uses the proper window for modality
14808           - The default visibility state for the form parent is now false. This
14809             will prevent the user from seeing all the changes to the form and
14810             its controls before the application hits Application.Run()
14811           - Removed some stale commented out code
14813         * NativeWindow.cs:
14814           - Added FindWindow() method to have a method to check for existence
14815             of a window handle
14816           - Added ability to override default exception handling (for example
14817             when debugging with VS.Net; to do this the ExternalExceptionHandler
14818             define must be set
14819           - Removed some useless debug output
14821         * XplatUIX11.cs:
14822           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
14823             not working as expected
14824           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
14825             property to allow switching back to the modal window if focus is
14826             given to another one of our windows (Application Modal)
14827           - Now only sets override_redirect if we create a window
14828             without WS_CAPTION
14829           - Moved EventMask selection before mapping of newly created window
14830             so we can catch the map event as well
14831           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
14832           - Added various Atom related DllImports
14833           - Implemented Exit() method
14834           - .ctor() : No longer shows window if WS_VISIBLE is not defined
14835             in the CreateParams
14837         * MessageBox.cs: Now properly deals with the FormParent window by
14838           providing an override the FormParent CreateParams property to
14839           set as POPUP instead of OVERLAPPED window.
14841 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
14843         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
14844         Minor code cleanup.
14846 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
14847         
14848         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
14850 2004-12-18  Peter Bartok  <pbartok@novell.com>
14852         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
14853           implementing SetModal() method
14855 2004-12-18  Peter Bartok  <pbartok@novell.com>
14857         * X11Structs.cs (XGCValues): Fixed type of function element
14858         * XplatUI.cs: Added ScrollWindow() method
14859         * XplatUIDriver.cs: Added ScrollWindow() abstract
14860         * XplatUIWin32.cs: Implemented ScrollWindow() method
14861         * XplatUIX11.cs: Implemented ScrollWindow() method
14862         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
14864 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
14866         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
14867         Some more keyboard support (INCOMPLETE)
14869 2004-12-17  Peter Bartok  <pbartok@novell.com>
14871         * TextControl.cs:
14872         - Added color attribute to line tags.
14873         - Added color argument to all functions dealing with tags
14874         - Added color argument support to various functions
14875         - Fixed miss-calculation of baseline/shift in certain circumstances
14877         * TextBoxBase.cs: Added new color option to test code
14879 2004-12-17  Jackson Harper  <jackson@ximian.com>
14881         * TreeNode.cs:
14882         * MonthCalendar.cs: Signature fixes
14884 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
14886         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
14887         keyboard event moved it.  Create a new graphics context for each paint resolves this
14889 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
14891         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
14892         Make caret exist and go blink blink.  Initial keyboard support.
14893         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
14894         works.
14896 2004-12-17  Jackson Harper  <jackson@ximian.com>
14898         * XplatUIStructs.cs: Updated set of virtual keycodes.
14899         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
14901 2004-12-17  Jackson Harper  <jackson@ximian.com>
14903         * XplatUIX11.cs: Prune old keyboard code.
14905 2004-12-17  Jackson Harper  <jackson@ximian.com>
14907         * XplatUIX11.cs: When generating mouse wparams get the modifier
14908         keys from the ModifierKeys property.
14910 2004-12-17  Jackson Harper  <jackson@ximian.com>
14912         * X11Keyboard.cs: Send up/down input when generating
14913         messages. Remove some unused vars.
14915 2004-12-17  Jackson Harper  <jackson@ximian.com>
14917         * TabControl.cs:
14918         * TreeView.cs: get rid of warnings.
14920 2004-12-17  Jackson Harper  <jackson@ximian.com>
14922         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
14924 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
14926         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
14927           CheckedListBox.cs: Implementation
14929 2004-12-17  Peter Bartok  <pbartok@novell.com>
14931         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
14933 2004-12-16  Peter Bartok  <pbartok@novell.com>
14935         * TextControl.cs:
14936           - InsertCharAtCaret(): Fixed start pos fixup
14937           - CaretLine_get: No longer derives the line from the tag, the tag
14938             could be stale if lines in the document have been added or deleted
14939           - RebalanceAfterDelete(): Fixed bug in balancing code
14940           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
14941           - Line.Streamline(): Now can also elminate leading empty tags
14942           - DumpTree(): Added a few more tests and prevented exception on
14943             uninitialized data
14944           - Added Debug section for Combining lines
14945           - Delete(): Now copies all remaining properties of a line
14946           
14947         * TextBoxBase.cs:
14948           - Left mousebutton now sets the caret (and middle button still acts
14949             as formatting tester, which must go away soon)
14950           - Added Debug section for Deleting/Combining lines
14951           - Fixed calculations for UpdateView after Combining lines
14953 2004-12-16  Peter Bartok  <pbartok@novell.com>
14955         * TextControl.cs: Now properly aligns text on a baseline, using the
14956           new XplatUI.GetFontMetrics() method. Simplified several calculations
14957         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
14958           defined
14960 2004-12-16  Peter Bartok  <pbartok@novell.com>
14962         * XplatUI.cs: Added GetFontMetrics() method
14963         * XplatUIDriver.cs: Added GetFontMetrics() abstract
14964         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
14965           into libgdiplus, our private GetFontMetrics function
14966         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
14967         * XplatUIWin32.cs: Implemented GetFontMetrics() method
14969 2004-12-16  Jackson Harper  <jackson@ximain.com>
14971         * XplatUIStruct.cs: Add enum for dead keys
14972         * X11Keyboard.cs: Map and unmap dead keys.
14974 2004-12-16  Jackson Harper  <jackson@ximian.com>
14976         * X11Keyboard.cs: Detect and use the num lock mask.
14978 2004-12-16  Peter Bartok  <pbartok@novell.com>
14980         * Control.cs (CreateGraphics): Added check to make sure the
14981           handle of the window exists before calling Graphics.FromHwnd()
14983 2004-12-16  Peter Bartok  <pbartok@novell.com>
14985         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
14986           contains a lot of code that's not supposed to be there for the
14987           real thing, but required for developing/testing the textbox
14988           backend.
14990 2004-12-16  Peter Bartok  <pbartok@novell.com>
14992         * TextControl.cs:
14993         - Fixed Streamline method
14994         - Added FindTag method to Line
14995         - Added DumpTree method for debugging
14996         - Added DecrementLines() method for deleting lines
14997         - Fixed UpdateView to update the cursor to end-of-line on single-line
14998           updates
14999         - Added PositionCaret() method
15000         - Fixed MoveCaret(LineDown) to move into the last line, too
15001         - Added InsertChar overload
15002         - Fixed InsertChar tag offset calculations
15003         - Added DeleteChar() method
15004         - Added Combine() method for folding lines
15005         - Fixed Delete() method, no longer allocates wasted Line object and
15006           now copies all properties when swapping nodes
15007         - Delete() method now updates document line counter
15009 2004-12-15  Jackson Harper  <jackson@ximian.com>
15011         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
15012         * X11Keyboard.cs: Expose the currently selected modifier keys
15013         through a property.
15015 2004-12-15  Peter Bartok  <pbartok@novell.com>
15017         * TextControl.cs: Initial check-in. Still incomplete
15019 2004-12-15  Jackson Harper  <jackson@ximian.com>
15021         * TreeNode.cs:
15022         * TreeView.cs: Fix build on csc (second time today ;-))
15024 2004-12-15  Jackson Harper  <jackson@ximian.com>
15026         * TreeView.cs: Store the treenodes plus/minus box bounds when it
15027         is calculated and use this for click testing.
15028         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
15030 2004-12-15  Jackson Harper  <jackson@ximian.com>
15032         * TreeView.cs: Pass the nodes image index to the image list when
15033         drawing that image.
15035 2004-12-15  Jackson Harper  <jackson@ximian.com>
15037         * X11Keyboard.cs: Set messages hwnd.
15038         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
15039         post_message calls.
15041 2004-12-15  Jackson Harper  <jackson@ximian.com>
15043         * X11Keyboard.cs: Fix to compile with csc.
15044         
15045 2004-12-15  Jackson Harper  <jackson@ximian.com>
15047         * X11Structs.cs: Add key mask values
15048         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
15049         * X11Keyboard.cs: New file - Extrapolates and interpolates key
15050         down/up foo into WM_CHAR foo
15051         * KeyboardLayouts.cs: Common keyboard layouts
15052         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
15053         post messages into the main queue.
15055 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
15057         * Button.cs: implement ProcessMnemonic
15058         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
15059           brushes everytime
15060         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
15061         * ButtonBase.cs: Show HotkeyPrefix (not the &)
15063 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
15064         
15065         * MonthCalendar.cs: Implemented click-hold for next/previous month
15066           and date selection
15067           
15068 2004-12-11  Peter Bartok  <pbartok@novell.com>
15070         * X11Structs.cs:
15071           - Added XKeyboardState (moved from XplatUIX11.cs)
15072           - Added XCreateGC related enums and structures
15073           - Added GXFunction for XSetFunction
15075         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
15077         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
15078           CaretVisible() calls
15080         * ToolTip.cs: Added code to prevent stealing focus from app windows
15082         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
15083           DestroyCaret, SetCaretPos and CaretVisible)
15085         * XplatUIX11.cs:
15086           - Added implementation for caret functions
15087           - Moved hover variables into a struct, to make it a bit easier
15088             on the eyes and to debug
15089           - Removed XKeyboardState (moved to XplatUIX11.cs)
15090           - Moved Keyboard properties into the properties region
15092         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
15093           call to get a graphics context for our control
15095         * XplatUIOSX.cs: Added empty overrides for the new caret functions
15097         * TreeView.cs: Fixed bug. No matter what color was set it would always
15098           return SystemColors.Window
15100         * XplatUIWin32.cs: Implemented caret overrides
15102 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
15104         * ListBox.cs: fire events, implement missing methods and properties,
15105         sorting.
15107 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
15109         * MonthCalendar.cs: invalidation bug fixing
15110         * ThemeWin32Classic.cs: paint fixing
15112 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
15114         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
15115         prepare the CGContextRef there now.
15117 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
15119         * MonthCalendar.cs:
15120           - optimisationL only invalidate areas that have changed
15121         * ThemeWin32Classic.cs:
15122           - only paint parts that intersect with clip_area
15124 2004-12-09  Peter Bartok  <pbartok@novell.com>
15126         * Application.cs: Undid changes from r37004 which cause problems
15127         on X11
15129 2004-12-09  Ravindra  <rkumar@novell.com>
15131         * ToolBar.cs: Added support for displaying ContextMenu
15132         attached to a button on ToolBar.
15133         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
15134         property.
15136 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
15138         * Label.cs: autosize works in text change and removes unnecessary
15139         invalidate
15141 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
15143         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
15144         remove warnings
15146 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
15148         * XplatUIOSX.cs: Added mouse move/click/grab support
15149         Remove some debugging WriteLines not needed anymore.
15150         Add window resizing/positioning.
15151         Fix visibility on reparenting.
15153 2004-12-08  Peter Bartok  <pbartok@novell.com>
15155         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
15157 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
15159         * XplatUIOSX.cs: Initial checkin
15160         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
15162 2004-12-03  Ravindra <rkumar@novell.com>
15164         * ListView.cs: Added some keybindings and fixed scrolling.
15165         ScrollBars listen to ValueChanged event instead of Scroll
15166         Event. This would let us take care of all changes being
15167         done in the scrollbars' values programmatically or manually.
15168         * ListView.cs (CanMultiselect): Added a check for shift key.
15169         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
15170         * ListViewItem.cs (Clone): Fixed. We need to make a copy
15171         of ListViewSubItemCollection as well.
15173 2004-12-06  Peter Bartok <pbartok@novell.com>
15175         * Control.cs (Parent): Added check and exception to prevent
15176         circular parenting
15178 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
15180         * ListBox.cs: implemented clipping, selection single and multiple,
15181         bug fixing
15183 2004-12-03  Ravindra <rkumar@novell.com>
15185         * ListView.cs (ListView_KeyDown):
15186         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
15187         when CTRL key is pressed.
15188         * ListViewItem.cs (Selected): Fixed setting the property.
15190 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
15192         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
15194         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
15195         MinimizeBox, ShowInTaskbar, TopMost properties.
15197         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
15198         will be implemented).
15200 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
15202         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
15204         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
15205         tests.
15206         
15207         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
15208         
15209         * TreeView.cs: BackColor is Colors.Window.
15211 2004-12-01  Jackson Harper  <jackson@ximian.com>
15213         * TreeView.cs: When resizing the tree if the user is making it
15214         smaller we don't get expose events, so we need to handle adding
15215         the horizontal scrollbar in the size changed handler as well as
15216         the expose handler.
15218 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
15220         * DrawItemState.cs: fixes wrong enum values
15222 2004-12-01  Jackson Harper  <jackson@ximian.com>
15224         * TreeView.cs: Resize the hbar as well as the vbar on resize.
15226 2004-12-01  Jackson Harper  <jackson@ximian.com>
15228         * NodeLabelEditEventArgs.cs:
15229         * NodeLabelEditEventHandler.cs:
15230         * OpenTreeNodeEnumerator.cs:
15231         * TreeNode.cs:
15232         * TreeNodeCollection.cs:
15233         * TreeView.cs:
15234         * TreeViewAction.cs:
15235         * TreeViewCancelEventArgs.cs:
15236         * TreeViewCancelEventHandler.cs:
15237         * TreeViewEventArgs.cs:
15238         * TreeViewEventHandler.cs: Initial implementation.
15240 2004-12-01  Ravindra <rkumar@novell.com>
15242         * ListView.cs (CalculateListView): Fixed scrolling related
15243         calculations. Also, removed some debug statements from other
15244         places.
15245         * ListViewItem.cs: Changed access to 'selected' instance variable
15246         from private to internal.
15247         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
15249 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
15251         * ThemeWin32Classic.cs: remove cache of brush and pens for
15252         specific controls and use the global system, fixes scrollbutton
15253         bugs (for small sizes, disabled, etc)
15254         
15255         * ScrollBar.cs: does not show the thumb for very small controls
15256         (as MS) and allow smaller buttons that the regular size
15258 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
15260         * UpDownBase.cs: Add abstract methods for the interface.
15261         Add new virtual methods (need to be hooked up to TextEntry when it
15262         exists).
15263         Add override methods for most features.
15264         Computes the size, forces the height of the text entry.
15266         * NumericUpDown.cs: Put here the current testing code.
15268         * Set eol-style property on all files that do not have mixed line
15269         endings, to minimize the future problems.  There are still a few
15270         files with mixed endings, and someone should choose whether they
15271         want to move it or not.
15273 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
15275         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
15276         System.Colors
15277         
15278 2004-11-30  Ravindra <rkumar@novell.com>
15280         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
15281         drawing and replaced use of SystemColors by theme colors.
15282         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
15283         * ListView.cs (ListViewItemCollection.Add): Throw exception when
15284         same ListViewItem is being added more than once.
15286 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
15288         * MonthCalendar.cs:
15289           - ControlStyles love to make the control not flicker
15290           
15291 2004-11-30  Peter Bartok  <pbartok@novell.com>
15293         * CharacterCasing.cs: Added
15295 2004-11-29  Peter Bartok  <pbartok@novell.com>
15297         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
15298           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
15299           I am removing these files as they conflict with already completed
15300           work. While it is fantastic to get contributions to MWF, I
15301           respectfully ask that everyone please coordinate their contributions
15302           through mono-winforms-list or #mono-winforms at this time. We're
15303           explicitly avoiding stubbing and don't want controls that don't have
15304           their basic functionality implemented in svn. Please also see
15305           http://www.mono-project.com/contributing/winforms.html
15308 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
15310         * Application.cs (ModalRun): Don't hang after exit.
15312         * Theme.cs: New TreeViewDefaultSize property.
15314         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
15315         with less hardcoded SystemColors constant.
15316         Implemented TreeViewDefaultSize.
15318         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
15319         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
15322 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
15324         * MonthCalendar.cs:
15325           - Fix NextMonthDate and PrevMonthDate click moving calendar
15327 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
15329         * MonthCalendar.cs:
15330           - Fix usage of ScrollChange Property when scrolling months
15332 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
15334         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
15335          - Fixes menu destroying
15336          - Support adding and removing items on already created menus
15338 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
15340         * MonthCalendar.cs:
15341           - Re-worked all bolded dates handling to match win32
15342         * ThemeWin32Classic.cs:
15343           - Fixed rendering with bolded dates
15345 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
15347         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
15348         - Horizontal scroolbar
15349         - Multicolumn
15350         - Fixes
15353 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
15355         * MonthCalendar.cs:
15356           - Fix Usage of MaxSelectionCount from SelectionRange
15357           - Fixed Shift + Cursor Selection
15358           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
15359           - Fixed normal cursor selection to be compat with win32
15360           - Fixed Shift + Mouse Click selection
15362 2004-11-24  Peter Bartok <pbartok@novell.com>
15364         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
15365         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
15366         * XplatUIX11.cs:
15367           - CreatedKeyBoardMsg now updates keystate with Alt key
15368           - Added workaround for timer crash to CheckTimers, Jackson will
15369             develop a proper fix and check in later
15370           - Implemented DispatchMessage
15371           - Removed calling the native window proc from GetMessage (call
15372             now moved to DispatchMessage)
15374         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
15375           the keydata (Fixes bug #69831)
15377         * XplatUIWin32.cs:
15378           - (DispatchMessage): Switched to return IntPtr
15379           - Added DllImport for SetFocus
15381 2004-11-24  Ravindra <rkumar@novell.com>
15383         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
15384         background drawing.
15385         * ListViewItem.cs: Fixed various properties, calculations
15386         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
15387         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
15388         and some internal properties. Fixed MouseDown handler and Paint
15389         method.
15391 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
15393         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
15395 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
15397         * ContainerControl.cs: correct accidental check in of local changes
15399 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
15401         * ThemeWin32Classic.cs:
15402                 - Fixed Drawing Last month in grid (sometimes not showing)
15403         * MonthCalendar.cs:
15404                 - Fixed title width calculation bug (makeing title small)
15406 2004-11-23  Peter Bartok <pbartok@novell.com>
15408         * XplatUIX11.cs:
15409           - Added generation of WM_MOUSEHOVER event
15410           - Added missing assignment of async_method atom
15411           - Fixed WM_ERASEBKGND; now only redraws the exposed area
15413 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
15415         * ThemeWin32Classic.cs:
15416                 - Fixed Drawing of today circle when showtodaycircle not set
15417                 - fixed drawing of first and last month in the grid (gay dates)
15418         * MonthCalendar.cs:
15419                 - Fixed Drawing of today circle
15420                 - Fixed drawing of grady dates
15421                 - Fixed HitTest for today link when ShowToday set to false
15422                 - Fixed DefaultSize to obey ShowToday
15424 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
15426         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
15427         * System.Windows.Forms/Theme.cs
15428         * MonthCalendar.cs: added for MonthCalendar
15429         * SelectionRange.cs: added for MonthCalendar
15430         * Day.cs: added for MonthCalendar: added for MonthCalendar
15431         * DateRangeEventArgs.cs: added for MonthCalendar
15432         * DateRangeEventHandler.cs: added for MonthCalendar
15434 2004-11-22  Ravindra <rkumar@novell.com>
15436         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
15437         property.
15439 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
15441         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
15442         event handler.
15443         
15444         * NumericUpDown.cs: Added new implementation.
15445         * UpDownBase.cs: Added new implementation.
15447         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
15448         implementations.
15449         
15450         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
15451         implementations.
15453         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
15454         methods.
15456 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
15458         * Timer.cs  (Dispose): Should call the base dispose when
15459         overriding.
15461 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
15463         * ScrollBar.cs: updates thumb position when max, min or increment
15464         is changed
15466 2004-11-21  Ravindra <rkumar@novell.com>
15468         * ListView.cs: Implemented item selection, activation and
15469         column header style. Fixed properties to do a redraw, if
15470         required. Added support for MouseHover, DoubleClick, KeyDown
15471         and KeyUp event handling and some minor fixes.
15472         * ListViewItem.cs: Fixed constructor.
15473         * ThemeWin32Classic.cs: Improved drawing for ListView.
15475 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
15477         * ThemeWin32Classic.cs: initial listbox drawing code
15478         * DrawMode.cs: new enumerator
15479         * ListControl.cs: stubbed class
15480         * ListBox.cs: initial implementation
15481         * Theme.cs: new methods definitions
15482         * SelectionMode.cs: new enumerator
15484 2004-11-17  Peter Bartok  <pbartok@novell.com>
15486         * XplatUIWin32.cs: Added double-click events to the class style
15487         * Control.cs (WndProc):
15488           - Added handling of click-count to MouseDown/ MouseUp events.
15489           - Added handling of middle and right mouse buttons
15490           - Removed old debug code
15492 2004-11-17  Jackson Harper  <jackson@ximian.com>
15494         * XplatUIX11.cs: Use the new Mono.Unix namespace.
15496 2004-11-17  Ravindra <rkumar@novell.com>
15498         * ListView.cs: Added event handling for MouseMove/Up/Down.
15499         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
15500         * ThemeWin32Classic.cs: We need to clear the graphics context and
15501         draw column header in a proper state.
15504 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
15506         *  Menu.cs: fixes signature
15508 2004-11-16  Peter Bartok  <pbartok@novell.com>
15510         * XplatUIX11.cs (GetMessage): Implemented generation of
15511           double click mouse messages
15513 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
15515         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
15516         not by menu
15518 2004-11-11  Peter Bartok  <pbartok@novell.com>
15520         * HandleData.cs: Added Visible property
15521         * XplatUIX11.cs (IsVisible): Now uses Visible property from
15522           HandleData
15523         * XplatUIX11.cs: Removed old debug leftovers
15524         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
15525         * Control.cs (WndProc): Removed old debug leftovers,
15526           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
15527           needed WM_SIZE handling
15529 2004-11-11  Jackson Harper  <jackson@ximian.com>
15531         * OwnerDrawPropertyBag.cs:
15532         * TreeViewImageIndexConverter.cs: Initial implementation
15534 2004-11-10  Jackson Harper  <jackson@ximian.com>
15536         * ThemeWin32Classic.cs:
15537         * TabControl.cs: instead of moving tabs by the slider pos just
15538         start drawing at the tab that is offset by the slider. This way
15539         scrolling always moves by exactly one tab.
15541 2004-11-10  Jackson Harper  <jackson@ximian.com>
15543         * TabControl.cs: You can only scroll left when the slider has
15544         already ben moved right.
15545         
15546 2004-11-10  Jackson Harper  <jackson@ximian.com>
15548         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
15549         the clip area.
15550         
15551 2004-11-10  Jackson Harper  <jackson@ximian.com>
15553         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
15554         clip area.
15555         
15556 2004-11-09  Jackson Harper  <jackson@ximian.com>
15558         * TabControl.cs (CalcXPos): New helper method so we can determine
15559         the proper place to start drawing vertical tabs.
15560         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
15561         
15562 2004-11-09  Jackson Harper  <jackson@ximian.com>
15564         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
15565         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
15566         and Bottom, left and right are illegal values for this and
15567         multiline is enabled when the alignment is set to left or right.
15568         (DrawTab): Each alignment block should draw the text itself now
15569         because Left requires special love. Also add rendering for Left
15570         aligned tabs.
15571         
15572 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
15574         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
15575         does not destroy the windows, removes debugging messages
15577 2004-11-09  jba  <jba-mono@optusnet.com.au>
15579         * ThemeWin32Classic.cs
15580         (DrawButtonBase): Fix verticle text rect clipping in windows
15581         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
15582         rendering and incorrect text rect clipping
15583         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
15584         rendering and incorrect text rect clipping
15585         
15586 2004-11-08  Jackson Harper  <jackson@ximian.com>
15588         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
15589         bottom when they are bottom aligned so the bottoms of the tabs get
15590         displayed.
15591         * TabControl.cs (DropRow): Move rows up instead of down when the
15592         tab control is bottom aligned.
15594 2004-11-08 13:59  pbartok
15596         * XplatUIX11.cs:
15597           - Added handling for various window styles
15598           - Added handling for popup windows
15599           - Added SetTopmost handling
15601 2004-11-08 13:55  pbartok
15603         * XplatUIWin32.cs:
15604           - Added argument to SetTopmost method
15605           - Fixed broken ClientToScreen function
15607 2004-11-08 13:53  pbartok
15609         * XplatUIStructs.cs:
15610           - Added missing WS_EX styles
15612 2004-11-08 13:53  pbartok
15614         * XplatUI.cs, XplatUIDriver.cs:
15615           - Added argument to SetTopmost
15617 2004-11-08 13:52  pbartok
15619         * X11Structs.cs:
15620           - Added XSetWindowAttributes structure
15621           - Improved XWindowAttributes structure
15622           - Added SetWindowValuemask enum
15623           - Added window creation arguments enum
15624           - Added gravity enum
15625           - Added Motif hints structure
15626           - Added various Motif flags and enums
15627           - Added PropertyMode enum for property functions
15629 2004-11-08 13:50  pbartok
15631         * Form.cs:
15632           - Fixed arguments for updated SetTopmost method
15634 2004-11-08 13:49  pbartok
15636         * ToolTip.cs:
15637           - Fixed arguments for updated SetTopmost function
15638           - Fixed usage of PointToClient
15640 2004-11-08 13:44  pbartok
15642         * MenuAPI.cs:
15643           - Added Clipping of children and siblings
15645 2004-11-08 13:41  pbartok
15647         * MainMenu.cs:
15648           - Removed SetMenuBarWindow call. We do this in Form.cs
15650 2004-11-08 13:40  jackson
15652         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
15653           scrolling jimmi in the correct location with bottom aligned tabs
15655 2004-11-08 13:36  pbartok
15657         * ContainerControl.cs:
15658           - Implemented BindingContext
15659           - Implemented ParentForm
15661 2004-11-08 12:46  jackson
15663         * TabControl.cs: Put bottom rendered tabs in the right location
15665 2004-11-08 07:15  jordi
15667         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
15668           removes dead code
15670 2004-11-05 17:30  jackson
15672         * TabControl.cs: When selected tabs are expanded make sure they
15673           don't go beyond the edges of the tab control
15675 2004-11-05 14:57  jackson
15677         * TabControl.cs: Reset show_slider so if the control is resized to
15678           a size where it is no longer needed it's not displayed anymore
15680 2004-11-05 13:16  jackson
15682         * TabControl.cs: Make tab pages non visible when added to the
15683           control
15685 2004-11-05 12:42  jackson
15687         * TabControl.cs: Implement SizeMode.FillToRight
15689 2004-11-05 12:16  jackson
15691         * Control.cs: Do not call CreateHandle if the handle is already
15692           created
15694 2004-11-05 11:46  jackson
15696         * TabControl.cs: Remove superflous call to CalcTabRows
15698 2004-11-05 09:07  jackson
15700         * XplatUIX11.cs: Update for Mono.Posix changes
15702 2004-11-05 07:00  ravindra
15704         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
15705           scrolling.
15707 2004-11-04 22:47  jba
15709         * ThemeWin32Classic.cs:
15710           - Fix Button rendering for FlatStyle = Flat or Popup
15711           - Fix RadioButton and CheckBox rendering when Appearance = Button
15712             (normal and flatstyle).
15713           - Correct outer rectangle color when drawing focus rectangle
15714           - Adjust button bounds to be 1 px smaller when focused
15715           - Make button not draw sunken 3d border when pushed (windows compat)
15716           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
15717           - Offset the text in RadioButton and Checkbox when being rendered as
15718           a button.
15719           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
15720           radiobuttons
15721           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
15722           - Fixed disabled text rendering for normally rendered radiobuttons
15724 2004-11-04 10:26  jackson
15726         * TabControl.cs: Recalculate tab rows when resizing
15728 2004-11-04 07:47  jordi
15730         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
15731           collection completion, drawing issues, missing features
15733 2004-11-04 05:03  ravindra
15735         * ScrollBar.cs:
15736                 - We need to recalculate the Thumb area when
15737                 LargeChange/maximum/minimum values are changed.
15738           - We set the 'pos' in UpdatePos() method to minimum, if it's less
15739                 than minimum. This is required to handle the case if large_change is
15740                 more than max, and use LargeChange property instead of large_change
15741                 variable.
15742           - We return max+1 when large_change is more than max, like MS does.
15744 2004-11-04 04:29  ravindra
15746         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
15747                 - Changed default value signatures (prefixed all with ListView).
15748                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
15749                 ListView.
15750           - Fixed calculations for ListViewItem and implemented Clone()
15751           method.
15753 2004-11-04 04:26  ravindra
15755         * Theme.cs, ThemeWin32Classic.cs:
15756                 - Changed default ListView values signatures (prefixed all with
15757                 ListView).
15758           - Fixed default size values for VScrollBar and HScrollBar.
15759                 - Fixed DrawListViewItem method.
15761 2004-11-04 04:05  ravindra
15763         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
15765 2004-11-04 04:04  ravindra
15767         * ImageList.cs: Implemented the missing overload for Draw method.
15769 2004-11-03 19:29  jackson
15771         * TabControl.cs: Handle dropping rows on selection properly
15773 2004-11-03 11:59  jackson
15775         * TabControl.cs: remove debug code
15777 2004-11-03 11:52  jackson
15779         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
15780           the scrolly widgerywoo
15782 2004-11-02 13:52  jackson
15784         * TabControl.cs: Resize the tab pages and tabs when the tab control
15785           is resized
15787 2004-11-02 13:40  jackson
15789         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
15790           selected tab to the bottom
15792 2004-11-02 13:39  jackson
15794         * TabPage.cs: Store the tab pages row
15796 2004-11-02 12:33  jordi
15798         * MenuItem.cs: fixes handle creation
15800 2004-11-02 11:42  jackson
15802         * TabControl.cs: signature fix
15804 2004-11-02 08:56  jackson
15806         * TabControl.cs: Calculate whether the tab is on an edge properly.
15807           Remove top secret debugging code
15809 2004-11-01 19:57  jackson
15811         * TabControl.cs: Add click handling, and proper sizing
15813 2004-11-01 19:47  jackson
15815         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
15816           tab controls
15818 2004-11-01 19:39  jackson
15820         * TabPage.cs: add internal property to store the bounds of a tab
15821           page
15823 2004-10-30 04:23  ravindra
15825         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
15826           values.
15828 2004-10-30 04:21  ravindra
15830         * ListView.cs, ListViewItem.cs: Added support for scrolling and
15831           fixed calculations.
15833 2004-10-30 03:06  pbartok
15835         * XplatUIX11.cs:
15836           - Removed extension of DllImported libs
15838 2004-10-29 09:55  jordi
15840         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
15841           navigation, itemcollection completion, menu fixes
15843 2004-10-27 22:58  pbartok
15845         * XplatUIX11.cs:
15846           - Now throws a nice error message when no X display could be opened
15848 2004-10-26 13:51  jordi
15850         * ListView.cs: removes warning
15852 2004-10-26 03:55  ravindra
15854         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
15855           ThemeWin32Classic.cs: Some formatting for my last checkins.
15857 2004-10-26 03:36  ravindra
15859         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
15860           control and default values.
15862 2004-10-26 03:35  ravindra
15864         * Theme.cs: Added some default values for ListView control.
15866 2004-10-26 03:33  ravindra
15868         * ToolBar.cs: ToolBar should use the user specified button size, if
15869           there is any. Added a size_specified flag for the same.
15871 2004-10-26 03:33  ravindra
15873         * ColumnHeader.cs: Added some internal members and calculations for
15874           ColumnHeader.
15876 2004-10-26 03:32  ravindra
15878         * ListViewItem.cs: Calculations for ListViewItem.
15880 2004-10-26 03:31  ravindra
15882         * ListView.cs: Added some internal members and calculations for
15883           ListView.
15885 2004-10-22 13:31  jordi
15887         * MenuAPI.cs: speedup menus drawing
15889 2004-10-22 13:16  jackson
15891         * XplatUIX11.cs: Make sure to update exposed regions when adding an
15892           expose event
15894 2004-10-22 11:49  jackson
15896         * Control.cs: oops
15898 2004-10-22 11:41  jackson
15900         * Control.cs: Check to see if the window should have its background
15901           repainted by X when drawing.
15903 2004-10-22 11:31  jackson
15905         * XplatUIX11.cs: When invalidating areas only use XClearArea if
15906           clear is true, this way we do not get flicker from X repainting the
15907           background
15909 2004-10-22 11:28  jackson
15911         * XEventQueue.cs: Queue properly
15913 2004-10-21 09:38  jackson
15915         * XEventQueue.cs: Fix access modifier
15917 2004-10-21 09:36  jackson
15919         * XEventQueue.cs: Don't loose messages
15921 2004-10-21 09:22  jackson
15923         * XEventQueue.cs: Don't loose messages
15925 2004-10-20 04:15  jordi
15927         * BootMode.cs: enum need it by SystemInfo
15929 2004-10-19 21:58  pbartok
15931         * XplatUIWin32.cs:
15932           - Small sanity check
15934 2004-10-19 21:56  pbartok
15936         * Form.cs:
15937           - Added private FormParentWindow class which acts as the container
15938             for our form and as the non-client area where menus are drawn
15939           - Added/Moved required tie-ins to Jordi's menus
15940           - Fixed/Implemented the FormStartPosition functionality
15942 2004-10-19 21:52  pbartok
15944         * Control.cs:
15945           - Removed unneeded locals
15946           - Added code to all size and location properties to understand and
15947             deal with the parent container of Form
15949 2004-10-19 21:33  pbartok
15951         * Application.cs:
15952           - Fixed to deal with new Form subclasses for menus
15954 2004-10-19 17:48  jackson
15956         * XEventQueue.cs: commit correct version of file
15958 2004-10-19 16:50  jackson
15960         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
15962 2004-10-19 16:15  jordi
15964         * MenuAPI.cs: MenuBarCalcSize returns the height
15966 2004-10-19 08:31  pbartok
15968         * Control.cs:
15969           - Added missing call to PreProcessMessage before calling OnXXXKey
15970           methods
15972 2004-10-19 00:04  ravindra
15974         * ToolTip.cs: Fixed constructor.
15976 2004-10-18 09:31  jordi
15978         * MenuAPI.cs: menuitems in menubars do not have shortcuts
15980 2004-10-18 09:26  jordi
15982         * MenuItem.cs: fixes MenuItem class signature
15984 2004-10-18 08:56  jordi
15986         * MenuAPI.cs: prevents windows from showing in the taskbar
15988 2004-10-18 00:28  ravindra
15990         * ToolTip.cs: Suppressed a warning message.
15992 2004-10-18 00:27  ravindra
15994         * Control.cs: Default value of visible property must be true.
15996 2004-10-17 23:19  pbartok
15998         * ToolTip.cs:
15999           - Complete implementation
16001 2004-10-17 23:19  pbartok
16003         * XplatUIX11.cs:
16004           - Added EnableWindow method
16005           - Added SetModal stub
16006           - Added generation of WM_ACTIVATE message (still needs testing)
16007           - Added SetTopMost stub
16008           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
16010 2004-10-17 23:17  pbartok
16012         * XplatUIWin32.cs:
16013           - Removed VirtualKeys to XplatUIStructs
16014           - Implemented SetTopMost method
16015           - Implemented EnableWindow method
16016           - Bugfix in ScreenToClient()
16017           - Bugfixes in ClientToScreen()
16019 2004-10-17 22:51  pbartok
16021         * XplatUIStructs.cs:
16022           - Added WS_EX styles to WindowStyles enumeration
16024 2004-10-17 22:50  pbartok
16026         * XplatUI.cs, XplatUIDriver.cs:
16027           - Added method for enabling/disabling windows
16028           - Added method for setting window modality
16029           - Added method for setting topmost window
16031 2004-10-17 22:49  pbartok
16033         * ThemeWin32Classic.cs:
16034           - Added ToolTip drawing code
16036 2004-10-17 22:49  pbartok
16038         * Theme.cs:
16039           - Added ToolTip abstracts
16041 2004-10-17 22:47  pbartok
16043         * Form.cs:
16044           - Fixed Form.ControlCollection to handle owner relations
16045           - Added Owner/OwnedForms handling
16046           - Implemented Z-Ordering for owned forms
16047           - Removed unneeded private overload of ShowDialog
16048           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
16049             so I hope)
16050           - Fixed Close(), had wrong default
16051           - Added firing of OnLoad event
16052           - Added some commented out debug code for Ownership handling
16054 2004-10-17 22:16  pbartok
16056         * Control.cs:
16057           - Fixed/implemented flat list of controls
16059 2004-10-17 22:14  pbartok
16061         * Application.cs:
16062           - Added code to simulate modal dialogs on Win32
16064 2004-10-17 16:11  jordi
16066         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
16067           mouse event
16069 2004-10-17 13:39  jordi
16071         * MenuAPI.cs: menu drawing fixes
16073 2004-10-15 09:10  ravindra
16075         * StructFormat.cs: General Enum.
16077 2004-10-15 09:09  ravindra
16079         * SizeGripStyle.cs: Enum for Form.
16081 2004-10-15 09:08  ravindra
16083         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
16084           in Theme for ListView.
16086 2004-10-15 09:06  ravindra
16088         * ColumnHeader.cs: Flushing some formatting changes.
16090 2004-10-15 09:05  ravindra
16092         * ListViewItem.cs: Implemented GetBounds method and fixed coding
16093           style.
16095 2004-10-15 09:03  ravindra
16097         * ListView.cs: Implemented Paint method and fixed coding style.
16099 2004-10-15 07:34  jordi
16101         * MenuAPI.cs: fix for X11
16103 2004-10-15 07:32  ravindra
16105         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
16106                 - Renamed Paint() method to Draw() for clarity. Also, moved
16107                 DrawImage() to OnPaint().
16109 2004-10-15 07:25  ravindra
16111         * CheckBox.cs, RadioButton.cs:
16112                 - Removed Redraw (), we get it from ButtonBase.
16113                 - Implemented Paint (), to do class specific painting.
16115 2004-10-15 07:16  ravindra
16117         * ButtonBase.cs:
16118                 - Redraw () is not virtual now.
16119                 - Added an internal virtual method Paint (), so that
16120                 derived classes can do their painting on their own.
16121                 - Modified OnPaint () to call Paint ().
16123 2004-10-15 06:43  jordi
16125         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
16126           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
16128 2004-10-15 00:30  ravindra
16130         * MessageBox.cs:
16131                 - MessageBox on windows does not have min/max buttons.
16132                 This change in CreateParams fixes this on Windows. We
16133                 still need to implement this windowstyle behavior in
16134                 our X11 driver.
16136 2004-10-14 05:14  ravindra
16138         * ToolBar.cs:
16139                 - Changed Redraw () to do a Refresh () always.
16140                 - Fixed the MouseMove event handling when mouse is pressed,
16141                 ie drag event handling.
16142                 - Replaced the usage of ToolBarButton.Pressed property to
16143                 ToolBarButton.pressed internal variable.
16145 2004-10-14 05:10  ravindra
16147         * ToolBarButton.cs:
16148                 - Added an internal member 'inside' to handle mouse move
16149                 with mouse pressed ie mouse drag event.
16150                 - Changed 'Pressed' property to return true only when
16151                 'inside' and 'pressed' are both true.
16152                 - Some coding style love.
16154 2004-10-14 00:17  ravindra
16156         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
16157           public method.
16159 2004-10-14 00:15  ravindra
16161         * ButtonBase.cs: Redraw () related improvements.
16163 2004-10-14 00:14  ravindra
16165         * MessageBox.cs: Moved InitFormSize () out of Paint method and
16166           removed unnecessary calls to Button.Show () method.
16168 2004-10-13 17:50  pbartok
16170         * XplatUIX11.cs:
16171           - Formatting fix
16172           - Removed destroying of window until we solve the problem of X
16173             destroying the window before us on shutdown
16175 2004-10-13 16:32  pbartok
16177         * ButtonBase.cs:
16178           - Now Redraws on MouseUp for FlatStyle Flat and Popup
16180 2004-10-13 14:18  pbartok
16182         * XplatUIX11.cs:
16183           - Added code to destroy the X window
16185 2004-10-13 14:18  pbartok
16187         * XplatUIWin32.cs:
16188           - Added code to destroy a window
16190 2004-10-13 14:12  pbartok
16192         * ButtonBase.cs:
16193           - Added the Redraw on Resize that got dropped in the last rev
16195 2004-10-13 09:06  pbartok
16197         * ThemeWin32Classic.cs:
16198           - Path from John BouAntoun:
16199             * Fix check rendering (centre correctly for normal style, offset
16200               correctly for FlatStyle).
16201             * Fix border color usage (use backcolor) for FlatStyle.Popup
16202             * Use checkbox.Capture instead of checkbox.is_pressed when
16203               rendering flatstyle states.
16205 2004-10-12 21:48  pbartok
16207         * ThemeWin32Classic.cs:
16208           - Removed all occurences of SystemColors and replaced them with the
16209             matching theme color
16211 2004-10-12 21:41  pbartok
16213         * ThemeWin32Classic.cs:
16214           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
16215             him using the function for flatstyle drawing
16216           - Changed functions to use the new version of CPDrawBorder3D
16218 2004-10-12 21:15  pbartok
16220         * ControlPaint.cs:
16221           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
16222             match MS documentation. They need to return defined colors if the
16223             passed color matches the configured control color. Thanks to John
16224             BouAntoun for pointing this out.
16226 2004-10-12 20:57  pbartok
16228         * Control.cs:
16229           - Fix from John BouAntoun: Raise ForeColorChanged event when text
16230             color is changed
16232 2004-10-12 20:46  pbartok
16234         * CheckBox.cs:
16235           - Fix from John BouAntoun: Now properly sets the Appearance property
16237 2004-10-12 20:45  pbartok
16239         * ThemeWin32Classic.cs:
16240           - Fixes from John BouAntoun: now handles forecolors and backcolors
16241             for flatstyle rendered controls much better; It also fixes normal
16242             checkbox rendering when pushed or disabled.
16244 2004-10-08 02:50  jordi
16246         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
16247           work
16249 2004-10-07 08:56  jordi
16251         * ThemeWin32Classic.cs: Removes deletion of cached brushes
16253 2004-10-06 03:59  jordi
16255         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
16256           XplatUIWin32.cs: removes warnings from compilation
16258 2004-10-05 12:23  jackson
16260         * RadioButton.cs: Fix ctor
16262 2004-10-05 11:10  pbartok
16264         * MessageBox.cs:
16265           - Partial implementation by Benjamin Dasnois
16267 2004-10-05 10:15  jackson
16269         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
16270           by John BouAntoun
16272 2004-10-05 03:07  ravindra
16274         * ToolBar.cs:
16275                 - Removed a private method, Draw ().
16276                 - Fixed the ButtonDropDown event handling.
16277                 - Fixed MouseMove event handling.
16279 2004-10-05 03:04  ravindra
16281         * ThemeWin32Classic.cs:
16282                 - Added DrawListView method and ListViewDefaultSize property.
16283                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
16284                 - Changed DOS style CRLF to Unix format (dos2unix).
16286 2004-10-05 03:03  ravindra
16288         * Theme.cs:
16289                 - Added DrawListView method and ListViewDefaultSize property.
16291 2004-10-05 02:42  ravindra
16293         * ToolBarButton.cs: Added an internal member dd_pressed to handle
16294           clicks on DropDown arrow.
16296 2004-10-04 22:56  jackson
16298         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
16299           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
16300           Control handle the buffers, derived classes should not have to
16301           CreateBuffers themselves.
16303 2004-10-04 21:20  jackson
16305         * StatusBar.cs: The control handles resizing the buffers now.
16307 2004-10-04 21:18  jackson
16309         * Control.cs: When resizing the buffers should be invalidated. This
16310           should be handled in Control not in derived classes.
16312 2004-10-04 14:45  jackson
16314         * TabPage.cs: oops
16316 2004-10-04 02:14  pbartok
16318         * LeftRightAlignment.cs:
16319           - Initial check-in
16321 2004-10-04 01:09  jordi
16323         * ThemeWin32Classic.cs: fixes right button position causing right
16324           button not showing on horizontal scrollbars
16326 2004-10-02 13:12  pbartok
16328         * XplatUIX11.cs:
16329           - Simplified the Invalidate method by using an X call instead of
16330             generating the expose ourselves
16331           - Added an expose when the window background is changed
16332           - Implemented ClientToScreen method
16334 2004-10-02 13:08  pbartok
16336         * XplatUIWin32.cs:
16337           - Added Win32EnableWindow method (test for implementing modal
16338           dialogs)
16339           - Added ClientToScreen method and imports
16341 2004-10-02 13:07  pbartok
16343         * XplatUI.cs, XplatUIDriver.cs:
16344           - Added ClientToScreen coordinate translation method
16346 2004-10-02 13:06  pbartok
16348         * KeyPressEventArgs.cs:
16349           - Fixed access level for constructor
16351 2004-10-02 13:06  pbartok
16353         * NativeWindow.cs:
16354           - Changed access level for the window_collection hash table
16356 2004-10-02 13:05  pbartok
16358         * Form.cs:
16359           - Added KeyPreview property
16360           - Added Menu property (still incomplete, pending Jordi's menu work)
16361           - Implemented ProcessCmdKey
16362           - Implemented ProcessDialogKey
16363           - Implemented ProcessKeyPreview
16365 2004-10-02 13:02  pbartok
16367         * Control.cs:
16368           - Added private method to get the Control object from the window
16369           handle
16370           - Implemented ContextMenu property
16371           - Implemented PointToScreen
16372           - Implemented PreProcessMessage
16373           - Implemented IsInputChar
16374           - Implemented IsInputKey
16375           - Implemented ProcessCmdKey
16376           - Completed ProcessKeyEventArgs
16377           - Fixed message loop to call the proper chain of functions on key
16378           events
16379           - Implemented ProcessDialogChar
16380           - Implemented ProcessDialogKey
16381           - Implemented ProcessKeyMessage
16382           - Implemented ProcessKeyPreview
16383           - Added RaiseDragEvent stub (MS internal method)
16384           - Added RaiseKeyEvent stub (MS internal method)
16385           - Added RaiseMouseEvent stub (MS Internal method)
16386           - Added RaisePaintEvent stub (MS Internal method)
16387           - Added ResetMouseEventArgs stub (MS Internal method)
16388           - Implemented RtlTranslateAlignment
16389           - Implemented RtlTranslateContent
16390           - Implemented RtlTranslateHorizontal
16391           - Implemented RtlTranslateLeftRight
16392           - Added generation of KeyPress event
16394 2004-10-02 05:57  ravindra
16396         * ListViewItem.cs: Added attributes.
16398 2004-10-02 05:32  ravindra
16400         * ListView.cs: Added attributes.
16402 2004-10-01 11:53  jackson
16404         * Form.cs: Implement the Close method so work on MessageBox can
16405           continue.
16407 2004-09-30 14:06  pbartok
16409         * XplatUIX11.cs:
16410           - Bug fixes
16412 2004-09-30 11:34  jackson
16414         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
16416 2004-09-30 07:26  ravindra
16418         * ListViewItemConverter.cs: Converter for ListViewItem.
16420 2004-09-30 07:26  ravindra
16422         * SortOrder.cs: Enum for ListView control.
16424 2004-09-30 07:25  ravindra
16426         * ColumnHeader.cs: Supporting class for ListView control.
16428 2004-09-30 07:24  ravindra
16430         * ListView.cs, ListViewItem.cs: Initial implementation.
16432 2004-09-30 07:20  ravindra
16434         * ItemActivation.cs: Enum for ListView Control.
16436 2004-09-29 20:29  pbartok
16438         * XplatUIX11.cs:
16439           - Added lookup of pixel value for background color; tries to get a
16440             color 'close' to the requested color, it avoids having to create a
16441             colormap.  Depending on the display this could mean the used color
16442             is slightly off the desired color. Might have to change it to a more
16443             resource intensive colormap approach, but it will work as a
16444           workaround to avoid red screens.
16446 2004-09-29 14:27  jackson
16448         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
16450 2004-09-28 12:44  pbartok
16452         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
16453           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
16454           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
16455           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
16456           TrackBar.cs, VScrollBar.cs:
16457           - Streamlined Theme interfaces:
16458             * Each DrawXXX method for a control now is passed the object for
16459               the control to be drawn in order to allow accessing any state the
16460               theme might require
16462             * ControlPaint methods for the theme now have a CP prefix to avoid
16463               name clashes with the Draw methods for controls
16465             * Every control now retrieves it's DefaultSize from the current
16466             theme
16468 2004-09-28 12:17  jackson
16470         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
16471           drawing
16473 2004-09-24 14:57  jackson
16475         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
16476           Gives us a nice little performance boost.
16478 2004-09-24 12:02  jackson
16480         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
16481           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
16482           Control and supporting classes. Initial checkin
16484 2004-09-23 13:08  jackson
16486         * Form.cs: Temp build fixage
16488 2004-09-23 01:39  ravindra
16490         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
16491           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
16492           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
16493           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
16494           EventHandlers needed by ListView Control.
16496 2004-09-22 14:12  pbartok
16498         * ScrollableControl.cs:
16499           - Implemented DockPadding property
16500           - Implemented AutoScroll property
16501           - Implemented AutoScrollMargin property
16502           - Implemented AutoScrollMinSize property
16503           - Implemented AutoScrollPosition property
16504           - Implemented DisplayRectangle property (still incomplete)
16505           - Implemented CreateParams property
16506           - Implemented HScroll property
16507           - Implemented VScroll property
16508           - Implemented OnVisibleChanged property
16510 2004-09-22 14:09  pbartok
16512         * Form.cs:
16513           - Added Form.ControllCollection class
16514           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
16515             RemoveOwnedForm (still incomplete, missing on-top and common
16516             minimize/maximize behaviour)
16517           - Added StartPosition property (still incomplete, does not use when
16518             creating the form)
16519           - Added ShowDialog() methods (still incomplete, missing forcing the
16520             dialog modal)
16522 2004-09-22 14:05  pbartok
16524         * Application.cs:
16525           - Added message loop for modal dialogs
16527 2004-09-22 14:02  pbartok
16529         * GroupBox.cs:
16530           - Fixed wrong types for events
16532 2004-09-22 14:00  pbartok
16534         * Shortcut.cs, FormWindowState.cs:
16535           - Fixed wrong values
16537 2004-09-22 12:01  jackson
16539         * Control.cs: Text is never null
16541 2004-09-20 22:14  pbartok
16543         * XplatUIWin32.cs:
16544           - Fixed accessibility level for Idle handler
16546 2004-09-20 18:54  jackson
16548         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
16549           XplatUIX11.cs: New message loop that uses poll so we don't get a
16550           busy loop
16552 2004-09-17 10:43  pbartok
16554         * ScrollBar.cs:
16555           - Fixed behaviour of arrow buttons. Now properly behaves like
16556             Buttons (and like Microsoft's scrollbar arrow buttons)
16558 2004-09-17 10:14  pbartok
16560         * ScrollBar.cs:
16561           - Added missing release of keyboard/mouse capture
16563 2004-09-17 06:18  jordi
16565         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
16566           Theme.cs: Very early menu support
16568 2004-09-16 17:45  pbartok
16570         * XplatUIWin32.cs:
16571           - Fixed sending a window to the front
16572           - Added overload for SetWindowPos to avoid casting
16574 2004-09-16 17:44  pbartok
16576         * Control.cs:
16577           - Added SendToBack and BringToFront methods
16579 2004-09-16 07:00  ravindra
16581         * Copyright: Added Novell URL.
16583 2004-09-16 07:00  ravindra
16585         * ToolBar.cs: Invalidate should be done before redrawing.
16587 2004-09-15 21:19  ravindra
16589         * ColumnHeaderStyle.cs: Enum for ListView Control.
16591 2004-09-15 21:18  ravindra
16593         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
16594           ListView Control.
16596 2004-09-13 18:26  jackson
16598         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
16599           properly
16601 2004-09-13 18:13  jackson
16603         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
16604           a second thread and post messages into the main threads message
16605           queue. This makes timing much more consistent. Both win2K and XP
16606           have a minimum timer value of 15 milliseconds, so we now do this
16607           too.
16609 2004-09-13 15:18  pbartok
16611         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
16612           XplatUIX11.cs:
16613           - Added Z-Ordering methods
16615 2004-09-13 10:56  pbartok
16617         * Form.cs:
16618           - Fixed #region names
16619           - Moved properties and methods into their proper #regions
16621 2004-09-13 10:51  pbartok
16623         * Form.cs:
16624           - Added Accept and CancelButton properties
16625           - Added ProcessDialogKey() method
16627 2004-09-13 08:18  pbartok
16629         * IWindowTarget.cs:
16630           - Initial check-in
16632 2004-09-10 21:50  pbartok
16634         * Control.cs:
16635           - Added DoDragDrop() [incomplete]
16636           - Properly implemented 'Visible' handling
16637           - Added SetVisibleCore()
16638           - Implemented FindChildAtPoint()
16639           - Implemented GetContainerControl()
16640           - Implemented Hide()
16642 2004-09-10 19:28  pbartok
16644         * Control.cs:
16645           - Moved methods into their appropriate #regions
16646           - Reordered methods within regions alphabetically
16648 2004-09-10 18:57  pbartok
16650         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
16651           - Added method to retrieve text from window
16653 2004-09-10 18:56  pbartok
16655         * Control.cs:
16656           - Moved some internal functions into the internal region
16657           - Implemented FontHeight
16658           - Implemented RenderRightToLeft
16659           - Implemented ResizeRedraw
16660           - Implemented ShowFocusCues
16661           - Implemented ShowKeyboardCues
16662           - Implemented FromChildHandle
16663           - Implemented FromHandle
16664           - Implemented IsMnemonic
16665           - Implemented ReflectMessage
16666           - All public and protected Static Methods are now complete
16668 2004-09-10 16:54  pbartok
16670         * Control.cs:
16671           - Implemented remaining missing public instance properties
16672           - Alphabetized some out of order properties
16674 2004-09-10 05:51  ravindra
16676         * PictureBox.cs: Added a check for null image.
16678 2004-09-10 00:59  jordi
16680         * GroupBox.cs: remove cvs tag
16682 2004-09-09 05:25  ravindra
16684         * ToolBar.cs: Make redraw accessible from ToolBarButton.
16686 2004-09-09 05:23  ravindra
16688         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
16689           parent redraw.
16691 2004-09-09 02:28  pbartok
16693         * ThemeWin32Classic.cs:
16694           - Improve disabled string look
16696 2004-09-09 01:15  jordi
16698         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
16699           args and handler
16701 2004-09-08 23:56  ravindra
16703         * ItemBoundsPortion.cs: It's enum, not a class!
16705 2004-09-08 23:47  ravindra
16707         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
16708           Enums for Form.
16710 2004-09-08 21:13  ravindra
16712         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
16713           ListView control.
16715 2004-09-08 21:03  ravindra
16717         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
16718           avoid crash.
16720 2004-09-08 21:01  ravindra
16722         * ScrollableControl.cs: Removed unreachable code.
16724 2004-09-08 06:45  jordi
16726         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
16728 2004-09-08 01:00  jackson
16730         * XplatUIX11.cs: Only run the timers when updating the message
16731           queue. This effectively gives X messages a higher priority then
16732           timer messages. Timers still need love though
16734 2004-09-07 14:01  jackson
16736         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
16737           this for us and the handle is no longer valid.
16739 2004-09-07 13:59  jackson
16741         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
16742           loop that manages to not crash. TODO: Add poll and cleanup timers
16744 2004-09-07 11:12  jordi
16746         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
16748 2004-09-07 03:40  jordi
16750         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
16751           fixes, methods, multiple links
16753 2004-09-06 06:55  jordi
16755         * Control.cs: Caches ClientRectangle rectangle value
16757 2004-09-05 02:03  jordi
16759         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
16760           certain situations
16762 2004-09-04 11:10  jordi
16764         * Label.cs: Refresh when font changed
16766 2004-09-02 16:24  pbartok
16768         * Control.cs:
16769           - Added sanity check to creation of double buffer bitmap
16771 2004-09-02 16:24  pbartok
16773         * ButtonBase.cs:
16774           - Fixed selection of text color
16775           - Fixed handling of resize event; now properly recreates double
16776             buffering bitmap
16777           - Added missing assignment of TextAlignment
16778           - Added proper default for TextAlignment
16780 2004-09-02 14:26  pbartok
16782         * RadioButton.cs:
16783           - Added missing RadioButton.RadioButtonAccessibleObject class
16785 2004-09-02 14:26  pbartok
16787         * Control.cs:
16788           - Added missing Control.ControlAccessibleObject class
16789           - Started to implement Select()ion mechanisms, still very incomplete
16791 2004-09-02 14:25  pbartok
16793         * AccessibleObject.cs:
16794           - Added missing methods
16796 2004-09-02 14:23  pbartok
16798         * AccessibleNavigation.cs, AccessibleSelection.cs:
16799           - Initial check-in
16801 2004-09-02 10:32  jordi
16803         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
16804           pool for pens, brushes, and hatchbruses
16806 2004-09-01 15:30  jackson
16808         * StatusBar.cs: Fix typo
16810 2004-09-01 14:44  pbartok
16812         * RadioButton.cs:
16813           - Fixed state
16815 2004-09-01 14:39  pbartok
16817         * Button.cs, RadioButton.cs:
16818           - Functional initial check-in
16820 2004-09-01 14:01  pbartok
16822         * CheckBox.cs:
16823           - Added missing default
16824           - Added missing region mark
16826 2004-09-01 09:10  jordi
16828         * Label.cs: fixes method signatures, new methods, events, fixes
16829           autosize
16831 2004-09-01 07:19  jordi
16833         * Control.cs: Init string variables with an empty object
16835 2004-09-01 04:20  jordi
16837         * Control.cs: fires OnFontChanged event
16839 2004-08-31 20:07  pbartok
16841         * ButtonBase.cs:
16842           - Enabled display of strings
16844 2004-08-31 20:05  pbartok
16846         * Form.cs:
16847           - Added (partial) implementation of DialogResult; rest needs to be
16848             implemented when the modal loop code is done
16850 2004-08-31 19:55  pbartok
16852         * CheckBox.cs:
16853           - Fixed to match the removal of the needs_redraw concept
16855 2004-08-31 19:55  pbartok
16857         * ButtonBase.cs:
16858           - Removed the rather odd split between 'needs redraw' and redrawing
16859           - Now handles the events that require regeneration (ambient
16860             properties and size)
16862 2004-08-31 19:41  pbartok
16864         * Control.cs:
16865           - Added firing of BackColorChanged event
16866           - Added TopLevelControl property
16867           - Fixed handling of WM_ERASEBKGRND message
16869 2004-08-31 12:49  pbartok
16871         * ButtonBase.cs:
16872           - Removed debug
16873           - Minor fixes
16875 2004-08-31 12:48  pbartok
16877         * CheckBox.cs:
16878           - Finished (famous last words)
16880 2004-08-31 04:35  jordi
16882         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
16883           scrolling bugs, adds new methods
16885 2004-08-30 14:42  pbartok
16887         * CheckBox.cs:
16888           - Implemented CheckBox drawing code
16890 2004-08-30 14:42  pbartok
16892         * ButtonBase.cs:
16893           - Made Redraw() and CheckRedraw() virtual
16894           - Improved mouse up/down/move logic to properly track buttons
16896 2004-08-30 09:44  pbartok
16898         * CheckBox.cs:
16899           - Updated to fix broken build. Not complete yet.
16901 2004-08-30 09:28  pbartok
16903         * CheckState.cs:
16904           - Initial checkin
16906 2004-08-30 09:17  pbartok
16908         * Appearance.cs:
16909           - Initial check-in
16911 2004-08-27 16:12  ravindra
16913         * ToolBarButton.cs: Added TypeConverter attribute.
16915 2004-08-27 16:07  ravindra
16917         * ImageIndexConverter.cs: Implemented.
16919 2004-08-27 14:17  pbartok
16921         * Control.cs:
16922           - Removed unneeded stack vars
16923           - First attempt to fix sizing issues when layout is suspended
16925 2004-08-25 15:35  jordi
16927         * ScrollBar.cs: more fixes to scrollbar
16929 2004-08-25 14:04  ravindra
16931         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
16932           Added the missing divider code and grip for ToolBar Control.
16934 2004-08-25 13:20  pbartok
16936         * Control.cs:
16937           - Control now properly passes the ambient background color to child
16938             controls
16940 2004-08-25 13:20  jordi
16942         * ScrollBar.cs: small bug fix regarding bar position
16944 2004-08-25 12:33  pbartok
16946         * Timer.cs:
16947           - Now only calls SetTimer or KillTimer if the enabled state has
16948           changed
16950 2004-08-25 12:33  pbartok
16952         * XplatUIWin32.cs:
16953           - Fixed timer handling, now seems to work
16954           - Improved error message for window creation
16956 2004-08-25 12:32  pbartok
16958         * Control.cs:
16959           - Fixed generation of MouseUp message
16961 2004-08-25 12:29  jordi
16963         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
16964           and fixes for progressbar
16966 2004-08-24 18:43  ravindra
16968         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
16969           in ToolBar control.
16971 2004-08-24 17:15  pbartok
16973         * Panel.cs:
16974           - Added #region
16975           - Added missing events
16976           - Alphabetized
16978 2004-08-24 17:14  pbartok
16980         * StatusBar.cs, PictureBox.cs:
16981           - Now uses Control's CreateParams
16983 2004-08-24 16:36  pbartok
16985         * XplatUIX11.cs:
16986           - Fixed background color handling
16987           - Fixed sending of enter/leave events on a grab
16989 2004-08-24 16:35  pbartok
16991         * X11Structs.cs:
16992           - Refined definitions for CrossingEvent
16994 2004-08-24 12:37  jordi
16996         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
16997           formmating, methods signature, and adds missing events
16999 2004-08-24 12:24  jordi
17001         * Control.cs: fire OnEnabledChanged event
17003 2004-08-24 11:17  pbartok
17005         * XplatUIWin32.cs:
17006           - Implemented SetTimer() and KillTimer()
17008 2004-08-24 11:16  pbartok
17010         * XplatUIX11.cs:
17011           - Now uses Remove instead of Add to kill the timer
17013 2004-08-24 10:16  jackson
17015         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
17016           picture boxes in the theme now. Draw picture box borders and obey
17017           sizing modes
17019 2004-08-24 05:49  jackson
17021         * Timer.cs: Remove top secret debugging code
17023 2004-08-24 05:34  jackson
17025         * PictureBox.cs: Temp hack to make picture boxes draw their full
17026           image
17028 2004-08-24 05:29  jackson
17030         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
17031           XplatUIX11.cs: Move timers to the driver level. On X they are
17032           queued by the driver and checked on idle.
17034 2004-08-24 01:07  jackson
17036         * XplatUIX11.cs: Use a queue for async messages instead of passing
17037           them as ClientMessages since that was totally broken. Also simply
17038           check for events and return an idle message if none are found. This
17039           gives us an idle handler, and prevents deadlocking when no messages
17040           are in the queue.
17042 2004-08-23 18:19  ravindra
17044         * XplatUIWin32.cs: Removed the unwanted destructor.
17046 2004-08-23 17:27  pbartok
17048         * ButtonBase.cs:
17049           - Finishing touches. Works now, just needs some optimizations.
17051 2004-08-23 16:53  jordi
17053         * ScrollBar.cs: small fix
17055 2004-08-23 16:45  pbartok
17057         * Application.cs:
17058           - Removed debug output
17059           - Simplifications
17061 2004-08-23 16:43  jordi
17063         * ScrollBar.cs: [no log message]
17065 2004-08-23 16:10  pbartok
17067         * Form.cs:
17068           - Fixed handling of WM_CLOSE message
17069           - Removed debug output
17071 2004-08-23 16:09  pbartok
17073         * Application.cs:
17074           - Added handling of Idle event
17075           - Added handling of form closing
17076           - Fixed reporting of MessageLoop property
17077           - Removed some unneeded code, should provide a bit of a speedup
17079 2004-08-23 15:22  pbartok
17081         * Control.cs:
17082           - Added InitLayout() method
17083           - Added code to properly perform layout when Anchor or Dock property
17084             is changed
17085           - Changed 'interpretation' of ResumeLayout. MS seems to have a
17086             LAMESPEC, tried to do it in a way that makes sense
17088 2004-08-23 14:10  jordi
17090         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
17091           properties and methods
17093 2004-08-23 13:55  pbartok
17095         * Control.cs:
17096           - Properly fixed Jordi's last fix
17097           - Now uses Cursor's Position property instead of calling XplatUI
17098           directly
17100 2004-08-23 13:44  jordi
17102         * PaintEventHandler.cs: Adding missing attribute
17104 2004-08-23 13:39  pbartok
17106         * Cursor.cs:
17107           - Implemented Position property
17109 2004-08-23 13:39  pbartok
17111         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
17112           - Added method to move mouse cursor
17114 2004-08-23 13:39  pbartok
17116         * XplatUIX11.cs:
17117           - Fixed setting of background color
17118           - Added method to move mouse cursor
17120 2004-08-23 13:16  jordi
17122         * Control.cs: avoids null exception
17124 2004-08-22 17:46  jackson
17126         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
17127           PictureBox
17129 2004-08-22 17:40  jackson
17131         * XplatUIX11.cs: Add some missing locks
17133 2004-08-22 15:10  pbartok
17135         * Control.cs, Form.cs:
17136           - Removed OverlappedWindow style from Control, instead it's default
17137             now is child
17138           - Made form windows OverlappedWindow by default
17140 2004-08-22 13:34  jackson
17142         * ScrollBar.cs: Update the position through the Value property so
17143           the OnValueChanged event is raised.
17145 2004-08-22 12:04  pbartok
17147         * SWF.csproj:
17148           - Added Cursor.cs and UserControl.cs
17150 2004-08-22 12:03  pbartok
17152         * Cursor.cs:
17153           - Started implementation, not usable yet
17155 2004-08-22 12:00  pbartok
17157         * UserControl.cs:
17158           - Implemented UserControl (complete)
17160 2004-08-21 19:20  ravindra
17162         * ToolBar.cs: Correcting the formatting mess of VS.NET.
17164 2004-08-21 18:49  ravindra
17166         * ToolBar.cs: Probably this completes the missing attributes in
17167           toolbar control.
17169 2004-08-21 18:03  ravindra
17171         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
17172           Fixed toolbar control signatures.
17174 2004-08-21 16:32  pbartok
17176         * LinkLabel.cs:
17177           - Signature Fixes
17179 2004-08-21 16:30  pbartok
17181         * Label.cs:
17182           - Signature fixes
17184 2004-08-21 16:19  pbartok
17186         * Control.cs, Label.cs:
17187           - Signature fixes
17189 2004-08-21 15:57  pbartok
17191         * ButtonBase.cs:
17192           - Added loads of debug output for development
17193           - Fixed typo in method name
17195 2004-08-21 15:52  pbartok
17197         * ToolBarButtonClickEventArgs.cs:
17198           - Added missing base class
17200 2004-08-21 14:53  pbartok
17202         * Control.cs:
17203           - Updated to match new GrabWindow signature
17205 2004-08-21 14:51  pbartok
17207         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
17208           - Added method to get default display size
17210 2004-08-21 14:23  pbartok
17212         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
17213           - Added method to query current grab state
17214           - Added argument to allow confining a grab to a window
17216 2004-08-21 14:22  pbartok
17218         * Keys.cs:
17219           - Added [Flags] attribute so that modifiers can be used in bitwise
17220           ops
17222 2004-08-21 14:21  pbartok
17224         * TrackBar.cs, ScrollBar.cs:
17225           - Replaced direct XplatUI calls with their Control counterpart
17227 2004-08-21 13:32  pbartok
17229         * Control.cs:
17230           - Implemented Created property
17232 2004-08-21 13:28  pbartok
17234         * Control.cs:
17235           - Implemented ContainsFocus
17237 2004-08-21 13:26  pbartok
17239         * Control.cs:
17240           - Implemented CausesValidation
17242 2004-08-21 13:21  pbartok
17244         * Control.cs:
17245           - Implemented CanFocus
17246           - Implemented CanSelect
17247           - Implemented Capture
17249 2004-08-21 12:35  pbartok
17251         * XplatUIWin32.cs:
17252           - Fixed bug with Async message handling
17253           - Implemented getting the ModifierKeys
17255 2004-08-21 12:32  jackson
17257         * AsyncMethodResult.cs: Make sure we have the mutex before we
17258           release it. Fixes BeginInvoke on windows
17260 2004-08-21 11:31  pbartok
17262         * XplatUIWin32.cs, XplatUIX11.cs:
17263           - Drivers now return proper mouse state
17265 2004-08-21 10:54  jackson
17267         * Control.cs: Implement EndInvoke
17269 2004-08-21 10:48  jackson
17271         * Timer.cs: Remove unneeded finalizer
17273 2004-08-20 19:52  ravindra
17275         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
17276           in mouse event handling in the ToolBar control.
17278 2004-08-20 19:50  ravindra
17280         * ImageList.cs: Changed draw method to use the arguments passed in
17281           to draw the image.
17283 2004-08-20 18:58  pbartok
17285         * XplatUIStructs.cs:
17286           - Added private message for async communication
17288 2004-08-20 17:38  ravindra
17290         * Control.cs: Made RightToLeft property virtual and removed a
17291           Console.WriteLine.
17293 2004-08-20 14:39  jordi
17295         * ThemeGtk.cs: use style_attach
17297 2004-08-20 14:39  pbartok
17299         * XplatUIWin32.cs:
17300           - Added jackson's Async code from X11 to Win32
17302 2004-08-20 14:09  pbartok
17304         * SWF.csproj:
17305           - Added all new files
17307 2004-08-20 14:09  pbartok
17309         * Control.cs:
17310           - Added call to set window background color
17312 2004-08-20 14:03  pbartok
17314         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
17315           - Added method for setting the window background
17317 2004-08-20 14:02  pbartok
17319         * XplatUIWin32.cs:
17320           - Added method for setting the background color
17321           - Added handling for erasing the window background
17323 2004-08-20 13:45  jordi
17325         * TrackBar.cs: fixes timer, new properties and methods
17327 2004-08-20 13:34  jackson
17329         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
17330           correct thread
17332 2004-08-20 13:22  jackson
17334         * Timer.cs: Timer Tick events are now handed through Controls Async
17335           mechanism so the callbacks are executed in the same thread as X
17337 2004-08-20 13:19  jackson
17339         * XplatUIDriver.cs: Expose functionality to send async messages
17340           through the driver
17342 2004-08-20 13:18  jackson
17344         * Control.cs: Implement Begininvoke
17346 2004-08-20 13:14  jackson
17348         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
17349           messages through the driver
17351 2004-08-20 13:12  jackson
17353         * XplatUIX11.cs: Lock before all X operations. Also added Async
17354           method functionality through XSendEvent
17356 2004-08-20 13:11  jackson
17358         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
17359           This will screw up on 64 bit systems)
17361 2004-08-20 13:10  jackson
17363         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
17364           Async messages through X/Win32
17366 2004-08-19 19:39  pbartok
17368         * XplatUIX11.cs:
17369           - Updated code to match new HandleData.DeviceContext type
17371 2004-08-19 19:38  pbartok
17373         * HandleData.cs:
17374           - Made DeviceContext a generic object to allow usage from various
17375           drivers
17376           - Added support for queueing Windows messages
17378 2004-08-19 19:37  pbartok
17380         * XplatUIWin32.cs:
17381           - Added generation of MouseEnter, MouseLeave and MouseHover events
17382           - Added cleanup on EndPaint
17384 2004-08-19 19:17  pbartok
17386         * Control.cs:
17387           - Added handling of WM_MOUSEHOVER
17388           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
17389           code
17391 2004-08-19 18:55  jordi
17393         * ThemeGtk.cs: fixes button order
17395 2004-08-19 18:12  jordi
17397         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
17399 2004-08-19 17:09  pbartok
17401         * Control.cs:
17402           - Added Right property
17403           - Added RightToLeft property
17405 2004-08-19 16:27  jordi
17407         * ThemeGtk.cs: experimental GTK theme support
17409 2004-08-19 16:26  jordi
17411         * ITheme.cs, Theme.cs: move themes from an interface to a class
17413 2004-08-19 16:25  jordi
17415         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
17416           theme enhancaments
17418 2004-08-19 16:04  pbartok
17420         * XplatUIX11.cs:
17421           - Added colormap basics
17422           - Added a way to re-initialize with a different display handle
17423           - Fixed setting of the window background color
17424           - Added various X11 imports related to colors and colormaps
17426 2004-08-19 15:51  pbartok
17428         * X11Structs.cs:
17429           - Removed packing hints (Paolo suggested this a while back)
17430           - fixed colormap type
17431           - Added default Atom types
17432           - Added Screen and color structs and enums
17434 2004-08-19 15:39  pbartok
17436         * ImageList.cs:
17437           - Added missing Draw() method
17438           - Added missing RecreateHandle event
17440 2004-08-19 15:30  pbartok
17442         * Form.cs:
17443           - Added handling of WM_CLOSE
17445 2004-08-18 13:16  jordi
17447         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
17448           a table
17450 2004-08-18 09:56  jordi
17452         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
17454 2004-08-17 15:31  ravindra
17456         * SWF.csproj: Updated project.
17458 2004-08-17 15:25  pbartok
17460         * Control.cs:
17461           - Drawing improvement; don't call UpdateBounds if we are not visible
17462             (or have been minimized)
17464 2004-08-17 15:24  pbartok
17466         * XplatUIWin32.cs:
17467           - Finished IsVisible
17468           - Added Win32GetWindowPlacement
17470 2004-08-17 15:08  jackson
17472         * Panel.cs: Initial checkin of the Panel
17474 2004-08-17 14:25  pbartok
17476         * Control.cs:
17477           - Fixed broken handling of default window sizes
17479 2004-08-17 13:29  jackson
17481         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
17482           has a large startup time.
17484 2004-08-17 10:25  jackson
17486         * HandleData.cs: union areas properly
17488 2004-08-17 10:12  jackson
17490         * HandleData.cs: union areas properly
17492 2004-08-16 20:00  ravindra
17494         * ToolBar.cs, ToolBarButton.cs: Added attributes.
17496 2004-08-16 18:48  ravindra
17498         * ToolBar.cs: Added attributes.
17500 2004-08-16 17:17  ravindra
17502         * SWF.csproj: Updated project.
17504 2004-08-16 17:16  jackson
17506         * XplatUIX11.cs: Check for more expose events before sending a
17507           WM_PAINT so they can all be grouped together. This makes dragging a
17508           window across another window redraw in a sane way.
17510 2004-08-16 15:47  pbartok
17512         * Control.cs:
17513           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
17514             support OnMouseEnter/Leave()
17515           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
17516             exposure handling
17518 2004-08-16 15:46  pbartok
17520         * XplatUIStructs.cs, XplatUIX11.cs:
17521           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
17522           OnMouseEnter/Leave()
17524 2004-08-16 15:34  jackson
17526         * XplatUIX11.cs: Group multiple expose events in HandleData, make
17527           sure messages get the message field set to WM_NULL if they are not
17528           handled.
17530 2004-08-16 15:24  jackson
17532         * HandleData.cs: HandleData is used for storing message information
17533           for window handles
17535 2004-08-15 17:23  ravindra
17537         * ColorDepth.cs: Added attribute.
17539 2004-08-15 17:23  ravindra
17541         * SWF.csproj: Updated project for ToolBar Control.
17543 2004-08-15 17:20  ravindra
17545         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
17546           control and also dos2unix format.
17548 2004-08-15 17:13  ravindra
17550         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
17551           ToolBarButtonClickEventArgs.cs,
17552           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
17553           ToolBarTextAlign.cs: First Implementation of ToolBar control.
17555 2004-08-15 15:31  pbartok
17557         * ButtonBase.cs:
17558           - First (mostly) working version
17560 2004-08-13 16:15  pbartok
17562         * Control.cs:
17563           - Fixed Anchor default
17565 2004-08-13 15:43  pbartok
17567         * Control.cs:
17568           - Changed GetCursorPos signature
17570 2004-08-13 15:42  pbartok
17572         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
17573           - Changed signature for GetCursorPos
17575 2004-08-13 15:25  pbartok
17577         * XplatUIX11.cs:
17578           - Cleanup
17579           - Fixed resizing/exposure handling
17581 2004-08-13 15:22  jordi
17583         * ThemeWin32Classic.cs: removes redundant code and fixes issues
17584           with tickposition
17586 2004-08-13 14:55  jordi
17588         * TrackBar.cs: change from wndproc to events
17590 2004-08-13 13:00  jordi
17592         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
17593           XplatUIX11.cs: implements PointToClient (ScreenToClient)
17595 2004-08-13 12:53  pbartok
17597         * XplatUIWin32.cs:
17598           - Changed GetWindowPos to also provide client area size
17599           - Fixed broken prototypes for several win32 functions
17601 2004-08-13 12:53  pbartok
17603         * XplatUI.cs, XplatUIDriver.cs:
17604           - Changed GetWindowPos to also provide client area size
17606 2004-08-13 12:52  pbartok
17608         * XplatUIX11.cs:
17609           - Added generation of WM_POSCHANGED
17610           - Changed GetWindowPos to also provide client area size
17612 2004-08-13 12:52  pbartok
17614         * Control.cs:
17615           - Added Dispose() and destructor
17616           - Fixed resizing and bounds calculation
17617           - Fixed Layout
17618           - Added memory savings for invisible windows
17620 2004-08-13 12:46  jordi
17622         * TrackBar.cs: adds timer and grap window
17624 2004-08-13 10:25  jackson
17626         * Timer.cs: SWF Timer
17628 2004-08-12 16:59  pbartok
17630         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
17631           - Implemented method to get current mouse position
17633 2004-08-12 14:29  jordi
17635         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
17636           enhancement, fix mouse problems, highli thumb, etc
17638 2004-08-12 13:31  pbartok
17640         * Control.cs:
17641           - Fixed Anchoring bugs
17643 2004-08-12 13:01  jackson
17645         * StatusBar.cs: Don't forget things
17647 2004-08-12 12:54  jackson
17649         * ThemeWin32Classic.cs: Handle owner draw status bars
17651 2004-08-12 12:54  jackson
17653         * StatusBar.cs: Implement missing properties, events, and methods.
17654           Handle mouse clicking
17656 2004-08-12 10:19  jackson
17658         * StatusBarPanelClickEventArgs.cs,
17659           StatusBarPanelClickEventHandler.cs: Classes for handling status
17660           bar panel click events
17662 2004-08-12 10:10  jackson
17664         * Control.cs: Add missing properties
17666 2004-08-12 09:46  pbartok
17668         * BindingsManagerBase.cs:
17669           - Name changed to BindingManagerBase.cs
17671 2004-08-12 09:25  jordi
17673         * ScrollableControl.cs: calls ctrlbase instead of exeception
17675 2004-08-11 16:28  pbartok
17677         * InputLanguageChangingEventArgs.cs:
17678           - Never check in before compiling. Fixes the last check-in
17680 2004-08-11 16:26  pbartok
17682         * InputLanguageChangingEventArgs.cs:
17683           - More signature fixes
17685 2004-08-11 16:20  pbartok
17687         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
17688           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
17689           ImageListStreamer.cs, InputLanguage.cs,
17690           InputLanguageChangedEventArgs.cs,
17691           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
17692           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
17693           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
17694           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
17695           - Signature fixes
17697 2004-08-11 16:16  pbartok
17699         * Application.cs:
17700           - Fixed Signature
17701           - Added .Net 1.1 method
17703 2004-08-11 15:25  pbartok
17705         * SWF.csproj:
17706           - Fixed BindingManagerBase.cs filename
17708 2004-08-11 15:22  pbartok
17710         * BindingManagerBase.cs:
17711           - Was checked in with wrong filename
17713 2004-08-11 14:50  pbartok
17715         * SWF.csproj:
17716           - Updated
17718 2004-08-11 13:41  jordi
17720         * XplatUIWin32.cs: Fixes ClientRect
17722 2004-08-11 13:19  pbartok
17724         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
17725           XplatUIX11.cs:
17726           - We had SetWindowPos and MoveWindow to set window positions and
17727             size, removed MoveWindow. We have GetWindowPos, so it made sense to
17728             keep SetWindowPos as matching counterpart
17729           - Added some X11 sanity checking
17731 2004-08-11 12:59  pbartok
17733         * Control.cs:
17734           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
17735             (It seems that SetBounds is just a front for SetBoundsCore and
17736              SetBoundsCore updates the underlying window system and
17737              UpdateBounds is responsible for updating the variables associated
17738              with the Control and sending the events)
17739           - Major cleanup of Size handling; we now have two sizes, client_size
17740             and bounds. Bounds defines the window with decorations, client_size
17741             without them.
17743 2004-08-11 12:55  pbartok
17745         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
17746           - Added method to calculate difference between decorated window and
17747             raw client area
17749 2004-08-11 12:54  pbartok
17751         * Label.cs:
17752           - Forcing redraw on resize
17754 2004-08-11 11:43  pbartok
17756         * ImageList.cs:
17757           - Removed disposing of the actual images when the list is disposed
17759 2004-08-11 09:13  pbartok
17761         * Control.cs:
17762           - Now properly reparents windows
17764 2004-08-11 08:37  pbartok
17766         * Control.cs:
17767           - Duh!
17769 2004-08-11 07:47  pbartok
17771         * Control.cs:
17772           - Rewrote the collection stuff. Might not be as fast now, not
17773             keeping the number of children around and accessible directly, but
17774             it's more straightforward
17776 2004-08-11 07:44  pbartok
17778         * AccessibleObject.cs:
17779           - Fixed to match ControlCollection rewrite
17781 2004-08-11 07:43  pbartok
17783         * ImageList.cs:
17784           - Added missing creation of the collection list
17786 2004-08-10 20:08  jackson
17788         * StatusBar.cs: Get the paint message from WndProc
17790 2004-08-10 19:31  jackson
17792         * ThemeWin32Classic.cs: Create Brushes as little as possible
17794 2004-08-10 19:20  jackson
17796         * UICues.cs: Add Flags attribute
17798 2004-08-10 19:19  jackson
17800         * StatusBarPanel.cs: Signature cleanup
17802 2004-08-10 19:10  jackson
17804         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
17805           Initial implementation of status bar item drawing
17807 2004-08-10 17:27  jordi
17809         * TrackBar.cs: add missing methods, properties, and restructure to
17810           hide extra ones
17812 2004-08-10 16:24  jackson
17814         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
17815           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
17816           attribute
17818 2004-08-10 13:21  jordi
17820         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
17821           enhancements and standarize on win colors defaults
17823 2004-08-10 12:52  jackson
17825         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
17826           ThemeWin32Classic.cs: Implement DrawItem functionality
17828 2004-08-10 12:47  jordi
17830         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
17832 2004-08-10 12:32  jordi
17834         * Control.cs: throw ontextchange event
17836 2004-08-10 11:43  pbartok
17838         * Control.cs:
17839           - Added more to the still unfinished Dock/Anchor layout code
17841 2004-08-10 11:39  pbartok
17843         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
17844           - Added GetWindowPos method
17846 2004-08-10 11:36  pbartok
17848         * XplatUIWin32.cs:
17849           - Implemented several methods
17851 2004-08-10 09:47  jackson
17853         * TrackBar.cs: Allow control to handle buffering
17855 2004-08-10 09:41  jackson
17857         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
17859 2004-08-10 09:24  jackson
17861         * Label.cs, LinkLabel.cs: Let Control handle buffering.
17863 2004-08-10 09:09  jackson
17865         * StatusBar.cs: Let Control handle all the buffering.
17867 2004-08-10 09:08  jackson
17869         * Control.cs: Control will now handle the buffering code, so each
17870           control does not have to implement this.
17872 2004-08-10 08:34  jackson
17874         * XplatUIDriver.cs: Use default colors from the theme
17876 2004-08-09 17:12  pbartok
17878         * ImageList.cs:
17879           - Fixed several bugs Ravindra pointed out
17881 2004-08-09 16:11  pbartok
17883         * Control.cs:
17884           - Added incomplete dock layout code
17885           - Added support for mouse wheel
17887 2004-08-09 16:09  pbartok
17889         * XplatUIX11.cs:
17890           - Added handling for middle and right mousebutton
17891           - Added handling for mouse wheel
17892           - Added handling for key state and mouse state and position
17893           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
17894           messages
17896 2004-08-09 15:40  jackson
17898         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
17899           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
17900           checkin
17902 2004-08-09 15:37  jackson
17904         * StatusBar.cs: Initial implementation of StatusBar
17906 2004-08-09 15:36  jackson
17908         * ITheme.cs: Add support for drawing status bar and getting status
17909           bar item sizes
17911 2004-08-09 15:35  pbartok
17913         * MouseButtons.cs:
17914           - Fixed values
17916 2004-08-09 15:34  jackson
17918         * ThemeWin32Classic.cs: Add support for drawing status bar and get
17919           status bar item sizes
17921 2004-08-09 15:21  jackson
17923         * ThemeWin32Classic.cs: Use known colors for default control
17924           colours
17926 2004-08-09 15:12  jackson
17928         * ThemeWin32Classic.cs: Make the default font static, it is static
17929           in control so this doesn't change functionality and creating fonts
17930           is sloooooow.
17932 2004-08-09 14:56  pbartok
17934         * X11Structs.cs:
17935           - Added GrabMode enum
17937 2004-08-09 14:55  pbartok
17939         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
17940           - Removed Run method, was only required for initial development
17942 2004-08-09 14:51  pbartok
17944         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
17945           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
17946           capture
17948 2004-08-09 13:48  pbartok
17950         * XplatUIX11.cs:
17951           - Fixed default sizing for child windows
17953 2004-08-09 12:56  pbartok
17955         * XplatUIX11.cs:
17956           - Added generation of WM_DESTROY message
17957           - Added handling of window manager induced shutdown
17959 2004-08-09 11:31  jackson
17961         * ThemeWin32Classic.cs: New names for control properties
17963 2004-08-09 11:25  jackson
17965         * Control.cs: Use new color names
17967 2004-08-09 11:02  jackson
17969         * XplatUI.cs: Get default window properties from the theme
17971 2004-08-09 11:01  jackson
17973         * ITheme.cs: The theme engine now controls default window
17974           properties
17976 2004-08-09 11:00  jackson
17978         * ThemeWin32Classic.cs: Add default window color properties
17980 2004-08-09 10:17  jackson
17982         * ThemeWin32Classic.cs: Use correct default back color
17984 2004-08-09 10:05  jackson
17986         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
17987           the theme now.
17989 2004-08-09 09:56  jackson
17991         * XplatUI.cs: Remove defaults, these are handled by the theme now.
17993 2004-08-09 09:54  jackson
17995         * Control.cs: Get default properties from the theme.
17997 2004-08-09 09:53  jackson
17999         * ITheme.cs: Themes now handle default control properties
18001 2004-08-09 09:53  jackson
18003         * ThemeWin32Classic.cs: Themes now handle default control
18004           properties so coloring will be consistent
18006 2004-08-08 16:54  jordi
18008         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
18010 2004-08-08 15:08  jordi
18012         * XplatUIX11.cs: fixes keyboard crash
18014 2004-08-08 13:47  jordi
18016         * Label.cs: add cvs header info
18018 2004-08-08 12:09  jackson
18020         * ThemeWin32Classic.cs: Add pen_buttonface
18022 2004-08-08 11:52  jordi
18024         * Label.cs, LinkLabel.cs: [no log message]
18026 2004-08-08 11:34  jordi
18028         * ThemeWin32Classic.cs: Use Windows Standard Colours
18030 2004-08-07 17:32  jordi
18032         * TrackBar.cs: throw exceptions of invalid enums values
18034 2004-08-07 17:31  jordi
18036         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
18037           draw method name
18039 2004-08-07 16:56  jackson
18041         * HorizontalAlignment.cs: Initial checkin
18043 2004-08-07 13:16  jordi
18045         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
18046           methods
18048 2004-08-07 13:05  jordi
18050         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
18051           GetSysColor defines
18053 2004-08-06 18:01  pbartok
18055         * ThemeWin32Classic.cs:
18056           - Fixed some rounding issues with float/int
18058 2004-08-06 18:00  jackson
18060         * DockStyle.cs, AnchorStyles.cs:
18062                   Add flags and serializable attributes.
18064 2004-08-06 17:46  pbartok
18066         * XplatUIX11.cs:
18067           - Implemented GetParent
18069 2004-08-06 17:18  pbartok
18071         * TrackBar.cs:
18072           - Fixed some rounding issues with float/int
18074 2004-08-06 17:17  pbartok
18076         * X11Structs.cs, XplatUIX11.cs:
18077           - Fixed Refresh and Invalidate
18079 2004-08-06 15:30  pbartok
18081         * Control.cs, X11Structs.cs, XplatUIX11.cs:
18082           - Fixed recursive loop when resizing
18083           - Improved/fixed redrawing on expose messages
18085 2004-08-06 09:53  jordi
18087         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
18088           keyboard navigation
18090 2004-08-06 08:02  pbartok
18092         * X11Structs.cs, XplatUIX11.cs:
18093           - Fixed reparenting
18094           - Fixed window border creation
18096 2004-08-05 15:38  pbartok
18098         * XplatUIX11.cs:
18099           - Attempted fix for reparenting problems
18101 2004-08-04 15:14  pbartok
18103         * Control.cs:
18104           - Fixed Invalidation bug (calculated wrong client area)
18105           - Added ClientSize setter
18107 2004-08-04 15:13  pbartok
18109         * Form.cs:
18110           - Added AutoScale properties
18112 2004-08-04 15:13  pbartok
18114         * SWF.csproj:
18115           - Added latest files
18117 2004-08-04 14:11  pbartok
18119         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
18120           XplatUIX11.cs:
18121           - Added Invalidate handling
18123 2004-08-03 17:09  jordi
18125         * XplatUIDriver.cs: fixes spelling mistake
18127 2004-07-27 09:53  jordi
18129         * TrackBar.cs: fixes trackbar events, def classname, methods
18130           signature
18132 2004-07-27 09:29  jordi
18134         * ScrollBar.cs: fixes scrollbar events
18136 2004-07-27 04:38  jordi
18138         * Control.cs: changes to be able to run winforms samples
18140 2004-07-26 11:42  jordi
18142         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
18143           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
18145 2004-07-26 05:41  jordi
18147         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
18148           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
18149           implementation
18151 2004-07-22 09:22  jordi
18153         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
18154           check link overlapping, implement events, and fixes
18156 2004-07-21 10:28  jordi
18158         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
18160 2004-07-21 10:19  jordi
18162         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
18163           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
18164           LinkLabelLinkClickedEventArgs.cs,
18165           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
18166           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
18167           implementation
18169 2004-07-19 13:09  jordi
18171         * Control.cs, Label.cs: label control re-written: added missing
18172           functionlity, events, and properties
18174 2004-07-19 10:49  jordi
18176         * Control.cs: fixes SetBounds logic
18178 2004-07-19 01:29  jordi
18180         * Control.cs: Call RefreshWindow only if the window has created
18182 2004-07-15 14:05  pbartok
18184         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
18185           - Implemented ImageList and ImageList.ImageCollection classes
18186           - Added ColorDepth enumeration
18187           - Updated SWF VS.Net project
18189 2004-07-15 11:06  jordi
18191         * XplatUIStructs.cs: added MsgButons enum
18193 2004-07-15 11:03  jordi
18195         * Control.cs: added basic mouse handeling events
18197 2004-07-15 03:38  jordi
18199         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
18200           Vertical TrackBar control implementation
18202 2004-07-13 09:33  jordi
18204         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
18206 2004-07-13 09:31  jordi
18208         * Control.cs, Form.cs: commit: new properties and fixes form size
18209           problems
18211 2004-07-09 14:13  miguel
18213         * ProgressBar.cs: Spelling
18215 2004-07-09 11:25  pbartok
18217         * ProgressBar.cs:
18218           - Removed usage of Rectangle for drawing. Miguel pointed out it's
18219           faster
18221 2004-07-09 11:17  miguel
18223         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
18225                 * ProgressBar.cs: Fixed spelling for `block'
18227                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
18228                 style guidelines.
18230                 Avoid using the += on rect.X, that exposed a bug in the compiler.
18232 2004-07-08 23:21  pbartok
18234         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
18235           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
18236           BaseCollection.cs, Binding.cs, BindingContext.cs,
18237           BindingMemberInfo.cs, BindingsCollection.cs,
18238           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
18239           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
18240           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
18241           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
18242           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
18243           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
18244           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
18245           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
18246           FrameStyle.cs, GiveFeedbackEventArgs.cs,
18247           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
18248           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
18249           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
18250           InputLanguageChangedEventArgs.cs,
18251           InputLanguageChangedEventHandler.cs,
18252           InputLanguageChangingEventArgs.cs,
18253           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
18254           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
18255           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
18256           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
18257           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
18258           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
18259           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
18260           QueryAccessibilityHelpEventArgs.cs,
18261           QueryAccessibilityHelpEventHandler.cs,
18262           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
18263           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
18264           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
18265           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
18266           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
18267           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
18268           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
18269           XplatUIX11.cs, lang.cs:
18270           - Initial check-in