2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2
3         * ColorDialog.cs: when the mouse button is pressed inside the color
4         matrix, don't let the cursor move out of it until the button is
5         released, which is the behavior on windows. Changed 'colours' by
6         'colors' to use the same word consistently.
7
8 2006-06-21  Chris Toshok  <toshok@ximian.com>
9
10         * DataGrid.cs: add in some basic navigation stuff (navigating to a
11         child relation and back, using a stack).  Also, remove
12         GetDataSource and the code that calls it - it's not needed.  Also,
13         track CurrencyManager.ListName's removal.
14
15 2006-06-21  Chris Toshok  <toshok@ximian.com>
16
17         * CurrencyManager.cs: push some of the original type checking from
18         BindingContext.CreateBindingManager to here, and remove some of
19         the finalType stuff.  Need more tests to make sure I've got the
20         ListName part right, and we might need more in SetDataSource.
21
22         * PropertyManager.cs: add a ctor that takes just the datasource,
23         and no property name.  Make SetDataSource work with a null
24         property_name, and make Current return the data_source if the
25         property descriptor is null.  this makes 'string foo = "hi";
26         BindingContext[foo].Current' return "hi" as it should.
27
28         * RelatedCurrencyManager.cs: make this code more generic - there's
29         no reason the parent manager has to be CurrencyManager, and
30         there's no reason to pass the DataRelation.  It suffices to use a
31         BindingManagerBase and PropetyDescriptor.
32
33         * RelatedPropertyManager.cs: make a similar change here.
34         
35         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
36         flower I knew it could be.
37
38 2006-06-20  Chris Toshok  <toshok@ximian.com>
39
40         * PropertyManager.cs: the PropertyChangedHandler is invoked when
41         data in the source has changed and we need to update the control,
42         so s/PullData/PushData.
43
44         * CurrencyManager.cs: Refresh is meant to update the control from
45         data in the datasource.  So, s/PullData/PushData.
46
47         * BindingContext.cs: add more ugliness (we weren't handling the
48         case where data_source = DataTable and data_member = column_name).
49
50         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
51         from the perspective of the datasource.  PullData pulls from the
52         control, PushData pushes to the control.
53
54 2006-06-20  Chris Toshok  <toshok@ximian.com>
55
56         * BindingContext.cs: rewrite the CreateBindingManager code to
57         handle navigation paths more or less properly.  This could
58         definitely stand some more work, in particular to push the
59         recursion up to the toplevel.  But that relies on fixes in other
60         places (System.Data comes to mind).
61
62         Also, move to a flat hashtable (and encode the twolevel nature of
63         the dictionary into the hash key).  This lets us implement the
64         IEnumerable.GetEnumerator method.
65
66         * RelatedCurrencyManager.cs: new class.  Update our view based on
67         our relation and our parent CurrencyManager's position.
68
69         * CurrencyManager.cs: split out some logic from the ctor into
70         SetView, so it can be called from the new RelatedCurrencyManager
71         subclass.
72
73         * RelatedPropertyManager.cs: new class.  Update our datasource
74         based on the position of our parent CurrencyManager.
75
76         * PropertyManager.cs: split out some logic from the ctor into
77         SetDataSource, so it can be called from the new RelatedDataSource
78         subclass.  Also, make the Current getter return the value
79         of the PropertyDescriptor, not the data_source.
80
81         * Binding.cs: no need to duplicate the string splitting code here.
82
83 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
84
85         * Control.cs:
86           - set_Enabled: OnEnabledChanged is not called if the inherited state 
87             of the control is not altered, even though  we might be changing the
88             internal state of the control (#78458)
89           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
90             OnEnabledChanged, to allow easy altering of any child window state
91           - OnEnabledChanged: Added code to enable/disable driver window state
92           - OnParentEnabledChanged: Instead of firing the event, call 
93             OnEnabledChanged, which will fire the event and also a) set driver
94             window state and pass the enabled state to any grandchildren (#78458)
95
96 2006-06-19  Jackson Harper  <jackson@ximian.com>
97
98         * InternalWindowManager.cs: We don't set the cursor explicitly
99         thats done via the response to NCHITTESTs.
100         - Don't need to adjust for titlebar heights anymore, the
101         coordinates are coming in the correct coordinates now (see peters
102         last patch).
103
104
105 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
106
107         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
108           being translated relative to whole window, instead of client window.
109           That caused broken offsets on mouseclick (and caused gas for our
110           InternalWindowManager)
111
112 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
113
114         * TextControl.cs:
115           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
116           - Undo(): Added replay of cursor move on DeleteChars action; added
117             calling Undo() again if a recorded cursor move is invalid (to
118             ensure that some action is performed on Undo)
119         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
120
121 2006-06-16  Jackson Harper  <jackson@ximian.com>
122
123         * MdiClient.cs: Instead of just sizing maximized windows when
124         there is a resize we also have to adjust the Y of minimized
125         windows, so they stay pinned to the bottom of the mdi container.
126         - Eliminate separate tracking of the active control, we can just
127         get this from the controls collection.
128         - Paint the decorations for the newly activated titlebar so we get
129         a pretty blue bar.
130         * InternalWindowManager.cs:
131         * ThemeWin32Classic.cs: Minimized windows get all three buttons
132         even if they are a tool window.
133         
134 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
135
136         * TextControl.cs (Undo): Handle non-existent cursor locations in the
137           undo buffer, these can happen when text was deleted and the cursor
138           was recorded first. Since we will also have a recorded cursor
139           after the delete this is not an issue. (Fixes #78651)
140
141 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
142
143         * AccessibleObject.cs: Remove dependence on Control.is_selected;
144           instead properly track control states internally (allows us to
145           remove is_selected from Control)
146
147 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
148
149         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
150         whose width is not a multiple of 8.
151
152 2006-06-13  Jackson Harper  <jackson@ximian.com>
153
154         * MdiClient.cs:  Only maximize the next child if the current one
155         is maximized.
156
157 2006-06-13  Chris Toshok  <toshok@ximian.com>
158
159         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
160         modified.  Also, guard against grid or grid_drawing being null in
161         Invalidate.
162
163         * DataGrid.cs: Reformat tons of getters/setters.  In the
164         DataMember setter, just call SetNewDataSource instead of
165         duplicating some of its functionality.  In SetNewDataSource, don't
166         check ListManager for null, since the property getter creates the
167         object if needed.
168
169         * DataGridTableStyle.cs: don't set TableStyle or call
170         SetDataGridInternal on the column here, it's done in
171         GridColumnStylesCollection.Add.
172
173         * GridColumnStylesCollection.cs: fix all the explicit interface
174         implementations to just call our methods.  Nuke AddInternal() and
175         move the body of it to Add().  Also, add a call to
176         column.SetDataGridInternal to Add().
177
178         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
179         base()+duplicate code.  Also, use the Format property instead of
180         format to generate an Invalidate ala MS.  Lastly, create the
181         textbox here, unconditionally.
182         (set_Format): call Invalidate.
183         (get_TextBox): no need to call EnsureTextBox.
184         (Commit): remove the message box.
185         (Edit) remove the call to EnsureTextBox.
186         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
187         (EnterNullValue): no need to check textbox for null.
188         (HideEditBox): no need to check textbox for null.
189         (SetDataGridInColumn): add the textbox to the grid's controls.
190         (EnsureTextBox): nuke.
191         
192 2006-06-13  Jackson Harper  <jackson@ximian.com>
193
194         * MdiWindowManager.cs: Hook up to the maximized menus paint event
195         and redraw the buttons when needed. Unhook when the window is
196         unmaximized.
197         * MainMenu.cs: Add an internal Paint event, the mdi window manager
198         needs this so that it can redraw its buttons when the menu is
199         repainted.
200         * InternalWindowManager.cs:
201         * Form.cs: The method order has changed for DrawMaximizedButtons,
202         so that it can be a PaintEventHandler.
203         
204 2006-06-13  Jackson Harper  <jackson@ximian.com>
205
206         * MdiClient.cs: When we close a maximized mdi window, the next mdi
207         window is activated and maximized, even if it wasn't before.
208         - When  a new window is activated repaint the decorations of the
209         old one, so that it no longer has the Active "look" (the blue
210         titlebar).
211         * InternalWindowManager.cs: Open up CreateButtons to base classes
212         so they can recreate the buttons on state changes.
213         - If a window is maximized give it all three buttons
214         * MdiWindowManager.cs: Create the titlebar buttons when the state
215         is changed, this is needed because a toolwindow will not have all
216         three buttons until it is maximized.
217
218 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
219
220         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
221           Fixed bug #78609.
222
223 2006-06-12  Jackson Harper  <jackson@ximian.com>
224
225         * KeysConverter.cs: Make sure we handle the Ctrl special case
226         if its the only key.
227         
228 2006-06-12  Jackson Harper  <jackson@ximian.com>
229
230         * Theme.cs: Add a method to get the size of a managed window
231         toolbar button.
232         * InternalWindowManager.cs: Remove the ButtonSize property, this
233         should be retrieved from the theme.
234         * MdiWindowManager.cs: Get the button size from the theme
235         * ThemeWin32Classic.cs: Make the method to get the managed window
236         titlebar button size public.
237         - Handle the different button sizes of maximized toolwindows
238         (should match any maximized window).
239         - Get the titlebar height from the theme, not the WM (which gets
240         it from the theme).
241
242 2006-06-12  Jackson Harper  <jackson@ximian.com>
243
244         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
245         event down to the mdi window manager.
246         - Expose some extra stuff to base classes
247         - Make sure to end the Capture on an NC Mouse up, so that we can
248         get double clicks properly, and the sizing doens't stick.
249         - When doing PointToClient contain it in the workable desktop
250         area, this prevents windows from changing size when the cursor is
251         pulled outside of the working area while sizing.
252         * MdiWindowManager.cs: When we get a double click maximize the
253         window.
254         - Reset the cursor after handling mode changes.
255
256 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
257
258         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
259           current desktop, instead of just assuming a 0, 0 origin. This
260           is needed for our internal window manager, to know the top
261           margin of the desktop
262
263 2006-06-12  Chris Toshok  <toshok@ximian.com>
264
265         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
266         we need this to get rid of the selected background in the bool
267         column.
268         (CancelEditing): move the ConcedeFocus call to above the Abort
269         call.  Also, set is_changing to false and invalidate the row
270         header if we were changing before.
271         (ProcessKeyPreviewInternal): remove, since noone outside this
272         class calls it anymore.  Roll the code into ProcessKeyPreview.
273         (EndEdit): remove the internal version.
274         (InvalidateCurrentRowHeader): make private.
275
276         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
277         Keys.Escape handling (and with it the last call to
278         DataGrid.EndEdit from outside the class.)
279
280
281 2006-06-12  Chris Toshok  <toshok@ximian.com>
282
283         * DataGridTextBox.cs (.ctor): isedit defaults to false.
284         (OnKeyPress): set isedit to true.
285         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
286         already handled by the grid.
287
288         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
289         right.  ugh.
290         (set_DataSource): SetDataSource always returns true, so stop
291         putting it in an if statement.
292         (EndEdit): get rid of some {}'s
293         (ProcessGridKey): return true in case Keys.Escape.
294         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
295         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
296         PositionChanged, stopped connecting to CurrentChanged.
297         (GetDataSource): simplify this a bunch.
298         (SetDataSource): change return type from bool to void.
299         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
300         to this, and make sure we don't set ListManager.Position inside
301         set_CurrentCell.
302         (OnListManagerItemChanged): if we're passed an actual index,
303         redraw that row.
304
305         * CurrencyManager.cs (set_Position): don't call PullData here.
306
307 2006-06-09  Jackson Harper  <jackson@ximian.com>
308
309         * TreeNode.cs:  Recalculate the visible order before doing the
310         Expand/Collapse Below calls, because those calls generate an
311         expose.
312         - Reduce calls to the TreeView property, which is mildly expensive
313         by using a local var.
314         * Form.cs: Layout the MDI child windows when creating the parent
315         form.
316         - Don't use the internal constructor anymore
317         * MdiClient.cs: use the parent form width/height (if available)
318         when laying out the child windows, we do this because the
319         mdiclient isn't docked yet when the initial layout is done.
320         - Don't need an internal constructor anymore.
321
322 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
323
324         * FileDialog.cs: handle access errors when trying to create a folder
325         or changing to a directory. No need to initialize out parameters.
326
327 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
328
329         * FileDialog.cs: Append a number when creating a new folder if the
330           folder already exists (use parenthesis instead of square brackets)
331
332 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
333
334         * FileDialog.cs:
335           - Disabled registry support for windows and added better registry
336             error checking for other systems (need to investigate why it
337             works perfectly on my system)
338           - If a folder already exist show an error MessageBox instead of
339             trying to create an indexed name.
340           - Fixed a non intentional typo.
341
342 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
343
344         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
345
346 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
347
348         * FileDialog.cs: When creating a new folder don't crash if the
349           folder already exists.
350
351 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
352
353         * FileDialog.cs: Allmost a complete rewrite.
354           - added a "virtual" file system that handles the differences
355             between unix and windows file systems (especially the directory
356             structure). Moved most of the directory and file handling code
357             into the vfs.
358             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
359             UnixFileSystem and FSEntry.
360           - Recently used folder/directory, size, location and used file names
361             (file name ComboBox) are now stored in the registry and get read
362             before the dialog shows up (fixes part 6 of bug #78446).
363           - Creation of new folders/directories is now possible (context menu
364             or ToolBar). Added TextEntryDialog for this that fills in the gap
365             until ListView.LabelEdit works.
366           - Fixed cursor handling (bug #78527) and focus handling for
367             PopupButtonPanel
368           - Various "Search in" ComboBox enhancements. The content of the
369             dropdown listbox now almost matches ms.
370           - Changed the behaviour when the user switches to SpecialFolder
371             Recent to show the ListView in View.Details.
372           - Beside using the ToolBar to change the View property of the
373             file ListView it is now possible to use the context menu too.
374
375 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
376
377         * ComboBox.cs: Don't create a new ObjectCollection when an item
378           gets inserted. Just insert the item in the existing object_items
379           ArrayList.
380
381 2006-06-08  Jackson Harper  <jackson@ximian.com>
382
383         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
384         that the treeview and root node checks are done also, this fixes a
385         regression i caused in the unit tests.
386
387 2006-06-07  Wade Berrier <wberrier@novell.com> 
388
389         * RichTextBox.cs: More ISO8859-1 -> unicode
390
391 2006-06-07  Mike Kestner  <mkestner@novell.com>
392
393         * ComboBox.cs : use items to hold highlight/selection so that
394         collection insertions don't require synchronization.
395
396 2006-06-07  Jackson Harper  <jackson@ximian.com>
397
398         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
399         routine.  We now always keep the sized edge at the cursor instead
400         of computing movement and adjusting rects.  There is one buglet
401         with this method though when the cursor is moved over area that
402         the window can not expand too (such as the toolbars on the desktop).
403
404 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
405
406         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
407         here. Fixes crash on startup in AlbumSurfer.
408
409 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
410
411         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
412           values
413
414 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
415
416         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
417         statement to avoid calling XNextEvent which will block if another thread
418         took the event that we were expecting. Fixes bug #78605.
419
420 2006-06-07  Mike Kestner  <mkestner@novell.com>
421
422         * ListView.cs : isolated checkbox clicking from the selection logic.
423         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
424
425 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
426
427         * Form.cs: Check that the value passed to Form.DialogResult
428         is a valid enum value.
429
430 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
431
432         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
433         Computer'. Clicking it in the network view goes to 'My Computer'.
434         Added CIFS filesystem type. Display the mount point of filesystems.
435         Avoid duplicate mount points (happens for me with CIFS);
436
437 2006-06-06  Jackson Harper  <jackson@ximian.com>
438
439         * InternalWindowManager.cs: Draw the maximized windows buttons
440         when resizing.
441
442 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
443
444         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
445         all other dialogs. Fixes bug #78585.
446
447 2006-06-06  Mike Kestner  <mkestner@novell.com>
448
449         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
450         Only invalidate checkbox on checkstate changes to avoid flicker.
451         * ListBox.cs : avoid unselect/select when clicking selected item.
452         avoid reselection flicker for already multiselected items.
453         Fixes #78382.
454
455 2006-06-06  Jackson Harper  <jackson@ximian.com>
456
457         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
458         the parent form so that the menu is removed if needed.
459
460 2006-06-06  Mike Kestner  <mkestner@novell.com>
461
462         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
463         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
464
465 2006-06-06  Mike Kestner  <mkestner@novell.com>
466
467         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
468
469
470 2006-06-06  Jackson Harper  <jackson@ximian.com>
471
472         * Control.cs: Use the property (instead of the field) to get the
473         default cursor so it is instantiated correctly.
474         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
475         resizes so we need to manually repaint the window decorations here.
476         - Set the titlebar button locations as soon as they are created,
477         otherwise they are not set correctly on win32.
478         
479 2006-06-06  Chris Toshok  <toshok@ximian.com>
480
481         * CurrencyManager.cs (set_Position): call PullData before
482         OnCurrentChanged.
483         (AddNew): after calling IBindingList.AddNew, update our
484         listposition, and call OnCurrentChanged/OnPositionChanged (without
485         calling PullData).
486         (OnCurrentChanged): remove the call to PullData from here.
487         (OnItemChanged): remove the call to PushData from here.
488         (OnPositionChanged): change the test from == null to != null to
489         match the other methods.
490         (ListChangedHandler): the grossest part of the patch.  Implement
491         this such that it passes the unit tests in CurrencyManagerTest and
492         the output more or less matches that of MS's implementation.
493  
494 2006-06-06  Mike Kestner  <mkestner@novell.com>
495
496         * ListView.cs : only update check state on single click.
497         * ThemeWin32Classic.cs : fix focus drawing for details view without
498         fullrowselect.  Fixes #78454.
499         * XplatUIX11.cs : fix for double click emission.
500
501 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
502
503         * PropertyGridView.cs : Applied Atsushi's patch to fix
504         font dialog bug  (#78197).
505
506 2006-06-05  Jackson Harper  <jackson@ximian.com>
507
508         * TreeNode.cs: Compute the next node for expanding/collapsing
509         correctly. We now factor in nodes without a NextNode
510         correctly. (Fixes somes cases in nunit-gui).
511         * InternalWindowManager.cs: Set the bounds when updating the
512         virtual position of a tool window.
513         
514 2006-06-05  Chris Toshok  <toshok@ximian.com>
515
516         * DataGrid.cs: rename cached_currencymgr to list_manager.
517         (set_CurrentCell): move SetCurrentCell code here, and clean it up
518         some.
519         (CurrentRow, CurrentColumn): single accessors so we can make the
520         cursor movement code a lot easier to understand.
521         (CurrentRowIndex): implement this in terms of CurrentRow.
522         (BeginEdit): clean this up a bit.
523         (CancelEditing): sort out the is_editing/is_changing/is_adding
524         stuff a little.
525         (EndEdit): minor changes.
526         (OnKeyDown): add a comment about a (most likely) unnecessary
527         check.
528         (OnMouseDown): cancel editing when we click on a row header.  And
529         use the CurrentRow setter, not CurrentCell.
530         (ProcessDialogKey): directly call ProcessGridKey.
531         (UpdateSelectionAfterCursorMove): factor out this common block of
532         code (it's used everywhere that we move the cursor by updating row
533         or column).
534         (ProcessGridKey): pretty substantial overhaul.  Use the
535         CurrentRow/CurrentColumn properties to make the code a lot more
536         readable.  Only use the CurrentCell property when we have to
537         modify both row and column at once.  Tab behavior is still broken,
538         and Delete is untested.
539         (Select): if we have no selected rows, set selection_start to
540         @row.
541         (EditCurrentCell): rename EditCell this.  It was only ever invoked
542         with CurrentCell as the arg, so drop the arg and rename it.
543
544         * DataGridColumnStyle.cs: clean up the constructors a little, and
545         drop CommonConstructor().
546
547         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
548         actually get notified when the user hits it.
549         (ProcessKeyMessage): *substantially* simplify this method.
550         There's no reason (that I can see) for the textbox to be making
551         calls into the datagrid at all.  Remove all of them but the ones
552         for Enter handling.  those will take some more work.
553
554         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
555         calling HideEditBox.
556         (HideEditBox): if we have an active textbox, render it invisible
557         without causing a re-layout of the datagrid.
558
559 2006-06-05  Mike Kestner  <mkestner@novell.com>
560
561         * ListView.cs : fix NRE crasher when focuseditem is cleared by
562         collection changes by resetting it to Items[0].  Fixes #78587.
563
564 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
565
566         * MessageBox.cs: if the height of the text is larger than the icon_size,
567         use that. Fixes bug #78575.
568
569 2006-06-05  Jackson Harper  <jackson@ximian.com>
570
571         * TreeView.cs: Fix line drawing when scrolling.  To do this each
572         node is basically responsible for drawing its entire horizontal
573         area.  When drawing a node it draws its parent node lines if
574         needed.
575         - Adjust the clip area to the viewport rectangle
576         - Fix Left/Right key handling to match MS. (It expand/collapses
577         and moves to parents/first child but does not move selection to
578         sibling nodes).
579         - Fix SetTop to work with new bound calculation code
580         - When scrollbars are no longer needed we need to reset scrolling
581         vars and recalculate the visible order so the redraw is correct
582         * TreeNode.cs: We can't expand/collapse nodes with no children.
583
584 2006-06-03  John Luke  <john.luke@gmail.com> 
585
586         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
587         so the colors work without dev packages
588         
589 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
590
591         * Control.cs 
592           - Select: Implemented to just use activate. Seems to match MS 
593             behaviour closest. Documented to only do actual control walking 
594             based on it's parameters if in a container control so I moved 
595             the code there.
596           - Removed selection check logic from our internal Select() method
597         * ContainerControl.cs:
598           - Select: Moved selection logic from Control here, since MS documents
599             that containers obey the bool arguments. No longer calling base
600
601 2006-06-02  Jackson Harper  <jackson@ximian.com>
602
603         * TreeView.cs: If the selected node isn't changed when we get
604         focus update the previously selected node so that we see the
605         selection box.
606
607 2006-06-02  Mike Kestner  <mkestner@novell.com>
608
609         * ComboBox.cs: restructure grab and general mouse event handling.
610         Make the composite control raise mouse events like it was a single
611         control for leaves/enters/motion/up/down events.  fix dropdown list
612         coordinate mangling and refactor it into the scrollbar subclass to
613         reduce code duplication.  Fixes #78282 #78361 and #78457.
614
615 2006-06-02  Mike Kestner  <mkestner@novell.com>
616
617         * ScrollBar.cs: remove Capture setting/clearing, as it happens
618         automatically in the Control.WndProc.
619
620 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
621
622         * FileDialog.cs: fix crash when running SharpChess, which sets the
623         FilterIndex to 2 with only one Filter.
624
625 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
626
627         * ToolBar.cs: add SizeSpecified property.
628         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
629         try to figure out our real size, otherwise fallback to what the
630         container says.
631
632 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
633
634         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
635         * Control.cs (WndProc): MS always calls the DefWndProc to pass
636           up the event
637
638 2006-06-01  Mike Kestner  <mkestner@novell.com>
639
640         * ListView.cs: revamp the focus management in ListView.  It still
641         causes churn of LostFocus/GotFocus emissions on clicks, but it's
642         better than not handling focus at all.  Will revisit when pdb feels
643         the general focus handling is solid.  Fixes #78526.
644
645 2006-06-01  Jackson Harper  <jackson@ximian.com>
646
647         * TreeView.cs: Set the default border style in the constructor.
648         - Move painting to use OnPaintInternal instead of capturing
649         WM_PAINT, this is the correct way of doing things
650         - UpdateBelow shouldn't invalidate the scrollbar area
651         - Cap the top on update below in case the node was above the top
652         of the viewport rectangle.
653         - ExpandBelow and Collapse below need to obey Begin/End Update.
654         * TreeNode.cs: Make is_expanded internal so the treenode
655         collection can change it without firing the whole event chain.
656         * TreeNodeCollection.cs: When clearing all the child nodes make
657         sure to recalc the visible order.
658         - Improve algo for remove the top node
659
660 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
661
662         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
663           SendMessage directly calling window procedures, which in turn might
664           call SetFocus()
665
666 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
667
668         * Control.cs: Don't handle WM_SETFOCUS if the same window already
669           has focus (works around X11 sending a FocusIn after our SetFocus)
670         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
671
672 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
673
674         * Mime.cs: Fix for the NET_2_0 build.
675           NameValueCollection needs StringComparer now.
676
677 2006-05-31  Chris Toshok  <toshok@ximian.com>
678
679         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
680         return (via an out parameter) the starting X of the column.
681         (UpdateVisibleColumn): track change to FromPixelToColumn.
682         (HitTest): add a ColumnResize case here.
683         (DrawResizeLine): new function, probably poorly named.
684
685         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
686         only need to keep one reference.
687         (set_ListManager): same.
688         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
689         Also, add support for HitTestType.ColumnResize.
690         (OnMouseMove): add column resize behavior here, and change the
691         cursor to the correct one as we move around the datagrid.
692         (OnMouseUp): terminate the column resize if we're resizing.
693         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
694         for the current cell.
695         (ConnectListManagerEvents): use cached_currencymgr.
696         (DisconnectListManagerEvents): fill this in, using
697         cached_currencymgr.
698         (SetCurrentCell): remove cached_currencymgr_events handling.
699         (SetDataMember): only call DisconnectListManagerEvents if
700         cached_currencymgr is != null.
701         (SetDataSource): same.
702         (OnListManagerCurrentChanged): cached_currencymgr_events ->
703         cached_currencymgr.
704
705 2006-05-31  Jackson Harper  <jackson@ximian.com>
706
707         * BindingManagerBase.cs: Remove somedebug code that creeped into
708         SVN.
709         * TreeNode.cs: We get the indent level dynamically right now, so
710         don't track it as a member.
711         * TreeNodeCollection.cs: Make sure all nodes added to the list
712         have parents, treeviews/topnodes setup properly.
713         - Don't attempt to track indent level.
714
715 2006-05-30  Jackson Harper  <jackson@ximian.com>
716
717         * BindingContext.cs: Create the currency manager tables here.
718         This allows us to more easily create null tables (when bad data
719         members are used), and more easily create related currency
720         managers.
721         * CurrencyManager.cs: All the table creation stuff is done by the
722         binding context now.
723         - Current should throw an exception if listposition is -1.
724         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
725         been bound yet.
726
727 2006-05-30  Mike Kestner  <mkestner@novell.com>
728
729         * ListView.cs: allow reexpansion of zero-width column headers.
730         Fixes #78528.
731
732 2006-05-28  Chris Toshok  <toshok@ximian.com>
733
734         * CurrencyManager.cs (get_Current): after the late binding
735         listposition = -1 fix, we need to guard against it here and return
736         null, otherwise we raise an exception (which is swallowed
737         elsewhere, and breaks datagrid databinding.)
738
739 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
740
741         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
742           than WM_SYSKEY, don't throw if get something unexpected (#78507)
743
744 2006-05-26  Jackson Harper  <jackson@ximian.com>
745
746         * ControlPaint.cs:
747         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
748         values, it's faster and it's all we care about (we don't care if
749         the names aren't equal).
750         * KeyboardLayouts.cs: Eliminate some dead code.
751         - Lazy init things
752         * X11Keyboard.cs: Lazy init keyboard detection.
753         - Cleanup access modifiers a little.
754
755 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
756
757         * XplatUIX11.cs: Once again, attempting to get layout just right.
758
759 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
760
761         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
762           the sizes of each link section, that will result in sizes that
763           match DrawString's layout (Fixes #78391)
764
765 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
766
767         * FileDialog.cs: If AddExtension property is true autocomplete the
768           extensions in SaveFileDialog correctly. Fixes bug #78453.
769           Set MyNetwork and MyComputer to "C:\" for windows. This should
770           fix part 8 of bug #78446 for now.
771
772 2006-05-26  Chris Toshok  <toshok@ximian.com>
773
774         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
775         invalidate the current row header if we need to, but presumably
776         we'll invalidate the row corrsponding to the bounds or
777         editingControl.
778         (GridHScrolled): switch back to this method, as it's part of the
779         public api.  *sigh*.
780         (GridVScrolled): same.
781         (OnMouseWheel): hack up something that more or less works.  Call
782         GridHScrolled/GridVScrolled directly, instead of duplicating much
783         of their code here.
784         (EnsureCellVisibility): reinstate a bunch of this code, since we
785         can't just set the scrollbar Value and expect to do all the work
786         in the ValueChanged handler.  Also, Call Update() after scrolling
787         in one direction so the other XplatX11.ScrollWindow call has the
788         proper stuff in the proper places.
789         (EditCell): set is_editing to true before calling .Edit.
790
791         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
792         don't bother comparing first.
793         (OnKeyPress): call grid.ColumnStartedEditing before calling
794         base.OnKeyPress.  this will set is_changing and invalidate the row
795         header if necessary.
796         (ProcessKeyMessage): for WM_CHAR messages, call
797         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
798         and WM_KEYDOWN.
799         
800         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
801         it's done in the DataGrid.
802         (NextState): call grid.ColumnStartedEditing, which takes care of
803         invalidating the row header (and setting is_changing).
804
805         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
806         here.  it's done in the DataGrid.
807
808 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
809
810         * Control.cs: allow changing the cursor when the mouse position is
811         out of bounds but Capture is set.
812         * LinkLabel.cs: handle the case when the mouse button is pressed on the
813         linklabel but released somewhere else.
814
815 2006-05-25  Jackson Harper  <jackson@ximian.com>
816
817         * TreeView.cs: When we get focus if there is no selected node make
818         it the top node
819         - Remove some uneeded setup code from Draw.
820         * TreeNodeCollection.cs: If the tree doesn't have a top node when
821         a new node is inserted make the new node the top.
822         * XplatUIX11.cs:
823         * Timer.cs: Use Utc time so that no local time zone stuff needs to
824         be used (should be faster).
825         
826 2006-05-25  Chris Toshok  <toshok@ximian.com>
827
828         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
829         problem with the last commit.
830
831 2006-05-25  Chris Toshok  <toshok@ximian.com>
832
833         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
834         need the invalidate call here, while scrolling right-to-left via
835         the left arrow key (i.e. moving the editing cell while scrolling).
836
837         * DataGrid.cs (.ctor): remove the initialization of
838         ctrl_pressed/shift_pressed.  We no longer track them using key
839         up/down handlers, but by using Control.ModifierKeys.  Also, switch
840         to using ValueChanged handlers on the scrollbars instead of
841         Scrolled event handlers.  This simplifies a bunch of the scrolling
842         code.
843         (GridHValueChanged): rename from GridHScrolled, and change it to
844         work with the new event args.
845         (GridVValueChanged): same.
846         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
847         (OnMouseWheel): actually scroll the datagrid.  Don't change the
848         selected cell.
849         (ProcessGridKey): correct all the keyboard navigation stuff I
850         could find.  Ctrl up/down/left/right/home/end work now.
851         (EnsureCellVisibility): correct method name spelling.  Also,
852         simplify this a touch by not explicitly calling the
853         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
854         scrollbar value.
855         (OnKeyUpDG): no need for this method now.
856         
857 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
858
859         * LinkLabel.cs: display the OverrideCursor when hovering the label.
860         Fixes bug #78392.
861
862 2006-05-25  Chris Toshok  <toshok@ximian.com>
863
864         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
865         r61019.
866
867 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
868
869         * Application.cs: Moved setting of is_modal and closing to before
870           we create the control, to allow the event handlers called as a
871           result of creation affect closing. Also removed Gonzalo's previous
872           change to setting DialogResult, the behaviour has been moved to 
873           Form.ShowDialog()
874         * Form.cs: 
875           - ShowDialog(): Removed explicit creation of the form, let RunLoop
876             handle it instead
877           - ShowDialog(): If no dialog result is set, we need to return Cancel
878           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
879             the close is cancelled
880
881 2006-05-25  Jackson Harper  <jackson@ximian.com>
882
883         * StatusBar.cs: We only need to update the sizes of the other
884         panels when we have auto size contents.  Also we are only updating
885         the contents of the panel, not the borders, so compensate for the
886         border width (TODO: get this width from the theme somehow).
887         * TreeView.cs: Scrollable is true by default
888         - Use invalidate instead of refresh where needed
889         - Factor the scrollable value into scrollbar updating
890         - Update the scrollbars if the Scrollable property is altered
891         - Update the selected node if its ImageIndex is changed
892         - Handle null nodes in UpdateNode (mainly so we don't have to
893         check if selected is null when updating it
894         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
895         are factored into the visible count
896         - Use VisibleCount for clarity in the code
897         - When the font is changed we need to recurse through all the
898         nodes and invalidate their sizes
899         
900 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
901
902         * Application.cs: set the DialogResult to fixed when the main form is
903         hidden or destroyed while being modal.
904
905 2006-05-25  Miguel de Icaza  <miguel@novell.com>
906
907         * Theme.cs: Use Tangoified messagebox icons. 
908
909         (GetSizedResourceImage): Also cope with width = 0 and do not
910         trigger a warning in that case (0 means "give me your icon from
911         the resouce, no special size needed).
912
913 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
914
915         * Application.cs: Leave runloop if the the main modal form is 
916           hidden (fixes #78484)
917
918 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
919
920         * BindingContext.cs : reject null datasource in Contains() and
921           Item[].
922         * CurrencyManager.cs : check data_member validity when data_source
923           is dataset. When it is late binding, the initial position is -1.
924
925 2006-05-24  Jackson Harper  <jackson@ximian.com>
926
927         * TreeNodeCollection.cs: Dont't recalculate the visible order on
928         inserted nodes that aren't visible.  This changes the
929         max_visible_order which confuses scrollbar settings.
930         - Use the enumerator to get the prev node instead of duplicating
931         code.
932         * TreeView.cs: Use new method for setting scrollbar values
933         - Don't set the bounds every time the scrollbar is updated
934         - When updating below the root node use an invalidate instead of a
935         refresh to prevent the child controls (scrollbars) from being
936         refreshed. (UpdateBelow still needs to be reworked anyways).
937         - Reenable SetBottom now that visible orders are set correctly,
938         added some debug code incase we ever get bad values there again.
939         - Set the scrollbar max to 2 less then the max value, this
940         compensates for the max value being one above the node count, and
941         for scrollbars adding one extra "notch".
942         - When drawing image nodes if there is an imagelist we draw the
943         first image in the list if the supplied image index is out of the
944         image list's bounds.
945         
946 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
947
948         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
949           we receive a size change from the WM (Fixes #78503)
950
951 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
952
953         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
954           rectangle (Fixes #78501)
955
956 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
957
958         * ButtonBase.cs: 
959           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
960             as a bitfield.
961           - Fixed MouseMove to no longer switch pressed state unless the left
962             mouse button is pressed. Atsushi provided the original patch (#78485)
963           
964 2006-05-24  Jackson Harper  <jackson@ximian.com>
965
966         * ScrollBar.cs: New internal methods that allow us to change a
967         couple values on the scrollbar (the most common case is maximum
968         and large change) without getting multiple invalidates.
969
970 2006-05-24  Chris Toshok  <toshok@ximian.com>
971
972         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
973         (Edit): save off the original state in oldState, and set
974         grid.is_editing to true.
975         (OnKeyDown): abort editing if escape is pressed.  also, call
976         NextState if space is pressed.
977         (OnMouseDown): call NextState.
978         (NextState): factor out shared code from OnKeyDown and OnMouseDown
979         here.  Also, only invalidate the row header once (on the initial
980         is_changing switch) to save on redraws.
981
982 2006-05-24  Chris Toshok  <toshok@ximian.com>
983
984         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
985         if the value in the cell is different than it was before.  This
986         keeps us from triggering a layout when we move around a datarid
987         with a highlighted cell.
988         (Edit): suspend layout when creating/positining the text box, and
989         resume passing false so we don't ever actually re-layout.
990         (ReleaseHostedControl): same.
991         (EnsureTextBox): reformat slightly, and set WordWrap to false.
992
993         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
994         control-key sequences should go to the datagrid - remove that
995         lock.  Also, modify the conditions under which we move between
996         cells when moving the cursor within a cell, and remove the "this"
997         and "base" from field accesses.  We weren't even consistent, given
998         they all were in the base class.
999
1000 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
1001
1002         * Binding.cs : (.ctor)
1003           An obvious NRE fix for BindingTest.CtorNullTest().
1004
1005 2006-05-23  Chris Toshok  <toshok@ximian.com>
1006
1007         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
1008         them between lines.  This fixes some quirks editing cells in the
1009         datagrid.
1010
1011 2006-05-23  Jackson Harper  <jackson@ximian.com>
1012
1013         * TreeView.cs: Use begin/end update when doing expand/collapse all
1014         so that we don't get flicker on the scrollbar.
1015
1016 2006-05-23  Jackson Harper  <jackson@ximian.com>
1017
1018         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
1019         treenode calculations to be independant of the painting code. To
1020         do this nodes track a visible order which is calculated by the
1021         treeview.
1022         - Call new methods for expanding/collapsing nodes.  These methods
1023         use scrollwindow so we don't have to update everything below the
1024         node.
1025         * TreeView.cs: Refactored drawing and scrolling code.  We don't
1026         need to update nodes when drawing anymore or calculate scrollbar
1027         stuff.
1028         - Added new methods for expanding/collapsing nodes. These methods
1029         use ScrollWindow so as to not have to redraw all the nodes below.
1030         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
1031         we add/remove nodes or sort.
1032         - Handle removing the selected and the top node properly.
1033
1034 2006-05-23  Chris Toshok  <toshok@ximian.com>
1035
1036         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
1037         maybe this should actually happen in the datagrid code?
1038         (EndEdit): no need to invalidate anything, given that
1039         ReleaseHostedControl causes the datagrid to relayout, which
1040         invalidates everything anyway.
1041
1042         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
1043         in SetCurrentCell).
1044         (set_SelectionBackColor): call InvalidateSelection instead of
1045         Refresh.
1046         (set_SelectionForeColor): same.
1047         (BeginEdit): Flesh this out a bit.
1048         (CancelEditing): only do any of this if we're editing/adding.
1049         (EndEdit): same.
1050         (OnMouseDown): there's no need to cancel editing here, it's done
1051         in SetCurrentCell.
1052         (SetCurrentCell): only invalidate the current row header if it's a
1053         different row than the new one.
1054         (ShiftSelection): fix this to work like MS does.
1055         (ResetSelection): factor out the invalidation of selected_rows to
1056         InvalidateSelection.
1057         (SetDataSource): cancel any editing that's going on.
1058
1059         * DataGridColumnStyle.cs
1060         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
1061         call the non-interface version.
1062
1063         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
1064         header rectangle with the clip rectangle so we don't redraw the
1065         entire header for just a small area.  Gets rid of the last flicker
1066         when horizontally scrolling.
1067         (DataGridPaintRow): same.
1068
1069 2006-05-23  Mike Kestner  <mkestner@novell.com>
1070
1071         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
1072         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
1073         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
1074         Critical bug report.
1075
1076 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
1077
1078         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
1079           and this fixes #78493
1080
1081 2006-05-23  Miguel de Icaza  <miguel@novell.com>
1082
1083         * Theme.cs (GetSizedResourceImage): Scale images if the proper
1084         size is not found.  
1085         
1086         * FileDialog.cs: Do not change the background for the side bar as
1087         it wont work nicely with the theme, and also reduces the artifacts
1088         in rendering the icons (which I want to fix too).
1089
1090         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
1091         resources, not resgen resources. 
1092
1093         (PlatformDefaultHandler): Pull images using the new API.
1094
1095 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
1096
1097         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
1098           a reference to the hwnd and will not remove it unless there are
1099           no pending exposures (fixes #78341)
1100         * XplatUI.cs: Improved debug
1101
1102 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
1103
1104         * MenuAPI.cs : don't handle OnClick event when it was not the left
1105           button. Fixed bug #78487.
1106
1107 2006-05-23  Mike Kestner  <mkestner@novell.com>
1108
1109         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
1110         prefer submenus to the top menu for item lookup, to avoid popping down
1111         top-row items.
1112
1113 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
1114
1115         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
1116           Graphics.FillRectangle as the visual results are really bad (even
1117           on win). We now draw perfect arrows (and perfect shadows when the
1118           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
1119           Pen.DashPattern to draw the dots of each line.
1120
1121 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
1122
1123         * FileDialog.cs: Update the filename combobox when navigating through
1124           the ListView with the cursor keys. Fixes part 7 of bug #78446.
1125
1126 2006-05-22  Mike Kestner  <mkestner@novell.com>
1127
1128         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
1129         Fixes #78463.
1130
1131 2006-05-22  Mike Kestner  <mkestner@novell.com>
1132
1133         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
1134         requests. Fix a misspelled parameter and a copy paste exception error
1135         in Select.
1136
1137 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
1138
1139         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
1140           to get the same width/height (5/13) on X11 as the default font has on
1141           win32. This means that our DefaultFont emSize is smaller than the 
1142           the MS SWF equivalent (even thought the width/height stays the same)
1143
1144 2006-05-20  Jackson Harper  <jackson@ximian.com>
1145
1146         * MdiClient.cs:
1147         * MdiWindowManager.cs:
1148         * InternalWindowManager.cs: Make sure to use the border width from
1149         the theme.
1150
1151 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
1152
1153         * PrintDialog.cs: Implements printer details
1154
1155 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
1156
1157         * FileDialog.cs: Added focus handling for PopupButtonPanel.
1158           Fixes part 1 and 2 of bug #78446
1159
1160 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
1161
1162         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
1163           instead of sticking to the first ever calculated value
1164
1165 2006-05-19  Mike Kestner  <mkestner@novell.com>
1166
1167         * ComboBox.cs: fix mouse motion selection to use MousePosition and
1168         PointToClient, since Capture is set. Fixes #78344.
1169
1170 2006-05-19  Mike Kestner  <mkestner@novell.com>
1171
1172         * ListView.cs: match MS behavior in Details view where items are not
1173         drawn if Columns.Count == 0. 
1174         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
1175         Use a separate pen to draw the check, since changing the width affects
1176         the box as well.  Fixes #78454.
1177
1178 2006-05-18  Miguel de Icaza  <miguel@novell.com>
1179
1180         * ListView.cs: ArgumentOutOfRangeException, single versions of the
1181         exception should throw the name of the invalid argument.
1182
1183         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
1184         there are no files listed. 
1185
1186 2006-05-18  Jackson Harper  <jackson@ximian.com>
1187
1188         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
1189         up.
1190
1191 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
1192
1193         * Control.cs: Brought back our old UpdateZOrder method as a private
1194           function and switched our calls from UpdateZOrder to the new one.
1195           This fixes the Paint.Net canvas disappearing bug.
1196
1197 2006-05-18  Jackson Harper  <jackson@ximian.com>
1198
1199         * Theme.cs:
1200         * ThemeWin32Classic.cs:
1201         * InternalWindowManager.cs: Move the drawing into the theme,
1202         expose everything the theme should need from the window manager.
1203
1204 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
1205
1206         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
1207           from the call to NativeWindow to avoid walking up the parent chain
1208           further than needed (speeds up setting cursors and avoids setting
1209           the wrong cursor if a parent has another cursor defined)
1210         * Cursor.cs: When loading an icon as cursor, MS uses the center of
1211           the icon as hotspot, not what's contained as hotspot in the icon
1212           file. This fixes the perceived drawing offset seen with Paint.Net
1213         
1214 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
1215
1216         * XplatUIX11.cs: 
1217           - Store the calculated rectangle in Hwnd object and use it when 
1218             setting the client size
1219           - Force Toolwindows to always be type Dock, to ensure they're on top
1220
1221 2006-05-18  Mike Kestner  <mkestner@novell.com>
1222
1223         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
1224         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
1225         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
1226         Substantial refactoring to remove confusing nested classes. Coding
1227         standard and Get+Set->property refactorings.  Shift to index based
1228         highlighting in ComboListBox instead of constantly using IndexOf and
1229         Items[]. Add invalidations on resize for DropDownList to fix ugliness
1230         in FileDialog growth.  Draw borders manually since Simple mode needs
1231         to look like two independent controls.  Make listbox border
1232         conditional to DropDownStyle.  Improved OwnerDraw support.
1233
1234 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
1235
1236         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
1237         Don't set the disposed graphics to null, so we can throw the "right"
1238         exception if the graphics is reused later (added a flag to avoid 
1239         double disposing). Some behaviours are different under 2.0 and are
1240         filled under bug #78448.
1241
1242 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
1243
1244         * Control.cs: When double-buffering is enabled, we need to reset
1245           our graphics context between paint calls. Otherwise, any 
1246           transformations and other alterations on the context will 
1247           become cumulative (#77734)
1248
1249 2006-05-18  Mike Kestner  <mkestner@novell.com>
1250
1251         * ListView.cs: do focused item selection like MS on clicks. 
1252         Rework focus handling for ItemControl so LostFocus invalidates as
1253         well.
1254         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
1255         the ListView ItemControl has focus.
1256
1257 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
1258
1259         * XplatUIX11.cs: If client_window ends up being width or height zero
1260           due to border settings, move it off window inside whole_window (#78433)
1261
1262 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
1263
1264         * Mime.cs: Shrink the mime file cache correctly.
1265
1266 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
1267
1268         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
1269
1270 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
1271
1272         * XplatUIX11.cs (AddExpose): More sanity checks
1273
1274 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
1275
1276         * XplatUIX11.cs:
1277           - AddExpose: Don't add expose ranges outside the size of our
1278             window
1279           - Cast opacity values to Int32 to avoid crashes with certain
1280             values
1281           - Added disabled code paths that protect against illegal cross-
1282             thread painting (Developers.exe)
1283
1284 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
1285
1286         * ProgressBar.cs: Invalidate the control when it's resized
1287           since block size is based on control size. (#78388)
1288
1289 2006-05-16  Miguel de Icaza  <miguel@novell.com>
1290
1291         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
1292         of setting the incoming argument to the "reset" value, we set the
1293         this.datamember to string.empty (before we were invalidating the
1294         incoming data).   
1295
1296         Fixes 78420
1297
1298 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
1299
1300         * Form.cs: Only apply transparency settings after the form
1301           is created. (Fixes #77800)
1302
1303 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
1304
1305         * ApplicationContext.cs: Grab the HandleDestroyed event so
1306           we know when to fire OnMainFormClosed 
1307
1308 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
1309
1310         * Application.cs: Introduced sub-class to allow tracking of
1311           threads and centralized triggering of the event mess for
1312           ThreadExit, AppExit, etc..  (#76156)
1313
1314 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
1315
1316         * MimeIcon.cs:
1317           - Do not return a null icon index value for a mime subclass.
1318             Instead try the main mime type class too.
1319           - Seems that some newer distributions don't have a link to some
1320             gnome default icons anymore. So check the default gnome dir too.
1321           
1322
1323 2006-05-16  Jackson Harper  <jackson@ximian.com>
1324
1325         * MdiClient.cs: Don't paint the parent background image if we have
1326         our own background image.
1327
1328 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
1329
1330         * Control.cs:
1331           - PerformLayout: Do not shrink space filled by DockStyle.Fill
1332             controls, all filled controls are supposed to overlap (#78080)
1333           - UpdateZOrder is supposed to update the control's z-order in the
1334             parent's z-order chain. Fixed to behave like that
1335           - BringToFront: Removed obsolete code
1336           - SendToBack: Simplyfied
1337           - SetChildIndex: Trigger layout calculations when Z-order changes
1338             since layout is done by z-order
1339
1340 2006-05-16  Chris Toshok  <toshok@ximian.com>
1341
1342         [ fixes bug #78410 ]
1343         * DataGrid.cs (set_AlternatingBackColor): use
1344         grid_drawing.InvalidateCells instead of Refresh().
1345         (set_BackColor): call grid_drawing.InvalidateCells.
1346         (set_BackgroundColor): use Invalidate instead of Refresh.
1347
1348         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
1349         invalidate the cell area.
1350
1351 2006-05-15  Chris Toshok  <toshok@ximian.com>
1352
1353         [ fixes bug #78011 ]
1354         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
1355         on to DataGridPaintRow.
1356         (DataGridPaintRow): take a clip argument, and only draw the cells
1357         which intersect it.  same with the not_usedarea.
1358
1359         * Theme.cs (DataGridPaintRow) add @clip parameter.
1360
1361         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
1362         XplatUI.ScrollWindow.
1363         (ScrollToRow): same.
1364
1365         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
1366         with last column which was causing a gray swath to appear with the
1367         XplatUI.ScrollWindow code.
1368
1369 2006-05-15  Chris Toshok  <toshok@ximian.com>
1370
1371         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
1372         use XplatUI.ScrollWindow.
1373         (VerticalScrollEvent): use XplatUI.ScrollWindow.
1374
1375 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
1376
1377         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
1378
1379 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
1380
1381         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
1382           file since there are no equivalent X11 cursors
1383
1384 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
1385
1386         * MonthCalendar.cs : DateTimePicker should reflect selected date
1387           on mouse*up*, not mouse*down*. Fixed originally reported part of
1388           bug #76474.
1389
1390 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
1391
1392         * TabControl.cs : When argument index is equal or more than tab
1393           count, just ignore. Fixed bug #78395.
1394
1395 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
1396
1397         * Control.cs: Dispose all child controls when control is diposed (#78394)
1398
1399 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
1400
1401         * ColorDialog.cs: Finally it is possible to select the color with
1402           the text boxes
1403
1404 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
1405
1406         * PrintDialog.cs: Fix typo
1407
1408 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
1409
1410         * PrintDialog.cs: PrintDialog is not resizable
1411         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
1412           color. Made some ToolBar drawing methods protected virtual.
1413
1414 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
1415
1416         * PrintDialog.cs: Implementation of the PrintDialog
1417
1418 2006-05-12  Chris Toshok  <toshok@ximian.com>
1419
1420         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
1421         thumb, instead use MoveThumb.  This has the side effect of making
1422         most of the other thumb moving machinery use MoveThumb as well.
1423         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
1424         need to actually invalidate the rectangle where the new thumb will
1425         go.
1426         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
1427         We force an Update() after, so it's not as fast as it could be,
1428         but at least there's zero flicker and no droppings.
1429         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
1430         (UpdateThumbPos): add another argument (dirty), which says whether
1431         or not to calculate/add dirty regions which we later invalidate.
1432         For cases where we know we're going to use MoveThumb, we pass
1433         false for this.  Otherwise, pass true.
1434
1435 2006-05-12  Jackson Harper  <jackson@ximian.com>
1436
1437         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
1438         the status bar.
1439         
1440 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
1441
1442         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
1443           and GetClipRegion methods and UserClipWontExposeParent property.
1444         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
1445           overriding UserClipWontExposeParent property, setting to false, since
1446           Win32 handles the required expose messages to draw our clipped parent
1447           areas internally
1448         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
1449           PaintEventStart to set the user clip region if set.
1450         * Control.cs: 
1451           - Now internally tracking the Region for the control since we need to
1452             store it if the handle is not yet created and only set it when it
1453             becomes created. Before setting the region forced handle creation
1454           - Added code to draw the parents underneath a user-clipped region
1455         * Hwnd.cs: Added UserClip property
1456
1457 2006-05-12  Chris Toshok  <toshok@ximian.com>
1458
1459         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
1460         (set_Maximum): same.
1461         (set_Minimum): same.
1462         (set_SmallChange): same.
1463         (OnMouseUpSB): remove the call to refresh when releasing the
1464         thumb.  We shouldn't need it.
1465         
1466 2006-05-12  Miguel de Icaza  <miguel@novell.com>
1467
1468         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
1469         AutoSize set to None, we do not need to relayout everything, we
1470         just need to invalidate the current region.
1471
1472         (Draw): Do not draw the entire ClientArea, just redraw the
1473         clip area being passed.
1474
1475         * MdiClient.cs: Make MdiClient constructor with the Form argument
1476         internal. 
1477
1478 2006-05-12  Jackson Harper  <jackson@ximian.com>
1479
1480         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
1481         parents background image,  but strangely not their own.
1482         - (DrawStatusBarPanel): Take into account horizontal alignment
1483         when drawing the strings and icons.
1484
1485 2006-05-12  Mike Kestner  <mkestner@novell.com>
1486
1487         * ListBox.cs: avoid invalidations for focus when the collection is
1488         empty. 
1489
1490 2006-05-12  Chris Toshok  <toshok@ximian.com>
1491
1492         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
1493         invalidate the entire thumb area.  Call InvalidateDirty which
1494         limits the redraw to the thumb itself and surrounding pixels.
1495
1496         * XplatUIX11.cs (ScrollWindow): optimize copying.
1497         
1498 2006-05-12  Chris Toshok  <toshok@ximian.com>
1499
1500         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
1501         Figure out the positioning/layout in a single pass instead of
1502         multiple recursive invocations.  Speeds up the initial display of
1503         the data grid.  Also, make many things private that were
1504         originally public but unused outside this class.
1505
1506 2006-05-11  Jackson Harper  <jackson@ximian.com>
1507
1508         * MdiClient.cs: Improved layout code.
1509
1510 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
1511
1512         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
1513           not SelectedObject.
1514
1515 2006-05-11  Chris Toshok  <toshok@ximian.com>
1516
1517         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
1518         union of that will always be {0,0,width,height}.
1519
1520 2006-05-11  Jackson Harper  <jackson@ximian.com>
1521
1522         * Form.cs: Match MS's DefaultSize for forms (they must have
1523         changed the size in sp2).
1524
1525 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
1526
1527         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
1528
1529 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
1530
1531         * TextControl.cs : Fixed bug #78109. This incorrect position
1532           comparison caused crash on automatic line split.
1533         * TextBoxBase.cs : reduce duplicate code.
1534
1535 2006-05-10  Jackson Harper  <jackson@ximian.com>
1536
1537         * MdiClient.cs: Active form is only sent to the back when using
1538         the Next form functionality, when a form is clicked the current
1539         active shouldn't be sent to the back.
1540         - Layout the mdi windows when the container is first made visible.
1541         * Form.cs: Give the MdiClient a ref to the containing form when we
1542         create it.
1543         
1544 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
1545
1546         * LinkLabel.cs : link_font could be uninitialized, so populate one
1547           before actual use. Fixed bug #78340.
1548
1549 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
1550
1551         * XplatUIX11.cs : clipboard format native value is IntPtr.
1552           Fixed bug #78283.
1553
1554 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
1555
1556         * Control.cs: 
1557           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
1558             which is passed up the parent chain by DefWndProc
1559           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
1560             to DefWndProc (#77956)
1561         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
1562
1563 2006-05-10  Jackson Harper  <jackson@ximian.com>
1564
1565         * MdiClient.cs: We need to remove the controls from the mdi
1566         collection, when we close the window.
1567         * MdiWindowManager.cs: Special handling of closing mdi windows.
1568         * InternalWindowManager.cs: Make the close method virtual so the
1569         mdi window manager can handle it specially.
1570
1571 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
1572
1573         * DataGrid.cs:
1574           - Recalculate grid when the data source has changed
1575           - Matches styles provided by user from all data sources types
1576         * DataGridTableStyle.cs: For columns that provided by the user set the
1577         with the preferred value is there was unassigned.
1578         * CurrencyManager.cs: throw OnItemChanged event
1579
1580 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
1581
1582         * PictureBox.cs: Don't animate until handle is created. Start animation
1583           when handle is created.
1584
1585 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
1586
1587         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
1588           current codebase.
1589         * XEventQueue.cs: We don't need to provide the extra info
1590
1591 2006-05-10  Jackson Harper  <jackson@ximian.com>
1592
1593         * MdiClient.cs: If the mdi clients parent form has a background
1594         image set, we draw that background image for the mdi area's
1595         background.
1596
1597 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
1598
1599         * TextBoxBase.cs: Set IBeam cursor (#78347)
1600
1601 2006-05-10  Mike Kestner  <mkestner@novell.com>
1602
1603         * ToolBar.cs: fix some text padding issues with ButtonSize
1604         calculation. Update the default size to match MS documentation.
1605         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
1606         button size. Fixes #78296.
1607
1608 2006-05-10  Mike Kestner  <mkestner@novell.com>
1609
1610         * ListBox.cs: use is_visible for scrollbar positioning in case the
1611         control isn't on screen yet.  Fix off by one with Right vs Width
1612         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
1613         
1614 2006-05-10  Jackson Harper  <jackson@ximian.com>
1615
1616         * X11Dnd.cs: Drop to a control with another control on top of it.
1617         * ToolBar.cs: Work on a copy of the buttons list, so that it can
1618         be modified in click handlers. TODO: Look for similar problems in
1619         other controls.
1620
1621 2006-05-09  Jackson Harper  <jackson@ximian.com>
1622
1623         * Form.cs: Window managers need the old window state when setting
1624         window state now.
1625         * InternalWindowManager.cs: Allow the base mdi window manager to
1626         handle more of the MDI only stuff (like maximize buttons).
1627         * MdiWindowManager.cs: Fix some snafus in changing the window
1628         state.  Add all the menu functionality, for both popup and
1629         maximized menus.
1630         * MdiClient.cs: When a new form is selected the currently
1631         activated form is sent to the back, this matches MS.
1632         - Implement a new method to activate the next mdi child window.
1633
1634 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
1635
1636         * Control.cs: 
1637           - Added new InternalCapture method to allow controls to prevent
1638             the capture behaviour on the click handlers
1639           - Switched to use InternalCapture
1640         * ComboBox.cs:
1641           - Using InternalCapture to prevent mouse captures from being released
1642             on mouse button release (Fixes #78100)
1643         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
1644           returns Form borders if a caption is present. (Fixes #78310)
1645
1646 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
1647
1648         * TreeNode.cs: Changed serialization .ctor to not require every field
1649           to be present. (#78265)
1650         * OwnerDrawPropertyBag.cs: Added serialization .ctor
1651
1652 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
1653
1654         * MimeIcon.cs: for is faster than foreach for strings.
1655
1656 2006-05-05  Mike Kestner  <mkestner@novell.com>
1657
1658         * CheckedListBox.cs: update check handling code to not use selected.
1659         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
1660         behavior for visual feedback, motion response, shift/ctrl handling,
1661         and properly deal with all 4 selection modes. Updates to bounds
1662         handling logic.  Add scroll wheel support. [Fixes #77842]
1663
1664 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
1665
1666         * ListView.cs:
1667           - Moved adding of Implicit controls into .ctor. That way, subsequent
1668             creation of the controls will not cause them to think they are 
1669             toplevel windows (fixes #78200 header problem)
1670           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
1671           - Switched visibility setting of header control to use internal field
1672             to avoid triggering handle creation
1673           - Now checking if handle is created before causing a refresh when items
1674             are added (This makes us now match handle creation time with MS)
1675         * Splitter.cs: Removed loading of private splitter cursor, switched to
1676           Cursors version now that that is loading the right ones
1677         * Cursors.cs: Load proper splitter cursors from resources
1678         * Cursor.cs: Added second method of loading resource cursors for the 
1679           VS.Net users amongst us
1680
1681 2006-05-05  Mike Kestner  <mkestner@novell.com>
1682
1683         * ListView.cs: give header_control a minimum size based on the
1684         ListView size.
1685
1686 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
1687
1688         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
1689           window seems to do that with metacity, so set that type. (#78120)
1690
1691 2006-05-05  Mike Kestner  <mkestner@novell.com>
1692
1693         * ListViewItem.cs: fix Details mode checkbox layout bug.
1694         * ThemeWin32Classic.cs: draw a ListView column header for unused space
1695         at the end of the header, if it exists. [Fixes for #78200]
1696
1697 2006-05-04  Jackson Harper  <jackson@ximian.com>
1698
1699         * MdiClient.cs: Add a helper property to get the container form.
1700         * MdiWindowManager.cs: We have to make sure to use the menu origin
1701         when drawing the icons and buttons, this fixes maximized window
1702         icons/buttons on win32.
1703         * InternalWindowManager.cs: Reset the restore captions when a
1704         window goes from Maximized to Minimized and vice versa. Move the
1705         DrawMaximizedButtons into the MdiWindowManager source, tool
1706         windows can't be maximized. NOTE: This could use a little
1707         refactoring if time ever permits.
1708         
1709 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
1710
1711         * TextBox.cs: Add MWFCategoryAttributes
1712         * TextBoxBase.cs: Add MWFCategoryAttributes
1713         * Form.cs: Add MWFCategoryAttributes
1714
1715 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
1716
1717         * Control.cs: Add MWFCategoryAttributes
1718         * ScrollableControl.cs: Add MWFCategoryAttributes
1719
1720 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
1721
1722         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
1723           Divider is true. Fix a little glitch in PropertyToolBar
1724           drawing code
1725
1726 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
1727
1728         * Control.cs:
1729           - Dispose: Call base.Dispose, this causes the disposed event
1730             to be fired (and probably other, more important stuff)
1731           - SetVisibleCore: Set is_visible to true after creating the
1732             window so that the window still gets created invisible (if
1733             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
1734             to generate a WM_ACTIVE message
1735         * Form.cs: Call Dispose when we want to destroy the window, instead of
1736           just destroying the handle (Dispose will do that for us)
1737         * XplatUIX11.cs:
1738           - RootWindow also needs a queue, so we can properly process the
1739             property change events from RootWindow (like Activate)
1740           - Generatic synthetic WM_ACTIVE message when the active window is
1741             being destroyed
1742
1743 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
1744
1745         * LinkLabel.cs: Trigger a recalc of our label dimensions when
1746           bounds are changed
1747
1748 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
1749
1750         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
1751           for determining width and height (image might not be assigned if
1752           we're drawing an imagelist)
1753
1754 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
1755
1756         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
1757         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
1758           height from system
1759         * Theme.cs: No longer returns hardcoded menu height, instead calls
1760           new driver method
1761         * Form.cs (OnLoad): Scaling happens before triggering Load events 
1762           on MS (# 78257)
1763
1764 2006-05-01  Mike Kestner  <mkestner@novell.com>
1765
1766         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
1767
1768 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
1769
1770         * TextBoxBase.cs: Removed Fixme
1771         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
1772
1773 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
1774
1775         * XplatUIX11.cs:
1776           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
1777             the rectangle relative to the parent, considering borders. We
1778             don't really want that.
1779           - ScrollWindow: Fixed warning to be more understandable
1780         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
1781           scrollbars and scroll only the visible area
1782         * RichTextBox.cs: Removed debug output
1783
1784 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
1785
1786         * NumericUpDown.cs (Text): Just use base
1787         * UpDownBase.cs: Ensure txtView is created before using it
1788
1789 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
1790
1791         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
1792           casting to IntPtr to avoid 64bit overflow errors
1793
1794 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
1795
1796         * Control.cs:
1797           - AllowDrop: Don't force handle creation.
1798           - CreateHandle: Added call to tell driver if we're allowed to drop
1799
1800 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
1801
1802         * FileDialog.cs: Remember the last directory not only for the
1803           current instance but also for new FileDialog instances.
1804
1805 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
1806         
1807         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
1808           broke sending async messages
1809
1810 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
1811
1812         * XplatUIX11.cs:
1813           - ScrollWindow: Fixed method. We finally generate expose events again
1814             for scrolled areas. This was causing 'garbage' when scrolling
1815             textbox and other controls that used ScrollWindow
1816           - Switched from using the regular queue for paint events to the MS 
1817             model of 'generating' paint events when the queue is empty.
1818             We use the new XQueueEvent.Paint subclass to store which windows
1819             need painting.
1820           - AddExpose now takes the x/y/width/height of the exposed area
1821             and inserts the window into the paint queue if not already there
1822           - InvalidateWholeWindow: Switched to use new AddExpose method
1823           - UpdateMessageQueue: Added which queue to monitor for paint events
1824           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
1825             the unlikely case nothing above handles it. We reset the expose
1826             pending states to get them off the queue.
1827           - GetMessage: Now pulls a paint event if no other events are in the
1828             queue
1829           - Invalidate: Switched to new AddExpose method
1830           - PeekMessage: Updated to understand pending paint events
1831           - UpdateWindow: Fixed logic bug. We were only updating if the window
1832             didn't need updating. Also switched to sending WM_PAINT directly,
1833             like MS does.
1834         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
1835           and random access Remove(). The random access is needed to handle
1836           UpdateWindow() where a WM_PAINT is sent directly without accessing
1837           the queue.
1838         * ScrollBar.cs: Added Update() calls to cause immediate updates to
1839           allow for better feedback when scrolling. Scrollbars are small and
1840           the immediate update should make it 'feel' more responsive without
1841           slowing things down. ScrollBar still needs it's invaliate logic
1842           updated to not always invalidate the whole bar on certain changes.
1843
1844 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1845
1846         * Control.cs:
1847         (BackColor): if the control does not support a transparent background,
1848         return the default backcolor when the parent backcolor is transparent.
1849
1850 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
1851
1852         * Application.cs: Updated to new StartLoop/GetMessage API
1853         * RichTextBox.cs: Provide some output on RTF parsing errors
1854         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
1855           new queue_id argument to GetMessage and PeekMessage to allow faster
1856           handling of per-thread queues in drivers.
1857         * Hwnd.cs: Added Queue tracking and property
1858         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
1859         * XEventQueue.cs: Added thread trackingA
1860         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
1861         * XplatUIX11.cs:
1862           - Implemented new per-thread queue
1863           - GetMessage: Fixed return/break behaviour on several cases. We were
1864             returning stale messages in some cases, instead of just processing
1865             the next message
1866
1867 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
1868
1869         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
1870
1871 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
1872
1873         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
1874           fixed off-by-one comparisons between Width/Height and Right/Bottom.
1875
1876 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
1877
1878         * PropertyGridView.cs: Fix drop down width.
1879
1880 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
1881
1882         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
1883           a mess in DrawToolBar, so I removed one of them.
1884
1885 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
1886
1887         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
1888           needed (clip). Otherwise we get artifacts.
1889
1890 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
1891
1892         * FixedSizeTextBox.cs: Added constructor to allow specifying which
1893           dimension is fixed
1894         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
1895           and switched FixedSizeTextBox to only be fixed vertical (#78116)
1896         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
1897           if it matches the scale base font (avoids unneeded scaling)
1898
1899 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
1900
1901         * X11DesktopColors.cs: One gtk_init_check should be enough
1902
1903 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
1904
1905         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
1906           match MS behaviour
1907
1908 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
1909
1910         * TextBoxBase.cs: 
1911           - Generate OnTextChanged for Backspace even if we're only deleting
1912             the current selection
1913           - When setting the Text property, only select all text if the
1914             control does not have focus when it is being set. Otherwise
1915             just place the cursor at the beginning of the control
1916
1917 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
1918
1919         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
1920           Added a little helper to draw PropertyGrid ToolBar with a different
1921           border and a different BackColor.
1922         * PropertyGrid.cs: Some background parts didn't get painted with the
1923           correct background color. Added a class that helps us to draw the
1924           correct border for PropertyGridView and a class that helps us to
1925           draw ToolBars with a different backcolor
1926         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
1927
1928 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
1929
1930         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
1931         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
1932
1933 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
1934
1935         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
1936           into the palette entries. Also, since we're working on a copy
1937           we needed to copy the palette back onto the bitmap.
1938         * Cursor.cs: Same fix as XplatUIWin32.cs.
1939
1940 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
1941
1942         * ImageListStreamer.cs: Need to read the var (or we're off)
1943
1944 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
1945
1946         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
1947           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
1948           TextBoxBase.cs: Unused var fixes
1949         * AxHost.cs: Small 2.0 fix
1950         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
1951           as it seems that is what at least Metacity expects. This will make
1952           icons show up on 64bit platforms. We still have some 64bit size
1953           issues, though, since the startup app window size still won't match.
1954
1955 2006-04-25  Mike Kestner  <mkestner@novell.com>
1956
1957         * *.cs: cleanup newly reported exception var unused warnings.
1958
1959 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
1960
1961         * ThemeWin32Classic.cs: Button image alignment now matches exactly
1962           ms
1963
1964 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
1965
1966         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
1967           image. The image position is always the same, no matter if the
1968           button is pressed or not.
1969
1970 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
1971
1972         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
1973           selection and set the correct filename for SaveFileDialog.
1974           Patch by Emery Conrad.
1975
1976 2006-04-24  Mike Kestner  <mkestner@novell.com>
1977
1978         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
1979         check for item.X outside the ClientRect instead of item.Y. Fixes
1980         #78151.
1981
1982 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1983
1984         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
1985         trust that value blindly and do some sanity check. Fixes bug #77814.
1986
1987 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1988
1989         * ImageListStreamer.cs: save the mask as a 1bpp image.
1990
1991 2006-04-21  Mike Kestner  <mkestner@novell.com>
1992
1993         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
1994         pass Checked and Indeterminate to the Theme Engine. Improve
1995         encapsulation with ListBox.
1996         * ListBox.cs: Keep a StringFormat instead of calculating it every item
1997         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
1998         nested types.  Move all CheckState functionality to CheckedListBox.
1999         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
2000         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
2001         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
2002         single base list. Fix scrollbar sizing and placement to mirror MS.
2003         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
2004         used.
2005         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
2006         for CheckedListBox by using new DrawItemState info.  Center the
2007         checkboxes on the items. Use new StringFormat property.
2008
2009 2006-04-18  Jackson Harper  <jackson@ximian.com>
2010
2011         * Form.cs: MdiChildren don't do default locations the same way as
2012         regular forms.  This prevents a crash when trying to position the
2013         mdi windows.
2014
2015 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
2016
2017         * PropertyGridTextBox.cs: Formatting, copyright
2018         * PropertiesTab.cs: Formatting
2019         * PropertyGrid.cs: Formatting
2020         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
2021           click toggling of values
2022           
2023 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
2024
2025         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
2026         * Control.cs (.ctor): verify_thread_handle is static, don't reset
2027           every time a control is created
2028         * Application.cs: Removed obsolete EnableRTLMirroring method
2029
2030 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
2031
2032         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
2033         SelectedIndex to -1. Fixes bug #78121.
2034
2035 2006-04-17  Jackson Harper  <jackson@ximian.com>
2036
2037         * Binding.cs: Handle null values for Current and BindingContext.
2038         This occurs when binding is a little delayed.
2039         * CurrencyManager.cs: return null for Current when there are no
2040         items in the list.
2041         - Hookup to the listchanged event on the DataView and update
2042         bindings when the list is changed.  This fixes late binding of
2043         controls.
2044
2045 2006-04-17  Jackson Harper  <jackson@ximian.com>
2046
2047         * X11Dnd.cs:
2048         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
2049         Ringenbach.
2050
2051 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
2052
2053         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
2054           place
2055         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
2056           with the correct ButtonState
2057
2058 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
2059
2060         * XplatUIX11.cs: Improved distinguishing between window types to
2061           tell the WM a type closer to what the app wants (Fixes #78107)
2062
2063 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
2064
2065         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
2066           GrabHandle
2067
2068 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
2069
2070         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
2071           drawing code to reflect the size grip changes
2072
2073 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2074
2075         * ImageListStreamer.cs: fix handling of the mask that follows the main
2076         bitmap when deserializing and serialize it properly. The generated mask
2077         should better be a 1bpp image, but I'll do that later.
2078
2079 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
2080
2081         * FileDialog.cs: Show something in the DirComboBox on *nix if the
2082           path doesn't fit into some of our Current.Places
2083
2084 2006-04-13  Jackson Harper  <jackson@ximian.com>
2085
2086         * ComboBox.cs: Use borders instead of drawing our own decorations,
2087         try to obey correct rules for heights.
2088         * Theme.cs:
2089         * ThemeNice.cs:
2090         * ThemeClearLooks.cs:
2091         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
2092         this is now handled by borders.
2093         - Remove unused DrawListBoxDecorationSize method.
2094         
2095 2006-04-13  Mike Kestner  <mkestner@novell.com>
2096
2097         * MenuAPI.cs: null guarding for the disbled click check fixes crash
2098         reported by Alex.
2099
2100 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
2101
2102         * ThemeWin32Classic.cs: 
2103           - Fixed CPDrawStringDisabled
2104           - Corrected drawing of disabled menu items
2105           - Fixed drawing of disabled radio buttons (bug #78095)
2106           - Draw check in a disabled CheckBox with color ControlDark 
2107
2108 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
2109
2110         * Form.cs: Use the provided width when calculating the menu size;
2111           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
2112           and ClientSize.Width won't be updated yet
2113         * Application.cs: Use Visible instead of Show() to make form visible,
2114           this way we create the handle later and menusize is considered
2115
2116 2006-04-12  Mike Kestner  <mkestner@novell.com>
2117
2118         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
2119         reporting.
2120
2121 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
2122
2123         * TextBox.cs: Implemented context menu
2124
2125 2006-04-12  Mike Kestner  <mkestner@novell.com>
2126
2127         * ListView.cs: implement box selection. fixes #77838.
2128         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
2129
2130 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
2131
2132         * XplatUIX11.cs: Added setting of window type when transient window
2133           is created (metacity would move it otherwise)
2134         * X11Structs.cs: Added WINDOW_TYPE atoms
2135         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
2136           background (the control is Opaque but still wants transparent
2137           backgrounds)
2138
2139 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
2140
2141         * Control.cs: Added OnPaintBackgroundInternal to allow controls
2142           that set Opaque but don't mean it (like all ButtonBase-derived
2143           controls) to still draw their background
2144         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
2145           the background
2146
2147 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
2148
2149         * Control.cs (PaintControlBackground): Set the graphics object
2150           on our PaintEvent to null to prevent it from being disposed
2151           when the PaintEvent gets disposed
2152
2153 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
2154
2155         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
2156         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
2157
2158 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
2159
2160         * Control.cs: 
2161           - Added transparency check to BackColor property. Transparent
2162             backgrounds are only allowed if the control styles permit it
2163           - Added recursive painting of parent control background and
2164             foreground if a control with a transparent backcolor is drawn
2165             (Thanks to Tim Ringenback for providing his 'hack' as a base
2166              for this patch) Fixes #77985 and #78026.
2167           - Added Opaque style check before calling OnPaintBackground, no
2168             need to draw the background if the control is opaque
2169           - Removed ControlAccessibleObject owner variable (inherited from
2170             base, no need to define again)
2171           - Added some documentation links explaining the drawing events
2172             and styles
2173
2174 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
2175
2176         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
2177           that the affected control is the located at the left border of our
2178           parent (Fixes #77936)
2179
2180 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
2181
2182         * TextBoxBase.cs: When rendering disabled or readonly controls,
2183           draw the background with 'Control' instead of 'Window' color as
2184           long as the user hasn't specifically set a color
2185
2186 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
2187
2188         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
2189           since that won't be updated if the user types text (only if it's
2190           programatically set)
2191
2192 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
2193
2194         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
2195           layout changes do to app-triggered resizes will have the proper
2196           display rectangle for layout
2197
2198 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
2199
2200         * ThemeWin32Classic.cs:
2201           - Make use of the SystemBrushes and SystemPens wherever possible
2202           - Corrected some highlight colors
2203           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
2204             drawing
2205         * Theme.cs: Added Empty field to CPColor struct
2206
2207 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
2208
2209         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
2210           is displayed when calculating the display rectangle. Thanks to Mike
2211           for teaching me the err of my ways.
2212
2213 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
2214
2215         * ScrollableControl.cs:
2216           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
2217             (instead of 0,0) and we now return the real width/height instead of
2218             just the clientrectangle, adjusted for padding. The rectangle is
2219             now cached and created by the new CalculateDisplayRectangle method.
2220           - Created new CalculateDisplayRectange method, which basically does
2221             what get_DisplayRectangle() did originally, but now using the 
2222             right edge instead of DisplayRectangle to determine the size of
2223             our scrollbars
2224           - get_Canvas(): Fixed it to properly calculate canvas for 
2225             right/bottom controls which seem to be placed to the right/bottom
2226             of any controls that have a fixed location
2227           - Removed TODO that's taken care of
2228           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
2229             and SetDisplayRectLocation according to new MSDN2 docs
2230           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
2231             event when that is called, this is added for compatibility
2232           - ScrollControlIntoView(): Implemented.
2233           - Switched scrollbars to be implicit, they shouldn't be selectable
2234         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
2235           call it when the active control is set/changed
2236         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
2237         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
2238           implicit_control variable (used for native Win32 message generation)
2239         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
2240           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
2241         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
2242         * XplatUIStructs.cs: Added ScrollBarCommands enum
2243
2244 2006-04-10  Jackson Harper  <jackson@ximian.com>
2245
2246         * ButtonBase.cs:
2247         * CheckedListBox.cs:
2248         * ComboBox.cs:
2249         * DataGrid.cs:
2250         * DataGridView.cs:
2251         * Form.cs:
2252         * GroupBox.cs:
2253         * ListBox.cs:
2254         * PrintPreviewControl.cs:
2255         * ProgressBar.cs:
2256         * PropertyGrid.cs:
2257         * Splitter.cs:
2258         * StatusBar.cs:
2259         * TrackBar.cs:
2260         * UpDownBase.cs: Fixup base event overrides.
2261         
2262 2006-04-06  Mike Kestner  <mkestner@novell.com>
2263
2264         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
2265         all user-initiated value changes to min <= value <= max-thumbsz+1.
2266         (set_Value): check for vert/horiz when calculating new thumb position.
2267         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
2268         like MS does.
2269         (OnMouseMoveSB): refactor the thumb dragging code and refine
2270         invalidation logic to reduce flicker.
2271         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
2272         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
2273         (UpdateThumbPosition): small code readability cleanup
2274
2275 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
2276
2277         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
2278           different
2279
2280 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
2281
2282         * ThemeNice.cs: Use a better graphics effect when a button is pressed
2283
2284 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
2285
2286         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
2287         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
2288           This dramatically reduces the number of Pen.Dispose calls. 
2289           Where possible call ResPool methods only once instead of calling it
2290           over and over again (for example for the same color).
2291
2292 2006-04-06  Mike Kestner  <mkestner@novell.com>
2293
2294         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
2295         Also remove an unused private field on the collection. Fixes #77972.
2296
2297 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
2298
2299         * ThemeNice.cs: Added ToolBar drawing code
2300
2301 2006-04-06  Mike Kestner  <mkestner@novell.com>
2302
2303         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
2304         I'm assuming that means we need to look up the toplevel for the
2305         provided control. Fixes the crash trace in #77911 but exposes another
2306         crash in some strange reflection usage in NDocGui.
2307
2308 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
2309
2310         * ThemeNice.cs: Gave it a little silver touch and added Images
2311           method
2312         * FontDialog.cs: FontDialog is not resizable
2313         * FileDialg.cs: Added SizeGripStyle.Show
2314
2315 2006-04-05  Jackson Harper  <jackson@ximian.com>
2316
2317         * KeyboardLayouts.cs: Remove warning.
2318
2319 2006-04-05  Jackson Harper  <jackson@ximian.com>
2320
2321         * Control.cs: Enable OnPaintInternal so we can use it for drawing
2322         all of our controls instead of Paint +=.
2323         * ListBox.cs:
2324         * ListView.cs:
2325         * MenuAPI.cs:
2326         * MessageBox.cs:
2327         * NotifyIcon.cs:
2328         * ProgressBar.cs:
2329         * ScrollBar.cs:
2330         * Splitter.cs:
2331         * StatusBar.cs:
2332         * TabControl.cs:
2333         * TextBoxBase.cs:
2334         * ToolBar.cs:
2335         * TrackBar.cs:
2336         * UpDownBase.cs:
2337         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
2338         use OnPaintInternal. Remove Width/Height and Visible checks in
2339         paint handler, this is done at a higher level now.
2340         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
2341         * PaintEventArgs.cs: Add a handled flag so controls that don't
2342         want anymore painting after OnPaintInternal can make sure OnPaint
2343         isn't called.
2344
2345 2006-04-05  Mike Kestner  <mkestner@novell.com>
2346
2347         * Form.cs: fix the menu WndProc hacks to respect the native enabled
2348         state of the form, so that we don't process events when Modal dialogs
2349         are up. Fixes #77922.
2350
2351 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
2352
2353         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
2354           checking is done.
2355
2356 2006-04-05  Mike Kestner  <mkestner@novell.com>
2357
2358         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
2359
2360 2006-04-05  Mike Kestner  <mkestner@novell.com>
2361
2362         * ListView.cs (HeaderMouseMove): null guarding for the over column
2363         when setting up the drag_to_index.  Fixes #78015.
2364
2365 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
2366
2367         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
2368           in the taskbar. Transient windows seem to accomplish that.
2369
2370 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
2371
2372         * Form.cs:
2373           - Re-enabled CreateParams.X/Y code for FormStartPosition
2374           - Added code for manual placement when creating the Control
2375           - Incomplete patch to treat MDI forms differently when
2376             setting the ClientSizeCore. (Still need to figure out handling
2377             x/y coords there)
2378         * XplatUIX11.cs:
2379           - When we're explicitly setting the X/Y position of a non-Child
2380             window, let the WM know. Metacity really wants this.
2381
2382 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
2383
2384         * ThemeNice.cs: Added CPDrawButton
2385
2386 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
2387
2388         * ThemeNice.cs: Changed the color for focused buttons and activated
2389           the arrows for small scroll buttons.
2390
2391 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
2392
2393         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
2394           anymore. Changed some method modifiers to protected (virtual)
2395         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
2396           changes
2397         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
2398           Updated drawing of menus, buttons and progressbars; added
2399           CPDrawBorder3D 
2400
2401 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2402
2403         * ImageListStreamer.cs: implemented serialization/deserialization
2404         of the images.
2405
2406 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
2407
2408         * ThemeWin32Classic.cs:
2409           - Removed all the DrawFrameControl stuff; CPDrawButton,
2410             CPDrawCheckBox and CPDrawRadioButton are now handled directly
2411             inside the methods
2412           - Updated and corrected the drawing code of CPDrawButton,
2413             CPDrawCheckBox and CPDrawRadioButton to better match ms
2414           - Updated theme checkbox and radiobutton code to use the CP*
2415             methods
2416
2417 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
2418
2419         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
2420           bug is fixed
2421
2422 2006-03-31  Jackson Harper  <jackson@ximian.com>
2423
2424         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
2425         sometimes.
2426         * UpDownBase.cs: Don't CreateGraphics manually, use a
2427         Refresh. Ideally we would invalidate the correct areas here.
2428
2429 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
2430
2431         * XplatUIX11.cs: 
2432           - We now track the mapping state of windows. If a window (or 
2433             one of it's parents) is not mapped we no longer permit
2434             WM_PAINT messages to be generated since we'd otherwise get 
2435             lots of BadMatch X errors. Jackson did all the work figuring
2436             out the problem.
2437           - Destroying the caret if the window it's contained in is 
2438             destroyed. Can't use regular DestroyCaret method since it
2439             might fall into a drawing function (trying to remove the
2440             caret) and with that generate new BadMatch errors. Again,
2441             Jackson tracked this down.
2442           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
2443             make sure we send the messages to all windows. (The old code
2444             would send the WM_DESTROY to the window, and then all child
2445             windows would be 'gone' because the WM_DESTROY handle lookup
2446             would no longer find the destroyed window)
2447         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
2448         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
2449
2450 2006-03-31  Jackson Harper  <jackson@ximian.com>
2451
2452         * ScrollableControl.cs: Dont recalc if we are not visible.
2453
2454 2006-03-31  Mike Kestner  <mkestner@novell.com>
2455
2456         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
2457         the visibility branch.
2458
2459 2006-03-31  Jackson Harper  <jackson@ximian.com>
2460
2461         * ScrollBar.cs: Cap values when incrementing/decrementing.
2462
2463 2006-03-31  Mike Kestner  <mkestner@novell.com>
2464
2465         * MenuAPI.cs: setup menu.tracker for popup/context menus.
2466         * ToolTip.cs: guard against timer expirations with no active control.
2467         Not sure why it happened.
2468
2469 2006-03-31  Mike Kestner  <mkestner@novell.com>
2470
2471         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
2472         text.
2473         * ToolTip.cs: Position the tooltip based on where the cursor is at
2474         popup time, not at MouseEnter time.  Add a Down state so that we don't
2475         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
2476         positioning offset. Lookup DisplaySize at positioning time, since it
2477         can theoretically change during invocation.
2478         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
2479         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
2480
2481 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
2482
2483         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
2484           Fixes behaviour when the Text property of the box is String.Empty
2485
2486 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
2487
2488         * XplatUIX11.cs: Only send mouseleave for our client windows, not
2489           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
2490           a window)
2491
2492 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
2493
2494         * FileDialog.cs: Visual enhancement for the popup buttons in 
2495           PopupButtonPanel
2496
2497 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
2498
2499         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
2500           code
2501
2502 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
2503
2504         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
2505           highlighted menu items to match ms
2506
2507 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
2508
2509         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
2510
2511 2006-03-30  Mike Kestner  <mkestner@novell.com>
2512
2513         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
2514         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
2515         go active to account for HotLight to Selected transition.
2516         * MenuItem.cs: add internal Selected prop. Fill out the Status
2517         property by calculating it from item info. Add HotLight,
2518         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
2519
2520 2006-03-30  Mike Kestner  <mkestner@novell.com>
2521
2522         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
2523
2524 2006-03-29  Jackson Harper  <jackson@ximian.com>
2525
2526         * Form.cs: Implement TODO.
2527
2528 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
2529
2530         * PrintPreviewDialog.cs: Implemented missing methods and events; still
2531           missing proper dialog setup in the constructor
2532
2533 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
2534
2535         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
2536         * Control.cs:
2537           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
2538           - Fixed ResetBindings and removed TODO
2539           - Added check for cross-thread calls to get_Handle()
2540           - Added Marshaller attribute for set_Font to satisfy class status
2541         * FontDialog.cs: Removed TODOs that seemed implemented
2542         * UpDownBase.cs: Removed unneeded TODO and Fixme
2543         * MessageBox.cs: Implemented support for Default button and removed TODO
2544         * FileDialog.cs: Removed obsolete TODO
2545         * DomainUpDown.cs: Removed obsolete TODO
2546         * ButtonBase.cs: Removed obsolete TODO
2547         * XplatUIWin32.cs: Removed obsolete TODO
2548         * Form.cs:
2549           - Removed obsolete TODO
2550           - Calling CheckAcceptButton when the acceptbutton is changed to allow
2551             internal status updates
2552           - Making sure the active control is selected when the control is created
2553         * CurrencyManager.cs: Removed obsolete TODO
2554
2555 2006-03-29  Mike Kestner  <mkestner@novell.com>
2556
2557         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
2558         of PrintPreviewDialog and RichTextBox.
2559
2560 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
2561
2562         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
2563           DarkDark, Light and LightLight colors for a specific color
2564         * ThemeWin32Classic.cs:
2565           - Use Button drawing code to draw RadioButtons and CheckBoxes with
2566             Appearance = Button 
2567           - Make use of the new ResPool helper CPColor
2568           - Draw ProgressBar and StatusBar with correct 3D borders
2569
2570 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
2571
2572         * ColorDialog.cs: Return selected color. Fixes bug #77940.
2573
2574 2006-03-28  Mike Kestner  <mkestner@novell.com>
2575
2576         * ListView.cs: fix Icon layout to plan for scrollbar widths when
2577         calculating col/row counts.
2578
2579 2006-03-28  Mike Kestner  <mkestner@novell.com>
2580
2581         * ColumnHeader.cs:
2582         * ListView.cs:
2583         * ListViewItem.cs:
2584         * Menu.cs: 
2585         switch to explicit interface method implementation for some methods
2586         corcompare identifies as inconsistent with MS.
2587
2588 2006-03-28  Mike Kestner  <mkestner@novell.com>
2589
2590         * MainMenu.cs: 
2591         * Menu.cs:
2592         add a few missing methods from the class status output.
2593
2594 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
2595
2596         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
2597           correct.
2598
2599 2006-03-28  Mike Kestner  <mkestner@novell.com>
2600
2601         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
2602
2603 2006-03-27  Mike Kestner  <mkestner@novell.com>
2604
2605         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
2606         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
2607
2608 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
2609
2610         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
2611
2612 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
2613
2614         * ThemeWin32Classic.cs:
2615           - GroupBox: Inserted a little gap between the text and the lines
2616             on the right side
2617           - Made the code in CPDrawBorder3D more readable
2618           - Corrected the drawing location of the up and down arrows in 
2619             CPDrawScrollButton
2620
2621 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
2622
2623         * ControlPaint.cs: Corrected line widths in DrawBorder for
2624           ButtonBorderStyle Inset and Outset
2625
2626 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
2627
2628         * ThemeWin32Classic.cs:
2629           - Rewrote the totally broken CPDrawBorder3D method. That was
2630             one of the main problems for the terrific ThemeWin32Classic
2631             look
2632           - Updated and corrected Button drawing
2633           - Correct the dimensions of the SizeGrip to match ms ones
2634           - Removed a small drawing glitch in DrawComboBoxEditDecorations
2635         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
2636           Border3DStyle.Sunken to match ms.
2637
2638 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
2639
2640         * ThemeWin32Classic.cs: First small part of the "de-uglify
2641           ThemeWin32Classic" effort, SizeGrip
2642
2643 2006-03-24  Jackson Harper  <jackson@ximian.com>
2644
2645         * XplatUIX11.cs: Give a max idle time of one second, this matches
2646         MS and forces an Idle event every second when there are no other
2647         events in the queue.
2648
2649 2006-03-24  Mike Kestner  <mkestner@novell.com>
2650
2651         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
2652         * ListView.Item.cs: fix layout issues with null image lists and images
2653         smaller than checkbox size.
2654         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
2655         mode like MS does.  It's weird, but consistent.  ;-)
2656         Fixes #77890.
2657
2658 2006-03-24  Mike Kestner  <mkestner@novell.com>
2659
2660         * ListView.cs: Scroll wheel support for the item control.  Fixes
2661         #77839.
2662
2663 2006-03-23  Jackson Harper  <jackson@ximian.com>
2664
2665         * ScrollableControl.cs: Special case negative sized areas, not
2666         zero.
2667         * MonthCalendar.cs: Save the rect of the clicked date so we can
2668         use it for invalidation.
2669         - Try to cut down on the number of invalidates
2670         - Invalidate the rect the mouse is over and was over when moving
2671         the mouse, so we get the focus box following the cursor.
2672
2673 2006-03-23  Mike Kestner  <mkestner@novell.com>
2674
2675         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
2676         focus rectangle drawing. Fixes #77835.
2677
2678 2006-03-23  Mike Kestner  <mkestner@novell.com>
2679
2680         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
2681         the if and else if and reverting back to the original == check on the
2682         None conditional.
2683
2684 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
2685
2686         * FontDialog.cs: Update the example panel if the selected index of
2687           the fontListBox changes.
2688
2689 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
2690
2691         * FileDialog.cs: Make FileDialog remember which directory it was in
2692           last in the same execution.
2693
2694 2006-03-22  Mike Kestner  <mkestner@novell.com>
2695
2696         * FileDialog.cs: make the DropDownMenu on the toolbar display
2697         RadioChecks since they are mutually exclusive and that's what MS does.
2698
2699 2006-03-22  Mike Kestner  <mkestner@novell.com>
2700
2701         * Theme.cs: add Color param to CPDrawMenuGlyph.
2702         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
2703         checks and radio marks and arrows are visible on highlighted items.
2704         * ControlPaint.cs: update to use new Theme signature.
2705
2706 2006-03-22  Mike Kestner  <mkestner@novell.com>
2707
2708         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
2709         is active. Fixes #77870.
2710
2711 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
2712
2713         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
2714           to be focused/selected after startup
2715
2716 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
2717
2718         * ColorDialog.cs: 
2719           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
2720             CustomColors and ShowHelp properties
2721           - Some internal rewrites to get better results when using the
2722             ColorMatrix
2723
2724 2006-03-22  Mike Kestner  <mkestner@novell.com>
2725
2726         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
2727         HoverSelection.  Fixes #77836.
2728
2729 2006-03-22  Mike Kestner  <mkestner@novell.com>
2730
2731         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
2732         ToggleButtons.  (De)Sensitize the Back button around a stack count of
2733         1, not 0.  Update ButtonSize based on a pixel count of the win32
2734         control.  Adjust the toolbar size/location for new button size.
2735
2736 2006-03-22  Jackson Harper  <jackson@ximian.com>
2737
2738         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
2739         true.
2740         * ScrollBar.cs: When doing increments and decrements we need to
2741         set the Value property so that ValueChanged gets raised. A
2742         possible optimization here would be to make an internal SetValue
2743         that doesn't invalidate immediately.
2744         * ToolTip.cs: Tooltips get added to their container (when
2745         supplied) so they get disposed when the container is disposed.
2746         - Don't create tooltips for String.Empty. This prevents all these
2747         little 2-3 pixel windows from showing up when running nunit-gui
2748         and driving me mad.
2749         * Form.cs: Don't set topmost when setting the owner if the handles
2750         haven't been created yet.  The topmost set will happen when the
2751         handles are created.
2752
2753 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
2754
2755         * XplatUIX11.cs:
2756           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
2757           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
2758             visible (to allow them to recalculate their sizes)
2759
2760 2006-03-21  Mike Kestner  <mkestner@novell.com>
2761
2762         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
2763         methods. Removed a ton of redundant code.  Still not really happy with
2764         the border rendering, but I think that's mainly because of the
2765         ControlDarkDark being black instead of a dark grey. Depending on how 
2766         close we want to be, we might want to revisit those color choices.
2767         Among the new features added during the refactor were DropDownArrow
2768         pressed rendering, Disabled image rendering.  Proper flat appearance
2769         boundary rendering.  Removed the Divider and Wrapping dividers since I
2770         can't figure out any combination of themes and conditions to make the
2771         MS control draw a horizontal line on a toolbar despite what the
2772         Divider property docs indicate.
2773         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
2774         conditions and incorrect layout.  Updated to coding standard.
2775         * ToolBarButton.cs: refactored layout and positioning code from
2776         ToolBar to here.  Invalidate wherever possible instead of forcing
2777         redraws of the whole toolbar. 
2778         (Known remaining issues: explicit ButtonSize smaller than provided
2779         images.)
2780
2781 2006-03-21  Mike Kestner  <mkestner@novell.com>
2782
2783         * ContextMenu.cs (Show): use the position parameter instead of just
2784         showing at the MousePosition.
2785
2786 2006-03-21  Jackson Harper  <jackson@ximian.com>
2787
2788         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
2789         control handle this.
2790         * TreeNodeCollection.cs: If we are clearing the root node we need
2791         to reset top_node so calcs can still happen.
2792         * ThemeWin32Classic.cs: This is a Flags so we need to check
2793         properly.
2794         
2795 2006-03-21  Jackson Harper  <jackson@ximian.com>
2796
2797         * DataGrid.cs: Create columns when the binding context has been
2798         changed.
2799         * X11Structs.cs: Keysyms are uints.
2800         - Add size to fix build.
2801
2802 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
2803
2804         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
2805           XplatUIOSX.cs: 
2806           - Added ResetMouseHover method to allow controls to retrigger
2807             hovering if they need it more than once
2808           - Implemented MouseHoverTime and MouseHoverSize properties
2809         * Timer.cs: Start() must reset the interval
2810         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
2811           properties
2812
2813 2006-03-21  Jackson Harper  <jackson@ximian.com>
2814
2815         * X11Keyboard.cs: improved layout detection. Move the nonchar
2816         tables into this file.
2817         * KeyboardLayouts.cs: Move the tables into resource files.
2818
2819 2006-03-21  Mike Kestner  <mkestner@novell.com>
2820
2821         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
2822
2823 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
2824
2825         * Mime.cs: Various speed optimizations. Looking up mime types
2826           is now 2 times faster than before
2827
2828 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
2829
2830         * CreateParams.cs: Added internal menu field
2831         * Control.cs: 
2832           - Switched call order for UpdateBounds; now we always call
2833             the one that also takes ClientSize, and we're calculating the 
2834             client size via driver method in the others. The previous
2835             method of tracking client size by difference wasn't working
2836             for forms where even the starting client size wouldn't match
2837             the overall form size (due to borders) (Part of fix for #77729)
2838           - CreateParams(): Do not use parent.Handle unless the handle is
2839             already created. Causes havoc with Nexxia and throws off our
2840             creation of controls
2841         * XplatUIX11.cs:
2842           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
2843           - Switched handling of ConfigureNotify over to new PerformNCCalc 
2844             method (consolidates code)
2845           - Changed RequestNCRecalc to use new PerformNCCalc method
2846           - Added calls to RequestNCRecalc when menus and borders are changed
2847             to allow app to set NC size. (Part of fix for #77729) This matches
2848             when MS send a WM_NCRECALC on Win32 windows.
2849           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
2850             (Part of fix for #77729). This matches what MS does, they also
2851             send that message when the form is made visible.
2852           - XException.GetMessage: Improved usability of X errors by including
2853             a translation of the window into Hwnd and Control class
2854           - Improved debug info for window creation, reparenting and destruction
2855           - Created helper method WindowIsMapped() [Currently not used]
2856         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
2857         * Form.cs:
2858           - CreateParams: Now setting our menu on the new internal menu field
2859           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
2860             avoid calculating the same property twice
2861         * Hwnd.cs:
2862           - Improved usability of ToString() for debugging purposes
2863           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
2864             determine the height of the menu, instead of just the font. This
2865             required to also create a graphics context and to keep a bmp 
2866             around (for performance reasons)
2867
2868 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
2869
2870         * MenuAPI.cs: Added OnMouseUp method
2871         * Form.cs:
2872           - Now remembering the requested client size, avoids size errors
2873           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
2874             instead of base if the menu is active. This is required due to
2875             control now capturing and releasing on down/up and it would
2876             prematurely release our menu capture
2877
2878 2006-03-17  Jackson Harper  <jackson@ximian.com>
2879
2880         * KeyboardLayouts.cs: Add the czech layouts.
2881
2882 2006-03-16  Jackson Harper  <jackson@ximian.com>
2883
2884         * Control.cs: Use the viewport space when sizing not the controls
2885         client size, so things like ScrollableControl that effect the
2886         viewport size (when scrollbars are added) are computed correctly.
2887         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
2888         of ManagerEntrys.
2889         - Handle creating BindingManagers for null data sources.
2890         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
2891         source, otherwise when rows are added they are added to the 'fake'
2892         datasource and we will crash when trying to set the position in
2893         those rows.
2894         - Use Implicit scrollbars on the datagrid so they arent
2895         selectable.
2896         
2897 2006-03-16  Jackson Harper  <jackson@ximian.com>
2898
2899         * Binding.cs:
2900         * InternalWindowManager.cs:
2901         * MdiWindowManager.cs:
2902         * X11Keyboard.cs: I really want Mike to love me again (fix
2903         compiler warnings).
2904
2905 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
2906
2907         * DataGrid.cs:
2908           - OnMouseDown: Switch to editing mode when clicking on the cell
2909                          even if we're clicking on the cell that's currently 
2910                          selected
2911           - ProcessGridKey: Left/Right now wrap like MS.Net does
2912           - ProcessGridKey: Tab now knows to add a new row when tab is
2913                             pressed in the cell of the last column of the 
2914                             last row
2915           - ProcessGridKey: Enter now adds another row  if pressed in the last
2916                             row and selectes the new row, same column cell
2917           - ProcessGridKey: Home/End navigate columns, not rows, like 
2918                             originally implemented
2919           - Broke ProcessKeyPreview code out into an extra Internal method
2920             so it can be called from the edit code
2921         * DataGridTextBox.cs (ProcessKeyMessage):
2922           - Switched to accept Tab keypresses
2923           - Added F2 handling to allow jumping to the end of the edited cell
2924           - Added logic to allow moving caret left/right inside edited cell
2925             and making the edited cell jump when the caret hits cell borders
2926           - Tab and Enter are now passed to the datagrid after being handled
2927         * TextBoxBase.cs:
2928           - Removed capture code now that Control handles it
2929           - set_SelectionStart now ensures caret is visible
2930
2931 2006-03-16  Jackson Harper  <jackson@ximian.com>
2932
2933         * TrackBar.cs: Debackwards the increment/decrement for handling
2934         mouse clicks on the bar with vertical trackbars.
2935         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
2936         bottom to match MS.
2937
2938 2006-03-16  Mike Kestner  <mkestner@novell.com>
2939
2940         * ListView.cs: make shift/ctrl keyboard and mouse selection 
2941         consistent with the MS control. Fix a bug in
2942         SelectedListViewItemCollection.Clear that was pissing me off for the
2943         better part of a day because the collection was being altered
2944         underneath us as we walked the list.
2945
2946 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
2947
2948         * Control.cs: Not sure how we could miss this so long, but it seems
2949           that MS.Net has Capture set all the way from before calling 
2950           OnMouseDown through sending the mouse events until after
2951           OnMouseUp. This will fix DataGrid's selection being set to end
2952           at the location of the MouseUp.
2953
2954 2006-03-15  Jackson Harper  <jackson@ximian.com>
2955
2956         * BindingContext.cs: Check the binding after its added so that it
2957           can initialize the binding managers and hookup to events.
2958         * Binding.cs: Data members seem to sometimes include rows/cols in
2959           the format Row.Column we now take this into account.
2960           - Hookup to the position changed event so we can update the
2961           control when the position has changed in the data set.
2962         * CurrencyManager.cs: Take into account the row/col naming
2963           convention when creating dataset tables.
2964         * BindingContext.cs: Using a newer better way of storing
2965           datasource/datamember pairs.  Hopefully this better matches MS for
2966           looking up binding managers.
2967
2968
2969 2006-03-15  Jackson Harper  <jackson@ximian.com>
2970
2971         * BindingContext.cs: The currency manager needs the data member
2972         name, if the member is a data set we use the name to find the
2973         correct table.
2974         * CurrencyManager.cs: When creating the list prefer an IList over
2975         an IListSource.
2976         - Attempt to create a DataTable from a DataSet (TODO: might need
2977         some better error checking here, although MS doesn't seem to have much)
2978         - If we have a DataTable create a view and use it as our list.
2979
2980 2006-03-15  Mike Kestner  <mkestner@novell.com>
2981
2982         * ListView.cs: keep a matrix of the icon mode layout to facilitate
2983         keyboard navigation. Support Up/Down/Left/Right selection correctly
2984         for all 4 View modes.
2985         * ListViewItem.cs: add internal row/col fields for icon layouts.
2986
2987 2006-03-15  Jackson Harper  <jackson@ximian.com>
2988
2989         * TabControl.cs: Redraw the tabs when we resize so their newly
2990         calculated sizes are drawn on screen.
2991         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
2992         composite characters.
2993         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
2994         - filter events so that composite characters can be created
2995         patches by peter
2996         * X11Structs.cs: Add XIMProperties enum.
2997
2998 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
2999
3000         * Control.cs (BringToFront, SendToBack): Don't use window or handle
3001           unless it's created
3002
3003 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
3004
3005         * Control.cs (PerformLayout): We don't need to consider visiblity
3006           for anchoring, only for docking. This fixes 'whacky' alignment
3007           in listbox and other controls that use implicit scrollbars after
3008           the previous PerformLayout patch
3009         * ListBox.cs: Switched to use implicit scrollbars
3010           
3011 2006-03-14  Mike Kestner  <mkestner@novell.com>
3012
3013         * ToolBar.cs: 
3014         * VScrollBar.cs:
3015         - chain up the "new event" overrides to base and use
3016         OnEvent to raise them.  Part of fix for bug #76509.
3017
3018 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
3019
3020         * FileDialog.cs: Do not select an item in the parent directory
3021           on backspace
3022
3023 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
3024
3025         * Control.cs (PerformLayout): It would seem that we considered
3026           invisible windows for our layout. Not quite the right thing
3027           to do. Now we don't any longer, thereby fixing bug #76889.
3028
3029 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
3030
3031         * Control.cs (CanFocus): I goofed. A control can have focus 
3032           even though it's not selectable. Made it match MS docs.
3033
3034 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
3035
3036         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
3037           center by default (fixes #76895)
3038         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
3039           all uses of Border3DSides.All with the explicit ORd together
3040           Left|Right|Top|Bottom because I assume that nobody was aware 
3041           that All also implies a center fill. Most places I checked had
3042           a fill right above.
3043         * ProgressBarStyle.cs: Added
3044
3045 2006-03-13  Mike Kestner  <mkestner@novell.com>
3046
3047         * ListView.cs: fix breakage in drag shadow header positioning 
3048         from Peter's csc compilation fix.
3049
3050 2006-03-13  Mike Kestner  <mkestner@novell.com>
3051
3052         * ListView.cs: fix NRE produced by backspacing twice in a focused
3053         FileDialog.
3054
3055 2006-03-13  Mike Kestner  <mkestner@novell.com>
3056
3057         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
3058
3059 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
3060
3061         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
3062           be changed
3063         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
3064           the allowed size before making programmatic size changes
3065
3066 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
3067
3068         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
3069           set, metacity is broken and will still use the emty sizes in 
3070           the struct. (Fix for #77089)
3071
3072 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
3073
3074         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
3075           WindowExStyles and marked both enums as Flags
3076         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
3077           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
3078           to match WindowStyles split
3079         * XplatUIX11.cs:
3080           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
3081           - Updated to match WindowStyles split
3082         * XplatUIWin32.cs:
3083           - Fixed FosterParent creation, was using ExStyle on the Style field
3084             (This should help with Popup focus issues)
3085           - Updated to match WindowStyles split
3086
3087 2006-03-13  Jackson Harper  <jackson@ximian.com>
3088
3089         * MdiWindowManager.cs: Use the system menu height. Fixes some
3090         strange sizing issues.
3091
3092 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
3093
3094         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
3095         * TextBoxBase.cs:
3096           - Scroll to caret after inserting text (#77672)
3097           - Make scroll range one pixel higher, fixes off-by-one error (and
3098             makes underlines visible on the last line)
3099
3100 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
3101
3102         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
3103           the keyboard state from being stuck with keys in 'pressed' state when
3104           focus is switched away via keyboard
3105         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
3106           reset the keyboard if no X11 KeyUp events are expected to come
3107         * X11Structs.cs: Switched type of Visible to bool to match driver
3108
3109 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
3110
3111         * TextControl.cs:
3112           - Switched caret to be just 1 pixel wide, matches MS and looks less
3113             clunky
3114           - Moved caret display 1 pixel down from the top of the control
3115             to improve view
3116           - InsertCharAtCharet: Update the selection start if moving the caret
3117             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
3118           - No longer always creating the caret when the caret methods are
3119             called. Only the actual ShowCaret/HideCaret will do that now
3120           - Only setting caret visible if the owner control has focus
3121           - UpdateView: Added invalidation-shortcut logic for center and right 
3122             aligned text. Previously we'd update all according to the left
3123             logic which caused drawing errors. Also fixed height of invalidated
3124             areas, now properly invalidating the whole area (was off-by-one)
3125           - owner_HandleCreated: Always generate the document when the
3126             handle is created; this ensures that 
3127         * TextBoxBase.cs:
3128           - Fixed situation where caret would disappear under the right
3129             window border, also improved scrolling behaviour on left-
3130             aligned textboxes
3131           - Fixed right-aligned textboxes to have a border to the
3132             right instead of the caret being under the right border
3133         * XplatUIX11.cs:
3134           - Switched from 'nested' to simple visible/not visible tracking 
3135             for caret (part of fix for #77671)
3136           - No longer passing through translated FocusIn/FocusOut messages
3137             since we were notifying too often and the wrong windows. Instead
3138             we just notify our focussed window of receiving or loosing focus
3139         * XplatUIWin32.cs: Switched from 'nested' show/hide 
3140           counting for caret to simple visible yes/no behaviour (part of 
3141           fix for #77671)
3142
3143 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
3144
3145         * Mime.cs: Remove debug code...
3146
3147 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
3148
3149         * MimeGenerated.cs: Removed
3150         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
3151           and subclasses) from /usr/(local/)share/mime and
3152           $HOME/.local/share/mime.
3153
3154 2006-03-10  Jackson Harper  <jackson@ximian.com>
3155
3156         * MdiWindowManager.cs: Recalc the NC area when a window is
3157         maximized/restored so that the menu area is drawn on forms that
3158         don't have a menu.
3159
3160 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
3161
3162         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
3163           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
3164           us to force a WM_NCCALCRESIZE message being sent. This is needed
3165           for MDI maximizing.
3166
3167 2006-03-10  Jackson Harper  <jackson@ximian.com>
3168
3169         * Form.cs: We need to use the ActiveMenu when calculating menu
3170         height.
3171         - Fix nullref when the window manager hasn't been created yet.
3172         * Control.cs: Fix nullref when we try to bring a control to the
3173         front that has no parent.
3174         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
3175         height.
3176         - Add a dummy item to the maximized menu so it always has the
3177         correct height. Otherwise when there are no menus we don't get our
3178         icon and buttons.
3179         
3180
3181 2006-03-10  Jackson Harper  <jackson@ximian.com>
3182
3183         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
3184         stuff.
3185         * Form.cs: Make the window_state internal so the window managers
3186         can track it.
3187         - When an MDI child is maximized let its window manager create the
3188         main menu (so it can add its icon).
3189         - Notify the window managers of state changes
3190         - Let the window manager paint its buttons and handle button
3191         clicks on the menu when it is maximized.
3192         * InternalWindowManager.cs: Move the prev_bounds into the mdi
3193         window manager, since tool windows don't use it, only mdi windows.
3194         - Tell the main form that we don't want it to handle NCPAINT
3195         itself to avoid extra painting.
3196         - Handle clicks on a maximized windows menu.
3197         - Handle window state changes
3198         - Handle minimize/maximize clicks correctly by setting the window state.
3199         * MdiWindowManager.cs: Add an icon menu that (the menu you get
3200         when clicking on the forms icon).
3201         - New method to create a forms maximized menu. This is its normal
3202         menu + an icon.
3203         - Handle window state changes.
3204         - Handle sizing of maximized windows.  Maximized windows are just
3205         drawn bigger then the parent visible area. All controls are still
3206         there, they are just outside the visible area (this matches windows).
3207         * MdiClient.cs: No scrollbars when a child window is maximized.
3208         - Let the children windows figure out how big they should be when
3209         sizing maximized windows.
3210         - Implement a version of ArrangeIconicWindows somewhat similar to
3211         Windows version.  There are some little differences, but I don't
3212         think any app will rely on the layout of minimized mdi windows.
3213
3214 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
3215
3216         * Padding.cs: Several fixes to allow compiling with csc 2.0
3217
3218 2006-03-09  Jackson Harper  <jackson@ximian.com>
3219
3220         * Menu.cs:
3221         * MenuItem.cs: Cheap hack so we can add items to the list without
3222         the events being raised.  This allows adding mdi items during
3223         drawing. TODO: Should probably find a better time to add the items.
3224
3225 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
3226
3227         * ThemeWin32Classic.cs:
3228           - CheckBox_DrawText: Added logic to not wrap if not enough space
3229             is available (Fix for bug #77727)
3230           - RadioButton_DrawText: Added logic not to wrap if not enough
3231             space is available (Fix for bug #77727). Also removed some
3232             duplicate code, DrawString always drawing the regular text
3233             before hitting the if statement.
3234
3235 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
3236
3237         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
3238
3239 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
3240
3241         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
3242         * ContainerControl.cs: Partial implementation of some 2.0 scaling
3243           methods. Moved the new 2.0 properties into alphabetical order with
3244           other properties and added MonoTODO tags
3245
3246 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
3247
3248         * AutoScaleMode.cs: Added. Fix build.
3249
3250 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
3251
3252         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
3253           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
3254           and was requiring premature handle creation for calls from above
3255         * Form.cs, Control.cs: Removed handle arguments from calls to
3256           CalculateClientRect()
3257
3258 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
3259
3260         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
3261           drag_column.column_rect is MarshalByRef and can't be used that way
3262
3263 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
3264
3265         * AxHost.cs: Added deserialization constructor for 
3266           AxHost+State (fixes 77743)
3267
3268 2006-03-09  Mike Kestner  <mkestner@novell.com>
3269
3270         * ListView.cs: 
3271         - Added column drag reordering for details view.
3272         - fixed behavior when mouse is dragged off column and
3273         AllowColumnReorder is false.
3274         * ColumnHeader.cs: clone the format too in Clone.
3275         * Theme.cs: add DrawListViewHeaderDragDetails method.
3276         * ThemeWin32Classic.cs:
3277         - impl new method for drawing drag column shadows and targets.
3278         - support column offset for details mode in DrawListViewItem.
3279
3280 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
3281
3282         * TextControl.cs: Reset the char_count when the document is cleared
3283           (Fixes bug reported on mono-winforms mailing list)
3284
3285 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
3286
3287         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
3288           of calling base we simply process the key ourselves, since both
3289           DefWindowProc and the handled method would set m.Result. 
3290           (Fixes #77732)
3291
3292 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
3293
3294         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
3295           method also moves the window; instead implemented a copy of
3296           Control.ScaleCore (Part of fix for #77456)
3297         * TextBoxBase.cs: 
3298           - Created new CreateGraphicsInternal method to allow providing
3299             a graphics context when no handle is created without triggering
3300             handle creation. (Part of fix for #77456)
3301           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
3302         * TextControl.cs: 
3303           - Switched Constructor to require TextBoxBase instead of Control (to
3304             allow uncast access to CreateGraphicsInternal)
3305           - Safeguarded use of owner.Handle property. No longer accessing it
3306             unless the handle is already created.
3307           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
3308           - Now triggering a recalc when owning control becomes visible
3309         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
3310           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
3311           premature handle creation (Part of fix for #77456)
3312         * Control.cs:
3313           - We now only destroy our double-buffering buffers when the
3314             control is resized or disposed, but not when visibility
3315             changes. (The code even re-created them twice every time)
3316           - Now requiring a redraw of the buffer on visibility changes
3317             (fixes bug 77654 part 2)
3318           - Not passing OnParentVisibleChanged up unless the control
3319             is visible
3320           - CanFocus: Fixed to match MS documentation
3321           - Focus: Fixed to return actual focus state and to check if
3322             setting focus is legal before setting it
3323
3324 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
3325
3326         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
3327           when to draw focus rectangle by looking at parent focus and
3328           selected state instead. This fixes TabPages on Linux sometimes
3329           having none or multiple focus rectangles.
3330         * XplatUIX11.cs (SetFocus): 
3331           - Don't set the focus if the same window already has focus
3332           - Use SendMessage instead of PostMessage (like it's Win32
3333             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
3334             to match MS behaviour
3335         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
3336           are not selectable.
3337
3338 2006-03-07  Jackson Harper  <jackson@ximian.com>
3339
3340         * PictureBox.cs: Revert line I accidently committed last week.
3341
3342 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
3343
3344         * Control.cs: 
3345           - Added new IsRecreating and ParentIsRecreating properties to
3346             allow testing if RecreateHandle has been called on ourselves
3347             or one of our parents
3348           - WndProc(WM_DESTROY): If our control handle is being recreated
3349             we immediately need to create the handle when receiving the
3350             destroy, that way our child windows find a valid parent handle
3351             when they themselves are being recreated upon WM_DESTROY receipt
3352             (fix for bug #77654 part 1)
3353         * XplatUIX11.cs:
3354           - DestroyWindow: WM_DESTROY must be sent to our own window before
3355             notifying any child windows. MS documents that child windows
3356             are still valid when WM_DESTROY is received. (Control now relies on
3357             this behaviour)
3358           - Added some fine-grain debug options
3359
3360 2006-03-06  Jackson Harper  <jackson@ximian.com>
3361
3362         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
3363         box and base calculations off this.
3364         * MdiChildContext.cs:
3365         * MdiWindowManager.cs: Don't need to ensure scrollbars here
3366         anymore.
3367         
3368 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
3369
3370         * Splitter.cs: In situations where the affected control is added
3371           to the parent's control list after the splitter, we would not
3372           populate affected. Now we try populating it on mousedown, if
3373           it's not already set, and force it to be re-set whenever our
3374           parent changes.
3375
3376 2006-03-03  Matt Hargett  <matt@use.net>
3377
3378         * Control.cs: implement Control.Padding
3379         * Padding.cs: -Padding.All returns -1 when constructing with the
3380         implicit default ctor
3381         -Padding.ToString() matches MS.NET
3382         * ContainerControl.cs: implement
3383         ContainerControl.AutoScaleDimensions
3384         * ListControl.cs: implement ListControl.FormattingEnabled
3385         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
3386         * ButtonBase.cs:
3387         * TabPage.cs: Implement UseVisualStyleBackColor.
3388         * PictureBox.cs: Implement PictureBox.InitialImage.
3389
3390 2006-03-03  Mike Kestner  <mkestner@novell.com>
3391
3392         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
3393         event declarations to proxy to base event.
3394         * ListViewItem.cs: update to use ItemControl.
3395         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
3396         * ThemeWin32Classic.cs: update to new ListView theme API and fix
3397         column header label rendering for 0 width columns.
3398
3399 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
3400
3401         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
3402           that causes the control to be created. Fixes #77476.
3403
3404 2006-03-02  Jackson Harper  <jackson@ximian.com>
3405
3406         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
3407         expose_pending.
3408
3409 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
3410
3411         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
3412           passed in for the EventArgs (fixes #77690)
3413
3414 2006-03-01  Jackson Harper  <jackson@ximian.com>
3415
3416         * ScrollBar.cs: Refresh afterbeing resized.
3417
3418 2006-02-28  Mike Kestner  <mkestner@novell.com>
3419
3420         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
3421         Clean up a tracker compile warning.
3422         * MenuItem.cs: add internal PerformPopup method.
3423         [Fixes #77457]
3424
3425 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
3426
3427         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
3428           implicit expose) when the text is set to null
3429
3430 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
3431
3432         * RichTextBox.cs (FlushText): When newline is true, we always
3433           need to split the line, even if no text is on it and we may
3434           never eat newlines. (Fixes #77669)
3435
3436 2006-02-28  Mike Kestner  <mkestner@novell.com>
3437
3438         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
3439         and set Selected instead.
3440         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
3441         collections.
3442
3443 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
3444
3445         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
3446
3447 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
3448
3449         * FontDialog.cs:
3450           - Got rid of the panel. All controls are now directly added to
3451             the dialog form
3452           - It is now possible to set a font with the Font property
3453           - MinSize and MaxSize property do now what they should
3454           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
3455           - Searching and selecting a font with the font textbox works now,
3456             the same applies to the style and size textbox
3457           - Draw the correct 3D border in the example panel
3458           - Fixed a little mem leak (unused fonts didn't get disposed)
3459           - Many other internal updates/rewrites...
3460           - Fix typo
3461
3462 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
3463
3464         * TextControl.cs: 
3465           - InsertRTFFromStream: Added 'number of characters inserted' argument
3466           - set_SelectedRTF: Now using the number of characters to calculate
3467             the new location for the selection and cursor (x/y cannot be used
3468             due to potentially already wrapped text)
3469
3470 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
3471
3472         * TextControl.cs: Added property and implemented means to allow 
3473           disabling recalculation of a document (can be used to speed up
3474           multiple inserts and is needed to make RTF inserts predictable, see
3475           bug #77659)
3476         * RichTextBox.cs: Using the new NoRecalc property of Document to
3477           keep x/y insert locations predictable. Also makes it faster inserting
3478           large chunks of RTF
3479
3480 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
3481
3482         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
3483           it's easier for a child control to handle the other messages without
3484           having to duplicate the special functionality
3485         * TextBoxBase.cs
3486           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
3487             code to handle processing the key ourselves, in order to get 
3488             access to the result of KeyEventArgs.Handled. We now only call 
3489             ProcessKey if they key hasn't been handled already. Fixes #77526.
3490           - set_Text: If null or empty string is given, just clear the 
3491             document. Fixes part of #77526
3492
3493 2006-02-27  Jackson Harper  <jackson@ximian.com>
3494
3495         * SizeGrip.cs: Paint the background color before painting the grip
3496         so things look right.
3497         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
3498
3499 2006-02-27  Mike Kestner  <mkestner@novell.com>
3500
3501         * ListView.cs:
3502           - Restructure layout and invalidation model to remove a ton of
3503           flicker from the control and speed up performance in general.
3504           - Add manual column resize, flickers like crazy, but I already have
3505           some ideas on how I'll fix that. (#76822)
3506           - Merge the three Icon-based views into a single layout method.
3507           - Move item selection interaction logic from the item since 
3508           interaction with the collections is more appropriate to the view.
3509           - Deselection on non-item clicks.
3510         * ListViewItem.cs:
3511           - Encapsulate most of the layout. Add some internal props to trigger
3512           layout.  Move to a model where Items invalidate themselves instead
3513           of just invalidating the whole control every time something changes.
3514           - Invalidate on Text/Caption changes.
3515           - switch to an offset based layout model to avoid having to absolute
3516           position every element on item moves.
3517           - correct checkbox layout to conform to MS layout.
3518         * ThemeWin32Classic.cs:
3519           - refactor some column header drawing code.
3520           - fix string justification for column headers (#76821)
3521           - make SmallIcon labels top justified for compat with MS impl.
3522         * ThemeClearlooks.cs:
3523           - adjust to new ListViewItem internal checkbox bounds api.
3524
3525 2006-02-27  Jackson Harper  <jackson@ximian.com>
3526
3527         * Control.cs:  Change where implicit controls fall in the zorder.
3528         They are now on top of all children.
3529         - Synced AddImplicit code with Add
3530         - Removed unused enumerator.
3531         * SizeGrip.cs: Remove the TODO as its been TODONE.
3532
3533 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
3534
3535         * TextControl.cs(Insert): Combine the last lines unless the insertion
3536           string ends with \n\n, otherwise we leave one line too many (Fixes
3537           something I noticed with the testapp for #77526; the bug itself was
3538           already fixed in the previous checkin)
3539
3540 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
3541
3542         * RichTextBox.cs:
3543           - SelectionColor and SelectionFont methods no longer set absolute
3544             styles. Instead, the keep font or color respectively (This 
3545             resolves a long-standing FIXME in the code)
3546           - When flushing RTF text, the insert code now considers text trailing
3547             behind the insertion point (Fixes the bug where when replacing
3548             the selected text via SelectedRTF the remainder of the line behind 
3549             the selection would stay on the first insertion line)
3550         * TextBoxBase.cs:
3551           - AppendText now updates the selection points after inserting text
3552           - AppendText now ensures that the last tag (sometimes 0-length) of
3553             the document is used for the style information (Fixes part of 
3554             bug #77220)
3555         * TextControl.cs:
3556           - Created new FontDefiniton class to allow describing partial style
3557             changes
3558           - StreamLine() now takes a lines argument, to allow it to decide
3559             whether an encountered zero-length tag is the last in the document
3560             (which must be kept to not loose the font/color contained in it,
3561             for later appends)
3562           - Created Combine() and Split() methods for Marker structs, to 
3563             support marker updates due to reformatted documents (soft line
3564             wraps)
3565           - Implemented Document.CaretTag setter
3566           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
3567             of the last line (Not the cause, but also exposed by bug #77220)
3568           - Added LineTag argument to InsertString method, to allow callers
3569             to force a certain tag to be used (required to force use of the
3570             trailing zero-length tag of a document)
3571           - Now updating markers in Combine(), to avoid stale tag markers
3572           - Added some method descriptions to aid maintenance
3573           - Implemented new FormatText concept, allowing additive/subtractive
3574             formatting by only specifying the components that are to be 
3575             changed. This was needed for resolving the RTB.SelectedColor/
3576             RTB.SelectedFont fixmes
3577           - Added Break() support method to allow breaking up linetags (used
3578             for partial formatting)
3579           - Added GenerateTextFormat() method. It is used for partial 
3580             formatting and allows to generate a full font/color from given
3581             attributes and an existing tag.
3582
3583 2006-02-26  Jackson Harper  <jackson@ximian.com>
3584
3585         * XplatUIX11.cs:  Use the correct caption height.
3586         - Translate hittest coordinates to screen coords to match MS.
3587         * XplatUIWin32.cs: When we create MDI windows we need to reset
3588         some of the style flags, so we get a nice blank window, and can
3589         draw all the decorations ourselves.
3590         - Set a clipping rectangle on the non client paint event, the
3591         window manager drawing code needs one.
3592         * Form.cs: The window manager needs to know when the window state
3593         has been updated.
3594         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
3595         don't need to factor in border and title sizes in these
3596         methods. TODO: Remove the args and fix the call points.
3597         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
3598         properly.
3599         - Let the driver set the cursors.
3600         - Improve active window handling
3601         - Correct sizes for title bars and buttons.
3602         - Match MS drawing better
3603         * MdiWindowManager.cs: We don't need to handle border style
3604         updates specially anymore.
3605         - Check for scrollbars when windows are done moving
3606         - Handle Active properly.
3607         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
3608         correctly. I am spewing the exception though, so we don't hide the
3609         bugs.
3610         
3611 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
3612
3613         * DataGridViewRowPostPaintEventArgs.cs,
3614           DataGridViewCellPaintingEventArgs.cs,
3615           DataGridViewRowCollection.cs,
3616           DataGridViewRowPrePaintEventArgs.cs,
3617           DataGridViewCell.cs: Clear a few warnings and implement a few
3618           exceptions that should be thrown.
3619
3620 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
3621
3622         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
3623           'inheriting' our parent's (non-default) cursor. (Part of
3624            the fix for #77479)
3625
3626 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
3627
3628         * XplatUIX11.cs: Fixed cast to make csc happy
3629
3630 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
3631
3632         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
3633           it's for the client area (part of fix for #77479 and needed
3634           for MDI window cursor handling)
3635         * XplatUIX11.cs
3636           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
3637             the appropriate default cursors and also passing the message
3638             up the parent chain 
3639           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
3640             for non-client areas
3641
3642 2006-02-15  Jackson Harper  <jackson@ximian.com>
3643
3644         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
3645         is a real MDI window
3646
3647 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
3648
3649         * X11DesktopColors.cs: Instead of checking the desktop session
3650           string for "KDE" check if it starts with "KDE"
3651
3652 2006-02-10  Jackson Harper  <jackson@ximian.com>
3653
3654         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
3655         systems).
3656
3657 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
3658
3659         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
3660           errors
3661         * ColorDialog.cs:
3662           - Got rid of the panel. All controls are now directly added to
3663             the dialog form
3664           - Changed to mono coding style
3665
3666 2006-02-10  Jackson Harper  <jackson@ximian.com>
3667
3668         * InternalWindowManager.cs: We don't need the set visibility to
3669         false hack anymore now that peter has written beautiful shutdown
3670         code.
3671
3672 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
3673
3674         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
3675           where already explicitly destroyed
3676
3677 2006-02-10  Jackson Harper  <jackson@ximian.com>
3678
3679         * MdiClient.cs: Handle the case where windows are too high or to
3680         the left and we need scrollbars.
3681
3682 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
3683
3684         * MimeIcon.cs: Added some icons
3685         * FileDialog.cs:
3686           - Fixed bug #77477
3687           - Got rid of the panel. All controls are now directly added to
3688             the dialog form
3689           - Changed to mono coding style
3690           - On Linux "My Computer" and "My Network" will now show some
3691             more usefull information. A new class, MasterMount, gathers
3692             this information from /proc/mount. Updated MWFFileView to make
3693             use of this information
3694           - Fixed a bug that caused FileDialog to crash when
3695             ".recently_used" file had a zero size
3696           - FilterIndex does now what it should
3697           - Some Refactoring
3698         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
3699             FileDialog changes
3700
3701 2006-02-09  Jackson Harper  <jackson@ximian.com>
3702
3703         * ComboBox.cs: Don't touch if null.
3704
3705 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
3706
3707         * Cursor.cs: 64bit safeness fix
3708         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
3709
3710 2006-02-09  Jackson Harper  <jackson@ximian.com>
3711
3712         * Form.cs: If a form is made into an MDI form update the styles so
3713         all the props can get set correctly.
3714         - Kill the mdi_container when we dont need it anymore.
3715         * InternalWindowManager.cs: Add missing NOT
3716
3717 2006-02-08  Jackson Harper  <jackson@ximian.com>
3718
3719         * InternalWindowManager.cs: Respek clipping when drawing MDi
3720         decorations.
3721
3722 2006-02-08  Jackson Harper  <jackson@ximian.com>
3723
3724         * Hwnd.cs: Add bits to track non client expose events.
3725         * XplatUIX11.cs: Track non client expose events on the hwnd. This
3726         gives us a proper invalid rect and will allow for some nice
3727         optimizations with NC client drawing
3728         - MDI windows are children windows, so move their style handling
3729         into the child window block.
3730         * InternalWindowManager.cs: Remove a state reset that was
3731         getting invoked at the wrong time. Fixes managed windows getting
3732         into a 'stuck' captured state.
3733
3734 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
3735
3736         * TextControl.cs (Document.ctor): Now initializing 
3737           selection_anchor. Fixes #77493
3738
3739 2006-02-07  Jackson Harper  <jackson@ximian.com>
3740
3741         * TrackBar.cs: The increment/decrements were backwards.
3742
3743 2006-02-07  Mike Kestner  <mkestner@novell.com>
3744
3745         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
3746         to the instance itself.
3747
3748 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
3749
3750         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
3751           on ulongs and pointers, the size differs between 32bit and 64bit
3752           systems. 
3753
3754 2006-02-07  Mike Kestner  <mkestner@novell.com>
3755
3756         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
3757         for 64 bit platforms to work around a metacity bug. 
3758
3759 2006-02-07  Jackson Harper  <jackson@ximian.com>
3760
3761         * TrackBar.cs: Process the input keys we need, and hookup to
3762         KeyDown instead of using WndProc, so we get key messages.
3763
3764 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
3765
3766         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
3767           machine we're on. 
3768         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
3769           we need to translate the XdndVersion atoms array before sending it
3770
3771 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
3772
3773         * XplatUIX11.cs: 
3774           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
3775             number of bits for the property, not the number of bytes. The
3776             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
3777             but would not crash since it specified 8 bits instead of 4 bits)
3778           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
3779             defined as XID -> long in the C headers)
3780           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
3781             references since those are now IntPtr to begin with
3782           - Switched all Atom.XXX 'int' casts to IntPtr casts
3783           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
3784           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
3785           - Added XChangeActivePointerGrab DllImport (for X11DnD)
3786         * X11Structs.cs:
3787           - Changed 'int' type for Atoms in XEvent structures to IntPtr
3788           - Changed atom in HoverStruct to be IntPtr
3789         * X11DnD.cs:
3790           - Removed local DllImports, switched code to use those from XplatUIX11
3791           - Removed/fixed casts related to the switch of Atom to be a IntPtr
3792
3793 2006-02-06  Mike Kestner  <mkestner@novell.com>
3794
3795         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
3796         method signatures in the import region.  There may still be some
3797         lingering struct marshaling issues, as I didn't drill down into those.
3798         Yet.
3799
3800 2006-02-06  Jackson Harper  <jackson@ximian.com>
3801
3802         * ComboBox.cs: Dont manually set the top_item, this is computed
3803         when the scrollbar position is set.
3804
3805 2006-02-06  Mike Kestner  <mkestner@novell.com>
3806
3807         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
3808         startup crashes on amd64.  There's other fixes needed.  All pinvoke
3809         usage of Atom needs to be mapped to IntPtr for example.  And there are
3810         likely other int/long issues to be addressed.
3811
3812 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
3813
3814         * FileDialog.cs: One more...
3815
3816 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
3817
3818         * FileDialog.cs: Next try
3819
3820 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
3821
3822         * FileDialog.cs: First part of fix for #77464
3823
3824 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
3825
3826         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
3827           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
3828           AcceptButton border drawing.
3829
3830 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
3831
3832         * Form.cs: Moved positioning of form after auto scaling is applied,
3833           otherwise it would possibly use wrong form size.
3834
3835 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
3836
3837         * Control.cs (RecreateHandle): No need to re-create any child
3838           controls, the child windows will get destroyed automatically by
3839           the windowing system or driver, and re-created when the handle
3840           is being accessed the first time. Fixes #77456
3841         * Form.cs: No longer setting the form to closing if the handle is 
3842           being recreated. This seems like the right thing to do, don't
3843           have a bug or testcase for this, though.
3844
3845 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
3846
3847         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
3848           controls to avoid unwanted side effects
3849
3850 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
3851
3852         * Control.cs: 
3853           - ScaleCore needs to scale the bounds, not the ClientSize of the 
3854             control. Fixes #77416.
3855           - DefaultSize is 0,0 for control
3856         * TextBoxBase.cs: 
3857           - DefaultSize is 100, 20
3858           - SetBoundsCore: Now enforcing the height, no matter if the provided
3859             height is more or less than the preferred one, as long as AutoSize
3860             is on
3861         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
3862
3863 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
3864
3865         * Control.cs:
3866           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
3867             call unless both performLayout is true *and* we have a pending
3868             layout change
3869           - ResumeLayout: MS does not completely nest Suspend and Resume,
3870             they bottom out at 0, fixed our code to match that.
3871           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
3872             SetBoundsCore, we were updating even when we shouldn't. This fixes
3873             swf-anchors mis-anchoring when resizing the app fast and lots.
3874           - UpdateDistances: Now only setting the left and top distance if 
3875             we have a parent and are not suspended, this is based on
3876             a suggestion by Don Edvaldson in bug #77355.
3877           - OnVisibleChanged: Fixed logic when to create the control. We may
3878             not create the control if we have no parent or if it's not visible;
3879             switched to using Visible property instead of is_visible field 
3880             since the property also considers parent states. This fixes a bug
3881             when starting Paint.Net
3882
3883 2006-02-02  Jackson Harper  <jackson@ximian.com>
3884
3885         * Form.cs: If the forms handle hasn't been created yet don't call
3886         into xplatui to make it top most, just set the topmost flag on the
3887         form in CreateParams
3888         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
3889
3890 2006-02-01  Jackson Harper  <jackson@ximian.com>
3891
3892         * ScrollableControl.cs: Refactored the Recalculate method a
3893         little, this wasn't handling all the variants of bottom and right
3894         bars needed to be added and added/removed based on their
3895         counterparts being added/removed (which changes the drawable
3896         size). Also we special case client widths and heights of 0 and
3897         don't add the scrollbar for those.
3898
3899 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
3900
3901         * XplatUIX11.cs: 
3902           - Added method to get AbsoluteGeometry(); currently unused, but might
3903             be used in the future, if we try again to figure out toplevel
3904             coordinates with some more crappy window managers
3905           - Added FrameExtents() method to retrieve the WM set decoration size
3906           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
3907             to deal with at least KDE, FVWM and metacity (Fixes #77092)
3908         * Hwnd.cs: 
3909           - Added whacky_wm tracking var for metacity
3910           - Added logic to have default menu height if the actual menu height
3911             has not yet been calculated (part of fix for #77426)
3912         * Form.cs: Keep track whether client size has been set and re-set 
3913           it if a menu is added/removed afterwards (Fixes #77426)
3914
3915 2006-01-31  Jackson Harper  <jackson@ximian.com>
3916
3917         * Control.cs: When a new Site is set on the component attempt to
3918         pull the AmbientProperties from it.
3919
3920 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
3921
3922         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
3923           in the background of the owning form. Fixes #77332
3924
3925 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
3926
3927         * MimeIcon.cs: Fix for #77409
3928
3929 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
3930
3931         * XplatUIX11GTK.cs: Initial import
3932
3933 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
3934
3935         * FixedSizeTextBox: fixes class signature
3936
3937 2006-01-30  Jackson Harper  <jackson@ximian.com>
3938
3939         * FixedSizeTextBox.cs: New internal class that represents a
3940         textBox that will not be scaled.
3941         * TreeView.cs:
3942         * ComboBox.cs:
3943         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
3944         standard TextBox.
3945                 
3946 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
3947
3948         * XplatUIX11.cs: Retrieve default screen number instead of
3949           assuming 0. Attempted fix for #77318
3950
3951 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
3952
3953         * XplatUIWin32.cs: 
3954           - GetWindowPos: When a window is parented by FosterParent, use 
3955             the desktop instead of FosterParent as the base to get coordinates
3956           - CreateWindow: Don't make FosterParent the parent window for Popups
3957             if we don't want a taskbar entry, Popups automatically don't get one
3958         * Hwnd.cs: Need to call remove to actually remove the key from the
3959           hash table
3960
3961 2006-01-30  Mike Kestner  <mkestner@novell.com>
3962
3963         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
3964
3965 2006-01-30  Jackson Harper  <jackson@ximian.com>
3966
3967         * TreeView.cs:
3968         * TreeNode.cs: Raise events no matter how the treenode is
3969         checked. Patch by Don Edvalson.
3970
3971 2006-01-30  Jackson Harper  <jackson@ximian.com>
3972
3973         * TreeNode.cs: Signature fix.
3974
3975 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
3976
3977         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
3978
3979 2006-01-20  Mike Kestner  <mkestner@novell.com>
3980
3981         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
3982         event forwarding when menus are active.
3983         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
3984         Most of the patch is pdb's with a little rework.
3985
3986 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
3987
3988         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
3989           Removed GetMenuDC and ReleaseMenuDC methods; replaced
3990           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
3991         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
3992         * InternalWindowManager.cs: Added use of PaintEventStart/End to
3993           handling of WM_NCPAINT message, now passing the PaintEventArgs to
3994           the PaintWindowDecorations method
3995         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
3996         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
3997         * MenuAPI.cs: Made tracker window invisible
3998         * XplatUIWin32.cs:
3999           - Removed GetMenuDC and ReleaseMenuDC methods
4000           - Implemented the client=false path for PaintEventStart and
4001             PaintEventEnd
4002
4003 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
4004
4005         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
4006         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
4007           styles
4008         * Form.cs: 
4009           - MaximizeBox, MinimizeBox: Recreate the handle when setting
4010             the style
4011           - CreateParams: Reworked the styles to match MS look'n'feel,
4012             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
4013             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
4014
4015 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
4016
4017         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
4018           window is not mapped, since otherwise every form that's being 
4019           created is considered minimized, which is wrong.
4020         * Form.cs: Catching the exception and returning our internal value
4021           instead
4022
4023 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
4024
4025         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
4026           SetWindowMinMax() to have means to tell the driver about the minimum,
4027           maximum and maximized state window sizes. (Part of the fix for #76485)
4028         * Form.cs:
4029           - Implemented tracking of minimum and maximum window size, now calling
4030             new SetWindowMinMax() driver method to tell the driver (Part of the
4031             fix for #76485)
4032           - Finished handling of WM_GETMINMAXINFO method, now setting all values
4033             (Completes fix for #76485)
4034           - Calling new SetWindowMinMax driver method when the handle for a 
4035             form is created, to make sure the driver knows about it even if
4036             the values have been set before the window was created
4037           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
4038             to avoid messing up our anchoring calculations (partial fix
4039             for #77355)
4040         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
4041         * XplatUIX11.cs:
4042           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
4043           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
4044             (and presumably other freedesktop.org compliant WMs). Left the
4045             assumption unmapped=minimized, needed for SetVisible to work.
4046           - Now setting the window state when creating windows
4047           - Fixed SetVisible to consider/set the window state when mapping
4048             a Form. We cannot set the state before it's mapped, and we cannot
4049             use Form.WindowState once it's mapped (since it would ask the
4050             driver and get 'normal'. Therefore, we grab the state before
4051             mapping, map, and then set state.
4052           - Implmemented SetWindowMinMax method; Metacity does not seem to
4053             honor the ZoomHints, though.
4054         * XplatUIWin32.cs:
4055           - Removed MINMAXINFO (moved to XplatUIStructs)
4056           - Added SetWindowMinMax stub (on Win32 the only way to set that
4057             information is in response to the WM_GETMINMAXINFO message, which
4058             is handled in Form.cs)
4059           - Added logic to SetVisible to set the proper window state when a 
4060             form is made visible (fixes #75720)
4061
4062 2006-01-26  Jackson Harper  <jackson@ximian.com>
4063
4064         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
4065         same way we handle them with Invoke.
4066
4067 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
4068
4069         * Form.cs:
4070           - Added tracking of window state so CreateParams can return
4071             the appropriate style
4072           - Moved setting of WS_CAPTION style in CreateParams to allow
4073             styles without caption
4074         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
4075           control if the TextBox property is accessed. Fixes #77345
4076         * Control.cs:
4077           - get_Created: now uses is_disposed and is_created to determine
4078             return value (suggested by Jackson)
4079           - CreateHandle: No longer exits if the handle is being recreated
4080           - RecreateHandle: If the handle is not yet created call the 
4081             appropriate method to create either control or handle. If the
4082             control is already created CreateHandle will simply exit instead
4083             of just creating the handle
4084         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
4085           now SendMessage WM_DESTROY directly to the control when DestroyWindow
4086           is called.
4087         * XplatUIX11.cs: 
4088           - When DestroyWindow is called, instead of waiting for the 
4089             DestroyNotification from X11, we directly post it to the WndProc
4090             and immediately dispose the hwnd object.
4091             Same applies to DestroyChildWindows, and this obsoletes the
4092             expose_pending tracking. Contrary to Win32 behaviour we destroy our
4093             child windows before our own, to avoid X11 errors.
4094           - Removed the direct sending of WM_PAINT on UpdateWindow
4095         * XplatUIWin32.cs:
4096           - Reworked DoEvents and GetMessage to allow access to internal queue
4097             even when trying non-blocking access to the queue.  Fixes #77335. 
4098             Based on a patch suggestion by Don Edvalson. The new private
4099             GetMessage can now also be used as a backend for a PeekMessage
4100             frontend version.
4101         * XplatUI.cs: Improved debug output for CreateWindow
4102
4103 2006-01-25  Jackson Harper  <jackson@ximian.com>
4104
4105         * Help.cs: Allow param to be null. Patch by Don Edvalson.
4106
4107 2006-01-24  Jackson Harper  <jackson@ximian.com>
4108
4109         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
4110         when we have a MaxDropItems lower then the selected index.
4111
4112 2006-01-24  Jackson Harper  <jackson@ximian.com>
4113
4114         * Control.cs: Don't allow selection of non visible controls, allow
4115         selection of controls without parents.
4116
4117 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
4118
4119         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
4120         * DataGridDrawingLogic.cs: Add editing row only when is necessary
4121
4122 2006-01-23  Jackson Harper  <jackson@ximian.com>
4123
4124         * UpDownBase.cs: Make the textbox handle all the selection and
4125         tabbing. This fixes tabing to updown controls.
4126
4127 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
4128
4129         * TextBoxBase.cs: fixes exception thown the object was null
4130
4131 2006-01-23  Jackson Harper  <jackson@ximian.com>
4132
4133         * ButtonBase.cs: Just use the base CreateParams. They set
4134         visibility and enabled correctly.
4135         * ComboBox.cs:
4136         * TrackBar.cs:
4137         * MonthCalendar.cs: Lets let the base set as much of the
4138         createparams as possible so we don't have duplicate code all over
4139         the place.
4140
4141 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
4142
4143         * ThemeGtk.cs: Added TrackBar and some experimental code to
4144           get double buffering back
4145
4146 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
4147
4148         * DataGrid.cs: Allows row number set internally higher than the last
4149         when creating a new row. Restores the editing functionality.
4150
4151 2006-01-20  Mike Kestner  <mkestner@novell.com>
4152
4153         * MimeIcon.cs: delay Image creation until the icons are accessed
4154         instead of creating 190 scaled images on GnomeHandler startup.
4155
4156 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
4157
4158         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
4159           first call base before processing the event. Fixes #77279
4160
4161 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
4162
4163         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
4164           that the stride for the GDI bitmap would match the stride of
4165           a DIB or a Cursor.
4166
4167 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
4168
4169         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
4170
4171 2006-01-19  Jackson Harper  <jackson@ximian.com>
4172
4173         * ComboBox.cs: Hookup the text controls keydown event so we get
4174         those when the text control has the focus.
4175
4176 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
4177
4178         * Label.cs: Now using the base events instead of defining new ones;
4179           this allows us to just call the base properties without having to
4180           duplicate all base property logic 
4181
4182 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
4183
4184         * Label.cs: A label by default is not a tabstop (Fixes one of our
4185           failing nunit tests)
4186
4187 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
4188
4189         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
4190         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
4191
4192 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
4193
4194         * Cursor.cs: Reimplemented creating cursor bitmaps without using
4195           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
4196           This fixes #77218
4197         * XplatUIWin32.cs: 
4198           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
4199             constructor creates images that can't be saved. Part of the fix
4200             for #76103
4201           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
4202           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
4203             bug fix for handling window state in forms properly)
4204
4205 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
4206
4207         * ThemeGtk.cs: Simplify ScrollBar drawing
4208
4209 2006-01-18  Jackson Harper  <jackson@ximian.com>
4210
4211         * Splitter.cs: Set the default dock style for the splitter control
4212         in the constructor.
4213
4214 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
4215
4216         * ThemeGtk.cs: Corrected StateType and ShadowType for
4217           gtk_paint_box
4218
4219 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
4220
4221         * Control.cs: Make use of Theme.DoubleBufferingSupported
4222         * ThemeGtk.cs:
4223           - Added drawing for flat style buttons
4224           - Added ScrollBar drawing
4225
4226 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
4227
4228         * ThemeClearlooks.cs: Removed some unneeded code.
4229         * ThemeGtk.cs: First part of ThemeGtk enhancements.
4230
4231 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
4232
4233         * LinkLabel.cs: We need to update the hover drawing when
4234           leaving the control as well.
4235
4236 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
4237
4238         * DataGrid.cs: Clicking on non empty areas in the columns
4239            area was giving an exception
4240
4241 2006-01-17  Jackson Harper  <jackson@ximian.com>
4242
4243         * ThemeWin32Classic.cs:
4244         * ListView.cs: Do not draw/clip the headers when the header style
4245         is None.
4246
4247 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
4248
4249         * DataGrid.cs: Fixes 77260
4250         
4251 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
4252
4253         * DataGrid.cs: Clicking on a column on a empty grid was giving
4254           an exception
4255
4256 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
4257
4258         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
4259           or any keypress will crash the grid.
4260
4261 2006-01-17  Mike Kestner  <mkestner@novell.com>
4262
4263         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
4264         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
4265         invisible/previously-visible items.
4266         [Fixes #76909]
4267
4268 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
4269
4270         * ThemeClearlooks.cs:
4271         - Added CL_Draw_Button method; now other theme controls that are 
4272           not derived from button or do not have a button can draw buttons
4273           too
4274         - Updated ComboBox drawing
4275         - Beautified RadioButton drawing
4276         - Corrected drawing of bottom and left tabs
4277         - Beautified DateTimePicker and MonthCalendar
4278         - Added CPDrawButton and CPDrawRadioButton
4279
4280 2006-01-16  Jackson Harper  <jackson@ximian.com>
4281
4282         * ComboBox.cs: Set the initial value of the scrollbar to the
4283         current index. Reduce the numbers of refreshs and IndexOfs called.
4284
4285 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
4286
4287         * FileDialog.cs: When the file listview is focused hitting the
4288           backspace key moves the fileview to the parent directory
4289
4290 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
4291
4292         * Form.cs: 
4293           - Added RecreateHandle call when changing taskbar visibility to 
4294             trigger reparenting in Win32 driver (Fixes #75719)
4295           - If a window has minimize or maximize buttons, it cannot have
4296             a help button
4297         * XplatUIWin32.cs:
4298           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
4299             the toplevel form with FosterParent (A toolwindow not on the
4300             taskbar) (Fixes #75719)
4301           - Made FosterParent a toolwindow
4302
4303 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
4304
4305         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
4306
4307 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
4308
4309         * ToolTip.cs: If SetToolTip is called from a control and the mouse
4310           is currently over that control, make sure that tooltip_window.Text
4311           gets updated
4312
4313 2006-01-13  Mike Kestner  <mkestner@novell.com>
4314
4315         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
4316
4317 2006-01-13  Jackson Harper  <jackson@ximian.com>
4318
4319         * TreeView.cs: On MS GetNodeAt never actually factors in the X
4320         value passed.  Also redraw the selected node when we recieve
4321         focus, so tabbing between trees works correctly.
4322
4323 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
4324
4325         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
4326           ~/.gconf/%gconf-tree.xml, so use
4327           .gconf/desktop/gnome/interface/%gconf.xml
4328
4329 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
4330
4331         * TextControl.cs: Draw text in gray if control is disabled
4332
4333 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
4334
4335         * TreeView.cs: Draw the focus rectangle outside the highlight, to
4336           make sure it's always visible. Fixes #76680.
4337
4338 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
4339
4340         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
4341
4342 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
4343
4344         * PageSetupDialog.cs: Added.
4345         * PrintDialog.cs: Attributes.
4346         * PrintPreviewControl.cs: Updates.
4347         * PrintPreviewDialog.cs: Updates.
4348         
4349 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
4350
4351         * Control.cs: Undid my selection check fix, since it's not needed
4352         * TextBoxBase.cs:
4353           - Now considering the presence of hscroll/vscroll when sizing
4354             vscroll/hscroll respectively. Fixed bug #77077
4355           - Added Left/Up/Down/Right to IsInputKey list to prevent
4356             ContainerControl from stealing them. This fixes what I broke
4357             with my last checkin.
4358
4359 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
4360
4361         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
4362           I finally understand how the property can be set without a setter :-)
4363
4364 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
4365
4366         * Application.cs:
4367           - Switched RunLoop to use static Message.Create to create a 
4368             Message object
4369           - Added PreProcessMessage call in runloop for keyboard events; this
4370             is part of the fix for #77219, I overlooked this originally in the
4371             MSDN doc for PreProcessMessage
4372         * Control.cs:
4373           - Removed call to PreProcessMessage from handling of keyboard 
4374             messages; it's supposed to be done in the message pump
4375           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
4376             per MSDN documentation.
4377           - IsInputChar: All chars are input chars by default; removed the 
4378             parent calling chain, MS does not document that
4379           - PreProcessMessage: If IsInputChar is true, we want to return false
4380             to allow dispatching of the message
4381           - When selecting the next control, now also check that we're not
4382             selecting ourselves again and therefore return a false positive.
4383         * TextBoxBase.cs:
4384           - Tried to match return values for IsInputKey and ProcessDialogKey
4385             to what MS returns; moved processing of our special keys outside
4386             ProcessDialogKey since MS does not seem to return true on those.
4387           - Moved code that previously was in ProcessDialogKey into new private
4388             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
4389           - Reworked handling of WM_CHAR to not have to duplicate code from
4390             Control.cs anymore, instead we simply call down to base.
4391            
4392 2006-01-12  Jackson Harper  <jackson@ximian.com>
4393
4394         * ComboBox.cs: We always need to refresh the text area when
4395         EndUpdate is called. Fixes the combobox in the file dialog.
4396         * Control.cs: Don't create the creator_thread until the controls
4397         handle is created.  Also in InvokeRequired we check if the
4398         creator_thread is null. This gives the effect of InvokeRequired
4399         returning true if the controls handle is not created yet, and
4400         matches MS.
4401
4402 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
4403
4404         * XplatUI.cs:
4405           - Added StartLoop() driver method. This is used to allow drivers to
4406             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
4407             loop for a particular thread
4408           - Added EndLoop() driver method. This is called once the message
4409             pump for the thread is shut down
4410           - Added SupportsTransparency method to allow the driver to indicate
4411             opacity support for windows
4412         * Form.cs:
4413           - Removed TODO attribute, completed AllowTransparency property
4414           - Added documented logic to Opacity
4415         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
4416           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
4417           versions of CompatibleTextRendering
4418         * X11Structs.cs: Added opacity atom to our atom enumeration
4419         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
4420           of a form might be set before it's reparented by the WM, and we need
4421           the opacity value without calling up to Form)
4422         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
4423           SupportsTransparency() driver methods
4424         * Application.cs: Now calling StartLoop and EndLoop driver methods
4425         * XplatUIX11.cs:
4426           - Added opacity atom registration
4427           - Added StartLoop()/EndLoop() methods. They're empty right now but
4428             will need to get implemented when we switch to a per-thread queue
4429           - Implemented SupportsTransparency() method
4430           - Implemented SetWindowTransparency() method
4431           - Added support for setting the opacity value when a window is
4432             reparented (since the opacity needs to be set on the WM frame)
4433         * XplatUIOSX.cs, XplatUIWin32.cs:
4434           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
4435
4436 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
4437
4438         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
4439
4440 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
4441
4442         * FileDialog.cs: Added ToolTip for MWFFileView
4443         * MimeIcon.cs: Rewrote GnomeHandler.
4444           - Get currently used gnome icon theme from
4445             ($HOME)/.gconf/%gconf-tree.xml
4446           - Make use of inherited icon themes
4447           - Support SVG icon themes like Tango via librsvg
4448
4449 2006-01-12  Miguel de Icaza  <miguel@novell.com>
4450
4451         Revert's Jackson's revert which broke 2.0 builds.   Fix both
4452         builds. 
4453         
4454         * Application.cs: Move the use_compatible_text_rendering outside
4455         the NET_2_0 define.  If we ever need to use the
4456         use_compatible_text_rendering on the individual controls they will
4457         access the variable from the common shared code paths.
4458
4459 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
4460
4461         * XplatUI.cs:
4462           - Added more granular debug options
4463           - Added method to print both window text and id
4464           - Switched debug output to use new Window() debug method
4465           - Added IsEnabled() driver method
4466           - Added EnableWindow() driver method
4467         * Form.cs:
4468           - Removed end_modal; no longer needed, new loop handles termination
4469             via 'closing' variable
4470           - If form is modal, setting DialogResult will now initiate loop
4471             termination via 'closing' variable
4472           - Added support for is_enabled/WS_DISABLED to CreateParams
4473           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
4474             does all the work
4475           - Removed code that's now in RunLoop from ShowDialog()
4476           - Added various documented sanity checks to ShowDialog()
4477           - Added handling of WM_DESTROY message; we set 'closing' on getting
4478             the message to indicate the message pump to terminate
4479           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
4480             send by the Application.ExitThread method. (We send the message
4481             to destroy the window after all other events have been
4482             processed through the queue, instead of destroying the handle 
4483             directly)
4484           - Moved code from Close() method to WM_CLOSE handler; added logic
4485             to only send close-related events if the form is not displayed
4486             modal
4487         * Splitter.cs (..ctor): Fixed typo in resource name
4488         * Control.cs:
4489           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
4490             brush now
4491           - set_Cursor: Now only setting calling into XplatUI if the handle for
4492             the control is already created; this avoids implict handle creation
4493             or crashes if it's not created
4494           - set_Enabled: Now setting the enabled state via the new driver method
4495             instead of just tracking it
4496           - CreateParams: Added logic to set WS_DISABLED based on enabled state
4497           - CreateControl: Reordered event firing and method calls to more
4498             closely fire events in the order MS does. Now setting the
4499             enabled state in the driver when creating the control.
4500           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
4501             match MS order
4502         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
4503           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
4504         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
4505         * Hwnd.cs:
4506           - Added tracking of window enabled state (get_Enabled/set_Enabled)
4507           - Added EnabledHwnd property to easily allow a driver to find the
4508             handle of the first enabled window in the parent chain (this is
4509             used by drivers to pass up input events of disabled windows)
4510         * XplatUIDriver.cs: Added IsEnabled() method
4511         * Application.cs:
4512           - Removed crude and obsolete exiting tracking variable
4513           - Removed internal ModalRun(); replaced by RunLoop()
4514           - Implemented private CloseForms() method to allow closing all 
4515             windows owned by a particular (or all) threads
4516           - Exit() now properly closes all windows without forcing the message
4517             pump to quit
4518           - Removed obsolete InternalExit() method
4519           - Changed Run() methods to use new RunLoop() message pump
4520           - Implemented new RunLoop() method for both modal and non-modal forms
4521         * CommonDialog.cs:
4522           - get_CreateParams: Added setting of WS_DISABLED
4523           - Simplified ShowDialog(); now all the work is done in RunLoop(),
4524             invoked via Form.ShowDialog()
4525         * NativeWindow.cs: We don't remove the window from the collection when
4526           the handle is destroyed; there might still be messages for it in the
4527           queue (mainly the resulting WM_DESTROY); instead it will be removed
4528           when Control calls InvalidateHandle in the WM_DESTROY handler
4529         * XplatUIX11.cs:
4530           - CreateWindow: Added logic to handle the WS_DISABLED window style
4531           - EnableWindow: Implemented based on Hwnd.Enabled
4532           - GetMessage: Reset PostQuitState so the method can be called again
4533           - Implemented support for disabled windows (passing messages to the
4534             first enabled parent) in handling all input messages
4535           - Added optimizations for handling Expose events
4536           - Implemeted new driver method IsEnabled()
4537           - Now always resetting paint pending tracking vars when we start paint
4538           - Re-implemented UpdateWindow via just sending a WM_PAINT message
4539         * XplatUIOSX.cs: Added IsEnabled method stub
4540         * XplatUIWin32.cs: Implemented new IsEnabled() method
4541
4542 2006-01-11  Jackson Harper  <jackson@ximian.com>
4543
4544         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
4545         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
4546         variables a little.
4547         * ColorDialog.cs: Clear out the old form before adding the new
4548         panel.  
4549
4550 2006-01-11  Jackson Harper  <jackson@ximian.com>
4551
4552         * X11Dnd.cs: Make sure to add all the text formats when adding
4553         strings to the data object.
4554         * TreeNodeCollection.cs: When adding to a sorted tree we need to
4555         do some redrawing too.  Also change the UpdateNode to an
4556         UpdateBelow so the newly added node gets painted.
4557         
4558 2006-01-11  Miguel de Icaza  <miguel@novell.com>
4559
4560         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
4561         LinkLabel.cs, PropertyGrid.cs: Implement the
4562         UseCompatibleTextRendering property for 2.x
4563
4564         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
4565
4566 2006-01-11  Jackson Harper  <jackson@ximian.com>
4567
4568         * TreeView.cs: Use the property for setting the selected node so
4569         the correct events get raised.
4570         * TreeNode.cs: Update the tree when the fore/back colours of a
4571         node are set.
4572
4573 2006-01-10  Jackson Harper  <jackson@ximian.com>
4574
4575         * TreeView.cs: Allow setting SelectedNode to null.
4576
4577 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
4578
4579         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
4580
4581 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
4582
4583         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
4584
4585 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
4586
4587         * PrintDialog.cs: Added attributes and set default property values.
4588
4589 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
4590
4591         * PrintControllerWithStatusDialog.cs: 
4592         Added PrintControllerWithStatusDialog.
4593
4594 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
4595
4596         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
4597         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
4598
4599 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
4600
4601         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
4602
4603 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
4604
4605         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
4606         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
4607
4608 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
4609
4610         * MimeIcon.cs: Added internal class SVGUtil.
4611
4612 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
4613
4614         * FileDialog.cs: Don't crash if there are two files with the
4615           same name but different locations.
4616
4617 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
4618
4619         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
4620         dates across multiple month grids. Used to not highlight entire 
4621         month, but does now.
4622         
4623 2006-01-06  Jackson Harper  <jackson@ximian.com>
4624
4625         * MonthCalendar.cs: Removed DoEvents call to prevent a running
4626         message loop. Change timer intervals to numbers that seem more
4627         natural.
4628
4629 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
4630
4631         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
4632           object for location info since screen object is now implemented.
4633
4634 2006-01-05  Jackson Harper  <jackson@ximian.com>
4635
4636         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
4637         * AsyncMethodResult.cs: We no longer use a WeakReference for the
4638         AsyncMethodResult, this is because we ALWAYS want the
4639         ManualResetEvent to get set.
4640         * Control.cs: When disposing use an async invoke to call shutdown
4641         code, so that thigns don't block on the finalizer thread.  Also
4642         check if we even have a message loop before trying to send
4643         messages, if we don't then don't bother sending messages.
4644         - No more weak references for async methods
4645         * XplatUIDriver.cs: No more weak references for async methods.
4646
4647 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
4648
4649         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
4650           returns two FontFamily with the same name
4651
4652 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
4653
4654         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
4655           drawing disabled text. Instead using the ColorGrayText color
4656
4657 2006-01-04  Jackson Harper  <jackson@ximian.com>
4658
4659         * TreeNode.cs: redraw the node when its image index is changed.
4660
4661 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
4662
4663         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
4664           time I checked there are no others like it.
4665
4666 2006-01-04  Jackson Harper  <jackson@ximian.com>
4667
4668         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
4669         this gives the behavoir I was looking for.
4670         * Control.cs: Special case Invoking EventHandlers, this matches MS
4671         and fixes part of bug #76326.
4672
4673 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
4674
4675         * ThemeClearlooks.cs, FileDialog.cs:
4676           - Reflect the latest Theme class changes
4677           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
4678             with DateTime
4679             
4680 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
4681
4682         * Theme.cs: Cache UI resource images and resize them if needed
4683
4684 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
4685
4686         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
4687           is called. This fixes the crash in Nexxia when setting the font
4688           attributes in the chat. [However, RTF needs a look-over to make sure
4689           that all SelectionXXX methods handle the special case that selection
4690           is empty and therefore the change must be applied to all text starting
4691           at the cursor/selection start]
4692
4693 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
4694
4695         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
4696           XplatUIOSX.cs: Added SendMessage and PostMessage methods
4697         * X11Keyboard.cs: Switched to new way of calling PostMessage
4698
4699 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
4700
4701         * Theme.cs: Added theme interface for images to allow the theme to
4702           control what images are used for things like FileDialog, MessageBox
4703           icons, etc.
4704         * MessageBox.cs: Now uses the new Theme icon/image interfaces
4705
4706 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
4707
4708         * FileDialog.cs:
4709           - Removed some dead code
4710           - Opening a recently used file does work now
4711           - Small UI enhancements
4712           - Refactoring
4713
4714 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
4715
4716         * FileDialog.cs: Forgot too add __MonoCS__
4717
4718 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
4719
4720         * FileDialog.cs: We are able to read recently used files now let's
4721           go on and write them.
4722
4723 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
4724
4725         * FileDialog.cs: Breathe some life into "last open"/"recently used"
4726           button
4727         * MimeIcon.cs: Do a check for the top level media type also
4728
4729 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
4730
4731         * ThemeClearlooks.cs:
4732           - Added CPDrawStringDisabled
4733           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
4734             some chars if the text doesn't fit into text_rect
4735           - DrawListViewItem: If View = View.LargeIcon center the image;
4736             rewrote the drawing of ListViewItem.Text if View = 
4737             View.LargeIcon
4738
4739 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
4740
4741         * MimeIcon.cs: Use default KDE icon theme if there is no
4742           "48x48" directory for the current icon theme, fixes #77114
4743         * Mime.cs: Disable not working and actually not used code. 
4744         * ThemeWin32Classic.cs:
4745           - Replace "new SolidBrush" in GetControlBackBrush and
4746             GetControlForeBrush with ResPool.GetSolidBrush
4747           - Changed DrawListViewItem from private to protected virtual
4748         * FileDialog.cs:
4749           - Added form.MaximizeBox = true
4750           - Don't throw an exception if there is a broken symbolic link
4751
4752 2005-12-23  Jackson Harper  <jackson@ximian.com>
4753
4754         * TabControl.cs: Give the panels focus, keyboard navigation is
4755         fixed so this works correctly now.
4756         - We need these key events also.
4757         * ToolBar.cs: Remove some of the poor mans double buffering.
4758         
4759 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
4760
4761         * ComboBox.cs: The internal TextBox now returns the focus.
4762
4763 2005-12-23  Jackson Harper  <jackson@ximian.com>
4764
4765         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
4766
4767 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
4768
4769         * Control.cs: Removed debug code
4770         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
4771           implicit children
4772
4773 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
4774
4775         * Control.cs: When creating the control, update the Z-order after
4776           all it's children are created, too. (Fixes nexxia not showing
4777           picturebox bug)
4778
4779 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
4780
4781         * Control.cs: Do not update the anchoring distances if layout is
4782           suspended, instead do it once layout is resumed
4783
4784 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
4785
4786         * Control.cs: 
4787           - After many hours of debugging, for both Jackson and
4788             myself, it turns out that it helps to set the parent of a control
4789             if you want to actually see it onscreen. In the spirit of that
4790             discovery, we're now setting the parent of the control and
4791             it's children when the control's handle is created. This fix
4792             will make Lutz Roeder's Reflector run happily. 
4793           - now just creating the handle instead of the whole control when
4794             getting a graphics context for the control.
4795
4796 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
4797
4798         * ScrollableControl.cs: When calculating the canvas, don't consider
4799           the scrollbar widths. Instead, predict if horizontal scrollbar
4800           will affect canvas when deciding on vertical display and vice versa.
4801
4802 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
4803
4804         * RichTextBox.cs: Set default RTF font for documents that don't
4805           have a font table (Fixes #77076)
4806
4807 2005-12-22  Jackson Harper  <jackson@ximian.com>
4808
4809         * TextBoxBase.cs: It's difficult to do, but you can have an empty
4810         clipboard. This prevents a NullRef in that case.
4811         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
4812         clipboard. PRIMARY is for the currently selected text only. (We
4813         should implement PRIMARY at some point.
4814
4815 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
4816
4817         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
4818           a Unicode function with a structure that was defined in Ansi way.
4819           This fixes #76942.
4820
4821 2005-12-21  Jackson Harper  <jackson@ximian.com>
4822
4823         * StatusBar.cs: Statusbar handles its fore/back colours on it's
4824         on. Because thats how it rolls. (and this avoids it using ambient
4825         colours).
4826         * ThemeWin32Classic.cs: Use the proper back color for filling.
4827         * Menu.cs: Use the system menu bar color for drawing menu
4828         bars. Using the window back color will bring ambient colours into
4829         the picture.
4830
4831 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
4832
4833         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
4834           Bitmaps were created and not disposed.
4835
4836 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
4837
4838         * Control.cs (CreateControl): Don't do anything if the control is
4839           already created, otherwise we'd fire the OnCreated event more than
4840           once
4841
4842 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
4843
4844         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
4845           will always match. Instead return -1. Fixes #76464.
4846
4847 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
4848
4849         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
4850           neither the beginning nor the end of the line (Fixes bug #76479)
4851
4852 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
4853
4854         * Control.cs:
4855           - ControlNativeWindow.ControlFromHandle(): Now handling situation
4856             where handle is invalid
4857           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
4858             instead of slower linear search
4859         * NativeWindow.cs: Don't remove the window from the hashtable until
4860           after the driver has destroyed it (since the driver might use
4861           Control.FromHandle to lookup the control object
4862         * Hwnd.cs: Added DestroyPending property to track if a window is 
4863           already destroyed as far as the driver is concerned and only hasn't
4864           yet notified the control
4865         * XplatUIX11.cs:
4866           - Activate(): Check if the window is still valid before using the 
4867             handle
4868           - Implemented DestroyChildWindow() method to mark child windows as
4869             destroyed when a window is destroyed. This prevents situations 
4870             where we might call an X method based on queued events for a
4871             window that already has been destroyed but we haven't yet pulled
4872             the destroy method from the queue.
4873           - Added a call to the new DestroyChildWindow() method to the drivers
4874             DestroyWindow code. Also now marking the destroyed window itself
4875             as pending
4876
4877 2005-12-20  Jackson Harper  <jackson@ximian.com>
4878
4879         * StatusBar.cs:
4880         * StatusBarPanel.cs: Don't calculate panel sizes on draw
4881         anymore. Just do them when needed, also track the rects of panels
4882         so that we can optimize refreshing more in the future.
4883
4884 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
4885
4886         * ColorDialog.cs: Fixed focus drawing in small color controls
4887
4888 2005-12-19  Jackson Harper  <jackson@ximian.com>
4889
4890         * InternalWindowManager.cs:
4891         * MdiWindowManager.cs: Cleanup some coordinate system changes so
4892         moving windows works properly.
4893
4894 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
4895
4896         * Control.cs: 
4897           - Removed call to InitLayout() from SetBoundsCore(); doc says
4898             it's only called when a control is added to a container
4899           - Split InitLayout logic, moved to separate UpdateDistances() method
4900             since we need to perform those calculations more often than just
4901             when adding the control to a container. (Needed to fix #77022)
4902           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
4903           - Reduced the OnBindingContextChanged events count, don't send them
4904             unless the control is created, we still aren't totally matching
4905             MS, but I can't quite figure out some of their rules
4906
4907 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
4908
4909         * ThemeClearlooks.cs: Corrected distance between ProgressBar
4910           stripes
4911
4912 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
4913
4914         * ThemeClearlooks.cs:
4915           - Updated ProgressBar drawing
4916           - Corrected drawing of ScrollBars and scroll buttons
4917           - Some temporary fixes for minor pixel artefacts
4918
4919 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
4920
4921         * Control.cs:
4922           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
4923             cause events to be sent in the same order as MS does.
4924           - Added ChangeParent() method to trigger various OnXXXChanged events
4925             that need to be fired when a parent changes (This is a reworking
4926             of the patch from r54254, with the X11 errors fixed)
4927           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
4928             since on MS we get OnLayoutChanged events when calling Clear()
4929           - Changed Enabled property to consider parent state as well, if a
4930             parent is not enabled, the control will not be either
4931           - Changed Parent property to simply call Controls.Add() since that
4932             now does all the work required, this way we avoid code duplication
4933           - Threw in a few OnBindingsContextChanged calls to try and match
4934             when MS sends them. We seem to send a few too many, though.
4935           - Added call to CreateControl when adding the control to a parent.
4936             We were never calling CreateControl. Still needs some work, in
4937             some places we treat HandleCreated and ControlCreated as equal, 
4938             which is wrong
4939           - Removed obsolete commented out code from UpdateZOrder()
4940
4941 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
4942
4943         * ThemeClearlooks.cs: Updated TrackBar drawing.
4944
4945 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
4946
4947         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
4948
4949 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
4950
4951         * FileDialog.cs: Add the Help button and the open readonly
4952           checkbox only if needed
4953
4954 2005-12-16  Jackson Harper  <jackson@ximian.com>
4955
4956         * Control.cs: Make sure we have an active menu before trying to
4957         process commands on it. Prevents menu-less forms from crashing
4958         when Alt is pressed.
4959         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
4960         Dieter Bremes.
4961         * RichTextBox.cs: Expand statement to help out gmcs and fix the
4962         2.0 build.
4963
4964 2005-12-16  Jackson Harper  <jackson@ximian.com>
4965
4966         * InternalWindowManager.cs: Don't translate tool windows screen
4967         coordinates. This fixes windows 'bouncing' around when being moved.
4968
4969 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
4970
4971         * TextBoxBase.cs:
4972           - MaxLength now treats 2^31-1 equal to unlimited length (this is
4973             not quite MS compatible, MS uses that number only for single line
4974             and 2^32-1 for multi-line, but I figure it won't hurt keeping
4975             the limit at 2GB)
4976           - Now enforcing the MaxLength limit when entering characters
4977           - Added argument to internal Paste() method to track if it's called
4978             from programatically or via keyboard, since keyboard driven pastes
4979             need to enforce max-length
4980           - Added logic to Paste to only paste as many chars as MaxLength 
4981             allows
4982         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
4983         * TextControl.cs:
4984           - Added Length property to return number of characters in document
4985           - Added private CharCount property which only tracks actual chars
4986             in the document (no linefeeds) and fires event when CharCount
4987             changes
4988           - Added tracking of character count to all methods that alter it
4989           - Added LengthChanged event to allow applications to subscribe
4990             to any changes to the document
4991
4992 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
4993
4994         * TextBox.cs: 
4995           - Removed local password_char field (moved to TextBoxBase)
4996           - Now setting the document's password var when password is
4997             set
4998         * TextBoxBase.cs:
4999           - Added password_char field (needed here so MultiLine can
5000             access it)
5001           - Added logic to MultiLine property setter to set the document's
5002             variable when password display is allowed
5003           - Removed debug code and made some debug code conditional
5004         * TextControl.cs:
5005           - Added RecalculatePasswordLine() method to handle special password
5006             char only lines
5007           - Added PasswordChar property, also added related tracking vars
5008           - Draw() method now uses local text var for grabbing text to draw,
5009             this var is set to line.text unless we're doing password display,
5010             then it is set to the pre-generated all-password-chars line
5011           - Added calling RecalculatePasswordLine() method for password lines
5012
5013 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
5014
5015         * Hwnd.cs: 
5016           - Added Reparented property to allow tracking of Window Manager
5017             reparenting actions (which affect X/Y calculations of toplevel 
5018             windows)
5019           - Made ToString() print window handles in hex
5020         * XplatUIX11.cs:
5021           - AddConfigureNotify(): Now uses reparented state off Hwnd to
5022             determine if X/Y needs offsetting
5023           - AddConfigureNotify(): Fixed offset calculations
5024           - Now adds ReparentNotify messages into the queue
5025           - Now processes ReparentNotify messages and causes a 
5026             WM_WINDOWPOSCHANGED message to be sent upstream if a window
5027             is reparented (as most likely it's X/Y coordinates are changed
5028             due to that)
5029
5030 2005-12-14  Jackson Harper  <jackson@ximian.com>
5031
5032         * XplatUIX11.cs: Tool windows still need to respek focus.
5033
5034 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
5035
5036         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
5037           have a working release
5038
5039 2005-12-13  Jackson Harper  <jackson@ximian.com>
5040
5041         * Form.cs: Update styles after setting the border style regardless
5042         of whether or not the window is using a window manager.
5043
5044 2005-12-13  Jackson Harper  <jackson@ximian.com>
5045
5046         * Form.cs: We now hook into an internal window manager instead of just an
5047         MDI subsystem, this is so we can have properly behaving tool windows.
5048         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
5049         * InternalWindowManager.cs: New internal class that acts as a
5050         window manager for tool windows and as a base for mdi windows.
5051         * MdiWindowManager.cs: New class that acts as a window manager for
5052         mdi windows.
5053
5054 2005-12-12  Jackson Harper  <jackson@ximian.com>
5055
5056         * Control.cs: Updates so we match behavoir for for implicit
5057         controls. Fixes explosions in MDI.
5058
5059 2005-12-12  Jackson Harper  <jackson@ximian.com>
5060
5061         * Control.cs: Implement Invalidate (Region).
5062
5063 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
5064
5065         * Control.cs: 
5066           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
5067             the same events as MS does. MS fires events for each property 
5068             except, for unknown reasons, Cursor, when the control is reparented. 
5069             I can't seem to totally match add/remove since MS also fires some 
5070             VisibleChanged events, which makes no sense. Consolidated the
5071             parenting code into a separate method so it can be called from
5072             both Add and Remove. set_Parent no longer needs any special logic
5073             as it calls the parent's add method which implicitly fires
5074             all events
5075           - Removed some obsolete code and debug output
5076           - Enabled state is inherited from parents, if this is enabled
5077
5078 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
5079
5080         * Form.cs: Removed commented out code
5081
5082 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
5083
5084         * Control.cs:
5085           - Added internal version of Invoke, with additional argument 
5086             indicating if we're calling it from a Dispose() handler. That
5087             way we can avoid BeginInvoke throwing an exception if we're
5088             calling for an already destroyed window.
5089           - Added a dispose argument to BeginInvokeInternal, and made the
5090             check if a valid window handle chain exists conditional on
5091             it not being a dispose call
5092           - Removed code in DestroyHandle to destroy our children. Since we
5093             now handle the WM_DESTROY message we will catch all our children
5094             being destroyed.
5095           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
5096         * Form.cs:
5097           - Added a field to track the application context of the form.
5098           - No need to set closing variable as response to WM_CLOSE, instead
5099             we destroy the window. We also call PostQuitMessage if the form
5100             has an application context (which makes it the main app form,
5101             which, when closed terminates the app)
5102         * XplatUI.cs:
5103           - Dropped Exit() method, it's naming was confusing
5104           - Added PostQuitMessage() which causes GetMessage to return false
5105             once the message queue is empty
5106         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
5107           PostQuitMessage()
5108         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
5109           no longer a valid XplatUI method, but left it in since it's used
5110           internally. Added empty PostQuitMessage() method.
5111         * MenuAPI.cs: Replaced call to Exit() with call to
5112           PostQuitMessage, even though this is probably no longer needed.
5113         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
5114         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
5115         * Application.cs:
5116           - Replaced call to XplatUI.Exit() with PostQuitMessage()
5117           - Removed old debug code that would call XplatUI for exception
5118             display, enabled standard exception handling (Still not enabled
5119             though, until NativeWindow's ExternalExceptionHandler define
5120             is removed
5121         * NativeWindow.cs:
5122           - Added internal method to allow control to update NativeWindow
5123             after a window has been destroyed
5124           - Added handling of already destroyed windows when calling i
5125             DestroyWindow
5126           - Added removal of handle from list on ReleaseHandle
5127         * XplatUIX11.cs:
5128           - Dropped GetMessageResult var and related code
5129           - Added PostQuitState to field to track if PostQuitMessage has been
5130             called
5131           - Dropped Exit() method
5132           - Added PostQuitMessage() method
5133           - GetMessage now will return false if PostQuitState is set and no
5134             more messages are in the queue.
5135           - Expose handler will no longer generate WM_PAINT messages if we are
5136             in PostQuitState since it's very likely any windows have already
5137             been destroyed, and since Hwnd won't get updated until we have
5138             processed the DestroyNotify we'd be causing X errors.
5139         
5140 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
5141
5142         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
5143           Thanks to Mike for pointing out the err of my ways.
5144
5145 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
5146
5147         * Control.cs(PreProcessMessage): Moved menu handling back, but
5148           after all other key handling, to match MS (who handles Menu in
5149           DefWndProc)
5150         * Menu.cs (WndProc): Removed my brainfart
5151
5152 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
5153
5154         * Control.cs(PreProcessMessage): Removed special menu handling 
5155         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
5156
5157 2005-12-07  Mike Kestner  <mkestner@novell.com>
5158
5159         * Control.cs : special case SYSKEYUP so that we can adjust keynav
5160         state according in tracker.
5161         * Menu.cs : promote tracker field to base class and provide a tracker
5162         lookup capability.  Add/Remove shortcuts dynamically if the top menu
5163         has a tracker. Unparent items that are removed from the collection.
5164         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
5165         * Theme*.cs: add always_show_hotkeys field to support configurability
5166         of mnemonic display.  win32 doesn't show mnemonics until Alt is
5167         pressed.
5168
5169 2005-12-07  Jackson Harper  <jackson@ximian.com>
5170
5171         * MdiChildContext.cs: Use Control.ResetCursor.
5172         * Control.cs: ResetCursor needs to set the property so that the
5173         correct XplatUI call gets made.
5174
5175 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
5176
5177         * Control.cs: More fixes to make our key events match MS. We
5178           were not setting the modifier state on KeyData, and we were
5179           not generating any events when Alt was pressed with a key
5180           since handling of WM_SYSxxx was missing for the OnKey methods.
5181
5182 2005-12-07  Jackson Harper  <jackson@ximian.com>
5183
5184         * MdiChildContext.cs: reenable the sizing code.
5185         - When the mouse leaves a window reset its cursor.
5186
5187 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
5188
5189         * ThemeClearlooks.cs: Reflect latest Hwnd changes
5190
5191 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
5192
5193         * Hwnd.cs: Now using the theme 3d bordersize to calculate
5194           widths of Fixed3D borders
5195
5196 2005-12-07  Jackson Harper  <jackson@ximian.com>
5197
5198         * MdiClient.cs: Fix warnings. Earn Mike's love.
5199
5200 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
5201
5202         * ThemeClearlooks.cs:
5203           - Adjusted mouse over button color
5204           - Added first parts of CheckBox drawing
5205           - Added correct color for selected text background
5206           - Fixed ComboBox drawing
5207           - Added CPDrawBorder3D and CPDrawBorder
5208
5209 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
5210
5211         * XplatUIX11.cs: Added call to XBell for AudibleAlert
5212
5213 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
5214
5215         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
5216           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
5217           alert users via sound. We could add an enum arg with different
5218           types of alerts in the future
5219
5220 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
5221
5222         * Control.cs: Fix behaviour problems pointed out by Mike
5223
5224 2005-12-05  Mike Kestner  <mkestner@novell.com>
5225
5226         * StatusBarPanel.cs: add Invalidate method and hook it into all the
5227         prop setters.  Calls parent.Refresh for now, but could be maybe be
5228         optimized with an internal method on StatusBar at some point.
5229         [Fixes #76513]
5230
5231 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
5232
5233         * RichTextBox.cs: Implemented get_SelectionColor
5234
5235 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
5236
5237         * ThemeClearlooks.cs:
5238           - Removed dead code
5239           - Draw black button border only if button is Form.AcceptButton
5240           - Draw correct button color for pressed RadioButton if the mouse 
5241             has entered the button
5242           - Updated ProgressBar drawing!
5243           - Updated CPDrawSizeGrip drawing
5244           - Updated StatusBarPanel drawing
5245
5246 2005-12-05  Mike Kestner  <mkestner@novell.com>
5247
5248         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
5249         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
5250
5251 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
5252
5253         * ThemeClearlooks.cs: Initial check-in, activate with
5254           export MONO_THEME=clearlooks
5255         * ThemeEngine.cs: Added ThemeClearlooks
5256
5257 2005-12-03  Mike Kestner  <mkestner@novell.com>
5258
5259         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
5260         [Fixes #76897]
5261
5262 2005-12-02  Jackson Harper  <jackson@ximian.com>
5263
5264         * Form.cs: If the child form has no menu the default main menu is
5265         used as the active menu.
5266
5267 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
5268
5269         * ListBox.cs: Check if any items exist before trying to resolve 
5270           coordinates into items
5271
5272 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
5273
5274         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
5275           as the second color for the background hatch
5276
5277 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
5278
5279         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
5280         * RichTextBox.cs: FormatText position arguments are 1-based, now making
5281           sure that what we pass to FormatText is always 1-based. Fixes #76885
5282
5283 2005-11-29  Miguel de Icaza  <miguel@novell.com>
5284
5285         * NumericUpDown.cs (EndInit): When we are done initializing,
5286         reflect any updates on the UI.
5287
5288 2005-12-02  Jackson Harper  <jackson@ximian.com>
5289
5290         * ImplicitHScrollBar.cs:
5291         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
5292         their container controls.
5293         * TreeView.cs: Use the new implicit scrollbars.
5294
5295 2005-12-02  Jackson Harper  <jackson@ximian.com>
5296
5297         * TreeView.cs: Make top_node internal so the TreeNodeCollections
5298         can play with it.
5299         * TreeNodeCollection.cs: If we remove the topnode we need to
5300         update topnode to the next node in line.
5301         - When clearing nodes go through the same process as removing
5302         them, so they get depareneted and checked if they are top node.
5303
5304 2005-12-01  Jackson Harper  <jackson@ximian.com>
5305
5306         * TreeView.cs: When imagelists are used the image area is
5307         selectable as well as the text.
5308         - If there are no selected nodes select the first one.
5309         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
5310         so don't do it more then we need to.
5311
5312 2005-12-01  Jackson Harper  <jackson@ximian.com>
5313
5314         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
5315         that arrows can be scaled.
5316
5317 2005-12-01  Jackson Harper  <jackson@ximian.com>
5318
5319         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
5320         fail. Patch by Dieter Bremes
5321
5322 2005-11-30  Jackson Harper  <jackson@ximian.com>
5323
5324         * Form.cs: Property is 2.0 only
5325         * PrintDialog.cs: Signature fix.
5326
5327 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
5328
5329         * TextControl.cs: 
5330           - No longer artificially moves text 2 pixels down (now that we have
5331             borders this is no longer needed)
5332           - Added calcs for left, hanging and right indent
5333
5334 2005-11-23  Mike Kestner  <mkestner@novell.com>
5335
5336         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
5337
5338 2005-11-30  Jackson Harper  <jackson@ximian.com>
5339
5340         * MdiChildContext.cs: Set the cloned menus forms, as these don't
5341         get cloned as part of CloneMenu ().
5342         * Menu.cs: Make sure the parent of the items get set correctly
5343         when they are added.  And the owners are notified of the changes.
5344         * Form.cs: Create an ActiveMenu property, so that when MDI is used
5345         we can change the menu being displayed/handled by the form without
5346         changing the menu assosciated with the form.
5347         - Don't let Mdi children draw/handle menus.
5348         
5349 2005-11-30  Jackson Harper  <jackson@ximian.com>
5350
5351         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
5352         a MenuChanged event. Just to make the API a little more
5353         consistent.
5354         * MainMenu.cs:
5355         * MenuItem.cs: Use the new OnMenuChanged
5356         * MdiChildContext.cs: Handle menu merging.
5357         * Form.cs: Implement MergedMenu.
5358         
5359 2005-11-30  Jackson Harper  <jackson@ximian.com>
5360
5361         * Menu.cs: We were misusing Add. Add goes behind the specified
5362         index according to the docs, and does not replace the specified
5363         index. So I added an Insert method.
5364
5365 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
5366
5367         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
5368           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
5369           is for Jackson
5370         * RichTextBox.cs: Added calls to base for DnD events
5371
5372 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
5373
5374         * TextControl.cs:
5375           - Fixed drag-selection related crash; style fixes
5376           - Implemented undo class
5377             o Implemented method to capture document state for specified
5378               range in document tree
5379             o Implemented method to restore captured document state
5380             o Implemented cursor tracking
5381             o Implemented basic undo stack
5382           - Added undo cursor tracking to methods altering cursor location
5383           - Added undo tracking to selection deletion (still missing
5384             other text-altering hookups)
5385         * RichTextBox.cs:
5386           - Added SelectionLength property
5387           - Implemented CanPaste()
5388           - Implemented Paste()
5389           - Added missing protected methods
5390           - Fixed RTF->Document conversion; now uses font index 0 and color 
5391             index 0 as the default font for the parsed text
5392           - Fixed RTF<->Document font size translation
5393           - Fixed RTF generation, now properly handles cross-tag boundaries
5394             for single line selection
5395           - No longer always appends blank line to generated RTF
5396           - Removed TODOs
5397           - Added missing attributes
5398           - Hooked up undo-related methods
5399         * TextBoxBase.cs:
5400           - Implemented Copy()
5401           - Implemented Paste()
5402           - Implemented Cut()
5403           - Fixed caret mis-behaviour on backspace across line-boundaries
5404
5405 2005-11-29  Jackson Harper  <jackson@ximian.com>
5406
5407         * MdiClient.cs: Add a method for activating mdi children. Very
5408         basic right now. I imagine someday it might need more girth.
5409         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
5410         children windows names are added to the menu item.
5411         * ThemeWin32Classic.cs: Draw the arrow if the item is an
5412         mdilist. This happens regardless of whether or not there are any
5413         mdi windows to see in the list, and according to my tests happens
5414         before the items are even added. Also happens if there isn't even
5415         an mdi client to get windows from.
5416
5417 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
5418
5419         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
5420         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
5421
5422 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
5423
5424         * DataGridTableStyle.cs:
5425           - Create always the styles for the missing columns even if they are
5426             provided by the user (not default table style)
5427         * DataGrid.cs:
5428           - Fixes bug 76770
5429           - Fixes SetDataBinding (always re-attach source)
5430           - Fixes SetNewDataSource (only clear styles if they are not for 
5431             this source)
5432          -  Expands OnTableStylesCollectionChanged to handle style refresh 
5433             and remove properly
5434
5435 2005-11-29  Jackson Harper  <jackson@ximian.com>
5436
5437         * FileDialog.cs: Implement missing bits, remove some dead
5438         code.
5439         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
5440         creation of the panel so that the options set on the dialog are
5441         seen when the panel is created.
5442         * TreeView.cs: raise a click when items are clicked.
5443         
5444 2005-11-29  Jackson Harper  <jackson@ximian.com>
5445
5446         * MdiClient.cs: Pass some signature methods through to base.
5447
5448 2005-11-28  Jackson Harper  <jackson@ximian.com>
5449
5450         * ListView.cs: Raise the click event when items are clicked.
5451
5452 2005-11-28  Jackson Harper  <jackson@ximian.com>
5453
5454         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
5455         a nullref.
5456
5457 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
5458
5459         * ThemeNice.cs: - Removed 1 pixel bitmaps
5460           - Use SmoothingMode.AntiAlias where it makes sense
5461             (ScrollButton arrow for example)
5462           - Enhanced Button focus drawing
5463           - Fixed ComboBox drawing (no artefacts anymore, focus
5464             rectangle is back again, reduced size of ComboButton, etc.)
5465           - Fixed RadioButton focus drawing for Appearence.Button
5466           - Slight ScrollButton redesign
5467           - Some LinearGradientBrush size fixes
5468           - GroupBoxes have now rounded edges
5469           - Fixed StatusBar drawing
5470
5471 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
5472
5473         * ThemeNice.cs: - Remove dead code
5474           - use correct background colors for menus, etc.
5475           - Fake pixel drawing with 1 pixel bitmaps
5476
5477 2005-11-24  Jackson Harper  <jackson@ximian.com>
5478
5479         * MdiClient.cs: Size the scrollbars when resizing the window.
5480         - Resize the maximized windows when the client is resized
5481         * Form.cs: Make the child context available
5482         
5483 2005-11-23  Jackson Harper  <jackson@ximian.com>
5484
5485         * MdiChildContext.cs: Don't size windows if they are maximized.
5486
5487 2005-11-23  Mike Kestner  <mkestner@novell.com>
5488
5489         * ContextMenu.cs: use MenuTracker.
5490         * Control.cs: remove menu handle usage.
5491         * Form.cs: remove menu handle usage.
5492         * Hwnd.cs: remove menu handle usage.
5493         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
5494         motion and clicks to the new Tracker handlers.
5495         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
5496         and handle usage.
5497         * MenuAPI.cs: refactored to combine popup and menubar event handling.
5498         Killed the MENU and MENUITEM data types and associated collections
5499         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
5500         MenuTracker class that exposes the leftovers from the old MenuAPI
5501         static methods. Restructured Capture handling so that only one grab is
5502         done for the entire menu hierarchy instead of handing off grabs to
5503         submenus. Tracker now has an invisible control to Capture when active.
5504         * MenuItem.cs: add sizing accessors, kill Create
5505         and handle usage.
5506         * Theme.cs: remove menu handle and MENU(ITEM) usage.
5507         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
5508         MENU(ITEM). remove menu handle usage, use Menu directly.
5509         * XplatUIDriver.cs: remove menu handle usage.
5510         * XplatUIOSX.cs: remove menu handle usage.
5511         * XplatUIWin32.cs: remove menu handle usage.
5512         * XplatUIX11.cs: remove menu handle usage.
5513
5514 2005-11-22  Jackson Harper  <jackson@ximian.com>
5515
5516         * Hwnd.cs: Don't compute the menu size for
5517         DefaultClientRectangle.
5518         - Reenable menu sizes being computed for GetClienRectangle.
5519         * Form.cs: Remove comment of trechery
5520         
5521 2005-11-22  Jackson Harper  <jackson@ximian.com>
5522
5523         * Hwnd.cs: The adjustments for the menu bar are made when it is
5524         attached to the form.
5525
5526 2005-11-19  Jackson Harper  <jackson@ximian.com>
5527
5528         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
5529         (just like on windows).
5530
5531 2005-11-19  Jackson Harper  <jackson@ximian.com>
5532
5533         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
5534         use real buttons anymore because they are in non client area. The
5535         one TODO here is that I need to somehow invalidate a section of
5536         the non client area.
5537
5538 2005-11-18  Jackson Harper  <jackson@ximian.com>
5539
5540         * Control.cs: Put the enum check back in now that MDI doesnt have
5541         to use this to set border styles.
5542         * Form.cs: Only set mdi child windows borders if the handle has
5543         been created.
5544         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
5545         this directly on to the driver.
5546         - Get the move start position before adjusting for the titlebar
5547         height, this fixes the windows "skipping" when they are first
5548         moved.
5549
5550 2005-11-18  Jackson Harper  <jackson@ximian.com>
5551
5552         * XplatUIX11.cs: Just compute the mdi borders separately as they
5553         don't totally match up with normal form borders.
5554
5555 2005-11-18  Jackson Harper  <jackson@ximian.com>
5556
5557         * Control.cs: Set WS_ styles for borders, so that the driver does
5558         not have to retrieve the control instance to figure out what kind
5559         of borders it should have.
5560         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
5561         driver can know its an mdi child easily.
5562         * XplatUIX11.cs: Get the border styles and whether the window is
5563         MDI from the Styles and ExStyles params instead of having to get a
5564         control. This prevents a chicken and egg problem.       
5565
5566 2005-11-18  Jackson Harper  <jackson@ximian.com>
5567
5568         * MdiClient.cs: Fix typo so scrollbars show up correctly.
5569
5570 2005-11-18  Jackson Harper  <jackson@ximian.com>
5571
5572         * MdiClient.cs: Calculate when to add and remove scrollbars
5573         correctly.
5574         * MdiChildContext.cs: Adjust the y position to take the titlebar
5575         into account.
5576         - No height for FormBorderStyle.None
5577
5578 2005-11-18  Jackson Harper  <jackson@ximian.com>
5579
5580         * Control.cs: Allow non enum values to be used for
5581         InternalBorderStyle.  MDI does this to set a special border style.
5582         - New utility methods for converting points to/from client coords
5583         - Add the newly created control to the Controls collection before
5584         updating its style. This way UpdateStyle can walk the control
5585         heirarchy to find the control if needed.
5586         so I don't need to create a new Point object all the time.
5587         * Form.cs: Let MDI windows handle their border styles.
5588         - Set styles on MDI windows so the correct title style is derived.
5589         * MdiChildContext.cs: Move all the painting and window handling
5590         into the non client area.
5591         - Use correct sizing and put correct buttons on frames based on
5592         the FormBorderStyle.
5593         - Notify the mdi client about scrolling
5594         - Need to handle the buttons ourselves now, because they are all
5595         in non client areas and we can't add controls there.
5596         * MdiClient.cs: Halfway to scrolling, this implementation is
5597         somewhat broken though, we need to check to make sure other
5598         windows aren't causing scrolling before removing the bars. Also
5599         the bars need to be drawn on top, maybe I can switch implicit
5600         controls to be on top.
5601         * Hwnd.cs: caption_height and tool_caption_height are now
5602         properties of an hwnd, this way they can be set by the driver
5603         based on the type of window they are.  In X11 the window manager
5604         handles the decorations so caption_height is zero unless its an
5605         MDI window.
5606         - Add 3 pixel borders for MDI windows (0xFFFF).
5607         - Get rid of some code duplication, have DefaultClientRectanle
5608         just call GetClientRectangle.
5609         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
5610         Hwnd now.
5611         - Set border styles differently for mdi windows.
5612         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
5613         Hwnd now.
5614         
5615 2005-11-15  Mike Kestner  <mkestner@novell.com>
5616
5617         * Menu.cs: when adding an item to the collection, if item is already 
5618         parented, remove it from the parent.
5619
5620 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
5621
5622         * X11DesktopColors.cs: Added KDE support
5623
5624 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
5625
5626         * XplatUIWin32.cs: 
5627           - Clipboard methods now can translate Rtf format
5628           - No longer removes clipboard contents whenever a new format is added
5629             to allow placing multiple formats on the clipboard
5630         * Clipboard.cs: Clipboard now supports getting a IDataObject and
5631           will place all formats contained in it onto the clipboard. Also
5632           now cleans the clipboard before placing a new object onto it
5633         * RichTextBox.cs:
5634           - Implemented set_Rtf
5635           - Implemented set_SelectedRtf
5636           - Created InsertRTFFromStream() method to allow single code base
5637             for all properties and methods that insert RTF into document
5638           - Removed debug output
5639         * TextControl.cs:
5640           - Fixed Delete(int) to fix up line numbers
5641           - Fixed ReplaceSelection to combine start and end line
5642           - Fixed serious DeleteChars bug that would leave the document tree
5643             broken
5644           - Improved DumpTree with several logic checks to detect broken
5645             document trees
5646           - Removed debug lines
5647           - Fixed Caret.WordForward/WordBack moving code, now always also 
5648             updates caret.tag (fixes crash when word-selecting across tag
5649             boundaries via keyboard)
5650           - Added Insert() method for inserting multiline text into documents
5651           - Fixed DeleteChars() calculation errors that would cause a broken
5652             tag chain with multiple tag lines
5653           - DeleteChars() no longer crashes on multi-tag lines if not all tags
5654           - Split() no longer moves caret if split is at caret location
5655           - ReplaceSelection() now updates the cursor and re-displays it
5656           - ReplaceSelection() now uses new Insert() method to avoid code
5657             duplication
5658           - FormatText() can now handle formatting partial lines
5659         * TextBoxBase.cs:
5660           - Append now uses new TextControl.Insert() method (this avoids 
5661             duplicate code)
5662           - Implemented Ctrl-X (Cut) (
5663           - Implemented Ctrl-C (Copy)
5664           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
5665             regeneration when pasting text; roundtripping Copy&Paste within
5666             edit control still fails due to some calculation bugs in GenerateRTF)
5667           - The Delete key will now remove the current selection if it is visible
5668         * TextBox.cs: Removed debug lines
5669         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
5670           driver to be initialized and can't therefore be done via a static ctor)
5671
5672 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
5673
5674         * TextControl.cs: Added backend code for finding char arrays and strings
5675         * TextBoxBase.cs:
5676           - Added mouse wheel scroll support
5677           - Added support for VScroll and HScroll events
5678         * RichTextBox.cs:
5679           - Implemented all seven Find() variants
5680           - Implemented GetCharFromPosition()
5681           - Implemented GetCharIndexFromPosition()
5682           - Implemented GetLineFromIndex()
5683           - Implemented GetPositionFromCharIndex();
5684           - Implemented SaveFile for PlainText and UnicodeText
5685           - Fixed set_Font, now setting a new font applies that font to
5686             the whole document
5687           - Implemented generic Document to RTF converter
5688           - Implemented SaveFile for RichText format (still missing unicode
5689             conversion for non-ansi chars)
5690           - Implemented get_Rtf
5691           - Implemented get_SelectedRtf
5692
5693 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
5694
5695         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
5696           to allow any captures to be released before triggering OnClick. This
5697           way a click handler may capture the mouse without interference.
5698         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
5699           This way we send them even though X may not allow a grab (if the window
5700           isn't visible, for example)
5701
5702 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
5703
5704         * DataGridViewRowEventArgs.cs: DataGridView implementation
5705         * DataGridViewElement.cs: DataGridView implementation
5706         * DataGridViewComboBoxCell.cs: DataGridView implementation
5707         * DataGridViewDataErrorContexts.cs: DataGridView implementation
5708         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
5709         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
5710         * ImageLayout.cs: DataGridView implementation
5711         * DataGridViewComboBoxColumn.cs: DataGridView implementation
5712         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
5713         * DataGridViewSelectionMode.cs: DataGridView implementation
5714         * IDataGridViewEditingControl.cs: DataGridView implementation
5715         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
5716         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
5717         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
5718         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
5719         * DataGridViewColumnSortMode.cs: DataGridView implementation
5720         * DataGridView.cs: DataGridView implementation
5721         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
5722         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
5723         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
5724         * Padding.cs: DataGridView implementation
5725         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
5726         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
5727         * DataGridViewRowEventHandler.cs: DataGridView implementation
5728         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
5729         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
5730         * DataGridViewButtonCell.cs: DataGridView implementation
5731         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
5732         * DataGridViewEditMode.cs: DataGridView implementation
5733         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
5734         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
5735         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
5736         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
5737         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
5738         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
5739         * DataGridViewCellEventHandler.cs: DataGridView implementation
5740         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
5741         * DataGridViewCellStyleConverter.cs: DataGridView implementation
5742         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
5743         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
5744         * DataGridViewColumnEventArgs.cs: DataGridView implementation
5745         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
5746         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
5747         * QuestionEventArgs.cs: DataGridView implementation
5748         * IDataGridViewEditingCell.cs: DataGridView implementation
5749         * DataGridViewTriState.cs: DataGridView implementation
5750         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
5751         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
5752         * DataGridViewColumnCollection.cs: DataGridView implementation
5753         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
5754         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
5755         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
5756         * DataGridViewColumn.cs: DataGridView implementation
5757         * DataGridViewCellBorderStyle.cs: DataGridView implementation
5758         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
5759         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
5760         * DataGridViewRow.cs: DataGridView implementation
5761         * DataGridViewImageCellLayout.cs: DataGridView implementation
5762         * DataGridViewImageCell.cs: DataGridView implementation
5763         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
5764         * DataGridViewCheckBoxCell.cs: DataGridView implementation
5765         * DataGridViewHeaderCell.cs: DataGridView implementation
5766         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
5767         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
5768         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
5769         * DataGridViewTextBoxColumn.cs: DataGridView implementation
5770         * QuestionEventHandler.cs: DataGridView implementation
5771         * DataGridViewCellStyleScopes.cs: DataGridView implementation
5772         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
5773         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
5774         * DataGridViewCell.cs: DataGridView implementation
5775         * DataGridViewCellEventArgs.cs: DataGridView implementation
5776         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
5777         * DataGridViewCellStyle.cs: DataGridView implementation
5778         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
5779         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
5780         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
5781         * TextFormatFlags.cs: DataGridView implementation
5782         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
5783         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
5784         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
5785         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
5786         * DataGridViewButtonColumn.cs: DataGridView implementation
5787         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
5788         * HandledMouseEventArgs.cs: DataGridView implementation
5789         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
5790         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
5791         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
5792         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
5793         * DataGridViewRowCollection.cs: DataGridView implementation
5794         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
5795         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
5796         * DataGridViewHitTestType.cs: DataGridView implementation
5797         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
5798         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
5799         * DataGridViewColumnEventHandler.cs: DataGridView implementation
5800         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
5801         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
5802         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
5803         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
5804         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
5805         * DataGridViewContentAlignment.cs: DataGridView implementation
5806         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
5807         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
5808         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
5809         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
5810         * DataGridViewPaintParts.cs: DataGridView implementation
5811         * DataGridViewCellCollection.cs: DataGridView implementation
5812         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
5813         * DataGridViewImageColumn.cs: DataGridView implementation
5814         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
5815         * DataGridViewElementStates.cs: DataGridView implementation
5816         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
5817         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
5818         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
5819         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
5820         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
5821         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
5822         * DataGridViewRowHeaderCell.cs: DataGridView implementation
5823         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
5824         * DataGridViewTextBoxCell.cs: DataGridView implementation
5825         * DataGridViewBand.cs: DataGridView implementation
5826         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
5827         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
5828         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
5829         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
5830         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
5831         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
5832         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
5833         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
5834         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
5835         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
5836         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
5837
5838 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
5839
5840         * ThemeWin32Classic.cs: 
5841           - Draw the outside focus rectangle around buttons
5842           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
5843             doesn't use end caps for every dash of a line anymore. This
5844             workaround ignores the forecolor.
5845
5846 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
5847
5848         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
5849           endian safe.
5850
5851 2005-11-07  Jackson Harper  <jackson@ximian.com>
5852
5853         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
5854
5855 2005-11-07  Jackson Harper  <jackson@ximian.com>
5856
5857         * ScrollableControl.cs: Calculate the maximum and change vars
5858         (more) correctly so that scrollbars appear as a sensible size.
5859
5860 2005-11-04  Jackson Harper  <jackson@ximian.com>
5861
5862         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
5863         collection.
5864         * TreeView.cs: When the tree is sorted null out the top_node so
5865         that it is recalculated.
5866         - Use dotted lines instead of dashed lines to match MS better.
5867
5868 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
5869
5870         * ListView.cs: 
5871           - Implements key search for items. Useful when browsing files with FileDialog
5872           - When changing view mode or when clear the items reset scrollbar positions
5873
5874 2005-11-04  Jackson Harper  <jackson@ximian.com>
5875
5876         * CurrencyManager.cs: Implement the MetaDataChanged event, the
5877         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
5878         as to what the method may do as there is no real way of creating a
5879         derived CurrencyManager and calling the method. 
5880
5881 2005-11-03  Jackson Harper  <jackson@ximian.com>
5882
5883         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
5884         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
5885         method which seems to just be used internally to refresh the tabs.
5886
5887 2005-11-03  Jackson Harper  <jackson@ximian.com>
5888
5889         * TabControl.cs: Implement the remove method. Fix some broken
5890         comments.
5891
5892 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
5893
5894         * DateTimePicker.cs:
5895           - Added missing DateTimePickerAccessibleObject class
5896           - Added missing events
5897           - Added OnFontChanged method
5898         * Form.cs: Added missing attributes
5899         * TreeView.cs: Added missing attributes
5900
5901 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
5902
5903         * GridItemCollection.cs: Fix signatures
5904
5905 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
5906
5907         * XplatUI.cs: Updated build rev/date
5908         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
5909           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
5910         * Application.cs: Trigger context-specific ExitThread events
5911
5912 2005-11-03  Jackson Harper  <jackson@ximian.com>
5913
5914         * Menu.cs:
5915         * MainMenu.cs:
5916         * GridTableStylesCollection.cs:
5917         * Timer.cs:
5918         * TabPage.cs:
5919         * HelpProvider.cs:
5920         * StatusBar.cs:
5921         * MonthCalendar.cs: Signature fixes
5922
5923 2005-11-03  Jackson Harper  <jackson@ximian.com>
5924
5925         * TreeNodeCollection.cs: Remove should not be virtual.
5926         * TreeView.cs: Implement the last of the missing methods.
5927
5928 2005-11-03  Jackson Harper  <jackson@ximian.com>
5929
5930         * TreeNodeConverter.cs: Implement to get off my class-status back.
5931
5932 2005-11-03  Jackson Harper  <jackson@ximian.com>
5933
5934         * TreeView.cs: Hookup the bits for drag and drop.
5935         * TreeNode.cs: Don't cache the tree_view or index anymore, now
5936         that nodes can be moved from tree to tree easily this just causes
5937         all sorts of problems.
5938         * TreeNodeCollection: Don't need to give treenodes an index and
5939         treeview anymore when they are added, these are computed on the
5940         fly. Also make sure to remove a node before its added.
5941
5942 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
5943
5944         * TextControl.cs:
5945           - Added CaretSelection enum
5946           - Added comparison methods to Marker struct, makes selection code
5947             more readable
5948           - Added SelectionStart and SelectionEnd as 'moveable' location for
5949             the CaretDirection enum and handler
5950           - Added selection_prev variable to track optimized invalidation for
5951             word and line selection
5952           - Added SelectionVisible property (returns true if there is a valid 
5953             selection)
5954           - Switched CaretHasFocus to only display the caret if there is no
5955             visible selection
5956           - Avoiding StringBuilder.ToString to retrieve a single char, instead
5957             using the direct character index; should be much faster
5958           - Added various conditional debug statements
5959           - Fixed invalidation calculation for selection ranges
5960           - Added ExpandSelection() method to support word and line selection
5961           - Switched SetSelectionToCaret to use new Marker compare overloads
5962           - Added central IsWordSeparator() method to determine word 
5963             separators/whitespace and FindWordSeparator() to streamline common
5964             usage of IsWordSeparator()
5965         * TextBoxBase.cs:
5966           - Removed unneeded grabbed variable, it was just mirroring
5967             Control.Capture
5968           - No longer firing OnTextChanged event when Text setter is called,
5969             since the base will fire the event for us
5970           - Added handling of Ctrl-Up/Down selection
5971           - Added handling of Shift-Cursorkey selection
5972           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
5973             words
5974           - Added handling of Shift and Ctrl-Shift-Home/End selection
5975           - Removed some debug output
5976           - Added handling for single/double/tripple-click to place caret/
5977             select word/select line respectively (Fixes bug #76031)
5978           - Added support for drag expansion of word/line selection
5979         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
5980           current selection
5981
5982 2005-11-02  Jackson Harper  <jackson@ximian.com>
5983
5984         * X11Dnd.cs: If the drag is going to and from a MWF window just
5985         copy the data instead of sending it out through the X Selection
5986         mechanism.
5987
5988 2005-11-02  Jackson Harper  <jackson@ximian.com>
5989
5990         * X11Dnd.cs:
5991         * XplatUIX11.cs: When in a drag we don't want motion notify
5992         messages to get passed on to the other controls. This prevents
5993         mouse move messages from showing up in the drag source.
5994
5995 2005-11-02  Jackson Harper  <jackson@ximian.com>
5996
5997         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
5998         the correct button is release to end a drag.
5999         * XplatUIX11.cs: Make the button state internal so the drag system
6000         can access it.  Dragging needs to know about all button releases,
6001         not just left button.
6002
6003 2005-11-02  Miguel de Icaza  <miguel@novell.com>
6004
6005         * Form.cs (Icon): If the icon is null, reset the icon to the
6006         default value. 
6007
6008         * Cursor.cs: When writing the AND-mask bitmap do not include the
6009         number of colors, but hardcode those to two (black and white),
6010         fixes the loading of color cursors (Paint Dot Net).
6011
6012         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
6013         turn off autoscaling.
6014
6015         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
6016
6017 2005-11-02  Jackson Harper  <jackson@ximian.com>
6018
6019         * X11Dnd.cs: Make sure to send a status message if the pointer
6020         enters a control that can not accept a drop, otherwise the cursor
6021         isn't updated correctly. Also tried to compress the lines of code
6022         a bit.
6023
6024 2005-11-02  Jackson Harper  <jackson@ximian.com>
6025
6026         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
6027         set actions correctly.  This isn't perfect as XDND and win32 have
6028         some differences on how you allow actions. I'll clear this up by
6029         adding a path for drag from MWF to MWF windows.
6030         * XplatUIX11.cs: Hook into the dnd system.
6031
6032 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
6033
6034         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
6035         previously shown but they are no longer need it. Very obvious when 
6036         browsing files with FileDialog.
6037
6038 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
6039
6040         * Control.cs: We always need to call OnPaintBackground. We pretty much
6041           ignore AllPaintingInWmPaint and always do the painting there, whether 
6042           it's set or not, since we always ignore the WM_ERASEBKGND message 
6043           (which we don't generate on X11). This fixes #76616.
6044         * Panel.cs: Removed unneeded background painting. This happens properly
6045           in Control.cs already
6046
6047 2005-10-31  Mike Kestner  <mkestner@novell.com>
6048
6049         * Menu.cs: Add items to collection before setting their index.
6050         * MenuItem.cs : add range checking with ArgumentException like MS.
6051         [Fixes #76510]
6052
6053 2005-10-31  Jackson Harper  <jackson@ximian.com>
6054
6055         * ListBox.cs: Invalidate if the area is visible at all not just
6056         contained in the visible rect. Fixes unselection of semi visible
6057         items.
6058
6059 2005-10-31  Jackson Harper  <jackson@ximian.com>
6060
6061         * Control.cs: Consistently name the dnd methods. Make them
6062         internal so we can override them to match some MS behavoir
6063         internally.
6064         * Win32DnD.cs: Use the new consistent names.
6065
6066 2005-10-31  Jackson Harper  <jackson@ximian.com>
6067
6068         * TreeView.cs: Don't draw the selected node when we lose focus.
6069
6070 2005-10-31  Jackson Harper  <jackson@ximian.com>
6071
6072         * X11Dnd.cs: We still need to reset the state even though a full
6073         reset isn't being done, otherwise status's still get sent all over
6074         the place.
6075
6076 2005-10-31  Jackson Harper  <jackson@ximian.com>
6077
6078         * Control.cs: Make the dnd_aware flag internal so the dnd
6079         subsystem can check it. Catch exceptions thrown in dnd handlers to
6080         match MS behavoir.
6081         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
6082         * X11Dnd.cs: Handle null data in the converters. Set the XDND
6083         version when sending a XdndEnter. Use the control/hwnd dnd_aware
6084         flags to reduce the number of dnd enters/status's sent.
6085
6086 2005-10-31  Jackson Harper  <jackson@ximian.com>
6087
6088         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
6089
6090 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
6091
6092         * PictureBox.cs: Fixes 76512
6093
6094 2005-10-28  Jackson Harper  <jackson@ximian.com>
6095
6096         * X11Dnd.cs: Early implementation to support winforms being a drag
6097         source for data on X11. Also restructured the converters so they
6098         can go both ways now.
6099         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
6100         
6101 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
6102
6103         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
6104           clipboard requests
6105
6106 2005-10-27  Jackson Harper  <jackson@ximian.com>
6107
6108         * TreeNode.cs: Implement serialization so my DnD examples will work.
6109
6110 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
6111
6112         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
6113           TreeView.cs: Don't dispose objects that are not owned.
6114           
6115 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
6116
6117         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
6118           should retrieve the current cursor and report that, but XplatUI
6119           doesn't (yet) have an interface for that (and I'm not sure I even
6120           can, on X11)
6121         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
6122           until any message loop processing is done (and the WM_SETCURSOR
6123           replaces the cursor to the proper one)
6124         * XplatUIX11.cs: 
6125           - Fixed override behaviour, we can't set the cursor globally on X11, 
6126             just for our windows.
6127           - Invalidating the System.Drawing X11 display handle when we are
6128             shutting down
6129         * Control.cs: Fix to make csc happy
6130
6131 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
6132
6133         * TextBoxBase.cs: 
6134           - get_Text: Add last line (without trailing newline) to returned
6135             value (Fixes 76212)
6136           - get_TextLength: Count last line in returned length
6137           - ToString: Call Text property instead of duplicating code
6138
6139 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
6140
6141         * ImageList.cs: Dispose ImageAttributes objects.
6142
6143 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
6144
6145         * ImageList.cs: Use attribute constructors with less arguments where
6146           possible.
6147
6148 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
6149
6150         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
6151           Use typeof instead of strings when assembly is referenced. Added
6152           some more comments.
6153
6154 2005-10-21  Jackson Harper  <jackson@ximian.com>
6155
6156         * ListView.cs: Raise a double click event. Also tried to somewhat
6157         fix when the selectedindexchanged event is raised. Its still
6158         broken though.
6159
6160 2005-10-21  Jackson Harper  <jackson@ximian.com>
6161
6162         * TreeView.cs: New method to invalidate the plus minus area of a
6163         node without invalidating the whole node (maybe this can be used
6164         in some more places).
6165         * TreeNodeCollection.cs: When adding to an empty node we need to
6166         invalidate its plus minus area so the little block shows up.
6167         
6168 2005-10-21  Jackson Harper  <jackson@ximian.com>
6169
6170         * TreeView.cs: Make sure that when we invalidate a node the bounds
6171         are big enough to cover the selected box and the focus
6172         rectangle. Use a different colour for the lines connecting nodes
6173         so they show up with all themes.
6174
6175 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
6176
6177         * NativeWindow.cs: Don't call anything that could call into the driver,
6178           we might be on a different thread.
6179
6180 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
6181
6182         * Control.cs(Dispose): Since Dispose might run on a different thread,
6183           make sure that we call methods that could call into the driver via
6184           invoke, to avoid thread issues
6185
6186 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
6187
6188         * XplatUI.cs: Removed finalizer
6189         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
6190           not allowing to be called on the finalizer thread.
6191
6192 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
6193
6194         * ImageList.cs:
6195           - Reverted r51889 and r51891.
6196           - Added ImageListItem class that stores unmodified image items and image
6197             properties required to create list images until handle is created.
6198           - Added AddItem and moved image creation logic to AddItemInternal.
6199           - Added CreateHandle method that creates images based on unmodified items.
6200           - Added DestroyHandle that changes state to store unmodified items.
6201           - Add and AddStrip methods no more create handle.
6202           - ReduceColorDepth has no return value.
6203           - Dispose destroys handle.
6204           - Modified other methods to reflect the above changes.
6205           - Implemented key support.
6206           - Added profile 2.0 members and attributes.
6207           - Added private Reset and ShouldSerialize methods that provide the same
6208             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
6209             them as they are private.
6210           - Added some more comments about implementation details.
6211
6212 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
6213
6214         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
6215
6216 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
6217
6218         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
6219
6220 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
6221
6222         * DataGridDrawingLogic.cs: Fixes column hit calcultation
6223         * DataGridColumnStyle.cs: Remove debug message
6224
6225 2005-10-20  Jackson Harper  <jackson@ximian.com>
6226
6227         * TreeView.cs: We can always get input keys regardless of whether
6228         or not editing is enabled. They are used for navigation.
6229
6230 2005-10-20  Jackson Harper  <jackson@ximian.com>
6231
6232         * TreeNode.cs: Use the viewport rect for determining if a node
6233         needs to be moved for visibility. Don't use Begin/End edit. This
6234         calls a full refresh when its done.
6235         * TreeView.cs: New SetBottom works correctly.  Make the viewport
6236         rect property internal so the treenodes can see it. When clicking
6237         on a node we need to ensure that its visible because it might just
6238         be partly visible when clicked.
6239
6240 2005-10-20  Jackson Harper  <jackson@ximian.com>
6241
6242         * TreeNodeCollection.cs: Remove debug code.
6243
6244 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
6245
6246         * Datagrid.cs: Implements column sorting in Datagrid
6247         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
6248
6249 2005-10-20  Jackson Harper  <jackson@ximian.com>
6250
6251         * TreeNodeCollection.cs: Remove items properly. Update the correct
6252         area after removing them.
6253
6254 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
6255
6256         * Datagrid.cs: Should not call base.OnPaintBackground
6257
6258 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
6259
6260         * XplatUIX11.cs (GetMessage):
6261           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
6262             window instead of client window
6263           - Now properly calculates NC_xBUTTONUP message coordinates
6264           - ScreenToMenu now properly calculates it's coordinates of whole 
6265             window, since menus are in the whole window, not in the client
6266             window
6267           - Added WholeToScreen coordinate translation method
6268
6269 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
6270
6271         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
6272           want to return a message, loop back to the beginning of the function
6273           and grab the next real message to process instead.
6274
6275 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
6276
6277         * Splitter.cs: Properly set limits if no filler control is used
6278
6279 2005-10-19  Jackson Harper  <jackson@ximian.com>
6280
6281         * ColorDialog.cs: Don't show the help button if it is not enabled
6282         instead of disabling it (this is what MS does). Don't create the
6283         panel until the dialog is run, otherwise the vars (such as
6284         ShowHelp) are not set yet.
6285
6286 2005-10-19  Jackson Harper  <jackson@ximian.com>
6287
6288         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
6289         are reduced when adding nodes.
6290         * TreeNode.cs:
6291         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
6292         tree.
6293         
6294 2005-10-19  Jackson Harper  <jackson@ximian.com>
6295
6296         * FolderBrowserDialog.cs: End editing our treeview so the window
6297         actually gets refreshed.
6298
6299 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
6300
6301         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
6302           Obsoleted handling of WM_ERASEBKGND, now always draws our background
6303           inside of WM_PAINT
6304
6305 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
6306
6307         * MenuAPI.cs: Returns after Hidding window
6308         * XplatUIX11.cs: Added TODO found while debugging menu issues
6309
6310 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
6311
6312         * XplatUIX11.cs: Do not re-map the whole window when it's size
6313           becomes non-zero unless it's supposed to be actually visible
6314
6315 2005-10-18  Jackson Harper  <jackson@ximian.com>
6316
6317         * TreeView.cs: We don't need to keep a count anymore.
6318         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
6319         use the Grow method.
6320
6321 2005-10-18  Jackson Harper  <jackson@ximian.com>
6322
6323         * TreeNodeCollection.cs: Insert is not supported on arrays, so
6324         implement it manually here.
6325
6326 2005-10-18  Jackson Harper  <jackson@ximian.com>
6327
6328         * ImageList.cs: Dont kill the list when the colour depth is
6329         changed, just change the colour depth of all the images.
6330         - Same goes for setting the image size. Just resize them all
6331         instead of killing the list softly.
6332
6333 2005-10-18  Jackson Harper  <jackson@ximian.com>
6334
6335         * Control.cs: Don't invalidate empty rectangles.
6336
6337 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
6338
6339         * ListViewItem.cs:
6340           - Adds checked item to the Checked/Item lists (where empty before)
6341           - Do not add items to the Selected lists if they are already present
6342         * ListView.cs:
6343           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
6344           - When deleting items make sure that we delete them for the Selected
6345           and Checked list also.
6346
6347 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
6348
6349         * Label.cs: Dispose objects no longer used
6350         * ThemeWin32Classic.cs: Dispose objects no longer used
6351
6352 2005-10-18  Jackson Harper  <jackson@ximian.com>
6353
6354         * TabControl.cs: Don't refresh the whole control when the tabs are
6355         scrolled, we just need to refresh the tab area.
6356
6357 2005-10-17  Jackson Harper  <jackson@ximian.com>
6358
6359         * XplatUIX11.cs: Compress code a little bit. Only calculate the
6360         after handle when we need it.
6361
6362 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
6363
6364         * Control.cs: When the parent size changes, recalculate anchor 
6365           positions. Partial fix for #76462
6366
6367 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
6368
6369         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
6370           drawn. Fixes #76462
6371
6372 2005-10-17  Jackson Harper  <jackson@ximian.com>
6373
6374         * MonthCalendar.cs: Don't create the numeric up down until our
6375         handle is created. Otherwise our handle is created in the
6376         constructor and we don't know if we are a WS_CHILD or WS_POPUP
6377         yet.
6378
6379 2005-10-17  Jackson Harper  <jackson@ximian.com>
6380
6381         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
6382         correctly.
6383
6384 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
6385         * TreeNode.cs : small logical fix (was using local var instead of field)
6386         
6387 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
6388
6389         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
6390
6391 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
6392
6393         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
6394
6395 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
6396
6397         * Control.cs: 
6398           - Re-implemented anchoring code. My first version was really broken.
6399             This fixes bug #76033. Unlike the previous implementation we will
6400             no longer have round errors since all numbers are calculated from
6401             scratch every time. Removed various anchor-related obsolete vars.
6402           - InitLayout no longer causes layout event firing and layout to be 
6403             performed
6404
6405 2005-10-16  Jackson Harper  <jackson@ximian.com>
6406
6407         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
6408         which was broken).
6409
6410 2005-10-16  Jackson Harper  <jackson@ximian.com>
6411
6412         * TabControl.cs: Remove debug code.
6413
6414 2005-10-16  Jackson Harper  <jackson@ximian.com>
6415
6416         * XEventQueue.cs: Increase the default queue size (very simple
6417         apps needed to grow the queue).
6418         * Hwnd.cs: No finalizer so we don't need to suppress
6419         finalization. Compute the invalid area manually so a new rectangle
6420         does not newto be created.
6421         * ScrollableControl.cs: Don't set any params (otherwise visibility
6422         isn't set correctly).
6423         * MdiChildContext.cs: New constructor takes the mdi parent so it
6424         doesn't have to be computed and avoids a crash on windows. Draw
6425         the window icon properly, and allow the text to be seen.
6426         * Form.cs: Use new MdiChildContext constructor. Make sure the
6427         child context isn't null in wndproc.
6428         * TabControl.cs: Don't set focus, this is muddling keyboard
6429         behavoir. Expand the tab rows when a window size increase will
6430         allow extra tabs to be seen. Don't allow tabs smaller than the
6431         width of a window to be scrolled out of view.
6432         * TreeNode.cs:
6433         * TreeView.cs: Use measure string to calculate a nodes width, the
6434         width is cached and only updated when the text or the font is
6435         changed. Don't check for expand/collapse clicks on the first level
6436         nodes if root lines are disabled.
6437         
6438 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
6439
6440         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
6441
6442 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
6443
6444         * DataGridBoolColumn.cs: fixes warning
6445
6446 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
6447
6448         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
6449         to match more to match more precisely the MS Net behavior
6450
6451 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
6452
6453         * Hwnd.cs: Added field to track if window is mapped
6454         * XplatUIX11.cs: 
6455           - Unmap windows if they become 0-size, re-map when 
6456             they are >0 again; fixes #76035
6457           - Re-set our error handler after initializing X11Desktop
6458             to override any error handlers Gtk or whatever was called
6459             may have set.
6460
6461 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
6462
6463         * CheckedListBox.cs: Removed unused vars
6464         * ListView.cs: Fixed signatures
6465         * RichTextBox.cs: Removed unused vars
6466         * TextBoxBase.cs: Removed unused vars
6467         * XplatUIWin32.cs: Removed unused vars
6468         * XplatUIX11.cs: Removed unused vars
6469         * XplatUI.cs: Updated version and date to latest published
6470
6471 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
6472
6473         * Cursor.cs: Added private .ctor to work around a bug in
6474           resourceset (Thanks to Geoff Norton for the help on this)
6475         * SplitterEventArgs.cs: Made fields accessible so we don't
6476           waste boatloads of objects and can reuse the same one
6477           in Splitter
6478         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
6479           any captions and borders when generating screen coordinates
6480         * Splitter.cs: Reimplemented control, now fully complete, uses
6481           rubberband drawing, supports and obeys all properties, has
6482           proper cursors
6483
6484 2005-10-13  Miguel de Icaza  <miguel@novell.com>
6485
6486         * Form.cs (Form): Setup default values for autoscale and
6487         autoscale_base_size;  Make these instance variables, not static
6488         variables. 
6489
6490         (OnLoad): on the first load, adjust the size of the form.
6491
6492 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
6493
6494         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
6495           width argument to DrawReversibleRectangle()
6496         * XplatUIWin32.cs, XplatUIX11.cs: 
6497           - Implemented width for DrawReversibleRectangle()
6498           - Added logic to DrawReversibleRectangle that recognizes a zero
6499             width or height and only draws a line in that situation
6500         
6501 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
6502
6503         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
6504         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
6505         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
6506           method (it uses our FosterParent window to get a graphics context)
6507
6508 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
6509
6510         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
6511           and SetWindowBackground methods
6512         * Control.cs:
6513           - Setting proper ControlStyles
6514           - We no longer call XplatUI.SetWindowBackground and XplatUI.
6515             EraseWindowBackground, instead we draw the window background
6516             ourselves in PaintControlBackground. This behaviour is
6517             required to match MS, where, when OnPaintBackground is not
6518             called, the background is not drawn.
6519           - Removed unneeded Refresh() in set_Text
6520         * Hwnd.cs: Dropped the ErasePending support. No longer needed
6521         * XplatUIX11.cs:
6522           - Created DeriveStyles method to translate from CreateParams to
6523             FormBorderStyle and TitleStyle, also handles BorderStyle (which
6524             matches FormBorderStyle enum values)
6525           - Consolidated SetHwndStyles and CalculateWindowRect border/title
6526             style calculations into single DeriveStyles method
6527           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
6528             from redrawing the whole window on any resize or expose.
6529           - Fixed CreateWindow usage of SetWindowValuemask. Before not
6530             all styles were applied to our whole/client window appropriately
6531           - Removed EraseWindowBackground() and SetWindowBackground() methods
6532           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
6533             no longer clear/redraw the background through X
6534           - Removed handling of erase_pending bit, we have no use for it (or
6535             so it seems)
6536         * XplatUIOSX.cs:
6537           - Removed generation and handling of WM_ERASEBKGND message
6538           - Removed EraseWindowBackground() and SetWindowBackground() methods
6539           - Removed handling of hwnd.ErasePending flag
6540         * XplatUIWin32.cs:
6541           - Removed EraseWindowBackground() and SetWindowBackground() methods
6542           - We no longer call EraseWindowBackground on PaintEventStart, we 
6543             ignore the fErase flag, erasing is handled in Control in the
6544             background handler
6545         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
6546           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
6547           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
6548           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
6549           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
6550           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
6551           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
6552
6553 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
6554
6555         * PropertyGrids.cs: Get sub properties
6556         * PropertyGridView.cs: Fix drawing code
6557
6558 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
6559
6560         * ListBox.cs: Fixes 76383
6561
6562 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
6563
6564         * DataGridTextBoxColumn.cs: Sets location and size before attachment
6565         * ThemeWin32Classic.cs: Fixes border drawing and calculations
6566         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
6567
6568
6569 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
6570
6571         * ComboBox.cs: Fixes border drawing
6572
6573 2005-10-10  Miguel de Icaza  <miguel@novell.com>
6574
6575         * MimeIcon.cs: Ignore errors if the file can not be read.
6576
6577 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
6578
6579         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
6580          - Fixed border calculations
6581          - Fixed horizontal scrolling in single column listboxes
6582          - Fixed drawing issues
6583
6584 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
6585
6586         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
6587           FormBorderStyle enum
6588         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
6589           code to determine FormBorderStyles from CreateParams
6590         * Form.cs:
6591           - Fixed bug where we'd set the wrong window styles if we were
6592             not creating an MDI window
6593           - Added call to XplatUI.SetBorderStyle when form borders are set
6594         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
6595         * Hwnd.cs:
6596           - Removed obsolete edge style
6597           - Switched from BorderStyle to FormBorderStyle
6598         
6599 2005-10-10  Jackson Harper  <jackson@ximian.com>
6600
6601         * Form.cs: Use the property to get the window handle instead of
6602         accessing it directly. Prevents a null reference exception.
6603
6604 2005-10-10  Jackson Harper  <jackson@ximian.com>
6605
6606         * TreeView.cs: Don't adjust the rect given to DrawString now that
6607         our libgdiplus draws correctly.
6608
6609 2005-10-08  Jackson Harper  <jackson@ximian.com>
6610
6611         * TreeView.cs: Don't try to find the clicked on node if there are
6612         no nodes in the tree.
6613
6614 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
6615
6616         * RichTextBox.cs:
6617
6618           restore
6619
6620 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
6621
6622         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
6623           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
6624           ErrorProvider.cs:
6625           Use ResPool for brushes and dispose System.Drawing objects that
6626           are not used anymore.
6627
6628 2005-10-07  Jackson Harper  <jackson@ximian.com>
6629
6630         * MdiChildContext.cs: Use the new borders instead of drawing them
6631         ourselves.
6632
6633 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
6634
6635         * Calling UpdateBounds after changing the window's BorderStyle 
6636         since the style can change the ClientSize
6637
6638 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
6639
6640         * Control.cs: Made PaintControlBackground virtual
6641         * Panel.cs: Overriding PaintControlBackground instead of using paint
6642           event; paint event method was interfering with 'real' users of the
6643           event.
6644
6645 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
6646
6647         * ThemeWin32Classic.cs: remove border drawing since it is handled
6648         by the base control class now and was causing double border drawing.
6649
6650 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
6651
6652         * Panel.cs: Redraw our background on paint. Not a pretty solution,
6653           but it does seem to match MS behaviour. This fixes bug #75324
6654
6655 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
6656
6657         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
6658           somewhat hackish looking
6659
6660 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
6661
6662         * TextBoxBase.cs:
6663           - We now accept Enter even if AcceptEnter is false, if the containing
6664             form does not have an AcceptButton configured (fixes bug #76355)
6665           - Calculations are now fixed to no longer use Width/Height, but
6666             ClientSize.Width/Height, since we now support borders (this was
6667             a result of fixing borders and therefore bug #76166)
6668           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
6669             true (fixes bug #76354)
6670         
6671 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
6672
6673         * Control.cs: 
6674           - Defaulting BorderStyle and setting it in XplatUI when our window 
6675             is created
6676           - Added enum check to InternalBorderStyle setter
6677         * XplatUIX11.cs: 
6678           - Added drawing of window borders
6679           - Now properly calculates WM decorations offset for toplevel 
6680             windows (fixes bug #74763)
6681         * XplatUIWin32.cs: 
6682           - Implemented BorderStyles for windows (we're letting win32 draw 
6683             the border for us)
6684           - Fixed the signature for SetWindowLong
6685         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
6686           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
6687           setting borders
6688         * UpDownBase.cs: Remove drawing of borders, this is handled by
6689           the driver, outside the client area
6690         * ListView.cs: Removed bogus border calculations. The control should
6691           be oblivious to borders, since those are not part of the client
6692           area. 
6693         * X11DesktopColors.cs: Commented out (currently) unneeded variables
6694         * ThemeWin32Classic.cs: Removed border calculations from ListView 
6695           drawing code
6696
6697 2005-10-06  Jackson Harper  <jackson@ximian.com>
6698
6699         * MdiChildContext.cs: Clear out the old virtual position remove
6700         all the unneeded calls to CreateGraphics.
6701
6702 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
6703
6704         * TextControl.cs: Use proper color for highlighted text; fixes #76350
6705
6706 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
6707
6708         * Form.cs: 
6709           - Added loading and setting of our new default icon
6710           - Only set icon if window is already created
6711
6712 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
6713
6714         * Label.cs:
6715           - Do not explicitly set the foreground and background colors, to
6716             allow inheriting from parents (fixes #76302)
6717           - Use Control's InternalBorderStyle property to deal with borders
6718
6719 2005-10-06  Jackson Harper  <jackson@ximian.com>
6720
6721         * MdiChildContext.cs: Use the new xplatui function to draw a
6722         reversible rect.
6723
6724 2005-10-06  Jackson Harper  <jackson@ximian.com>
6725
6726         * Form.cs: Add the parent before creating the child context cause
6727         we need the parent when setting up the child.
6728
6729 2005-10-06  Jackson Harper  <jackson@ximian.com>
6730
6731         * FolderBrowserDialog.cs: redo the tree population code so a
6732         second thread isn't used. Should be a lot faster and more stable
6733         now.
6734
6735 2005-10-05  Jackson Harper  <jackson@ximian.com>
6736
6737         * TreeView.cs: There are no expand/collapse boxes if the node has
6738         no children.
6739
6740 2005-10-05  Jackson Harper  <jackson@ximian.com>
6741
6742         * X11DesktopColors.cs: Get menu colours for the gtk theme.
6743
6744 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
6745
6746         * FileDialog.cs: Fix InitialDirectory
6747
6748 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
6749
6750         * ComboBox.cs:
6751                 - Fixes changing between styles
6752                 - Fixes simple mode
6753                 - Fixes last item crashing when navigating with keyboard
6754
6755 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
6756
6757         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
6758
6759 2005-10-05  Jackson Harper  <jackson@ximian.com>
6760
6761         * TreeView.cs: If updating the root node do a full refresh.
6762         * TreeNode.cs: The root node should be expanded by default. Also
6763         added a utility prop to tell if we are the root node.
6764         * TreeNodeCollection.cs: Only refresh if the node we are being
6765         added to is expanded. Also added a comment on a potential
6766         optimization.
6767         
6768 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
6769
6770         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
6771           in dispose method. Fixes #76330
6772
6773 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
6774
6775         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
6776
6777                 - Implements vertical and horizontal scrolling using XplatUI
6778                 - Fixes keyboard navagation
6779                 - Fixes EnsureVisible
6780                 - Drawing fixes
6781                 - Handles and draws focus properly
6782
6783
6784 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
6785
6786         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
6787           Create handle. NET_2_0: Destroy handle when value is null.
6788
6789 2005-10-03  Jackson Harper  <jackson@ximian.com>
6790
6791         * ScrollBar.cs: My last scrollbar patch was broken. This is a
6792         revert and a new patch to prevent the thumb from refreshing so
6793         much.
6794
6795 2005-10-02  Jackson Harper  <jackson@ximian.com>
6796
6797         * ScrollBar.cs: Don't update position if it hasn't actually
6798         changed. This occurs when you hold down the increment/decrement
6799         buttons and the thumb gets to the max/min.
6800
6801 2005-10-01  Jackson Harper  <jackson@ximian.com>
6802
6803         * Form.cs:
6804         * MdiChildContext.cs:
6805         * MdiClient.cs: Implement ActiveMdiChild in Form.
6806
6807 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
6808
6809         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
6810
6811 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
6812
6813         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
6814           be found
6815
6816 2005-09-30  Jackson Harper  <jackson@ximian.com>
6817
6818         * ListBox.cs: Don't do a full refresh unless some data has
6819         actually changed.
6820
6821 2005-09-30  Jackson Harper  <jackson@ximian.com>
6822
6823         * TreeView.cs: Make sure that the checkboxes size is factored in
6824         even when not visible.
6825
6826 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
6827
6828         * FileDialog.cs: Fix Jordi's build break
6829
6830 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
6831
6832         * FileDialog.cs: 
6833                 - Use standard the Windows colours for the combobox as espected
6834                 - Dispose objects that use resouces when no longer need them
6835
6836 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
6837
6838         * X11DesktopColors.cs: Initial incomplete implementation
6839         * XplatUIX11.cs: Added call to initialize X11DesktopColors
6840
6841 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
6842
6843         * Theme.cs: 
6844           - Switched Theme color names to match the names defined in 
6845             System.Drawing.KnownColors. Life's hard enough, no need to make 
6846             it harder.
6847           - Added setters to all theme color properties so themes can set
6848             their color schemes. The setters also propagate the color changes
6849             to System.Drawing.KnownColors via reflection
6850         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
6851           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
6852           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
6853           use the new, more logical theme color names
6854         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
6855           post-NT colors
6856         * ThemeWin32Classic.cs:
6857           - Removed code to set the old classic Windows colors. Instead it
6858             now relies on the colors returned by System.Drawing.KnownColors
6859             which will be either modern static colors (Unix) or colors
6860             read from the user's configuration (Win32)
6861           - Updated to use the new, more logical theme color names
6862           - Switched DataGrid drawing code to use only Theme colors instead of
6863             a mix of System.Drawing.KnownColors and Theme colors
6864           - DrawFrameControl(): Removed code that fills the button area, the
6865             fill would overwrite any previous fill done by a control. This
6866             fixes bug #75338 
6867           - Added DrawReversibleRectangle() stub
6868         * ScrollableControl.cs: Set visible state to false when scrollbars
6869           are removed (pdn fix)
6870         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
6871           DrawReversibleRectangle() method to allow drawing primitive 
6872           'rubber bands'
6873         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
6874
6875 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6876
6877         * ImageList.cs: Add(Icon): Create handle.
6878
6879 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
6880
6881         * ListView.cs:
6882         * ThemeWin32Classic.cs:
6883                 - Fixes detail mode
6884                 - Sets clippings
6885                 - Issues with drawing
6886
6887 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6888
6889         * ImageList.cs: Moved RecreateHandle back to ImageList as event
6890           source has to be the ImageList.
6891
6892 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6893
6894         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
6895
6896 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6897
6898         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
6899
6900 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6901
6902         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
6903
6904 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
6905         * GridItem.cs: Fixed TODOs
6906         * GridItemCollection.cs: Added ICollection interface
6907
6908 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6909
6910         * ImageList.cs: Resize icons when needed.
6911
6912 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
6913
6914         * ListViewItem.cs
6915                 - Fixes GetBounds and returns on screen rects
6916         * ListView.cs:
6917                 - Fixes vertical and horzintal scrolling of items
6918         * ThemeWin32Classic.cs:
6919                 - Fixes drawing
6920                 
6921 2005-09-29  Raja R Harinath  <harinath@gmail.com>
6922
6923         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
6924
6925 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
6926
6927         * ImageList.cs: Added comments about handle creation. Moved Handle,
6928           HandleCreated and OnRecreateHandle implementations to ImageCollection.
6929           Handle is created in Add methods.
6930
6931 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
6932          
6933         * DataGridDrawingLogic.cs: 
6934                 - Takes rows into account on Colum calculations
6935                 - Returns the column when clickig
6936         * DataGrid.cs:
6937                 - Fixes default HitTestInfo values
6938                 - Fixes HitTestInfo.ToString
6939                 - Fixes ResetBackColor          
6940         
6941 2005-09-28  Jackson Harper  <jackson@ximian.com>
6942
6943         * MdiChildContext.cs: Obey rules for fixed sized windows (no
6944         sizing or cursor changes). Also added some temp code to draw the
6945         titlebars text (Makes dev a little easier).
6946
6947 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
6948
6949         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
6950
6951 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
6952          
6953         * ListBox.cs: Fixes bug 76253
6954
6955 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
6956
6957         * ImageList.cs: Added comments about the current implementation. Added
6958           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
6959           Format32bppArgb to preserve transparency and can use Graphics.FromImage
6960           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
6961           with Bitmap.LockBits for better performance. Revised the whole file to
6962           match MS.NET behaviour and provide better performance. Non-public
6963           interface members are calling public members even when they throw
6964           NotSupportedException for better maintainability. Moved ColorDepth,
6965           ImageSize, ImageStream and TransparentColor implementations to
6966           ImageCollection for better performance as these properties are not used
6967           by ImageList.
6968         * ImageListStreamer.cs: Added a new internal constructor that takes an
6969           ImageList.ImageCollection and serializes Images based on
6970           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
6971           match ImageList property name.
6972
6973 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
6974
6975         * ListBox.cs: Fixes IndexFromPoint for last item
6976
6977 2005-09-27  Jackson Harper  <jackson@ximian.com>
6978
6979         * Form.cs: Set the position of new mdi children correctly.
6980
6981 2005-09-27  Jackson Harper  <jackson@ximian.com>
6982
6983         * MdiClient.cs: New mdi children need to be added to the back of
6984         the controls collection so the zorder is set correctly. Also add a
6985         count of all the child windows that have been created.
6986
6987 2005-09-27  Jackson Harper  <jackson@ximian.com>
6988
6989         * Form.cs (CreateParams): Setup MDI forms correctly.
6990
6991 2005-09-27  Jackson Harper  <jackson@ximian.com>
6992
6993         * MdiChildContext.cs:
6994         * MonthCalendar.cs:
6995         * UpDownBase.cs:
6996         * ListBox.cs:
6997         * ListView.cs:
6998         * TextBoxBase.cs:
6999         * TreeView.cs:
7000         * ScrollableControl.cs:
7001         * ComboBox.cs: Add implicit controls using the new implict control
7002         functionality in ControlCollection. Also try to block multiple
7003         control add in a suspend/resume layout to save some cycles.
7004         
7005 2005-09-27  Jackson Harper  <jackson@ximian.com>
7006
7007         * Control.cs: Add functionality to the controls collection to add
7008         'implicit controls' these are controls that are created by the
7009         containing control but should not be exposed to the user. Such as
7010         scrollbars in the treeview.
7011         * Form.cs: The list var of the ControlsCollection is no longer
7012         available because of the potential of implicit controls getting
7013         ignored by someone accessing the list directly.
7014
7015 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
7016
7017         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
7018           loose it's parent. (Fixed bug introduced in r49103 when we added
7019           setting the child parent to null on Remove)
7020
7021 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
7022
7023         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
7024         * Splitter.cs: Added missing attributes for BorderStyle property.
7025         * TextBoxBase.cs: Marked Calculate* methods internal.
7026         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
7027         MS.NET.
7028
7029 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
7030          
7031         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
7032
7033 2005-09-25  Jackson Harper  <jackson@ximian.com>
7034
7035         * TreeView.cs: Update the node bounds correctly regardless of
7036         whether the node is visible.
7037
7038 2005-09-25  Jackson Harper  <jackson@ximian.com>
7039
7040         * ImageList.cs: Don't dispose the image after it is added to the
7041         image list. Only reformat images that need to be resized.
7042
7043 2005-09-25  Jackson Harper  <jackson@ximian.com>
7044
7045         * ImageList.cs: Don't set the format when changing the image.
7046
7047 2005-09-25  Jackson Harper  <jackson@ximian.com>
7048
7049         * TreeView.cs: We can't just assume the node has a font. Use the
7050         treeviews font if no node font is available.
7051
7052 2005-09-25  Jackson Harper  <jackson@ximian.com>
7053
7054         * TreeView.cs: Allow the scrollbars to be reset with negative
7055         values.
7056         - Don't add scrollbars to negative sized windows.
7057
7058 2005-09-23  Jackson Harper  <jackson@ximian.com>
7059
7060         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
7061         old Mono.Posix. Also remove some stray code that shouldn't have
7062         been committed.
7063
7064 2005-09-23  Jackson Harper  <jackson@ximian.com>
7065
7066         * TreeView.cs: Attempt at proper sizing of the horizontal
7067         scrollbar. Also don't resize the scrollbars unless they are
7068         visible.
7069
7070 2005-09-23  Jackson Harper  <jackson@ximian.com>
7071
7072         * TreeView.cs: We don't need to expand the invalid area when the
7073         selection changes, as this is all drawn in the node's bounding
7074         box. The area needs to be expanded (previous typo was contracting
7075         it) when the focus rect moves.
7076
7077 2005-09-23  Jackson Harper  <jackson@ximian.com>
7078
7079         * TreeView.cs: Display the selection box under the correct
7080         circumstances. We were rendering white text with no selection box
7081         before.
7082
7083 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
7084
7085         * TextControl.cs(Split): Now updates selection start/end if it points 
7086           into a line that's being split. Fixes a FIXME and bug #75258
7087
7088 2005-09-23  Jackson Harper  <jackson@ximian.com>
7089
7090         * Binding.cs:
7091         * ListControl.cs: Don't use the path when retrieving binding
7092         managers from the binding context. My bat sense tells me that the
7093         path is only used on insertion.
7094
7095 2005-09-22  Jackson Harper  <jackson@ximian.com>
7096
7097         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
7098
7099 2005-09-22  Jackson Harper  <jackson@ximian.com>
7100
7101         * Splitter.cs: There are special cursors used for splitting.
7102         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
7103
7104 2005-09-22  Jackson Harper  <jackson@ximian.com>
7105
7106         * Splitter.cs: Change the cursor appropriately when the splitter
7107         is moused over, so the user actually knows there is a splitter
7108         there.
7109
7110 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
7111
7112        * Label.cs : Fix ToString method to give same output as MS.NET
7113
7114 2005-09-22  Jackson Harper  <jackson@ximian.com>
7115
7116         * TreeView.cs: Create the scrollbars when the handle is created
7117         and add them right away, just make them invisble. Also account for
7118         the window being shrunk vertically to the point that the vert
7119         scrollbar needs to be added.
7120         - Remove some 0.5 adjustments to get around anti aliasing issues.
7121         
7122 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
7123          
7124         * MainMenu.cs: Fixes default value
7125         * MenuItem.cs: Fixes default value
7126
7127 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
7128
7129         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
7130
7131 2005-09-21  Jackson Harper  <jackson@ximian.com>
7132
7133         * Control.cs: Don't try to set the border style on the window if
7134         it hasn't been created. When the window is created the border
7135         style will be used.
7136
7137 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
7138
7139         * Control.cs (Update): Don't call XplatUI if we don't have a
7140           window handle yet
7141
7142 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
7143
7144         * ContainerControl.cs: Instead of throwing an exception, print
7145           a one-time warning about Validate not being implemented
7146         * XplatUIWin32.cs: Removed debug output
7147
7148 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
7149
7150         * Control.cs: Only set XplatUI background if we expect the windowing
7151           system to handle the background. This stops controls that draw their
7152           own background from flickering
7153
7154         * XplatUIX11.cs: Support custom visuals and colormaps for window 
7155           creation. This allows, amongst other things, using MWF X11 windows 
7156           with OpenGL.
7157
7158 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
7159
7160         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
7161           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
7162           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
7163           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
7164           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
7165           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
7166           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
7167           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
7168           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
7169           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
7170           GridColumnStylesCollection.cs, 
7171           IDataGridColumnStyleEditingNotificationService.cs,
7172           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
7173           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
7174           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
7175           TreeNodeCollection.cs, AmbientProperties.cs, 
7176           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
7177           DataObject.cs, ErrorProvider.cs, Splitter.cs,
7178           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
7179           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
7180           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
7181           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
7182           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
7183           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
7184           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
7185           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
7186           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
7187           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
7188           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
7189           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
7190           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
7191           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
7192           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
7193           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
7194           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
7195           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
7196           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
7197           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
7198           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
7199           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
7200           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
7201           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
7202           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
7203           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
7204           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
7205           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
7206           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
7207           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
7208           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
7209           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
7210           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
7211           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
7212           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
7213
7214 2005-09-21  Jackson Harper  <jackson@ximian.com>
7215
7216         * TreeNode.cs: Call Before/After Expand not Collapse when
7217         expanding.
7218
7219 2005-09-20  Jackson Harper  <jackson@ximian.com>
7220         
7221         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
7222
7223 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
7224          
7225         * ListViewItem.cs:
7226                 - Fixes bug 76120
7227                 - Fixes proper storing of subitems
7228                 - Fixes not updated items
7229
7230 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
7231
7232         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
7233           things if our window handle isn't created yet. Also disabled 
7234           debug for TextBoxBase
7235
7236 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
7237
7238         * MenuAPI.cs: Remove filtering of events to allow menu usage
7239
7240 2005-09-20  Miguel de Icaza  <miguel@novell.com>
7241
7242         * Cursor.cs: Allow null to be passed to Cursor.Current.
7243
7244 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
7245
7246         * ThemeWin32Classic.cs:
7247           - Change some private methods/fields to protected virtual so that 
7248             they can be accessed and overriden in derived classes
7249           - First refactoring of some methods. Derived themes now don't 
7250             need to duplicate the complete code from ThemeWin32Classic
7251         * ThemeNice.cs:
7252           - Added nice StatusBar
7253           - Derive from ThemeWin32Classic and not Theme
7254           - Removed duplicate ThemeWin32Classic code
7255
7256 2005-09-20  Miguel de Icaza  <miguel@novell.com>
7257
7258         * Control.cs (ControlCollection.Add): If the value null is passed
7259         the control is ignored. 
7260
7261         Optimize this loop.
7262
7263 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
7264
7265         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
7266           PostQuitMessage state.
7267         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
7268
7269 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
7270
7271         * Application.cs: Our constructor will never get called, move 
7272           initialization to fields; fixes bug #75933
7273
7274 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
7275
7276         * FileDialog.cs :
7277                 - Allow files to be selected properly using file name
7278                 combo box.
7279                 - Add ability to change diretory (absolute / relative)
7280                 using file name combo box.
7281
7282 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
7283          
7284         * ListBox.cs: 
7285                 - Fixes Multicolumn listboxes item wrong calculations
7286                 - Allows to click when only one item is in the listbox
7287                 - Fixes crash when no items using keyboard navigation
7288
7289 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
7290
7291         * ComboBox.cs: Reverted almost everything from the latest patch which
7292           broke ComboBox
7293
7294 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
7295         
7296         * ToolTip.cs:
7297                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
7298         * ComboBox.cs:
7299                 - When DropDownStyle is Simple, it does not show scrollbar 
7300                 to the last item of the list.
7301                 - When DropDownStyle is Simple, it crashed when the list was 
7302                 scrolled down with the down cursor key.
7303                 - Fixed a bug that when DropDownStyle is DropDownList, the 
7304                 selected item was not shown.
7305                 - The position of the selected item was not preserved when 
7306                 the next dropdown happened.
7307         * ThemeWin32Classic.cs:
7308                 - Items were wrapped at the right end.
7309         * CheckedListBox.cs:
7310                 - Fixed Add method
7311         * ListBox.cs:
7312                 - Items should be fully shown.
7313                 - When resizing and vertical scrollbar disappeared, the item 
7314                 of index 0 should be on the top of the list.
7315                 - GetItemRectangle should consider the size of ver. scrollbar
7316         * StatusBar.cs:
7317                 - SizingGrip area should not be allocated when it is not 
7318                 displayed.
7319                 - Now it reflects MinWidth of the containing panel and 
7320                 fixed a crash that happens when its width becomes so small.
7321
7322 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
7323
7324         * CheckedListBox.cs: Fixes bug 76028
7325         * ListBox.cs: Fixes bug 76028
7326
7327 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
7328
7329         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
7330         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
7331
7332 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
7333
7334         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
7335
7336 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
7337
7338         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
7339
7340 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
7341
7342         * IRootGridEntry.cs: Added
7343         * PropertyGridCommands.cs: Added
7344         * PropertiesTab.cs: Added missing methods and property
7345         * PropertyGridView.cs: Made class internal
7346         * PropertyGridTextBox.cs: Made class internal
7347
7348 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
7349
7350         * MimeIcon.cs: Try to check some other environment variables
7351           if "DESKTOP_SESSION" returns "default"
7352
7353 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
7354
7355         * ThemeNice.cs: Corrected background colors (e.g. menus)
7356         * ColorDialog.cs: Use correct background colors for controls
7357
7358 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
7359
7360         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
7361
7362 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
7363
7364         * RichTextBox.cs: Added initial implementation
7365         * lang.cs: Removed. Was accidentally checked in long time ago
7366         * TODO: Removed. Contents were obsolete
7367
7368 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
7369                                                                                 
7370         * PropertiesTab.cs : Added
7371
7372 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
7373                                                                                 
7374         * PropertyGrid.cs : Update
7375         * PropertyGridView.cs : Update
7376         * System.Windows.Forms.resx : Added images and strings
7377
7378 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
7379
7380         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
7381  
7382 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
7383
7384         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
7385           a busy loop right after the Ungrab the X11 display is otherwise 
7386           blocked
7387
7388 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
7389
7390         * ThemeWin32Classic.cs: Optimise the use of clipping
7391
7392 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
7393
7394         * DataGrid.cs: fixes recursion bug
7395
7396 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
7397
7398         * ThemeNice.cs: 
7399           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
7400           - Cleanup
7401
7402 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
7403
7404         * ThemeNice.cs: Draw nice ProgressBars
7405
7406 2005-09-01  Miguel de Icaza  <miguel@novell.com>
7407
7408         * VScrollBar.cs: Another buglet found by Aaron's tool. 
7409
7410         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
7411         bug finder.
7412
7413 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
7414
7415         * ThemeNice.cs:
7416           - Added nicer menu drawing
7417           - Updated DrawTab
7418           - some refactoring
7419
7420 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
7421
7422         * CreateParams.cs (ToString): Made output match MS
7423         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
7424             handle is already created (to avoid forcing window creation)
7425         * XplatUIX11.cs: Set window text to caption after creating window,
7426           in case Text was set before window was created
7427         * Form.cs: Use this.Text instead of a static string as caption
7428
7429 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
7430
7431         * NotifyIcon.cs: Don't set the window to visible; this screws
7432           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
7433           OnPaint without a bitmap)
7434         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
7435           happen very often anyway; we could add the check to the WM_PAINT 
7436           event generation code
7437
7438 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
7439
7440         * NotifyIcon.cs: Fill the icon area with a background color, to 
7441           avoid 'residue' when transparent icons are drawn
7442         * XplatUIX11.cs:
7443           - Handle whole_window == client_window when destroying windows
7444           - SystrayAdd(): Set client_window to whole_window value to
7445             get mouse and other events passed to NotifyIcon
7446
7447 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
7448
7449         * Form.cs: Set proper default for Opacity property
7450         * NotifyIcon.cs:
7451           - ShowSystray(): Don't bother creating telling the OS
7452             about the systray item if no icon is provided
7453           - Now handles WM_NCPAINT message to deal with whole/client window
7454             split
7455           - Create window as visible to not get caught by Expose optimization
7456         * Hwnd.cs: Removed debug message
7457         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
7458           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
7459             PaintEventStart/End to use new client argument
7460         * TextBoxBase.cs:
7461           - Commented out debug messages
7462           - Switched PaintEventStart/End to use new client argument
7463         * XplatUI.cs: Added client window bool to PaintEventStart()/
7464           PaintEventEnd() calls, to support drawing in non-client areas
7465         * XplatUIDriver.cs: 
7466           - Added client window bool to PaintEventStart()/PaintEventEnd() 
7467             calls, to support drawing in non-client areas
7468           - Added conditional compile to allow using MWF BeginInvoke 
7469             on MS runtime
7470         * XplatUIX11.cs:
7471           - Added some conditional debug output
7472           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
7473             whole/client window split
7474           - Implemented handling of client argument to PaintEventStart()/End()
7475         * Control.cs:
7476           - Throw exception if BeginInvoke() is called and the window handle
7477             or one of the window's parent handles is not created
7478           - Added conditional compile to allow using MWF BeginInvoke on
7479             MS runtime
7480           - get_Parent(): Only sets parent if handle is created. This avoids
7481             forcing window handle creation when parent is set.
7482           - Now fires Layout and Parent changed events in proper order
7483           - Switched to use Handle instead of window.Handle for Z-Order setting,
7484             the get_Parent() patch above causes us to possibly get null for 'window'
7485           - Implemented handling of client argument to PaintEventStart()/End()
7486           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
7487             default handling)
7488           - Now sends a Refresh() to all child windows when Refresh() is called
7489
7490 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
7491
7492         * Form.cs: Added (non-functional) Opacity property
7493         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
7494
7495 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
7496         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
7497           use export MONO_THEME=nice to activate it.
7498           Currently supported controls:
7499           - Button
7500           - ComboBox
7501           - ScrollBar
7502           - TabControl (TabAlignment.Top only, other will follow)
7503         * ThemeEngine.cs: Add theme nice
7504         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
7505           if enabled
7506
7507 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
7508
7509         * Splitter.cs: Resize docked control and its neighbor.
7510
7511 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
7512         -- Making Windows with Menus layout correctly --
7513         * Form.cs : The first leg of the fix
7514                 Menu setter - adjust Client Size as needed to make space for the menu
7515                 SetClientSizeCore - doesn't call base version to be able to pass the 
7516                         menu handle to XplatUI.CalculateWindowRect
7517         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
7518         * XplatUIX11.cs: The critical second leg of the fix
7519                 GetWindowPos needs to use a recalculated client_rect
7520                 so that resizing the window doesn't break layout of child controls. 
7521                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
7522                 Lots of \t\n killed
7523
7524 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
7525
7526         * Label.cs: Now properly recalculates width and height on Font and Text
7527           changes if AutoSize is set
7528
7529 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
7530         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
7531
7532 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
7533
7534         * ImageList.cs: Makes ToString method compatible with MS
7535
7536 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
7537
7538         * MenuAPI.cs: fixes bug 75716
7539
7540 2005-08-11 Umadevi S <sumadevi@novell.com>
7541         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
7542
7543 2005-08-11 Umadevi S <sumadevi@novell.com>
7544         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
7545
7546 2005-08-10  Umadevi S <sumadevi@novell.com>
7547         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
7548
7549 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
7550
7551         * Menu.cs: fixes bug 75700
7552         * MenuAPI.cs: fixes navigation issues
7553
7554 2005-08-09  Umadevi S <sumadevi@novell.com>
7555         * CheckedListBox.cs - simple fix for GetItemChecked.
7556
7557 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
7558
7559         * ComboBox.cs: Serveral fixes
7560         * ListBox.cs: Serveral fixes
7561
7562 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
7563
7564         * ComboBox.cs: Fixes FindString methods and GetItemHeight
7565         * ListBox.cs: Fixes FindString methods
7566
7567 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
7568
7569         * DataGrid.cs: fixes bugs exposed by new tests
7570
7571 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
7572
7573         * Mime.cs: Compile Mono assembly references only if compiling
7574           with Mono (Allows to build with VS.Net again)
7575
7576 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
7577
7578         * Control.cs (PaintControlBackground): Draw background image
7579         corrrectly.
7580         (CheckForIllegalCrossThreadCalls): Stubbed.
7581         
7582         * Form.cs (OnCreateControl): Center when should be centered.
7583         
7584         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
7585
7586 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
7587
7588         * Binding.cs: Binding to properties should be case unsensitive
7589
7590 2005-07-18 vlindos@nucleusys.com
7591
7592         * DataGrid.cs: fixes setmember order
7593
7594 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
7595
7596         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
7597         * FileDialog.cs: FileDialog is now resizable and uses the new
7598           MimeIconEngine
7599
7600 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
7601
7602         * DataGridTextBoxColumn.cs: default value
7603         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
7604         * GridTableStylesCollection.cs: fixes checking MappingName
7605         * DataGridDrawingLogic.cs: fixes drawing logic issues
7606         * DataSourceHelper.cs: rewritten to make compatible with more data sources
7607         * DataGrid.cs: fixes    
7608
7609 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
7610
7611         * MimeGenerated.cs: Use case sensitive comparer for
7612           NameValueCollections
7613
7614 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
7615
7616         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
7617         * ThemeWin32Classic.cs: bug fixes, code refactoring
7618         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
7619         * DataGrid.cs: bug fixes, code refactoring
7620         * DataGridTextBox.cs: bug fixes, code refactoring
7621         * DataGridColumnStyle.cs:  bug fixes, code refactoring
7622         * Theme.cs:  bug fixes, code refactoring
7623
7624 2005-07-01  Peter Bartok  <pbartok@novell.com> 
7625
7626         * TextControl.cs: Quick fix for the reported crash on ColorDialog
7627           and other text box usage
7628
7629 2005-07-01  Jackson Harper  <jackson@ximian.com>
7630
7631         * TabControl.cs: Make sure the bottom of the tab covers the pages
7632         border.
7633
7634 2005-06-30  Peter Bartok  <pbartok@novell.com> 
7635
7636         * Form.cs (ShowDialog): Assign owner of the dialog
7637         * TextBoxBase.cs: Always refresh caret size when deleting, caret
7638           might have been moved to a tag with different height
7639
7640 2005-06-30  Jackson Harper  <jackson@ximian.com>
7641
7642         * Form.cs: Don't create an infinite loop when setting focus
7643         * MenuItem.cs: Don't dirty the parents if we don't have any
7644
7645 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
7646
7647         * LibSupport.cs: Rename
7648
7649 2005-06-29  Peter Bartok  <pbartok@novell.com>
7650
7651         * TextBoxBase.cs: Re-align caret after deleting a character
7652         * TextControl.cs:
7653           - DeleteChars(): Ensure that tag covers the provided position
7654           - StreamLine(): Drop reference for dropped tag
7655
7656 2005-06-29  Peter Bartok  <pbartok@novell.com> 
7657
7658         * TextControl.cs: 
7659           - Selections now work properly, anchoring at the initial location
7660             and properly extending in either direction (SetSelectionToCaret(),
7661             SetSelectionStart() and SetSelectionEnd())
7662           - No longer redraws the whole control on selection change, now
7663             calculates delta between previous and new selection and only
7664             invalidates/redraws that area
7665           - Fixed FindPos() math off-by-one errors
7666           - Changed DeleteChars() to verify the provided tag covers the
7667             provided position, selections may have a tag that doesn't cover
7668             the position if the selection is at a tag border
7669           - Fixed off-by-one errors in DeleteChars()
7670           - Added missing streamlining check in DeleteChars() to remove
7671             zero-length tags
7672           - Implemented Invalidate() method, now properly calculates exposures
7673             between two given lines/positions
7674           - Implemented SetSelection()
7675           - Obsoleted and removed FixupSelection()
7676           - Improved RecalculateDocument() logic, removing code duplication
7677
7678 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7679
7680         * LibSupport.cs: changes to match different input/output arguments.
7681
7682 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7683
7684         * LibSupport.cs: added libsupport.so init routine.
7685
7686 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
7687         
7688         * ControlBindingsCollection.cs
7689                 - Throws an exception on null datasource when adding
7690                 - Checks for duplicated bindings when adding
7691
7692 2005-06-28  Jackson Harper  <jackson@ximian.com>
7693
7694         * TreeView.cs (OnKeyDown): Support left and right properly
7695         (navigates as well as expanding and collapsing.
7696         - Add support for Multiply, this expands all the selected nodes
7697         children.
7698         - Fix some tabbing.
7699
7700 2005-06-28  Jackson Harper  <jackson@ximian.com>
7701
7702         * TreeView.cs: Implement keyboard navigation, currently supports,
7703         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
7704         support for toggling checkboxes with the space bar.
7705
7706 2005-06-28  Jackson Harper  <jackson@ximian.com>
7707
7708         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
7709         tree.
7710
7711 2005-06-28  Jackson Harper  <jackson@ximian.com>
7712
7713         * TreeView.cs: Add missing event.
7714
7715 2005-06-27  Peter Bartok  <pbartok@novell.com> 
7716
7717         * TextControl.cs:
7718           - Made line ending size configurable (now allows for counting 
7719             lineendings as \n or \r\n)
7720           - Added margin to viewport to keep caret visible on right side
7721           - Fixed translation routines for line/pos to documentpos to consider
7722             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
7723           - Fixed some line-endings to be unix style
7724           - Fixed Document.FormatText to perform it's calculations 1-based
7725           - Added descriptions for a few methods that might otherwise get 
7726             used wrong
7727           - Added NOTE section with some basic conventions to remember at 
7728             the top of the file
7729           - Major fixup for RichTextBox selection drawing:
7730             * Fixed crashes when multiple tags on a single line were selected
7731             * fixed selection box drawing not overlaying text
7732             * fixed bogus offset calculation for tags not starting at index 1
7733             * Switched behaviour from using multiple Substrings of a 
7734               StringBuilder.ToString() to using multiple 
7735               StringBuilder.ToString(start, length) statements, hoping this is
7736               faster (kept original version commented out in the code, in case
7737               original version was faster)
7738         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
7739           alignment != Left
7740         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
7741           call it as well
7742
7743 2005-06-27  Jackson Harper  <jackson@ximian.com>
7744
7745         * TabControl.cs: Move to the left and right with the arrow
7746         keys. These keys don't cycle beyond first and last like
7747         tab. Refresh all the tabs when scrolling them to the left or
7748         right.
7749
7750 2005-06-27  Jackson Harper  <jackson@ximian.com>
7751
7752         * TabControl.cs:
7753           - ToString: Added method
7754           - CreateParams: Remove TODO and comment
7755           - OnKeyDown: Cycle through bounds properly.
7756           - SelectedIndex: Scroll to the right or left if we need to
7757           display the newly selected tab.
7758
7759 2005-06-23  Jackson Harper  <jackson@ximian.com>
7760
7761         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
7762         set.
7763
7764 2005-06-23  Jackson Harper  <jackson@ximian.com>
7765
7766         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
7767         CTRL-SHIFT-TAB, and HOME, END are there any others?
7768
7769 2005-06-23  Jackson Harper  <jackson@ximian.com>
7770
7771         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
7772
7773 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
7774         
7775         * DataGridTextBoxColumn.cs: fixes and enhancements
7776         * ThemeWin32Classic.cs: fixes and enhancements
7777         * DataGridBoolColumn.cs:  fixes and enhancements
7778         * DataGridDrawingLogic.cs:  fixes and enhancements
7779         * CurrencyManager.cs: fixes and enhancements
7780         * DataGrid.cs: fixes and enhancements
7781         * DataGridColumnStyle.cs:  fixes and enhancements
7782
7783 2005-06-22  Jackson Harper  <jackson@ximian.com>
7784
7785         * TabControl.cs: Add some missing methods that just call into the
7786         base. Make the TabPageCollection's IList interface behave in the
7787         same manner as the MS implementation.
7788
7789 2005-06-22  Peter Bartok  <pbartok@novell.com> 
7790
7791         * TextControl.cs: Added sanity check
7792         * TextBoxBase.cs: 
7793           - Fixed wrapping behaviour, don't set wrap on single line controls
7794             (this fixes the breakage of colordialog introduced in an earlier
7795              checkin)
7796           - Added rudimentary support for autoscrolling right-aligned controls
7797             (still needs fixing, also, center alignment scroll is missing)
7798
7799 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
7800         
7801         * ScrollBar.cs: Fixes thumbpos on Maximum values
7802
7803 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
7804         
7805         * PropertyGridView.cs: Pass context information to UITypeEditors 
7806
7807 2005-06-21  Peter Bartok  <pbartok@novell.com> 
7808
7809         * TextBoxBase.cs:
7810           - Now calling PositionCaret with absolute space coordinates
7811           - Enabled vertical scrolling
7812           - Better tracking of scrollbar changes, tied into WidthChange
7813             event
7814           - Improved cursor tracking
7815           - Removed debug output
7816         * TextControl.cs:
7817           - PositionCaret coordinates are now works in absolute space, not 
7818             the canvas
7819           - Improved tracking of document size
7820           - Added events for width and height changes
7821
7822 2005-06-21  Peter Bartok  <pbartok@novell.com>
7823
7824         * Form.cs: Set focus to active control when form is activated
7825         * TextControl.cs: 
7826           - Added word-wrap functionality to RecalculateLine() 
7827           - Added some short function descriptions for VS.Net to aid in
7828             writing dependent controls
7829           - Added Caret property, returning the current coords of the caret
7830           - Added ViewPortWidth and ViewPortHeight properties
7831           - Added Wrap property
7832           - Added CaretMoved event
7833           - Removed some old debug code
7834           - Split() can now create soft splits
7835           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
7836           - Added method to format existing text
7837           - Fixed size/alignment calculations to use viewport
7838           - RecalculateDocument now can handle changing line-numbers while
7839             calculating lines
7840
7841         * TextBox.cs:
7842           - Added some wrap logic, we don't wrap if alignment is not left
7843           - Added casts for scrollbar var, base class switched types to
7844             also support RichTextBoxA
7845           - Implemented handling of scrollbar visibility flags
7846
7847         * TextBoxBase.cs:
7848           - Switched scrollbars type to RichTextBoxScrollBars to support
7849             RichTextBox
7850           - Added tracking of canvas width/height
7851           - Switched scrollbars to be not selectable (to keep focus on text)
7852           - Added central CalculateDocument() method to handle all redraw
7853             requirements
7854           - Added ReadOnly support
7855           - Added WordWrap support
7856           - Fixed handling of Enter key (we now treat it as a DialogKey)
7857           - Fixed caret positioning when h or v scroll is not zero
7858           - Fixed placing/generation of vertical scrollbar
7859           - Added CalculateScrollBars() method to allow updating scrollbar
7860             limits and visibility
7861           - Fixed handling of horizontal scroll
7862           - Added handling of vertical scroll
7863           - Implemented auto-'jump' when caret moves to close to a left or
7864             right border and there is text to be scrolled into view (currently
7865             there's the potential for a stack overflow, until a bug in
7866             scrollbar is fixed)
7867
7868 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
7869         
7870         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
7871
7872 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
7873
7874         * Mime.cs:
7875         - added inodes.
7876         - return application/x-zerosize for files with size zero
7877           (if no extension pattern matches).
7878         - check matches collection for strings too.
7879         - return only the first mime type if the name value
7880           collection has more than one mime type.
7881
7882 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
7883         
7884         * PropertyGrid.cs: Cleaned up some TODOs
7885         * PropertyGridView.cs: Added support for UITypeEditors
7886
7887 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
7888         
7889         * DataGrid.cs: clears cached value
7890
7891 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
7892
7893         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
7894         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
7895         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
7896         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
7897         
7898 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
7899
7900         * ThemeWin32Classic.cs: fixes colour
7901
7902 2005-06-15  Peter Bartok  <pbartok@novell.com>
7903
7904         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
7905         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
7906         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
7907         * Control.cs: Added some MWFCategory and MWFDescription attributes
7908         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
7909
7910 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
7911
7912         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
7913         usage
7914
7915 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
7916
7917         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
7918         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
7919         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
7920         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
7921         * DataGrid.cs: default datagrid settings for Default Styles, fixes
7922         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
7923
7924 2005-06-13  Jackson Harper  <jackson@ximian.com>
7925
7926         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
7927         isn't printed when the user enables dropping. (X11 does accept
7928         drops).
7929         
7930 2005-06-13  Jackson Harper  <jackson@ximian.com>
7931
7932         * TreeView.cs: Remove some TODOS.
7933
7934 2005-06-13  Jackson Harper  <jackson@ximian.com>
7935
7936         * Form.cs: Hook into the mdi framework.
7937         * MdiClient.cs: Use the base control collections add method so
7938         parents get setup correctly. Set the default back colour and dock
7939         style.
7940         * MdiChildContext.cs: New class, this bad actor handles an
7941         instance of an MDI window. Right now there is only basic
7942         support. You can drag, close, and resize windows. Minimize and
7943         Maximize are partially implemented.
7944
7945 2005-06-13  Jackson Harper  <jackson@ximian.com>
7946
7947         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
7948         freaky when both vals are negative. NOTE: There are probably other
7949         places in XplatUIX11 that this needs to be done.
7950
7951 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
7952
7953         * DataGrid.cs: implement missing methods, move KeyboardNavigation
7954         * DataGridColumnStyle.cs: fixes signature
7955
7956 2005-06-12  Jackson Harper  <jackson@ximian.com>
7957
7958         * XplatUIX11.cs: Use sizing cursors similar to the ones on
7959         windows.
7960
7961 2005-06-11  Jackson Harper  <jackson@ximian.com>
7962
7963         * StatusBarPanel.cs: Signature cleanups. Implement
7964         BeginInit/EndInit.
7965
7966 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
7967
7968         * DataGridTextBoxColumn.cs: Honors aligment
7969         * GridColumnStylesCollection.cs: Contains is case unsensitive
7970         * GridTableStylesCollection.cs: several fixes
7971         * DataGridTableStyle.cs: default column creation
7972         * DataGridDrawingLogic.cs: fixes
7973         * CurrencyManager.cs: ListName property
7974         * DataGrid.cs: multiple styles support
7975         * DataGridColumnStyle.cs: fixes
7976         
7977
7978 2005-06-10  Peter Bartok  <pbartok@novell.com>
7979
7980         * Control.cs(Select): Moved SetFocus call to avoid potential
7981           loops if controls change the active control when getting focus
7982         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
7983           the up/down buttons
7984
7985 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
7986
7987         * ImageListConverter.cs: Implemented
7988
7989 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
7990
7991         * MonthCalendar.cs: Wired in NumericUpDown control for year
7992
7993 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
7994
7995         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
7996           DoubleClick events, since they are not meant to be fired.
7997
7998 2005-06-09  Peter Bartok  <pbartok@novell.com>
7999
8000         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
8001           Jonathan's standalone controls into MWF, implemented missing
8002           events, attributes and methods; added xxxAccessible classes
8003         * AccessibleObject.cs: Made fields internal so other classes
8004           can change them if needed
8005
8006 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
8007
8008         * UpDownBase.cs: Complete implementation
8009         * NumericUpDown.cs: Complete implementation
8010         * DomainUpDown.cs: Complete implementation
8011
8012 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
8013
8014         * DataGridTextBoxColumn.cs: drawing fixes
8015         * DataGridCell.cs: fixes ToString method to match MSNet
8016         * DataGridTableStyle.cs: fixes
8017         * DataGridBoolColumn.cs: fixes, drawing
8018         * DataGridDrawingLogic.cs: fixes, new methods
8019         * DataGridTextBox.cs: Keyboard and fixes
8020         * DataGrid.cs:
8021                 - Keyboard navigation
8022                 - Scrolling fixes
8023                 - Row selection (single, multiple, deletion, etc)
8024                 - Lots of fixes
8025         
8026 2005-06-07  Jackson Harper  <jackson@ximian.com>
8027
8028         * ThemeWin32Classic.cs: Clear the background area when drawing
8029         buttons.
8030
8031 2005-06-06  Peter Bartok  <pbartok@novell.com>
8032
8033         * ImageListStreamer.cs: Fixed signature for GetData
8034         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
8035         * ComboBox.cs:
8036           - Added missing ChildAccessibleObject class
8037           - Added missing OnXXXFocus overrides, switched to using those
8038             instead of the event handler
8039         * Control.cs:
8040           - Added Parent property for ControlAccessibleObject
8041           - Fixed signatures
8042           - Fixed attributes
8043           - Added ResetBindings()
8044         * ListBindingConverter.cs: Implemented some methods
8045         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
8046         * ImageList.cs: Implemented basic handle scheme, removed TODOs
8047         * ContainerControl.cs: Fixed signature, now subscribing to the
8048           ControlRemoved event instead of overriding the handler, LAMESPEC
8049         * CurrencyManager.cs: Added missing attribute
8050         * MonthCalendar.cs: Added missing properties
8051
8052 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
8053
8054         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
8055         
8056 2005-06-06  Gaurav Vaish and Ankit Jain
8057
8058         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
8059         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
8060         
8061 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
8062
8063         * Control.cs: fixes CreateParams Width / Height.
8064
8065 2005-06-05  Peter Bartok  <pbartok@novell.com>
8066
8067         * Win32DnD.cs: Removed compilation warnings
8068
8069 2005-06-05  Peter Bartok  <pbartok@novell.com>
8070
8071         * Control.cs (CreateParams): Since we don't know if one of the
8072           properties we use is overridden, lets make sure if we fail accessing
8073           we continue with a backup plan
8074
8075 2005-06-05  Peter Bartok  <pbartok@novell.com>
8076
8077         * Win32DnD.cs:
8078           - Removed debug output
8079           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
8080             struct
8081           - Plugged resource leak
8082         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
8083           MS size
8084
8085 2005-06-05  Peter Bartok  <pbartok@novell.com>
8086
8087         * XplatUIWin32.cs: Removed DnD code
8088         * Win32DnD.cs: Implemented drop source and drop target functionality
8089
8090 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
8091
8092         * UpDownBase.cs: remove duplicate addition of event, enable some code
8093         that was commented out.
8094         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
8095         Validate input when a key is pressed. It works fine now for every
8096         combination of Hexadecimal. Only missing some drawing love when sharing
8097         space with other controls.
8098
8099 2005-06-04  Peter Bartok  <pbartok@novell.com>
8100
8101         * Control.cs:
8102           - We need to pass a window for DragDrop, so enable callback events
8103           - Added DnD callback events when being a DragSource
8104         * XplatUI.cs (StartDrag): Added window handle argument
8105         * XplatUIDriver.cs (StartDrag): Added window handle argument
8106         * QueryContinueDragEventArgs: Made fields internally accessible so
8107           drivers can set them
8108         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
8109           can set them
8110
8111 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
8112
8113         * DataGridTextBoxColumn.cs: column text editing
8114         * DataGridTableStyle.cs: Respect columns styles created by the user
8115         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
8116         * DataGridBoolColumn.cs: bool column editing
8117         * DataGrid.cs: fixes to scrolling, properties, etc
8118         * DataGridTextBox.cs: handle keyboard
8119         * DataGridColumnStyle.cs: fixes
8120
8121 2005-06-02  Jackson Harper  <jackson@ximian.com>
8122
8123         * ImageListStreamer.cs: Somewhat broken implementation of
8124         GetObjectData. The RLE needs some work to match MS properly.
8125
8126 2005-06-02  Jackson Harper  <jackson@ximian.com>
8127
8128         * X11Dnd.cs: Attempting to keep at least one file in MWF
8129         monostyled.
8130
8131 2005-06-02  Peter Bartok  <pbartok@novell.com>
8132
8133         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
8134           that way
8135
8136 2005-06-02  Peter Bartok  <pbartok@novell.com>
8137
8138         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
8139         * XplatUI.cs: Added DoDragDrop() method
8140         * XplatUIDriver.cs: Added DoDragDrop() method
8141
8142 2005-06-02  Jackson Harper  <jackson@ximian.com>
8143
8144         * Splitter.cs: Implement BorderStyle.
8145
8146 2005-06-02  Jackson Harper  <jackson@ximian.com>
8147
8148         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
8149         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
8150         X11 using XDND.
8151
8152 2005-06-02  Peter Bartok  <pbartok@novell.com>
8153
8154         * DataObject.cs:
8155           - Added Data setter
8156           - Fixed broken insertion code for SetData, now also
8157             overwrites any existing entry of the same format name
8158         * Hwnd.cs: Added list of pointers that automatically gets
8159           freed when the window is disposed
8160         * XplatUI.cs: Call driver initialization method when loading
8161           a driver
8162         * Control.cs:
8163           - OnDragLeave takes EventArgs, not DragEventArgs
8164           - Added setting of WS_EX_ACCEPTFILES style when dropping is
8165             supported
8166           - Forces style update when drop state changes
8167         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
8168           not perfect since we cannot (yet) call the IDataObject.GetData()
8169           method, we keep getting 0x80004005 error, dunno why)
8170
8171 2005-06-02  Peter Bartok  <pbartok@novell.com>
8172
8173         * DragEventArgs.cs: Make fields internal so we can cache the
8174           object and re-set the fields from XplatUI
8175
8176 2005-06-02  Jackson Harper  <jackson@ximian.com>
8177
8178         * Control.cs: Add some internal methods so the DnD subsystem can
8179         raise DnD events. Also call into the driver when AllowDrop is set.
8180         * XplatUI.cs:
8181         * XplatUIDriver.cs: New method for setting whether or not a window
8182         is allowed to accept drag and drop messages.
8183                 
8184 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
8185         
8186         * ScrollBar.cs: Make sure that values sent in Scroll events
8187         are always between Maximum and Minimum.
8188
8189 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
8190
8191         * Menu.cs: Call MenuChanged when menuitem visibility has been
8192         changed.
8193         * MenuItem.cs: Rebuild menu when item is (not) visible.
8194         * MainMenu.cs: MainMenu has special MenuChanged.
8195         * Theme.cs: Caption and FrameBorderSize are not fixed.
8196         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
8197         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
8198         * XplatUIX11.cs,
8199         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
8200         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
8201
8202 2005-05-30  Jackson Harper  <jackson@ximian.com>
8203
8204         * DataFormat.cs: We can't statically initialize this stuff because
8205         it calls into the xplatui and could create a loop. So we lazy init
8206         it.
8207
8208 2005-05-28  Jackson Harper  <jackson@ximian.com>
8209
8210         * Control.cs: Proper implementation of Product(Name/Version).
8211
8212 2005-05-27  Jackson Harper  <jackson@ximian.com>
8213
8214         * DataObject.cs: Dont crash if no data is found.
8215
8216 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
8217         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
8218                 as per status page, guessing it should be set to true
8219
8220 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
8221
8222         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
8223         * DataGridTableStyle.cs: set proper formatting text, def header text
8224         * ThemeWin32Classic.cs: new themable paramaters
8225         * DataGridBoolColumn.cs: paint check box, get data, fixes
8226         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
8227         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
8228         * DataGridColumnStyle.cs: fixes
8229         * Theme.cs: new themable paramaters
8230                 
8231 2005-05-26  Peter Bartok  <pbartok@novell.com>
8232
8233         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
8234
8235 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
8236         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
8237
8238 2005-05-24  Peter Bartok  <pbartok@novell.com>
8239
8240         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
8241           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
8242           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
8243           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
8244           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
8245           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
8246           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
8247           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
8248           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
8249           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
8250           missing attributes, etc
8251         * DataGridPreferredColumnWidthTypeConverter.cs: Added
8252
8253 2005-05-24  Peter Bartok  <pbartok@novell.com>
8254
8255         * Help.cs: Added, implemented trivial functions, throws up MessageBox
8256           when user tries to get help
8257         * DataObject.cs, DataFormats.cs, LinkArea.cs,
8258           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
8259           to suppress warnings
8260         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
8261           avoid unreachable code warning
8262
8263 2005-05-20  Peter Bartok  <pbartok@novell.com>
8264
8265         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
8266
8267 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
8268
8269         * DataGridTextBoxColumn.cs: Basic painting methods
8270         * DataGridTableStyle.cs: Set table style in the column
8271         * ThemeWin32Classic.cs: Use Theme for colors
8272         * DataGridDrawingLogic.cs: Implement more drawing
8273         * DataGrid.cs: drawing, theming, enhacements, fixes
8274         * DataGridColumnStyle.cs: fixes, drawing
8275         * Theme.cs: theming for Datagrid
8276
8277 2005-05-20  Peter Bartok  <pbartok@novell.com>
8278
8279         * Cursor.cs: Implemented GetObjectData() method
8280
8281 2005-05-20  Peter Bartok  <pbartok@novell.com>
8282
8283         * Cursors.cs: Added setting of cursor name
8284         * Cursor.cs:
8285           - Implemented constructors
8286           - Implemented Draw and DrawStretched
8287           - Implemented Current property
8288           - Implemented == and != operators
8289           - Implemented Dispose()
8290           - Implemented ToString
8291           - Added missing attributes
8292         * XplatUIX11.cs:
8293           - Added missing reset for OverrideCursor when DoEvents is called
8294           - Fixed creation of cursor, logic was wrong
8295         * XplatUIWin32.cs:
8296           - Added missing reset for OverrideCursor when DoEvents is called
8297           - Fixed creation of cursor, bit arrays were swapped
8298         * Clipboard.cs: Removed obsolete MonoTODO attribute
8299
8300 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
8301
8302         * ComboBox.cs: fixes OnSelectedItemChanged
8303         * ControlBindingsCollection.cs: fixes item range check
8304
8305 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
8306
8307         * UpDownBase.cs:
8308                 - Calc preferred height properly
8309                 - Implement missing properties
8310                 
8311         * NumericUpDown.cs: Implement missing events
8312
8313 2005-05-19  Jackson Harper  <jackson@ximian.com>
8314
8315         * TabControl.cs: New method that resizes the tab pages before
8316         redrawing them. This as needed as the control is double buffered
8317         and sizing will not be recalculated unless ResizeTabPages is
8318         called.
8319         * TabPage.cs: Set base.Text instead of Text in the constructor so
8320         that UpdateOwner does not get called. Use the new Redraw method of
8321         TabControl instead of Refresh so the sizing is recalculated.
8322         * ThemeWin32Classic.cs: Draw the text for button tabs.
8323
8324 2005-05-19  Jackson Harper  <jackson@ximian.com>
8325
8326         * Control.cs: Paint control background images. Fix typo where
8327         PaintControlBackground was not getting called correctly.
8328
8329 2005-05-19  Peter Bartok  <pbartok@novell.com>
8330
8331         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
8332           I can investigate, apparently I broke FileDialog
8333
8334 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
8335
8336         * AxHost.cs: Some simple properties.
8337         * Control.cs: window must be accessible after ctor.
8338         * Form.cs: Added TransparencyKey property.
8339         * TextBoxBase.cs: Implemented Clear. Text property can be null.
8340         * XplatUIWin32.cs: SetBorderStyle implemented.
8341
8342 2005-05-18  Peter Bartok  <pbartok@novell.com>
8343
8344         * DataObject.cs: Entries are not global but particular to the
8345           DataObject, now it behaves that way
8346         * XplatUIWin32.cs: Implemented Clipboard methods
8347         * Clipboard.cs: Implemented
8348         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
8349         * XplatUIOSX.cs: Updated to final clipboard prototypes
8350         * XplatUIX11.cs: Implemented Clipboard methods
8351         * XplatUIDriver.cs: Updated to final clipboard prototypes
8352         * XplatUIStructs.cs:
8353           - Added BITMAPINFOHEADER struct
8354           - Added ClipboardFormats enum
8355         * X11Structs.cs:
8356           - Added ClipboardStruct
8357           - Added Atom enum items for clipboard types
8358           - Fixed atom types for Selection event structures
8359         * DataFormats.cs:
8360           - Added internal properties and methods for drivers to enumerate
8361             all known formats
8362           - Switched initialization method to allow drivers to assign their
8363             own IDs even for the MS predefined clipboard IDs
8364         * XplatUI.cs: Updated to final clipboard interface
8365
8366 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
8367         * PropertyGridView.cs: Fixed compiler warnings.
8368
8369 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
8370         * PropertyGrid.cs: Added some event calls
8371         * PropertyGridView.cs: Change drawing code to use double buffering
8372         * PropertyGridTextBox.cs: Changed Text property name
8373         * GridItem.cs: Added Bounds property.
8374         * GridEntry.cs: Added Bounds property.
8375
8376 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
8377
8378         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
8379         since GetType() may not return the correct type if the object is
8380         a remoting proxy.
8381
8382 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
8383
8384         * TreeNodeCollection.cs: fixes get/set item ranges
8385         
8386 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
8387
8388         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
8389                 
8390 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
8391
8392         * ComboBox.cs: Fix item range comparation
8393         * ListView.cs: Fix item range comparation
8394
8395 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
8396
8397         * FontDialog.cs:
8398           - Clear example panel when OnPaint is called
8399           - Better solution for displaying the example panel text
8400           - Select default indexes in the ListBoxes
8401
8402 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
8403
8404         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
8405
8406 2005-05-11  Peter Bartok  <pbartok@novell.com>
8407
8408         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
8409         * SelectionRangeConverter.cs: Implemented
8410         * PropertyGrid.cs: Fixed attribute value
8411         * Control.cs:
8412           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
8413           - Added Sebastien Pouliot's CAS Stack Propagation fixes
8414         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
8415           that's common to all drivers. First methods to go there are
8416           Sebastien Pouliot's CAS Stack Propagation helper methods
8417         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
8418           Sebastien Pouliot for CAS Stack Propagation
8419
8420 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
8421
8422         * OSXStructs.cs:
8423           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
8424
8425 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
8426
8427         * DataGridTextBoxColumn.cs: fixed some members
8428         * GridColumnStylesCollection.cs: indexed column is case insensitive
8429         * DataGridTableStyle.cs: fixes
8430         * ThemeWin32Classic.cs: add new theme parameter
8431         * Theme.cs: add new theme parameter
8432         * DataGridDrawingLogic.cs: Datagrid's drawing logic
8433         * DataGrid.cs: fixes, new internal properties, etc.
8434         * DataGridColumnStyle.cs: allows to set grid value
8435         *
8436
8437 2005-05-10  Peter Bartok  <pbartok@novell.com>
8438
8439         * AccessibleObject.cs:
8440           - Removed MonoTODO attribute on help, method is correct
8441           - Fixed Bounds property
8442         * AxHost.cs: Moved MonoTODO
8443         * ButtonBase.cs: Now setting AccessibleObject properties
8444         * RadioButton.cs: Setting proper AccessibleObject role
8445         * CheckBox.cs: Setting proper AccessibleObject role
8446         * ControlBindingsCollection.cs: Added properties, methods and attributes
8447         * DataFormats.cs: Fixed awkward internal API, and changed to enable
8448           userdefined DataFormats.Format items as well
8449         * ListControl.cs: Removed data_member from the public eye
8450         * OpenFileDialog.cs:
8451           - Made class sealed
8452           - Added missing attributes
8453         * SaveFileDialog.cs: Added missing attributes
8454         * ImageListStreamer.cs: Fixed code that caused warnings
8455         * LinkLabel.cs: Removed unreachable code
8456         * TreeView.cs: Fixed code that caused warnings
8457         * PropertyGridView.cs: Fixed code that caused warnings
8458         * GridColumnStylesCollection.cs: Added missing attributes
8459         * GridTableStylesCollection: Added missing attribute
8460         * PropertyManager: Added .ctor
8461         * SecurityIDType: Added
8462         * DataObject.cs: Implemented class
8463         * LinkArea.cs: Added missing attribute
8464
8465 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
8466
8467         * RadioButton.cs: call base method to allow to fire OnClick event
8468         * UpDownBase.cs: OnMouseUp call base method
8469         * CheckedListBox.cs: call base method before returning
8470         * TrackBar.cs: call base method before returning
8471         
8472
8473 2005-05-10  Peter Bartok  <pbartok@novell.com>
8474
8475         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
8476           for messages
8477
8478 2005-05-10  Peter Bartok  <pbartok@novell.com>
8479
8480         * DataFormats.cs: Implemented
8481         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
8482           XplatUIX11.cs: Added Clipboard APIs
8483         * XplatUIWin32.cs: Implemented Clipboard APIs
8484         * FolderBrowserDialog.cs: Added missing event, attributes
8485
8486 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
8487
8488         * CheckBox.cs: call base method to allow to fire OnClick event
8489
8490 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
8491
8492         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
8493
8494 2005-05-06  Peter Bartok  <pbartok@novell.com>
8495
8496         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
8497         * Screen.cs: Implemented
8498         * HelpNavigator.cs: Added
8499         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
8500           property
8501         * HelpProvider.cs: Implemented all we can do until we have a CHM
8502           help library (which means that "What's This" does work now)
8503
8504 2005-05-06  Jackson Harper  <jackson@ximian.com>
8505
8506         * XplatUIX11.cs: Fix waking up the main loop.
8507                 
8508 2005-05-05  Peter Bartok  <pbartok@novell.com>
8509
8510         * XplatUI.cs: Updated revision
8511         * Form.cs: Removed enless loop
8512         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
8513         * Label.cs (OnPaint): Added call to base.OnPaint()
8514         * ToolTip.cs: Made ToolTipWindow reusable for other controls
8515         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
8516         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
8517         * AxHost.cs: Added
8518         * ButtonBase.cs: Moved base.OnPaint() call to end of method
8519         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
8520           to ToolTip.ToolTipWindow for drawing and size methods; this allows
8521           reuse of ToolTipWindow by other controls
8522         * SizeGrip.cs: Moved base.OnPaint() call to end of method
8523         * XplatUIX11.cs: Now clipping drawing area (experimental)
8524         * PictureBox.cs: Moved base.OnPaint() call to end of method
8525         * Theme.cs: Fixed ToolTip abstracts to match new format
8526         * ErrorProvider.cs: Implemented
8527
8528 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
8529
8530         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
8531         * LinkLabel.cs:
8532                 - Adds cursors
8533                 - Handles focus
8534                 - Implements LinkBehavior
8535                 - Fixes many issues
8536
8537 2005-05-03  Jackson Harper  <jackson@ximian.com>
8538
8539         * ListView.cs: Calculate the scrollbar positioning on resize and
8540         paint, so they get put in the correct place.
8541
8542 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
8543
8544         * ColorDialogs.cs: The small color panels are now handled by
8545           SmallColorControl. This fixes drawing of the focus rectangle
8546           and adds a 3D border.
8547
8548 2005-05-03  Peter Bartok  <pbartok@novell.com>
8549
8550         * Control.cs: Modified version of Jonathan Chamber's fix for
8551           double-buffering
8552
8553 2005-05-03  Jackson Harper  <jackson@ximian.com>
8554
8555         * ListView.cs: Remove redraw variable. Control now handles whether
8556         or not a redraw needs to be done, and will only raise the paint
8557         event if redrawing is needed.
8558
8559 2005-05-03  Jackson Harper  <jackson@ximian.com>
8560
8561         * Splitter.cs: No decorations for the splitter form. Cache the
8562         hatch brush.
8563
8564 2005-05-03  Jackson Harper  <jackson@ximian.com>
8565
8566         * TreeView.cs: Use dashed lines to connect nodes. Use the
8567         ControlPaint method for drawing the focus rect instead of doing
8568         that in treeview.
8569
8570 2005-05-02  Peter Bartok  <pbartok@novell.com>
8571
8572         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
8573
8574 2005-04-29  Jackson Harper  <jackson@ximian.com>
8575
8576         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
8577         entire image buffer. Just clear the clipping rectangle.
8578
8579 2005-04-29  Jackson Harper  <jackson@ximian.com>
8580
8581         * ThemeWin32Classic.cs: Don't draw list view items that are
8582         outside the clipping rectangle.
8583
8584 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
8585
8586         * ListBox.cs: added horizontal item scroll
8587
8588 2005-04-29  Jackson Harper  <jackson@ximian.com>
8589
8590         * ThemeWin32Classic.cs: Remove some old debug code that was
8591         causing flicker with the new double buffering code.
8592
8593 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
8594
8595         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
8596         behave like combobox and comboboxlist (still not sure if this is
8597         correct though).
8598
8599 2005-04-28  Jackson Harper  <jackson@ximian.com>
8600
8601         * ThemeWin32Classic.cs: Don't fill the middle of progress
8602         bars. This fills areas outside of the clip bounds that don't need
8603         to be filled.
8604
8605 2005-04-28  Jackson Harper  <jackson@ximian.com>
8606
8607         * Control.cs: Don't expose functionality to touch the image buffers.
8608         * ProgressBar.cs:
8609         * ListView.cs: We do not need to (and no longer can) manipulate
8610         the image buffers directly. All of this is handled by Control.
8611
8612 2005-04-28  Peter Bartok  <pbartok@novell.com>
8613
8614         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
8615           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
8616           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
8617
8618 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
8619
8620         * Combobox:
8621                 - Adjust control's height for non-simple comboboxes (bug fix)
8622                 - Remove dead code
8623         * MenuAPI.cs: remove unused var
8624         * ScrollBar.cs: remove unsed var
8625                  
8626         * ListBox.cs: unselect items when clearing
8627
8628 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
8629
8630         * ListControl.cs: honors OnPositionChanged and default Selected Item
8631         * ListBox.cs: unselect items when clearing
8632
8633 2005-04-27  Jackson Harper  <jackson@ximian.com>
8634
8635         * X11Keyboard.cs: Initialize a default keyboard and give a warning
8636         if a "correct" keyboard is not found. This will make us not crash,
8637         but might give some users bad keyboard layouts...seems to be the
8638         same thing rewind does.
8639
8640 2005-04-27  Jackson Harper  <jackson@ximian.com>
8641
8642         * BindingManagerBase.cs: Attach the current/position changed
8643         handlers to their respective events.
8644
8645 2005-04-27  Jackson Harper  <jackson@ximian.com>
8646
8647         * Control.cs: Make sure that the first WM_PAINT does a full draw,
8648         not just a blit.
8649         * ThemeWin32Classic.cs: Don't fill the background for picture
8650         boxes. This could overright user drawing.
8651         * ComboBox.cs: Just fill the clipping rect not the entire client
8652         rect when drawing the background. This prevents pieces of the
8653         image buffer from getting overwritten and is theoretically faster.
8654
8655 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
8656
8657         * ComboBox.cs: Databinding support fixes, fire missing events
8658         * ListControl.cs: implement missing methods and properties, fixes
8659         * ThemeWin32Classic.cs: Databiding support on Drawing
8660         * CheckedListBox.cs: Databinding support fixes, fire missing events
8661         * ListBox.cs: Databinding support fixes, fire missing events
8662         
8663 2005-04-25  Peter Bartok  <pbartok@novell.com>
8664
8665         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
8666
8667 2005-04-25  Jackson Harper  <jackson@ximian.com>
8668
8669         * TreeView.cs: Use the horizontal scrollbars height not width when
8670         determining how much of the client area is available.
8671
8672 2005-04-25  Jackson Harper  <jackson@ximian.com>
8673
8674         * Control.cs: Double buffering is handled differently now. As per
8675         the spec, the extra buffer is created in the WM_PAINT message and
8676         passed down to the control's drawing code.
8677         * GroupBox.cs:
8678         * Label.cs:
8679         * CheckBox.cs:
8680         * ProgressBar.cs:
8681         * RadioButton.cs:
8682         * ColorDialog.cs:
8683         * ComboBox.cs:
8684         * PropertyGridView.cs:
8685         * UpDownBase.cs:
8686         * MessageBox.cs:
8687         * MenuAPI.cs:
8688         * ListView.cs:
8689         * ButtonBase.cs:
8690         * SizeGrip.cs:
8691         * ScrollBar.cs:
8692         * ListBox.cs:
8693         * TrackBar.cs:
8694         * ToolBar.cs:
8695         * PictureBox.cs:
8696         * DateTimePicker.cs:
8697         * StatusBar.cs:
8698         * TreeView.cs: Update to new double buffering system.
8699         * MonthCalendar.cs: Uncomment block, as Capture is now
8700         working. Update to new double buffering
8701         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
8702         * PaintEventArgs.cs: New internal method allows us to set the
8703         graphics object. This is used for double buffering.
8704         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
8705         rectangle. The internal paint_area var has been removed from
8706         StatusBar. The clipping rect should be used instead.
8707         * Theme.cs: Give the PictureBox drawing method a clipping rect.
8708         * TabPage.cs: The RefreshTabs method was removed, so just call the
8709         tab controls Refresh method now.
8710         * TabControl.cs: Update to new double buffering. Make sure the
8711         handle is created before sizing the tab pages, otherwise we will
8712         get stuck in a loop.
8713
8714 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
8715
8716         * LinkLabel.cs: Fix typo, bug #74719; patch
8717           from Borja Sanchez Zamorano
8718
8719 2005-04-22  Jackson Harper  <jackson@ximian.com>
8720
8721         * TreeNode.cs: Implement Handle stuff.
8722         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
8723
8724 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
8725
8726         * DataGridTextBoxColumn.cs: call base constructors, fixes
8727         * GridColumnStylesCollection.cs: missing events, methods, and functionality
8728         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
8729         * DataGridTableStyle.cs: implements create default column styles
8730         * DataGridBoolColumn.cs: which types can handle
8731         * DataGrid.cs: missing methods, fixes, new functionality
8732         * DataGridColumnStyle.cs: fixes
8733
8734 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
8735         * FolderBrowserDialog.cs:
8736         - Use a thread to fill the TreeView
8737         - Adjusted some sizes
8738
8739 2005-04-19  Peter Bartok  <pbartok@novell.com>
8740
8741         * LinkLabel.cs: (Re-)create the pieces when setting the Text
8742           property. Fixes #74360.
8743
8744 2005-04-19  Jackson Harper  <jackson@ximian.com>
8745
8746         * XEventQueue.cs: Lock when getting the lockqueue size.
8747         * PictureBox.cs: Call base OnPaint
8748         
8749 2005-04-19  Peter Bartok  <pbartok@novell.com>
8750
8751         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
8752           messages were no longer being processed (this broke BeginInvoke)
8753
8754           
8755 2005-04-18  Jackson Harper  <jackson@ximian.com>
8756
8757         * TreeView.cs: buglet that caused node images to get drawn
8758         regardless of whether or not they were in the clipping rectangle.
8759
8760 2005-04-18  Jackson Harper  <jackson@ximian.com>
8761
8762         * CurrencyManager.cs: There are four rules for GetItemProperties:
8763         - If the type is an array use the element type of the array
8764         - If the type is a typed list, use the type
8765         - If the list contains an Item property that is not an object, use
8766         that property
8767         - use the first element of the list if there are any elements in
8768         the list.
8769         
8770 2005-04-17  Jackson Harper  <jackson@ximian.oom>
8771
8772         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
8773         click. This handles offsets for scrolling properly and reduces
8774         memory. Also fixed GetNode to not offset now that TopNode works
8775         properly.
8776         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
8777         
8778 2005-04-17  Jackson Harper  <jackson@ximian.com>
8779
8780         * CursorConverter.cs: Initial implementation.
8781
8782 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
8783
8784         * ListControl.cs: work towards complex data binding support on ListControl
8785         * CurrencyManager.cs: work towards complex data binding support on ListControl
8786         * ListBox.cs: work towards complex data binding support on ListControl
8787
8788
8789 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
8790
8791         * GridTableStylesCollection.cs: fixes name and constructor
8792         * DataGridTableStyle.cs: fixes
8793         * DataGridBoolColumn.cs: fixes names and constructors
8794         * DataGrid.cs: define methods and properties. Some init implementations
8795         * DataGridCell.cs: define methods and properties. Some init implementations
8796         * GridTablesFactory.cs: Define methods and properties
8797
8798 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
8799
8800         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
8801         graphics port changes.  We still want the coordinates in global screen
8802         coordinates.
8803
8804 2005-04-14  Jackson Harper  <jackson@ximian.com>
8805
8806         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
8807         check plus minus or checkbox clicks unless those features are enabled.
8808
8809 2005-04-14  Jackson Harper  <jackson@ximian.com>
8810
8811         * TreeView.cs: Add methods for setting the top and bottom visible
8812         nodes. TreeNode::EnsureVisible uses these methods.
8813         * TreeNode.cs: Implement EnsureVisible
8814
8815 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
8816
8817         * Form.cs: Pospone menu assignation if the window has not been created yet
8818         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
8819         size and position
8820
8821 2005-04-12  Jackson Harper  <jackson@ximian.com>
8822
8823         * TreeView.cs: Set the TopNode properly when scrolling
8824         occurs. This has the added benifit of reducing the amount of
8825         walking that needs to be done when drawing. Also removed an old
8826         misleading TODO.
8827         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
8828         
8829 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
8830
8831         * Timer.cs: fixes interval setting when the timer is already enabled
8832         
8833 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
8834
8835         * FolderBrowserDialog.cs: First approach
8836
8837 2005-04-09  Peter Bartok  <pbartok@novell.com>
8838
8839         * FolderBrowserDialog: Added
8840
8841 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
8842
8843         * LinkLabel.cs: move drawing code into the theme
8844         * ThemeWin32Classic.cs: drawing code and painting background bugfix
8845         * Theme.cs: define DrawLinkLabel method
8846
8847 2005-04-05  Jackson Harper  <jackson@ximian.com>
8848
8849         * BindingContext.cs: Use weak references so these bad actors don't
8850         stay alive longer then they need to.
8851
8852 2005-04-05  Jackson Harper  <jackson@ximian.com>
8853
8854         * ListControl.cs: Basic implementation of complex databinding.
8855         * ComboBox.cs:
8856         * ListBox.cs: Add calls to ListControl databinding methods.
8857
8858 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
8859
8860         * FileDialog.cs:
8861           - Don't change PopupButtonState to Normal when the
8862             PopupButton gets pressed several times.
8863           - Renamed ButtonPanel to PopupButtonPanel
8864
8865 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
8866
8867         * ColorDialog.cs: Use cached objects instead of creating them
8868         * LinkLabel.cs: Use cached objects instead of creating them
8869         * Splitter.cs: Use cached objects instead of creating them
8870         * FontDialog.cs: Use cached objects instead of creating them
8871         * PropertyGridView.cs: Use cached objects instead of creating them
8872         * MessageBox.cs: Use cached objects instead of creating them
8873         * FileDialog.cs: Use cached objects instead of creating them
8874         * ThemeWin32Classic.cs: Use cached objects instead of creating them
8875         * TreeView.cs: Use cached objects instead of creating them
8876         
8877 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
8878
8879         * Control.cs: use Equals to compare the font since no == op
8880         * ScrollBar.cs: use Equals to compare the font since no == op
8881
8882 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
8883
8884         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
8885
8886 2005-04-01  Jackson Harper  <jackson@ximian.com>
8887
8888         * Binding.cs: Implement IsBinding.
8889         * BindingManagerBase.cs:
8890         * PropertyManager.cs:
8891         * CurrencyManager.cs: Add IsSuspended property.
8892
8893 2005-04-01  Jackson Harper  <jackson@ximian.com>
8894
8895         * Binding.cs: Had some IsAssignableFrom calls backwards.
8896
8897 2005-04-01  Jackson Harper  <jackson@ximian.com>
8898
8899         * Binding.cs: Handle null data members when pulling data.
8900         * PropertyManager.cs: Handle the data member being a property that
8901         does not exist.
8902
8903 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
8904
8905         * DataGridTextBoxColumn.cs: fixes signature
8906         * DataGrid.cs: calls right constructor
8907
8908 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
8909
8910         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
8911         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
8912         * GridTableStylesCollection.cs: implements GridTableStylesCollection
8913         * DataGridTableStyle.cs: implements DataGridTableStyle
8914         * DataGridBoolColumn.cs: implements DataGridBoolColumn
8915         * DataGridTextBox.cs: implements DataGridTextBox
8916         * DataGridColumnStyle.cs: implements DataGridColumnStyle
8917
8918 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
8919
8920         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
8921
8922 2005-03-29  Peter Bartok  <pbartok@novell.com>
8923
8924         * Application.cs:
8925           - Properly implemented CompanyName property
8926           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
8927             returns a path that includes CompanyName, ProductName and
8928             Version (fixes bug #70330)
8929
8930 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
8931
8932         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
8933           fixes bug #72588.
8934
8935 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
8936
8937         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
8938         
8939           - Added ReadOnly CheckBox
8940           - Further refactoring: moved some code from Open-/SaveFileDialog
8941             to FileDialog
8942
8943 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
8944
8945         * OpenFileDialog.cs: Fixed CheckFileExists
8946         * FileDialog.cs:
8947           Moved FileView and DirComboBox outside FileDialog class.
8948           They can now be used outside FileDialog
8949
8950 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
8951
8952         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
8953         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
8954
8955 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
8956
8957         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
8958           - Added missing CreatePrompt property in SaveDialog
8959           - Overall SaveDialog handling should be better now
8960           - Added non standard ShowHiddenFiles property
8961           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
8962           - Added InitialDirectory and RestoreDirectory support
8963
8964 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
8965
8966         * FileDialog.cs: Made dirComboBox usable
8967
8968 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
8969
8970         * FileDialog.cs: Added Filter support (case sensitiv)
8971
8972 2005-03-24  Jackson Harper  <jackson@ximian.com>
8973
8974         * TabControl.cs: Need a couple more pixels for the lines.
8975
8976 2005-03-23  Jackson Harper  <jackson@ximian.com>
8977
8978         * TabControl.cs: Give the tab page focus when it is selected.
8979
8980 2005-03-23  Jackson Harper  <jackson@ximian.com>
8981
8982         * TabControl.cs: Account for the drawing of tabs borders when
8983         invalidating. If the slider was clicked dont do click detection on
8984         the tabs.
8985
8986 2005-03-23  Jackson Harper  <jackson@ximian.com>
8987
8988         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
8989
8990 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
8991
8992         * CategoryGridEntry.cs: Added
8993         * GridItem.cs: Added helper properties
8994         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
8995         * GridEntry.cs: Updated code for collection
8996         * PropertyGrid.cs: Cleaned up some formatting
8997         * PropertyGridView.cs: Added drop down functionality for enums.
8998         * GridItemCollection.cs: Added enumerator logic
8999         * PropertyGridEntry.cs: Added
9000
9001 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
9002
9003         * FileDialog.cs:
9004           - Removed unnecessary commented code
9005           - Fixed handling for entering the filename manually in the combobox
9006
9007 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
9008
9009         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
9010
9011 2005-03-18  Peter Bartok  <pbartok@novell.com>
9012
9013         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
9014           them being touching the border
9015
9016 2005-03-18  Peter Bartok  <pbartok@novell.com>
9017
9018         * TextControl.cs: Quick hack to center text better
9019
9020 2005-03-18  Peter Bartok  <pbartok@novell.com>
9021
9022         * ControlPaint.cs:
9023           - Don't throw NotImplemented exceptions, just print a notice once
9024             instead (requested by Miguel). This makes running existing SWF
9025             apps a bit easier
9026         * Control.cs:
9027           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
9028           - Added context menu trigger on right click
9029         * Panel.cs: Trigger invalidate on resize
9030         * StatusBar.cs:
9031           - Removed old double-buffer drawing
9032           - Added ResizeRedraw style to force proper update of statusbar
9033         * ListView.cs:
9034           - Removed debug output
9035         * ThemeWin32Classic.cs:
9036           - Fixed drawing of status bar, now draws Text property if there
9037             are no defined panels
9038
9039 2005-03-18  Jackson Harper  <jackson@ximian.com>
9040
9041         * ImageList.cs: When the image stream is set pull all the images
9042         from it.
9043         * ImageListStreamer.cs: Implement reading image list streams.
9044
9045 2005-03-18  Peter Bartok  <pbartok@novell.com>
9046
9047         * ThemeWin32Classic.cs (DrawPictureBox):
9048           - Fixed calculations for centered drawing
9049           - Fixed drawing for normal mode, not scaling the image on normal
9050
9051 2005-03-18  Peter Bartok  <pbartok@novell.com>
9052
9053         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
9054           textbox
9055         * FileDialog.cs:
9056           - Made Open/Save button the accept button for FileDialog
9057           - Tied the cancel button to the IButtonControl cancel button
9058           - Save/Open now properly builds the pathname
9059           - Now handles user-entered text
9060           - Preventing crash on right-click if no item is selected
9061           - Fixed Text property, now uses contents of textbox
9062           - Fixed SelectedText property, now just returns the text part that
9063             is selected in the text box
9064
9065 2005-03-18  Jackson Harper  <jackson@ximian.com>
9066
9067         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
9068         rect, make sure to de-adjust the interior rect after drawing the
9069         tab text.
9070
9071 2005-03-18  Peter Bartok  <pbartok@novell.com>
9072
9073         * MenuAPI.cs: Remove menu *before* executing selected action to
9074           prevent the menu from 'hanging around'
9075           
9076 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
9077
9078         * XplatUIOSX.cs: Implemented WorkingArea property
9079
9080 2005-03-17  Peter Bartok  <pbartok@novell.com>
9081
9082         * XplatUIX11.cs: Fixed menu coord calculations
9083         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
9084           for calculating offsets
9085
9086 2005-03-17  Peter Bartok  <pbartok@novell.com>
9087
9088         * Hwnd.cs: Do not consider menu presence for default client
9089           rectangle location/size
9090         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
9091           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
9092           translation functions
9093         * FileDialog.cs: Fixed (what I presume is a) typo
9094
9095 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
9096
9097         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
9098           X access (avoids X-Async errors)
9099
9100 2005-03-16  Jackson Harper  <jackson@ximian.com>
9101
9102         * TabControl.cs: Raise the SelectedIndexChanged event.
9103
9104 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
9105
9106         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
9107           - Removed vertical ToolBar and replaced it with a custom panel
9108             (desktop and home button already work)
9109           - Added Help button (some controls get resized or relocated then)
9110           - Draw correct text depending on Open or Save.
9111           - Fixed some typos...
9112
9113 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
9114
9115         * ScrollBar.cs:
9116           - Only change Maximum and Minimum when need it (bug fix)
9117
9118 2005-03-15  Peter Bartok  <pbartok@novell.com>
9119
9120         * Form.cs: Use Handle for icon, to trigger creation if
9121           the window does not yet exist
9122         * Control.cs:
9123           - CanSelect: Slight performance improvement
9124           - Focus(): Preventing possible recursion
9125           - Invalidate(): Removed ControlStyle based clear flag setting
9126           - WM_PAINT: fixed logic for calling OnPaintBackground
9127           - WM_ERASEBKGND: Fixed logic, added call to new driver method
9128             EraseWindowBackground if the control doesn't paint background
9129         * XplatUIWin32.cs:
9130           - Moved EraseWindowBackground() method to internal methods
9131           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
9132             is sent via SendMessage on BeginPaint call on Win32
9133         * XplatUIX11.cs:
9134           - Added EraseWindowBackground() method
9135           - No longer sends WM_ERASEBKGND on .Expose, but on call to
9136             PaintEventStart, which more closely matches Win32 behaviour
9137           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
9138           - Fixed SetFocus() to properly deal with client and whole windows
9139         * Hwnd.cs: Added ErasePending property
9140         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
9141         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
9142
9143 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
9144
9145         * XplatUIOSX.cs:
9146           - Fix hard loop when timers exist.
9147           - Fix bugs with middle and right click for 3 button mice.
9148
9149 2005-03-11  Peter Bartok  <pbartok@novell.com>
9150
9151         * XplatUIX11.cs:
9152           - get_WorkingArea: Need to call X directly, GetWindowPos only
9153             returns cached data now
9154           - Added sanity check to GetWindowPos hwnd usage
9155
9156 2005-03-11  Jackson Harper  <jackson@ximian.com>
9157
9158         * BindingManagerBase.cs: This method isn't used anymore as
9159         PullData now updates the data in the control.
9160
9161 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
9162
9163         * Form.cs: fixes menu drawing on X11
9164         * MenuAPI.cs:  fixes menu drawing on X11
9165
9166 2005-03-11  Peter Bartok  <pbartok@novell.com>
9167
9168         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
9169           from Jonathan Gilbert; should fix bug #73606
9170         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
9171           in Screen coordinates. Thanks, Jordi.
9172         * Form.cs: Added missing attribute
9173
9174 2005-03-11  Peter Bartok  <pbartok@novell.com>
9175
9176         * Form.cs:
9177           - Rudimentary Mdi support
9178           - Removed outdated FormParent code
9179           - Implemented lots of missing properties and methods, still missing
9180             transparency support
9181           - Added missing attributes
9182           - Implemented support for MaximumBounds
9183           - Added firing of various events
9184         * XplatUI.cs: Added SetIcon() method
9185         * XplatUIDriver.cs: Added SetIcon() abstract
9186         * XplatUIOSX.cs: Stubbed out SetIcon() method
9187         * XplatUIX11.cs:
9188           - Implemented SetIcon() support
9189           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
9190           - Switched to unix line endings
9191         * XplatUIWin32.cs:
9192           - Made POINT internal so for can access it as part of MINMAX
9193           - Implemented SetIcon() support
9194           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
9195             native Mdi support again, might have to go managed)
9196         * Control.cs: Now fires the StyleChanged event
9197         * MdiClient.cs: Added; still mostly empty
9198
9199 2005-03-10  Peter Bartok  <pbartok@novell.com>
9200
9201         * SaveFileDialog.cs: Added emtpy file
9202
9203 2005-03-08  Peter Bartok  <pbartok@novell.com>
9204
9205         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
9206           in turn triggers OnCreateContro) when creating a handle for the
9207           first time.
9208         * TextControl.cs: Fixed endless loop in certain cases when
9209           replacing the current selection
9210
9211 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
9212
9213         * ScrollBar.cs:
9214           - Honors NewValue changes in Scroll events allowing apps to change it
9215           - Adds First and Last Scroll events
9216           - Fixes Thumb events
9217
9218 2005-03-07  Peter Bartok  <pbartok@novell.com>
9219
9220         * Hwnd.cs: Added DefaultClientRectangle property
9221         * XplatUI.cs: Now using the X11 driver Where() method, which provides
9222           more detailed debug information
9223         * XplatUIX11.cs:
9224           - Fixed size-change feedback loop, where we would pull an old size
9225             off the queue and mistakenly change our window's size to an
9226             earlier value
9227           - Now compressing ConfigureNotify events, to reduce looping and
9228             redraw issues
9229         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
9230           is called
9231
9232 2005-03-07  Jackson Harper  <jackson@ximian.com>
9233
9234         * Binding.cs: Push data pushes from data -> property. Check if the
9235         property is readonly when attempting to set it.
9236
9237 2005-03-07  Jackson Harper  <jackson@ximian.com>
9238
9239         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
9240         instead of IsSubclassOf. Pulling data now sets the value on the
9241         control.
9242         * PropertyManager.cs:
9243         * CurrencyManager.cs: Just need to pull data when updating now,
9244         because PullData will set the value on the control.
9245
9246 2005-03-04  Jackson Harper  <jackson@ximian.com>
9247
9248         * Binding.cs: Implement data type parsing and converting on pulled
9249         data. TODO: Are there more ways the data can be converted?
9250
9251 2005-03-04  Jackson Harper  <jackson@ximian.com>
9252
9253         * Binding.cs: Support <Property>IsNull checks. Also bind to the
9254         controls Validating method so we can repull the data when the
9255         control loses focus.
9256
9257 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
9258
9259         * ColumnHeader.cs:
9260           - Fixes null string format
9261           
9262         * ListView.cs:
9263           - Adds enum type checks
9264           - Fixes redrawing and recalc need after changing some properties
9265           - Fixes on focus_item set after the event
9266           - Fixes adding columns after the control has been created
9267           
9268         * ThemeWin32Classic.cs:
9269           - Fixes CheckBox focus rectangle
9270           - Fixes ColumnHeader drawing
9271
9272
9273 2005-03-03  Jackson Harper  <jackson@ximian.com>
9274
9275         * Binding.cs: Bind to <Property>Changed events so we can detect
9276         when properties are changed and update the data.
9277
9278 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
9279
9280         * ImageList.cs:
9281           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
9282           - Fixes ImageList constructor with ImageList container
9283           - Fixes image scaling (wrong parameters at DrawImage)
9284
9285 2005-02-02  Jackson Harper  <jackson@ximian.com>
9286
9287         * Binding.cs: Make property searches case-insensitive. Eliminate
9288         some duplicated code.
9289
9290 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
9291
9292         * ComboBox.cs:
9293                 - Handle focus event
9294                 - Fix scrollbar events
9295                 - Discard highlighted item if remove it
9296                 - Fixes SelectedItem with strings
9297
9298 2005-03-01  Peter Bartok  <pbartok@novell.com>
9299
9300         * Control.cs:
9301           - Fixed Visible property, now follows (once again) parent chain
9302             to return false if any control in the chain is visible=false
9303           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
9304           - Fixed several places where is_visible instead of Visible was used
9305           - Implemented FIXME related to focus selection when setting focused
9306             control to be invisible
9307
9308         * XplatUIWin32.cs: Now using proper method to find out if window is
9309           visible. Thanks to Jordi for pointing it out
9310
9311 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
9312
9313         * ComboBox.cs: show/hide scrollbar instead of creating it
9314
9315 2005-02-27  Jackson Harper  <jackson@ximian.com>
9316
9317         * CurrencyManager.cs: Add PositionChanged stuff.
9318
9319 2005-02-27  Peter Bartok  <pbartok@novell.com>
9320
9321         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
9322         * XplatUIOSX.cs: Added GetMenuOrigin() stub
9323         * XplatUIWin32.cs: Implemented GetMenuOrigin()
9324         * XplatUIX11.cs:
9325           - Implemented GetMenuDC()
9326           - Implemented GetMenuOrigin()
9327           - Implemented ReleaseMenuDC()
9328           - Implemented generation of WM_NCPAINT message
9329           - Implemented generation and handling of WM_NCCALCSIZE message
9330         * Form.cs: Added debug helper message for Jordi's menu work
9331         * Hwnd.cs:
9332           - Modified ClientRect property; added setter, fixed getter to handle
9333             setting of ClientRect
9334           - Added MenuOrigin property
9335
9336 2005-02-26  Peter Bartok  <pbartok@novell.com>
9337
9338         * XplatUIX11.cs:
9339           - Destroys the caret if a window that's being destroyed contains it
9340           - Ignores expose events coming from the X11 queue for windows that
9341             already are destroyed
9342           - Now uses the proper variable for handling DestroyNotify, before we
9343             marked the wrong window as destroyed
9344           - Improved/added some debug output
9345
9346 2005-02-26  Peter Bartok  <pbartok@novell.com>
9347
9348         * X11Keyboard.cs: Fixes to work on 64bit systems
9349
9350 2005-02-26  Peter Bartok  <pbartok@novell.com>
9351
9352         * Control.cs:
9353           - Now calling OnHandleDestroyed from DestroyHandle()
9354             instead of Dispose()
9355           - Removed bogus call to controls.Remove() from DestroyHandle()
9356
9357 2005-02-26  Peter Bartok  <pbartok@novell.com>
9358
9359         * Control.cs: Properly destroy child windows when our handle is
9360           destroyed
9361
9362 2005-02-25  Peter Bartok  <pbartok@novell.com>
9363
9364         * XplatUI.cs:
9365           - Added 'DriverDebug' define to allow tracing XplatUI API calls
9366           - Alphabetized Static Methods and Subclasses
9367
9368         * XplatUIX11.cs:
9369           - Added XException class to allow custom handling of X11 exceptions
9370           - Created custom X11 error handler, tied into XException class
9371           - Added support for MONO_XEXCEPTIONS env var to allow the user
9372             to either throw an exception on X errors or continue running
9373             after displaying the error
9374           - Added handling of DestroyNotify message
9375           - Added handler for CreateNotify message (still disabled)
9376           - Improved (tried to at least) Where method to provide file and lineno
9377         * X11Structs.cs:
9378           - Added XErrorHandler delegate
9379           - Added XRequest enumeration (to suppor translation of errors)
9380
9381 2005-02-25  Jackson Harper  <jackson@ximian.com>
9382
9383         * PropertyManager.cs: Implement editing features
9384         * CurrencyManager.cs:
9385         * Binding.cs: First attempt at UpdateIsBinding
9386         * BindingManagerBase.cs: Call UpdateIsBinding before
9387         pushing/pulling data.
9388
9389 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
9390
9391         * MenuAPI.cs: Respect disabled items
9392         * ThemeWin32Classic.cs
9393                 - Caches ImageAttributes creation for DrawImageDisabled
9394                 - Fixes vertical menu line drawing
9395                 - Draws disabled arrows in disable menu items
9396
9397 2005-02-24  Peter Bartok  <pbartok@novell.com>
9398
9399         * Hwnd.cs:
9400           - Added UserData property to allow associating arbitrary objects
9401             with the handle
9402           - Fixed leak; now removing Hwnd references from static windows array
9403         * XplatUIWin32.cs:
9404           - Fixed Graphics leak in PaintEventEnd
9405           - Removed usage of HandleData, switched over to Hwnd class
9406         * HandleData.cs: Removed, obsoleted by Hwnd.cs
9407
9408 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
9409
9410         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
9411         * ScrollBar.cs: Fixes bug
9412         * TrackBar.cs: removes death code, clipping, mimize refreshes,
9413          keyboard navigation enhancements
9414
9415 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
9416
9417         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
9418         * GroupBox.cs: Add control styles
9419         * Label.cs: Add control styles
9420         * UpDownBase.cs: Add control styles
9421         * ListBox.cs: Add control styles
9422         * XplatUIWin32.cs: Fixes wrong parameter order
9423
9424
9425 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
9426
9427         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
9428
9429 2005-02-23  Jackson Harper  <jackson@ximian.com>
9430
9431         * PropertyManager.cs: Implement property binding. This doesn't
9432         seem to work yet though as (I think) there are some bugs in
9433         System.ComponentModel.PropertyDescriptor.
9434         * BindingContext.cs: Use new PropertyManager constructor.
9435
9436 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
9437
9438         * ProgressBar.cs: use clip region in ProgressBar
9439         * ThemeWin32Classic.cs: use clip region in ProgressBar
9440
9441 2004-02-22  Jackson Harper  <jackson@ximian.com>
9442
9443         * BindingsCollection.cs: Remove some debug code.
9444
9445 2005-02-22  Jackson Harper  <jackson@ximian.com>
9446
9447         * BindingContext.cs:
9448         * ControlBindingsCollection.cs:
9449         * CurrencyManager.cs:
9450         * Binding.cs:
9451         * BindingManagerBase.cs: Initial implementation
9452         * BindingsCollection.cs: Add an internal contains method that the
9453         BindingManagerBase uses to ensure bindings aren't added twice to
9454         the collection.
9455         * PropertyManager.cs: Stubbed out.
9456         * Control.cs:
9457         * ContainerControl.cs: Hook up databinding
9458         
9459 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
9460
9461         * XplatUIOSX.cs:
9462           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
9463           Fixed Invalidate/Update chain.
9464           Fixed tons of other minor bugs (this is almost a complete rewrite).
9465
9466 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
9467
9468         * ComboBox.cs: do subcontrol creation when the control is created
9469
9470 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
9471
9472         * Label.cs: fixes image drawing (image and imagelist)
9473         * ThemeWin32Classic.cs: cache brushes
9474         
9475 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
9476
9477         * Form.cs: Move menu drawing code to Theme class
9478         * ComboBox.cs: Move ComboBox drawing code to Theme class
9479         * MenuItem.cs: Move menu drawing code to Theme class
9480         * MenuAPI.cs: Move menu drawing code to Theme class
9481         * ThemeWin32Classic.cs: New methods
9482         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
9483         * ListBox.cs: Move Listbox drawing code to Theme class
9484         * Theme.cs: New methods
9485
9486 2005-02-20  Peter Bartok  <pbartok@novell.com>
9487
9488         * Control.cs:
9489           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
9490             only process mnemonics on those)
9491           - Fixed event sequence for key handling; first calling
9492             ProcessKeyEventArgs now
9493         * TextBoxBase.cs:
9494           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
9495             for processing non-character keys
9496           - Fixed WM_CHAR to generate proper event sequence before processing
9497         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
9498           generation
9499
9500 2005-02-19  Peter Bartok  <pbartok@novell.com>
9501
9502         * UserControl.cs: Added TextChanged event; added attributes
9503         * SizeGrip.cs: Implemented resizing and optional display of grip
9504         * Form.cs: Fixed attribute
9505         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
9506           Changed meaning of ScrollWindow bool argument; instead of the
9507           clear attribute (which will be true usually anyway), it gives the
9508           option of moving child controls as well.
9509         * XplatUIX11.cs:
9510           - Changed to match new ScrollWindow argument
9511           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
9512             now handles the implicit parent window a WM puts around us
9513         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
9514           to work)
9515         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
9516         * TreeView.cs: Adjusted to new ScrollWindow arguments
9517
9518 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
9519
9520         * Form.cs: Menu integration with non-client area
9521         * MenuItem.cs: Menu integration with non-client area
9522         * MenuAPI.cs: Menu integration with non-client area
9523
9524 2005-02-18  Peter Bartok  <pbartok@novell.com>
9525
9526         * MethodInvoker.cs: Added
9527         * MdiLayout.cs: Added
9528         * SendKeys.cs: Started implementation
9529         * ErrorIconAlignment.cs: Added
9530
9531 2005-02-18  Peter Bartok  <pbartok@novell.com>
9532
9533         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
9534         * Form.cs: Added handling for Menu-related Non-client messages
9535
9536 2005-02-17  Peter Bartok  <pbartok@novell.com>
9537
9538         * UpDownBase.cs: Fixed typo, compilation errors
9539         * DomainUpDown.cs: Fixed attribute value
9540
9541 2005-02-16  Miguel de Icaza  <miguel@novell.com>
9542
9543         * UpDownBase.cs: Attach entry events.
9544         Propagate events.
9545         Add ForeColor property, Focused, InterceptArrowKeys (interception
9546         does not work yet).
9547
9548 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
9549
9550         * Form.cs:
9551                 - Redraw non client are on Setmenu
9552                 - Calc proper menu starting point
9553
9554 2005-02-17  Peter Bartok  <pbartok@novell.com>
9555
9556         * Application.cs: Fixed message_filter check
9557
9558 2005-02-17  Peter Bartok  <pbartok@novell.com>
9559
9560         * Application.cs: Now calls registered message filters
9561         * DockStyle.cs: Fixed attribute
9562         * Form.cs: Fixed attribute
9563         * Menu.cs: Fixed attribute
9564         * ToolTip.cs: Fixed attribute
9565         * TreeNode.cs: Added missing attributes and arranged in regions
9566         * PropertyGrid.cs: Fixed signatures
9567         * TreeNodeCollection.cs: Added attributes
9568         * Splitter.cs: Added missing attributes; arranged into regions
9569         * TabPage.cs: Added missing attributes; arranged into regions
9570         * TextBoxBase.cs: Added missing attributes
9571         * TextBox.cs: Added missing attributes
9572         * ArrangeDirection.cs: Added missing attributes
9573         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
9574         * ToolBarButton.cs: Fixed attributes
9575         * AnchorStyles.cs: Fixed attribute
9576         * TrackBar.cs: Fixed attributes
9577         * TabControl.cs: Added missing attributes and arranged into regions
9578         * ToolBar.cs: Fixed attribute
9579         * StatusBar.cs: Fixed signature, organized into regions and added
9580           attributes
9581         * StatusBarPanel.cs: Fixed attributes
9582         * ContentsResizedEventArgs.cs: Implemented
9583         * ContentsResizedEventHandler.cs: Implemented
9584         * DateBoldEventArgs.cs: Implemented
9585         * DateBoldEventHandler.cs: Implemented
9586         * UpDownEventArgs.cs: Implemented
9587         * UpDownEventHandler.cs: Implemented
9588         
9589 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
9590
9591         * Form.cs: first Menu NC refactoring
9592         * MenuAPI.cs: first Menu NC refactoring
9593         
9594 2005-02-16  Peter Bartok  <pbartok@novell.com>
9595
9596         * ImeMode.cs: Added missing attributes
9597         * Menu.cs: Fixed attribute
9598         * GroupBox.cs: Fixed attribute
9599         * Label.cs: Fixed attribute
9600         * ColorDialog.cs (RunDialog): Removed TODO attribute
9601         * ComboBox.cs: Fixed attributes
9602         * ListControl.cs: Added missing attributes
9603         * PropertyGrid.cs: Fixed attributes
9604         * Control.cs: Fixed attributes
9605         * ListViewItem.cs: Added TypeConverter attribute
9606         * NotifyIcon.cs: Fixed attributes
9607         * ListView.cs: Fixed attributes
9608         * ButtonBase.cs: Fixed attribute
9609         * ImageList.cs: Added missing attributes
9610         * ContainerControl.cs: Fixed signature
9611         * CheckedListBox.cs: Fixed attribute; added missing attributes
9612         * Panel.cs: Fixed attributes
9613         * PropertyTabChangedEventArgs.cs: Added missing attribute
9614         * PropertyValueChangedEventArgs.cs: Added missing attribute
9615         * Binding.cs: Fixed attribute
9616         * ListViewItemConverter: Implemented ListViewSubItemConverter class
9617         * ListBox.cs: Fixed attribute; added missing attributes;
9618         * ScrollableControl.cs: Added missing attributes
9619         * PictureBox.cs: Added missing attributes; implemented missing property
9620         * DateTimePicker.cs: Added missing attributes
9621         * Theme.cs (ToolWindowCaptionHeight): Fixed type
9622         * MonthCalendar.cs: Fixed attributes
9623         * StatusBarPanel.cs: Added missing attributes
9624         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
9625
9626 2005-02-16  Peter Bartok  <pbartok@novell.com>
9627
9628         * TextBoxBase.cs: The previous method to enforce height yet remember
9629           the requested high was less than ideal, this is an attempt to do
9630           it better.
9631         * Control.cs: Added comment about possible problem
9632         * Copyright: Updated format
9633         * GridItemType.cs: Fixed swapped values
9634
9635 2005-02-15  Jackson Harper  <jackson@ximian.com>
9636
9637         * BaseCollection.cs: Use property so we never access an
9638         uninitialized list. Also initialize the list in the property.
9639
9640 2005-02-15  Peter Bartok  <pbartok@novell.com>
9641
9642         * GroupBox.cs (ProcessMnemonic): Implemented
9643         * Label.cs (ProcessMnemonic): Implemented
9644         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
9645           hotkeys
9646
9647 2005-02-15  Peter Bartok  <pbartok@novell.com>
9648
9649         * RadioButton.cs (ProcessMnemonic): Implemented
9650         * CheckBox.cs (ProcessMnemonic): Implemented
9651         * Control.cs:
9652           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
9653             handling
9654           - Added internal method to allow calling ProcessMnemonic from other
9655             controls
9656         * ContainerControl.cs:
9657           - Started support for handling validation chain handling
9658           - Implemented ProcessMnemonic support
9659           - Added Select() call to Active, to make sure the active control
9660             receives focus
9661         * Form.cs: Setting toplevel flag for Forms (this was lost in the
9662           FormParent rewrite)
9663         * ThemeWin32Classic.cs:
9664           - DrawCheckBox(): Fixed stringformat to show hotkeys
9665           - DrawRadioButton(): Fixed stringformat to show hotkeys
9666         * CommonDialog.cs: Removed WndProc override, not needed
9667
9668 2005-02-14  Peter Bartok  <pbartok@novell.com>
9669
9670         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
9671           missed those in the rewrite
9672
9673 2005-02-14  Miguel de Icaza  <miguel@novell.com>
9674
9675         * NumericUpDown.cs (Increment, ToString): Add.
9676         (DecimalPlaces): implement.
9677         
9678         Add attributes.
9679         
9680         * UpDownBase.cs: Add the designer attributes.
9681
9682 2005-02-13  Peter Bartok  <pbartok@novell.com>
9683
9684         * Panel.cs: Removed border_style, now in Control
9685         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
9686           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
9687
9688 2005-02-13  Peter Bartok  <pbartok@novell.com>
9689
9690         * MouseButtons.cs: Added missing attributes
9691         * XplatUIStructs.cs: Added enumeration for title styles
9692         * LeftRightAlignment.cs: Added missing attributes
9693         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
9694           it compatible with Graphics.FromHwnd()
9695         * SelectedGridItemChangedEventArgs.cs: Fixed property type
9696         * Keys.cs: Added missing attributes
9697         * SelectionRange.cs: Added missing attributes
9698         * SelectionRangeConverter.cs: Added
9699         * XplatUI.cs:
9700           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
9701             ReleaseMenuDC methods
9702           - Renamed ReleaseWindow to UngrabWindow
9703           - Added proper startup notice to allow version identification
9704         * Form.cs:
9705           - Added missing attributes
9706           - Removed FormParent concept
9707         * Label.cs: Removed border_style field, now in Control
9708         * RadioButton.cs: Now properly selects RadioButton when focus is
9709           received
9710         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
9711         * Control.cs:
9712           - Added missing attributes
9713           - Added borderstyle handling
9714           - Removed FormParent concept support
9715           - Fixed calls to XplatUI to match changed APIs
9716           - Fixed bug that would case us to use disposed Graphics objects
9717           - Removed unneeded internal methods
9718           - PerformLayout(): Fixed to handle DockStyle.Fill properly
9719           - SelectNextControl(): Fixed to properly check common parents
9720         * TextBoxBase.cs: Removed border_style field (now in Control)
9721         * MessageBox.cs:
9722           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
9723             fixed calculations for form size
9724           - Added support for localized strings and icons
9725           - Improved form size calculations, added border
9726         * ListView.cs: Removed border_style field (now in Control)
9727         * X11Structs.cs: Moved several structs from X11 driver here
9728         * X11Keyboard.cs: Changed debug message
9729         * Application.cs: Removed FormParent concept support
9730         * CommonDialog.cs:
9731           - Resetting end_modal flag
9732           - Removed FormParent concept support
9733         * NativeWindow.cs: Removed FormParent concept support
9734         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
9735           Client area and Non-Client whole window to allow support for WM_NC
9736           messages
9737         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
9738           prevent using it until it supports Hwnd as per Geoff Norton's request
9739         * ToolBar.cs: Fixed drawing, was not doing proper drawing
9740         * PictureBox.cs: Removed border_style field, now in Control
9741         * XplatUIWin32.cs: Added new driver methods
9742
9743 2005-02-12  Peter Bartok  <pbartok@novell.com>
9744
9745         * OpacityConverter.cs: Implemented
9746         * Hwnd.cs: Internal class to support drivers that need to emulate
9747           client area/non-client area window behaviour
9748
9749 2005-02-11  Peter Bartok  <pbartok@novell.com>
9750
9751         * KeysConverter.cs: Implemented
9752
9753 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
9754
9755         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
9756         * LinkLabel: Added missing attributes
9757         * MainMenu.cs: fixes ToString
9758         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
9759         * ListBox.cs: fixes event position
9760         * TrackBar.cs: adds missing attributes and events
9761         
9762 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
9763
9764         * MenuItem.cs: Use SystemInformation and bug fixes
9765         * MenuAPI.cs: Use SystemInformation and bug fixes
9766
9767 2005-02-09  Jackson Harper  <jackson@ximian.com>
9768
9769         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
9770         their keystate otherwise things like VK_MENU get stuck "on".
9771
9772 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
9773
9774         * ListBox.cs: Fixes AddRange bug
9775         
9776 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
9777
9778         * ProgressBar.cs
9779                 - Add missing attributes
9780                 - Add missing method
9781                 
9782         * CheckedListBox.cs: Added missing attributes
9783                 - Add missing attributes
9784                 - Remove extra method
9785         
9786         * ComboBox.cs: Added missing attributes
9787         * VScrollBar.cs: Added missing attributes
9788         * ScrollBar.cs:  Added missing attributes
9789         * ListBox.cs: Fixes signature, add missing consts
9790         * LinkArea.cs:   Added missing attributes
9791         
9792
9793 2005-02-08  Peter Bartok  <pbartok@novell.com>
9794
9795         * Menu.cs: Added missing attributes
9796         * MainMenu.cs: Added missing attributes
9797         * GroupBox.cs: Added missing attributes
9798         * Label.cs: Added missing attributes
9799         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
9800         * ColorDialog.cs:
9801           - Added Instance and Options properties
9802           - Added missing attributes
9803         * Cursor.cs: Made Serializable
9804         * NotifyIcon: Added missing attributes
9805         * MenuItem.cs: Added missing attributes
9806         * TextBoxBase.cs: Implemented AppendText() and Select() methods
9807         * Panel.cs: Added Missing attributes
9808         * MonthCalendar.cs: Fixed CreateParams
9809
9810 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
9811         
9812         * LinkLabel.cs:
9813                 - Fixes signature
9814                 - Fixes issues with links
9815                 - Adds the class attributes
9816
9817 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
9818         
9819         * ComboBox.cs:
9820                 - Fixes button when no items available in dropdown
9821                 - Fixes repainting problems
9822                 - Adds the class attributes
9823                 
9824 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
9825
9826         * XplatUIOSX.cs: Detect the menu bar and title bar height from
9827         the current theme.  Cache these on startup.
9828
9829 2005-02-07  Jackson Harper  <jackson@ximian.com>
9830
9831         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
9832         the scrollbar buttons when they are depressed.
9833
9834 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
9835
9836         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
9837         Get the display size from the main displayid.  We currently dont
9838         support multiple display configurations.
9839
9840 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
9841
9842         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
9843
9844 2005-02-07  Miguel de Icaza  <miguel@novell.com>
9845
9846         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
9847
9848 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
9849
9850         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
9851
9852 2005-02-04  Jackson Harper  <jackson@ximian.com>
9853
9854         * ThemeWin32Classic.cs: Respect the clipping rect when
9855         drawing. Only fill the intersection of clips and rects so there
9856         isn't a lot of large fills.
9857         * ScrollBar.cs: Pass the correct clipping rect to the theme
9858         engine. Remove some debug code.
9859
9860 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
9861         
9862         * DateTimePicker.cs:
9863                 - Fixed crash on DateTime.Parse, use Constructor instead
9864
9865 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
9866         
9867         * MenuItem.cs:
9868         * MenuAPI.cs:
9869                 - Owner draw support (MeasureItem and DrawItem)
9870
9871 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
9872         
9873         *  Menu.cs:
9874                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
9875                 - Fixes MenuItems.Add range
9876         * MenuItem.cs:
9877                 - MergeMenu and Clone and CloneMenu functions
9878
9879 2005-02-03  Jackson Harper  <jackson@ximian.com>
9880
9881         * ScrollBar.cs: Make abstract
9882         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
9883         is abstract.
9884
9885 2005-02-03  Jackson Harper  <jackson@ximian.com>
9886
9887         * ScrollBar.cs: First part of my scrollbar fixups. This removes
9888         all the unneeded refreshes and uses invalidates with properly
9889         computed rects.
9890
9891 2005-02-03  Peter Bartok  <pbartok@novell.com>
9892
9893         * ComponentModel.cs: Added
9894         * IDataGridEditingService.cs: Added
9895         * Timer.cs: Added missing attributes
9896         * ToolTip.cs: Added missing attributes
9897
9898 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
9899
9900         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
9901
9902 2005-02-03  Peter Bartok  <pbartok@novell.com>
9903
9904         * ListBox.cs: Added missing attributes
9905
9906 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
9907         
9908         * ListBox.cs:
9909                 - Fixes font height after font change
9910                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
9911                 
9912 2005-02-02  Peter Bartok  <pbartok@novell.com>
9913
9914         * HandleData.cs: Introduced static methods to allow class
9915           to be more self-contained and track it's own HandleData objects
9916         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
9917           HandleData to use new static methods
9918
9919 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
9920
9921         * Combobox.cs:
9922                 - Fixes default size and PreferredHeight
9923                 - Missing events
9924                 - ObjectCollection.Insert implementation
9925                 
9926         * ListControl.cs
9927                 - Fixes signature
9928         * ListBox.cs:
9929                 - Several fixes
9930                 - ObjectCollection.Insert implementation
9931                 - No selection after clean
9932                 - Small fixes
9933
9934 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
9935
9936         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
9937
9938 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
9939
9940         * Combobox.cs:
9941                 - Caches ItemHeight calculation for OwnerDrawVariable
9942                 - Handles dropdown properly
9943                 - Fixes several minor bugs
9944
9945 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
9946
9947         * ListBox.cs:
9948                 - Fixes 71946 and 71950
9949                 - Fixes changing Multicolumn on the fly
9950                 - Fixes keyboard navigation on Multicolumn listboxes
9951
9952 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
9953         
9954         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
9955         crash reporter log.
9956
9957 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
9958
9959         * XplatUIOSX.cs: Allow applications to actually exit.
9960
9961 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
9962
9963         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
9964         their parent at creation time rather than lazily later.  Fixes a major
9965         regression we were experiencing.
9966
9967 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
9968
9969         * ThemeWin32Classic.cs: more date time picker painting fixes
9970         * DateTimePicker.cs: more monthcalendar drop down fixes
9971         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
9972
9973 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
9974
9975         * ScrollBar.cs:
9976                 - When moving the thumb going outside the control should stop the moving
9977                 - Adds the firing of missing events
9978                 - Fixes no button show if Size is not specified
9979                 - End / Home keys for keyboard navigation
9980
9981 2005-01-30  Peter Bartok  <pbartok@novell.com>
9982
9983         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
9984           sanity check to prevent theoretical loop
9985         * XplatUIWin32.cs (SetVisible): Removed debug output
9986         * XplatUIX11.cs (SystrayChange): Added sanity check
9987         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
9988         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
9989           behaviour, valid until the X11 client window rewrite is done
9990         * TextBox.cs (ctor): Setting proper default foreground and background
9991           colors
9992
9993 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
9994
9995         * Theme: Added DrawDateTimePicker to interface
9996         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
9997         * DateTimePicker.cs: Created (still needs keys and painting code)
9998         * DateTimePickerFormat.cs: added
9999         * MonthCalendar.cs: fixed CreateParams for popup window mode
10000           
10001 2005-01-29  Peter Bartok  <pbartok@novell.com>
10002
10003         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
10004           this should also the calculations for ligher/darker
10005         * Theme.cs: Fixed defaults for ScrollBar widths/heights
10006
10007 2005-01-29  Peter Bartok  <pbartok@novell.com>
10008
10009         * ArrangeDirection.cs: Added
10010         * ArrangeStartingPositon.cs: Added
10011         * SystemInformation.cs: Implemented
10012         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
10013           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
10014           used by SystemInformation class
10015         * X11Strucs.cs: Added XSizeHints structure
10016         * MenuAPI.cs:
10017           - Fixed CreateParams to make sure the menu window is always visible
10018           - TrackPopupMenu: Added check to make sure we don't draw the
10019             menu offscreen
10020
10021 2005-01-29  Peter Bartok  <pbartok@novell.com>
10022
10023         * HandleData.cs: Added method for altering invalid area
10024         * TextBoxBase.cs: Implemented TextLength
10025
10026 2005-01-28  Peter Bartok  <pbartok@novell.com>
10027
10028         * XplatUIX11.cs: Improvement over last patch, not sending
10029           the WM_PAINT directly anymore, instead we scroll any pending
10030           exposed areas and let the system pick out the WM_PAINT later
10031
10032 2005-01-28  Peter Bartok  <pbartok@novell.com>
10033
10034         * SWF.csproj: Deleted, no longer used. Instead,
10035           Managed.Windows.Forms/SWF.csproj should be used
10036         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
10037           directly, to avoid a potential race condition with the next
10038           scroll
10039
10040 2005-01-28  Peter Bartok  <pbartok@novell.com>
10041
10042         * XplatUI.cs: Made class internal
10043
10044 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
10045
10046         * CheckedListBox.cs:
10047                 - Draw focus
10048                 - Fixed Drawing
10049                 - Missing methods and events
10050
10051 2005-01-27  Peter Bartok  <pbartok@novell.com>
10052
10053         * Application.cs (Run): Don't use form if we don't have one
10054
10055 2005-01-27  Peter Bartok  <pbartok@novell.com>
10056
10057         * TextBoxBase.cs (get_Lines): Fixed index off by one error
10058
10059 2005-01-27  Peter Bartok  <pbartok@novell.com>
10060
10061         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
10062         * GridItem.cs: Added; Patch by Jonathan S. Chambers
10063         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
10064         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
10065         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
10066         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
10067         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
10068         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
10069         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
10070         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
10071         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
10072         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
10073
10074 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
10075
10076         * Combobox.cs:
10077                 - Draw focus on Simple Combobox
10078                 - Fixes drawing issues
10079                 - fixes 71834
10080
10081 2005-01-27  Peter Bartok  <pbartok@novell.com>
10082
10083         * Form.cs:
10084           - Place window in default location, instead of hardcoded 0/0
10085           - Send initial LocationChanged event
10086         * Control.cs:
10087           - UpdateBounds after creation to find out where the WM placed us
10088           - Make sure that if the ParentForm changes location the Form
10089             is notified
10090         * XplatUIX11.cs: XGetGeometry will not return the coords relative
10091             to the root, but to whatever the WM placed around us.
10092             Translate to root coordinates before returning toplevel
10093             coordinates
10094         * XplatUIWin32.cs: Removed debug output
10095         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
10096           flag to GetWindowPos, to allow translation of coordinates on X11
10097
10098 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
10099
10100         * ListBox.cs: connect LostFocus Event
10101
10102 2005-01-27  Peter Bartok  <pbartok@novell.com>
10103
10104         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
10105           XplatUIX11.cs: Extended the Systray API
10106         * Form.cs: Removed debug output
10107         * Application.cs: Fixed focus assignment, always need to call
10108           XplatUI.Activate() since Form.Activate() has rules that may
10109           prevent activation
10110         * NotifyIcon.cs: Should be complete now
10111         * ToolTip.cs: Worked around possible timer bug
10112
10113 2005-01-27  Jackson Harper  <jackson@ximian.com>
10114
10115         * TabControl.cs:
10116         - Only invalidate the effected tabs when the
10117         selected index changes. This reduces drawing and gets rid of some
10118         flicker.
10119         - Only refresh if the tabs need to be shifted, otherwise only
10120         invalidate the slider button.
10121         - On windows the tabs are not filled to right if the slider is
10122         visible.
10123         
10124 2005-01-27  Jackson Harper  <jackson@ximian.com>
10125
10126         * TabControl.cs: Only refresh on mouseup if we are showing the
10127         slider. Also only invalidate the button whose state has changed.
10128
10129 2005-01-26  Peter Bartok  <pbartok@novell.com>
10130
10131         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
10132         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
10133           and SystrayRemove() methods
10134         * XplatUIOSX.cs: Stubbed Systray methods
10135         * XplatUIX11.cs:
10136           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
10137             methods
10138           - Fixed broken XChangeProperty calls (marshalling messed up things)
10139         * X11Structs.cs: Added enums and structs required for Size hinting
10140         * NotifyIcon.cs: Added & implemented
10141
10142 2005-01-26  Jackson Harper  <jackson@ximian.com>
10143
10144         * TabControl.cs: Space vertically layed out tabs properly.
10145
10146 2005-01-26  Peter Bartok  <pbartok@novell.com>
10147
10148         * Form.cs (CreateClientParams): Always set the location to 0,0
10149           since we're a child window.
10150
10151         * Control.cs (SetVisibleCore): Always explicitly setting the location
10152           of a toplevel window, apparently X11 doesn't like to move windows
10153           while they're not mapped.
10154
10155 2005-01-26  Jackson Harper  <jackson@ximian.com>
10156
10157         * TabControl.cs: Implement FillToRight size mode with vertically
10158         rendered tabs.
10159
10160 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
10161
10162         * ControlPaint.cs, ThemeWin32Classic.cs
10163                 - Fixes DrawFocusRectangle
10164
10165 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
10166
10167         * MenuAPI.cs:
10168                 - MenuBar tracking only starts when item is first clicked
10169                 - Fixes menu hidding for multiple subitems
10170                 - Unselect item in MenuBar when item Executed
10171                 - Fixes bug 71495
10172
10173 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
10174
10175         * ListControl.cs:
10176                 - IsInputKey for ListBox
10177         * ListBox.cs:
10178                 - Focus item
10179                 - Shift and Control item selection
10180                 - Implement SelectionMode.MultiExtended
10181                 - Fixes RightToLeft
10182         * ComboBox.cs:
10183                 - IsInputKey implemented
10184                 - Do not generate OnTextChangedEdit on internal txt changes
10185                 
10186 2005-01-23  Peter Bartok  <pbartok@novell.com>
10187
10188         * AccessibleObject.cs: Partially implemented Select()
10189         * MonthCalendar.cs: Added missing attributes and events
10190         * Form.cs: Fixed CreateParams behaviour, now controls derived from
10191           form can properly override CreateParams.
10192         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
10193           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
10194           Control performs Invalidate & Update
10195         * NativeWindow (CreateHandle): Added special handling for Form
10196           and Form.FormParent classes to allow overriding of From.CreateParams
10197         * Control.cs:
10198           - ControlNativeWindow: Renamed 'control' variable to more intuitive
10199             name 'owner'
10200           - ControlNativeWindow: Added Owner property
10201           - Removed usage of Refresh() on property changes, changed into
10202             Invalidate(), we need to wait until the queue is processed for
10203             updates, direct calls might cause problems if not all vars for
10204             Paint are initialized
10205           - Added call to UpdateStyles() when creating the window, to set any
10206             styles that CreateWindow might have ignored.
10207           - Added support for Form CreateParent overrides to UpdateStyles()
10208         * MessageBox.cs: Removed no longer needed FormParent override stuff,
10209           CreateParams are now properly overridable
10210         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
10211           CreateParams are now properly overridable
10212
10213 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
10214
10215         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
10216         OnTextBoxChanged.
10217
10218         Capture LostFocus and OnTextBoxChanged.  The later introduces a
10219         recursive invocation that I have not figured out yet.
10220
10221         Reset the timer when not using (it was accumulating).
10222
10223
10224         (OnTextBoxChanged): Set UserEdit to true here to track whether the
10225         user has made changes that require validation.
10226
10227         Reset changing to avoid loops.
10228
10229 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
10230
10231         * NumericUpDown.cs: Display value at startup.
10232
10233         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
10234         ValidateEditText.
10235
10236         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
10237         filled in.  Added some basic parsing of text.
10238
10239         Still missing the OnXXX method overrides, and figuring out the
10240         events that must be emitted.
10241
10242         * UpDownBase.cs: Handle UserEdit on the Text property.
10243         
10244 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
10245
10246         * ComboBox.cs:
10247           - Fixes IntegralHeight
10248           - ToString method
10249
10250 2005-01-21  Jackson Harper  <jackson@ximian.com>
10251
10252         * TabControl.cs: Set the SelectedIndex property when SelectedTab
10253         is set so that the page visibility is updated and the tabs are
10254         sized correctly.
10255
10256 2005-01-21  Jackson Harper  <jackson@ximian.com>
10257
10258         * TabControl.cs: Use cliping rectangle for blitting. Give the
10259         theme the clipping rect so we can do clipping while
10260         drawing. Remove some debug code.
10261
10262 2005-01-21  Jackson Harper  <jackson@ximian.com>
10263
10264         * TabPage.cs: Add a new method so tab pages can force the tab
10265         control to recalculate the tab page sizes.
10266         * TabControl.cs: UpdateOwner needs to make the tab control recalc
10267         sizes.
10268
10269 2005-01-20  Jackson Harper  <jackson@ximian.com>
10270
10271         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
10272
10273 2005-01-20  Jackson Harper  <jackson@ximian.com>
10274
10275         * TreeView.cs: Set the bounds for nodes properly. They were
10276         getting screwed up when checkboxes were not enabled, but images
10277         were.
10278
10279 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
10280
10281         * ListBox.cs:
10282                 - Owner draw support
10283                 - Fixes
10284                 
10285 2005-01-20  Jackson Harper  <jackson@ximian.com>
10286
10287         * XplatUIStructs.cs: More misc keys
10288         * X11Keyboard.cs: Ignore some control keys.
10289
10290 2005-01-20  Jackson Harper  <jackson@ximian.com>
10291
10292         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
10293         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
10294
10295 2005-01-19  Peter Bartok  <pbartok@novell.com>
10296
10297         * Control.cs: Un-selecting the control when it is loosing focus
10298
10299 2005-01-19  Jackson Harper  <jackson@ximian.com>
10300
10301         * TreeView.cs: Hook up to the text controls leave event so we can
10302         end editing when the users clicks outside the text box.
10303         
10304 2005-01-19  Jackson Harper  <jackson@ximian.com>
10305
10306         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
10307         get set in the conversion array.
10308
10309 2005-01-19  Peter Bartok  <pbartok@novell.com>
10310
10311         * Application.cs (ModalRun): Added a call to CreateControl to ensure
10312           focus is properly set
10313         * Button.cs:
10314           - Added missing attributes
10315           - removed styles, those are already set in the base class
10316         * ButtonBase.cs:
10317           - Added missing attributes
10318           - Added clip window styles
10319         * CheckBox.cs: Added missing attributes
10320         * CommonDialog.cs:
10321           - FormParentWindow.CreateParams: Added required clip styles
10322         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
10323           also filters modifier keys
10324         * MessageBox.cs:
10325           - Added assignment of Accept and Cancel button to enable Enter
10326             and Esc keys in MessageBox dialogs
10327           - FormParentWindow.CreateParams: Added required clip styles
10328         * RadioButton.cs: Added missing attributes
10329         * TextControl.cs: No longer draws selection if control does not
10330           have focus
10331         * TextBoxBase.cs:
10332           - Now draws simple rectangle around test area to make it obvious
10333             there's a control. This is a hack until we properly support borders
10334           - A few simple fixes to support selections better, now erases selected
10335             text when typing, and resets selection when using movement keys
10336
10337 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
10338
10339         * UpDownBase.cs: Added some new properties.
10340
10341         * DomainUpDown.cs: Implement a lot to get my test working.
10342
10343 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
10344
10345         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
10346
10347 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
10348
10349         * OSXStructs (WindowAttributes): Fixed csc complaints
10350
10351 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
10352
10353         * XplayUIOSX.cs:
10354           OSXStructs.cs: Initial refactor to move enums and consts into
10355           OSXStructs and use them in the driver for greater readability.
10356
10357 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
10358
10359         * XplatUIOSX.cs: Initial support for Standard Cursors.
10360         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
10361
10362 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
10363
10364         * ComboBox.cs: ability to change style when the ctrl is already
10365         created, missing methods and events, bug fixes, signature fixes
10366
10367 2005-01-19  Peter Bartok  <pbartok@novell.com>
10368
10369         * Cursors.cs (ctor): Added ctor to fix signature
10370
10371 2005-01-18  Peter Bartok  <pbartok@novell.com>
10372
10373         * Button.cs: Implemented DoubleClick event
10374         * ButtonBase.cs:
10375           - Fixed keyboard handling to behave like MS, where the press of
10376             Spacebar is equivalent to a mousedown, and the key release is
10377             equivalent to mouseup. Now a spacebar push will give the same
10378             visual feedback like a mouse click.
10379           - Added missing attributes
10380           - Added ImeModeChanged event
10381           - Added support for generating DoubleClick event for derived classes
10382         * CheckBox.cs:
10383           - Implemented DoubleClick event
10384           - Added missing attributes
10385         * CommonDialog.cs: Added missing attribute
10386         * ContextMenu.cs: Added missing attributes
10387         * RadioButton.cs:
10388           - AutoChecked buttons do not allow to be unselected when clicked
10389             (otherwise we might end up with no selected buttons in a group)
10390           - Added missing attributes
10391           - Implemented DoubleClickEvent
10392         * ThreadExceptionDialog.cs: Enabled TextBox code
10393
10394 2005-01-18  Peter Bartok  <pbartok@novell.com>
10395
10396         * Form.cs: Removed debug output
10397         * Button.cs: Added support for DoubleClick method
10398
10399 2005-01-18  Peter Bartok  <pbartok@novell.com>
10400
10401         * Form.cs:
10402           - Added method to parent window that allows triggering size
10403             calculations when a menu is added/removed
10404           - set_Menu: Cleaned up mess from early days of Form and Control,
10405             now properly triggers a recalc when a menu is added/removed
10406           - Added case to select form itself as focused form if no child
10407             controls exist
10408           - Added PerformLayout call when showing dialog, to ensure properly
10409             placed controls
10410         * Control.cs:
10411           - Select(): Made internal so Form can access it
10412           - Focus(): Only call Xplat layer if required (avoids loop), and sets
10413             status
10414         * Application.cs (Run): Removed hack and calls PerformLayout instead
10415           to trigger calculation when Form becomes visible
10416
10417 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
10418
10419         * ComboBox.cs: fixes for ownerdraw
10420
10421 2005-01-18  Peter Bartok  <pbartok@novell.com>
10422
10423         * TextControl.cs:
10424           - Sentinel is no longer static, each Document gets it's own, this
10425             avoids locking or alternatively overwrite problems when more
10426             than one text control is used simultaneously.
10427           - Switched to use Hilight and HilightText brushes for text selection
10428
10429         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
10430
10431 2005-01-18  Peter Bartok  <pbartok@novell.com>
10432
10433         * Control.cs:
10434           - Hooked up the following events:
10435                 o ControlAdded
10436                 o ControlRemoved
10437                 o HandleDestroyed
10438                 o ImeModeChanged
10439                 o ParentChanged
10440                 o TabStopChanged
10441                 o Invalidated
10442                 o SystemColorsChanged
10443                 o ParentFontChanged
10444                 o Move
10445           - Removed debug output
10446           - Added a call to the current theme's ResetDefaults when a color change
10447             is detected
10448         * Form.cs: Now setting the proper ImeMode
10449         * Theme.cs: Defined a method to force recreation of cached resources
10450           and rereading of system defaults (ResetDefaults())
10451         * ThemeWin32Classic.cs: Added ResetDefaults() stub
10452
10453 2005-01-17  Peter Bartok  <pbartok@novell.com>
10454
10455         * Control.cs: Added missing attributes
10456
10457 2005-01-17  Jackson Harper  <jackson@ximian.com>
10458
10459         * TreeNode.cs: Implement editing. Add missing properties selected
10460         and visible.
10461         * TreeView.cs: Implement node editing. Also some fixes to use
10462         Invalidate (invalid area) instead of Refresh when selecting.
10463
10464 2005-01-17  Peter Bartok  <pbartok@novell.com>
10465
10466         * Control.cs:
10467           - Implemented InvokeGotFocus() method
10468           - Implemented InvokeLostFocus() method
10469           - Implemented InvokePaint() method
10470           - Implemented InvokePaintBackground() method
10471           - Implemented InvokeClick() method
10472           - Implemented FindForm() method
10473           - Implemented RectangleToClient() method
10474           - Implemented ClientToRectangle() method
10475           - Implemented ResetBackColor() method
10476           - Implemented ResetCursor() method
10477           - Implemented ResetFont() method
10478           - Implemented ResteForeColor() method
10479           - Implemented ResetImeMode() method
10480           - Implemented ResetLeftToRight() method
10481           - Implemented ResetText() method
10482           - Implemented Scale() methods
10483           - Implemented ScaleCore() method
10484           - Implemented Update() method
10485           - Removed unused variables
10486           - Stubbed AccessibilityNotifyClients and
10487             ControlAccessibleObject.NotifyClients() methods (dunno what to do
10488             with those yet)
10489           - Now setting proper default for RightToLeft property
10490           - Fixed bug in SetClientSizeCore that would cause windows to get
10491             really big
10492           - Now sending Click/DoubleClick events
10493           - Now selecting controls when left mouse button is clicked on
10494             selectable control
10495         * AccessibleEvents.cs: Added
10496         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
10497         * XplatUIOSX.cs: Stubbed UpdateWindow() method
10498         * XplatUIWin32.cs: Implemented UpdateWindow() method
10499         * XplatUIX11.cs: Implemented UpdateWindow() method
10500         * Form.cs: Removed stray semicolon causing CS0162 warning
10501         * ThemeWin32Classic.cs: Fixed unused variable warnings
10502         * ScrollableControl.cs: Now calls base method for ScaleCore
10503         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
10504           style to avoid interference with internal click handler (which is
10505           different than standard Control click handling)
10506         * RadioButton.cs:
10507           - Now unchecks all sibling radio buttons when control is
10508             selected (Fixes #68756)
10509           - Removed internal tabstop variable, using the one inherited from
10510             Control
10511
10512 2005-01-17  Jackson Harper  <jackson@ximian.com>
10513
10514         * NavigateEventArgs.cs: Fix base type.
10515         * LinkLabel.cs: Sig fix
10516         
10517 2005-01-17  Jackson Harper  <jackson@ximian.com>
10518
10519         * TreeView.cs: Only invalidate the effected nodes bounds when
10520         selecting nodes.
10521
10522 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
10523
10524         * XplatUIWin32.cs: fixes Win32 marshaling
10525         * XplatUIX11.cs: fixes method signature
10526
10527 2005-01-17  Peter Bartok  <pbartok@novell.com>
10528
10529         * XplatUIX11.cs: Clean up resources when we no longer need them
10530
10531 2005-01-17  Peter Bartok  <pbartok@novell.com>
10532
10533         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
10534           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
10535           and DestroyCursor() methods.
10536         * Cursor.cs: Partially implemented, now supports standard cursors;
10537           still contains some debug code
10538         * Cursors.cs: Implemented class
10539         * Control.cs:
10540           - WndProc(): Added handling of WM_SETCURSOR message, setting the
10541             appropriate cursor
10542           - Implemented Cursor property
10543           - Replaced break; with return; more straightforwar and possibly
10544             faster
10545           - Now properly setting the result for WM_HELP
10546         * X11Structs.cs: Added CursorFontShape enum
10547         * XplatUIStructs.cs:
10548           - Added StdCursor enum (to support DefineStdCursor() method)
10549           - Added HitTest enum (to support sending WM_SETCURSOR message)
10550         * XplatUIX11.cs:
10551           - Now sends the WM_SETCURSOR message
10552           - Implemented new cursor methods
10553         * XplatUIOSX.cs: Stubbed new cursor methods
10554         * XplatUIWin32.cs:
10555           - Implemented new cursor methods
10556           - Added GetSystemMetrics function and associated enumeration
10557
10558 2005-01-15  Peter Bartok  <pbartok@novell.com>
10559
10560         * Control.cs:
10561           - WndProc(): Now handles EnableNotifyMessage
10562           - SelectNextControl(): Fixed bug where if no child or sibling
10563             controls exist we looped endlessly
10564
10565 2005-01-14  Jackson Harper  <jackson@ximian.com>
10566
10567         * TreeView.cs: Recalculate the tab pages when a new one is added
10568         so that the proper bounding rects are created.
10569
10570 2005-01-14  Jackson Harper  <jackson@ximian.com>
10571
10572         * TreeView.cs: Draw a gray box instead of a grip in the lower
10573         right hand corner when there are both horizontal and vertical
10574         scroll bars.
10575
10576 2005-01-14  Jackson Harper  <jackson@ximian.com>
10577
10578         * Control.cs: When erasing backgrounds use FromHwnd instead of
10579         FromHdc when there is a NULL wparam. This occurs on the X driver.
10580         * XplatUIX11.cs: Set the wparam to NULL.
10581
10582 2005-01-13  Jackson Harper  <jackson@ximian.com>
10583
10584         * PictureBox.cs: Implement missing methods (except ToString, need
10585         to test that on windows) and events. When visibility is changed we
10586         need to redraw the image because the buffers are killed. When size
10587         is changed refresh if the sizemode needs it.
10588
10589 2005-01-13  Peter Bartok  <pbartok@novell.com>
10590
10591         * Control.cs (SelectNextControl): Was using wrong method to select
10592           a control
10593
10594 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
10595
10596         * ComboBox.cs: fixes dropstyle
10597
10598 2005-01-13  Peter Bartok  <pbartok@novell.com>
10599
10600         * Form.cs:
10601           - Implemented Select() override
10602           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
10603           - Now sets keyboard focus on startup
10604         * Control.cs (SelectNextControl): Now properly handles directed=true
10605         * TextBoxBase.cs:
10606           - WndProc: Now passes tab key on to base if AcceptTabChar=false
10607           - Added (really bad) focus rectangle (mostly for testing)
10608         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
10609           to enforce redraw on focus changes
10610         * ContainerControl.cs:
10611           - Fixed detection of Shift-Tab key presses
10612           - Fixed traversal with arrow keys
10613         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
10614           gonna keep this or if it's complete yet
10615         
10616 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
10617
10618         * ComboBox.cs: missing properties, fixes
10619
10620 2005-01-13  Peter Bartok  <pbartok@novell.com>
10621
10622         * Panel.cs (ctor): Setting Selectable window style to off
10623         * Splitter.cs (ctor): Setting Selectable window style to off
10624         * GroupBox.cs (ctor): Setting Selectable window style to off
10625         * Label.cs (ctor): Setting Selectable window style to off
10626
10627 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
10628
10629         * UpDownBase.cs (InitTimer): If the timer has been already
10630         created, enable it.
10631
10632         Use a TextBox instead of a Label.
10633
10634 2005-01-12  Jackson Harper  <jackson@ximian.com>
10635
10636         * TreeView.cs: Refresh the tree after sorting the nodes. Always
10637         draw the connecting node lines (when ShowLines is true).
10638         * TreeNode.cs: The nodes index can now be updated. This is used
10639         when a node collection is sorted.
10640         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
10641         insert or an existing unsorted node collection can be sorted.
10642         
10643 2005-01-12  Peter Bartok  <pbartok@novell.com>
10644
10645         * ContainerControl.cs: Implemented ProcessDialogKeys()
10646
10647 2005-01-12  Peter Bartok  <pbartok@novell.com>
10648
10649         * Control.cs:
10650           - Implemented SelectNextControl() method
10651           - Several focus related bug fixes
10652           - Fixed Docking calculations to match MS documentation and
10653             behaviour
10654
10655 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
10656
10657         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
10658         bug fixes
10659
10660 2005-01-12  Peter Bartok  <pbartok@novell.com>
10661
10662         * Control.cs:
10663           - Fixed broken Contains() method
10664           - Implemented GetNextControl() method. Finally. This is the pre-
10665             requisite for focus handling.
10666
10667 2005-01-12  Peter Bartok  <pbartok@novell.com>
10668
10669         * OSXStrucs.cs: Added
10670
10671 2005-01-12  Peter Bartok  <pbartok@novell.com>
10672
10673         * XplatUIWin32.cs:
10674           - Removed PeekMessageFlags
10675           - Implemented SetWindowStyle() method
10676         * XplatUIStructs.cs: Added PeekMessageFlags
10677         * X11Structs: Added missing border_width field to XWindowChanges struct
10678         * XplatUIX11.cs:
10679           - PeekMessage: Now throws exception if flags which are not yet
10680             supported are passed
10681           - Implemented SetWindowStyle() method
10682           - Fixed SetZOrder to handle AfterHwnd properly
10683         * XplatUI.cs: Added SetWindowStyle() method
10684         * XplatUIDriver.cs: Added SetWindowStyle() abstract
10685         * Control.cs:
10686           - Implemented UpdateStyles() method
10687           - Implemented UpdateZOrder() method
10688         * XplatUIOSX.cs: Added SetWindowStyle() stub
10689
10690 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
10691
10692         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
10693         button mouse).
10694
10695
10696 2005-01-11  Jackson Harper  <jackson@ximian.com>
10697
10698         * TreeView.cs: Still need to draw lines to siblings even if out of
10699         the current node is out of the clip.
10700
10701 2005-01-11  Jackson Harper  <jackson@ximian.com>
10702
10703         * TreeView.cs: When setting the hbar/vbar/grip position use
10704         SetBounds so that perform layout is only called once. Also suspend
10705         and resume layout so layout is only done once for all controls.
10706         - Removed some debug fluff
10707         * SizeGrip.cs: Call base implmentation in overriding methods.
10708         - When visibility is changed the drawing buffers are killed so we
10709         need to redraw.
10710
10711 2005-01-11  Jackson Harper  <jackson@ximian.com>
10712
10713         * TreeView.cs: Calculate the open node count while drawing. This
10714         saves us an entire tree traversal for every paint operation. Use
10715         a member var for the open node count so less vars are passed around.
10716
10717 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
10718
10719         * MonthCalendar.cs:
10720         - fixed selection to use mousemove, not mouse polling on timer
10721         * ThemeWin32Classic.cs
10722         - removed redundant unused variable "no_more_content"
10723         
10724 2005-01-11  Peter Bartok  <pbartok@novell.com>
10725
10726         * XplatUIX11.cs (DoEvents): Needs to return when no more events
10727           are pending, so it now calls PeekMessage instead of GetMessage;
10728           implemented a incomplete version of PeekMessage
10729         
10730 2005-01-11  Peter Bartok  <pbartok@novell.com>
10731
10732         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
10733           I18n issues
10734         * TextBoxBase.cs: Added sending of TextChanged event
10735
10736 2005-01-10  Jackson Harper  <jackson@ximian.com>
10737
10738         * TreeView.cs: Try not to draw outside the clipping rectangle on
10739         each node element.
10740
10741 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
10742
10743         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
10744
10745 2005-01-10  Jackson Harper  <jackson@ximian.com>
10746
10747         * TreeView.cs:
10748         - Implement fast scrolling. Now only the newly
10749         exposed nodes are drawn and the old image is moved using the
10750         XplatUI::ScrollWindow method.
10751         - Factor in height of nodes when calculating whether or not the
10752         node is in the clipping rect.
10753
10754 2005-01-10  Jackson Harper  <jackson@ximian.com>
10755
10756         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
10757
10758 2005-01-10  Peter Bartok  <pbartok@novell.com>
10759
10760         * Application.cs: Added temporary hack to resolve all our resize
10761           required issues on startup. This will get fixed properly at
10762           some point in the future
10763
10764 2005-01-10  Jackson Harper  <jackson@ximian.com>
10765
10766         * SizeGrip.cs: New internal class that is used as a sizing
10767         grip control...hence the name.
10768
10769 2005-01-10  Peter Bartok  <pbartok@novell.com>
10770
10771         * Control.cs: Implemented proper TabIndex handling, now assigning
10772           a tabindex when a control is added to a container
10773         * GroupBox.cs (ctor): Now sets the Container style bit, required
10774           for Control.GetNextControl()
10775
10776 2005-01-09  Jackson Harper  <jackson@ximian.com>
10777
10778         * TextBoxBase.cs: Clear window when scrolling (fixes build).
10779
10780 2005-01-09  Peter Bartok <pbartok@novell.com>
10781
10782         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
10783           XplatUIX11.cs: Added ability to control ScrollWindow expose and
10784           an overload for ScrollWindow to allow only scrolling a rectangle
10785
10786 2005-01-09  Peter Bartok <pbartok@novell.com>
10787
10788         * Form.cs:
10789           - Implemented SetDesktopBounds method
10790           - Implemented SetDesktopLocation method
10791
10792 2005-01-08  Jackson Harper  <jackson@ximian.com>
10793
10794         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
10795         the node count has changed, this removes to VScroll::Refresh calls
10796         when drawing.
10797
10798 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
10799
10800         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
10801
10802 2005-01-07  Jackson Harper  <jackson@ximian.com>
10803
10804         * TreeNode.cs: Just update the single node when it is
10805         checked. Don't refresh after toggling, the Expand/Collapse already
10806         handles this.
10807         * TreeView.cs: Respect clipping a little more when drawing. Try
10808         not to redraw things that don't need to be redrawn. Just hide the
10809         scrollbars when they are no longer needed instead of removing
10810         them, so they don't have to be created again and again.
10811         
10812 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
10813
10814         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
10815         coordinates to window space to place the caret properly, FIXED.
10816         Implement GetWindowState & SetWindowState
10817
10818 2005-01-06  Peter Bartok <pbartok@novell.com>
10819
10820         * Form.cs:
10821           - Implemented ClientSize property
10822           - Implemented DesktopBounds property
10823           - Implemented DesktopLocation property
10824           - Implemented IsRestrictedWindow property
10825           - Implemented Size property
10826           - Implemented TopLevel property
10827           - Implemented FormWindowState property
10828         * Control.cs:
10829           - Implemented GetTopLevel() method
10830           - Implemented SetTopLevel() method
10831         * X11Structs.cs (Atom):
10832           - Added AnyPropertyType definition
10833           - Added MapState definiton and updated XWindowAttribute struct
10834         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
10835         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
10836         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
10837         * XplatUIWin32.cs:
10838           - Implemented GetWindowState() and SetWindowState() methods
10839           - Fixed Win32GetWindowLong return type
10840         * XplatUIX11.cs:
10841           - Introduced central function for sending NET_WM messages
10842           - Implemented GetWindowState() and SetWindowState() methods
10843         * TextBoxBase.cs (set_Lines):
10844           - Now uses Foreground color for text added via Text property (Duh!)
10845           - Added code to remember programmatically requested size (fixes
10846             behaviour when Multiline is set after Size)
10847           - Added AutoSize logic
10848
10849 2005-01-06  Jackson Harper  <jackson@ximian.com>
10850
10851         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
10852
10853 2005-01-06  Jackson Harper  <jackson@ximian.com>
10854
10855         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
10856         set to less then 0.
10857
10858 2005-01-06  Jackson Harper  <jackson@ximian.com>
10859
10860         * ScrollableControl.cs: Lazy init the scrollbars.
10861         
10862 2005-01-06  Jackson Harper  <jackson@ximian.com>
10863
10864         * Theme.cs: Speed up getting pens and solid brushes, by using
10865         their ARGB as a hash instead of tostring and not calling Contains.
10866
10867 2005-01-06  Peter Bartok <pbartok@novell.com>
10868
10869         * Form.cs:
10870           - Implemented OnActivated and OnDeactivate event trigger
10871           - Implemented Activate() method
10872           - Fixed ShowDialog() to activate the form that was active before
10873             the dialog was shown
10874         * XplatUIX11.cs:
10875           - Added global active_window var that tracks the currently active
10876             X11 window
10877           - Now always grabs Property changes from the root window to always
10878             catch changes on the active window property
10879           - Added code to PropertyNotify handler to send Active/Inactive
10880             messages when state changes. This puts X11 and Win32 en par on
10881             WM_ACTIVATE notifications (except for double notifications when
10882             the user clicks away from our modal window to another one of our
10883             windows)
10884
10885 2005-01-05  Jackson Harper  <jackson@ximian.com>
10886
10887         * ImageList.cs: Implment ctor
10888
10889 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
10890
10891         * XplatUIOSX.cs: Implement Activate/SetTopmost
10892
10893 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
10894
10895         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
10896
10897 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
10898
10899         * XplatUIOSX.cs: Implement GetActive/SetFocus.
10900
10901 2005-01-05  Peter Bartok <pbartok@novell.com>
10902
10903         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
10904           XplatUIOSX.cs: Added GetActive method to return the currently
10905           active window for the application (or null, if none is active)
10906         * Form.cs:
10907           - Implemented ActiveForm
10908           - Commented out owner assignment for modal dialogs (causes problems
10909             on Win32, since the owner will be disabled)
10910           - Reworked some Active/Focus handling (still incomplete)
10911         * CommonDialog.cs: Commented out owner assignment for modal dialogs
10912           (causes problems on Win32, since the owner will be disabled)
10913         * IWin32Window: Added ComVisible attribute
10914
10915 2005-01-05  Peter Bartok <pbartok@novell.com>
10916
10917         * ToolTip.cs (WndProc): Enable setting focus now that we have the
10918           required XplatUI functions.
10919
10920 2005-01-05  Peter Bartok <pbartok@novell.com>
10921
10922         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
10923           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
10924           to implement focus and activation handling; still incomplete and
10925           with debug output
10926
10927 2005-01-04  Peter Bartok <pbartok@novell.com>
10928
10929         * TextBoxBase.cs: Changed access level for Document property to
10930           match switch to internal for TextControl
10931
10932 2005-01-04  Peter Bartok <pbartok@novell.com>
10933
10934         * AccessibleObject: Added ComVisible attribute
10935
10936 2005-01-04  Jackson Harper  <jackson@ximian.com>
10937
10938         * X11Keyboard.cs: Remove unneeded var.
10939
10940 2005-01-04  Jackson Harper  <jackson@ximian.com>
10941
10942         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
10943         but PAINT.
10944         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
10945         ClientMessage. This makes apps exit cleanly (more often).
10946         
10947 2005-01-04  Jackson Harper  <jackson@ximian.com>
10948
10949         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
10950         handling focus, return correct colors and fonts,
10951         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
10952         handle selection, horizontal scrolling, and mouse interaction.
10953
10954 2005-01-04  Peter Bartok <pbartok@novell.com>
10955
10956         * ICommandExecutor.cs: Added
10957         * IDataGridColumnStyleEditingNotificationService.cs: Added
10958         * IFeatureSupport.cs: Added
10959         * IFileReaderService.cs: Added
10960         * IDataObject.cs: Added ComVisible attribute
10961         * AmbientProperties.cs: Added
10962         * BaseCollection.cs: Added missing attributes
10963         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
10964         * BaseCollection.cs: Added missing attributes
10965         * Binding.cs: Added TypeConverter attribute
10966         * BindingContext.cs: Added DefaultEvent attribute
10967         * BindingsCollection.cs: Added DefaultEvent attribute
10968         * Button.cs: Added DefaultValue attribute
10969         * DragEventArgs.cs: Added ComVisible attribute
10970         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
10971         * KeyEventArgs.cs: Added ComVisible attribute
10972         * KeyPressEventArgs.cs: Added ComVisible attribute
10973         * MouseEventArgs.cs: Added ComVisible attribute
10974         * NavigateEventArgs.cs: Added
10975         * NavigateEventHandler.cs: Added
10976         * FeatureSupport.cs: Added
10977         * OSFeature.cs: Added
10978         * Theme.cs: Added abstract Version property to support OSFeature
10979         * ThemeWin32Classic.cs: Added Version property to
10980           support OSFeature.Themes
10981         * ProgressBar.cs: Removed OnPaintBackground override, not required since
10982           the proper styles to avoid background drawing are set, also doesn't
10983           match MS signature
10984         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
10985         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
10986         * ScrollEventArgs.cs: Added ComVisible attribute
10987         * SplitterEventArgs.cs: Added ComVisible attribute
10988         * AccessibleSelection.cs: Added Flags attribute
10989         * Appearance.cs: Added ComVisible attribute
10990         * Border3DSide.cs: Added ComVisible attribute
10991         * Border3DStyle.cs: Added ComVisible attribute
10992         * BorderStyle.cs: Added ComVisible attribute
10993         * DragAction.cs: Added ComVisible attribute
10994         * ErrorBlinkStyle.cs: Added
10995         * ScrollEventType.cs: Added ComVisible attribute
10996         * AnchorStyles.cs: Added Editor attribute
10997         * DockStyle.cs: Added Editor attribute
10998         * HorizontalAlignment.cs: Added ComVisible attribute
10999         * HelpEventArgs.cs: Added ComVisible attribute
11000         * PaintEventArgs.cs: Added IDisposable
11001
11002 2005-01-04  Peter Bartok <pbartok@novell.com>
11003
11004         * TextControl.cs: Switched Line, LineTag and Document classes to
11005           internal
11006
11007 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
11008
11009         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
11010         Simple mode, fixes, IntegralHeight, etc.
11011
11012 2005-01-04  Peter Bartok <pbartok@novell.com>
11013
11014         * TextBoxBase.cs: Using proper font variable now
11015
11016 2005-01-04  Peter Bartok <pbartok@novell.com>
11017
11018         * Form.cs (ShowDialog): Set parent to owner, if provided
11019         * GroupBox.cs: Removed unused vars
11020         * TextControl.cs:
11021           - Added GetHashCode() for Document and LineTag classes
11022           - Removed unused variables
11023           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
11024             to allow translation between continuous char position and line/pos
11025         * CheckBox.cs: Removed vars that are provided by base class
11026         * RadioButton.cs: Removed vars that are provided by base class, added
11027           new keyword where required
11028         * LinkLabel.cs: Added new keyword where required
11029         * Control.cs (WndProc): Removed unused variable
11030         * TextBoxBase.cs:
11031           - Finished SelectionLength property
11032           - Implemented SelectionStart property
11033           - Implemented Text property
11034           - Removed unused vars
11035         * MessageBox.cs: Added new keyword where required
11036         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
11037           WndProc signature
11038         * MenuAPI.cs: Added new keyword where required
11039         * ButtonBase.cs: Removed vars that are provided by base class, added
11040           new keyword where required
11041         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
11042           argument to double, to allow compiling with csc 2.0 (Atsushi ran
11043           into this)
11044         * Application.cs (Run): Now triggers the ThreadExit event
11045         * CommonDialog.cs: Added new keyword where required; now properly sets
11046           parent (owner) for dialog
11047         * XplatUIX11.cs: Commented out unused vars
11048         * StatusBar.cs: Fixed signature for Text property
11049         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
11050
11051 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
11052
11053         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
11054         TrackBar.cs, MonthCalendar.cs: remove unused vars
11055
11056 2005-01-03  Jackson Harper  <jackson@ximian.com>
11057
11058         * ThemeWin32Classic.cs:
11059         * X11Keyboard.cs: Remove unused vars.
11060
11061 2005-01-03  Peter Bartok  <pbartok@novell.com>
11062
11063         * TextBox.cs:
11064           - set_Text: Tied into TextControl
11065           - set_TextAlignment: Tied into TextControl
11066         * TextControl.cs:
11067           - Added alignment properties and implemented alignment handling
11068             and drawing (still has a bug, not generating proper expose events)
11069           - Added new Line() constructor to allow passing the line alignment
11070           - Fixed selection setting, properly handling end<start now
11071           - Added aligment considerations to RecalculateDocument()
11072         * TextBoxBase.cs:
11073           - Now properly enforces control height for single line controls
11074           - Added support for CharacterCasing
11075           - Added IsInputKey override
11076           - Fixed Keys.Enter logic
11077           - Added SetBoundsCore override
11078           - Fixed mouse selection handling
11079
11080 2005-01-03  Jackson Harper  <jackson@ximian.com>
11081
11082         * TreeView.cs:
11083           - Collapse and uncheck all nodes when CheckBoxes is disabled.
11084           - Checkboxes are always aligned to the bottom of the node,
11085           regardless of item height.
11086           - Use the node bounds to draw the text so we can center it when
11087           the item height is greater then the font height.
11088           - Node::Bounds are only the text part of the node.
11089         * TreeNode.cs: New method to combine collapsing and unchecking all
11090           nodes recursively.
11091
11092 2005-01-02  Jackson Harper  <jackson@ximian.com>
11093
11094         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
11095         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
11096         tree when a check is changed. TODO: Only refresh the checked node.
11097
11098 2004-12-30  Jackson Harper  <jackson@ximian.com>
11099
11100         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
11101         * TreeNode.cs: When collapsing make sure to never collapse the
11102         root node.
11103
11104 2004-12-29  Jackson Harper  <jackson@ximian.com>
11105
11106         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
11107         
11108 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
11109
11110         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
11111
11112 2004-12-28  Peter Bartok  <pbartok@novell.com>
11113
11114         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
11115           not yet assigned
11116
11117 2004-12-28  Peter Bartok  <pbartok@novell.com>
11118
11119         * Control.cs (WndProc): Added WM_HELP handler, now generates
11120           HelpRequested event
11121         * Form.cs: Added HelpButton property and required support code
11122         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
11123
11124 2004-12-28  Peter Bartok  <pbartok@novell.com>
11125
11126         * CommonDialog.cs:
11127           - Made DialogForm.owner variable internal
11128           - Added check to ensure owner form is set before setting
11129             owner properties in CreateParams
11130
11131 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
11132
11133         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
11134           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
11135           GetCursorPos.  Fix major visibility issues.  Rework the windowing
11136           system to support borderless/titleless windows (implements menus).
11137           Fix GetWindowPos.  Implement initial background color support for
11138           views.
11139
11140 2004-12-28  Peter Bartok  <pbartok@novell.com>
11141
11142         * Form.cs (get_CreateParams): Make sure we have an owner before using
11143           the owner variable. Implement proper default if no owner exists
11144
11145 2004-12-28  Peter Bartok  <pbartok@novell.com>
11146
11147         * In preparation for making Managed.Windows.Forms the default build target
11148           for System.Windows.Forms, the following stubbed files were added.
11149           Dialogs are currently being implemented by contributors and are only
11150           short-term place holders.
11151         * ColorDialog.cs: Initial check-in (minmal stub)
11152         * DataGrid.cs: Initial check-in (minimal stub)
11153         * DataGridLineStyle.cs: Initial check-in (minimal stub)
11154         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
11155         * DataGridTableStyle.cs: Initial check-in (minimal stub)
11156         * FontDialog.cs: Initial check-in (minimal stub)
11157         * FileDialog.cs: Initial check-in (minimal stub)
11158         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
11159         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
11160         * OpenFileDialog: Initial check-in (minimal stub)
11161         * IComponentEditorPageSite.cs: Initial check-in
11162         * Splitter.cs: Initial check-in (for Jackson)
11163         * SplitterEventArgs.cs: Initial check-in (for Jackson)
11164         * SplitterEventHandler.cs: Initial check-in (for Jackson)
11165         * TextBox.cs: Initial check-in; still needs some wiring to
11166           TextControl backend
11167         * Form.cs: Implemented ControlBox property
11168         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
11169         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
11170         * TextControl.cs: Added selection functionality; added todo header
11171         * TextBoxBase.cs:
11172           - Implemented Lines property
11173           - Implemented TextHeight property
11174           - Implemented SelectedText property
11175           - Implemented SelectionLength property
11176           - Implemented SelectAll method
11177           - Implemented ToString method
11178           - Removed and cleaned up some debug code
11179           - Implemented (still buggy) mouse text selection
11180
11181 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
11182
11183         * ComboBox.cs: Complete DropDownList implementation, fixes.
11184
11185 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
11186
11187         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
11188         * ComboBoxStyle.cs: ComboBoxStyle enum
11189         * ComboBox.cs: Initial work on ComboBox control
11190
11191 2004-12-21  Peter Bartok  <pbartok@novell.com>
11192
11193         * Control.cs (ctor, CreateParams): Moved setting of is_visible
11194           forward so that anything that creates a window gets the default,
11195           also no longer uses Visible property in CreateParams to avoid
11196           walking up the parent chain and possibly get the wrong visible
11197           status. Fixed IsVisible to no longer walk up to the parent.
11198
11199 2004-12-21  Peter Bartok  <pbartok@novell.com>
11200
11201         * Form.cs (ShowDialog): Unset modality for the proper window
11202  
11203 2004-12-20  Peter Bartok  <pbartok@novell.com>
11204
11205         * CommonDialog.cs: Initial check-in
11206
11207 2004-12-20  Peter Bartok  <pbartok@novell.com>
11208
11209         * Control.cs (Visible): Now uses the parent window instead of the
11210           client area window for the property
11211
11212         * Form.cs
11213           - ShowDialog(): Now uses the proper window for modality
11214           - The default visibility state for the form parent is now false. This
11215             will prevent the user from seeing all the changes to the form and
11216             its controls before the application hits Application.Run()
11217           - Removed some stale commented out code
11218
11219         * NativeWindow.cs:
11220           - Added FindWindow() method to have a method to check for existence
11221             of a window handle
11222           - Added ability to override default exception handling (for example
11223             when debugging with VS.Net; to do this the ExternalExceptionHandler
11224             define must be set
11225           - Removed some useless debug output
11226
11227         * XplatUIX11.cs:
11228           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
11229             not working as expected
11230           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
11231             property to allow switching back to the modal window if focus is
11232             given to another one of our windows (Application Modal)
11233           - Now only sets override_redirect if we create a window
11234             without WS_CAPTION
11235           - Moved EventMask selection before mapping of newly created window
11236             so we can catch the map event as well
11237           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
11238           - Added various Atom related DllImports
11239           - Implemented Exit() method
11240           - .ctor() : No longer shows window if WS_VISIBLE is not defined
11241             in the CreateParams
11242
11243         * MessageBox.cs: Now properly deals with the FormParent window by
11244           providing an override the FormParent CreateParams property to
11245           set as POPUP instead of OVERLAPPED window.
11246
11247 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
11248
11249         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
11250         Minor code cleanup.
11251
11252 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
11253         
11254         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
11255
11256 2004-12-18  Peter Bartok  <pbartok@novell.com>
11257
11258         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
11259           implementing SetModal() method
11260
11261 2004-12-18  Peter Bartok  <pbartok@novell.com>
11262
11263         * X11Structs.cs (XGCValues): Fixed type of function element
11264         * XplatUI.cs: Added ScrollWindow() method
11265         * XplatUIDriver.cs: Added ScrollWindow() abstract
11266         * XplatUIWin32.cs: Implemented ScrollWindow() method
11267         * XplatUIX11.cs: Implemented ScrollWindow() method
11268         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
11269
11270 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
11271
11272         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
11273         Some more keyboard support (INCOMPLETE)
11274
11275 2004-12-17  Peter Bartok  <pbartok@novell.com>
11276
11277         * TextControl.cs:
11278         - Added color attribute to line tags.
11279         - Added color argument to all functions dealing with tags
11280         - Added color argument support to various functions
11281         - Fixed miss-calculation of baseline/shift in certain circumstances
11282
11283         * TextBoxBase.cs: Added new color option to test code
11284
11285 2004-12-17  Jackson Harper  <jackson@ximian.com>
11286
11287         * TreeNode.cs:
11288         * MonthCalendar.cs: Signature fixes
11289
11290 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
11291
11292         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
11293         keyboard event moved it.  Create a new graphics context for each paint resolves this
11294
11295 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
11296
11297         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
11298         Make caret exist and go blink blink.  Initial keyboard support.
11299         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
11300         works.
11301
11302 2004-12-17  Jackson Harper  <jackson@ximian.com>
11303
11304         * XplatUIStructs.cs: Updated set of virtual keycodes.
11305         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
11306
11307 2004-12-17  Jackson Harper  <jackson@ximian.com>
11308
11309         * XplatUIX11.cs: Prune old keyboard code.
11310
11311 2004-12-17  Jackson Harper  <jackson@ximian.com>
11312
11313         * XplatUIX11.cs: When generating mouse wparams get the modifier
11314         keys from the ModifierKeys property.
11315
11316 2004-12-17  Jackson Harper  <jackson@ximian.com>
11317
11318         * X11Keyboard.cs: Send up/down input when generating
11319         messages. Remove some unused vars.
11320
11321 2004-12-17  Jackson Harper  <jackson@ximian.com>
11322
11323         * TabControl.cs:
11324         * TreeView.cs: get rid of warnings.
11325
11326 2004-12-17  Jackson Harper  <jackson@ximian.com>
11327
11328         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
11329
11330 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
11331
11332         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
11333           CheckedListBox.cs: Implementation
11334
11335 2004-12-17  Peter Bartok  <pbartok@novell.com>
11336
11337         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
11338
11339 2004-12-16  Peter Bartok  <pbartok@novell.com>
11340
11341         * TextControl.cs:
11342           - InsertCharAtCaret(): Fixed start pos fixup
11343           - CaretLine_get: No longer derives the line from the tag, the tag
11344             could be stale if lines in the document have been added or deleted
11345           - RebalanceAfterDelete(): Fixed bug in balancing code
11346           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
11347           - Line.Streamline(): Now can also elminate leading empty tags
11348           - DumpTree(): Added a few more tests and prevented exception on
11349             uninitialized data
11350           - Added Debug section for Combining lines
11351           - Delete(): Now copies all remaining properties of a line
11352           
11353         * TextBoxBase.cs:
11354           - Left mousebutton now sets the caret (and middle button still acts
11355             as formatting tester, which must go away soon)
11356           - Added Debug section for Deleting/Combining lines
11357           - Fixed calculations for UpdateView after Combining lines
11358
11359 2004-12-16  Peter Bartok  <pbartok@novell.com>
11360
11361         * TextControl.cs: Now properly aligns text on a baseline, using the
11362           new XplatUI.GetFontMetrics() method. Simplified several calculations
11363         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
11364           defined
11365
11366 2004-12-16  Peter Bartok  <pbartok@novell.com>
11367
11368         * XplatUI.cs: Added GetFontMetrics() method
11369         * XplatUIDriver.cs: Added GetFontMetrics() abstract
11370         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
11371           into libgdiplus, our private GetFontMetrics function
11372         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
11373         * XplatUIWin32.cs: Implemented GetFontMetrics() method
11374
11375 2004-12-16  Jackson Harper  <jackson@ximain.com>
11376
11377         * XplatUIStruct.cs: Add enum for dead keys
11378         * X11Keyboard.cs: Map and unmap dead keys.
11379
11380 2004-12-16  Jackson Harper  <jackson@ximian.com>
11381
11382         * X11Keyboard.cs: Detect and use the num lock mask.
11383
11384 2004-12-16  Peter Bartok  <pbartok@novell.com>
11385
11386         * Control.cs (CreateGraphics): Added check to make sure the
11387           handle of the window exists before calling Graphics.FromHwnd()
11388
11389 2004-12-16  Peter Bartok  <pbartok@novell.com>
11390
11391         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
11392           contains a lot of code that's not supposed to be there for the
11393           real thing, but required for developing/testing the textbox
11394           backend.
11395
11396 2004-12-16  Peter Bartok  <pbartok@novell.com>
11397
11398         * TextControl.cs:
11399         - Fixed Streamline method
11400         - Added FindTag method to Line
11401         - Added DumpTree method for debugging
11402         - Added DecrementLines() method for deleting lines
11403         - Fixed UpdateView to update the cursor to end-of-line on single-line
11404           updates
11405         - Added PositionCaret() method
11406         - Fixed MoveCaret(LineDown) to move into the last line, too
11407         - Added InsertChar overload
11408         - Fixed InsertChar tag offset calculations
11409         - Added DeleteChar() method
11410         - Added Combine() method for folding lines
11411         - Fixed Delete() method, no longer allocates wasted Line object and
11412           now copies all properties when swapping nodes
11413         - Delete() method now updates document line counter
11414
11415 2004-12-15  Jackson Harper  <jackson@ximian.com>
11416
11417         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
11418         * X11Keyboard.cs: Expose the currently selected modifier keys
11419         through a property.
11420
11421 2004-12-15  Peter Bartok  <pbartok@novell.com>
11422
11423         * TextControl.cs: Initial check-in. Still incomplete
11424
11425 2004-12-15  Jackson Harper  <jackson@ximian.com>
11426
11427         * TreeNode.cs:
11428         * TreeView.cs: Fix build on csc (second time today ;-))
11429
11430 2004-12-15  Jackson Harper  <jackson@ximian.com>
11431
11432         * TreeView.cs: Store the treenodes plus/minus box bounds when it
11433         is calculated and use this for click testing.
11434         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
11435
11436 2004-12-15  Jackson Harper  <jackson@ximian.com>
11437
11438         * TreeView.cs: Pass the nodes image index to the image list when
11439         drawing that image.
11440
11441 2004-12-15  Jackson Harper  <jackson@ximian.com>
11442
11443         * X11Keyboard.cs: Set messages hwnd.
11444         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
11445         post_message calls.
11446
11447 2004-12-15  Jackson Harper  <jackson@ximian.com>
11448
11449         * X11Keyboard.cs: Fix to compile with csc.
11450         
11451 2004-12-15  Jackson Harper  <jackson@ximian.com>
11452
11453         * X11Structs.cs: Add key mask values
11454         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
11455         * X11Keyboard.cs: New file - Extrapolates and interpolates key
11456         down/up foo into WM_CHAR foo
11457         * KeyboardLayouts.cs: Common keyboard layouts
11458         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
11459         post messages into the main queue.
11460
11461 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
11462
11463         * Button.cs: implement ProcessMnemonic
11464         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
11465           brushes everytime
11466         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
11467         * ButtonBase.cs: Show HotkeyPrefix (not the &)
11468
11469 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
11470         
11471         * MonthCalendar.cs: Implemented click-hold for next/previous month
11472           and date selection
11473           
11474 2004-12-11  Peter Bartok  <pbartok@novell.com>
11475
11476         * X11Structs.cs:
11477           - Added XKeyboardState (moved from XplatUIX11.cs)
11478           - Added XCreateGC related enums and structures
11479           - Added GXFunction for XSetFunction
11480
11481         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
11482
11483         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
11484           CaretVisible() calls
11485
11486         * ToolTip.cs: Added code to prevent stealing focus from app windows
11487
11488         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
11489           DestroyCaret, SetCaretPos and CaretVisible)
11490
11491         * XplatUIX11.cs:
11492           - Added implementation for caret functions
11493           - Moved hover variables into a struct, to make it a bit easier
11494             on the eyes and to debug
11495           - Removed XKeyboardState (moved to XplatUIX11.cs)
11496           - Moved Keyboard properties into the properties region
11497
11498         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
11499           call to get a graphics context for our control
11500
11501         * XplatUIOSX.cs: Added empty overrides for the new caret functions
11502
11503         * TreeView.cs: Fixed bug. No matter what color was set it would always
11504           return SystemColors.Window
11505
11506         * XplatUIWin32.cs: Implemented caret overrides
11507
11508 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
11509
11510         * ListBox.cs: fire events, implement missing methods and properties,
11511         sorting.
11512
11513 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
11514
11515         * MonthCalendar.cs: invalidation bug fixing
11516         * ThemeWin32Classic.cs: paint fixing
11517
11518 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
11519
11520         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
11521         prepare the CGContextRef there now.
11522
11523 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
11524
11525         * MonthCalendar.cs:
11526           - optimisationL only invalidate areas that have changed
11527         * ThemeWin32Classic.cs:
11528           - only paint parts that intersect with clip_area
11529
11530 2004-12-09  Peter Bartok  <pbartok@novell.com>
11531
11532         * Application.cs: Undid changes from r37004 which cause problems
11533         on X11
11534
11535 2004-12-09  Ravindra  <rkumar@novell.com>
11536
11537         * ToolBar.cs: Added support for displaying ContextMenu
11538         attached to a button on ToolBar.
11539         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
11540         property.
11541
11542 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
11543
11544         * Label.cs: autosize works in text change and removes unnecessary
11545         invalidate
11546
11547 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
11548
11549         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
11550         remove warnings
11551
11552 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
11553
11554         * XplatUIOSX.cs: Added mouse move/click/grab support
11555         Remove some debugging WriteLines not needed anymore.
11556         Add window resizing/positioning.
11557         Fix visibility on reparenting.
11558
11559 2004-12-08  Peter Bartok  <pbartok@novell.com>
11560
11561         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
11562
11563 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
11564
11565         * XplatUIOSX.cs: Initial checkin
11566         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
11567
11568 2004-12-03  Ravindra <rkumar@novell.com>
11569
11570         * ListView.cs: Added some keybindings and fixed scrolling.
11571         ScrollBars listen to ValueChanged event instead of Scroll
11572         Event. This would let us take care of all changes being
11573         done in the scrollbars' values programmatically or manually.
11574         * ListView.cs (CanMultiselect): Added a check for shift key.
11575         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
11576         * ListViewItem.cs (Clone): Fixed. We need to make a copy
11577         of ListViewSubItemCollection as well.
11578
11579 2004-12-06  Peter Bartok <pbartok@novell.com>
11580
11581         * Control.cs (Parent): Added check and exception to prevent
11582         circular parenting
11583
11584 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
11585
11586         * ListBox.cs: implemented clipping, selection single and multiple,
11587         bug fixing
11588
11589 2004-12-03  Ravindra <rkumar@novell.com>
11590
11591         * ListView.cs (ListView_KeyDown):
11592         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
11593         when CTRL key is pressed.
11594         * ListViewItem.cs (Selected): Fixed setting the property.
11595
11596 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
11597
11598         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
11599
11600         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
11601         MinimizeBox, ShowInTaskbar, TopMost properties.
11602
11603         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
11604         will be implemented).
11605
11606 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
11607
11608         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
11609
11610         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
11611         tests.
11612         
11613         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
11614         
11615         * TreeView.cs: BackColor is Colors.Window.
11616
11617 2004-12-01  Jackson Harper  <jackson@ximian.com>
11618
11619         * TreeView.cs: When resizing the tree if the user is making it
11620         smaller we don't get expose events, so we need to handle adding
11621         the horizontal scrollbar in the size changed handler as well as
11622         the expose handler.
11623
11624 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
11625
11626         * DrawItemState.cs: fixes wrong enum values
11627
11628 2004-12-01  Jackson Harper  <jackson@ximian.com>
11629
11630         * TreeView.cs: Resize the hbar as well as the vbar on resize.
11631
11632 2004-12-01  Jackson Harper  <jackson@ximian.com>
11633
11634         * NodeLabelEditEventArgs.cs:
11635         * NodeLabelEditEventHandler.cs:
11636         * OpenTreeNodeEnumerator.cs:
11637         * TreeNode.cs:
11638         * TreeNodeCollection.cs:
11639         * TreeView.cs:
11640         * TreeViewAction.cs:
11641         * TreeViewCancelEventArgs.cs:
11642         * TreeViewCancelEventHandler.cs:
11643         * TreeViewEventArgs.cs:
11644         * TreeViewEventHandler.cs: Initial implementation.
11645
11646 2004-12-01  Ravindra <rkumar@novell.com>
11647
11648         * ListView.cs (CalculateListView): Fixed scrolling related
11649         calculations. Also, removed some debug statements from other
11650         places.
11651         * ListViewItem.cs: Changed access to 'selected' instance variable
11652         from private to internal.
11653         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
11654
11655 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
11656
11657         * ThemeWin32Classic.cs: remove cache of brush and pens for
11658         specific controls and use the global system, fixes scrollbutton
11659         bugs (for small sizes, disabled, etc)
11660         
11661         * ScrollBar.cs: does not show the thumb for very small controls
11662         (as MS) and allow smaller buttons that the regular size
11663
11664 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
11665
11666         * UpDownBase.cs: Add abstract methods for the interface.
11667         Add new virtual methods (need to be hooked up to TextEntry when it
11668         exists).
11669         Add override methods for most features.
11670         Computes the size, forces the height of the text entry.
11671
11672         * NumericUpDown.cs: Put here the current testing code.
11673
11674         * Set eol-style property on all files that do not have mixed line
11675         endings, to minimize the future problems.  There are still a few
11676         files with mixed endings, and someone should choose whether they
11677         want to move it or not.
11678
11679 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
11680
11681         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
11682         System.Colors
11683         
11684 2004-11-30  Ravindra <rkumar@novell.com>
11685
11686         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
11687         drawing and replaced use of SystemColors by theme colors.
11688         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
11689         * ListView.cs (ListViewItemCollection.Add): Throw exception when
11690         same ListViewItem is being added more than once.
11691
11692 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
11693
11694         * MonthCalendar.cs:
11695           - ControlStyles love to make the control not flicker
11696           
11697 2004-11-30  Peter Bartok  <pbartok@novell.com>
11698
11699         * CharacterCasing.cs: Added
11700
11701 2004-11-29  Peter Bartok  <pbartok@novell.com>
11702
11703         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
11704           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
11705           I am removing these files as they conflict with already completed
11706           work. While it is fantastic to get contributions to MWF, I
11707           respectfully ask that everyone please coordinate their contributions
11708           through mono-winforms-list or #mono-winforms at this time. We're
11709           explicitly avoiding stubbing and don't want controls that don't have
11710           their basic functionality implemented in svn. Please also see
11711           http://www.mono-project.com/contributing/winforms.html
11712
11713
11714 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
11715
11716         * Application.cs (ModalRun): Don't hang after exit.
11717
11718         * Theme.cs: New TreeViewDefaultSize property.
11719
11720         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
11721         with less hardcoded SystemColors constant.
11722         Implemented TreeViewDefaultSize.
11723
11724         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
11725         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
11726
11727
11728 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
11729
11730         * MonthCalendar.cs:
11731           - Fix NextMonthDate and PrevMonthDate click moving calendar
11732
11733 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
11734
11735         * MonthCalendar.cs:
11736           - Fix usage of ScrollChange Property when scrolling months
11737
11738 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
11739
11740         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
11741          - Fixes menu destroying
11742          - Support adding and removing items on already created menus
11743
11744 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
11745
11746         * MonthCalendar.cs:
11747           - Re-worked all bolded dates handling to match win32
11748         * ThemeWin32Classic.cs:
11749           - Fixed rendering with bolded dates
11750
11751 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
11752
11753         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
11754         - Horizontal scroolbar
11755         - Multicolumn
11756         - Fixes
11757
11758
11759 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
11760
11761         * MonthCalendar.cs:
11762           - Fix Usage of MaxSelectionCount from SelectionRange
11763           - Fixed Shift + Cursor Selection
11764           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
11765           - Fixed normal cursor selection to be compat with win32
11766           - Fixed Shift + Mouse Click selection
11767
11768 2004-11-24  Peter Bartok <pbartok@novell.com>
11769
11770         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
11771         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
11772         * XplatUIX11.cs:
11773           - CreatedKeyBoardMsg now updates keystate with Alt key
11774           - Added workaround for timer crash to CheckTimers, Jackson will
11775             develop a proper fix and check in later
11776           - Implemented DispatchMessage
11777           - Removed calling the native window proc from GetMessage (call
11778             now moved to DispatchMessage)
11779
11780         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
11781           the keydata (Fixes bug #69831)
11782
11783         * XplatUIWin32.cs:
11784           - (DispatchMessage): Switched to return IntPtr
11785           - Added DllImport for SetFocus
11786
11787 2004-11-24  Ravindra <rkumar@novell.com>
11788
11789         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
11790         background drawing.
11791         * ListViewItem.cs: Fixed various properties, calculations
11792         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
11793         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
11794         and some internal properties. Fixed MouseDown handler and Paint
11795         method.
11796
11797 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
11798
11799         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
11800
11801 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
11802
11803         * ContainerControl.cs: correct accidental check in of local changes
11804
11805 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
11806
11807         * ThemeWin32Classic.cs:
11808                 - Fixed Drawing Last month in grid (sometimes not showing)
11809         * MonthCalendar.cs:
11810                 - Fixed title width calculation bug (makeing title small)
11811
11812 2004-11-23  Peter Bartok <pbartok@novell.com>
11813
11814         * XplatUIX11.cs:
11815           - Added generation of WM_MOUSEHOVER event
11816           - Added missing assignment of async_method atom
11817           - Fixed WM_ERASEBKGND; now only redraws the exposed area
11818
11819 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
11820
11821         * ThemeWin32Classic.cs:
11822                 - Fixed Drawing of today circle when showtodaycircle not set
11823                 - fixed drawing of first and last month in the grid (gay dates)
11824         * MonthCalendar.cs:
11825                 - Fixed Drawing of today circle
11826                 - Fixed drawing of grady dates
11827                 - Fixed HitTest for today link when ShowToday set to false
11828                 - Fixed DefaultSize to obey ShowToday
11829
11830 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
11831
11832         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
11833         * System.Windows.Forms/Theme.cs
11834         * MonthCalendar.cs: added for MonthCalendar
11835         * SelectionRange.cs: added for MonthCalendar
11836         * Day.cs: added for MonthCalendar: added for MonthCalendar
11837         * DateRangeEventArgs.cs: added for MonthCalendar
11838         * DateRangeEventHandler.cs: added for MonthCalendar
11839
11840 2004-11-22  Ravindra <rkumar@novell.com>
11841
11842         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
11843         property.
11844
11845 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
11846
11847         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
11848         event handler.
11849         
11850         * NumericUpDown.cs: Added new implementation.
11851         * UpDownBase.cs: Added new implementation.
11852
11853         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
11854         implementations.
11855         
11856         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
11857         implementations.
11858
11859         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
11860         methods.
11861
11862 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
11863
11864         * Timer.cs  (Dispose): Should call the base dispose when
11865         overriding.
11866
11867 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
11868
11869         * ScrollBar.cs: updates thumb position when max, min or increment
11870         is changed
11871
11872 2004-11-21  Ravindra <rkumar@novell.com>
11873
11874         * ListView.cs: Implemented item selection, activation and
11875         column header style. Fixed properties to do a redraw, if
11876         required. Added support for MouseHover, DoubleClick, KeyDown
11877         and KeyUp event handling and some minor fixes.
11878         * ListViewItem.cs: Fixed constructor.
11879         * ThemeWin32Classic.cs: Improved drawing for ListView.
11880
11881 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
11882
11883         * ThemeWin32Classic.cs: initial listbox drawing code
11884         * DrawMode.cs: new enumerator
11885         * ListControl.cs: stubbed class
11886         * ListBox.cs: initial implementation
11887         * Theme.cs: new methods definitions
11888         * SelectionMode.cs: new enumerator
11889
11890 2004-11-17  Peter Bartok  <pbartok@novell.com>
11891
11892         * XplatUIWin32.cs: Added double-click events to the class style
11893         * Control.cs (WndProc):
11894           - Added handling of click-count to MouseDown/ MouseUp events.
11895           - Added handling of middle and right mouse buttons
11896           - Removed old debug code
11897
11898 2004-11-17  Jackson Harper  <jackson@ximian.com>
11899
11900         * XplatUIX11.cs: Use the new Mono.Unix namespace.
11901
11902 2004-11-17  Ravindra <rkumar@novell.com>
11903
11904         * ListView.cs: Added event handling for MouseMove/Up/Down.
11905         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
11906         * ThemeWin32Classic.cs: We need to clear the graphics context and
11907         draw column header in a proper state.
11908
11909
11910 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
11911
11912         *  Menu.cs: fixes signature
11913
11914 2004-11-16  Peter Bartok  <pbartok@novell.com>
11915
11916         * XplatUIX11.cs (GetMessage): Implemented generation of
11917           double click mouse messages
11918
11919 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
11920
11921         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
11922         not by menu
11923
11924 2004-11-11  Peter Bartok  <pbartok@novell.com>
11925
11926         * HandleData.cs: Added Visible property
11927         * XplatUIX11.cs (IsVisible): Now uses Visible property from
11928           HandleData
11929         * XplatUIX11.cs: Removed old debug leftovers
11930         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
11931         * Control.cs (WndProc): Removed old debug leftovers,
11932           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
11933           needed WM_SIZE handling
11934
11935 2004-11-11  Jackson Harper  <jackson@ximian.com>
11936
11937         * OwnerDrawPropertyBag.cs:
11938         * TreeViewImageIndexConverter.cs: Initial implementation
11939
11940 2004-11-10  Jackson Harper  <jackson@ximian.com>
11941
11942         * ThemeWin32Classic.cs:
11943         * TabControl.cs: instead of moving tabs by the slider pos just
11944         start drawing at the tab that is offset by the slider. This way
11945         scrolling always moves by exactly one tab.
11946
11947 2004-11-10  Jackson Harper  <jackson@ximian.com>
11948
11949         * TabControl.cs: You can only scroll left when the slider has
11950         already ben moved right.
11951         
11952 2004-11-10  Jackson Harper  <jackson@ximian.com>
11953
11954         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
11955         the clip area.
11956         
11957 2004-11-10  Jackson Harper  <jackson@ximian.com>
11958
11959         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
11960         clip area.
11961         
11962 2004-11-09  Jackson Harper  <jackson@ximian.com>
11963
11964         * TabControl.cs (CalcXPos): New helper method so we can determine
11965         the proper place to start drawing vertical tabs.
11966         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
11967         
11968 2004-11-09  Jackson Harper  <jackson@ximian.com>
11969
11970         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
11971         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
11972         and Bottom, left and right are illegal values for this and
11973         multiline is enabled when the alignment is set to left or right.
11974         (DrawTab): Each alignment block should draw the text itself now
11975         because Left requires special love. Also add rendering for Left
11976         aligned tabs.
11977         
11978 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
11979
11980         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
11981         does not destroy the windows, removes debugging messages
11982
11983 2004-11-09  jba  <jba-mono@optusnet.com.au>
11984
11985         * ThemeWin32Classic.cs
11986         (DrawButtonBase): Fix verticle text rect clipping in windows
11987         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
11988         rendering and incorrect text rect clipping
11989         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
11990         rendering and incorrect text rect clipping
11991         
11992 2004-11-08  Jackson Harper  <jackson@ximian.com>
11993
11994         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
11995         bottom when they are bottom aligned so the bottoms of the tabs get
11996         displayed.
11997         * TabControl.cs (DropRow): Move rows up instead of down when the
11998         tab control is bottom aligned.
11999
12000 2004-11-08 13:59  pbartok
12001
12002         * XplatUIX11.cs:
12003           - Added handling for various window styles
12004           - Added handling for popup windows
12005           - Added SetTopmost handling
12006
12007 2004-11-08 13:55  pbartok
12008
12009         * XplatUIWin32.cs:
12010           - Added argument to SetTopmost method
12011           - Fixed broken ClientToScreen function
12012
12013 2004-11-08 13:53  pbartok
12014
12015         * XplatUIStructs.cs:
12016           - Added missing WS_EX styles
12017
12018 2004-11-08 13:53  pbartok
12019
12020         * XplatUI.cs, XplatUIDriver.cs:
12021           - Added argument to SetTopmost
12022
12023 2004-11-08 13:52  pbartok
12024
12025         * X11Structs.cs:
12026           - Added XSetWindowAttributes structure
12027           - Improved XWindowAttributes structure
12028           - Added SetWindowValuemask enum
12029           - Added window creation arguments enum
12030           - Added gravity enum
12031           - Added Motif hints structure
12032           - Added various Motif flags and enums
12033           - Added PropertyMode enum for property functions
12034
12035 2004-11-08 13:50  pbartok
12036
12037         * Form.cs:
12038           - Fixed arguments for updated SetTopmost method
12039
12040 2004-11-08 13:49  pbartok
12041
12042         * ToolTip.cs:
12043           - Fixed arguments for updated SetTopmost function
12044           - Fixed usage of PointToClient
12045
12046 2004-11-08 13:44  pbartok
12047
12048         * MenuAPI.cs:
12049           - Added Clipping of children and siblings
12050
12051 2004-11-08 13:41  pbartok
12052
12053         * MainMenu.cs:
12054           - Removed SetMenuBarWindow call. We do this in Form.cs
12055
12056 2004-11-08 13:40  jackson
12057
12058         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
12059           scrolling jimmi in the correct location with bottom aligned tabs
12060
12061 2004-11-08 13:36  pbartok
12062
12063         * ContainerControl.cs:
12064           - Implemented BindingContext
12065           - Implemented ParentForm
12066
12067 2004-11-08 12:46  jackson
12068
12069         * TabControl.cs: Put bottom rendered tabs in the right location
12070
12071 2004-11-08 07:15  jordi
12072
12073         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
12074           removes dead code
12075
12076 2004-11-05 17:30  jackson
12077
12078         * TabControl.cs: When selected tabs are expanded make sure they
12079           don't go beyond the edges of the tab control
12080
12081 2004-11-05 14:57  jackson
12082
12083         * TabControl.cs: Reset show_slider so if the control is resized to
12084           a size where it is no longer needed it's not displayed anymore
12085
12086 2004-11-05 13:16  jackson
12087
12088         * TabControl.cs: Make tab pages non visible when added to the
12089           control
12090
12091 2004-11-05 12:42  jackson
12092
12093         * TabControl.cs: Implement SizeMode.FillToRight
12094
12095 2004-11-05 12:16  jackson
12096
12097         * Control.cs: Do not call CreateHandle if the handle is already
12098           created
12099
12100 2004-11-05 11:46  jackson
12101
12102         * TabControl.cs: Remove superflous call to CalcTabRows
12103
12104 2004-11-05 09:07  jackson
12105
12106         * XplatUIX11.cs: Update for Mono.Posix changes
12107
12108 2004-11-05 07:00  ravindra
12109
12110         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
12111           scrolling.
12112
12113 2004-11-04 22:47  jba
12114
12115         * ThemeWin32Classic.cs:
12116           - Fix Button rendering for FlatStyle = Flat or Popup
12117           - Fix RadioButton and CheckBox rendering when Appearance = Button
12118             (normal and flatstyle).
12119           - Correct outer rectangle color when drawing focus rectangle
12120           - Adjust button bounds to be 1 px smaller when focused
12121           - Make button not draw sunken 3d border when pushed (windows compat)
12122           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
12123           - Offset the text in RadioButton and Checkbox when being rendered as
12124           a button.
12125           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
12126           radiobuttons
12127           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
12128           - Fixed disabled text rendering for normally rendered radiobuttons
12129
12130 2004-11-04 10:26  jackson
12131
12132         * TabControl.cs: Recalculate tab rows when resizing
12133
12134 2004-11-04 07:47  jordi
12135
12136         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
12137           collection completion, drawing issues, missing features
12138
12139 2004-11-04 05:03  ravindra
12140
12141         * ScrollBar.cs:
12142                 - We need to recalculate the Thumb area when
12143                 LargeChange/maximum/minimum values are changed.
12144           - We set the 'pos' in UpdatePos() method to minimum, if it's less
12145                 than minimum. This is required to handle the case if large_change is
12146                 more than max, and use LargeChange property instead of large_change
12147                 variable.
12148           - We return max+1 when large_change is more than max, like MS does.
12149
12150 2004-11-04 04:29  ravindra
12151
12152         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
12153                 - Changed default value signatures (prefixed all with ListView).
12154                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
12155                 ListView.
12156           - Fixed calculations for ListViewItem and implemented Clone()
12157           method.
12158
12159 2004-11-04 04:26  ravindra
12160
12161         * Theme.cs, ThemeWin32Classic.cs:
12162                 - Changed default ListView values signatures (prefixed all with
12163                 ListView).
12164           - Fixed default size values for VScrollBar and HScrollBar.
12165                 - Fixed DrawListViewItem method.
12166
12167 2004-11-04 04:05  ravindra
12168
12169         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
12170
12171 2004-11-04 04:04  ravindra
12172
12173         * ImageList.cs: Implemented the missing overload for Draw method.
12174
12175 2004-11-03 19:29  jackson
12176
12177         * TabControl.cs: Handle dropping rows on selection properly
12178
12179 2004-11-03 11:59  jackson
12180
12181         * TabControl.cs: remove debug code
12182
12183 2004-11-03 11:52  jackson
12184
12185         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
12186           the scrolly widgerywoo
12187
12188 2004-11-02 13:52  jackson
12189
12190         * TabControl.cs: Resize the tab pages and tabs when the tab control
12191           is resized
12192
12193 2004-11-02 13:40  jackson
12194
12195         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
12196           selected tab to the bottom
12197
12198 2004-11-02 13:39  jackson
12199
12200         * TabPage.cs: Store the tab pages row
12201
12202 2004-11-02 12:33  jordi
12203
12204         * MenuItem.cs: fixes handle creation
12205
12206 2004-11-02 11:42  jackson
12207
12208         * TabControl.cs: signature fix
12209
12210 2004-11-02 08:56  jackson
12211
12212         * TabControl.cs: Calculate whether the tab is on an edge properly.
12213           Remove top secret debugging code
12214
12215 2004-11-01 19:57  jackson
12216
12217         * TabControl.cs: Add click handling, and proper sizing
12218
12219 2004-11-01 19:47  jackson
12220
12221         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
12222           tab controls
12223
12224 2004-11-01 19:39  jackson
12225
12226         * TabPage.cs: add internal property to store the bounds of a tab
12227           page
12228
12229 2004-10-30 04:23  ravindra
12230
12231         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
12232           values.
12233
12234 2004-10-30 04:21  ravindra
12235
12236         * ListView.cs, ListViewItem.cs: Added support for scrolling and
12237           fixed calculations.
12238
12239 2004-10-30 03:06  pbartok
12240
12241         * XplatUIX11.cs:
12242           - Removed extension of DllImported libs
12243
12244 2004-10-29 09:55  jordi
12245
12246         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
12247           navigation, itemcollection completion, menu fixes
12248
12249 2004-10-27 22:58  pbartok
12250
12251         * XplatUIX11.cs:
12252           - Now throws a nice error message when no X display could be opened
12253
12254 2004-10-26 13:51  jordi
12255
12256         * ListView.cs: removes warning
12257
12258 2004-10-26 03:55  ravindra
12259
12260         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
12261           ThemeWin32Classic.cs: Some formatting for my last checkins.
12262
12263 2004-10-26 03:36  ravindra
12264
12265         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
12266           control and default values.
12267
12268 2004-10-26 03:35  ravindra
12269
12270         * Theme.cs: Added some default values for ListView control.
12271
12272 2004-10-26 03:33  ravindra
12273
12274         * ToolBar.cs: ToolBar should use the user specified button size, if
12275           there is any. Added a size_specified flag for the same.
12276
12277 2004-10-26 03:33  ravindra
12278
12279         * ColumnHeader.cs: Added some internal members and calculations for
12280           ColumnHeader.
12281
12282 2004-10-26 03:32  ravindra
12283
12284         * ListViewItem.cs: Calculations for ListViewItem.
12285
12286 2004-10-26 03:31  ravindra
12287
12288         * ListView.cs: Added some internal members and calculations for
12289           ListView.
12290
12291 2004-10-22 13:31  jordi
12292
12293         * MenuAPI.cs: speedup menus drawing
12294
12295 2004-10-22 13:16  jackson
12296
12297         * XplatUIX11.cs: Make sure to update exposed regions when adding an
12298           expose event
12299
12300 2004-10-22 11:49  jackson
12301
12302         * Control.cs: oops
12303
12304 2004-10-22 11:41  jackson
12305
12306         * Control.cs: Check to see if the window should have its background
12307           repainted by X when drawing.
12308
12309 2004-10-22 11:31  jackson
12310
12311         * XplatUIX11.cs: When invalidating areas only use XClearArea if
12312           clear is true, this way we do not get flicker from X repainting the
12313           background
12314
12315 2004-10-22 11:28  jackson
12316
12317         * XEventQueue.cs: Queue properly
12318
12319 2004-10-21 09:38  jackson
12320
12321         * XEventQueue.cs: Fix access modifier
12322
12323 2004-10-21 09:36  jackson
12324
12325         * XEventQueue.cs: Don't loose messages
12326
12327 2004-10-21 09:22  jackson
12328
12329         * XEventQueue.cs: Don't loose messages
12330
12331 2004-10-20 04:15  jordi
12332
12333         * BootMode.cs: enum need it by SystemInfo
12334
12335 2004-10-19 21:58  pbartok
12336
12337         * XplatUIWin32.cs:
12338           - Small sanity check
12339
12340 2004-10-19 21:56  pbartok
12341
12342         * Form.cs:
12343           - Added private FormParentWindow class which acts as the container
12344             for our form and as the non-client area where menus are drawn
12345           - Added/Moved required tie-ins to Jordi's menus
12346           - Fixed/Implemented the FormStartPosition functionality
12347
12348 2004-10-19 21:52  pbartok
12349
12350         * Control.cs:
12351           - Removed unneeded locals
12352           - Added code to all size and location properties to understand and
12353             deal with the parent container of Form
12354
12355 2004-10-19 21:33  pbartok
12356
12357         * Application.cs:
12358           - Fixed to deal with new Form subclasses for menus
12359
12360 2004-10-19 17:48  jackson
12361
12362         * XEventQueue.cs: commit correct version of file
12363
12364 2004-10-19 16:50  jackson
12365
12366         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
12367
12368 2004-10-19 16:15  jordi
12369
12370         * MenuAPI.cs: MenuBarCalcSize returns the height
12371
12372 2004-10-19 08:31  pbartok
12373
12374         * Control.cs:
12375           - Added missing call to PreProcessMessage before calling OnXXXKey
12376           methods
12377
12378 2004-10-19 00:04  ravindra
12379
12380         * ToolTip.cs: Fixed constructor.
12381
12382 2004-10-18 09:31  jordi
12383
12384         * MenuAPI.cs: menuitems in menubars do not have shortcuts
12385
12386 2004-10-18 09:26  jordi
12387
12388         * MenuItem.cs: fixes MenuItem class signature
12389
12390 2004-10-18 08:56  jordi
12391
12392         * MenuAPI.cs: prevents windows from showing in the taskbar
12393
12394 2004-10-18 00:28  ravindra
12395
12396         * ToolTip.cs: Suppressed a warning message.
12397
12398 2004-10-18 00:27  ravindra
12399
12400         * Control.cs: Default value of visible property must be true.
12401
12402 2004-10-17 23:19  pbartok
12403
12404         * ToolTip.cs:
12405           - Complete implementation
12406
12407 2004-10-17 23:19  pbartok
12408
12409         * XplatUIX11.cs:
12410           - Added EnableWindow method
12411           - Added SetModal stub
12412           - Added generation of WM_ACTIVATE message (still needs testing)
12413           - Added SetTopMost stub
12414           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
12415
12416 2004-10-17 23:17  pbartok
12417
12418         * XplatUIWin32.cs:
12419           - Removed VirtualKeys to XplatUIStructs
12420           - Implemented SetTopMost method
12421           - Implemented EnableWindow method
12422           - Bugfix in ScreenToClient()
12423           - Bugfixes in ClientToScreen()
12424
12425 2004-10-17 22:51  pbartok
12426
12427         * XplatUIStructs.cs:
12428           - Added WS_EX styles to WindowStyles enumeration
12429
12430 2004-10-17 22:50  pbartok
12431
12432         * XplatUI.cs, XplatUIDriver.cs:
12433           - Added method for enabling/disabling windows
12434           - Added method for setting window modality
12435           - Added method for setting topmost window
12436
12437 2004-10-17 22:49  pbartok
12438
12439         * ThemeWin32Classic.cs:
12440           - Added ToolTip drawing code
12441
12442 2004-10-17 22:49  pbartok
12443
12444         * Theme.cs:
12445           - Added ToolTip abstracts
12446
12447 2004-10-17 22:47  pbartok
12448
12449         * Form.cs:
12450           - Fixed Form.ControlCollection to handle owner relations
12451           - Added Owner/OwnedForms handling
12452           - Implemented Z-Ordering for owned forms
12453           - Removed unneeded private overload of ShowDialog
12454           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
12455             so I hope)
12456           - Fixed Close(), had wrong default
12457           - Added firing of OnLoad event
12458           - Added some commented out debug code for Ownership handling
12459
12460 2004-10-17 22:16  pbartok
12461
12462         * Control.cs:
12463           - Fixed/implemented flat list of controls
12464
12465 2004-10-17 22:14  pbartok
12466
12467         * Application.cs:
12468           - Added code to simulate modal dialogs on Win32
12469
12470 2004-10-17 16:11  jordi
12471
12472         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
12473           mouse event
12474
12475 2004-10-17 13:39  jordi
12476
12477         * MenuAPI.cs: menu drawing fixes
12478
12479 2004-10-15 09:10  ravindra
12480
12481         * StructFormat.cs: General Enum.
12482
12483 2004-10-15 09:09  ravindra
12484
12485         * SizeGripStyle.cs: Enum for Form.
12486
12487 2004-10-15 09:08  ravindra
12488
12489         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
12490           in Theme for ListView.
12491
12492 2004-10-15 09:06  ravindra
12493
12494         * ColumnHeader.cs: Flushing some formatting changes.
12495
12496 2004-10-15 09:05  ravindra
12497
12498         * ListViewItem.cs: Implemented GetBounds method and fixed coding
12499           style.
12500
12501 2004-10-15 09:03  ravindra
12502
12503         * ListView.cs: Implemented Paint method and fixed coding style.
12504
12505 2004-10-15 07:34  jordi
12506
12507         * MenuAPI.cs: fix for X11
12508
12509 2004-10-15 07:32  ravindra
12510
12511         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
12512                 - Renamed Paint() method to Draw() for clarity. Also, moved
12513                 DrawImage() to OnPaint().
12514
12515 2004-10-15 07:25  ravindra
12516
12517         * CheckBox.cs, RadioButton.cs:
12518                 - Removed Redraw (), we get it from ButtonBase.
12519                 - Implemented Paint (), to do class specific painting.
12520
12521 2004-10-15 07:16  ravindra
12522
12523         * ButtonBase.cs:
12524                 - Redraw () is not virtual now.
12525                 - Added an internal virtual method Paint (), so that
12526                 derived classes can do their painting on their own.
12527                 - Modified OnPaint () to call Paint ().
12528
12529 2004-10-15 06:43  jordi
12530
12531         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
12532           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
12533
12534 2004-10-15 00:30  ravindra
12535
12536         * MessageBox.cs:
12537                 - MessageBox on windows does not have min/max buttons.
12538                 This change in CreateParams fixes this on Windows. We
12539                 still need to implement this windowstyle behavior in
12540                 our X11 driver.
12541
12542 2004-10-14 05:14  ravindra
12543
12544         * ToolBar.cs:
12545                 - Changed Redraw () to do a Refresh () always.
12546                 - Fixed the MouseMove event handling when mouse is pressed,
12547                 ie drag event handling.
12548                 - Replaced the usage of ToolBarButton.Pressed property to
12549                 ToolBarButton.pressed internal variable.
12550
12551 2004-10-14 05:10  ravindra
12552
12553         * ToolBarButton.cs:
12554                 - Added an internal member 'inside' to handle mouse move
12555                 with mouse pressed ie mouse drag event.
12556                 - Changed 'Pressed' property to return true only when
12557                 'inside' and 'pressed' are both true.
12558                 - Some coding style love.
12559
12560 2004-10-14 00:17  ravindra
12561
12562         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
12563           public method.
12564
12565 2004-10-14 00:15  ravindra
12566
12567         * ButtonBase.cs: Redraw () related improvements.
12568
12569 2004-10-14 00:14  ravindra
12570
12571         * MessageBox.cs: Moved InitFormSize () out of Paint method and
12572           removed unnecessary calls to Button.Show () method.
12573
12574 2004-10-13 17:50  pbartok
12575
12576         * XplatUIX11.cs:
12577           - Formatting fix
12578           - Removed destroying of window until we solve the problem of X
12579             destroying the window before us on shutdown
12580
12581 2004-10-13 16:32  pbartok
12582
12583         * ButtonBase.cs:
12584           - Now Redraws on MouseUp for FlatStyle Flat and Popup
12585
12586 2004-10-13 14:18  pbartok
12587
12588         * XplatUIX11.cs:
12589           - Added code to destroy the X window
12590
12591 2004-10-13 14:18  pbartok
12592
12593         * XplatUIWin32.cs:
12594           - Added code to destroy a window
12595
12596 2004-10-13 14:12  pbartok
12597
12598         * ButtonBase.cs:
12599           - Added the Redraw on Resize that got dropped in the last rev
12600
12601 2004-10-13 09:06  pbartok
12602
12603         * ThemeWin32Classic.cs:
12604           - Path from John BouAntoun:
12605             * Fix check rendering (centre correctly for normal style, offset
12606               correctly for FlatStyle).
12607             * Fix border color usage (use backcolor) for FlatStyle.Popup
12608             * Use checkbox.Capture instead of checkbox.is_pressed when
12609               rendering flatstyle states.
12610
12611 2004-10-12 21:48  pbartok
12612
12613         * ThemeWin32Classic.cs:
12614           - Removed all occurences of SystemColors and replaced them with the
12615             matching theme color
12616
12617 2004-10-12 21:41  pbartok
12618
12619         * ThemeWin32Classic.cs:
12620           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
12621             him using the function for flatstyle drawing
12622           - Changed functions to use the new version of CPDrawBorder3D
12623
12624 2004-10-12 21:15  pbartok
12625
12626         * ControlPaint.cs:
12627           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
12628             match MS documentation. They need to return defined colors if the
12629             passed color matches the configured control color. Thanks to John
12630             BouAntoun for pointing this out.
12631
12632 2004-10-12 20:57  pbartok
12633
12634         * Control.cs:
12635           - Fix from John BouAntoun: Raise ForeColorChanged event when text
12636             color is changed
12637
12638 2004-10-12 20:46  pbartok
12639
12640         * CheckBox.cs:
12641           - Fix from John BouAntoun: Now properly sets the Appearance property
12642
12643 2004-10-12 20:45  pbartok
12644
12645         * ThemeWin32Classic.cs:
12646           - Fixes from John BouAntoun: now handles forecolors and backcolors
12647             for flatstyle rendered controls much better; It also fixes normal
12648             checkbox rendering when pushed or disabled.
12649
12650 2004-10-08 02:50  jordi
12651
12652         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
12653           work
12654
12655 2004-10-07 08:56  jordi
12656
12657         * ThemeWin32Classic.cs: Removes deletion of cached brushes
12658
12659 2004-10-06 03:59  jordi
12660
12661         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
12662           XplatUIWin32.cs: removes warnings from compilation
12663
12664 2004-10-05 12:23  jackson
12665
12666         * RadioButton.cs: Fix ctor
12667
12668 2004-10-05 11:10  pbartok
12669
12670         * MessageBox.cs:
12671           - Partial implementation by Benjamin Dasnois
12672
12673 2004-10-05 10:15  jackson
12674
12675         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
12676           by John BouAntoun
12677
12678 2004-10-05 03:07  ravindra
12679
12680         * ToolBar.cs:
12681                 - Removed a private method, Draw ().
12682                 - Fixed the ButtonDropDown event handling.
12683                 - Fixed MouseMove event handling.
12684
12685 2004-10-05 03:04  ravindra
12686
12687         * ThemeWin32Classic.cs:
12688                 - Added DrawListView method and ListViewDefaultSize property.
12689                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
12690                 - Changed DOS style CRLF to Unix format (dos2unix).
12691
12692 2004-10-05 03:03  ravindra
12693
12694         * Theme.cs:
12695                 - Added DrawListView method and ListViewDefaultSize property.
12696
12697 2004-10-05 02:42  ravindra
12698
12699         * ToolBarButton.cs: Added an internal member dd_pressed to handle
12700           clicks on DropDown arrow.
12701
12702 2004-10-04 22:56  jackson
12703
12704         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
12705           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
12706           Control handle the buffers, derived classes should not have to
12707           CreateBuffers themselves.
12708
12709 2004-10-04 21:20  jackson
12710
12711         * StatusBar.cs: The control handles resizing the buffers now.
12712
12713 2004-10-04 21:18  jackson
12714
12715         * Control.cs: When resizing the buffers should be invalidated. This
12716           should be handled in Control not in derived classes.
12717
12718 2004-10-04 14:45  jackson
12719
12720         * TabPage.cs: oops
12721
12722 2004-10-04 02:14  pbartok
12723
12724         * LeftRightAlignment.cs:
12725           - Initial check-in
12726
12727 2004-10-04 01:09  jordi
12728
12729         * ThemeWin32Classic.cs: fixes right button position causing right
12730           button not showing on horizontal scrollbars
12731
12732 2004-10-02 13:12  pbartok
12733
12734         * XplatUIX11.cs:
12735           - Simplified the Invalidate method by using an X call instead of
12736             generating the expose ourselves
12737           - Added an expose when the window background is changed
12738           - Implemented ClientToScreen method
12739
12740 2004-10-02 13:08  pbartok
12741
12742         * XplatUIWin32.cs:
12743           - Added Win32EnableWindow method (test for implementing modal
12744           dialogs)
12745           - Added ClientToScreen method and imports
12746
12747 2004-10-02 13:07  pbartok
12748
12749         * XplatUI.cs, XplatUIDriver.cs:
12750           - Added ClientToScreen coordinate translation method
12751
12752 2004-10-02 13:06  pbartok
12753
12754         * KeyPressEventArgs.cs:
12755           - Fixed access level for constructor
12756
12757 2004-10-02 13:06  pbartok
12758
12759         * NativeWindow.cs:
12760           - Changed access level for the window_collection hash table
12761
12762 2004-10-02 13:05  pbartok
12763
12764         * Form.cs:
12765           - Added KeyPreview property
12766           - Added Menu property (still incomplete, pending Jordi's menu work)
12767           - Implemented ProcessCmdKey
12768           - Implemented ProcessDialogKey
12769           - Implemented ProcessKeyPreview
12770
12771 2004-10-02 13:02  pbartok
12772
12773         * Control.cs:
12774           - Added private method to get the Control object from the window
12775           handle
12776           - Implemented ContextMenu property
12777           - Implemented PointToScreen
12778           - Implemented PreProcessMessage
12779           - Implemented IsInputChar
12780           - Implemented IsInputKey
12781           - Implemented ProcessCmdKey
12782           - Completed ProcessKeyEventArgs
12783           - Fixed message loop to call the proper chain of functions on key
12784           events
12785           - Implemented ProcessDialogChar
12786           - Implemented ProcessDialogKey
12787           - Implemented ProcessKeyMessage
12788           - Implemented ProcessKeyPreview
12789           - Added RaiseDragEvent stub (MS internal method)
12790           - Added RaiseKeyEvent stub (MS internal method)
12791           - Added RaiseMouseEvent stub (MS Internal method)
12792           - Added RaisePaintEvent stub (MS Internal method)
12793           - Added ResetMouseEventArgs stub (MS Internal method)
12794           - Implemented RtlTranslateAlignment
12795           - Implemented RtlTranslateContent
12796           - Implemented RtlTranslateHorizontal
12797           - Implemented RtlTranslateLeftRight
12798           - Added generation of KeyPress event
12799
12800 2004-10-02 05:57  ravindra
12801
12802         * ListViewItem.cs: Added attributes.
12803
12804 2004-10-02 05:32  ravindra
12805
12806         * ListView.cs: Added attributes.
12807
12808 2004-10-01 11:53  jackson
12809
12810         * Form.cs: Implement the Close method so work on MessageBox can
12811           continue.
12812
12813 2004-09-30 14:06  pbartok
12814
12815         * XplatUIX11.cs:
12816           - Bug fixes
12817
12818 2004-09-30 11:34  jackson
12819
12820         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
12821
12822 2004-09-30 07:26  ravindra
12823
12824         * ListViewItemConverter.cs: Converter for ListViewItem.
12825
12826 2004-09-30 07:26  ravindra
12827
12828         * SortOrder.cs: Enum for ListView control.
12829
12830 2004-09-30 07:25  ravindra
12831
12832         * ColumnHeader.cs: Supporting class for ListView control.
12833
12834 2004-09-30 07:24  ravindra
12835
12836         * ListView.cs, ListViewItem.cs: Initial implementation.
12837
12838 2004-09-30 07:20  ravindra
12839
12840         * ItemActivation.cs: Enum for ListView Control.
12841
12842 2004-09-29 20:29  pbartok
12843
12844         * XplatUIX11.cs:
12845           - Added lookup of pixel value for background color; tries to get a
12846             color 'close' to the requested color, it avoids having to create a
12847             colormap.  Depending on the display this could mean the used color
12848             is slightly off the desired color. Might have to change it to a more
12849             resource intensive colormap approach, but it will work as a
12850           workaround to avoid red screens.
12851
12852 2004-09-29 14:27  jackson
12853
12854         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
12855
12856 2004-09-28 12:44  pbartok
12857
12858         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
12859           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
12860           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
12861           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
12862           TrackBar.cs, VScrollBar.cs:
12863           - Streamlined Theme interfaces:
12864             * Each DrawXXX method for a control now is passed the object for
12865               the control to be drawn in order to allow accessing any state the
12866               theme might require
12867
12868             * ControlPaint methods for the theme now have a CP prefix to avoid
12869               name clashes with the Draw methods for controls
12870
12871             * Every control now retrieves it's DefaultSize from the current
12872             theme
12873
12874 2004-09-28 12:17  jackson
12875
12876         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
12877           drawing
12878
12879 2004-09-24 14:57  jackson
12880
12881         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
12882           Gives us a nice little performance boost.
12883
12884 2004-09-24 12:02  jackson
12885
12886         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
12887           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
12888           Control and supporting classes. Initial checkin
12889
12890 2004-09-23 13:08  jackson
12891
12892         * Form.cs: Temp build fixage
12893
12894 2004-09-23 01:39  ravindra
12895
12896         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
12897           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
12898           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
12899           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
12900           EventHandlers needed by ListView Control.
12901
12902 2004-09-22 14:12  pbartok
12903
12904         * ScrollableControl.cs:
12905           - Implemented DockPadding property
12906           - Implemented AutoScroll property
12907           - Implemented AutoScrollMargin property
12908           - Implemented AutoScrollMinSize property
12909           - Implemented AutoScrollPosition property
12910           - Implemented DisplayRectangle property (still incomplete)
12911           - Implemented CreateParams property
12912           - Implemented HScroll property
12913           - Implemented VScroll property
12914           - Implemented OnVisibleChanged property
12915
12916 2004-09-22 14:09  pbartok
12917
12918         * Form.cs:
12919           - Added Form.ControllCollection class
12920           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
12921             RemoveOwnedForm (still incomplete, missing on-top and common
12922             minimize/maximize behaviour)
12923           - Added StartPosition property (still incomplete, does not use when
12924             creating the form)
12925           - Added ShowDialog() methods (still incomplete, missing forcing the
12926             dialog modal)
12927
12928 2004-09-22 14:05  pbartok
12929
12930         * Application.cs:
12931           - Added message loop for modal dialogs
12932
12933 2004-09-22 14:02  pbartok
12934
12935         * GroupBox.cs:
12936           - Fixed wrong types for events
12937
12938 2004-09-22 14:00  pbartok
12939
12940         * Shortcut.cs, FormWindowState.cs:
12941           - Fixed wrong values
12942
12943 2004-09-22 12:01  jackson
12944
12945         * Control.cs: Text is never null
12946
12947 2004-09-20 22:14  pbartok
12948
12949         * XplatUIWin32.cs:
12950           - Fixed accessibility level for Idle handler
12951
12952 2004-09-20 18:54  jackson
12953
12954         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
12955           XplatUIX11.cs: New message loop that uses poll so we don't get a
12956           busy loop
12957
12958 2004-09-17 10:43  pbartok
12959
12960         * ScrollBar.cs:
12961           - Fixed behaviour of arrow buttons. Now properly behaves like
12962             Buttons (and like Microsoft's scrollbar arrow buttons)
12963
12964 2004-09-17 10:14  pbartok
12965
12966         * ScrollBar.cs:
12967           - Added missing release of keyboard/mouse capture
12968
12969 2004-09-17 06:18  jordi
12970
12971         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
12972           Theme.cs: Very early menu support
12973
12974 2004-09-16 17:45  pbartok
12975
12976         * XplatUIWin32.cs:
12977           - Fixed sending a window to the front
12978           - Added overload for SetWindowPos to avoid casting
12979
12980 2004-09-16 17:44  pbartok
12981
12982         * Control.cs:
12983           - Added SendToBack and BringToFront methods
12984
12985 2004-09-16 07:00  ravindra
12986
12987         * Copyright: Added Novell URL.
12988
12989 2004-09-16 07:00  ravindra
12990
12991         * ToolBar.cs: Invalidate should be done before redrawing.
12992
12993 2004-09-15 21:19  ravindra
12994
12995         * ColumnHeaderStyle.cs: Enum for ListView Control.
12996
12997 2004-09-15 21:18  ravindra
12998
12999         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
13000           ListView Control.
13001
13002 2004-09-13 18:26  jackson
13003
13004         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
13005           properly
13006
13007 2004-09-13 18:13  jackson
13008
13009         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
13010           a second thread and post messages into the main threads message
13011           queue. This makes timing much more consistent. Both win2K and XP
13012           have a minimum timer value of 15 milliseconds, so we now do this
13013           too.
13014
13015 2004-09-13 15:18  pbartok
13016
13017         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13018           XplatUIX11.cs:
13019           - Added Z-Ordering methods
13020
13021 2004-09-13 10:56  pbartok
13022
13023         * Form.cs:
13024           - Fixed #region names
13025           - Moved properties and methods into their proper #regions
13026
13027 2004-09-13 10:51  pbartok
13028
13029         * Form.cs:
13030           - Added Accept and CancelButton properties
13031           - Added ProcessDialogKey() method
13032
13033 2004-09-13 08:18  pbartok
13034
13035         * IWindowTarget.cs:
13036           - Initial check-in
13037
13038 2004-09-10 21:50  pbartok
13039
13040         * Control.cs:
13041           - Added DoDragDrop() [incomplete]
13042           - Properly implemented 'Visible' handling
13043           - Added SetVisibleCore()
13044           - Implemented FindChildAtPoint()
13045           - Implemented GetContainerControl()
13046           - Implemented Hide()
13047
13048 2004-09-10 19:28  pbartok
13049
13050         * Control.cs:
13051           - Moved methods into their appropriate #regions
13052           - Reordered methods within regions alphabetically
13053
13054 2004-09-10 18:57  pbartok
13055
13056         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
13057           - Added method to retrieve text from window
13058
13059 2004-09-10 18:56  pbartok
13060
13061         * Control.cs:
13062           - Moved some internal functions into the internal region
13063           - Implemented FontHeight
13064           - Implemented RenderRightToLeft
13065           - Implemented ResizeRedraw
13066           - Implemented ShowFocusCues
13067           - Implemented ShowKeyboardCues
13068           - Implemented FromChildHandle
13069           - Implemented FromHandle
13070           - Implemented IsMnemonic
13071           - Implemented ReflectMessage
13072           - All public and protected Static Methods are now complete
13073
13074 2004-09-10 16:54  pbartok
13075
13076         * Control.cs:
13077           - Implemented remaining missing public instance properties
13078           - Alphabetized some out of order properties
13079
13080 2004-09-10 05:51  ravindra
13081
13082         * PictureBox.cs: Added a check for null image.
13083
13084 2004-09-10 00:59  jordi
13085
13086         * GroupBox.cs: remove cvs tag
13087
13088 2004-09-09 05:25  ravindra
13089
13090         * ToolBar.cs: Make redraw accessible from ToolBarButton.
13091
13092 2004-09-09 05:23  ravindra
13093
13094         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
13095           parent redraw.
13096
13097 2004-09-09 02:28  pbartok
13098
13099         * ThemeWin32Classic.cs:
13100           - Improve disabled string look
13101
13102 2004-09-09 01:15  jordi
13103
13104         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
13105           args and handler
13106
13107 2004-09-08 23:56  ravindra
13108
13109         * ItemBoundsPortion.cs: It's enum, not a class!
13110
13111 2004-09-08 23:47  ravindra
13112
13113         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
13114           Enums for Form.
13115
13116 2004-09-08 21:13  ravindra
13117
13118         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
13119           ListView control.
13120
13121 2004-09-08 21:03  ravindra
13122
13123         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
13124           avoid crash.
13125
13126 2004-09-08 21:01  ravindra
13127
13128         * ScrollableControl.cs: Removed unreachable code.
13129
13130 2004-09-08 06:45  jordi
13131
13132         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
13133
13134 2004-09-08 01:00  jackson
13135
13136         * XplatUIX11.cs: Only run the timers when updating the message
13137           queue. This effectively gives X messages a higher priority then
13138           timer messages. Timers still need love though
13139
13140 2004-09-07 14:01  jackson
13141
13142         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
13143           this for us and the handle is no longer valid.
13144
13145 2004-09-07 13:59  jackson
13146
13147         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
13148           loop that manages to not crash. TODO: Add poll and cleanup timers
13149
13150 2004-09-07 11:12  jordi
13151
13152         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
13153
13154 2004-09-07 03:40  jordi
13155
13156         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
13157           fixes, methods, multiple links
13158
13159 2004-09-06 06:55  jordi
13160
13161         * Control.cs: Caches ClientRectangle rectangle value
13162
13163 2004-09-05 02:03  jordi
13164
13165         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
13166           certain situations
13167
13168 2004-09-04 11:10  jordi
13169
13170         * Label.cs: Refresh when font changed
13171
13172 2004-09-02 16:24  pbartok
13173
13174         * Control.cs:
13175           - Added sanity check to creation of double buffer bitmap
13176
13177 2004-09-02 16:24  pbartok
13178
13179         * ButtonBase.cs:
13180           - Fixed selection of text color
13181           - Fixed handling of resize event; now properly recreates double
13182             buffering bitmap
13183           - Added missing assignment of TextAlignment
13184           - Added proper default for TextAlignment
13185
13186 2004-09-02 14:26  pbartok
13187
13188         * RadioButton.cs:
13189           - Added missing RadioButton.RadioButtonAccessibleObject class
13190
13191 2004-09-02 14:26  pbartok
13192
13193         * Control.cs:
13194           - Added missing Control.ControlAccessibleObject class
13195           - Started to implement Select()ion mechanisms, still very incomplete
13196
13197 2004-09-02 14:25  pbartok
13198
13199         * AccessibleObject.cs:
13200           - Added missing methods
13201
13202 2004-09-02 14:23  pbartok
13203
13204         * AccessibleNavigation.cs, AccessibleSelection.cs:
13205           - Initial check-in
13206
13207 2004-09-02 10:32  jordi
13208
13209         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
13210           pool for pens, brushes, and hatchbruses
13211
13212 2004-09-01 15:30  jackson
13213
13214         * StatusBar.cs: Fix typo
13215
13216 2004-09-01 14:44  pbartok
13217
13218         * RadioButton.cs:
13219           - Fixed state
13220
13221 2004-09-01 14:39  pbartok
13222
13223         * Button.cs, RadioButton.cs:
13224           - Functional initial check-in
13225
13226 2004-09-01 14:01  pbartok
13227
13228         * CheckBox.cs:
13229           - Added missing default
13230           - Added missing region mark
13231
13232 2004-09-01 09:10  jordi
13233
13234         * Label.cs: fixes method signatures, new methods, events, fixes
13235           autosize
13236
13237 2004-09-01 07:19  jordi
13238
13239         * Control.cs: Init string variables with an empty object
13240
13241 2004-09-01 04:20  jordi
13242
13243         * Control.cs: fires OnFontChanged event
13244
13245 2004-08-31 20:07  pbartok
13246
13247         * ButtonBase.cs:
13248           - Enabled display of strings
13249
13250 2004-08-31 20:05  pbartok
13251
13252         * Form.cs:
13253           - Added (partial) implementation of DialogResult; rest needs to be
13254             implemented when the modal loop code is done
13255
13256 2004-08-31 19:55  pbartok
13257
13258         * CheckBox.cs:
13259           - Fixed to match the removal of the needs_redraw concept
13260
13261 2004-08-31 19:55  pbartok
13262
13263         * ButtonBase.cs:
13264           - Removed the rather odd split between 'needs redraw' and redrawing
13265           - Now handles the events that require regeneration (ambient
13266             properties and size)
13267
13268 2004-08-31 19:41  pbartok
13269
13270         * Control.cs:
13271           - Added firing of BackColorChanged event
13272           - Added TopLevelControl property
13273           - Fixed handling of WM_ERASEBKGRND message
13274
13275 2004-08-31 12:49  pbartok
13276
13277         * ButtonBase.cs:
13278           - Removed debug
13279           - Minor fixes
13280
13281 2004-08-31 12:48  pbartok
13282
13283         * CheckBox.cs:
13284           - Finished (famous last words)
13285
13286 2004-08-31 04:35  jordi
13287
13288         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
13289           scrolling bugs, adds new methods
13290
13291 2004-08-30 14:42  pbartok
13292
13293         * CheckBox.cs:
13294           - Implemented CheckBox drawing code
13295
13296 2004-08-30 14:42  pbartok
13297
13298         * ButtonBase.cs:
13299           - Made Redraw() and CheckRedraw() virtual
13300           - Improved mouse up/down/move logic to properly track buttons
13301
13302 2004-08-30 09:44  pbartok
13303
13304         * CheckBox.cs:
13305           - Updated to fix broken build. Not complete yet.
13306
13307 2004-08-30 09:28  pbartok
13308
13309         * CheckState.cs:
13310           - Initial checkin
13311
13312 2004-08-30 09:17  pbartok
13313
13314         * Appearance.cs:
13315           - Initial check-in
13316
13317 2004-08-27 16:12  ravindra
13318
13319         * ToolBarButton.cs: Added TypeConverter attribute.
13320
13321 2004-08-27 16:07  ravindra
13322
13323         * ImageIndexConverter.cs: Implemented.
13324
13325 2004-08-27 14:17  pbartok
13326
13327         * Control.cs:
13328           - Removed unneeded stack vars
13329           - First attempt to fix sizing issues when layout is suspended
13330
13331 2004-08-25 15:35  jordi
13332
13333         * ScrollBar.cs: more fixes to scrollbar
13334
13335 2004-08-25 14:04  ravindra
13336
13337         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
13338           Added the missing divider code and grip for ToolBar Control.
13339
13340 2004-08-25 13:20  pbartok
13341
13342         * Control.cs:
13343           - Control now properly passes the ambient background color to child
13344             controls
13345
13346 2004-08-25 13:20  jordi
13347
13348         * ScrollBar.cs: small bug fix regarding bar position
13349
13350 2004-08-25 12:33  pbartok
13351
13352         * Timer.cs:
13353           - Now only calls SetTimer or KillTimer if the enabled state has
13354           changed
13355
13356 2004-08-25 12:33  pbartok
13357
13358         * XplatUIWin32.cs:
13359           - Fixed timer handling, now seems to work
13360           - Improved error message for window creation
13361
13362 2004-08-25 12:32  pbartok
13363
13364         * Control.cs:
13365           - Fixed generation of MouseUp message
13366
13367 2004-08-25 12:29  jordi
13368
13369         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
13370           and fixes for progressbar
13371
13372 2004-08-24 18:43  ravindra
13373
13374         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
13375           in ToolBar control.
13376
13377 2004-08-24 17:15  pbartok
13378
13379         * Panel.cs:
13380           - Added #region
13381           - Added missing events
13382           - Alphabetized
13383
13384 2004-08-24 17:14  pbartok
13385
13386         * StatusBar.cs, PictureBox.cs:
13387           - Now uses Control's CreateParams
13388
13389 2004-08-24 16:36  pbartok
13390
13391         * XplatUIX11.cs:
13392           - Fixed background color handling
13393           - Fixed sending of enter/leave events on a grab
13394
13395 2004-08-24 16:35  pbartok
13396
13397         * X11Structs.cs:
13398           - Refined definitions for CrossingEvent
13399
13400 2004-08-24 12:37  jordi
13401
13402         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
13403           formmating, methods signature, and adds missing events
13404
13405 2004-08-24 12:24  jordi
13406
13407         * Control.cs: fire OnEnabledChanged event
13408
13409 2004-08-24 11:17  pbartok
13410
13411         * XplatUIWin32.cs:
13412           - Implemented SetTimer() and KillTimer()
13413
13414 2004-08-24 11:16  pbartok
13415
13416         * XplatUIX11.cs:
13417           - Now uses Remove instead of Add to kill the timer
13418
13419 2004-08-24 10:16  jackson
13420
13421         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
13422           picture boxes in the theme now. Draw picture box borders and obey
13423           sizing modes
13424
13425 2004-08-24 05:49  jackson
13426
13427         * Timer.cs: Remove top secret debugging code
13428
13429 2004-08-24 05:34  jackson
13430
13431         * PictureBox.cs: Temp hack to make picture boxes draw their full
13432           image
13433
13434 2004-08-24 05:29  jackson
13435
13436         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13437           XplatUIX11.cs: Move timers to the driver level. On X they are
13438           queued by the driver and checked on idle.
13439
13440 2004-08-24 01:07  jackson
13441
13442         * XplatUIX11.cs: Use a queue for async messages instead of passing
13443           them as ClientMessages since that was totally broken. Also simply
13444           check for events and return an idle message if none are found. This
13445           gives us an idle handler, and prevents deadlocking when no messages
13446           are in the queue.
13447
13448 2004-08-23 18:19  ravindra
13449
13450         * XplatUIWin32.cs: Removed the unwanted destructor.
13451
13452 2004-08-23 17:27  pbartok
13453
13454         * ButtonBase.cs:
13455           - Finishing touches. Works now, just needs some optimizations.
13456
13457 2004-08-23 16:53  jordi
13458
13459         * ScrollBar.cs: small fix
13460
13461 2004-08-23 16:45  pbartok
13462
13463         * Application.cs:
13464           - Removed debug output
13465           - Simplifications
13466
13467 2004-08-23 16:43  jordi
13468
13469         * ScrollBar.cs: [no log message]
13470
13471 2004-08-23 16:10  pbartok
13472
13473         * Form.cs:
13474           - Fixed handling of WM_CLOSE message
13475           - Removed debug output
13476
13477 2004-08-23 16:09  pbartok
13478
13479         * Application.cs:
13480           - Added handling of Idle event
13481           - Added handling of form closing
13482           - Fixed reporting of MessageLoop property
13483           - Removed some unneeded code, should provide a bit of a speedup
13484
13485 2004-08-23 15:22  pbartok
13486
13487         * Control.cs:
13488           - Added InitLayout() method
13489           - Added code to properly perform layout when Anchor or Dock property
13490             is changed
13491           - Changed 'interpretation' of ResumeLayout. MS seems to have a
13492             LAMESPEC, tried to do it in a way that makes sense
13493
13494 2004-08-23 14:10  jordi
13495
13496         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
13497           properties and methods
13498
13499 2004-08-23 13:55  pbartok
13500
13501         * Control.cs:
13502           - Properly fixed Jordi's last fix
13503           - Now uses Cursor's Position property instead of calling XplatUI
13504           directly
13505
13506 2004-08-23 13:44  jordi
13507
13508         * PaintEventHandler.cs: Adding missing attribute
13509
13510 2004-08-23 13:39  pbartok
13511
13512         * Cursor.cs:
13513           - Implemented Position property
13514
13515 2004-08-23 13:39  pbartok
13516
13517         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
13518           - Added method to move mouse cursor
13519
13520 2004-08-23 13:39  pbartok
13521
13522         * XplatUIX11.cs:
13523           - Fixed setting of background color
13524           - Added method to move mouse cursor
13525
13526 2004-08-23 13:16  jordi
13527
13528         * Control.cs: avoids null exception
13529
13530 2004-08-22 17:46  jackson
13531
13532         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
13533           PictureBox
13534
13535 2004-08-22 17:40  jackson
13536
13537         * XplatUIX11.cs: Add some missing locks
13538
13539 2004-08-22 15:10  pbartok
13540
13541         * Control.cs, Form.cs:
13542           - Removed OverlappedWindow style from Control, instead it's default
13543             now is child
13544           - Made form windows OverlappedWindow by default
13545
13546 2004-08-22 13:34  jackson
13547
13548         * ScrollBar.cs: Update the position through the Value property so
13549           the OnValueChanged event is raised.
13550
13551 2004-08-22 12:04  pbartok
13552
13553         * SWF.csproj:
13554           - Added Cursor.cs and UserControl.cs
13555
13556 2004-08-22 12:03  pbartok
13557
13558         * Cursor.cs:
13559           - Started implementation, not usable yet
13560
13561 2004-08-22 12:00  pbartok
13562
13563         * UserControl.cs:
13564           - Implemented UserControl (complete)
13565
13566 2004-08-21 19:20  ravindra
13567
13568         * ToolBar.cs: Correcting the formatting mess of VS.NET.
13569
13570 2004-08-21 18:49  ravindra
13571
13572         * ToolBar.cs: Probably this completes the missing attributes in
13573           toolbar control.
13574
13575 2004-08-21 18:03  ravindra
13576
13577         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
13578           Fixed toolbar control signatures.
13579
13580 2004-08-21 16:32  pbartok
13581
13582         * LinkLabel.cs:
13583           - Signature Fixes
13584
13585 2004-08-21 16:30  pbartok
13586
13587         * Label.cs:
13588           - Signature fixes
13589
13590 2004-08-21 16:19  pbartok
13591
13592         * Control.cs, Label.cs:
13593           - Signature fixes
13594
13595 2004-08-21 15:57  pbartok
13596
13597         * ButtonBase.cs:
13598           - Added loads of debug output for development
13599           - Fixed typo in method name
13600
13601 2004-08-21 15:52  pbartok
13602
13603         * ToolBarButtonClickEventArgs.cs:
13604           - Added missing base class
13605
13606 2004-08-21 14:53  pbartok
13607
13608         * Control.cs:
13609           - Updated to match new GrabWindow signature
13610
13611 2004-08-21 14:51  pbartok
13612
13613         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13614           - Added method to get default display size
13615
13616 2004-08-21 14:23  pbartok
13617
13618         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13619           - Added method to query current grab state
13620           - Added argument to allow confining a grab to a window
13621
13622 2004-08-21 14:22  pbartok
13623
13624         * Keys.cs:
13625           - Added [Flags] attribute so that modifiers can be used in bitwise
13626           ops
13627
13628 2004-08-21 14:21  pbartok
13629
13630         * TrackBar.cs, ScrollBar.cs:
13631           - Replaced direct XplatUI calls with their Control counterpart
13632
13633 2004-08-21 13:32  pbartok
13634
13635         * Control.cs:
13636           - Implemented Created property
13637
13638 2004-08-21 13:28  pbartok
13639
13640         * Control.cs:
13641           - Implemented ContainsFocus
13642
13643 2004-08-21 13:26  pbartok
13644
13645         * Control.cs:
13646           - Implemented CausesValidation
13647
13648 2004-08-21 13:21  pbartok
13649
13650         * Control.cs:
13651           - Implemented CanFocus
13652           - Implemented CanSelect
13653           - Implemented Capture
13654
13655 2004-08-21 12:35  pbartok
13656
13657         * XplatUIWin32.cs:
13658           - Fixed bug with Async message handling
13659           - Implemented getting the ModifierKeys
13660
13661 2004-08-21 12:32  jackson
13662
13663         * AsyncMethodResult.cs: Make sure we have the mutex before we
13664           release it. Fixes BeginInvoke on windows
13665
13666 2004-08-21 11:31  pbartok
13667
13668         * XplatUIWin32.cs, XplatUIX11.cs:
13669           - Drivers now return proper mouse state
13670
13671 2004-08-21 10:54  jackson
13672
13673         * Control.cs: Implement EndInvoke
13674
13675 2004-08-21 10:48  jackson
13676
13677         * Timer.cs: Remove unneeded finalizer
13678
13679 2004-08-20 19:52  ravindra
13680
13681         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
13682           in mouse event handling in the ToolBar control.
13683
13684 2004-08-20 19:50  ravindra
13685
13686         * ImageList.cs: Changed draw method to use the arguments passed in
13687           to draw the image.
13688
13689 2004-08-20 18:58  pbartok
13690
13691         * XplatUIStructs.cs:
13692           - Added private message for async communication
13693
13694 2004-08-20 17:38  ravindra
13695
13696         * Control.cs: Made RightToLeft property virtual and removed a
13697           Console.WriteLine.
13698
13699 2004-08-20 14:39  jordi
13700
13701         * ThemeGtk.cs: use style_attach
13702
13703 2004-08-20 14:39  pbartok
13704
13705         * XplatUIWin32.cs:
13706           - Added jackson's Async code from X11 to Win32
13707
13708 2004-08-20 14:09  pbartok
13709
13710         * SWF.csproj:
13711           - Added all new files
13712
13713 2004-08-20 14:09  pbartok
13714
13715         * Control.cs:
13716           - Added call to set window background color
13717
13718 2004-08-20 14:03  pbartok
13719
13720         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
13721           - Added method for setting the window background
13722
13723 2004-08-20 14:02  pbartok
13724
13725         * XplatUIWin32.cs:
13726           - Added method for setting the background color
13727           - Added handling for erasing the window background
13728
13729 2004-08-20 13:45  jordi
13730
13731         * TrackBar.cs: fixes timer, new properties and methods
13732
13733 2004-08-20 13:34  jackson
13734
13735         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
13736           correct thread
13737
13738 2004-08-20 13:22  jackson
13739
13740         * Timer.cs: Timer Tick events are now handed through Controls Async
13741           mechanism so the callbacks are executed in the same thread as X
13742
13743 2004-08-20 13:19  jackson
13744
13745         * XplatUIDriver.cs: Expose functionality to send async messages
13746           through the driver
13747
13748 2004-08-20 13:18  jackson
13749
13750         * Control.cs: Implement Begininvoke
13751
13752 2004-08-20 13:14  jackson
13753
13754         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
13755           messages through the driver
13756
13757 2004-08-20 13:12  jackson
13758
13759         * XplatUIX11.cs: Lock before all X operations. Also added Async
13760           method functionality through XSendEvent
13761
13762 2004-08-20 13:11  jackson
13763
13764         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
13765           This will screw up on 64 bit systems)
13766
13767 2004-08-20 13:10  jackson
13768
13769         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
13770           Async messages through X/Win32
13771
13772 2004-08-19 19:39  pbartok
13773
13774         * XplatUIX11.cs:
13775           - Updated code to match new HandleData.DeviceContext type
13776
13777 2004-08-19 19:38  pbartok
13778
13779         * HandleData.cs:
13780           - Made DeviceContext a generic object to allow usage from various
13781           drivers
13782           - Added support for queueing Windows messages
13783
13784 2004-08-19 19:37  pbartok
13785
13786         * XplatUIWin32.cs:
13787           - Added generation of MouseEnter, MouseLeave and MouseHover events
13788           - Added cleanup on EndPaint
13789
13790 2004-08-19 19:17  pbartok
13791
13792         * Control.cs:
13793           - Added handling of WM_MOUSEHOVER
13794           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
13795           code
13796
13797 2004-08-19 18:55  jordi
13798
13799         * ThemeGtk.cs: fixes button order
13800
13801 2004-08-19 18:12  jordi
13802
13803         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
13804
13805 2004-08-19 17:09  pbartok
13806
13807         * Control.cs:
13808           - Added Right property
13809           - Added RightToLeft property
13810
13811 2004-08-19 16:27  jordi
13812
13813         * ThemeGtk.cs: experimental GTK theme support
13814
13815 2004-08-19 16:26  jordi
13816
13817         * ITheme.cs, Theme.cs: move themes from an interface to a class
13818
13819 2004-08-19 16:25  jordi
13820
13821         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
13822           theme enhancaments
13823
13824 2004-08-19 16:04  pbartok
13825
13826         * XplatUIX11.cs:
13827           - Added colormap basics
13828           - Added a way to re-initialize with a different display handle
13829           - Fixed setting of the window background color
13830           - Added various X11 imports related to colors and colormaps
13831
13832 2004-08-19 15:51  pbartok
13833
13834         * X11Structs.cs:
13835           - Removed packing hints (Paolo suggested this a while back)
13836           - fixed colormap type
13837           - Added default Atom types
13838           - Added Screen and color structs and enums
13839
13840 2004-08-19 15:39  pbartok
13841
13842         * ImageList.cs:
13843           - Added missing Draw() method
13844           - Added missing RecreateHandle event
13845
13846 2004-08-19 15:30  pbartok
13847
13848         * Form.cs:
13849           - Added handling of WM_CLOSE
13850
13851 2004-08-18 13:16  jordi
13852
13853         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
13854           a table
13855
13856 2004-08-18 09:56  jordi
13857
13858         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
13859
13860 2004-08-17 15:31  ravindra
13861
13862         * SWF.csproj: Updated project.
13863
13864 2004-08-17 15:25  pbartok
13865
13866         * Control.cs:
13867           - Drawing improvement; don't call UpdateBounds if we are not visible
13868             (or have been minimized)
13869
13870 2004-08-17 15:24  pbartok
13871
13872         * XplatUIWin32.cs:
13873           - Finished IsVisible
13874           - Added Win32GetWindowPlacement
13875
13876 2004-08-17 15:08  jackson
13877
13878         * Panel.cs: Initial checkin of the Panel
13879
13880 2004-08-17 14:25  pbartok
13881
13882         * Control.cs:
13883           - Fixed broken handling of default window sizes
13884
13885 2004-08-17 13:29  jackson
13886
13887         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
13888           has a large startup time.
13889
13890 2004-08-17 10:25  jackson
13891
13892         * HandleData.cs: union areas properly
13893
13894 2004-08-17 10:12  jackson
13895
13896         * HandleData.cs: union areas properly
13897
13898 2004-08-16 20:00  ravindra
13899
13900         * ToolBar.cs, ToolBarButton.cs: Added attributes.
13901
13902 2004-08-16 18:48  ravindra
13903
13904         * ToolBar.cs: Added attributes.
13905
13906 2004-08-16 17:17  ravindra
13907
13908         * SWF.csproj: Updated project.
13909
13910 2004-08-16 17:16  jackson
13911
13912         * XplatUIX11.cs: Check for more expose events before sending a
13913           WM_PAINT so they can all be grouped together. This makes dragging a
13914           window across another window redraw in a sane way.
13915
13916 2004-08-16 15:47  pbartok
13917
13918         * Control.cs:
13919           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
13920             support OnMouseEnter/Leave()
13921           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
13922             exposure handling
13923
13924 2004-08-16 15:46  pbartok
13925
13926         * XplatUIStructs.cs, XplatUIX11.cs:
13927           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
13928           OnMouseEnter/Leave()
13929
13930 2004-08-16 15:34  jackson
13931
13932         * XplatUIX11.cs: Group multiple expose events in HandleData, make
13933           sure messages get the message field set to WM_NULL if they are not
13934           handled.
13935
13936 2004-08-16 15:24  jackson
13937
13938         * HandleData.cs: HandleData is used for storing message information
13939           for window handles
13940
13941 2004-08-15 17:23  ravindra
13942
13943         * ColorDepth.cs: Added attribute.
13944
13945 2004-08-15 17:23  ravindra
13946
13947         * SWF.csproj: Updated project for ToolBar Control.
13948
13949 2004-08-15 17:20  ravindra
13950
13951         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
13952           control and also dos2unix format.
13953
13954 2004-08-15 17:13  ravindra
13955
13956         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
13957           ToolBarButtonClickEventArgs.cs,
13958           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
13959           ToolBarTextAlign.cs: First Implementation of ToolBar control.
13960
13961 2004-08-15 15:31  pbartok
13962
13963         * ButtonBase.cs:
13964           - First (mostly) working version
13965
13966 2004-08-13 16:15  pbartok
13967
13968         * Control.cs:
13969           - Fixed Anchor default
13970
13971 2004-08-13 15:43  pbartok
13972
13973         * Control.cs:
13974           - Changed GetCursorPos signature
13975
13976 2004-08-13 15:42  pbartok
13977
13978         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
13979           - Changed signature for GetCursorPos
13980
13981 2004-08-13 15:25  pbartok
13982
13983         * XplatUIX11.cs:
13984           - Cleanup
13985           - Fixed resizing/exposure handling
13986
13987 2004-08-13 15:22  jordi
13988
13989         * ThemeWin32Classic.cs: removes redundant code and fixes issues
13990           with tickposition
13991
13992 2004-08-13 14:55  jordi
13993
13994         * TrackBar.cs: change from wndproc to events
13995
13996 2004-08-13 13:00  jordi
13997
13998         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13999           XplatUIX11.cs: implements PointToClient (ScreenToClient)
14000
14001 2004-08-13 12:53  pbartok
14002
14003         * XplatUIWin32.cs:
14004           - Changed GetWindowPos to also provide client area size
14005           - Fixed broken prototypes for several win32 functions
14006
14007 2004-08-13 12:53  pbartok
14008
14009         * XplatUI.cs, XplatUIDriver.cs:
14010           - Changed GetWindowPos to also provide client area size
14011
14012 2004-08-13 12:52  pbartok
14013
14014         * XplatUIX11.cs:
14015           - Added generation of WM_POSCHANGED
14016           - Changed GetWindowPos to also provide client area size
14017
14018 2004-08-13 12:52  pbartok
14019
14020         * Control.cs:
14021           - Added Dispose() and destructor
14022           - Fixed resizing and bounds calculation
14023           - Fixed Layout
14024           - Added memory savings for invisible windows
14025
14026 2004-08-13 12:46  jordi
14027
14028         * TrackBar.cs: adds timer and grap window
14029
14030 2004-08-13 10:25  jackson
14031
14032         * Timer.cs: SWF Timer
14033
14034 2004-08-12 16:59  pbartok
14035
14036         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
14037           - Implemented method to get current mouse position
14038
14039 2004-08-12 14:29  jordi
14040
14041         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
14042           enhancement, fix mouse problems, highli thumb, etc
14043
14044 2004-08-12 13:31  pbartok
14045
14046         * Control.cs:
14047           - Fixed Anchoring bugs
14048
14049 2004-08-12 13:01  jackson
14050
14051         * StatusBar.cs: Don't forget things
14052
14053 2004-08-12 12:54  jackson
14054
14055         * ThemeWin32Classic.cs: Handle owner draw status bars
14056
14057 2004-08-12 12:54  jackson
14058
14059         * StatusBar.cs: Implement missing properties, events, and methods.
14060           Handle mouse clicking
14061
14062 2004-08-12 10:19  jackson
14063
14064         * StatusBarPanelClickEventArgs.cs,
14065           StatusBarPanelClickEventHandler.cs: Classes for handling status
14066           bar panel click events
14067
14068 2004-08-12 10:10  jackson
14069
14070         * Control.cs: Add missing properties
14071
14072 2004-08-12 09:46  pbartok
14073
14074         * BindingsManagerBase.cs:
14075           - Name changed to BindingManagerBase.cs
14076
14077 2004-08-12 09:25  jordi
14078
14079         * ScrollableControl.cs: calls ctrlbase instead of exeception
14080
14081 2004-08-11 16:28  pbartok
14082
14083         * InputLanguageChangingEventArgs.cs:
14084           - Never check in before compiling. Fixes the last check-in
14085
14086 2004-08-11 16:26  pbartok
14087
14088         * InputLanguageChangingEventArgs.cs:
14089           - More signature fixes
14090
14091 2004-08-11 16:20  pbartok
14092
14093         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
14094           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
14095           ImageListStreamer.cs, InputLanguage.cs,
14096           InputLanguageChangedEventArgs.cs,
14097           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
14098           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
14099           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
14100           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
14101           - Signature fixes
14102
14103 2004-08-11 16:16  pbartok
14104
14105         * Application.cs:
14106           - Fixed Signature
14107           - Added .Net 1.1 method
14108
14109 2004-08-11 15:25  pbartok
14110
14111         * SWF.csproj:
14112           - Fixed BindingManagerBase.cs filename
14113
14114 2004-08-11 15:22  pbartok
14115
14116         * BindingManagerBase.cs:
14117           - Was checked in with wrong filename
14118
14119 2004-08-11 14:50  pbartok
14120
14121         * SWF.csproj:
14122           - Updated
14123
14124 2004-08-11 13:41  jordi
14125
14126         * XplatUIWin32.cs: Fixes ClientRect
14127
14128 2004-08-11 13:19  pbartok
14129
14130         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
14131           XplatUIX11.cs:
14132           - We had SetWindowPos and MoveWindow to set window positions and
14133             size, removed MoveWindow. We have GetWindowPos, so it made sense to
14134             keep SetWindowPos as matching counterpart
14135           - Added some X11 sanity checking
14136
14137 2004-08-11 12:59  pbartok
14138
14139         * Control.cs:
14140           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
14141             (It seems that SetBounds is just a front for SetBoundsCore and
14142              SetBoundsCore updates the underlying window system and
14143              UpdateBounds is responsible for updating the variables associated
14144              with the Control and sending the events)
14145           - Major cleanup of Size handling; we now have two sizes, client_size
14146             and bounds. Bounds defines the window with decorations, client_size
14147             without them.
14148
14149 2004-08-11 12:55  pbartok
14150
14151         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
14152           - Added method to calculate difference between decorated window and
14153             raw client area
14154
14155 2004-08-11 12:54  pbartok
14156
14157         * Label.cs:
14158           - Forcing redraw on resize
14159
14160 2004-08-11 11:43  pbartok
14161
14162         * ImageList.cs:
14163           - Removed disposing of the actual images when the list is disposed
14164
14165 2004-08-11 09:13  pbartok
14166
14167         * Control.cs:
14168           - Now properly reparents windows
14169
14170 2004-08-11 08:37  pbartok
14171
14172         * Control.cs:
14173           - Duh!
14174
14175 2004-08-11 07:47  pbartok
14176
14177         * Control.cs:
14178           - Rewrote the collection stuff. Might not be as fast now, not
14179             keeping the number of children around and accessible directly, but
14180             it's more straightforward
14181
14182 2004-08-11 07:44  pbartok
14183
14184         * AccessibleObject.cs:
14185           - Fixed to match ControlCollection rewrite
14186
14187 2004-08-11 07:43  pbartok
14188
14189         * ImageList.cs:
14190           - Added missing creation of the collection list
14191
14192 2004-08-10 20:08  jackson
14193
14194         * StatusBar.cs: Get the paint message from WndProc
14195
14196 2004-08-10 19:31  jackson
14197
14198         * ThemeWin32Classic.cs: Create Brushes as little as possible
14199
14200 2004-08-10 19:20  jackson
14201
14202         * UICues.cs: Add Flags attribute
14203
14204 2004-08-10 19:19  jackson
14205
14206         * StatusBarPanel.cs: Signature cleanup
14207
14208 2004-08-10 19:10  jackson
14209
14210         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
14211           Initial implementation of status bar item drawing
14212
14213 2004-08-10 17:27  jordi
14214
14215         * TrackBar.cs: add missing methods, properties, and restructure to
14216           hide extra ones
14217
14218 2004-08-10 16:24  jackson
14219
14220         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
14221           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
14222           attribute
14223
14224 2004-08-10 13:21  jordi
14225
14226         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
14227           enhancements and standarize on win colors defaults
14228
14229 2004-08-10 12:52  jackson
14230
14231         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
14232           ThemeWin32Classic.cs: Implement DrawItem functionality
14233
14234 2004-08-10 12:47  jordi
14235
14236         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
14237
14238 2004-08-10 12:32  jordi
14239
14240         * Control.cs: throw ontextchange event
14241
14242 2004-08-10 11:43  pbartok
14243
14244         * Control.cs:
14245           - Added more to the still unfinished Dock/Anchor layout code
14246
14247 2004-08-10 11:39  pbartok
14248
14249         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
14250           - Added GetWindowPos method
14251
14252 2004-08-10 11:36  pbartok
14253
14254         * XplatUIWin32.cs:
14255           - Implemented several methods
14256
14257 2004-08-10 09:47  jackson
14258
14259         * TrackBar.cs: Allow control to handle buffering
14260
14261 2004-08-10 09:41  jackson
14262
14263         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
14264
14265 2004-08-10 09:24  jackson
14266
14267         * Label.cs, LinkLabel.cs: Let Control handle buffering.
14268
14269 2004-08-10 09:09  jackson
14270
14271         * StatusBar.cs: Let Control handle all the buffering.
14272
14273 2004-08-10 09:08  jackson
14274
14275         * Control.cs: Control will now handle the buffering code, so each
14276           control does not have to implement this.
14277
14278 2004-08-10 08:34  jackson
14279
14280         * XplatUIDriver.cs: Use default colors from the theme
14281
14282 2004-08-09 17:12  pbartok
14283
14284         * ImageList.cs:
14285           - Fixed several bugs Ravindra pointed out
14286
14287 2004-08-09 16:11  pbartok
14288
14289         * Control.cs:
14290           - Added incomplete dock layout code
14291           - Added support for mouse wheel
14292
14293 2004-08-09 16:09  pbartok
14294
14295         * XplatUIX11.cs:
14296           - Added handling for middle and right mousebutton
14297           - Added handling for mouse wheel
14298           - Added handling for key state and mouse state and position
14299           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
14300           messages
14301
14302 2004-08-09 15:40  jackson
14303
14304         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
14305           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
14306           checkin
14307
14308 2004-08-09 15:37  jackson
14309
14310         * StatusBar.cs: Initial implementation of StatusBar
14311
14312 2004-08-09 15:36  jackson
14313
14314         * ITheme.cs: Add support for drawing status bar and getting status
14315           bar item sizes
14316
14317 2004-08-09 15:35  pbartok
14318
14319         * MouseButtons.cs:
14320           - Fixed values
14321
14322 2004-08-09 15:34  jackson
14323
14324         * ThemeWin32Classic.cs: Add support for drawing status bar and get
14325           status bar item sizes
14326
14327 2004-08-09 15:21  jackson
14328
14329         * ThemeWin32Classic.cs: Use known colors for default control
14330           colours
14331
14332 2004-08-09 15:12  jackson
14333
14334         * ThemeWin32Classic.cs: Make the default font static, it is static
14335           in control so this doesn't change functionality and creating fonts
14336           is sloooooow.
14337
14338 2004-08-09 14:56  pbartok
14339
14340         * X11Structs.cs:
14341           - Added GrabMode enum
14342
14343 2004-08-09 14:55  pbartok
14344
14345         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
14346           - Removed Run method, was only required for initial development
14347
14348 2004-08-09 14:51  pbartok
14349
14350         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
14351           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
14352           capture
14353
14354 2004-08-09 13:48  pbartok
14355
14356         * XplatUIX11.cs:
14357           - Fixed default sizing for child windows
14358
14359 2004-08-09 12:56  pbartok
14360
14361         * XplatUIX11.cs:
14362           - Added generation of WM_DESTROY message
14363           - Added handling of window manager induced shutdown
14364
14365 2004-08-09 11:31  jackson
14366
14367         * ThemeWin32Classic.cs: New names for control properties
14368
14369 2004-08-09 11:25  jackson
14370
14371         * Control.cs: Use new color names
14372
14373 2004-08-09 11:02  jackson
14374
14375         * XplatUI.cs: Get default window properties from the theme
14376
14377 2004-08-09 11:01  jackson
14378
14379         * ITheme.cs: The theme engine now controls default window
14380           properties
14381
14382 2004-08-09 11:00  jackson
14383
14384         * ThemeWin32Classic.cs: Add default window color properties
14385
14386 2004-08-09 10:17  jackson
14387
14388         * ThemeWin32Classic.cs: Use correct default back color
14389
14390 2004-08-09 10:05  jackson
14391
14392         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
14393           the theme now.
14394
14395 2004-08-09 09:56  jackson
14396
14397         * XplatUI.cs: Remove defaults, these are handled by the theme now.
14398
14399 2004-08-09 09:54  jackson
14400
14401         * Control.cs: Get default properties from the theme.
14402
14403 2004-08-09 09:53  jackson
14404
14405         * ITheme.cs: Themes now handle default control properties
14406
14407 2004-08-09 09:53  jackson
14408
14409         * ThemeWin32Classic.cs: Themes now handle default control
14410           properties so coloring will be consistent
14411
14412 2004-08-08 16:54  jordi
14413
14414         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
14415
14416 2004-08-08 15:08  jordi
14417
14418         * XplatUIX11.cs: fixes keyboard crash
14419
14420 2004-08-08 13:47  jordi
14421
14422         * Label.cs: add cvs header info
14423
14424 2004-08-08 12:09  jackson
14425
14426         * ThemeWin32Classic.cs: Add pen_buttonface
14427
14428 2004-08-08 11:52  jordi
14429
14430         * Label.cs, LinkLabel.cs: [no log message]
14431
14432 2004-08-08 11:34  jordi
14433
14434         * ThemeWin32Classic.cs: Use Windows Standard Colours
14435
14436 2004-08-07 17:32  jordi
14437
14438         * TrackBar.cs: throw exceptions of invalid enums values
14439
14440 2004-08-07 17:31  jordi
14441
14442         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
14443           draw method name
14444
14445 2004-08-07 16:56  jackson
14446
14447         * HorizontalAlignment.cs: Initial checkin
14448
14449 2004-08-07 13:16  jordi
14450
14451         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
14452           methods
14453
14454 2004-08-07 13:05  jordi
14455
14456         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
14457           GetSysColor defines
14458
14459 2004-08-06 18:01  pbartok
14460
14461         * ThemeWin32Classic.cs:
14462           - Fixed some rounding issues with float/int
14463
14464 2004-08-06 18:00  jackson
14465
14466         * DockStyle.cs, AnchorStyles.cs:
14467
14468                   Add flags and serializable attributes.
14469
14470 2004-08-06 17:46  pbartok
14471
14472         * XplatUIX11.cs:
14473           - Implemented GetParent
14474
14475 2004-08-06 17:18  pbartok
14476
14477         * TrackBar.cs:
14478           - Fixed some rounding issues with float/int
14479
14480 2004-08-06 17:17  pbartok
14481
14482         * X11Structs.cs, XplatUIX11.cs:
14483           - Fixed Refresh and Invalidate
14484
14485 2004-08-06 15:30  pbartok
14486
14487         * Control.cs, X11Structs.cs, XplatUIX11.cs:
14488           - Fixed recursive loop when resizing
14489           - Improved/fixed redrawing on expose messages
14490
14491 2004-08-06 09:53  jordi
14492
14493         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
14494           keyboard navigation
14495
14496 2004-08-06 08:02  pbartok
14497
14498         * X11Structs.cs, XplatUIX11.cs:
14499           - Fixed reparenting
14500           - Fixed window border creation
14501
14502 2004-08-05 15:38  pbartok
14503
14504         * XplatUIX11.cs:
14505           - Attempted fix for reparenting problems
14506
14507 2004-08-04 15:14  pbartok
14508
14509         * Control.cs:
14510           - Fixed Invalidation bug (calculated wrong client area)
14511           - Added ClientSize setter
14512
14513 2004-08-04 15:13  pbartok
14514
14515         * Form.cs:
14516           - Added AutoScale properties
14517
14518 2004-08-04 15:13  pbartok
14519
14520         * SWF.csproj:
14521           - Added latest files
14522
14523 2004-08-04 14:11  pbartok
14524
14525         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
14526           XplatUIX11.cs:
14527           - Added Invalidate handling
14528
14529 2004-08-03 17:09  jordi
14530
14531         * XplatUIDriver.cs: fixes spelling mistake
14532
14533 2004-07-27 09:53  jordi
14534
14535         * TrackBar.cs: fixes trackbar events, def classname, methods
14536           signature
14537
14538 2004-07-27 09:29  jordi
14539
14540         * ScrollBar.cs: fixes scrollbar events
14541
14542 2004-07-27 04:38  jordi
14543
14544         * Control.cs: changes to be able to run winforms samples
14545
14546 2004-07-26 11:42  jordi
14547
14548         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
14549           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
14550
14551 2004-07-26 05:41  jordi
14552
14553         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
14554           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
14555           implementation
14556
14557 2004-07-22 09:22  jordi
14558
14559         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
14560           check link overlapping, implement events, and fixes
14561
14562 2004-07-21 10:28  jordi
14563
14564         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
14565
14566 2004-07-21 10:19  jordi
14567
14568         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
14569           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
14570           LinkLabelLinkClickedEventArgs.cs,
14571           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
14572           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
14573           implementation
14574
14575 2004-07-19 13:09  jordi
14576
14577         * Control.cs, Label.cs: label control re-written: added missing
14578           functionlity, events, and properties
14579
14580 2004-07-19 10:49  jordi
14581
14582         * Control.cs: fixes SetBounds logic
14583
14584 2004-07-19 01:29  jordi
14585
14586         * Control.cs: Call RefreshWindow only if the window has created
14587
14588 2004-07-15 14:05  pbartok
14589
14590         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
14591           - Implemented ImageList and ImageList.ImageCollection classes
14592           - Added ColorDepth enumeration
14593           - Updated SWF VS.Net project
14594
14595 2004-07-15 11:06  jordi
14596
14597         * XplatUIStructs.cs: added MsgButons enum
14598
14599 2004-07-15 11:03  jordi
14600
14601         * Control.cs: added basic mouse handeling events
14602
14603 2004-07-15 03:38  jordi
14604
14605         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
14606           Vertical TrackBar control implementation
14607
14608 2004-07-13 09:33  jordi
14609
14610         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
14611
14612 2004-07-13 09:31  jordi
14613
14614         * Control.cs, Form.cs: commit: new properties and fixes form size
14615           problems
14616
14617 2004-07-09 14:13  miguel
14618
14619         * ProgressBar.cs: Spelling
14620
14621 2004-07-09 11:25  pbartok
14622
14623         * ProgressBar.cs:
14624           - Removed usage of Rectangle for drawing. Miguel pointed out it's
14625           faster
14626
14627 2004-07-09 11:17  miguel
14628
14629         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
14630
14631                 * ProgressBar.cs: Fixed spelling for `block'
14632
14633                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
14634                 style guidelines.
14635
14636                 Avoid using the += on rect.X, that exposed a bug in the compiler.
14637
14638 2004-07-08 23:21  pbartok
14639
14640         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
14641           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
14642           BaseCollection.cs, Binding.cs, BindingContext.cs,
14643           BindingMemberInfo.cs, BindingsCollection.cs,
14644           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
14645           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
14646           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
14647           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
14648           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
14649           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
14650           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
14651           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
14652           FrameStyle.cs, GiveFeedbackEventArgs.cs,
14653           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
14654           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
14655           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
14656           InputLanguageChangedEventArgs.cs,
14657           InputLanguageChangedEventHandler.cs,
14658           InputLanguageChangingEventArgs.cs,
14659           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
14660           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
14661           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
14662           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
14663           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
14664           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
14665           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
14666           QueryAccessibilityHelpEventArgs.cs,
14667           QueryAccessibilityHelpEventHandler.cs,
14668           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
14669           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
14670           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
14671           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
14672           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
14673           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
14674           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
14675           XplatUIX11.cs, lang.cs:
14676           - Initial check-in
14677